/* AJC Technologies — refonte 2026
   Encre marine (Azur) · jaune Curbilder · papier béton */

:root {
  --encre: #0b1624;
  --encre-2: #12233a;
  --encre-3: #1c3150;
  --azur: #2f6fb5;
  --azur-clair: #8fb6e3;
  --jaune: #f4c20d;
  --jaune-fonce: #d9a900;
  --beton: #ecebe6;
  --beton-2: #e1dfd8;
  --papier: #f7f6f2;
  --texte: #16202c;
  --texte-doux: #556170;
  --trait: rgba(11, 22, 36, .12);
  --trait-clair: rgba(255, 255, 255, .12);

  --f-titre: "Archivo", system-ui, sans-serif;
  --f-texte: "Archivo", system-ui, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, monospace;

  --max: 1240px;
  --gouttiere: clamp(16px, 4vw, 40px);
  --rayon: 4px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--f-texte);
  font-size: 17px;
  line-height: 1.6;
  color: var(--texte);
  background: var(--papier);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; font-family: var(--f-titre); line-height: 1.05; letter-spacing: -.01em; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gouttiere); }

.mono {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.sur-titre {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--f-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--azur);
  margin-bottom: 22px;
}
.sur-titre::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.fonce .sur-titre { color: var(--jaune); }

.titre-section {
  font-size: clamp(32px, 4.6vw, 58px);
  font-weight: 800;
  font-stretch: 112%;
  text-transform: uppercase;
  letter-spacing: -.015em;
  max-width: 16ch;
}
.titre-section em { font-style: normal; color: var(--azur); }
.fonce .titre-section em { color: var(--jaune); }
.chapo { font-size: clamp(17px, 1.5vw, 20px); color: var(--texte-doux); max-width: 58ch; }
.fonce .chapo { color: rgba(255,255,255,.68); }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  height: 52px; padding: 0 26px;
  font-family: var(--f-titre); font-weight: 700; font-size: 14px; letter-spacing: .08em; text-transform: uppercase;
  border-radius: var(--rayon);
  border: 1px solid transparent;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn-jaune { background: var(--jaune); color: var(--encre); }
.btn-jaune:hover { background: #ffd23a; }
.btn-ligne { border-color: rgba(255,255,255,.3); color: #fff; }
.btn-ligne:hover { border-color: #fff; background: rgba(255,255,255,.06); }
.btn-encre { background: var(--encre); color: #fff; }
.btn-encre:hover { background: var(--encre-3); }

/* ---------- En-tête ---------- */
.entete {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background .35s var(--ease), border-color .35s var(--ease), height .35s var(--ease);
  border-bottom: 1px solid transparent;
}
.entete .wrap { display: flex; align-items: center; justify-content: space-between; height: 84px; transition: height .35s var(--ease); }
.entete.colle { background: rgba(11, 22, 36, .92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-color: var(--trait-clair); }
.entete.colle .wrap { height: 68px; }
.entete.clair { background: rgba(247,246,242,.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-color: var(--trait); }

.logo { display: flex; align-items: center; gap: 14px; color: #fff; }
.logo-marque {
  font-family: var(--f-titre); font-weight: 900; font-size: 30px; letter-spacing: -.04em; line-height: 1;
  display: flex; align-items: baseline;
}
.logo-marque i { font-style: normal; color: var(--jaune); }
.logo-texte { display: flex; flex-direction: column; line-height: 1.15; border-left: 1px solid rgba(255,255,255,.25); padding-left: 14px; }
.logo-texte b { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.logo-texte span { font-family: var(--f-mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; opacity: .6; }
.entete.clair .logo { color: var(--encre); }
.entete.clair .logo-texte { border-color: var(--trait); }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  position: relative; padding: 8px 14px;
  font-size: 14px; font-weight: 600; letter-spacing: .02em;
  color: rgba(255,255,255,.78);
  transition: color .2s;
}
.nav a::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 2px;
  background: var(--jaune); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.nav a:hover, .nav a[aria-current="page"] { color: #fff; }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.entete.clair .nav a { color: var(--texte-doux); }
.entete.clair .nav a:hover, .entete.clair .nav a[aria-current="page"] { color: var(--encre); }

.entete-actions { display: flex; align-items: center; gap: 18px; }
.langue { font-family: var(--f-mono); font-size: 12px; letter-spacing: .1em; color: rgba(255,255,255,.55); }
.langue b { color: #fff; font-weight: 500; }
.langue a:hover { color: #fff; }
.entete.clair .langue { color: var(--texte-doux); }
.entete.clair .langue b { color: var(--encre); }
.entete .btn { height: 42px; padding: 0 18px; font-size: 12px; }

.burger { display: none; width: 44px; height: 44px; border: 0; background: none; color: #fff; cursor: pointer; padding: 10px; }
.burger span { display: block; height: 2px; background: currentColor; margin: 6px 0; transition: transform .3s var(--ease), opacity .2s; }
.entete.clair .burger { color: var(--encre); }
.menu-ouvert .burger span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-ouvert .burger span:nth-child(2) { opacity: 0; }
.menu-ouvert .burger span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  background: var(--encre);
  color: #fff;
  overflow: hidden;
  padding: 130px 0 90px;
}
.hero::before { /* grille de calque technique */
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(143,182,227,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(143,182,227,.07) 1px, transparent 1px),
    linear-gradient(rgba(143,182,227,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(143,182,227,.035) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
  mask-image: radial-gradient(ellipse 90% 80% at 70% 45%, #000 30%, transparent 85%);
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 70% 45%, #000 30%, transparent 85%);
}
.hero::after {
  content: ""; position: absolute; width: 900px; height: 900px; right: -300px; top: -260px;
  background: radial-gradient(circle, rgba(47,111,181,.28), transparent 62%);
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 40px; align-items: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 14px 7px 8px; margin-bottom: 30px;
  border: 1px solid var(--trait-clair); border-radius: 100px;
  font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.75);
}
.hero-badge b { background: var(--jaune); color: var(--encre); padding: 3px 8px; border-radius: 100px; font-weight: 600; }
.hero h1 {
  font-size: clamp(34px, 4.1vw, 62px);
  font-weight: 900;
  font-stretch: 115%;
  text-transform: uppercase;
  letter-spacing: -.025em;
  line-height: .95;
  margin-bottom: 30px;
}
.hero h1 .l { display: block; overflow: hidden; }
.hero h1 .l > span { display: inline-block; transform: translateY(105%); animation: monte 1s var(--ease) forwards; }
.hero h1 .l:nth-child(2) > span { animation-delay: .1s; }
.hero h1 .l:nth-child(3) > span { animation-delay: .2s; }
.hero h1 .jaune { color: var(--jaune); }
.hero h1 .contour { color: transparent; -webkit-text-stroke: 1.5px rgba(255,255,255,.85); }
@keyframes monte { to { transform: none; } }
.hero .chapo { margin-bottom: 40px; opacity: 0; animation: apparait .9s .45s var(--ease) forwards; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; opacity: 0; animation: apparait .9s .6s var(--ease) forwards; }
@keyframes apparait { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

.hero-dessin { position: relative; }
.hero-dessin svg { width: 100%; height: auto; overflow: visible; }
.plan-trace { stroke-dasharray: var(--l); stroke-dashoffset: var(--l); animation: trace 3.2s .5s var(--ease) forwards; }
.plan-trace.d2 { animation-delay: .75s; }
.plan-trace.d3 { animation-delay: 1s; }
@keyframes trace { to { stroke-dashoffset: 0; } }
.plan-fade { opacity: 0; animation: apparait 1s var(--ease) forwards; }
.machine-point { offset-rotate: auto; animation: roule 3.2s .5s var(--ease) forwards; opacity: 0; }
@keyframes roule { 0% { offset-distance: 0%; opacity: 1; } 100% { offset-distance: 100%; opacity: 1; } }

.hero-bas {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  border-top: 1px solid var(--trait-clair);
}
.hero-bas .wrap { display: flex; justify-content: space-between; align-items: center; height: 58px; color: rgba(255,255,255,.5); }
.defile { display: flex; align-items: center; gap: 10px; }
.defile i { width: 1px; height: 22px; background: rgba(255,255,255,.25); position: relative; overflow: hidden; }
.defile i::after { content: ""; position: absolute; left: 0; top: -100%; width: 100%; height: 100%; background: var(--jaune); animation: chute 1.8s infinite var(--ease); }
@keyframes chute { to { top: 100%; } }

/* ---------- Chiffres ---------- */
.chiffres { background: var(--encre-2); color: #fff; border-top: 1px solid var(--trait-clair); }
.chiffres .wrap { display: grid; grid-template-columns: repeat(4, 1fr); }
.chiffre { padding: 44px 28px 40px; border-left: 1px solid var(--trait-clair); }
.chiffre:first-child { border-left: 0; padding-left: 0; }
.chiffre-val { font-family: var(--f-titre); font-weight: 800; font-stretch: 110%; font-size: clamp(38px, 4.2vw, 56px); line-height: 1; letter-spacing: -.03em; }
.chiffre-val small { font-size: .42em; font-weight: 600; letter-spacing: 0; color: var(--jaune); margin-left: 4px; }
.chiffre p { margin: 12px 0 0; font-size: 14.5px; color: rgba(255,255,255,.62); max-width: 24ch; line-height: 1.45; }

/* ---------- Sections ---------- */
.section { padding: clamp(80px, 11vw, 150px) 0; position: relative; }
.fonce { background: var(--encre); color: #fff; }
.beton { background: var(--beton); }
.entete-section { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 40px; align-items: end; margin-bottom: clamp(48px, 6vw, 80px); }
.entete-section .chapo { margin: 0; }

/* Deux voies */
.voies { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.voie {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column;
  min-height: 520px; padding: 44px;
  border-radius: var(--rayon);
  background: var(--encre); color: #fff;
  isolation: isolate;
}
.voie:nth-child(2) { background: var(--azur); }
.voie-num { font-family: var(--f-mono); font-size: 12px; letter-spacing: .14em; color: var(--jaune); margin-bottom: auto; }
.voie:nth-child(2) .voie-num { color: #fff; }
.voie-visuel { position: absolute; right: 28px; top: 28px; width: 36%; max-width: 230px; opacity: .9; z-index: -1; transition: transform .8s var(--ease); }
.voie:hover .voie-visuel { transform: translate(-10px, 6px) scale(1.03); }
.voie h3 { font-size: clamp(30px, 3.3vw, 44px); font-weight: 800; font-stretch: 112%; text-transform: uppercase; margin: 28px 0 16px; }
.voie p { color: rgba(255,255,255,.72); max-width: 42ch; }
.voie ul { list-style: none; margin: 8px 0 32px; padding: 0; border-top: 1px solid var(--trait-clair); }
.voie li { border-bottom: 1px solid var(--trait-clair); }
.voie li a { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; font-weight: 600; transition: padding .3s var(--ease), color .2s; }
.voie li a:hover { padding-left: 8px; color: var(--jaune); }
.voie:nth-child(2) li a:hover { color: var(--encre); }
.voie li a span { font-family: var(--f-mono); font-size: 12px; opacity: .5; }

/* Gamme */
.gamme { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--trait); border-left: 1px solid var(--trait); }
.modele {
  position: relative; padding: 30px 26px 28px;
  border-right: 1px solid var(--trait); border-bottom: 1px solid var(--trait);
  background: var(--papier);
  transition: background .35s var(--ease);
  display: flex; flex-direction: column;
}
.modele:hover { background: #fff; }
.modele-tag { display: flex; justify-content: space-between; color: var(--texte-doux); }
.modele-img { aspect-ratio: 4 / 3; display: grid; place-items: center; margin: 22px 0 18px; }
.modele-img img { max-height: 100%; width: auto; mix-blend-mode: multiply; transition: transform .6s var(--ease); }
.modele:hover .modele-img img { transform: scale(1.05) rotate(-1deg); }
.modele h3 { font-size: 34px; font-weight: 900; font-stretch: 115%; letter-spacing: -.02em; }
.modele h3 span { color: var(--azur); }
.modele p { font-size: 15px; color: var(--texte-doux); margin: 10px 0 20px; }
.modele dl { margin: auto 0 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 14px; border-top: 1px dashed var(--trait); padding-top: 16px; }
.modele dt { font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--texte-doux); padding-top: 2px; }
.modele dd { margin: 0; font-weight: 700; text-align: right; }
.modele-phare { background: var(--encre); color: #fff; }
.modele-phare:hover { background: var(--encre-2); }
.modele-phare .modele-tag, .modele-phare p, .modele-phare dt { color: rgba(255,255,255,.6); }
.modele-phare h3 span { color: var(--jaune); }
.modele-phare dl { border-color: var(--trait-clair); }
.modele-phare .modele-img { background: #fff; border-radius: var(--rayon); padding: 14px; box-shadow: inset 0 0 0 1px rgba(244,194,13,.6); }
.modele-phare .modele-img img { mix-blend-mode: normal; }
.gamme-pied { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; margin-top: 36px; }
.gamme-pied p { margin: 0; color: var(--texte-doux); max-width: 64ch; font-size: 15px; }
.certif { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; color: var(--encre); }
.certif b { font-family: var(--f-titre); font-weight: 900; font-size: 22px; border: 2px solid currentColor; border-radius: 50% / 50%; padding: 0 6px; line-height: 1.2; letter-spacing: -.03em; }

/* Technique */
.technique { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(40px, 6vw, 90px); align-items: center; }
.coupe { position: relative; background: var(--encre-2); border: 1px solid var(--trait-clair); border-radius: var(--rayon); padding: 28px; }
.coupe-legende { display: flex; justify-content: space-between; color: rgba(255,255,255,.5); margin-bottom: 10px; }
.coupe svg { width: 100%; height: auto; }
.coupe .cote { opacity: 0; transition: opacity .8s .9s var(--ease); }
.coupe.vu .cote { opacity: 1; }
.coupe .profil-trace { stroke-dasharray: var(--l); stroke-dashoffset: var(--l); transition: stroke-dashoffset 2s var(--ease); }
.coupe.vu .profil-trace { stroke-dashoffset: 0; }
.coupe .remplissage { opacity: 0; transition: opacity 1s 1.4s var(--ease); }
.coupe.vu .remplissage { opacity: 1; }

.compar { margin-top: 36px; border-top: 1px solid var(--trait-clair); }
.compar-ligne { display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: 16px; padding: 15px 0; border-bottom: 1px solid var(--trait-clair); font-size: 15px; align-items: baseline; }
.compar-ligne > :first-child { color: rgba(255,255,255,.55); font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; }
.compar-ligne.tete { color: rgba(255,255,255,.5); font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; padding-bottom: 12px; }
.compar-ligne.tete span:nth-child(2) { color: var(--jaune); }
.compar-ligne span:nth-child(2) { color: #fff; font-weight: 600; }
.compar-ligne span:nth-child(3) { color: rgba(255,255,255,.6); }

/* Applications */
.applis { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 14px; }
.appli { margin: 0; position: relative; overflow: hidden; border-radius: var(--rayon); background: var(--encre); aspect-ratio: 4 / 3; grid-column: span 3; }
.appli.large { grid-column: span 6; aspect-ratio: auto; }
.appli img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05) brightness(.82); transition: filter .6s var(--ease), transform .8s var(--ease); }
.appli::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(11,22,36,.85)); }
.appli:hover img { filter: grayscale(0) contrast(1) brightness(.95); transform: scale(1.05); }
.appli figcaption { position: absolute; left: 18px; right: 18px; bottom: 16px; z-index: 2; color: #fff; }
.appli figcaption b { display: block; font-size: 17px; font-weight: 700; line-height: 1.2; }
.appli figcaption span { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--jaune); }
.applis-texte { grid-column: span 6; display: flex; flex-direction: column; justify-content: flex-end; padding: 10px 10px 4px 0; }
.applis-texte p { color: var(--texte-doux); max-width: 46ch; }

/* Savoir-faire */
.savoir { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--trait); }
.etape { padding: 36px 32px 10px 0; border-right: 1px solid var(--trait); }
.etape + .etape { padding-left: 32px; }
.etape:last-child { border-right: 0; }
.etape-num { font-family: var(--f-titre); font-weight: 900; font-stretch: 115%; font-size: 64px; line-height: 1; color: transparent; -webkit-text-stroke: 1.5px var(--azur); margin-bottom: 24px; }
.etape h3 { font-size: 22px; font-weight: 700; margin-bottom: 12px; line-height: 1.2; }
.etape p { color: var(--texte-doux); font-size: 16px; }

/* Partenariat / carte */
.monde { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 90px); align-items: center; }
.monde-carte svg { width: 100%; height: auto; }
.monde-carte .point { fill: var(--jaune); }
.monde-carte .halo { fill: none; stroke: var(--jaune); transform-box: fill-box; transform-origin: center; animation: halo 2.6s infinite var(--ease); }
@keyframes halo { from { transform: scale(.4); opacity: 1; } to { transform: scale(2.6); opacity: 0; } }
.monde ul { list-style: none; padding: 0; margin: 32px 0 40px; }
.monde li { display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--trait-clair); color: rgba(255,255,255,.75); }
.monde li::before { content: "→"; color: var(--jaune); font-weight: 700; }

/* Appel final */
.appel { background: var(--jaune); color: var(--encre); padding: clamp(70px, 9vw, 120px) 0; position: relative; overflow: hidden; }
.appel::before { /* bandes de chantier */
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 10px;
  background: repeating-linear-gradient(-45deg, var(--encre) 0 14px, transparent 14px 28px);
}
.appel .wrap { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 40px; align-items: end; }
.appel h2 { font-size: clamp(36px, 5.4vw, 76px); font-weight: 900; font-stretch: 115%; text-transform: uppercase; letter-spacing: -.025em; line-height: .95; }
.appel p { font-size: 18px; margin-bottom: 28px; max-width: 40ch; }
.appel .btns { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-ligne-encre { border-color: rgba(11,22,36,.35); color: var(--encre); }
.btn-ligne-encre:hover { border-color: var(--encre); background: rgba(11,22,36,.06); }

/* Pied de page */
.pied { background: var(--encre); color: rgba(255,255,255,.62); padding: 80px 0 0; font-size: 15px; }
.pied-grille { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 60px; }
.pied h4 { font-family: var(--f-mono); font-size: 11.5px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.4); margin-bottom: 18px; }
.pied ul { list-style: none; margin: 0; padding: 0; }
.pied li { margin-bottom: 10px; }
.pied a:hover { color: #fff; }
.pied .logo { margin-bottom: 22px; }
.pied-contact a { display: block; color: #fff; font-weight: 600; font-size: 17px; margin-bottom: 6px; }
.pied-contact a:hover { color: var(--jaune); }
.pied-bas { border-top: 1px solid var(--trait-clair); }
.pied-bas .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-top: 22px; padding-bottom: 22px; font-size: 13px; color: rgba(255,255,255,.4); }

/* ---------- Révélation au scroll ---------- */
.rv { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.rv.vu { opacity: 1; transform: none; }

/* ---------- Pages « à venir » ---------- */
.avenir {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column;
  background: var(--encre); color: #fff; overflow: hidden;
}
.avenir::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(143,182,227,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(143,182,227,.06) 1px, transparent 1px); background-size: 48px 48px; mask-image: radial-gradient(ellipse at 50% 50%, #000 20%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse at 50% 50%, #000 20%, transparent 75%); }
.avenir-corps { position: relative; z-index: 2; flex: 1; display: flex; align-items: center; padding: 140px 0 80px; }
.avenir h1 { font-size: clamp(44px, 7vw, 100px); font-weight: 900; font-stretch: 115%; text-transform: uppercase; letter-spacing: -.025em; line-height: .95; margin-bottom: 26px; }
.avenir h1 span { color: var(--jaune); }
.avenir .chapo { margin-bottom: 40px; }
.chantier {
  display: inline-flex; align-items: center; gap: 14px; margin-bottom: 30px;
  font-family: var(--f-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--jaune);
}
.chantier i { width: 48px; height: 12px; background: repeating-linear-gradient(-45deg, var(--jaune) 0 6px, transparent 6px 12px); }
.progression { width: min(420px, 100%); height: 2px; background: var(--trait-clair); margin: 0 0 40px; position: relative; overflow: hidden; }
.progression::after { content: ""; position: absolute; inset: 0 auto 0 0; width: 35%; background: var(--jaune); animation: coule 2.4s infinite var(--ease); }
@keyframes coule { from { left: -35%; } to { left: 100%; } }
.avenir-pied { position: relative; z-index: 2; border-top: 1px solid var(--trait-clair); }
.avenir-pied .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 20px; padding-bottom: 20px; font-size: 13px; color: rgba(255,255,255,.45); }
.avenir-pied a:hover { color: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav, .entete-actions .langue { display: none; }
  .burger { display: block; }
  .menu-ouvert .nav {
    display: flex; flex-direction: column; align-items: stretch;
    position: fixed; inset: 68px 0 auto 0; padding: 10px var(--gouttiere) 24px;
    background: var(--encre); border-bottom: 1px solid var(--trait-clair);
  }
  .menu-ouvert .nav a { padding: 14px 0; font-size: 17px; color: #fff; border-bottom: 1px solid var(--trait-clair); }
  .menu-ouvert .nav a::after { display: none; }
  .menu-ouvert .entete { background: var(--encre); }
  .menu-ouvert .entete .wrap { height: 68px; }
  .gamme { grid-template-columns: 1fr 1fr; }
  .gamme .modele:last-child { grid-column: 1 / -1; }
  .pied-grille { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .hero .wrap, .entete-section, .technique, .monde, .appel .wrap { grid-template-columns: 1fr; }
  .hero { padding-top: 120px; padding-bottom: 100px; }
  .hero-dessin { max-width: 560px; }
  .chiffres .wrap { grid-template-columns: 1fr 1fr; }
  .chiffre { padding: 32px 20px; border-bottom: 1px solid var(--trait-clair); }
  .chiffre:nth-child(odd) { border-left: 0; padding-left: 0; }
  .voies { grid-template-columns: 1fr; }
  .voie { min-height: 0; padding: 34px 28px; }
  .voie-num { margin-bottom: 120px; }
  .applis .appli { grid-column: span 6; }
  .applis .appli.large, .applis-texte { grid-column: span 12; }
  .applis .appli.large { aspect-ratio: 16 / 10; }
  .savoir { grid-template-columns: 1fr; }
  .etape, .etape + .etape { padding: 30px 0 10px; border-right: 0; border-bottom: 1px solid var(--trait); }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .entete .btn { display: none; }
  .logo-texte span { display: none; }
  .gamme { grid-template-columns: minmax(0, 1fr); }
  .modele h3 { font-size: 29px; }
  .compar-ligne { grid-template-columns: 1fr 1fr; }
  .compar-ligne > :first-child { grid-column: 1 / -1; }
  .pied-grille { grid-template-columns: 1fr; }
  .hero-bas .mono:last-child { display: none; }
  .hero-badge { font-size: 9.5px; letter-spacing: .05em; gap: 8px; }
  .hero-badge b { white-space: nowrap; }
  .btn { height: 50px; padding: 0 20px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .rv { opacity: 1; transform: none; }
}

/* ---------- Exclusivité (sceau + section) ---------- */
.sceau {
  position: absolute; right: 2%; bottom: 4%; width: clamp(120px, 13vw, 168px); aspect-ratio: 1;
  display: grid; place-items: center;
  border-radius: 50%; background: rgba(11,22,36,.82); border: 1px solid rgba(244,194,13,.5);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  opacity: 0; animation: apparait 1s 1.2s var(--ease) forwards;
}
.sceau svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.sceau-texte { transform-origin: 100px 100px; animation: tourne 28s linear infinite; }
@keyframes tourne { to { transform: rotate(360deg); } }
.sceau-coeur { display: flex; flex-direction: column; align-items: center; line-height: 1; font-family: var(--f-mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.7); }
.sceau-coeur b { font-family: var(--f-titre); font-weight: 900; font-stretch: 115%; font-size: clamp(36px, 4vw, 52px); color: var(--jaune); letter-spacing: -.03em; margin-bottom: 4px; }

.exclu { background: var(--beton); }
.exclu-tete { margin-bottom: clamp(48px, 6vw, 80px); }
.exclu-phrase {
  margin: 0; max-width: 22ch;
  font-family: var(--f-titre); font-weight: 800; font-stretch: 112%; text-transform: uppercase;
  font-size: clamp(32px, 4.8vw, 66px); line-height: 1; letter-spacing: -.02em; color: var(--encre);
}
.exclu-phrase em { font-style: normal; color: var(--azur); }
.exclu-phrase span { color: transparent; -webkit-text-stroke: 1.5px var(--encre); }
.exclu-grille { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 2px solid var(--encre); }
.exclu-item { padding: 30px 32px 6px 0; border-right: 1px solid var(--trait); }
.exclu-item + .exclu-item { padding-left: 32px; }
.exclu-item:last-child { border-right: 0; }
.exclu-item .mono { color: var(--azur); }
.exclu-item h3 { font-size: 23px; font-weight: 700; margin: 14px 0 10px; line-height: 1.2; }
.exclu-item p { color: var(--texte-doux); font-size: 16px; }
@media (max-width: 900px) {
  .exclu-grille { grid-template-columns: 1fr; }
  .exclu-item, .exclu-item + .exclu-item { padding: 26px 0 6px; border-right: 0; border-bottom: 1px solid var(--trait); }
  .sceau { bottom: 0; }
}
@media (prefers-reduced-motion: reduce) { .sceau { opacity: 1; } }

/* ---------- Logo Miller Curber ---------- */
.hero-marque { display: flex; align-items: center; gap: 16px; margin-bottom: 30px; opacity: 0; animation: apparait .9s .1s var(--ease) forwards; }
.hero-marque-plaque { display: grid; place-items: center; background: #fff; border-radius: var(--rayon); padding: 10px 16px; box-shadow: 0 0 0 1px rgba(244,194,13,.6), 0 12px 30px -12px rgba(0,0,0,.6); }
.hero-marque-plaque img { width: clamp(150px, 15vw, 200px); height: auto; }
.hero-marque .mono { font-size: 11px; line-height: 1.5; color: rgba(255,255,255,.7); border-left: 1px solid var(--trait-clair); padding-left: 16px; }

.exclu-tete { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 48px; align-items: end; }
.exclu-logo { margin: 0; padding: 34px 32px 26px; background: #fff; border-radius: var(--rayon); border-top: 4px solid var(--jaune); box-shadow: 0 24px 50px -30px rgba(11,22,36,.35); }
.exclu-logo img { width: 100%; height: auto; }
.exclu-logo figcaption { margin-top: 18px; padding-top: 14px; border-top: 1px dashed var(--trait); color: var(--texte-doux); font-size: 10.5px; }

/* ---------- Deux axes ---------- */
.axe { display: grid; grid-template-columns: 1fr 1fr; min-height: 680px; }
.axe-machines { background: #fff; }
.axe-partenaire { background: var(--encre); color: #fff; }
.axe-visuel { position: relative; display: grid; place-items: center; padding: clamp(30px, 5vw, 70px); overflow: hidden; }
.axe-machines .axe-visuel { background: #fff; }
.axe-partenaire .axe-visuel { background: var(--encre-2); border-left: 1px solid var(--trait-clair); }
.axe-partenaire .axe-visuel svg { width: min(100%, 460px); height: auto; }
.axe-legende { position: absolute; left: clamp(30px, 5vw, 70px); bottom: 28px; color: var(--texte-doux); font-size: 10.5px; }
.axe-partenaire .axe-legende { color: rgba(255,255,255,.45); }

.axe-corps { display: flex; flex-direction: column; justify-content: center; padding: clamp(56px, 7vw, 100px) clamp(24px, 6vw, 96px); max-width: 720px; }
.axe-machines .axe-corps { border-left: 1px solid var(--trait); }
.axe-partenaire .axe-corps { margin-left: auto; }
.axe-num { color: var(--azur); margin-bottom: 22px; }
.axe-partenaire .axe-num { color: var(--jaune); }
.axe h2 { font-size: clamp(32px, 3.6vw, 52px); font-weight: 800; font-stretch: 110%; text-transform: uppercase; letter-spacing: -.02em; line-height: 1; margin-bottom: 22px; }
.axe h2 em { font-style: normal; color: var(--azur); }
.axe-partenaire h2 em { color: var(--jaune); }
.axe-corps > p { color: var(--texte-doux); max-width: 52ch; }
.axe-partenaire .axe-corps > p { color: rgba(255,255,255,.68); }

.axe-trio { list-style: none; padding: 0; margin: 14px 0 34px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--trait); border-radius: var(--rayon); }
.axe-trio li { padding: 16px 16px 14px; border-left: 1px solid var(--trait); }
.axe-trio li:first-child { border-left: 0; }
.axe-trio b { display: block; font-size: 15px; font-weight: 700; margin-bottom: 3px; }
.axe-trio b::before { content: ""; display: block; width: 18px; height: 3px; background: var(--jaune); margin-bottom: 10px; }
.axe-trio span { display: block; font-size: 13px; color: var(--texte-doux); line-height: 1.4; }
.axe-partenaire .axe-trio, .axe-partenaire .axe-trio li { border-color: var(--trait-clair); }
.axe-partenaire .axe-trio span { color: rgba(255,255,255,.55); }

.axe-liens { display: flex; flex-direction: column; }
.axe-liens a {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 17px 0; border-top: 1px solid var(--trait);
  font-weight: 700; font-size: 17px;
  transition: color .25s, padding .35s var(--ease);
}
.axe-liens a:last-child { border-bottom: 1px solid var(--trait); }
.axe-liens svg { width: 18px; height: 18px; flex: none; color: var(--azur); transition: transform .35s var(--ease); }
.axe-liens a:hover { color: var(--azur); padding-left: 10px; }
.axe-liens a:hover svg { transform: translateX(6px); }
.axe-partenaire .axe-liens a { border-color: var(--trait-clair); }
.axe-partenaire .axe-liens svg { color: var(--jaune); }
.axe-partenaire .axe-liens a:hover { color: var(--jaune); }

@media (max-width: 900px) {
  .exclu-tete { grid-template-columns: 1fr; gap: 32px; }
  .exclu-logo { max-width: 420px; }
  .axe { grid-template-columns: 1fr; min-height: 0; }
  .axe-machines .axe-corps { border-left: 0; border-top: 1px solid var(--trait); }
  .axe-partenaire .axe-visuel { order: -1; border-left: 0; border-bottom: 1px solid var(--trait-clair); }
  .axe-partenaire .axe-visuel svg { width: min(70%, 320px); }
  .axe-corps { max-width: none; margin: 0; }
}
@media (max-width: 560px) {
  .hero-marque { gap: 12px; }
  .hero-marque .mono { font-size: 9.5px; padding-left: 12px; }
  .axe-trio { grid-template-columns: 1fr; }
  .axe-trio li { border-left: 0; border-top: 1px solid var(--trait); display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
  .axe-partenaire .axe-trio li { border-color: var(--trait-clair); }
  .axe-trio li:first-child { border-top: 0; }
  .axe-trio b::before { display: none; }
  .axe-trio span { text-align: right; }
  .axe-liens a { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) { .hero-marque { opacity: 1; } }

/* ---------- Machine qui pivote au défilement ---------- */
.tournant { --r: 0; position: relative; width: 100%; max-width: 720px; perspective: 1400px; }
.tournant img {
  position: relative; z-index: 1; width: 100%; height: auto;
  transform: rotateY(calc(var(--r) * 42deg)) rotateZ(calc(var(--r) * -1.5deg)) translateX(calc(var(--r) * -18px));
  transform-origin: 50% 70%;
  will-change: transform;
}
.tournant-ombre {
  position: absolute; left: 12%; right: 12%; bottom: 6%; height: 26px;
  background: radial-gradient(ellipse at center, rgba(11,22,36,.2), transparent 70%);
  transform: scaleX(calc(1 - (var(--r) * var(--r)) * .35)) translateX(calc(var(--r) * -18px));
}

/* ---------- Globe ---------- */
.globe { width: min(100%, 500px); aspect-ratio: 1; display: grid; place-items: center; }
.globe svg, .globe canvas { width: 100%; height: 100%; }
.globe-legende { position: absolute; top: 28px; right: clamp(24px, 4vw, 48px); list-style: none; margin: 0; padding: 0; display: flex; gap: 18px; color: rgba(255,255,255,.7); font-size: 10.5px; }
.globe-legende li { display: flex; align-items: center; gap: 7px; }
.globe-legende li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--jaune); box-shadow: 0 0 0 3px rgba(244,194,13,.18); }
@media (max-width: 560px) { .axe-partenaire .axe-legende { display: none; } .globe-legende { position: static; margin-top: 18px; justify-content: center; } .axe-partenaire .axe-visuel { display: flex; flex-direction: column; } }
@media (prefers-reduced-motion: reduce) { .tournant img, .tournant-ombre { transform: none; } }

/* Maquette 3D : remplace la photo une fois chargée */
.tournant.en-3d img, .tournant.en-3d .tournant-ombre { display: none; }
.tournant canvas { display: block; }
