/* ============================================================
   ALTICORDE — Feuille de style
   Identité : Orange industriel + Noir · moderne & professionnelle
   ============================================================ */

/* ---------- Polices, hébergées avec le site ----------
   Aucun appel à un serveur tiers : rien n'est transmis à Google. */
@font-face {
  font-family: 'Anton';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/anton-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/inter-latin.woff2') format('woff2');
}

/* ---------- Tokens ---------- */
:root {
  --orange: #ff6b00;
  --orange-bright: #ff8124;
  --orange-deep: #e25a00;
  /* Orange assombri pour le TEXTE sur fond clair (4,5:1 minimum)
     et pour les surfaces portant du texte blanc. */
  --orange-text: #a34200;
  --orange-solid: #b34700;
  --black: #0a0a0a;
  --ink: #141414;
  --ink-2: #1c1c1c;
  --surface: #ffffff;
  --surface-2: #f5f5f4;
  --surface-3: #ececea;
  --text: #1a1a1a;
  --text-2: #54534f;
  --text-on-dark: #f4f3f1;
  --text-on-dark-2: #a8a6a1;
  --line: #e2e1de;
  --line-dark: #2a2a2a;

  --radius: 14px;
  --radius-sm: 9px;
  --container: 1180px;
  --shadow: 0 10px 30px rgba(0, 0, 0, .08);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, .16);
  --shadow-orange: 0 14px 34px rgba(255, 107, 0, .32);

  --ease: cubic-bezier(.22, .61, .36, 1);
  --font-display: 'Anton', 'Arial Narrow', sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--surface);
  line-height: 1.65;
  font-size: 100%;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.1rem, 4vw, 2.25rem);
}

.skip-link {
  position: absolute;
  left: 50%; top: -200px;
  transform: translateX(-50%);
  white-space: nowrap;
  background: var(--orange);
  color: #0a0a0a;
  padding: .65rem 1.25rem;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  z-index: 200;
  font-weight: 600;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 0; }

:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
  box-shadow: 0 0 0 3px var(--black);
  border-radius: 4px;
}

/* ---------- Typography helpers ---------- */
h1, h2 { line-height: 1.08; letter-spacing: .4px; }
h3 { line-height: 1.25; letter-spacing: .2px; }
.eyebrow, .kicker {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  font-size: .78rem;
  color: var(--orange-text);
}
/* Sur fond sombre, l orange vif repasse (contraste suffisant) */
.hero .eyebrow, .page-hero .eyebrow,
.certifications .kicker, .zone .kicker, .cta-band .kicker { color: var(--orange); }
.accent { color: var(--orange); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  padding: .95rem 1.7rem;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .18s var(--ease), background .2s var(--ease), box-shadow .2s var(--ease), color .2s var(--ease);
  min-height: 48px;
  letter-spacing: .3px;
}
.btn-primary {
  background: var(--orange);
  color: #0a0a0a;           /* 6,8:1 — le blanc ne donnait que 2,85:1 */
  box-shadow: var(--shadow-orange);
}
.btn-primary:hover { background: var(--orange-bright); transform: translateY(-2px); }
.btn-primary:active { transform: translateY(0); }
.btn-ghost {
  background: transparent;
  color: var(--text-on-dark);
  border-color: rgba(255, 255, 255, .35);
}
.btn-ghost:hover { border-color: var(--orange); color: var(--orange); transform: translateY(-2px); }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 10, .85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-dark);
  transition: background .3s var(--ease);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  color: #fff;
}
.brand-mark { color: var(--orange); display: inline-flex; }
.brand-logo { height: 46px; width: auto; display: block; }
.brand-text {
  font-family: var(--font-display);
  font-size: 1.7rem;
  letter-spacing: 1.5px;
  color: var(--orange);
  text-transform: uppercase;
  line-height: 1;
}
.brand-accent { color: var(--orange); }

.main-nav { display: flex; align-items: center; }
.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-menu a {
  color: var(--text-on-dark);
  font-weight: 500;
  font-size: .96rem;
  position: relative;
  padding: .25rem 0;
  transition: color .2s var(--ease);
}
.nav-menu a:not(.nav-cta)::after {
  content: '';
  position: absolute;
  left: 0; bottom: -3px;
  width: 0; height: 2px;
  background: var(--orange);
  transition: width .25s var(--ease);
}
.nav-menu a:not(.nav-cta):hover { color: #fff; }
.nav-menu a:not(.nav-cta):hover::after { width: 100%; }
.nav-menu a.is-active:not(.nav-cta) { color: #fff; font-weight: 600; }
.nav-menu a.is-active:not(.nav-cta)::after { width: 100%; }
.nav-cta {
  background: var(--orange);
  color: #0a0a0a !important;   /* 6,8:1 */
  padding: .6rem 1.15rem !important;
  border-radius: var(--radius-sm);
  font-weight: 700;
  transition: background .2s var(--ease), transform .2s var(--ease);
}
.nav-cta:hover { background: var(--orange-bright); transform: translateY(-1px); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 10px;
  min-width: 48px;
  min-height: 48px;
  align-items: center;
  justify-content: center;
}
.nav-toggle span {
  width: 26px; height: 2.5px;
  background: #fff;
  border-radius: 2px;
  transition: transform .25s var(--ease), opacity .25s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--black);
  color: var(--text-on-dark);
  padding: clamp(4.5rem, 12vh, 9rem) 0 clamp(4rem, 9vh, 7rem);
  overflow: hidden;
  isolation: isolate;
}
.hero-bg {
  position: absolute; inset: 0;
  z-index: -1;
  background:
    radial-gradient(120% 80% at 85% -10%, rgba(255, 107, 0, .28), transparent 55%),
    radial-gradient(90% 70% at -10% 110%, rgba(255, 107, 0, .12), transparent 60%),
    repeating-linear-gradient(135deg, rgba(255,255,255,.025) 0 2px, transparent 2px 26px),
    var(--black);
}
.hero-bg::after {
  content: '';
  position: absolute; right: -8%; top: 50%;
  transform: translateY(-50%);
  width: 460px; height: 460px;
  border: 1.5px solid rgba(255, 107, 0, .25);
  border-radius: 50%;
  box-shadow: inset 0 0 0 40px rgba(255, 107, 0, .04);
}
.hero-inner { position: relative; max-width: 860px; }

/* Hero avec photo de fond */
.hero--photo { padding: clamp(5rem, 14vh, 10rem) 0 clamp(4rem, 10vh, 7rem); }
.hero-media { position: absolute; inset: 0; z-index: -1; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 55%; }
.hero-media::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(100deg, rgba(10,10,10,.92) 0%, rgba(10,10,10,.78) 45%, rgba(10,10,10,.45) 100%),
    linear-gradient(rgba(10,10,10,.35), rgba(10,10,10,.35));
}
.hero--photo .hero-lead { color: #e8e6e2; }

/* En-tête des pages intérieures */
.page-hero {
  position: relative;
  background: var(--black);
  color: var(--text-on-dark);
  padding: clamp(3rem, 8vh, 5.5rem) 0 clamp(2.5rem, 6vh, 4rem);
  overflow: hidden;
  isolation: isolate;
}
.page-hero .container { position: relative; }

/* Bandeau avec photo de fond, à la place du noir uni.
   Le voile reste dense côté texte et s'allège vers la droite. */
.hero-photo {
  position: absolute; inset: 0;
  z-index: -2;
  background-size: cover;
  background-position: center;
}
.hero-veil {
  position: absolute; inset: 0;
  z-index: -1;
  background: linear-gradient(90deg,
    rgba(10, 10, 10, .80) 0%,
    rgba(10, 10, 10, .46) 55%,
    rgba(10, 10, 10, .14) 100%);
}
/* Voile allégé, pour une photo qu'on veut laisser respirer. */
.hero-veil--light {
  background: linear-gradient(90deg,
    rgba(10, 10, 10, .66) 0%,
    rgba(10, 10, 10, .30) 55%,
    rgba(10, 10, 10, .05) 100%);
}
/* Ombre portée : garantit la lisibilité même là où le voile est léger. */
.page-hero--photo h1,
.page-hero--photo .page-hero-sub { text-shadow: 0 2px 16px rgba(0, 0, 0, .6); }
.page-hero--photo .page-hero-lead {
  color: #e6e4e0;
  text-shadow: 0 1px 12px rgba(0, 0, 0, .7);
}
.page-hero--photo .eyebrow { text-shadow: 0 1px 10px rgba(0, 0, 0, .7); }

/* Sur mobile le texte occupe toute la largeur : le voile passe à la verticale. */
@media (max-width: 760px) {
  .hero-veil {
    background: linear-gradient(180deg,
      rgba(10, 10, 10, .62) 0%,
      rgba(10, 10, 10, .78) 100%);
  }
  .hero-veil--light {
    background: linear-gradient(180deg,
      rgba(10, 10, 10, .50) 0%,
      rgba(10, 10, 10, .68) 100%);
  }
}
.page-hero h1 {
  max-width: 26ch;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4.6vw, 3.3rem);
  letter-spacing: 1px;
  margin: .9rem 0 1rem;
  text-transform: uppercase;
  text-wrap: balance;
}
.page-hero-lead {
  color: var(--text-on-dark-2);
  font-size: clamp(1rem, 2vw, 1.15rem);
  max-width: 62ch;
}

/* Variante à grand titre (page Services) */
.page-hero--big { padding: clamp(3.5rem, 10vh, 6.5rem) 0 clamp(3rem, 7vh, 4.5rem); }
.page-hero--big h1 {
  font-size: clamp(3rem, 9vw, 6rem);
  max-width: none;
  margin-bottom: .6rem;
}
.page-hero-sub {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.6vw, 1.75rem);
  text-transform: uppercase;
  letter-spacing: .5px;
  color: #fff;
  margin-bottom: 1rem;
  max-width: 40ch;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 5.6vw, 4.2rem);
  letter-spacing: 1px;
  margin: 1rem 0 1rem;
  max-width: 22ch;
  text-transform: uppercase;
  text-wrap: balance;
}
/* Ancien slogan, passé sous le grand titre */
.hero-sub {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.8vw, 1.9rem);
  text-transform: uppercase;
  letter-spacing: .5px;
  color: #fff;
  margin-bottom: 1.1rem;
}
.hero-lead {
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  color: var(--text-on-dark-2);
  max-width: 60ch;
  margin-bottom: 2.2rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 3.2rem; }
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1.5rem, 5vw, 3.5rem);
  border-top: 1px solid var(--line-dark);
  padding-top: 1.8rem;
}
.hero-stats li { display: flex; flex-direction: column; }
.hero-stats strong {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--orange);
  line-height: 1;
}
.hero-stats span { color: var(--text-on-dark-2); font-size: .9rem; margin-top: .35rem; }

.scroll-cue {
  position: absolute;
  left: 50%; bottom: 1.5rem;
  transform: translateX(-50%);
  width: 26px; height: 42px;
  border: 2px solid rgba(255,255,255,.35);
  border-radius: 14px;
}
.scroll-cue span {
  position: absolute;
  left: 50%; top: 8px;
  width: 4px; height: 8px;
  background: var(--orange);
  border-radius: 2px;
  transform: translateX(-50%);
  animation: scrollDot 1.8s infinite;
}
@keyframes scrollDot {
  0% { opacity: 0; transform: translate(-50%, 0); }
  40% { opacity: 1; }
  80%, 100% { opacity: 0; transform: translate(-50%, 14px); }
}

/* ---------- Section base ---------- */
.section { padding: clamp(3.5rem, 9vh, 7rem) 0; }
.section-head { max-width: 680px; margin-bottom: 3rem; }
.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  text-transform: uppercase;
  margin: .7rem 0 .9rem;
}
.section-sub { color: var(--text-2); font-size: 1.08rem; max-width: 68ch; }
.kicker { display: inline-block; }

/* ---------- Services ---------- */
.services { background: var(--surface-2); }
.services-lead {
  display: flex;
  align-items: center;
  gap: .9rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--ink);
  margin: 0 0 1.3rem;
}
.services-lead::before {
  content: '';
  width: 30px; height: 3px;
  background: var(--orange);
  border-radius: 2px;
}
.card-grid + .services-lead { margin-top: 3rem; }
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr));
  gap: 1.5rem;
}
.service-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 1.8rem;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute; left: 0; top: 0;
  width: 100%; height: 4px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease);
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.service-card:hover::before { transform: scaleX(1); }
.service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px; height: 56px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--orange), var(--orange-deep));
  color: #fff;
  margin-bottom: 1.3rem;
}
.service-icon svg { width: 28px; height: 28px; }
.service-card h3 { font-size: 1.28rem; margin-bottom: .6rem; }
.service-card p { color: var(--text-2); font-size: .98rem; }
.card-link {
  display: inline-block;
  margin-top: 1rem;
  color: var(--orange-text);
  font-weight: 700;
  font-size: .95rem;
  border-bottom: 1.5px solid var(--orange);
}
.card-link:hover { color: var(--ink); }
.services-note {
  text-align: center;
  margin-top: 2.8rem;
  color: var(--text-2);
  max-width: 62ch;
  margin-inline: auto;
}
.services-note a { color: var(--orange-text); font-weight: 600; border-bottom: 1.5px solid var(--orange); }

/* ---------- Bandeau photo pleine largeur ---------- */
.banner {
  position: relative;
  margin: clamp(2.5rem, 6vh, 4rem) 0 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--ink);
}
.banner img { width: 100%; height: auto; display: block; }
/* En tête de section : pas de marge au-dessus, de l'air en dessous */
.banner--lead { margin: 0 0 clamp(2rem, 5vh, 3rem); }
.banner figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: clamp(2.5rem, 6vw, 4rem) clamp(1.1rem, 3vw, 2rem) clamp(1rem, 2.5vw, 1.6rem);
  background: linear-gradient(transparent, rgba(10, 10, 10, .55) 45%, rgba(10, 10, 10, .9));
  color: #fff;
}
.banner figcaption strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1rem, 2.4vw, 1.6rem);
  text-transform: uppercase;
  letter-spacing: .5px;
  line-height: 1.15;
  margin-bottom: .35rem;
}
.banner figcaption span {
  display: block;
  font-size: clamp(.74rem, 1.4vw, .92rem);
  color: rgba(255, 255, 255, .78);
  line-height: 1.45;
}

/* ---------- About ---------- */
.about-inner {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(2rem, 6vw, 4.5rem);
  align-items: center;
}
.about-media { position: relative; }
.about-inner--text { grid-template-columns: 1fr; }
.about-inner--text .about-text { max-width: 70ch; }
.about-photo {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  background: var(--ink);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  margin: 0;
}
.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
  display: block;
}
.photo-tag {
  position: absolute;
  left: 1rem; bottom: 1rem;
  background: rgba(10,10,10,.7);
  color: #fff;
  padding: .4rem .9rem;
  border-radius: 50px;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .5px;
  backdrop-filter: blur(4px);
}

.about-text h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  text-transform: uppercase;
  margin: .7rem 0 1.1rem;
}
.about-text > p { color: var(--text-2); margin-bottom: 1.6rem; }
.benefits { display: grid; gap: .85rem; margin-bottom: 2rem; }
.benefits li { display: flex; align-items: flex-start; gap: .75rem; font-weight: 500; }
.check {
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  width: 24px; height: 24px;
  background: var(--orange);
  color: #0a0a0a;
  border-radius: 50%;
  font-size: .8rem;
  font-weight: 800;
  margin-top: 2px;
}

/* ---------- Certifications ---------- */
.certifications { background: var(--black); color: var(--text-on-dark); }
.certifications .section-sub { color: var(--text-on-dark-2); }
.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.2rem;
}
.cert-item {
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  padding: 1.8rem 1.5rem;
  background: linear-gradient(180deg, rgba(255,255,255,.03), transparent);
  transition: border-color .25s var(--ease), transform .25s var(--ease);
}
.cert-item:hover { border-color: var(--orange); transform: translateY(-4px); }
.cert-abbr {
  font-family: var(--font-display);
  /* S'adapte aux libellés longs comme IRATA/SPRAT sans déborder. */
  font-size: clamp(1.35rem, 1.1rem + 1vw, 1.9rem);
  color: var(--orange);
  letter-spacing: .5px;
  display: block;
  margin-bottom: .6rem;
  overflow-wrap: anywhere;
}
.cert-item p { color: var(--text-on-dark-2); font-size: .92rem; }

.norms {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.norms-col {
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  padding: 1.8rem;
  background: linear-gradient(180deg, rgba(255,255,255,.03), transparent);
}
.norms-col h3 {
  display: flex;
  align-items: center;
  gap: .7rem;
  font-size: 1.05rem;
  color: #fff;
  margin-bottom: 1.1rem;
}
.norms-tag {
  font-family: var(--font-display);
  font-size: .85rem;
  letter-spacing: 1px;
  color: var(--black);
  background: var(--orange);
  padding: .25rem .55rem;
  border-radius: 5px;
}
.norms-col ul { display: grid; gap: .75rem; }
.norms-col li {
  position: relative;
  padding-left: 1.7rem;
  color: var(--text-on-dark-2);
  font-size: .94rem;
  line-height: 1.5;
}
.norms-col li::before {
  content: '';
  position: absolute;
  left: 0; top: .5em;
  width: 8px; height: 8px;
  background: var(--orange);
  border-radius: 2px;
  transform: rotate(45deg);
}

/* ---------- Process ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 2rem 1.6rem;
  border-radius: var(--radius);
  background: var(--surface-2);
  border: 1px solid var(--line);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.step:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.step-num {
  font-family: var(--font-display);
  font-size: 2.6rem;
  color: var(--orange-text);
  opacity: 1;
  display: block;
  margin-bottom: .6rem;
  line-height: 1;
}
.step h3 { font-size: 1.2rem; margin-bottom: .5rem; }
.step p { color: var(--text-2); font-size: .95rem; }

/* ---------- Projects ---------- */
.projets { background: var(--surface-2); }
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr));
  gap: 1.5rem;
}
.project-card {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.project-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.project-img {
  aspect-ratio: 16 / 11;
  position: relative;
}
.project-img::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(10,10,10,.45));
}
.project-1 { background:
  radial-gradient(120% 100% at 80% 0%, rgba(255,107,0,.5), transparent 55%),
  repeating-linear-gradient(90deg, #2b2b2b 0 14px, #242424 14px 28px), #1d1d1d; }
.project-2 { background:
  radial-gradient(120% 100% at 20% 0%, rgba(255,107,0,.4), transparent 55%),
  repeating-linear-gradient(0deg, #2b2b2b 0 16px, #232323 16px 32px), #1d1d1d; }
.project-3 { background:
  radial-gradient(130% 100% at 50% 0%, rgba(255,107,0,.45), transparent 55%),
  repeating-linear-gradient(45deg, #2b2b2b 0 18px, #242424 18px 36px), #1d1d1d; }
.project-body { padding: 1.5rem 1.5rem 1.7rem; }
.project-cat {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--orange-text);
  background: rgba(255,107,0,.12);
  padding: .3rem .7rem;
  border-radius: 50px;
  margin-bottom: .8rem;
}
.project-body h3 { font-size: 1.18rem; margin-bottom: .5rem; }
.project-body p { color: var(--text-2); font-size: .95rem; }

/* ---------- Testimonials ---------- */
.quote-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 1.5rem;
}
.quote {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--orange);
  border-radius: var(--radius);
  padding: 2rem;
  position: relative;
}
.quote::before {
  content: '\201C';
  position: absolute;
  right: 1.5rem; top: .2rem;
  font-family: var(--font-display);
  font-size: 5rem;
  color: rgba(255,107,0,.16);
  line-height: 1;
}
.quote blockquote { font-size: 1.08rem; font-style: italic; margin-bottom: 1.3rem; color: var(--ink); }
.quote figcaption strong { display: block; }
.quote figcaption span { color: var(--text-2); font-size: .9rem; }

/* ---------- Zone ---------- */
.zone { background: var(--black); color: var(--text-on-dark); }
.zone-inner {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
}
.zone-text h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  text-transform: uppercase;
  margin: .7rem 0 1.1rem;
}
.zone-text > p { color: var(--text-on-dark-2); margin-bottom: 1.6rem; }
.zone-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .7rem 1.5rem;
}
.zone-list--wide {
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: .65rem 1.2rem;
}
.zone-list li {
  position: relative;
  padding-left: 1.4rem;
  font-weight: 500;
}
.zone-list li::before {
  content: '';
  position: absolute; left: 0; top: .55em;
  width: 8px; height: 8px;
  background: var(--orange);
  border-radius: 2px;
  transform: rotate(45deg);
}
.zone-map {
  width: 100%;
  aspect-ratio: 1520 / 1188;
  margin-inline: auto;
  border-radius: var(--radius);
  background: #0d1110;
  border: 1px solid var(--line-dark);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.qc-map { width: 100%; height: 100%; display: block; }

/* Voile sombre sur l'image pour le contraste du réseau */
.qc-shade { fill: rgba(10, 10, 10, .38); }

.qc-rings circle {
  fill: none;
  stroke: rgba(255, 107, 0, .45);
  stroke-width: 4;
  stroke-dasharray: 10 14;
}
.qc-lines line {
  stroke: rgba(255, 107, 0, .65);
  stroke-width: 4;
  stroke-dasharray: 6 10;
  stroke-linecap: round;
}
.qc-city {
  fill: var(--orange);
  stroke: #fff;
  stroke-width: 5;
  filter: drop-shadow(0 0 8px rgba(255, 107, 0, .9));
}
.qc-label {
  fill: #fff;
  font-family: var(--font-body);
  font-size: 36px;
  font-weight: 700;
  text-anchor: middle;
  letter-spacing: .3px;
  paint-order: stroke;
  stroke: rgba(10, 10, 10, .82);
  stroke-width: 6px;
  stroke-linejoin: round;
}
.qc-label--hub {
  font-size: 50px;
  font-weight: 800;
  letter-spacing: 1.5px;
}
.qc-hub { fill: #fff; stroke: var(--orange); stroke-width: 14; }
.qc-pulse {
  fill: none;
  stroke: var(--orange);
  stroke-width: 10;
  transform-box: fill-box;
  transform-origin: center;
  animation: qcPulse 2.6s ease-out infinite;
}
@keyframes qcPulse {
  0%   { transform: scale(.4); opacity: .85; }
  100% { transform: scale(2.6); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .qc-pulse { animation: none; opacity: 0; }
}

/* ---------- Contact ---------- */
.contact-inner {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: clamp(2rem, 6vw, 4rem);
  align-items: start;
}
.contact-info h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  text-transform: uppercase;
  margin: .7rem 0 1rem;
}
.contact-info > p { color: var(--text-2); margin-bottom: 1.8rem; }
.contact-list { display: grid; gap: 1rem; margin-bottom: 1.5rem; }
.contact-list li { display: flex; align-items: center; gap: .9rem; font-weight: 500; }
.contact-list a { transition: color .2s var(--ease); }
.contact-list a:hover { color: var(--orange-text); }
.contact-ic {
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 11px;
  background: rgba(255,107,0,.1);
  color: var(--orange-text);
}
.contact-ic svg { width: 20px; height: 20px; }
.contact-hours { font-size: .92rem; color: var(--text-2); }

.contact-form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2.4rem);
  box-shadow: var(--shadow);
}
.field { display: flex; flex-direction: column; margin-bottom: 1.2rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field label { font-weight: 600; font-size: .92rem; margin-bottom: .45rem; }
.req { color: var(--orange-deep); }
.field input, .field select, .field textarea {
  font-family: inherit;
  font-size: 1rem;
  padding: .8rem .95rem;
  border: 1.5px solid #8a8884;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  color: var(--text);
  min-height: 48px;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--orange-text);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(163,66,0,.35);
}
.field.invalid input, .field.invalid textarea, .field.invalid select { border-color: #d23b3b; }
.error { color: #c62828; font-size: .82rem; margin-top: .35rem; min-height: 1em; font-weight: 500; }
.form-privacy { margin-top: 1rem; font-size: .85rem; color: var(--text-2); }
.form-privacy a { color: var(--orange-text); font-weight: 600; text-decoration: underline; }
.form-status { margin-top: 1rem; font-weight: 600; }
.form-status.ok { color: #1b873f; }
.form-status.err { color: #c62828; }

/* ---------- Bandeau d'appel à l'action ---------- */
.cta-band {
  background:
    radial-gradient(90% 140% at 85% 0%, rgba(255, 107, 0, .22), transparent 60%),
    var(--black);
  color: var(--text-on-dark);
  padding: clamp(2.5rem, 6vh, 4rem) 0;
  border-top: 1px solid var(--line-dark);
}
.cta-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.cta-inner h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.2vw, 2.2rem);
  text-transform: uppercase;
  margin-bottom: .5rem;
}
.cta-inner p { color: var(--text-on-dark-2); max-width: 52ch; }
.cta-inner .btn { flex: 0 0 auto; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--text-on-dark-2); }
.footer-inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 2.5rem;
  padding-block: clamp(2.5rem, 6vh, 4rem);
}
.footer-lockup { display: flex; align-items: center; gap: .7rem; }
.footer-brand .brand-text { font-size: 1.9rem; }
.footer-logo { height: 54px; width: auto; display: block; }
.footer-brand p { margin-top: .9rem; max-width: 38ch; font-size: .95rem; }
.footer-nav h3, .footer-contact h3 {
  color: #fff;
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 1rem;
}
.footer-nav ul, .footer-contact ul { display: grid; gap: .6rem; }
.footer-nav a:hover, .footer-contact a:hover { color: var(--orange); }
.footer-bottom { border-top: 1px solid var(--line-dark); padding-block: 1.3rem; }
.footer-bottom .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .5rem;
  font-size: .85rem;
}

/* ---------- Reveal animation ---------- */
.js .reveal, .js .section-head, .js .service-card, .js .step,
.js .project-card, .js .quote, .js .cert-item {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.is-visible {
  opacity: 1 !important;
  transform: none !important;
}
@media (prefers-reduced-motion: reduce) {
  .js .reveal, .js .section-head, .js .service-card, .js .step,
  .js .project-card, .js .quote, .js .cert-item {
    opacity: 1; transform: none;
  }
}
/* Stagger inside grids */
.card-grid .service-card:nth-child(2), .cert-grid .cert-item:nth-child(2),
.project-grid .project-card:nth-child(2), .steps .step:nth-child(2) { transition-delay: .08s; }
.card-grid .service-card:nth-child(3), .cert-grid .cert-item:nth-child(3),
.project-grid .project-card:nth-child(3), .steps .step:nth-child(3) { transition-delay: .16s; }
.card-grid .service-card:nth-child(4), .cert-grid .cert-item:nth-child(4),
.steps .step:nth-child(4) { transition-delay: .24s; }
.card-grid .service-card:nth-child(5), .cert-grid .cert-item:nth-child(5) { transition-delay: .32s; }
.card-grid .service-card:nth-child(6) { transition-delay: .4s; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 880px) {
  .about-inner, .zone-inner, .contact-inner { grid-template-columns: 1fr; }
  .about-media { max-width: 420px; margin-inline: auto; }
  .zone-map { max-width: 360px; margin-inline: auto; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 1060px) {
  .nav-toggle { display: flex; z-index: 110; }
  .nav-menu {
    position: fixed;
    inset: 72px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--black);
    border-bottom: 1px solid var(--line-dark);
    padding: .5rem 1.25rem 1.5rem;
    transform: translateY(-120%);
    visibility: hidden;
    max-height: calc(100dvh - 72px);
    overflow-y: auto;
    transition: transform .3s var(--ease), visibility .3s var(--ease);
    box-shadow: var(--shadow-lg);
  }
  .nav-menu.open { transform: translateY(0); visibility: visible; }
  .nav-menu li { border-bottom: 1px solid var(--line-dark); }
  .nav-menu li:last-child { border-bottom: 0; }
  .nav-menu a:not(.nav-cta) { display: block; padding: 1rem 0; }
  .nav-cta { display: block; text-align: center; margin-top: 1rem; }
}

@media (max-width: 540px) {
  .field-row { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .hero-actions .btn { flex: 1 1 auto; }
  .zone-list { grid-template-columns: 1fr; }
}

/* ============================================================
   Blocs ajoutés — formulaire enrichi, pages légales, réalisation
   ============================================================ */

/* Cases à cocher du formulaire */
.field-group { border: 0; padding: 0; margin-bottom: 1.2rem; }
.field-group legend {
  font-weight: 600;
  font-size: .92rem;
  margin-bottom: .55rem;
  padding: 0;
}
.field-group .hint { font-weight: 400; color: var(--text-2); }
.check-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: .5rem .9rem;
}
.check-grid label {
  display: flex;
  align-items: center;
  gap: .55rem;
  font-size: .95rem;
  padding: .5rem .7rem;
  border: 1.5px solid #8a8884;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  cursor: pointer;
  min-height: 44px;
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.check-grid label:hover { border-color: var(--orange); }
.check-grid input { width: 18px; height: 18px; accent-color: var(--orange-solid); flex: 0 0 auto; }
.check-grid label:has(input:checked) { border-color: var(--orange); background: #fff; }

/* Halo de focus plus marqué sur les champs */
.field input:focus, .field select:focus, .field textarea:focus {
  box-shadow: 0 0 0 3px rgba(255, 107, 0, .35);
}
.form-status a { color: var(--orange-text); font-weight: 600; text-decoration: underline; }

/* Pages légales et 404 */
.legal { max-width: 68ch; }
.legal h2 {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.6vw, 1.7rem);
  text-transform: uppercase;
  margin: 2rem 0 .7rem;
}
.legal h2:first-child { margin-top: 0; }
.legal p { color: var(--text-2); margin-bottom: 1rem; }
.legal a { color: var(--orange-text); font-weight: 600; border-bottom: 1.5px solid var(--orange); }
.legal .benefits a { border-bottom: 0; }

/* Détail d'une réalisation */
.projet-detail { max-width: 70ch; margin-top: clamp(2rem, 5vh, 3rem); }
.projet-detail h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.2vw, 2.2rem);
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.projet-detail p { color: var(--text-2); margin-bottom: 1rem; }

.references-note {
  max-width: 70ch;
  margin-top: clamp(2.5rem, 6vh, 4rem);
  padding: clamp(1.5rem, 3vw, 2rem);
  border-left: 4px solid var(--orange);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
}
.references-note h2 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  text-transform: uppercase;
  margin-bottom: .6rem;
}
.references-note p { color: var(--text-2); }
.references-note a { color: var(--orange-text); font-weight: 600; border-bottom: 1.5px solid var(--orange); }

/* Titres de familles de services (désormais des h2) */
h2.services-lead { font-size: 1.15rem; }

/* Pied de page : les h3 sont devenus des h2 */
.footer-nav h2, .footer-contact h2 {
  color: #fff;
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 1rem;
}

/* ---------- Ajustements mobile ---------- */
@media (max-width: 880px) {
  /* La carte devenait illisible en réduction : on l'agrandit
     et on grossit les libellés plutôt que de la rétrécir. */
  .zone-map { max-width: 100%; }
  .qc-label { font-size: 58px; }
  .qc-label--hub { font-size: 76px; }
}

@media (max-width: 600px) {
  /* Sur petit écran, la légende passe sous l'image du bandeau */
  .banner figcaption {
    position: static;
    background: var(--ink);
    padding: 1rem 1.1rem 1.2rem;
  }
  .banner { background: var(--ink); }
}

@media (max-width: 540px) {
  /* Deux colonnes conservées : 12 régions sur une colonne, c'est trop long */
  .zone-list--wide { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Sommaire des services (accueil) ---------- */
.service-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 310px), 1fr));
  gap: .8rem 1.5rem;
  border-top: 1px solid var(--line);
}
.service-list li { border-bottom: 1px solid var(--line); }
.service-list a {
  display: flex;
  flex-direction: column;
  gap: .15rem;
  padding: 1.1rem .5rem 1.1rem 0;
  color: var(--text-2);
  font-size: .95rem;
  position: relative;
  transition: color .2s var(--ease), padding-left .2s var(--ease);
}
.service-list a span {
  font-family: var(--font-display);
  font-size: 1.15rem;
  text-transform: uppercase;
  letter-spacing: .6px;
  color: var(--ink);
  transition: color .2s var(--ease);
}
.service-list a::after {
  content: '→';
  position: absolute;
  right: .4rem; top: 1.15rem;
  color: var(--orange-text);
  opacity: 0;
  transition: opacity .2s var(--ease), transform .2s var(--ease);
}
.service-list a:hover { padding-left: .6rem; }
.service-list a:hover span { color: var(--orange-text); }
.service-list a:hover::after { opacity: 1; transform: translateX(3px); }

/* Étiquette alignée à droite (Rawdon, proche de Montréal sur la carte) */
.qc-label--end { text-anchor: end; }

/* ---------- FAQ ---------- */
.faq .container { max-width: 820px; }
.faq-groupe {
  font-family: var(--font-display);
  font-size: 1.15rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--ink);
  margin: 2.6rem 0 1rem;
  padding-left: 2.6rem;
  position: relative;
}
.faq-groupe:first-of-type { margin-top: 0; }
.faq-groupe::before {
  content: '';
  position: absolute;
  left: 0; top: .62em;
  width: 30px; height: 3px;
  background: var(--orange);
  border-radius: 2px;
}
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-item summary {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.15rem 0;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--ink);
  list-style: none;
  transition: color .2s var(--ease);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '';
  flex: 0 0 auto;
  width: 13px; height: 13px;
  margin-left: auto;
  margin-top: .42em;
  border-right: 2.5px solid var(--orange);
  border-bottom: 2.5px solid var(--orange);
  transform: rotate(45deg);
  transition: transform .25s var(--ease);
}
.faq-item[open] summary::after { transform: rotate(-135deg); }
.faq-item summary:hover { color: var(--orange-text); }
.faq-item summary:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
.faq-reponse { padding: 0 2.3rem 1.4rem 0; }
.faq-reponse p { color: var(--text-2); }
.faq-reponse p + p { margin-top: .8rem; }
.faq-reponse strong { color: var(--ink); }

/* ---------- Section « Hors saison » : entretien de bâtiment ----------
   Bande sombre avec photo, présente sur l'accueil et sur Services. */
.offseason {
  position: relative;
  background: var(--black);
  color: var(--text-on-dark);
  padding-block: clamp(3.5rem, 8vw, 6rem);
  overflow: hidden;
  isolation: isolate;
}
.offseason-photo {
  position: absolute;
  inset: 0 0 0 42%;
  background-size: cover;
  background-position: center 30%;
  z-index: -2;
}
.offseason-veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--black) 0%, var(--black) 44%, rgba(10,10,10,.72) 62%, rgba(10,10,10,.25) 100%);
  z-index: -1;
}
.offseason-content { max-width: 640px; }
.offseason .kicker { color: var(--orange); margin-bottom: .8rem; }
.offseason h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.1rem, 5.2vw, 3.6rem);
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 1.2rem;
}
.offseason p { color: var(--text-on-dark-2); font-size: 1.08rem; max-width: 56ch; }
.offseason-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .7rem 1.5rem;
  margin: 1.8rem 0 2.2rem;
}
.offseason-list li {
  position: relative;
  padding-left: 1.5rem;
  font-weight: 600;
  color: var(--text-on-dark);
}
.offseason-list li::before {
  content: '';
  position: absolute;
  left: 0; top: .55em;
  width: .6rem; height: .6rem;
  background: var(--orange);
  border-radius: 2px;
}
@media (max-width: 760px) {
  .offseason-photo { inset: 0; }
  .offseason-veil { background: rgba(10,10,10,.84); }
  .offseason-list { grid-template-columns: 1fr; }
}

/* Le surtitre garde sa couleur dans les blocs de texte À propos. */
.about-text > p.kicker { color: var(--orange-text); margin-bottom: .6rem; }
