/*
  YACHTMER — style.css
  Jetons, base, composants et sections du site (yachtmer.site). Tout l'état final est ici : la page reste
  lisible et complète sans JavaScript ; animations.css n'ajoute que des micro-mouvements.
  Parti pris : laque et laiton. Papier ivoire pour les plans et l'atelier, nuit marine pour la mer et le quai,
  titres à empattements (romain et italique), filets fins, beaucoup d'air.
  Couches dans l'ordre : reset, tokens, base, components, site.
*/
@layer reset, tokens, base, components, site;

@layer tokens {
  :root {
    /* ---------- Couleur : une teinte ivoire chaude (~70°) sur 12 luminosités ---------- */
    --ivoire-050: #faf7f1;
    --ivoire-100: #f4efe6;
    --ivoire-200: #e9e1d2;
    --ivoire-300: #d8ccb6;
    --ivoire-400: #bcac8f;
    --ivoire-500: #978769;
    --ivoire-600: #75674e;
    --ivoire-700: #574c39;
    --ivoire-800: #3b3327;
    --ivoire-850: #2c261d;
    --ivoire-900: #1f1b15;
    --ivoire-950: #13110d;

    /* ---------- Couleur d'action : le laiton (contrastes vérifiés selon le fond) ---------- */
    --laiton-300: #d4b27a; /* texte laiton sur fond sombre */
    --laiton-500: #8a6a2f; /* fond des boutons, texte blanc (5:1) */
    --laiton-600: #7a5c26; /* texte laiton sur ivoire (5,4:1), survol */
    --sur-laiton: #ffffff;

    /* ---------- Matières et teintes de coque (dessins, configurateur, savoir-faire) ---------- */
    --coque-ivoire: #ece4d4;
    --coque-nuit: #1d2738;
    --coque-graphite: #3b3d40;
    --coque-sauge: #8e9a83;
    --antifouling: #5b2a2a;
    --salissure: #4d5638;
    --algues: #6b7446;
    --vitrage: #1a1d24;
    --teck-clair: #8a5a33;
    --teck-joint: #2a1d12;
    --noyer-1: #5a3b24;
    --noyer-2: #6d4a2e;
    --noyer-3: #4b301d;
    --inox-1: #8d9399;
    --inox-2: #e6e9ec;
    --laque-1: #26324a;
    --laque-2: #0f1522;
    --mer-profonde: #26333f;
    --ciel-haut: #171b26;
    --ciel-milieu: #5d4b55;
    --ciel-horizon: #d99a66;
    --mer-haut: #3a3a44;
    --mer-bas: #0d1015;

    /* ---------- Thème clair par défaut ; les sections sombres redéfinissent ces jetons ---------- */
    --fond: var(--ivoire-100);
    --fond-2: var(--ivoire-200);
    --fg: var(--ivoire-950);
    --fg-2: var(--ivoire-700);
    --fg-3: var(--ivoire-600);
    --laiton-texte: var(--laiton-600);
    --filet: rgb(19 17 13 / 0.14);
    --filet-fort: rgb(19 17 13 / 0.3);

    /* ---------- Typographie : empattements (titres), linéale (texte), chasse fixe (données) ---------- */
    --font-display: "Site Display", "Cormorant Garamond", Georgia, serif;
    --font-body: "Site Text", "Manrope", system-ui, sans-serif;
    --font-mono: "Site Mono", "Azeret Mono", ui-monospace, monospace;

    --fs-hero: clamp(3.1rem, min(7.4vw, 13vh), 8.4rem);
    --fs-h2: clamp(2.4rem, 4.6vw, 4.9rem);
    --fs-h3: clamp(1.7rem, 2.4vw, 2.5rem);
    --fs-chiffre: clamp(3.6rem, 6vw, 6.2rem);
    --fs-lead: clamp(1.06rem, 1.25vw, 1.22rem);
    --fs-body: clamp(0.98rem, 1.02vw, 1.04rem);
    --fs-body-sm: 0.9rem;
    --fs-micro: 0.7rem;

    /* ---------- Rythme : beaucoup d'air ---------- */
    --gutter: clamp(20px, 4.5vw, 72px);
    --conteneur: 1320px;
    --section-y: clamp(96px, 14vh, 190px);
    --stack: clamp(24px, 3.2vw, 52px);
    --header-h: 84px;
    --horizon-h: 68px;
    /* Le soleil du générique et celui du hero ont la même taille et la même place : le fondu est invisible. */
    --soleil-taille: clamp(90px, 9vw, 150px);

    /* ---------- Formes et mouvement ---------- */
    --r-pill: 999px;
    --r-1: 2px;
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-in-out: cubic-bezier(0.7, 0, 0.3, 1);
    --dur-micro: 0.3s;
    --dur-ui: 0.8s;

    /* ---------- Plans ---------- */
    --z-contenu: 1;
    --z-entete: 1000;
    --z-menu: 1001;
    --z-curseur: 9998;
    --z-chargement: 9999;
  }

  /* Polices auto-hébergées (OFL), sous-ensemble latin ; l'italique du titre est un fichier à part. */
  @font-face {
    font-family: "Site Display";
    src: url("../assets/fonts/display.woff2") format("woff2");
    font-weight: 300 700;
    font-style: normal;
    font-display: swap;
  }
  @font-face {
    font-family: "Site Display";
    src: url("../assets/fonts/display-italic.woff2") format("woff2");
    font-weight: 300 700;
    font-style: italic;
    font-display: swap;
  }
  @font-face {
    font-family: "Site Text";
    src: url("../assets/fonts/text.woff2") format("woff2");
    font-weight: 200 800;
    font-display: swap;
  }
  @font-face {
    font-family: "Site Mono";
    src: url("../assets/fonts/mono.woff2") format("woff2");
    font-weight: 100 900;
    font-display: swap;
  }
}

@layer reset {
  *,
  *::before,
  *::after {
    box-sizing: border-box;
  }
  * {
    margin: 0;
  }
  html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
  }
  body {
    min-height: 100dvh;
    -webkit-font-smoothing: antialiased;
  }
  img,
  picture,
  video,
  canvas,
  svg {
    display: block;
    max-width: 100%;
  }
  input,
  button,
  textarea,
  select {
    font: inherit;
    color: inherit;
  }
  button {
    border: 0;
    background: none;
    cursor: pointer;
  }
  p,
  h1,
  h2,
  h3 {
    overflow-wrap: break-word;
  }
  ul[role="list"],
  ol[role="list"] {
    padding: 0;
    list-style: none;
  }
  fieldset {
    min-width: 0;
    padding: 0;
    border: 0;
  }
}

@layer base {
  html {
    background: var(--ivoire-950);
    color: var(--fg-2);
    color-scheme: light;
    font-family: var(--font-body);
    scroll-behavior: smooth;
    overflow-x: clip;
  }
  body {
    position: relative;
    overflow-x: clip;
    background: var(--fond);
    font-size: var(--fs-body);
    line-height: 1.7;
  }
  main {
    position: relative;
    z-index: var(--z-contenu);
  }
  h1,
  h2,
  h3 {
    font-family: var(--font-display);
    font-weight: 500;
    line-height: 1;
    letter-spacing: -0.012em;
    color: var(--fg);
    text-wrap: balance;
  }
  h2 {
    font-size: var(--fs-h2);
  }
  h3 {
    font-size: var(--fs-h3);
  }
  h1 em,
  h2 em,
  h3 em {
    font-weight: 400;
    color: var(--laiton-texte);
  }
  p {
    text-wrap: pretty;
  }
  a {
    color: inherit;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.25em;
  }
  :focus-visible {
    outline: 1.5px solid var(--laiton-300);
    outline-offset: 4px;
  }
  html.is-menu-open {
    overflow: hidden;
  }
  ::selection {
    background: var(--laiton-500);
    color: var(--sur-laiton);
  }
}

@layer components {
  .conteneur {
    width: min(var(--conteneur), 100% - 2 * var(--gutter));
    margin-inline: auto;
  }
  .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
  }
  .skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: calc(var(--z-chargement) + 1);
    padding: 10px 16px;
    background: var(--laiton-500);
    color: var(--sur-laiton);
    transform: translateY(-160%);
  }
  .skip-link:focus-visible {
    transform: none;
  }

  /* Sections sombres : la nuit en mer, le quai du carénage, le pied de page, la carte. */
  .hero,
  .flotte,
  .carenage,
  .pied,
  .carte {
    --fond: var(--ivoire-950);
    --fond-2: var(--ivoire-900);
    --fg: var(--ivoire-050);
    --fg-2: var(--ivoire-300);
    --fg-3: var(--ivoire-400);
    --laiton-texte: var(--laiton-300);
    --filet: rgb(250 247 241 / 0.14);
    --filet-fort: rgb(250 247 241 / 0.32);
    background: var(--fond);
    color: var(--fg-2);
    color-scheme: dark;
  }

  .surtitre {
    font-size: var(--fs-micro);
    font-weight: 600;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--laiton-texte);
  }

  .tete {
    display: grid;
    gap: clamp(16px, 2vw, 24px);
    max-width: 50rem;
    margin-bottom: calc(var(--stack) * 1.3);
  }
  .tete > p:not(.surtitre) {
    max-width: 54ch;
    font-size: var(--fs-lead);
  }

  /* ---------- Boutons : filets fins, icône de sens à gauche, flèche à droite ---------- */
  .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 52px;
    padding: 0 26px;
    border: 1px solid transparent;
    border-radius: var(--r-pill);
    font-size: var(--fs-body-sm);
    font-weight: 600;
    letter-spacing: 0.04em;
    text-decoration: none;
    white-space: nowrap;
    transition:
      background-color var(--dur-micro) var(--ease-out),
      border-color var(--dur-micro) var(--ease-out),
      color var(--dur-micro) var(--ease-out);
  }
  .btn svg {
    flex: none;
    width: 16px;
    height: 16px;
  }
  .btn__fleche {
    transition: transform var(--dur-micro) var(--ease-out);
  }
  .btn:hover .btn__fleche {
    transform: translateX(4px);
  }
  .btn-laiton {
    background: var(--laiton-500);
    color: var(--sur-laiton);
  }
  .btn-laiton:hover {
    background: var(--laiton-600);
  }
  .btn-fin {
    border-color: var(--filet-fort);
    color: var(--fg);
  }
  .btn-fin:hover {
    border-color: var(--laiton-texte);
  }
  .btn-plein {
    width: 100%;
  }

  /* ---------- Son : une onde ---------- */
  .son {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 1px solid currentColor;
    border-radius: var(--r-pill);
    color: inherit;
    opacity: 0.75;
    transition: opacity var(--dur-micro) var(--ease-out);
  }
  .son:hover {
    opacity: 1;
  }
  .son__onde {
    display: flex;
    align-items: center;
    gap: 3px;
    height: 14px;
  }
  .son__onde i {
    width: 5px;
    height: 1.5px;
    border-radius: 2px;
    background: currentColor;
    transition: transform var(--dur-micro) var(--ease-out);
  }
  .son[data-son="on"] .son__onde i {
    background: var(--laiton-300);
  }
  .son[data-son="on"] .son__onde i:nth-child(1) {
    transform: translateY(-3px);
  }
  .son[data-son="on"] .son__onde i:nth-child(3) {
    transform: translateY(3px);
  }

  /* ======================================================================
     En-tête : la marque au centre. Sa couleur suit la section survolée (data-sur).
     ====================================================================== */
  .bandeau {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: var(--z-entete);
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 16px;
    height: var(--header-h);
    padding-inline: var(--gutter);
    color: var(--ivoire-050);
    transition:
      color var(--dur-ui) var(--ease-out),
      background-color var(--dur-ui) var(--ease-out);
  }
  .bandeau[data-sur="clair"] {
    color: var(--ivoire-950);
  }
  .bandeau.is-scrolled {
    background: rgb(19 17 13 / 0.9);
  }
  .bandeau.is-scrolled[data-sur="clair"] {
    background: rgb(244 239 230 / 0.94);
  }
  .bandeau__position {
    display: flex;
    gap: 14px;
    font-family: var(--font-mono);
    font-size: var(--fs-micro);
    letter-spacing: 0.06em;
    opacity: 0.8;
  }
  .marque {
    font-family: var(--font-display);
    font-size: 1.55rem;
    font-weight: 500;
    letter-spacing: 0.34em;
    line-height: 1;
    text-decoration: none;
    text-transform: uppercase;
    margin-right: -0.34em;
  }
  .bandeau__actions {
    display: flex;
    align-items: center;
    justify-self: end;
    gap: 18px;
  }
  .bandeau__visite {
    font-size: var(--fs-body-sm);
    font-weight: 600;
    letter-spacing: 0.04em;
    text-decoration: underline;
    text-decoration-color: var(--laiton-300);
  }
  /* Le bouton de menu du téléphone : une barre à roue. */
  .barre {
    display: none;
    place-items: center;
    width: 48px;
    height: 48px;
    border: 1px solid currentColor;
    border-radius: var(--r-pill);
    color: inherit;
  }
  .barre__roue {
    position: relative;
    width: 22px;
    height: 22px;
    border: 1.5px solid currentColor;
    border-radius: 50%;
    background:
      linear-gradient(currentColor, currentColor) center / 1.5px 100% no-repeat,
      linear-gradient(currentColor, currentColor) center / 100% 1.5px no-repeat;
  }
  .barre__roue::after {
    content: "";
    position: absolute;
    inset: 6px;
    border-radius: 50%;
    background: var(--laiton-300);
  }

  /* ======================================================================
     La ligne d'horizon (navigation, ordinateur) : bouées et yacht de progression
     ====================================================================== */
  .horizon {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: var(--z-entete);
    height: var(--horizon-h);
    padding-inline: var(--gutter);
    color: var(--ivoire-050);
    background: linear-gradient(to top, rgb(19 17 13 / 0.92) 35%, rgb(19 17 13 / 0));
    transition: color var(--dur-ui) var(--ease-out);
  }
  .horizon[data-sur="clair"] {
    color: var(--ivoire-950);
    background: linear-gradient(to top, rgb(244 239 230 / 0.96) 35%, rgb(244 239 230 / 0));
  }
  .horizon__ligne {
    position: absolute;
    top: 30px;
    right: var(--gutter);
    left: var(--gutter);
    height: 1px;
    background: currentColor;
    opacity: 0.4;
  }
  .horizon__yacht {
    position: absolute;
    top: 16px;
    left: var(--gutter);
    width: 40px;
    height: 14px;
    margin-left: -20px;
    transform: translateX(var(--cap, 0px));
  }
  .horizon__yacht svg {
    width: 100%;
    height: 100%;
  }
  .horizon__yacht path {
    fill: none;
    stroke: var(--laiton-300);
    stroke-width: 1.4;
    stroke-linejoin: round;
  }
  .horizon[data-sur="clair"] .horizon__yacht path {
    stroke: var(--laiton-600);
  }
  .horizon__bouees {
    position: relative;
    display: flex;
    justify-content: space-between;
    height: 100%;
    padding-inline: 7%;
  }
  .horizon__bouees a {
    display: grid;
    justify-items: center;
    gap: 7px;
    padding-top: 26px;
    font-size: var(--fs-micro);
    font-weight: 600;
    letter-spacing: 0.16em;
    text-decoration: none;
    text-transform: uppercase;
    white-space: nowrap;
  }
  .horizon__bouees i {
    width: 9px;
    height: 9px;
    border: 1.5px solid currentColor;
    border-radius: 50%;
    background: transparent;
    transition:
      background-color var(--dur-micro) var(--ease-out),
      border-color var(--dur-micro) var(--ease-out);
  }
  .horizon__bouees span {
    opacity: 0.72;
    transition: opacity var(--dur-micro) var(--ease-out);
  }
  .horizon__bouees a:hover span,
  .horizon__bouees a[aria-current] span {
    opacity: 1;
  }
  .horizon__bouees a[aria-current] i {
    border-color: var(--laiton-300);
    background: var(--laiton-300);
  }

  /* ======================================================================
     Carte marine (menu du téléphone) : s'ouvre en cercle depuis la barre à roue
     ====================================================================== */
  .carte {
    position: fixed;
    inset: 0;
    z-index: var(--z-menu);
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    gap: 20px;
    padding: 20px var(--gutter) calc(24px + env(safe-area-inset-bottom));
    background-image: repeating-conic-gradient(
      from 0deg at 82% 72%,
      rgb(212 178 122 / 0.09) 0deg 0.4deg,
      transparent 0.4deg 15deg
    );
    visibility: hidden;
    clip-path: circle(0 at calc(100% - var(--gutter) - 24px) 42px);
    transition:
      clip-path 0.8s var(--ease-in-out),
      visibility 0s linear 0.8s;
  }
  .carte[data-open="true"] {
    visibility: visible;
    clip-path: circle(160% at calc(100% - var(--gutter) - 24px) 42px);
    transition:
      clip-path 0.8s var(--ease-in-out),
      visibility 0s;
  }
  .carte__tete {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 48px;
  }
  .carte__tete p {
    font-size: var(--fs-micro);
    font-weight: 600;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--laiton-300);
  }
  .carte__fermer {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    height: 48px;
    padding: 0 20px;
    border: 1px solid var(--filet-fort);
    border-radius: var(--r-pill);
    font-size: var(--fs-body-sm);
    color: var(--fg);
  }
  .carte__liste {
    display: grid;
    align-content: center;
  }
  .carte__liste a {
    display: flex;
    align-items: baseline;
    gap: 16px;
    padding-block: 12px;
    border-bottom: 1px solid var(--filet);
    text-decoration: none;
    color: var(--fg);
  }
  .carte__cap {
    flex: none;
    width: 3.2em;
    font-family: var(--font-mono);
    font-size: var(--fs-micro);
    color: var(--laiton-300);
  }
  .carte__nom {
    font-family: var(--font-display);
    font-size: clamp(1.9rem, 7.4vw, 2.8rem);
    font-weight: 500;
    line-height: 1.05;
  }
  .carte__pied {
    font-size: var(--fs-body-sm);
    color: var(--fg-3);
  }

  /* ---------- Données (fiches) ---------- */
  .donnees-grille {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@layer site {
  /* ======================================================================
     Hero : la haute mer au couchant
     ====================================================================== */
  .hero {
    position: relative;
    display: grid;
    align-content: end;
    min-height: 100svh;
    padding: calc(var(--header-h) + 24px) var(--gutter) calc(var(--horizon-h) + clamp(28px, 6vh, 64px));
    overflow: hidden;
    isolation: isolate;
  }
  .mer {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: var(--mer-bas);
  }
  .mer__ciel {
    position: absolute;
    inset: 0 0 38% 0;
    background: linear-gradient(
      to bottom,
      var(--ciel-haut) 0%,
      var(--ciel-milieu) 62%,
      var(--ciel-horizon) 100%
    );
  }
  .mer__soleil {
    position: absolute;
    top: 62%;
    left: 64%;
    width: var(--soleil-taille);
    aspect-ratio: 1;
    margin: calc(var(--soleil-taille) * -0.62) 0 0 calc(var(--soleil-taille) * -0.5);
    border-radius: 50%;
    background: radial-gradient(circle, #fbe3b8 0 45%, rgb(244 190 120 / 0.55) 60%, rgb(244 190 120 / 0) 72%);
  }
  .mer__eau {
    position: absolute;
    inset: 62% 0 0 0;
    background: linear-gradient(to bottom, var(--mer-haut), var(--mer-bas));
  }
  .mer__vagues {
    position: absolute;
    inset: 62% 0 0 0;
    width: 100%;
    height: 38%;
  }
  .mer__vagues path {
    fill: none;
    stroke: var(--ciel-horizon);
    stroke-width: 1;
  }
  /* Le yacht passe devant le soleil : une silhouette à contre-jour, loin de la fiche. */
  .mer__yacht {
    position: absolute;
    top: 62%;
    left: 57%;
    width: clamp(90px, 8vw, 140px);
    transform: translateY(-78%);
  }
  .mer__yacht path {
    fill: var(--ivoire-950);
  }
  /* La mer WebGL remplace le décor fixe (le yacht reste au premier plan). */
  .mer__toile {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
  }
  .hero.a-mer .mer__ciel,
  .hero.a-mer .mer__soleil,
  .hero.a-mer .mer__eau,
  .hero.a-mer .mer__vagues {
    visibility: hidden;
  }
  /* Voile : le texte reste lisible sur le ciel. */
  .mer::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
      90deg,
      rgb(19 17 13 / 0.72) 0%,
      rgb(19 17 13 / 0.12) 55%,
      rgb(19 17 13 / 0) 70%
    );
    pointer-events: none;
  }

  .hero__contenu {
    display: grid;
    gap: clamp(16px, 2.6vh, 28px);
    max-width: 48rem;
  }
  .hero__titre {
    font-size: var(--fs-hero);
    font-weight: 400;
    line-height: 0.92;
    letter-spacing: -0.02em;
  }
  .hero__ligne {
    display: block;
  }
  .hero__chapeau {
    max-width: 46ch;
    font-size: var(--fs-lead);
    color: var(--ivoire-200);
  }
  .hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
  }
  .fiche {
    position: absolute;
    right: var(--gutter);
    bottom: calc(var(--horizon-h) + clamp(28px, 6vh, 64px));
    display: grid;
    gap: 10px;
    width: 17rem;
    padding-top: 16px;
    border-top: 1px solid var(--laiton-300);
  }
  .fiche__titre {
    font-size: var(--fs-micro);
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--laiton-300);
  }
  .fiche__nom {
    font-family: var(--font-display);
    font-size: 2.2rem;
    line-height: 1;
    color: var(--fg);
  }
  .fiche__donnees {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 16px;
  }
  .fiche__donnees dt,
  .modele__donnees dt,
  .config__fiche dt {
    font-size: var(--fs-micro);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--fg-3);
  }
  .fiche__donnees dd,
  .modele__donnees dd,
  .config__fiche dd {
    margin: 0;
    font-family: var(--font-mono);
    font-size: var(--fs-body-sm);
    color: var(--fg);
  }

  /* ======================================================================
     Les yachts dessinés : couleurs par scène (propriétés personnalisées)
     ====================================================================== */
  .yacht__coque {
    fill: var(--y-coque, var(--coque-nuit));
    transition: fill var(--dur-ui) var(--ease-out);
  }
  .yacht__carene {
    fill: var(--y-carene, var(--antifouling));
  }
  .yacht__ponts {
    fill: var(--y-ponts, var(--ivoire-050));
  }
  .yacht__vitrages rect,
  .yacht__hublots circle {
    fill: var(--y-vitrage, var(--vitrage));
  }
  .yacht__teck {
    fill: none;
    stroke: var(--teck-clair);
    stroke-width: 5;
    stroke-linecap: round;
    transition: opacity var(--dur-micro) var(--ease-out);
  }
  .yacht__traits path {
    fill: none;
    stroke: var(--y-trait, var(--ivoire-950));
    stroke-width: var(--y-epaisseur, 1.4px);
    stroke-linejoin: round;
  }

  /* ======================================================================
     01 · Du plan à la mer (papier ivoire, plan de forme)
     ====================================================================== */
  .chantier__scene,
  .carenage__scene {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    gap: clamp(16px, 3vh, 32px);
    min-height: 100svh;
    padding: calc(var(--header-h) + 12px) var(--gutter) calc(var(--horizon-h) + 16px);
    overflow: hidden;
  }
  .chantier__tete,
  .carenage__tete {
    display: grid;
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
    gap: 14px var(--stack);
    align-items: end;
  }
  .chantier__tete .surtitre,
  .carenage__tete .surtitre {
    grid-column: 1 / -1;
  }
  .chantier__tete h2,
  .carenage__tete h2 {
    font-size: clamp(2.2rem, 4vw, 4.2rem);
  }
  .chantier__tete p:not(.surtitre),
  .carenage__tete p:not(.surtitre) {
    max-width: 50ch;
  }
  .chantier__dessin,
  .carenage__vue {
    position: relative;
    min-height: 180px;
  }
  .profil,
  .carene-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
  }
  /* L'eau de la mise à l'eau déborde du dessin : la scène la coupe au bord de l'écran. */
  .profil {
    --y-coque: var(--coque-nuit);
    overflow: visible;
  }
  .profil__grille path {
    fill: none;
    stroke: var(--laiton-600);
    stroke-width: 1;
    stroke-dasharray: 3 7;
    opacity: 0.45;
  }
  .profil__grille .profil__base {
    stroke-dasharray: none;
  }
  .profil__cote path {
    fill: none;
    stroke: var(--ivoire-600);
  }
  .profil__cote text {
    font-family: var(--font-mono);
    font-size: 14px;
    fill: var(--ivoire-600);
  }
  .profil__ber {
    fill: none;
    stroke: var(--ivoire-600);
    stroke-width: 2;
  }
  .profil__eau rect {
    fill: var(--mer-profonde);
  }
  .profil__vagues {
    fill: none;
    stroke: rgb(250 247 241 / 0.16);
    stroke-width: 1.2;
  }
  .profil__reflet path {
    fill: rgb(250 247 241 / 0.1);
  }
  .chantier__pied,
  .carenage__pied {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px 32px;
    padding-top: 16px;
    border-top: 1px solid var(--filet-fort);
  }
  .chantier__etapes {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 36px;
  }
  .etape {
    display: flex;
    align-items: baseline;
    gap: 10px;
    font-size: var(--fs-body-sm);
    font-weight: 600;
    color: var(--fg-3);
    transition: color var(--dur-micro) var(--ease-out);
  }
  .etape span {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-style: italic;
    color: var(--laiton-texte);
  }
  .etape.is-active {
    color: var(--fg);
  }
  .chantier__compteur,
  .carenage__jours {
    font-size: var(--fs-body-sm);
    color: var(--fg-3);
  }
  .chantier__compteur b,
  .carenage__jours b {
    margin-right: 6px;
    font-family: var(--font-display);
    font-size: 2.6rem;
    font-weight: 500;
    line-height: 1;
    color: var(--fg);
    font-variant-numeric: tabular-nums;
  }

  /* ======================================================================
     02 · La flotte (nuit) : rail horizontal
     ====================================================================== */
  .flotte__scene {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    gap: var(--stack);
    min-height: 100svh;
    padding: calc(var(--header-h) + 12px) 0 calc(var(--horizon-h) + 20px);
    overflow: hidden;
  }
  .flotte__tete {
    display: grid;
    gap: 14px;
    max-width: 52rem;
    padding-inline: var(--gutter);
  }
  .flotte__tete h2 {
    font-size: clamp(2.2rem, 4vw, 4.2rem);
  }
  /* Sans JavaScript : un rail que l'on fait défiler ; avec : un travelling piloté par la molette. */
  .flotte__rail {
    display: flex;
    align-items: stretch;
    gap: clamp(28px, 4vw, 72px);
    padding: 4px var(--gutter) 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
  }
  html.a-travelling .flotte__rail {
    overflow: visible;
  }
  .modele {
    display: grid;
    flex: none;
    align-content: start;
    gap: 14px;
    width: min(38rem, 74vw);
    scroll-snap-align: start;
  }
  .modele__vue {
    height: clamp(150px, 26vh, 240px);
    margin-bottom: 8px;
    border-bottom: 1px solid var(--filet);
  }
  .silhouette {
    --y-coque: var(--ivoire-100);
    --y-ponts: var(--ivoire-050);
    --y-trait: var(--ivoire-900);
    --y-epaisseur: 0.8px;
    --y-vitrage: #2a2f38;
    width: 100%;
    height: 100%;
  }
  .silhouette__eau {
    stroke: var(--laiton-300);
    stroke-width: 1.5;
  }
  .modele__serie {
    font-size: var(--fs-micro);
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--laiton-300);
  }
  .modele p:not(.modele__serie) {
    max-width: 44ch;
  }
  .modele__donnees {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    padding-top: 14px;
    border-top: 1px solid var(--filet);
  }
  .modele--appel {
    align-content: center;
    width: min(28rem, 74vw);
    padding: clamp(24px, 3vw, 44px);
    border: 1px solid var(--laiton-300);
  }
  .modele--appel .btn {
    justify-self: start;
  }

  /* ======================================================================
     03 · Savoir-faire : quatre rangées, quatre matières
     ====================================================================== */
  .savoir {
    padding-block: var(--section-y);
  }
  .savoir__liste {
    border-top: 1px solid var(--filet-fort);
  }
  .metier {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) minmax(0, 5fr) minmax(0, 2.4fr);
    gap: var(--stack);
    align-items: center;
    padding-block: clamp(24px, 3.4vw, 44px);
    border-bottom: 1px solid var(--filet-fort);
  }
  .metier__num {
    font-family: var(--font-display);
    font-size: clamp(2.6rem, 4.4vw, 4.6rem);
    font-style: italic;
    line-height: 1;
    color: var(--laiton-texte);
  }
  .metier__matiere {
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: var(--r-1);
  }
  .metier__matiere--laque {
    background:
      radial-gradient(120% 80% at 30% 18%, rgb(255 255 255 / 0.38), transparent 42%),
      linear-gradient(160deg, var(--laque-1), var(--laque-2));
  }
  .metier__matiere--teck {
    background:
      repeating-linear-gradient(0deg, rgb(0 0 0 / 0.06) 0 1px, transparent 1px 5px),
      repeating-linear-gradient(90deg, var(--teck-clair) 0 26px, var(--teck-joint) 26px 28px);
  }
  .metier__matiere--inox {
    background:
      repeating-linear-gradient(90deg, rgb(255 255 255 / 0.14) 0 1px, transparent 1px 3px),
      linear-gradient(125deg, var(--inox-1), var(--inox-2) 42%, var(--inox-1) 58%, var(--inox-2));
  }
  .metier__matiere--bois {
    background: repeating-radial-gradient(
      ellipse at 18% 50%,
      var(--noyer-1) 0 6px,
      var(--noyer-2) 6px 11px,
      var(--noyer-3) 11px 14px
    );
  }
  .metier__texte {
    display: grid;
    gap: 8px;
  }
  .metier__texte p {
    max-width: 52ch;
  }
  .metier__chiffre {
    justify-self: end;
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 2.2vw, 2.3rem);
    font-style: italic;
    white-space: nowrap;
    color: var(--fg);
  }

  /* ======================================================================
     04 · Configurateur
     ====================================================================== */
  .configurateur {
    padding-block: var(--section-y);
    background: var(--fond-2);
  }
  .config {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: var(--stack);
    align-items: center;
  }
  .config__tete {
    grid-column: 1 / -1;
    margin-bottom: 0;
  }
  .config__vue {
    --coque-choisie: var(--coque-ivoire);
    --y-coque: var(--coque-choisie);
    --y-trait: var(--ivoire-900);
    --y-epaisseur: 1px;
  }
  /* Le dessin reste dans son cadre (les vagues dépassent la boîte de vue). */
  .config__svg {
    width: 100%;
    height: auto;
    overflow: hidden;
  }
  .config__eau {
    stroke: var(--ivoire-700);
    stroke-width: 1.5;
  }
  .config__vagues {
    fill: none;
    stroke: var(--ivoire-500);
    stroke-width: 1;
  }
  .config__cote path {
    fill: none;
    stroke: var(--laiton-600);
  }
  .config__cote text {
    font-family: var(--font-mono);
    font-size: 22px;
    fill: var(--laiton-600);
  }
  .config__vue[data-teck="non"] .yacht__teck {
    opacity: 0;
  }
  .config__choix {
    display: grid;
    gap: 26px;
    padding: clamp(22px, 2.6vw, 36px);
    border: 1px solid var(--filet-fort);
    background: var(--ivoire-050);
  }
  .choix legend {
    margin-bottom: 12px;
    font-size: var(--fs-micro);
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--fg-3);
  }
  .choix input,
  .interrupteur input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
  }
  .choix__teintes {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
  }
  .teinte {
    display: grid;
    justify-items: center;
    gap: 8px;
    font-size: var(--fs-body-sm);
    cursor: pointer;
  }
  .teinte__pastille {
    width: 44px;
    height: 44px;
    border: 1px solid var(--filet-fort);
    border-radius: 50%;
    outline: 1.5px solid transparent;
    outline-offset: 3px;
    transition: outline-color var(--dur-micro) var(--ease-out);
  }
  .teinte input[value="ivoire"] + .teinte__pastille {
    background: var(--coque-ivoire);
  }
  .teinte input[value="nuit"] + .teinte__pastille {
    background: var(--coque-nuit);
  }
  .teinte input[value="graphite"] + .teinte__pastille {
    background: var(--coque-graphite);
  }
  .teinte input[value="sauge"] + .teinte__pastille {
    background: var(--coque-sauge);
  }
  .teinte input:checked + .teinte__pastille {
    outline-color: var(--laiton-600);
  }
  .teinte input:focus-visible + .teinte__pastille {
    outline-color: var(--ivoire-950);
  }
  .choix__longueurs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border: 1px solid var(--filet-fort);
    border-radius: var(--r-pill);
    overflow: hidden;
  }
  .longueur span {
    display: grid;
    place-items: center;
    min-height: 46px;
    font-family: var(--font-mono);
    font-size: var(--fs-body-sm);
    cursor: pointer;
    transition:
      background-color var(--dur-micro) var(--ease-out),
      color var(--dur-micro) var(--ease-out);
  }
  .longueur input:checked + span {
    background: var(--ivoire-950);
    color: var(--ivoire-050);
  }
  .longueur input:focus-visible + span {
    outline: 1.5px solid var(--laiton-600);
    outline-offset: -4px;
  }
  .interrupteur {
    display: flex;
    align-items: center;
    gap: 14px;
    font-weight: 600;
    color: var(--fg);
    cursor: pointer;
  }
  .interrupteur__piste {
    position: relative;
    width: 48px;
    height: 26px;
    border-radius: var(--r-pill);
    background: var(--ivoire-300);
    transition: background-color var(--dur-micro) var(--ease-out);
  }
  .interrupteur__piste::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    transition: transform var(--dur-micro) var(--ease-out);
  }
  .interrupteur input:checked + .interrupteur__piste {
    background: var(--laiton-500);
  }
  .interrupteur input:checked + .interrupteur__piste::after {
    transform: translateX(22px);
  }
  .interrupteur input:focus-visible + .interrupteur__piste {
    outline: 1.5px solid var(--ivoire-950);
    outline-offset: 3px;
  }
  .config__fiche {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 20px;
    padding-top: 18px;
    border-top: 1px solid var(--filet);
  }
  .config__fiche b {
    font-family: var(--font-display);
    font-size: 1.7rem;
    font-weight: 500;
    color: var(--fg);
  }

  /* ======================================================================
     05 · Carénage (quai de nuit)
     ====================================================================== */
  .carene-svg {
    --y-coque: var(--ivoire-100);
    --y-ponts: var(--ivoire-050);
    --y-trait: var(--ivoire-900);
    --y-epaisseur: 1px;
  }
  .carene-svg__quai,
  .carene-svg__hachures {
    fill: none;
    stroke: var(--ivoire-600);
    stroke-width: 1.5;
  }
  .portique path {
    fill: var(--ivoire-700);
  }
  .portique .portique__roues {
    fill: none;
    stroke: var(--ivoire-500);
    stroke-width: 3;
  }
  .sangles path {
    fill: none;
    stroke: var(--laiton-300);
    stroke-width: 7;
  }
  .carene-svg__sale {
    fill: var(--salissure);
  }
  .carene-svg__algues circle {
    fill: var(--algues);
  }
  .lance path {
    fill: none;
    stroke: var(--ivoire-200);
    stroke-width: 3;
    stroke-linecap: round;
  }
  .lance .lance__jet {
    stroke-width: 1.5;
    stroke-dasharray: 3 4;
  }
  .lance circle {
    fill: var(--laiton-300);
  }
  .carene-svg__cote path {
    fill: none;
    stroke: var(--ivoire-500);
  }
  .carene-svg__cote text {
    font-family: var(--font-mono);
    font-size: 14px;
    fill: var(--ivoire-400);
  }
  .carenage__travaux {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 28px;
  }
  .travail {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: var(--fs-body-sm);
    color: var(--fg);
    transition: color var(--dur-micro) var(--ease-out);
  }
  /* Par défaut, les travaux sont faits (page sans JavaScript) ; la scène les coche un à un. */
  .travail::before {
    content: "";
    flex: none;
    width: 14px;
    height: 14px;
    border: 1px solid var(--laiton-300);
    border-radius: 50%;
    background: radial-gradient(circle, var(--laiton-300) 0 45%, transparent 50%);
    transition: background-color var(--dur-micro) var(--ease-out);
  }
  .travail.is-attente {
    color: var(--fg-3);
  }
  .travail.is-attente::before {
    background: transparent;
  }

  /* ======================================================================
     06 · Chiffres, 07 · Témoignage
     ====================================================================== */
  .chiffres {
    padding-block: var(--section-y) 0;
  }
  .chiffres__liste {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--stack);
  }
  .chiffre {
    display: grid;
    align-content: start;
    gap: 12px;
    padding-top: 18px;
    border-top: 1px solid var(--filet-fort);
  }
  .chiffre__valeur {
    font-family: var(--font-display);
    font-size: var(--fs-chiffre);
    font-weight: 400;
    line-height: 0.95;
    white-space: nowrap;
    color: var(--fg);
    font-variant-numeric: tabular-nums;
  }
  .chiffre__libelle {
    max-width: 24ch;
  }

  /* ======================================================================
     09 · Visite
     ====================================================================== */
  .visite {
    padding-block: 0 calc(var(--section-y) + var(--horizon-h));
  }
  .visite__grille {
    display: grid;
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
    gap: calc(var(--stack) * 1.4);
    align-items: start;
    padding-top: var(--section-y);
    border-top: 1px solid var(--filet-fort);
  }
  .questions {
    border-top: 1px solid var(--filet-fort);
  }
  .questions details {
    border-bottom: 1px solid var(--filet);
  }
  .questions summary {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding-block: 18px;
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 500;
    color: var(--fg);
    cursor: pointer;
    list-style: none;
  }
  .questions summary::-webkit-details-marker {
    display: none;
  }
  .questions summary::after {
    content: "+";
    flex: none;
    font-family: var(--font-body);
    color: var(--laiton-texte);
    transition: transform var(--dur-micro) var(--ease-out);
  }
  .questions details[open] summary::after {
    transform: rotate(45deg);
  }
  .questions details p {
    max-width: 56ch;
    padding-bottom: 18px;
  }
  .formulaire__titre {
    font-family: var(--font-display);
    font-size: 2rem;
    font-style: italic;
    line-height: 1;
    color: var(--fg);
  }
  .formulaire__note {
    font-size: var(--fs-body-sm);
    color: var(--fg-3);
  }

  /* ======================================================================
     Pied de page
     ====================================================================== */
  .pied {
    padding-block: var(--section-y) calc(var(--horizon-h) + 24px);
    overflow: hidden;
  }
  .pied__marque {
    font-family: var(--font-display);
    font-size: clamp(3.6rem, 16vw, 18rem);
    font-style: italic;
    font-weight: 400;
    line-height: 0.85;
    letter-spacing: 0.02em;
    white-space: nowrap;
    color: var(--ivoire-800);
  }
  .pied__grille {
    display: grid;
    grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr));
    gap: var(--stack);
    margin-top: var(--section-y);
  }
  .pied__bloc {
    display: grid;
    align-content: start;
    gap: 12px;
  }
  .pied__bloc h2 {
    font-family: var(--font-body);
    font-size: var(--fs-micro);
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--laiton-300);
  }
  .pied__bloc ul {
    display: grid;
    gap: 8px;
  }
  .pied__bloc a {
    text-decoration: none;
    color: var(--fg);
  }
  .pied__bloc a:hover {
    color: var(--laiton-300);
  }
  .pied__devise {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 2.8vw, 2.8rem);
    line-height: 1.05;
    color: var(--fg);
  }
  .pied__bas {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px 32px;
    margin-top: var(--stack);
    padding-top: 18px;
    border-top: 1px solid var(--filet);
    font-size: var(--fs-body-sm);
    color: var(--fg-3);
  }

  /* ======================================================================
     Pages secondaires
     ====================================================================== */
  .page {
    padding-block: calc(var(--header-h) + var(--section-y)) calc(var(--section-y) + var(--horizon-h));
  }
  .page h1 {
    font-size: var(--fs-h2);
  }
  .page__contenu {
    display: grid;
    gap: 18px;
    max-width: 68ch;
  }
  .page__contenu h2 {
    margin-top: 20px;
    font-size: var(--fs-h3);
  }
  .erreur {
    display: grid;
    align-content: center;
    min-height: 100svh;
    padding-block: calc(var(--header-h) + 32px) calc(var(--horizon-h) + 48px);
  }
  .erreur .conteneur {
    display: grid;
    gap: var(--stack);
  }
  .erreur__code {
    font-family: var(--font-display);
    font-size: clamp(6rem, 22vw, 20rem);
    font-style: italic;
    line-height: 0.8;
    color: var(--laiton-texte);
  }
  .erreur p:not(.surtitre):not(.erreur__code) {
    max-width: 48ch;
    font-size: var(--fs-lead);
  }
  .erreur__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
  }
  .mono {
    font-family: var(--font-mono);
    font-size: 0.9em;
  }

  /* ======================================================================
     Générique : l'horizon (une fois par session)
     Sans JavaScript, « is-preloading » n'est jamais posée : le voile n'existe pas.
     ====================================================================== */
  .generique {
    display: none;
  }
  html.is-preloading,
  html.is-preloading body {
    overflow: hidden;
  }
  html.is-preloading .generique {
    position: fixed;
    inset: 0;
    z-index: var(--z-chargement);
    display: block;
    background: var(--ivoire-950);
  }
  .generique__scene {
    position: absolute;
    inset: 0;
  }
  .generique__horizon {
    position: absolute;
    top: 62%;
    right: 0;
    left: 0;
    height: 1px;
    background: var(--laiton-300);
    transform-origin: 50% 50%;
  }
  /* Le soleil se lève derrière l'horizon : la moitié basse est cachée par un masque. */
  .generique__soleil {
    position: absolute;
    top: 62%;
    left: 64%;
    width: var(--soleil-taille);
    aspect-ratio: 1;
    margin: calc(var(--soleil-taille) * -0.62) 0 0 calc(var(--soleil-taille) * -0.5);
    border-radius: 50%;
    background: radial-gradient(circle, #fbe3b8 0 45%, rgb(244 190 120 / 0.55) 60%, rgb(244 190 120 / 0) 72%);
  }
  .generique__nom {
    position: absolute;
    top: 30%;
    right: 0;
    left: 0;
    font-family: var(--font-display);
    font-size: clamp(2.6rem, 7vw, 5.6rem);
    font-weight: 400;
    letter-spacing: 0.34em;
    line-height: 1;
    text-align: center;
    text-indent: 0.34em;
    text-transform: uppercase;
    color: var(--ivoire-050);
  }
  .generique__devise {
    position: absolute;
    top: calc(62% + 22px);
    right: 0;
    left: 0;
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-style: italic;
    text-align: center;
    color: var(--ivoire-300);
  }

  /* ======================================================================
     Curseur « sillage » (pointeur fin seulement)
     ====================================================================== */
  .sillage-point,
  .sillage-onde {
    position: fixed;
    top: 0;
    left: 0;
    z-index: var(--z-curseur);
    pointer-events: none;
    border-radius: 50%;
    /* Cachés jusqu'au premier mouvement du pointeur (point) ou au lancement (ondes). */
    visibility: hidden;
  }
  .sillage-point {
    width: 10px;
    height: 10px;
    margin: -5px 0 0 -5px;
    background: var(--laiton-300);
    mix-blend-mode: difference;
    transition:
      width var(--dur-micro) var(--ease-out),
      height var(--dur-micro) var(--ease-out),
      margin var(--dur-micro) var(--ease-out);
  }
  .sillage-point.is-survol {
    width: 34px;
    height: 34px;
    margin: -17px 0 0 -17px;
  }
  .sillage-onde {
    width: 28px;
    height: 28px;
    margin: -14px 0 0 -14px;
    border: 1px solid var(--laiton-300);
    opacity: 0;
  }
}

/* ==========================================================================================
   PORTAGE AU STANDARD DU PORTFOLIO (25/09/2026 — docs/PLAN-PORTFOLIO-ONE-PAGE.md)
   Logo complet (icône animée, nom, slogan), boutons principaux à pastille, emplacements d'images,
   film au défilement (moteur js/scrub.js du site A), galerie, carnet de construction, questions,
   visite sans formulaire. Couche « site » : elle l'emporte sur les composants.
   ========================================================================================== */
@layer site {
  :root {
    --z-cine-texte: 20;
  }

  /* ---------- Logo : icône à gauche, nom, slogan court animé ---------- */
  .marque {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-right: 0;
    font-size: 1rem;
    letter-spacing: 0;
    text-transform: none;
    color: inherit;
    white-space: nowrap;
  }
  .marque__icone {
    display: block;
    flex: none;
    width: 44px;
    height: 44px;
  }
  .marque__icone svg {
    width: 100%;
    height: 100%;
    overflow: visible;
  }
  .marque__texte {
    display: flex;
    flex-direction: column;
    gap: 5px;
  }
  .marque__nom {
    margin-right: -0.34em;
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 500;
    letter-spacing: 0.34em;
    line-height: 1;
    text-transform: uppercase;
  }
  .marque__slogan {
    font-family: var(--font-display);
    font-size: 0.98rem;
    font-style: italic;
    font-weight: 400;
    letter-spacing: 0.02em;
    line-height: 1;
    color: var(--laiton-300);
  }
  .bandeau[data-sur="clair"] .marque__slogan {
    color: var(--laiton-600);
  }
  .marque__slogan span {
    display: inline-block;
  }
  .marque--pied {
    margin-bottom: 14px;
    color: var(--fg);
  }

  /* Les pièces de l'icône : disque laqué cerclé de laiton, horizon, sillage, yacht ivoire */
  .ym-disque {
    fill: var(--coque-nuit);
    stroke: var(--laiton-300);
    stroke-width: 1.4;
  }
  .ym-horizon {
    fill: none;
    stroke: rgb(236 228 212 / 0.32);
    stroke-width: 1.2;
  }
  .ym-sillage {
    fill: none;
    stroke: var(--laiton-300);
    stroke-width: 2.2;
    stroke-linecap: round;
  }
  .ym-coque {
    fill: var(--coque-ivoire);
  }
  .ym-cabine {
    fill: none;
    stroke: var(--coque-ivoire);
    stroke-width: 1.6;
    stroke-linejoin: round;
  }
  .ym-yacht {
    transform-box: view-box;
    transform-origin: 35px 38px;
  }

  /* ---------- Boutons principaux : la flèche sur une pastille blanche, ronde comme le bouton ---------- */
  .btn-laiton {
    padding-right: 5px;
  }
  .btn-laiton .btn__fleche {
    box-sizing: border-box;
    width: 40px;
    height: 40px;
    margin-left: 4px;
    padding: 12px;
    border-radius: 50%;
    background: #fff;
    color: var(--laiton-500);
  }
  .btn-laiton.btn-plein .btn__fleche {
    margin-left: auto;
  }
  .btn-laiton:hover .btn__fleche {
    transform: none;
    color: var(--laiton-600);
  }

  /* ---------- Premier écran : le mot-clé en tête du titre ---------- */
  .hero__mot-cle {
    display: block;
    margin-bottom: 0.5em;
    font-family: var(--font-body);
    font-size: clamp(0.8rem, 1vw, 0.95rem);
    font-weight: 600;
    letter-spacing: 0.24em;
    line-height: 1.3;
    text-transform: uppercase;
    color: var(--laiton-texte);
  }

  /* ---------- Emplacements d'images (P6 : les images seront créées à la fin, ensemble) ----------
     Le nom de l'image attendue est écrit discrètement ; sa description est dans le README. */
  .visuel {
    position: relative;
    aspect-ratio: var(--ratio, 4 / 3);
    overflow: hidden;
    background:
      radial-gradient(120% 90% at 20% 10%, rgb(255 255 255 / 0.6) 0%, transparent 60%),
      radial-gradient(90% 80% at 85% 90%, rgb(138 106 47 / 0.22) 0%, transparent 62%),
      linear-gradient(160deg, var(--ivoire-200), var(--ivoire-400));
    isolation: isolate;
  }
  /* Trame des lignes d'eau d'un plan de forme : l'emplacement se lit comme une image à venir */
  .visuel::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image:
      linear-gradient(rgb(19 17 13 / 0.07) 1px, transparent 1px),
      linear-gradient(90deg, rgb(19 17 13 / 0.05) 1px, transparent 1px);
    background-size:
      100% 26px,
      120px 100%;
    mask-image: radial-gradient(80% 70% at 50% 50%, #000 30%, transparent 100%);
  }
  .visuel__nom {
    position: absolute;
    left: 12px;
    bottom: 10px;
    max-width: calc(100% - 24px);
    padding: 4px 9px;
    border-radius: var(--r-pill);
    background: rgb(250 247 241 / 0.82);
    font-family: var(--font-mono);
    font-size: 0.6rem;
    letter-spacing: 0.08em;
    line-height: 1.3;
    text-transform: uppercase;
    color: var(--ivoire-700);
    overflow-wrap: anywhere;
  }
  .visuel > img,
  .visuel > video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  /* ---------- Le film au défilement (moteur js/scrub.js) ----------
     Sans JavaScript : les quatre plans et leurs textes se lisent l'un sous l'autre. */
  .cine {
    position: relative;
    z-index: var(--z-contenu);
    background: var(--ivoire-950);
    color: var(--ivoire-050);
    color-scheme: dark;
  }
  .cine__piste {
    position: relative;
  }
  .js .cine__piste {
    height: var(--cine-hauteur, 660vh);
  }
  .cine__scene {
    display: grid;
    gap: 2px;
  }
  .js .cine__scene {
    position: sticky;
    top: 0;
    display: block;
    height: 100vh;
    height: 100svh;
    overflow: hidden;
  }
  .cine__plan {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
  }
  .js .cine__plan {
    position: absolute;
    inset: 0;
    aspect-ratio: auto;
    opacity: 0;
    will-change: opacity;
  }
  .js .cine__plan[data-premier] {
    opacity: 1;
  }
  /* Image d'attente : seul le fond bouge (--p, avancement du plan posé par scrub.js) */
  .cine__plan .visuel {
    position: absolute;
    inset: 0;
    aspect-ratio: auto;
    background:
      radial-gradient(60% 50% at 70% 35%, rgb(212 178 122 / 0.26) 0%, transparent 65%),
      radial-gradient(60% 50% at 20% 80%, rgb(236 228 212 / 0.12) 0%, transparent 60%),
      linear-gradient(170deg, var(--ivoire-700), var(--ivoire-950));
    background-size: 150% 150%;
    background-position: calc(30% + var(--p, 0) * 40%) calc(60% - var(--p, 0) * 20%);
  }
  .cine__plan .visuel::before {
    background-image:
      linear-gradient(rgb(250 247 241 / 0.06) 1px, transparent 1px),
      linear-gradient(90deg, rgb(250 247 241 / 0.04) 1px, transparent 1px);
    transform: scale(calc(1.18 - var(--p, 0) * 0.18));
  }
  .cine__plan .visuel--hangar {
    background:
      radial-gradient(40% 70% at 55% 20%, rgb(236 228 212 / 0.24) 0%, transparent 65%),
      radial-gradient(50% 40% at 30% 75%, rgb(38 50 74 / 0.6) 0%, transparent 60%),
      linear-gradient(180deg, var(--ivoire-800), var(--ivoire-950));
    background-size: 150% 150%;
    background-position: calc(30% + var(--p, 0) * 40%) calc(60% - var(--p, 0) * 20%);
  }
  .cine__plan .visuel--couchant {
    background:
      radial-gradient(35% 30% at 60% 48%, rgb(217 154 102 / 0.55) 0%, transparent 65%),
      linear-gradient(
        180deg,
        var(--ciel-haut),
        var(--ciel-milieu) 45%,
        var(--ciel-horizon) 58%,
        var(--mer-haut) 60%,
        var(--mer-bas)
      );
    background-size: 150% 150%;
    background-position: calc(30% + var(--p, 0) * 40%) calc(60% - var(--p, 0) * 20%);
  }
  .cine__plan .visuel--quai {
    background:
      radial-gradient(60% 50% at 40% 40%, rgb(38 50 74 / 0.7) 0%, transparent 70%),
      radial-gradient(40% 30% at 75% 70%, rgb(212 178 122 / 0.2) 0%, transparent 60%),
      linear-gradient(175deg, var(--ivoire-600), var(--ivoire-900));
    background-size: 150% 150%;
    background-position: calc(30% + var(--p, 0) * 40%) calc(60% - var(--p, 0) * 20%);
  }
  .cine__plan .visuel__nom {
    background: rgb(19 17 13 / 0.6);
    color: rgb(250 247 241 / 0.82);
  }
  .js .cine__plan .visuel__nom {
    top: calc(var(--header-h) + 16px);
    bottom: auto;
    left: var(--gutter);
  }
  .cine__video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.4s ease;
  }
  .cine__plan[data-peint="1"] .cine__video {
    opacity: 1;
  }
  .cine__voile {
    position: absolute;
    inset: 0;
    z-index: 15;
    background:
      linear-gradient(90deg, rgb(19 17 13 / 0.66) 0%, rgb(19 17 13 / 0.18) 46%, rgb(19 17 13 / 0) 70%),
      linear-gradient(0deg, rgb(19 17 13 / 0.6) 0%, rgb(19 17 13 / 0) 42%);
    pointer-events: none;
  }
  .cine__textes {
    display: grid;
    gap: 24px;
    padding: 40px var(--gutter);
  }
  .js .cine__textes {
    position: absolute;
    inset: 0;
    z-index: var(--z-cine-texte);
    display: block;
    padding: 0;
    pointer-events: none;
  }
  .cine__texte {
    max-width: 600px;
  }
  .js .cine__texte {
    position: absolute;
    left: var(--gutter);
    bottom: calc(var(--horizon-h) + clamp(40px, 9vh, 110px));
    opacity: 0;
    will-change: opacity, transform;
  }
  .js .cine__texte[data-premier] {
    opacity: 1;
  }
  .cine__heure {
    display: block;
    margin-bottom: 14px;
    font-size: var(--fs-micro);
    font-weight: 600;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--laiton-300);
  }
  .cine__phrase {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 1rem + 3vw, 4.4rem);
    font-weight: 400;
    line-height: 1;
    letter-spacing: -0.015em;
    color: var(--ivoire-050);
    text-wrap: balance;
  }
  .cine__detail {
    max-width: 46ch;
    margin-top: 18px;
    color: rgb(250 247 241 / 0.8);
  }
  .cine__reperes {
    display: none;
  }
  .js .cine__reperes {
    position: absolute;
    right: var(--gutter);
    bottom: calc(var(--horizon-h) + clamp(40px, 9vh, 110px));
    z-index: var(--z-cine-texte);
    display: grid;
    gap: 10px;
    padding: 0;
    list-style: none;
    font-size: var(--fs-micro);
    font-weight: 600;
    letter-spacing: 0.2em;
    text-align: right;
    text-transform: uppercase;
  }
  .cine__reperes li {
    opacity: 0.42;
    transition:
      opacity 0.3s ease,
      color 0.3s ease;
  }
  .cine__reperes li[data-actif="1"] {
    opacity: 1;
    color: var(--laiton-300);
  }
  .cine__invite {
    display: none;
  }
  .js .cine__invite {
    position: absolute;
    top: calc(var(--header-h) + 16px);
    left: 50%;
    z-index: var(--z-cine-texte);
    display: block;
    transform: translateX(-50%);
    font-size: var(--fs-micro);
    font-weight: 600;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    white-space: nowrap;
    color: rgb(250 247 241 / 0.72);
  }

  /* ---------- 06 · Galerie ---------- */
  .galerie {
    padding-block: var(--section-y);
  }
  .galerie__grille {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(16px, 2vw, 28px);
    align-items: start;
  }
  .galerie__item {
    display: grid;
    gap: 12px;
  }
  .galerie__item--haut {
    grid-row: span 2;
  }
  /* La dernière vue, panoramique, ferme la galerie sur toute sa largeur */
  .galerie__item--large {
    grid-column: 1 / -1;
  }
  .galerie__legende {
    font-size: var(--fs-body-sm);
    color: var(--fg-3);
  }
  .galerie__legende b {
    display: block;
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 500;
    color: var(--fg);
  }

  /* ---------- 07 · Le carnet de construction ---------- */
  .carnet {
    padding-block: 0 var(--section-y);
  }
  .carnet__phrase {
    max-width: 62rem;
    margin-bottom: calc(var(--stack) * 1.4);
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3.4vw, 3.4rem);
    font-style: italic;
    font-weight: 400;
    line-height: 1.14;
    color: var(--fg);
  }
  .carnet__etapes {
    position: relative;
    display: grid;
    gap: 0;
    border-left: 1px solid var(--filet-fort);
  }
  .carnet__etape {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 9rem) minmax(0, 1fr);
    gap: 6px 28px;
    padding: 18px 0 18px 28px;
    border-bottom: 1px solid var(--filet);
  }
  /* La bouée de chaque étape, posée sur la ligne du temps */
  .carnet__etape::before {
    content: "";
    position: absolute;
    top: 26px;
    left: -6px;
    width: 11px;
    height: 11px;
    border: 1.5px solid var(--laiton-texte);
    border-radius: 50%;
    background: var(--fond);
  }
  .carnet__mois {
    grid-row: span 2;
    padding-top: 4px;
    font-family: var(--font-mono);
    font-size: var(--fs-micro);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--laiton-texte);
  }
  .carnet__etape h3 {
    font-size: clamp(1.4rem, 1.8vw, 1.9rem);
  }
  .carnet__etape p {
    max-width: 60ch;
  }

  /* ---------- 08 · Questions ---------- */
  .faq-section {
    padding-block: 0 var(--section-y);
  }
  .faq-section__grille {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: calc(var(--stack) * 1.4);
    align-items: start;
  }

  /* ---------- 09 · Visite : la demande à préparer, sans formulaire ---------- */
  .visite__texte {
    display: grid;
    gap: var(--stack);
  }
  .visite__fiche {
    display: grid;
    gap: 20px;
    padding: clamp(24px, 3vw, 44px);
    border: 1px solid var(--laiton-600);
    background: var(--ivoire-050);
  }
  .visite__intro {
    color: var(--fg-2);
  }
  .visite__points {
    display: grid;
    border-top: 1px solid var(--filet);
  }
  .visite__points li {
    display: grid;
    grid-template-columns: 2.4rem minmax(0, 1fr);
    gap: 10px;
    padding-block: 12px;
    border-bottom: 1px solid var(--filet);
    color: var(--fg);
  }
  .visite__points span {
    font-family: var(--font-display);
    font-style: italic;
    color: var(--laiton-texte);
  }
  .formulaire__note a {
    color: var(--laiton-texte);
  }

  /* Fiche des mentions légales : intitulé à gauche, valeur à droite */
  .page__fiche {
    display: grid;
    grid-template-columns: minmax(0, 15rem) minmax(0, 1fr);
    gap: 8px 20px;
  }
  .page__fiche dt {
    color: var(--fg-3);
  }
  .page__fiche dd {
    margin: 0;
    color: var(--fg);
  }
}

@layer site {
  /* ======================================================================
     PARTIE 3 — IMAGES FUTURISTES (chantier T50, 28/10/2026)
     D'après « Site 5-yachtmer » (marine profond, liserés dorés, légendes de plan) : le vrai yacht futuriste à la
     coque noire liserée d'or au couchant remplit le premier écran ; la mer dessinée reste dessous en repli. Film,
     salon, timonerie, pont et visite en images générées ; détails en photos libres relevées d'un liseré or.
     ====================================================================== */
  .mer__photo {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: 62% 50%;
    transform-origin: 70% 55%;
  }
  .mer:has(.mer__photo) :is(.mer__ciel, .mer__soleil, .mer__eau, .mer__vagues) {
    visibility: hidden;
  }
  .mer:has(.mer__photo)::after {
    z-index: 1;
    background:
      linear-gradient(90deg, rgb(19 17 13 / 0.82) 0%, rgb(19 17 13 / 0.38) 46%, rgb(19 17 13 / 0) 70%),
      linear-gradient(0deg, rgb(19 17 13 / 0.7) 0%, rgb(19 17 13 / 0) 32%);
  }

  .visuel:has(> img) .visuel__nom {
    display: none;
  }
  .visuel > img {
    transition: scale 1.2s var(--ease-out, ease);
  }
  .galerie .visuel:has(> img) {
    box-shadow:
      0 0 0 1px rgb(190 160 100 / 0.32),
      0 34px 60px -40px rgb(0 0 0 / 0.75);
  }
}

/* ---------- T53-HEROS : jetons de la nouvelle section héros et du film (T53, 02/11/2026) ----------
   un yacht de 42 m à coque laquée vert sauge, fini sur son ber dans le hangar du chantier, portes ouvertes sur la mer au couchant ; le sauge de la coque, en plusieurs nuances, porte tout le héros, et la fiche du yacht prend la forme du cartouche d'une planche d'architecte naval. */
.heros,
.cine-produit {
  --h-police-titre: var(--font-display);
  --h-police-texte: var(--font-body);
  --h-police-mono: var(--font-mono);
  --h-bord: #6f7a6c;
  --h-fond: #9ca79b;
  --h-fond-2: #c5ccc1;
  --h-texte: #13110d;
  --h-texte-doux: rgba(19, 17, 13, 0.82);
  --h-texte-pale: rgba(19, 17, 13, 0.6);
  --h-vif: #2f3b33;
  --h-verre: rgba(244, 239, 230, 0.4);
  --h-verre-fort: rgba(244, 239, 230, 0.7);
  --h-verre-filet: rgba(19, 17, 13, 0.2);
  --h-verre-filet-fort: rgba(19, 17, 13, 0.42);
  --h-carte-a: rgba(244, 239, 230, 0.6);
  --h-carte-b: rgba(244, 239, 230, 0.35);
  --h-lueur: 47 59 51;
  --h-ombre: 20 24 21;
  --h-mot-haut: rgba(19, 17, 13, 0.12);
  --h-mot-bas: rgba(19, 17, 13, 0.02);
  --h-piste: rgba(19, 17, 13, 0.2);
  --h-rayon: 0;
  --h-courbe: 0;
  --h-courbe-fleche: 0;
  --h-action: linear-gradient(120deg, #26302a 0%, #3a473e 60%, #55645a 100%);
  --h-encre-action: #f4efe6;
  color-scheme: light;
}
/* ---------- T53-HEROS : nouvelle section héros et film produit (modèle générique tiré d'airsbot, 02/11/2026) ----------
   Toutes les couleurs viennent des jetons --h-* posés juste au-dessus (rampe de la teinte de l'objet). */
.heros,
.cine-produit {
  background: var(--h-bord);
  color: var(--h-texte);
}

/* Replis : les noms du socle commun, sinon des valeurs sûres ; :where() = aucune priorité, la fiche du site l'emporte */
:where(.heros, .cine-produit) {
  --h-gouttiere: var(--gouttiere, clamp(20px, 4.2vw, 64px));
  --h-barre: var(--barre-hauteur, 72px);
  --h-police-titre: var(--f-titre, inherit);
  --h-police-texte: var(--f-texte, inherit);
  --h-police-mono: var(--f-mono, ui-monospace, monospace);
  --h-ease: var(--ease-sortie, cubic-bezier(0.22, 1, 0.36, 1));
  --h-action: var(--accent, #1554f0);
  --h-encre-action: var(--encre-accent, #ffffff);
  font-family: var(--h-police-texte);
}

/* Boutons de la section, indépendants du socle du site (règle de l'utilisateur : icône à gauche, flèche sur
   pastille blanche à droite) */
.heros .bouton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: var(--h-courbe, 999px);
  font-family: var(--h-police-texte);
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.heros .bouton__icone {
  flex: none;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.heros .bouton--principal {
  padding-right: 5px;
  background: var(--h-action);
  color: var(--h-encre-action);
}

.heros .bouton__fleche {
  box-sizing: content-box;
  flex: none;
  width: 16px;
  height: 16px;
  margin-left: 4px;
  padding: 11px;
  border-radius: var(--h-courbe-fleche, 50%);
  background: #fff;
  color: #141414;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.heros .bouton__fleche path {
  transition: transform 0.25s var(--h-ease);
}

.heros .bouton--principal:hover .bouton__fleche path {
  transform: translateX(2px);
}

.heros {
  padding: 10px;
}

.heros__cadre {
  position: relative;
  display: grid;
  align-items: center;
  min-height: calc(100svh - 20px);
  border-radius: var(--h-rayon);
  overflow: clip;
  isolation: isolate;
  background:
    radial-gradient(120% 90% at 70% 30%, var(--h-fond-2) 0%, var(--h-fond) 46%, var(--h-bord) 100%);
}

/* La scène : la photo occupe la droite et s'efface vers la gauche dans le fond (même rouge) */
.heros__scene {
  position: absolute;
  inset: 0 0 0 auto;
  z-index: -1;
  width: 78%;
  container-type: size;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 24%);
  mask-image: linear-gradient(90deg, transparent 0, #000 24%);
}

/* Le plan garde les proportions de la photo (1920 × 1072) et la couvre : les couches s'y superposent au pixel */
.heros__plan {
  /* Centré par calcul (pas par « translate », que GSAP réécrit quand il anime la profondeur) */
  --plan-l: max(100cqw, calc(var(--ratio-plan, 1.791) * 100cqh));
  position: absolute;
  top: calc(50% - var(--plan-l) / var(--ratio-plan, 1.791) * (0.5 - var(--decal, 0)));
  left: calc(50% - var(--plan-l) * (0.5 + var(--decal-x, 0)));
  width: var(--plan-l);
  aspect-ratio: var(--ratio-plan, 1.791);
  container-type: inline-size;
}

.heros__plan-entree,
.heros__fond,
.heros__objet {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.heros__fond,
.heros__objet {
  object-fit: cover;
}

/* Le halo derrière l'appareil respire lentement */
.heros__halo {
  position: absolute;
  width: 40%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgb(var(--h-lueur) / 0.34) 0%, rgb(var(--h-lueur) / 0.12) 42%, transparent 68%);
  mix-blend-mode: var(--h-melange, screen);
  pointer-events: none;
}

/* Le mot géant passe derrière l'appareil (entre la photo et l'appareil détouré) */
.heros__mot {
  position: absolute;
  font-family: var(--h-police-titre);
  font-weight: 800;
  line-height: 0.8;
  letter-spacing: -0.02em;
  white-space: nowrap;
  pointer-events: none;
}

.heros__mot > span {
  display: block;
  background: linear-gradient(180deg, var(--h-mot-haut) 0%, var(--h-mot-bas) 92%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Une lueur sur un détail de l'objet (sa lumière colore le design, règle R-H5) : position donnée par la fiche */
.heros__lueur {
  position: absolute;
  aspect-ratio: 1;
  border-radius: 50%;
  translate: -50% -50%;
  background: radial-gradient(circle, rgb(var(--h-lueur) / 0.55) 0%, rgb(var(--h-lueur) / 0.18) 45%, transparent 70%);
  mix-blend-mode: var(--h-melange, screen);
  pointer-events: none;
}

/* Légende reliée à la turbine par un filet */
.heros__legende {
  position: absolute;
  height: 13%;
  border-left: 1px solid var(--h-verre-filet);
  pointer-events: none;
}

.heros__legende::before {
  content: "";
  position: absolute;
  top: -4px;
  left: -4.5px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--h-vif);
  box-shadow: 0 0 0 4px rgb(var(--h-lueur) / 0.22);
}

.heros__legende-texte {
  position: absolute;
  right: 12px;
  bottom: 0;
  font-family: var(--h-police-mono);
  font-size: 0.72rem;
  text-align: right;
  line-height: 1.4;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--h-texte-doux);
}

/* Le texte, à gauche, sur la partie calme de la photo */
.heros__contenu {
  position: relative;
  z-index: 2;
  max-width: 40rem;
  padding: calc(var(--h-barre) + 2vh) var(--h-gouttiere) clamp(76px, 12vh, 140px);
}

.heros__surtitre {
  margin: 0 0 18px;
  font-family: var(--h-police-mono);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--h-vif);
}

.heros__titre {
  margin: 0;
  font-family: var(--h-police-titre);
  font-size: min(clamp(2.2rem, 1rem + 2.6vw, 4.3rem), 7.6svh);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.025em;
  color: var(--h-texte);
  text-wrap: balance;
}

.heros__titre em {
  font-style: normal;
  color: var(--h-vif);
}

.heros__chapeau {
  max-width: 46ch;
  margin: 16px 0 0;
  font-size: clamp(1rem, 0.9rem + 0.3vw, 1.12rem);
  line-height: 1.55;
  color: var(--h-texte-doux);
}

.heros__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.heros .bouton--principal {
  box-shadow:
    0 0 0 1px rgb(var(--h-lueur) / 0.35),
    0 16px 40px -14px rgb(var(--h-lueur) / 0.6);
}

/* Bouton de verre teinté (secondaire sur fond sombre) : réponse immédiate à l'appui */
.bouton--verre {
  border-color: var(--h-verre-filet);
  background: var(--h-verre);
  color: var(--h-texte);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.bouton--verre:hover {
  border-color: var(--h-verre-filet-fort);
  background: var(--h-verre-fort);
}

.heros .bouton {
  transition:
    background-color 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.3s ease,
    transform 0.16s var(--h-ease);
}

.heros .bouton:active,
.btn:active {
  transform: scale(0.97);
}

/* Trois cartes de verre rouge, en bas à droite (règle R-H9) */
.heros__cartes {
  position: absolute;
  right: clamp(16px, 2vw, 28px);
  bottom: clamp(16px, 2vw, 28px);
  z-index: 2;
  display: flex;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.heros__carte {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: clamp(180px, 15vw, 222px);
  padding: 14px 16px;
  border: 1px solid var(--h-verre-filet);
  border-radius: 16px;
  background: linear-gradient(160deg, var(--h-carte-a), var(--h-carte-b));
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  backdrop-filter: blur(16px) saturate(1.2);
  font-size: 0.82rem;
  line-height: 1.4;
  color: var(--h-texte-pale);
  transition:
    border-color 0.25s ease,
    background-color 0.25s ease;
}

.heros__carte:hover {
  border-color: var(--h-verre-filet-fort);
}

.heros__carte strong {
  display: block;
  margin-bottom: 2px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--h-texte);
}

.heros__icone {
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  fill: none;
  stroke: var(--h-vif);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Mention latérale en capitales très espacées (détail de seconde lecture) */
.heros__meta {
  position: absolute;
  top: 50%;
  right: clamp(12px, 1.4vw, 22px);
  z-index: 2;
  margin: 0;
  font-family: var(--h-police-mono);
  font-size: 0.66rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--h-texte-pale);
  writing-mode: vertical-rl;
  translate: 0 -50%;
}

/* Indicateur de défilement */
.heros__defiler {
  position: absolute;
  bottom: clamp(18px, 2.4vw, 30px);
  left: var(--h-gouttiere);
  z-index: 2;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
}

.heros__souris {
  position: relative;
  width: 20px;
  height: 31px;
  border: 1.5px solid var(--h-texte-pale);
  border-radius: 11px;
}

.heros__souris::after {
  content: "";
  position: absolute;
  top: 6px;
  left: 50%;
  width: 3px;
  height: 6px;
  border-radius: 2px;
  background: var(--h-vif);
  translate: -50% 0;
}

/* ---------- 0 bis. Nouvelle section cinématographique (T53) : le film du Faucon, joué par la molette ----------
   Même cadre que le héros (bords rouge noir, cadre arrondi, verre rouge, chiffres en mono rose). */
.cine-produit__piste {
  height: 300vh;
}

.cine-produit__scene {
  position: sticky;
  top: 0;
  height: 100svh;
  padding: 10px;
}

.cine-produit__cadre {
  position: relative;
  height: 100%;
  border-radius: var(--h-rayon);
  overflow: clip;
  isolation: isolate;
  background: var(--h-fond);
}

/* La caméra avance très légèrement pendant que le film se déroule */
.cine-produit__video {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(calc(1.06 - 0.06 * var(--p, 0)));
}

.cine-produit__voile {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgb(var(--h-ombre) / 0.86) 0%, rgb(var(--h-ombre) / 0.45) 34%, transparent 58%),
    linear-gradient(0deg, rgb(var(--h-ombre) / 0.7) 0%, transparent 34%);
  pointer-events: none;
}

.cine-produit__tete {
  position: absolute;
  top: calc(var(--h-barre) + 3vh);
  left: var(--h-gouttiere);
  max-width: 30rem;
}

.cine-produit__titre {
  margin: 0;
  font-family: var(--h-police-titre);
  font-size: min(clamp(1.9rem, 1rem + 1.9vw, 3.4rem), 7svh);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.02em;
  color: var(--h-texte);
  text-wrap: balance;
}

.cine-produit__titre em {
  font-style: normal;
  color: var(--h-vif);
}

/* Les trois étapes : celle qui correspond à l'image s'allume */
.cine-produit__etapes {
  position: absolute;
  bottom: clamp(72px, 12vh, 104px);
  left: var(--h-gouttiere);
  display: grid;
  gap: 8px;
  width: min(23rem, 40%);
  margin: 0;
  padding: 0;
  list-style: none;
}

.cine-produit__etapes li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 12px 16px;
  border: 1px solid transparent;
  border-radius: 14px;
  font-size: 0.86rem;
  line-height: 1.4;
  color: var(--h-texte-pale);
  opacity: 0.42;
  transition:
    opacity 0.35s var(--h-ease),
    border-color 0.35s ease,
    background-color 0.35s ease;
}

.cine-produit__etapes li.est-active {
  border-color: var(--h-verre-filet);
  background: var(--h-verre);
  opacity: 1;
}

.cine-produit__etapes strong {
  display: block;
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--h-texte);
}

.cine-produit__num {
  font-family: var(--h-police-mono);
  font-size: 0.76rem;
  line-height: 1.9;
  color: var(--h-vif);
}

/* Compteur et barre de progression du film */
.cine-produit__compteur {
  position: absolute;
  right: var(--h-gouttiere);
  bottom: clamp(22px, 3.4vh, 34px);
  left: var(--h-gouttiere);
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--h-police-mono);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  color: var(--h-texte-doux);
}

.cine-produit__barre {
  position: relative;
  flex: 1;
  height: 2px;
  border-radius: 2px;
  background: var(--h-piste);
  overflow: hidden;
}

.cine-produit__barre > span {
  position: absolute;
  inset: 0;
  background: var(--h-vif);
  transform: scaleX(var(--p, 0));
  transform-origin: left center;
}


/* ---------- Passe des skills sur toute la page (T53, 02/11/2026 — apple-design, emil-design-eng) ----------
   Réponse immédiate à l'appui (échelle 0,97 en 160 ms, interruptible), titres équilibrés, chiffres de même
   largeur dans les compteurs, focus visible partout, cartes qui s'éclairent au survol sans bouger la mise en page. */
.bouton {
  transition:
    background-color 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.3s ease,
    transform 0.16s var(--h-ease);
}

.bouton:active,
.btn:active {
  transform: scale(0.97);
}

.titre-1,
.titre-2,
.titre-3 {
  text-wrap: balance;
}

[data-compteur],
.jauge__texte b,
.cine__heure {
  font-variant-numeric: tabular-nums;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent, currentColor);
  outline-offset: 3px;
}

@media (hover: hover) {
  .vignette,
  [data-revele-carte] {
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
  }

  [data-revele-carte]:hover {
    box-shadow: 0 18px 40px -26px rgba(20, 21, 24, 0.45);
  }
}
/* ---------- T53-HEROS, disposition « le cartouche » (yachtmer, 02/11/2026) ----------
   La photo du hangar remplit la section : le yacht à coque laquée vert sauge sur son ber à droite, portes ouvertes sur
   la mer au couchant ; à gauche, un pan de mur sauge calme. Sur le mur : le titre en Cormorant, des boutons à double
   filet (un trait plein, un trait décalé, comme le cadre d'une planche), et le cartouche d'une planche d'architecte
   naval — modèle, numéro de planche, échelle, six cotes en cases. Film en vue éclatée par ponts : titre en haut à
   gauche, étapes dans les cases d'un cartouche en bas à droite (lettres A, B, C). */
.heros--cartouche {
  padding: 0;
}

.heros--cartouche .heros__cadre {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 100svh;
  padding: calc(var(--h-barre) + 3vh) var(--h-gouttiere) clamp(22px, 4vh, 40px);
  border-radius: 0;
  overflow: clip;
  isolation: isolate;
  background: var(--h-fond);
}

.heros-cartouche__photo {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
}

[data-motion="full"] .heros-cartouche__photo {
  animation: cartouche-entree 2.6s cubic-bezier(0.16, 1, 0.3, 1) 0.1s backwards;
}

@keyframes cartouche-entree {
  from {
    opacity: 0;
    transform: scale(1.04);
  }
}

.heros-cartouche__texte {
  width: min(31rem, 36vw);
}

.heros--cartouche .heros__titre {
  font-size: min(clamp(2.3rem, 1.2rem + 2.6vw, 4.6rem), 8.4svh);
  font-weight: 500;
  line-height: 0.98;
  color: var(--h-texte);
}

.heros--cartouche .heros__titre em {
  color: var(--h-vif);
}

.heros--cartouche .heros__chapeau {
  max-width: 30rem;
  margin-top: 12px;
  color: var(--h-texte-doux);
}

.heros--cartouche .heros__actions {
  margin-top: 20px;
}

/* Boutons à double filet : un trait plein, un second décalé de 3 px */
.heros--cartouche .bouton {
  border-radius: 0;
  outline: 1px solid currentColor;
  outline-offset: 3px;
}

.heros--cartouche .bouton__fleche {
  border-radius: 0;
}

/* Le cartouche d'une planche d'architecte naval */
.cartouche {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: clamp(18px, 3.4vh, 30px);
  border: 1.5px solid var(--h-texte);
  color: var(--h-texte);
}

.cartouche__tete {
  display: flex;
  grid-column: 1 / -1;
  justify-content: space-between;
  margin: 0;
  padding: 6px 10px;
  border-bottom: 1.5px solid var(--h-texte);
  font-family: var(--h-police-mono);
  font-size: 0.64rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.cartouche__case {
  padding: 7px 10px;
  border-right: 1px solid var(--h-verre-filet-fort);
  border-bottom: 1px solid var(--h-verre-filet-fort);
}

.cartouche__case:nth-of-type(3n) {
  border-right: 0;
}

.cartouche__case:nth-last-of-type(-n + 3) {
  border-bottom: 0;
}

.cartouche__case span {
  display: block;
  font-family: var(--h-police-mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--h-texte-pale);
}

.cartouche__case strong {
  font-family: var(--h-police-titre);
  font-size: 1.15rem;
  font-weight: 500;
}

/* Le film en vue éclatée par ponts */
.cine-produit--cartouche .cine-produit__scene {
  padding: 0;
}

.cine-produit--cartouche .cine-produit__cadre {
  border-radius: 0;
  background: radial-gradient(60% 70% at 50% 40%, #e9d9b6 0%, #b9b39a 55%, #6f7a6c 100%);
}

.cine-produit--cartouche .cine-produit__video {
  inset: 0;
  width: 100%;
  height: 100%;
  transform: none;
  object-fit: cover;
}

.cine-produit--cartouche .cine-produit__voile {
  background:
    radial-gradient(44% 40% at 0% 0%, rgb(var(--h-ombre) / 0.5) 0%, transparent 72%),
    radial-gradient(44% 46% at 100% 100%, rgb(var(--h-ombre) / 0.55) 0%, transparent 72%);
}

.cine-produit--cartouche .cine-produit__titre,
.cine-produit--cartouche .cine-produit__tete .heros__surtitre {
  color: #f4efe6;
}

.cine-produit--cartouche .cine-produit__titre em {
  color: #e9d9b6;
}

/* Les étapes dans les cases d'un cartouche, en bas à droite */
.cine-produit--cartouche .cine-produit__etapes {
  top: auto;
  right: var(--h-gouttiere);
  bottom: 66px;
  left: auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  width: min(34rem, 46vw);
  border: 1.5px solid rgb(244 239 230 / 0.85);
  background: rgb(var(--h-ombre) / 0.35);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.cine-produit--cartouche .cine-produit__etapes li {
  border: 0;
  border-right: 1px solid rgb(244 239 230 / 0.45);
  border-radius: 0;
  background: none;
  color: rgb(244 239 230 / 0.7);
}

.cine-produit--cartouche .cine-produit__etapes li:last-child {
  border-right: 0;
}

.cine-produit--cartouche .cine-produit__etapes li.est-active {
  background: rgb(244 239 230 / 0.16);
  color: #f4efe6;
}

.cine-produit--cartouche .cine-produit__etapes strong {
  color: #f4efe6;
}

.cine-produit--cartouche .cine-produit__compteur {
  right: var(--h-gouttiere);
  bottom: 26px;
  left: auto;
  width: min(34rem, 46vw);
  color: rgb(244 239 230 / 0.8);
}

@media (max-width: 760px) {
  .heros--cartouche .heros__cadre {
    display: block;
    padding: calc(var(--h-barre) + 2vh) 18px 46svh;
    background: var(--h-fond);
  }

  .heros-cartouche__photo {
    top: auto;
    bottom: 0;
    height: 44svh;
    object-position: 72% 50%;
  }

  .heros-cartouche__texte {
    width: auto;
  }

  .cine-produit--cartouche .cine-produit__tete,
  .cine-produit--cartouche .cine-produit__etapes,
  .cine-produit--cartouche .cine-produit__compteur {
    position: static;
    width: auto;
  }

  .cine-produit--cartouche .cine-produit__etapes {
    grid-template-columns: minmax(0, 1fr);
  }

  .cine-produit--cartouche .cine-produit__titre,
  .cine-produit--cartouche .cine-produit__tete .heros__surtitre,
  .cine-produit--cartouche .cine-produit__etapes li,
  .cine-produit--cartouche .cine-produit__etapes strong,
  .cine-produit--cartouche .cine-produit__compteur {
    color: var(--h-texte);
  }

  .cine-produit--cartouche .cine-produit__video {
    position: relative;
    inset: auto;
    height: auto;
    aspect-ratio: 16 / 9;
  }
}

/* T53 : réglages propres au site */
/* Le vert sauge de la coque laquée, en plusieurs nuances, sur les boutons du site : angles vifs et double filet,
   texte ivoire ; les boutons d'origine (laiton) prennent la même forme. */
.heros .bouton--principal,
.btn-laiton {
  border-radius: 0;
  background: linear-gradient(120deg, #26302a 0%, #3a473e 60%, #55645a 100%);
  color: #f4efe6;
  outline: 1px solid #26302a;
  outline-offset: 3px;
}

.btn-fin {
  border-radius: 0;
  outline: 1px solid currentColor;
  outline-offset: 3px;
}

/* Film des ponts de 15,6 s */
.cine-produit--cartouche .cine-produit__piste {
  height: 340vh;
}

/* Vérification du 02/11 : la colonne va jusqu'au début de la coque (moins de lignes), titre plus serré, boutons sur
   une ligne, marge basse pour la ligne d'horizon du site ; tout tient dans un écran de 588 px de haut */
@media (min-width: 761px) {
  .heros--cartouche .heros__cadre {
    padding-bottom: 64px;
  }

  .heros-cartouche__texte {
    width: min(36rem, 46vw);
  }

  .heros--cartouche .heros__titre {
    font-size: min(clamp(2rem, 1rem + 2.2vw, 4.2rem), 7.2svh);
  }

  .heros--cartouche .heros__chapeau {
    font-size: 0.92rem;
  }

  .heros--cartouche .heros__actions {
    flex-wrap: nowrap;
  }

  .heros--cartouche .heros__actions .bouton {
    flex: 0 0 auto;
  }

  .cartouche {
    margin-top: clamp(14px, 2.6vh, 26px);
  }

  .cartouche__case {
    padding-block: 5px;
  }
}

/* La colonne s'arrête au bord du pan de mur sauge de la photo (≈ 40 % de la largeur) : aucun texte sur le hangar */
@media (min-width: 761px) {
  .heros-cartouche__texte {
    width: calc(40vw - var(--h-gouttiere) - 12px);
  }

  .heros--cartouche .heros__titre {
    font-size: min(clamp(1.9rem, 0.9rem + 2vw, 3.8rem), 6.4svh);
  }

  .heros--cartouche .heros__chapeau {
    font-size: 0.88rem;
  }

  .heros--cartouche .heros__actions .bouton {
    padding-inline: 14px;
    font-size: 0.9rem;
  }
}

/* Vérification du 02/11 : titre à l'encre sur le ciel clair ; le cartouche des étapes monte en colonne en haut à
   droite, dans le ciel libre (la vue éclatée remplit le bas de l'image) */
@media (min-width: 761px) {
  .cine-produit--cartouche .cine-produit__voile {
    background: none;
  }

  .cine-produit--cartouche .cine-produit__titre,
  .cine-produit--cartouche .cine-produit__tete .heros__surtitre {
    color: #13110d;
  }

  .cine-produit--cartouche .cine-produit__titre em {
    color: #3a473e;
  }

  .cine-produit--cartouche .cine-produit__etapes {
    top: calc(var(--h-barre) + 2vh);
    bottom: auto;
    grid-template-columns: minmax(0, 1fr);
    width: min(16rem, 21vw);
    border-color: #13110d;
    background: rgb(244 239 230 / 0.72);
  }

  .cine-produit--cartouche .cine-produit__etapes li {
    border-right: 0;
    border-bottom: 1px solid rgb(19 17 13 / 0.25);
    color: rgb(19 17 13 / 0.62);
  }

  .cine-produit--cartouche .cine-produit__etapes li:last-child {
    border-bottom: 0;
  }

  .cine-produit--cartouche .cine-produit__etapes li.est-active {
    background: rgb(19 17 13 / 0.08);
    color: #13110d;
  }

  .cine-produit--cartouche .cine-produit__etapes strong {
    color: #13110d;
  }

  .cine-produit--cartouche .cine-produit__compteur {
    top: auto;
    bottom: 70px;
    width: min(16rem, 21vw);
    color: #f4efe6;
  }
}

/* La vidéo entière, jamais recadrée (règle 31) : le même ciel prolongé jusqu'aux bords par l'image d'attente floutée */
@media (min-width: 761px) {
  .cine-produit--cartouche .cine-produit__cadre::before {
    content: "";
    position: absolute;
    inset: -40px;
    z-index: -3;
    background: var(--cp-fond-flou) center / 100% 100% no-repeat;
    filter: blur(28px);
  }

  .cine-produit--cartouche .cine-produit__video {
    object-fit: contain;
    -webkit-mask-image:
      linear-gradient(90deg, transparent 0%, #000 5%, #000 95%, transparent 100%),
      linear-gradient(180deg, transparent 0%, #000 5%, #000 95%, transparent 100%);
    -webkit-mask-size: min(100%, 177.78svh) 100%, 100% min(100%, 56.25vw);
    -webkit-mask-position: center;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-composite: source-in;
    mask-image:
      linear-gradient(90deg, transparent 0%, #000 5%, #000 95%, transparent 100%),
      linear-gradient(180deg, transparent 0%, #000 5%, #000 95%, transparent 100%);
    mask-size: min(100%, 177.78svh) 100%, 100% min(100%, 56.25vw);
    mask-position: center;
    mask-repeat: no-repeat;
    mask-composite: intersect;
  }
}

.cine-produit--cartouche {
  --cp-fond-flou: url("../assets/images/cine-ponts-attente.webp");
}

/* =====================================================================================================================
   T54-FIN — nouvelle méthode cinématographique (04/11/2026, NOUVELLE-METHODE-CINEMATOGRAPHIQUE/)
   ===================================================================================================================== */

/* Film de 15.63 s : moteur fluide (vidéo lue en avant), arrêts data-cp-marges="0.3 1" (le film démarre une fois la scène
   installée et finit avant qu'elle ne reparte) — piste réglée en conséquence */
.cine-produit[data-cine-produit] .cine-produit__piste {
  height: 1430vh;
}
