/* ==========================================================================
   AKELION — Design system
   Palette de marque : #1B1A36 (bleu nuit) / #C3D200 (vert)
   ========================================================================== */

:root {
  /* --- Bleus : dérivés du #1B1A36 de marque --- */
  --navy-950: #08081a;
  --navy-900: #0d0c22;
  --navy-850: #13122c;
  --navy-800: #1b1a36; /* couleur de marque */

  /* --- Vert de marque --- */
  --lime: #c3d200;
  --lime-bright: #d6e520;

  /* --- Neutres --- */
  --paper: #f4f5ef;
  --text: #e8e9e2;
  --text-muted: #b3b3cb;   /* 9,4:1 sur #0d0c22 */
  /* Contrastes éclaircis le 5 octobre 2026 (lisibilité sur fond sombre) :
     ≥ 4,5:1 sur tous les fonds bleu nuit, y compris pour les petites notes. */
  --text-faint: #9a9aba;   /* 6,6:1 sur #0d0c22 */
  --line: rgba(195, 210, 0, 0.14);
  --line-soft: rgba(255, 255, 255, 0.08);

  /* --- Typographie --- */
  --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-body: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* --- Mesures --- */
  --shell: 1240px;
  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --section-y: clamp(5rem, 11vw, 9.5rem);

  /* --- Motion --- */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);

  /* --- Signature : l'octogone Akelion --- */
  --octagon: polygon(
    29% 0%, 71% 0%, 100% 29%, 100% 71%,
    71% 100%, 29% 100%, 0% 71%, 0% 29%
  );
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--navy-900);
  color: var(--text);
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.075rem);
  line-height: 1.65;
  font-weight: 350;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: inherit; }
button { font: inherit; color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }

/* Exposants (®, ©, unités) : hauteur de ligne nulle, sinon chaque ligne
   qui en contient s'écarte des autres. Dans les titres, le symbole reste
   discret au lieu des 83 % de taille appliqués par défaut. Les titres qui
   ont leur propre réglage (hero, chiffres clés…) gardent la priorité. */
sup { font-size: 0.6em; line-height: 0; vertical-align: super; }
:where(h1, h2, h3, .manifesto__statement) sup {
  font-size: 0.4em;
  letter-spacing: 0;
  vertical-align: 0.95em;
}

/* « Dynafilter® » : le symbole collait à la dernière lettre, surtout dans les
   titres resserrés. Marge exprimée dans la taille du symbole : elle suit
   chaque contexte (titre, carte, texte courant). */
sup.reg { margin-left: 0.25em; }

/* ® et © (sup.reg, posé par la génération) : toujours en blanc, y compris
   dans un titre ou un chiffre en vert */
sup.reg { color: var(--paper); }

::selection { background: var(--lime); color: var(--navy-900); }

:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translate(-50%, -120%);
  background: var(--lime);
  color: var(--navy-900);
  padding: 0.7rem 1.4rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  z-index: 200;
  transition: transform 0.25s var(--ease-out);
}
.skip-link:focus { transform: translate(-50%, 0); }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   Layout primitives
   -------------------------------------------------------------------------- */

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.band { padding-block: var(--section-y); position: relative; }
/* Regroupe deux sections consécutives sans les coller : un padding réduit,
   jamais nul, sinon le surtitre touche le bord de la section précédente.
   Un filet marque la frontière, sans quoi les sujets se confondent. */
.band--flush-top {
  padding-top: clamp(3rem, 6vw, 5rem);
  border-top: 1px solid var(--line-soft);
}

/* Le filet s'arrête à la grille du site plutôt que de traverser l'écran */
.band--flush-top {
  border-top: 0;
  position: relative;
}

.band--flush-top::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  /* Largeur du contenu, pas de la coque : le filet s'aligne sur les bords
     du texte au lieu de les dépasser d'une gouttière de chaque côté. */
  width: calc(min(var(--shell), 100%) - 2 * var(--gutter));
  height: 1px;
  background: var(--line-soft);
}

/* Deux sections qui se suivent : chacune garde le même écart réduit de son
   côté, celui des sections à filet (le filet, ou la bordure d'une section
   à fond propre, tombe à mi-distance des deux contenus). Sans cela, leurs
   grandes marges s'additionnaient (2 × 9,5 rem). La première et la
   dernière section de la page gardent leur grande marge. */
.band:has(+ .band) { padding-bottom: clamp(3rem, 6vw, 5rem); }
.band + .band { padding-top: clamp(3rem, 6vw, 5rem); }

/* --------------------------------------------------------------------------
   Eyebrow — dispositif structurel récurrent
   -------------------------------------------------------------------------- */

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--lime);
  margin-bottom: 1.75rem;
}

.eyebrow::before {
  content: "";
  width: 9px;
  height: 9px;
  flex: none;
  background: var(--lime);
  clip-path: var(--octagon);
}


/* --------------------------------------------------------------------------
   Typographie de section
   -------------------------------------------------------------------------- */

.h-display {
  font-size: clamp(2.2rem, 4.7vw, 4rem);
  font-stretch: 106%;
  font-weight: 700;
  letter-spacing: -0.024em;
  line-height: 1.1;
}

.h-section {
  font-size: clamp(1.9rem, 3.8vw, 2.95rem);
  font-stretch: 104%;
  font-weight: 650;
  letter-spacing: -0.024em;
  line-height: 1.14;
}

.h-card {
  font-size: clamp(1.15rem, 1.6vw, 1.35rem);
  font-stretch: 104%;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.2;
}

.lede {
  font-size: clamp(1.05rem, 1.25vw, 1.22rem);
  line-height: 1.72;
  color: var(--text-muted);
  max-width: 50ch;
}

.section-head { max-width: 60ch; margin-bottom: clamp(2.75rem, 5vw, 4.25rem); }
.section-head .lede { margin-top: 1.5rem; }

/* Un titre de section suivi directement de son texte, hors .section-head */
.h-section + .lede,
.h-section + p { margin-top: 1.5rem; }

/* --------------------------------------------------------------------------
   Boutons
   -------------------------------------------------------------------------- */

.btn {
  --btn-bg: var(--lime);
  --btn-fg: var(--navy-900);
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 1rem 1.85rem;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-mono);
  font-size: 0.79rem;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  clip-path: polygon(
    14px 0, 100% 0, 100% calc(100% - 14px),
    calc(100% - 14px) 100%, 0 100%, 0 14px
  );
  transition: background 0.3s var(--ease-out), transform 0.3s var(--ease-out);
}

.btn:hover { --btn-bg: var(--lime-bright); transform: translateY(-2px); }

/* Le clip-path rogne tout ce qui dépasse du bouton, y compris le contour
   de focus global (décalé de 3 px vers l'extérieur) : au clavier, le
   bouton actif était invisible. Le contour passe donc à l'intérieur. */
.btn:focus-visible { outline: 2px solid var(--navy-900); outline-offset: -6px; }
.btn--ghost:focus-visible { outline-color: var(--lime); }
.btn:active { transform: translateY(0); }

.btn__arrow { transition: transform 0.35s var(--ease-out); }
.btn:hover .btn__arrow { transform: translateX(5px); }

/* Contour du bouton secondaire. Une ombre interne serait rognée par le
   clip-path : les deux pans coupés resteraient sans trait. Le contour est
   donc une couronne découpée dans le même polygone (règle evenodd), qui
   suit aussi les angles biseautés. */
.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--text);
  --btn-line: rgba(255, 255, 255, 0.22);
}
.btn--ghost::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--btn-line);
  pointer-events: none;
  transition: background 0.3s var(--ease-out);
  clip-path: polygon(evenodd,
    14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px, 14px 0,
    14.41px 1px, 1px 14.41px, 1px calc(100% - 1px), calc(100% - 14.41px) calc(100% - 1px),
    calc(100% - 1px) calc(100% - 14.41px), calc(100% - 1px) 1px, 14.41px 1px);
}
.btn--ghost:hover {
  --btn-bg: rgba(195, 210, 0, 0.09);
  --btn-fg: var(--lime);
  --btn-line: var(--lime);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--lime);
  text-decoration: none;
}
.link-arrow::after { content: "→"; transition: transform 0.3s var(--ease-out); }
.link-arrow:hover::after { transform: translateX(4px); }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2.75rem;
}

/* --------------------------------------------------------------------------
   Navigation
   -------------------------------------------------------------------------- */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: border-color 0.4s var(--ease-out);
  border-bottom: 1px solid transparent;
}

/* Fond flou porté par une couche à part, jamais par .nav elle-même : un
   backdrop-filter sur .nav en ferait le cadre de ses éléments « fixed », et
   le menu mobile (.nav__links, plein écran) serait coupé à la hauteur du
   bandeau dès que la page défile. */
.nav::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: transparent;
  transition: background 0.4s var(--ease-out), backdrop-filter 0.4s var(--ease-out);
  pointer-events: none;
}

.nav.is-stuck { border-bottom-color: var(--line-soft); }

.nav.is-stuck::before {
  background: rgba(13, 12, 34, 0.78);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
}

/* Marque à gauche, liens centrés dans l'espace libre, puis le bloc
   « Nous contacter » + langue serré à droite, dans cet ordre sur toutes
   les pages. Sans liens (404, mentions), le CTA part seul à droite. */
.nav__inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: 5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  flex: none;
}

/* Logotype officiel (charte Akelion, version blanche) : le SVG inclut sa
   zone de protection, d'où une hauteur supérieure à celle des lettres. */
.brand__logo { width: auto; height: 34px; flex: none; }

.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 1.5vw, 1.75rem);
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Le bloc <nav> qui porte les liens se centre dans l'espace libre */
.nav__inner > nav { margin-inline: auto; }

.nav__link {
  position: relative;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 450;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  white-space: nowrap;
  padding-block: 0.4rem;
  transition: color 0.25s var(--ease-out);
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--lime);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease-out);
}

.nav__link:hover,
.nav__link[aria-current="page"],
.nav__item.is-current > .nav__trigger { color: var(--paper); }
.nav__link:hover::after,
.nav__link[aria-current="page"]::after,
.nav__item.is-current > .nav__trigger::after { transform: scaleX(1); }

/* Menus Solutions / Applications */
.nav__item { position: relative; }
.nav__trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: none;
  border: 0;
  cursor: pointer;
}
/* Taille figée : dans le bouton en flex, le libellé en nowrap écrasait la
   flèche à 3 px de large. */
.nav__chev {
  flex: none;
  width: 11px;
  height: 7px;
  opacity: 0.85;
  transition: transform 0.3s var(--ease-out);
}
.nav__trigger[aria-expanded="true"] .nav__chev { transform: rotate(180deg); }

.nav__sub {
  position: absolute;
  top: calc(100% + 1.3rem);
  left: -1rem;
  z-index: 110;
  min-width: 23rem;
  margin: 0;
  padding: 0.45rem;
  list-style: none;
  background: rgba(13, 12, 34, 0.97);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--line-soft);
  box-shadow: 0 24px 60px rgba(4, 4, 16, 0.55);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.25s var(--ease-out), transform 0.25s var(--ease-out), visibility 0.25s;
}
.nav__trigger[aria-expanded="true"] + .nav__sub { opacity: 1; visibility: visible; transform: none; }

.nav__sublink {
  display: grid;
  gap: 0.2rem;
  padding: 0.8rem 0.9rem;
  text-decoration: none;
  border-left: 2px solid transparent;
  transition: background 0.2s var(--ease-out), border-color 0.2s var(--ease-out);
}
.nav__sublink:hover,
.nav__sublink:focus-visible { background: rgba(195, 210, 0, 0.07); border-left-color: var(--lime); }
.nav__sublink[aria-current="page"] { border-left-color: var(--lime); }
.nav__subname {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--paper);
}
.nav__subdesc { font-size: 0.85rem; line-height: 1.4; color: var(--text-muted); }


.nav__cta { flex: none; margin-left: auto; padding: 0.72rem 1.3rem; font-size: 0.72rem; }
.nav__inner > nav ~ .nav__cta { margin-left: 0; }

.nav__toggle {
  display: none;
  width: 44px; height: 44px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0;
  place-items: center;
  /* Lignes groupées au centre : sans cela la grille étire ses rangées sur
     les 44 px du bouton, les traits s'écartent de ~15 px et la croix
     d'ouverture, calculée pour 7,5 px, se dessine en chevron. */
  align-content: center;
}

.nav__toggle span {
  display: block;
  width: 22px; height: 1.5px;
  background: var(--paper);
  transition: transform 0.35s var(--ease-out), opacity 0.2s linear;
}
.nav__toggle span + span { margin-top: 6px; }

.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;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  /* Marges proportionnelles à la hauteur d'écran : l'accueil tient dans
     l'écran (avec des marges fixes de 160 + 112 px, il dépassait de 50 à
     160 px selon les écrans). Le haut dégage la barre de navigation, le bas
     réserve la place de l'indication « Défiler ». */
  padding-block: max(5.5rem, 13vh) max(4.5rem, 9vh);
  overflow: hidden;
  isolation: isolate;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(60% 70% at 70% 50%, rgba(40, 44, 110, 0.55), transparent 72%),
    linear-gradient(175deg, var(--navy-850) 0%, var(--navy-900) 48%, var(--navy-950) 100%);
}

/* Papier millimétré du plan : trame fine de 24 px, trame majeure de 120 px */
.hero__grid {
  position: absolute;
  inset: -10%;
  z-index: -2;
  background-image:
    linear-gradient(to right, rgba(150, 160, 255, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(150, 160, 255, 0.05) 1px, transparent 1px),
    linear-gradient(to right, rgba(150, 160, 255, 0.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(150, 160, 255, 0.025) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
  mask-image: radial-gradient(75% 75% at 60% 50%, #000 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(75% 75% at 60% 50%, #000 40%, transparent 100%);
}

/* Cartouche : cadre du plan et repères d'angle */
.hero__frame {
  position: absolute;
  z-index: -1;
  inset: 6.5rem var(--gutter) 2rem;
  border: 1px solid rgba(150, 160, 255, 0.08);
  pointer-events: none;
}

.hero__frame i {
  position: absolute;
  width: 16px;
  height: 16px;
  border: 0 solid rgba(195, 210, 0, 0.55);
}
.hero__frame i:nth-child(1) { left: -1px; top: -1px; border-width: 1px 0 0 1px; }
.hero__frame i:nth-child(2) { right: -1px; top: -1px; border-width: 1px 1px 0 0; }
.hero__frame i:nth-child(3) { left: -1px; bottom: -1px; border-width: 0 0 1px 1px; }
.hero__frame i:nth-child(4) { right: -1px; bottom: -1px; border-width: 0 1px 1px 0; }

/* Plan technique du Dynafilter (assets/img/dynafilter-planche.svg) : vue de
   face qui tourne et élévation, tracées depuis le modèle 3D du rotor. Le
   dessin est en millimètres, origine au centre de la vue de face, placé à
   30 % de la largeur du plan. --d : diamètre du disque à l'écran ; la vue de
   face est centrée à 66 % de la largeur de l'en-tête, l'élévation sort de
   l'écran à droite. */
.hero__plan {
  --d: min(50vh, 34vw);
  position: absolute;
  z-index: -1;
  left: calc(66% - var(--d) * 300 / 475);
  top: calc(50% - var(--d) * 300 / 475);
  width: calc(var(--d) * 1000 / 475);
  aspect-ratio: 1000 / 600;
  pointer-events: none;
}

/* Halo derrière la vue de face, allumé une fois le tracé avancé */
.hero__plan::before {
  content: "";
  position: absolute;
  left: 30%;
  top: 50%;
  width: 62%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(195, 210, 0, 0.07), transparent);
  opacity: 0;
  animation: plan-fade 2s 1.6s var(--ease-out) forwards;
}

/* Vue de face (500 × 500 mm, centrée sur l'axe) et élévation (1030 × 600 mm
   à partir de x = 300 mm : tout l'empilement, il sort de l'écran à droite
   quelle que soit sa largeur), placées dans le cadre du plan (1000 × 600 mm,
   origine à 300 mm du bord gauche, à mi-hauteur) */
.hero__plan-face,
.hero__plan-elev,
.hero__plan-ink {
  position: absolute;
  display: block;
  max-width: none;   /* l'élévation déborde du cadre (103 %) : pas de plafond à 100 % */
}

.hero__plan-face { left: 5%; top: 8.3333%; width: 50%; height: 83.3333%; }

/* Rotation de la vue de face (sens antihoraire, un tour en 8,7 s, comme la
   maquette) : appliquée à l'image entière, elle est confiée à la carte
   graphique et reste fluide ; le tracé, dans le SVG, tourne avec elle */
.hero__plan-face {
  transform-origin: 50% 50%;
  animation: plan-spin 8.73s linear infinite;
  will-change: transform;
}

@keyframes plan-spin { to { transform: rotate(-360deg); } }
.hero__plan-elev { left: 60%; top: 0; width: 103%; height: 100%; }
.hero__plan-ink { inset: 0; width: 100%; height: 100%; overflow: visible; }

/* Calque des cotes : chaque trait est normalisé (pathLength = 1) puis
   dévoilé ; les délais suivent le tracé des SVG (vue de face 0,5 s → 2,6 s,
   élévation 0,5 s → 2,3 s) */
.hero__plan-ink path {
  fill: none;
  stroke: var(--lime);
  stroke-width: 0.9;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 1 1;
  stroke-dashoffset: 1;
  animation: plan-ink var(--dur, 0.8s) var(--ease-io) var(--at, 0s) forwards;
}

.pl-axis { opacity: 0.5; }
.pl-axis--h { --at: 0s; --dur: 1.4s; }
.pl-axis--v { --at: 0.2s; --dur: 1s; }
.pl-dim { opacity: 0.85; }
.pl-dim--face,
.pl-dim--ep { --at: 2.6s; --dur: 0.6s; }   /* les cotes des deux vues ensemble */

.hero__plan-ink text {
  font-family: var(--font-mono);
  opacity: 0;
  animation: plan-fade 0.45s var(--ease-out) var(--at, 0s) forwards;
}

.pl-text { fill: var(--lime); font-size: 14px; font-weight: 500; letter-spacing: 0.04em; }
.pl-text--face,
.pl-text--ep { --at: 3s; }
.pl-view { fill: rgba(195, 210, 0, 0.75); font-size: 11.5px; letter-spacing: 0.22em; }
.pl-view--a,
.pl-view--b { --at: 2.1s; }   /* intitulés des vues : 0,5 s avant les cotes */

/* Cartouche du plan, en bas à droite du cadre */
.hero__cartouche {
  position: absolute;
  z-index: -1;
  right: calc(var(--gutter) + 1.25rem);
  bottom: 3.25rem;
  width: 18.75rem;
  border: 1px solid rgba(195, 210, 0, 0.5);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  line-height: 1.6;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  pointer-events: none;
  opacity: 0;
  animation: plan-fade 0.6s var(--ease-out) 2.8s forwards;
}

.hero__cartouche b {
  display: block;
  padding: 0.5rem 0.8rem 0.45rem;
  border-bottom: 1px solid rgba(195, 210, 0, 0.5);
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--paper);
}

.hero__cartouche span { display: block; padding: 0 0.8rem; }
.hero__cartouche span:nth-of-type(1) { padding-top: 0.45rem; }
.hero__cartouche span:last-child { padding-bottom: 0.5rem; }

/* Écrans intermédiaires : la colonne de texte prend plus de place relative,
   le plan se décale vers la droite */
@media (min-width: 901px) and (max-width: 1365px) {
  .hero__plan { --d: min(48vh, 31vw); left: calc(69% - var(--d) * 300 / 475); }
}

@keyframes plan-ink { to { stroke-dashoffset: 0; } }
@keyframes plan-fade { to { opacity: 1; } }

/* La coque garde sa largeur pour que le texte s'aligne sur la marque et
   sur les sections suivantes ; seule la colonne de contenu est bornée. */
.hero__content { position: relative; }
:where(.hero__content) > * { max-width: 44rem; }

.hero__title {
  margin-bottom: min(2.6rem, 3.6vh);
  /* Accroche en deux phrases (quatre lignes) : un cran sous .h-display pour
     laisser le plan technique dégagé à droite. La taille suit aussi la
     hauteur d'écran, pour que les quatre lignes tiennent sur un portable. */
  font-size: clamp(2.2rem, min(4.2vw, 6.4vh), 3.6rem);
}

.hero__title em {
  font-style: normal;
  color: var(--lime);
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin-top: min(3.25rem, 3.6vh);
  padding-top: min(1.75rem, 2.4vh);
  border-top: 1px solid var(--line-soft);
  font-family: var(--font-mono);
  font-size: 0.73rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-faint);
}

/* Centré en bas : à gauche, il tombait sur la rangée de liens Industrie,
   Agroalimentaire, Campings. */
.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: max(1.25rem, 2.2vh);
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-faint);
  text-decoration: none;
}

.hero__scroll-track {
  width: 1px;
  height: 34px;
  background: var(--line-soft);
  position: relative;
  overflow: hidden;
}

.hero__scroll-track::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--lime);
  animation: scroll-drop 2.4s var(--ease-io) infinite;
}

/* Écrans peu hauts (portables) : le texte prime. L'indication « Défiler »
   n'a plus la place de se loger sous la rangée de liens, et les espacements
   se resserrent pour que l'accueil tienne dans l'écran. */
@media (max-height: 820px) {
  .hero__scroll { display: none; }
  .hero { padding-block: max(5.25rem, 12vh) max(2.5rem, 6vh); }
  .hero .lede { font-size: 1rem; line-height: 1.62; }
  .hero .btn-row { margin-top: 1.5rem; }
}

@keyframes scroll-drop {
  0%       { transform: translateY(-100%); }
  55%, 100% { transform: translateY(100%); }
}

/* --------------------------------------------------------------------------
   Manifeste
   -------------------------------------------------------------------------- */

.manifesto {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}

.manifesto__statement {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.35rem);
  font-stretch: 104%;
  font-weight: 500;
  line-height: 1.22;
  letter-spacing: -0.025em;
  color: var(--paper);
}

.manifesto__statement strong {
  font-weight: 700;
  color: var(--lime);
}

.manifesto__body { display: grid; gap: 1.35rem; color: var(--text-muted); }
.manifesto__body strong { color: var(--text); font-weight: 550; }

/* --------------------------------------------------------------------------
   Chiffres
   -------------------------------------------------------------------------- */

.figures {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: clamp(1.5rem, 3vw, 2.75rem);
}

.figure {
  padding-left: clamp(1rem, 1.6vw, 1.5rem);
  border-left: 1px solid var(--line-soft);
}

.figure__value {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4.6vw, 3.5rem);
  font-stretch: 110%;
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1;
  color: var(--lime);
  font-variant-numeric: tabular-nums;
}

.figure__value sup {
  font-size: 0.42em;
  vertical-align: super;
  letter-spacing: 0;
}


.figure__label {
  margin-top: 0.85rem;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--text-muted);
  max-width: 24ch;
}

/* Notes et mentions : même voix que le texte courant, en plus petit.
   La chasse fixe reste réservée aux libellés courts (surtitres, boutons,
   étiquettes) ; une phrase entière en monospace se lit mal et brouille
   la hiérarchie typographique. */
.figures__note {
  margin-top: 1.75rem;
  font-size: 0.8rem;
  line-height: 1.6;
  color: var(--text-faint);
  max-width: 62ch;
}

/* --------------------------------------------------------------------------
   Piliers
   -------------------------------------------------------------------------- */

.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(0.9rem, 1.6vw, 1.4rem);
}

.pillar {
  position: relative;
  padding: clamp(2rem, 3.4vw, 2.9rem);
  background: linear-gradient(158deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.008));
  border: 1px solid var(--line-soft);
  overflow: hidden;
  transition: border-color 0.45s var(--ease-out), transform 0.45s var(--ease-out);
}

.pillar::after {
  content: "";
  position: absolute;
  left: 0; top: 0;
  width: 100%; height: 2px;
  background: var(--lime);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.55s var(--ease-out);
}

.pillar:hover { border-color: var(--line); transform: translateY(-4px); }
.pillar:hover::after { transform: scaleX(1); }

.pillar__mark {
  width: 42px; height: 42px;
  display: grid;
  place-items: center;
  background: rgba(195, 210, 0, 0.1);
  clip-path: var(--octagon);
  margin-bottom: 1.6rem;
  color: var(--lime);
}

.pillar__title { margin-bottom: 0.8rem; }
.pillar__text { color: var(--text-muted); font-size: 0.96rem; }

/* --------------------------------------------------------------------------
   Technologies
   -------------------------------------------------------------------------- */

.tech-band {
  background: linear-gradient(180deg, var(--navy-900), var(--navy-850) 50%, var(--navy-900));
  border-block: 1px solid var(--line-soft);
}

.tech-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: clamp(1.25rem, 2.5vw, 2rem);
  align-items: stretch;
}

/* Carte principale — le seul produit actuel */
.tech-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 3rem;
  min-height: 27rem;
  padding: clamp(2rem, 4vw, 3.2rem);
  background:
    radial-gradient(120% 90% at 88% 8%, rgba(61, 59, 122, 0.5), transparent 62%),
    var(--navy-800);
  border: 1px solid var(--line);
  text-decoration: none;
  overflow: hidden;
  isolation: isolate;
  transition: border-color 0.45s var(--ease-out), transform 0.55s var(--ease-out);
}

.tech-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(70% 70% at var(--mx, 70%) var(--my, 20%), rgba(195, 210, 0, 0.13), transparent 62%);
  opacity: 0;
  transition: opacity 0.5s var(--ease-out);
}

.tech-card:hover { border-color: var(--lime); transform: translateY(-4px); }
.tech-card:hover::before { opacity: 1; }

/* Croquis du Dynafilter : contours seuls, généré sur les cotes réelles. */
.tech-card__sketch {
  position: absolute;
  /* Le croquis entre par la droite : sa moitié droite déborde de la carte,
     qui la rogne. On ne voit que la tête et le début de l'empilement. */
  left: 56%;
  width: 98%;
  top: 50%;
  z-index: -1;
  color: var(--lime);
  opacity: 0.4;
  transform: translateY(-50%);
  transition: opacity 0.6s var(--ease-out);
}

.tech-card:hover .tech-card__sketch,
.tech-card:focus-visible .tech-card__sketch { opacity: 0.78; }

/* Le texte s'arrête avant le croquis : sur deux colonnes, le descriptif et
   les étiquettes débordaient sous la tête du rotor, là où le dessin est le
   plus dense. Un voile, peint après le croquis (même z-index, ordre du
   document), adoucit la jonction sans éteindre le dessin. */
.tech-card__desc { max-width: min(38ch, 56%); }
.tech-card__specs { max-width: 58%; }
.tech-card--sm .tech-card__desc,
.tech-card--sm .tech-card__specs { max-width: 60%; }

.tech-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(90deg,
    rgba(27, 26, 54, 0.7) 0%,
    rgba(27, 26, 54, 0.55) 46%,
    transparent 64%);
}

/* Téléphone : la carte est trop étroite pour réserver une colonne au
   croquis. Le texte reprend toute la largeur et le dessin passe en filigrane. */
@media (max-width: 560px) {
  .tech-card__desc,
  .tech-card__specs,
  .tech-card--sm .tech-card__desc,
  .tech-card--sm .tech-card__specs { max-width: none; }
  .tech-card__sketch { opacity: 0.22; }
  .tech-card::after { background: rgba(27, 26, 54, 0.35); }
}

/* Rotation axiale : seuls les rayons de la face avant tournent, puisque
   les nervures sont invariantes par rotation autour de l'axe. Le cercle
   sans contour centre la boîte englobante sur l'axe. */
.tech-card__rotor {
  transform-box: fill-box;
  transform-origin: 50% 50%;
  animation: rotor-spin 4.2s linear infinite;
  animation-play-state: paused;
}

.tech-card:hover .tech-card__rotor,
.tech-card:focus-visible .tech-card__rotor { animation-play-state: running; }

@keyframes rotor-spin {
  to { transform: rotate(360deg); }
}

/* --- Animations au survol des autres cartes : une par solution, discrètes,
   jouées uniquement au survol ou au focus clavier (comme le rotor). --- */

/* BlueGuest : une onde de lumière parcourt les anneaux de la cuve, du fond
   vers l'extrémité avant, comme l'eau qui la traverse. Le croquis est rogné
   à droite : seuls les anneaux 4 à 7 sont visibles, l'onde part donc du
   4e dès le survol (les anneaux cachés reçoivent un retard négatif).
   --o rend à chaque anneau son opacité d'origine entre deux passages. */
.tech-card:hover .tech-card__ring,
.tech-card:focus-visible .tech-card__ring {
  animation: ring-flow 2.6s linear infinite;
  animation-delay: calc((var(--i) - 4) * 0.16s);
}

@keyframes ring-flow {
  0%, 30%, 100% { opacity: var(--o); stroke-width: 1.15px; }
  9%            { opacity: 1; stroke-width: 1.9px; }
}

/* Dynatank : des bulles d'aération montent dans la partie visible de la
   cuve. Retards négatifs : elles sont déjà réparties dès le survol. */
.tech-card__bubble { opacity: 0; }

.tech-card:hover .tech-card__bubble,
.tech-card:focus-visible .tech-card__bubble {
  animation: bubble-rise var(--t) linear infinite;
  animation-delay: var(--d);
}

@keyframes bubble-rise {
  0%   { transform: translateY(0); opacity: 0; }
  15%  { opacity: 0.9; }
  80%  { opacity: 0.75; }
  100% { transform: translateY(var(--h)); opacity: 0; }
}

/* Neural Water Management : les trois capteurs clignotent dans l'ordre
   2 > 1 > 3, à 0,2 s d'intervalle, puis 2 s de pause (cycle de 2,65 s). */
.tech-card__node { fill: currentColor; fill-opacity: 0; }

.tech-card:hover .tech-card__node,
.tech-card:focus-visible .tech-card__node {
  animation: node-blink 2.65s linear infinite;
  animation-delay: var(--d);
}

@keyframes node-blink {
  0%, 9.4%, 100% { fill-opacity: 0; opacity: 0.7; }
  3.4%           { fill-opacity: 0.9; opacity: 1; }
}

.tech-card__status {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lime);
}

.tech-card__status::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 0 rgba(195, 210, 0, 0.55);
  animation: pulse 2.6s var(--ease-io) infinite;
}

@keyframes pulse {
  0%       { box-shadow: 0 0 0 0 rgba(195, 210, 0, 0.5); }
  70%, 100% { box-shadow: 0 0 0 11px rgba(195, 210, 0, 0); }
}

.tech-card__name {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5.4vw, 4rem);
  font-stretch: 112%;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.95;
  color: var(--paper);
  margin: 1.5rem 0 1.1rem;
}

.tech-card__name sup {
  font-size: 0.26em;
  vertical-align: super;
  letter-spacing: 0;
}

.tech-card__desc { color: var(--text-muted); }

.tech-card__specs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  margin-top: 1.9rem;
  list-style: none;
  padding: 0;
}

.tech-card__specs li {
  font-family: var(--font-mono);
  font-size: 0.71rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 0.4rem 0.8rem;
  border: 1px solid var(--line-soft);
}

.tech-card__go {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--lime);
}

.tech-card__go svg { transition: transform 0.4s var(--ease-out); }
.tech-card:hover .tech-card__go svg { transform: translateX(6px); }

/* --------------------------------------------------------------------------
   Entreprise
   -------------------------------------------------------------------------- */

.company {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 5rem);
  /* Alignées en haut : centrées, la colonne de gauche démarrait plus bas
     que la liste et les deux surtitres ne tombaient plus sur la même ligne. */
  align-items: start;
}

.company__list { list-style: none; margin: 0; padding: 0; display: grid; }

.company__item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.35rem;
  padding-block: 1.6rem;
  border-bottom: 1px solid var(--line-soft);
}
.company__item:first-child { padding-top: 0; }

.company__index {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--lime);
  padding-top: 0.35rem;
}

.company__item h3 { margin-bottom: 0.5rem; }
.company__item p { color: var(--text-muted); font-size: 0.96rem; }

/* --------------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------------- */

.contact-band {
  background: linear-gradient(180deg, var(--navy-900), var(--navy-950));
  border-top: 1px solid var(--line-soft);
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}

.contact__details { display: grid; gap: 1.4rem; margin-top: 2.5rem; }

.contact__row {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 1rem;
  align-items: baseline;
  padding-bottom: 1.4rem;
  border-bottom: 1px solid var(--line-soft);
}

.contact__key {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.contact__val { color: var(--text); font-style: normal; }
.contact__val a { color: inherit; text-decoration: none; border-bottom: 1px solid var(--line); transition: color 0.25s var(--ease-out); }
.contact__val a:hover { color: var(--lime); }

/* --- Formulaire --- */

.form {
  background: rgba(255, 255, 255, 0.022);
  border: 1px solid var(--line-soft);
  padding: clamp(1.6rem, 3.4vw, 2.6rem);
}

.form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.field { display: grid; gap: 0.55rem; }
.field--full { grid-column: 1 / -1; }

.field label {
  font-family: var(--font-mono);
  font-size: 0.71rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.field label .req { color: var(--lime); }

.field input,
.field select,
.field textarea {
  width: 100%;
  background: rgba(8, 8, 26, 0.6);
  border: 1px solid var(--line-soft);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.97rem;
  padding: 0.85rem 1rem;
  border-radius: 0;
  transition: border-color 0.25s var(--ease-out), background 0.25s var(--ease-out);
}

.field textarea { resize: vertical; min-height: 7.5rem; }

.field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 2.6rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23c3d200' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  color-scheme: dark;
}
.field select option { background: var(--navy-900); color: var(--text); }

.field--choice { border: 0; margin: 0; padding: 0; min-width: 0; }
.field--choice legend {
  padding: 0;
  margin-bottom: 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.71rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.choice { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1.4rem; min-height: 3rem; }
.field .choice label {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-body);
  font-size: 0.97rem;
  letter-spacing: 0;
  text-transform: none;
  color: var(--text);
  cursor: pointer;
}
.choice input { width: 18px; height: 18px; margin: 0; accent-color: var(--lime); }


.field input::placeholder,
.field textarea::placeholder { color: var(--text-faint); }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--lime);
  background: rgba(8, 8, 26, 0.85);
}

.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] { border-color: #ff6b5e; }

.field__error {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  color: #ff8a7e;
  min-height: 1rem;
}

.form__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
  margin-top: 1.9rem;
}

.form__note {
  flex: 1 1 22rem;
  font-size: 0.82rem;
  line-height: 1.6;
  color: var(--text-faint);
  max-width: 52ch;
}
.form__note a { color: var(--text-muted); text-underline-offset: 2px; }
.form__note a:hover { color: var(--lime); }

.form__status {
  margin-top: 1.5rem;
  padding: 1rem 1.2rem;
  border-left: 2px solid var(--lime);
  background: rgba(195, 210, 0, 0.07);
  font-size: 0.93rem;
  color: var(--text);
  display: none;
}

.form__status.is-visible { display: block; animation: status-in 0.5s var(--ease-out); }
.form__status.is-error { border-color: #ff6b5e; background: rgba(255, 107, 94, 0.08); }

@keyframes status-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.btn[data-busy="true"] { opacity: 0.6; pointer-events: none; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.footer {
  background: var(--navy-950);
  border-top: 1px solid var(--line-soft);
  padding-block: clamp(2.5rem, 5vw, 3.75rem);
}

.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: clamp(2rem, 4vw, 3.5rem);
  padding-bottom: clamp(2rem, 4vw, 2.75rem);
}

.footer__home { display: inline-block; }
.footer__logo { width: 200px; height: auto; }

.footer__tag {
  margin-top: 1.25rem;
  font-size: 0.92rem;
  color: var(--text-muted);
  max-width: 34ch;
  line-height: 1.6;
}

.footer__contact {
  display: grid;
  gap: 0.35rem;
  margin-top: 1.25rem;
  font-style: normal;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.footer__contact a { text-decoration: none; transition: color 0.25s var(--ease-out); }
.footer__contact a:hover { color: var(--lime); }

/* Repère textuel sobre, pas un macaron de certification */
.footer__mission {
  display: inline-flex;
  margin-top: 1.4rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--lime);
  text-decoration: none;
  transition: background 0.25s var(--ease-out);
}
.footer__mission:hover { background: rgba(195, 210, 0, 0.08); }

.footer__title {
  margin-bottom: 1.05rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.footer__col ul { display: grid; gap: 0.6rem; margin: 0; padding: 0; list-style: none; }
.footer__col a {
  font-size: 0.92rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.25s var(--ease-out);
}
.footer__col a:hover { color: var(--lime); }

/* Rangée institutionnelle : ~14 px, liens espacés et repérables */
.footer__inst {
  padding-block: 1.5rem;
  border-block: 1px solid var(--line-soft);
}
.footer__inst ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer__inst a {
  display: inline-block;
  padding-block: 0.25rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.25s var(--ease-out);
}
.footer__inst a:hover { color: var(--lime); }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--text-faint);
}

.footer__langs { display: flex; gap: 1.25rem; }
.footer__langs a { color: inherit; text-decoration: none; }
.footer__langs a:hover { color: var(--lime); }

@media (max-width: 900px) {
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .footer__grid { grid-template-columns: minmax(0, 1fr); }
  .footer__inst a, .footer__col a { font-size: 0.94rem; }
}

/* --------------------------------------------------------------------------
   Révélations au scroll
   -------------------------------------------------------------------------- */

[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 0.85s var(--ease-out) var(--reveal-delay, 0ms),
    transform 0.85s var(--ease-out) var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

/* will-change relâché après coup : le garder monopolise la mémoire GPU
   sur la quarantaine d'éléments révélables de la page. */
[data-reveal].is-revealed { opacity: 1; transform: none; will-change: auto; }

/* Variante séquentielle : les cartes montent de quelques pixels, vite,
   une par une. Mouvement court pour rester lisible à cadence rapprochée. */
[data-reveal="seq"] {
  transform: translateY(22px);
  transition:
    opacity 0.34s var(--ease-out) var(--reveal-delay, 0ms),
    transform 0.42s var(--ease-out) var(--reveal-delay, 0ms);
}

[data-reveal="seq"].is-revealed { transform: none; }

[data-parallax] { will-change: transform; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 900px) {
  .manifesto,
  .company,
  .contact { grid-template-columns: minmax(0, 1fr); }

  .tech-grid { grid-template-columns: minmax(0, 1fr); }

  /* Le texte occupe la largeur : le plan passe en filigrane, en haut */
  .hero__frame { display: none; }
  .hero__plan { --d: 80vw; left: calc(60% - var(--d) * 300 / 475); top: 4.5rem; opacity: 0.32; }
  .hero__plan-ink text,
  .hero__cartouche { display: none; }
}

/* Menu déroulant : sous 1280 px, la navigation (6 entrées, deux menus)
   passe dans un panneau. Le CTA « Nous contacter » reste visible jusqu'à
   780 px ; les sous-menus s'y déplient sur place. */
@media (max-width: 1279px) {
  .nav__toggle { display: grid; order: 3; }

  .nav__links {
    position: fixed;
    /* Panneau pleine hauteur : la page ne transparaît plus sous le menu */
    inset: 5rem 0 0 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem var(--gutter) 2rem;
    background: rgba(13, 12, 34, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--line-soft);
    clip-path: inset(0 0 100% 0);
    visibility: hidden;
    transition: clip-path 0.5s var(--ease-out), visibility 0s 0.5s;
  }

  .nav__links[data-open="true"] {
    clip-path: inset(0 0 0 0);
    visibility: visible;
    transition: clip-path 0.5s var(--ease-out), visibility 0s;
  }

  .nav__item { width: 100%; border-bottom: 1px solid var(--line-soft); }

  .nav__link {
    display: flex;
    width: 100%;
    padding-block: 1.05rem;
    font-size: 0.86rem;
  }
  .nav__link::after { display: none; }

  .nav__trigger { justify-content: space-between; }
  .nav__sub {
    position: static;
    min-width: 0;
    padding: 0 0 0.8rem;
    background: none;
    border: 0;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    display: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .nav__trigger[aria-expanded="true"] + .nav__sub { display: block; }
  .nav__sublink { padding: 0.6rem 0.9rem; }
}

@media (min-width: 1280px) {
  .nav__links { gap: 1.25rem; }
  /* Le bouton « Nous contacter » mène déjà à la page Contact : le lien en
     double n'est affiché que dans le panneau mobile. */
  .nav__item--contact { display: none; }
}

/* Souris sur grand écran : le menu s'ouvre aussi au survol */
@media (min-width: 1280px) and (hover: hover) {
  .nav__item--menu:hover > .nav__sub { opacity: 1; visibility: visible; transform: none; }
  .nav__item--menu:hover > .nav__trigger .nav__chev { transform: rotate(180deg); }
}

@media (max-width: 780px) {
  .nav__cta { display: none; }

  .hero { min-height: auto; padding-block: 8.5rem 5.5rem; }
  .hero__scroll { display: none; }

  .form__grid { grid-template-columns: minmax(0, 1fr); }

  .contact__row { grid-template-columns: minmax(0, 1fr); gap: 0.4rem; }
}

@media (max-width: 480px) {
  .btn { width: 100%; justify-content: space-between; }
  .btn-row { flex-direction: column; }
  .form__foot .btn { width: 100%; }
}

/* --------------------------------------------------------------------------
   Accessibilité — mouvement réduit
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  [data-reveal],
  [data-reveal="seq"] { opacity: 1; transform: none; }
  .tech-card__rotor { animation: none; }
  /* Les règles de survol sont plus spécifiques : !important pour les couper */
  .tech-card .tech-card__ring,
  .tech-card .tech-card__bubble,
  .tech-card .tech-card__node { animation: none !important; }
  .hero__plan *,
  .hero__plan::before,
  .hero__cartouche { animation-delay: 0s !important; }
  .hero__plan-face { animation: none !important; }
  .hero__scroll-track::after { display: none; }
}

/* --------------------------------------------------------------------------
   Sélecteur de langue
   -------------------------------------------------------------------------- */

.lang {
  position: relative;
  flex: none;
}

.lang__toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.6rem 0.75rem;
  min-height: 44px;
  background: transparent;
  border: 1px solid var(--line-soft);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.09em;
  cursor: pointer;
  transition: color 0.25s var(--ease-out), border-color 0.25s var(--ease-out);
}

.lang__toggle:hover,
.lang__toggle[aria-expanded="true"] { color: var(--paper); border-color: var(--line); }

.lang__flag { font-size: 0.95rem; line-height: 1; }

.lang__chev {
  transition: transform 0.3s var(--ease-out);
  opacity: 0.7;
}
.lang__toggle[aria-expanded="true"] .lang__chev { transform: rotate(180deg); }

.lang__menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  min-width: 9.5rem;
  margin: 0;
  padding: 0.35rem;
  list-style: none;
  background: rgba(13, 12, 34, 0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--line-soft);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.25s var(--ease-out), transform 0.25s var(--ease-out),
              visibility 0.25s;
  z-index: 110;
}

.lang__toggle[aria-expanded="true"] + .lang__menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang__link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.62rem 0.7rem;
  font-family: var(--font-mono);
  font-size: 0.73rem;
  letter-spacing: 0.07em;
  color: var(--text-muted);
  text-decoration: none;
  transition: background 0.2s var(--ease-out), color 0.2s var(--ease-out);
}

.lang__link:hover { background: rgba(195, 210, 0, 0.09); color: var(--lime); }

.lang__link[aria-current="true"] {
  color: var(--lime);
  background: rgba(195, 210, 0, 0.06);
}

.lang__code { font-weight: 600; }
.lang__name { margin-left: auto; opacity: 0.6; font-size: 0.68rem; }

@media (max-width: 780px) {
  /* Reste visible sur mobile : il se place à gauche du bouton de menu */
  .lang { order: 2; margin-left: auto; }
  .lang__toggle { padding: 0.55rem 0.6rem; font-size: 0.68rem; }
  .nav__toggle { order: 3; }
}

/* Drapeaux SVG — l'emoji drapeau n'existe pas sous Windows */
.flag-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.lang__flag {
  width: 18px;
  height: 13px;
  flex: none;
  border-radius: 2px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.lang__link .lang__flag { width: 20px; height: 14px; }

/* Le surtitre de la page d'erreur peut recevoir un drapeau injecté par JS */
.eyebrow .lang__flag { margin-right: 0.1rem; }

.eyebrow--flag::before { display: none; }

/* --------------------------------------------------------------------------
   Crédibilité institutionnelle
   -------------------------------------------------------------------------- */

.backing {
  margin-top: clamp(3rem, 6vw, 4.5rem);
  padding-top: clamp(2rem, 4vw, 2.75rem);
  border-top: 1px solid var(--line-soft);
}

.backing__lead {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: clamp(1.25rem, 2.5vw, 1.75rem);
}

.backing__list {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(0.5rem, 1.2vw, 0.75rem);
  list-style: none;
  margin: 0;
  padding: 0;
}

.backing__item {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.72rem 1.15rem;
  border: 1px solid var(--line-soft);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  transition: border-color 0.35s var(--ease-out), color 0.35s var(--ease-out);
}

.backing__item:hover { border-color: var(--line); color: var(--paper); }

.backing__item::before {
  content: "";
  width: 8px;
  height: 8px;
  flex: none;
  background: var(--lime);
  clip-path: var(--octagon);
  opacity: 0.75;
}

.backing__note {
  margin-top: clamp(1.1rem, 2.2vw, 1.6rem);
  font-size: 0.8rem;
  line-height: 1.65;
  color: var(--text-faint);
}

/* Accueil : les quatre offres, de même importance (grille 2 × 2) */
.tech-grid--four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tech-grid--four .tech-card { min-height: 25rem; }
.tech-grid--four .tech-card__name { font-size: clamp(2rem, 3.4vw, 2.9rem); }

@media (max-width: 900px) {
  .tech-grid--four { grid-template-columns: minmax(0, 1fr); }
  .tech-grid--four .tech-card { min-height: 0; gap: 2rem; }
}

.hero__meta a { color: inherit; text-decoration: none; transition: color 0.25s var(--ease-out); }
.hero__meta a:hover { color: var(--lime); }

.figures--spaced { margin-top: clamp(3rem, 6vw, 4.5rem); }

/* Accueil : bloc de preuve (essai documenté) */
.proof {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
.proof__card { align-self: center; }
.proof__note { margin-top: 1.1rem; font-size: 0.8rem; line-height: 1.55; color: var(--text-faint); }

.uses--three { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

/* Accueil : fondateurs */
.team-mini {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}
.team-mini li { display: flex; align-items: center; gap: 0.9rem; }
.team-mini img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  clip-path: var(--octagon);
}
.team-mini span { display: grid; font-size: 0.86rem; color: var(--text-muted); line-height: 1.4; }
.team-mini strong { font-family: var(--font-display); font-weight: 600; font-size: 1rem; color: var(--paper); }

.company__item a { color: var(--text); text-underline-offset: 2px; }
.company__item a:hover { color: var(--lime); }

@media (max-width: 900px) {
  .proof { grid-template-columns: minmax(0, 1fr); }
}

/* Seconde carte technologie : même traitement, échelle réduite */
.tech-card--sm { min-height: 24rem; }

.tech-card__name--sm {
  font-size: clamp(2rem, 3.6vw, 2.85rem);
}

/* Le halo suit le curseur, comme sur la carte principale : --mx et --my
   sont mises à jour par main.js. */
.tech-card--sm::before {
  background: radial-gradient(76% 76% at var(--mx, 70%) var(--my, 20%),
              rgba(195, 210, 0, 0.14), transparent 62%);
}
