/* ==========================================================================
   IMOLEXA — Feuille de style unique
   --------------------------------------------------------------------------
   Sommaire
     1.  Jetons de design (couleurs, typographie, espacements)
     2.  Base et réinitialisation
     3.  Utilitaires de mise en page
     4.  Typographie
     5.  Boutons et liens
     6.  En-tête et navigation
     7.  Pied de page
     8.  Hero (accueil) et en-têtes de page
     9.  Bandeau de réassurance
     10. Cartes modèles
     11. Étapes « Comment ça marche »
     12. Cartes « Pour qui »
     13. Conformité (badges et normes)
     14. Bandeau d'appel à l'action
     15. Galerie médias et visionneuse
     16. Fiche modèle (caractéristiques)
     17. Accordéon FAQ
     18. Formulaires (contact et devis multi-étapes)
     19. Animations au défilement
     20. Impression
   ========================================================================== */

/* ==========================================================================
   0. POLICE — Plus Jakarta Sans (variable, auto-hébergée : aucune requête
      vers un serveur tiers, conformité RGPD préservée)
   ========================================================================== */
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../fonts/plus-jakarta-sans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../fonts/plus-jakarta-sans-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ==========================================================================
   1. JETONS DE DESIGN
   ========================================================================== */
:root {
  /* Couleurs — palette sobre et naturelle */
  --paper: #faf8f5; /* blanc cassé, fond principal */
  --paper-2: #f2eee8; /* fond alterné, sections calmes */
  --paper-3: #e8e3db; /* aplats, séparateurs épais */
  --ink: #16191a; /* gris anthracite, texte principal */
  --ink-2: #3c4241; /* texte secondaire */
  --muted: #6d7472; /* légendes, mentions */
  --line: #e0dbd3; /* filets et bordures */
  --line-strong: #cfc8bd;
  --forest: #24503f; /* accent vert profond */
  --forest-dark: #1a3c2e;
  --forest-soft: #eef2f0; /* fond teinté très léger */
  --white: #ffffff;

  /* Typographie */
  --font-sans: "Plus Jakarta Sans", "Inter", "Segoe UI", -apple-system,
    BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --fs-hero: clamp(2.6rem, 1.3rem + 4.8vw, 5rem);
  --fs-h1: clamp(2.2rem, 1.4rem + 2.8vw, 3.6rem);
  --fs-h2: clamp(1.75rem, 1.2rem + 2vw, 2.9rem);
  --fs-h3: clamp(1.15rem, 1rem + 0.6vw, 1.45rem);
  --fs-lead: clamp(1.02rem, 0.96rem + 0.4vw, 1.22rem);
  --fs-body: 1rem;
  --fs-sm: 0.9rem;
  --fs-xs: 0.8rem;

  /* Rythme vertical et gouttières */
  --gap: 1.5rem;
  --section-y: clamp(4rem, 2.5rem + 7.5vw, 9rem);
  --container: 1180px;
  --container-narrow: 760px;

  /* Formes et ombres */
  --radius: 4px;
  --radius-lg: 8px;
  --shadow-sm: 0 1px 2px rgba(22, 25, 26, 0.05), 0 4px 14px rgba(22, 25, 26, 0.045);
  --shadow-md: 0 12px 40px rgba(22, 25, 26, 0.1);
  --shadow-lg: 0 24px 70px rgba(22, 25, 26, 0.16);

  /* Transitions — discrètes, mais avec une vraie signature de mouvement :
     --ease-out (sortie très amortie) donne le rendu « premium » des reveals */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --t-fast: 160ms var(--ease);
  --t: 320ms var(--ease);
  --t-slow: 900ms var(--ease-out);

  --header-h: 76px;
}

/* ==========================================================================
   2. BASE ET RÉINITIALISATION
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
}

body.is-locked {
  overflow: hidden; /* menu mobile ou visionneuse ouverte */
}

/* L'attribut `hidden` doit TOUJOURS l'emporter.
   Sans cette règle, la moindre déclaration `display` portée par une classe
   (.chat-panel, .field, .choice…) annule le masquage : l'élément reste
   affiché alors que le JavaScript le croit caché. */
[hidden] {
  display: none !important;
}

img,
video,
iframe {
  max-width: 100%;
  height: auto;
  display: block;
}

svg {
  display: block;
}

a {
  color: inherit;
}

button {
  font: inherit;
  color: inherit;
}

/* Accessibilité : focus toujours visible au clavier */
:focus-visible {
  outline: 2px solid var(--forest);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 200;
  background: var(--ink);
  color: var(--paper);
  padding: 0.7rem 1.1rem;
  border-radius: var(--radius);
  transition: top var(--t-fast);
}
.skip-link:focus {
  top: 1rem;
}

/* Réservé aux lecteurs d'écran */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ==========================================================================
   3. UTILITAIRES DE MISE EN PAGE
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.15rem, 4vw, 2.5rem);
}

.container--narrow {
  max-width: var(--container-narrow);
}

.section {
  padding-block: var(--section-y);
}

.section--tight {
  padding-block: clamp(2.5rem, 1.5rem + 4vw, 4.5rem);
}

.section--paper-2 {
  background: var(--paper-2);
}

.section--ink {
  background: var(--ink);
  color: var(--paper);
}

.section--forest {
  background: var(--forest);
  color: var(--paper);
}

.grid {
  display: grid;
  gap: var(--gap);
}

@media (min-width: 720px) {
  .grid--2 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid--3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1000px) {
  .grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }
  .grid--4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stack > * + * {
  margin-top: 1rem;
}

.text-center {
  text-align: center;
}

.divider {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 0;
}

/* ==========================================================================
   4. TYPOGRAPHIE
   ========================================================================== */
h1,
h2,
h3,
h4 {
  margin: 0 0 0.6em;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: inherit;
  text-wrap: balance;
}

h3,
h4 {
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.015em;
}

::selection {
  background: var(--forest);
  color: var(--paper);
}

h1 {
  font-size: var(--fs-h1);
}
h2 {
  font-size: var(--fs-h2);
}
h3 {
  font-size: var(--fs-h3);
  line-height: 1.25;
}

p {
  margin: 0 0 1em;
}
p:last-child {
  margin-bottom: 0;
}

.lead {
  font-size: var(--fs-lead);
  line-height: 1.62;
  color: var(--ink-2);
  max-width: 62ch;
}

.section--ink .lead,
.section--forest .lead {
  color: rgba(250, 248, 245, 0.82);
}

/* Suréloge de section : petit label en capitales au-dessus du titre */
.eyebrow {
  display: inline-block;
  margin: 0 0 0.9rem;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--forest);
}

.section--ink .eyebrow,
.section--forest .eyebrow {
  color: rgba(250, 248, 245, 0.65);
}

.section-head {
  max-width: 62ch;
  margin-bottom: clamp(2rem, 1rem + 3vw, 3.25rem);
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.muted {
  color: var(--muted);
}

.small {
  font-size: var(--fs-sm);
}

/* ==========================================================================
   5. BOUTONS ET LIENS
   ========================================================================== */
.btn {
  position: relative;
  z-index: 0;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.95rem 1.7rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: var(--forest);
  color: var(--white);
  font-size: 0.96rem;
  font-weight: 600;
  letter-spacing: 0.005em;
  text-decoration: none;
  cursor: pointer;
  transition: color 320ms var(--ease-out), border-color 320ms var(--ease-out),
    transform var(--t-fast);
}

/* Remplissage qui monte au survol — la teinte du voile dépend de la variante */
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--forest-dark);
  transform: translateY(101%);
  transition: transform 420ms var(--ease-out);
}

.btn:hover::after {
  transform: translateY(0);
}

.btn:active {
  transform: translateY(1px);
}

.btn[disabled],
.btn[aria-disabled="true"] {
  opacity: 0.45;
  pointer-events: none;
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn--ghost::after {
  background: var(--ink);
}
.btn--ghost:hover {
  color: var(--paper);
  border-color: var(--ink);
}

.btn--light {
  background: var(--paper);
  color: var(--ink);
}
.btn--light::after {
  background: var(--white);
}

.btn--outline-light {
  background: transparent;
  color: var(--paper);
  border-color: rgba(250, 248, 245, 0.45);
}
.btn--outline-light::after {
  background: var(--paper);
}
.btn--outline-light:hover {
  color: var(--ink);
  border-color: var(--paper);
}

.btn--lg {
  padding: 1.1rem 2.1rem;
  font-size: 1.02rem;
}

.btn--block {
  width: 100%;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.btn-row--center {
  justify-content: center;
}

/* Lien fléché discret */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 550;
  font-size: 0.95rem;
  color: var(--forest);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-fast), gap var(--t-fast);
}
.link-arrow::after {
  content: "→";
  transition: transform var(--t-fast);
}
.link-arrow:hover {
  border-color: currentColor;
}
.link-arrow:hover::after {
  transform: translateX(3px);
}

/* ==========================================================================
   6. EN-TÊTE ET NAVIGATION
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 248, 245, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-fast), background var(--t-fast),
    transform 480ms var(--ease-out);
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
}

/* L'en-tête s'efface quand on descend, réapparaît dès qu'on remonte :
   plus d'espace pour le contenu, navigation toujours à portée. */
.site-header.is-hidden {
  transform: translateY(-101%);
}

/* Variante transparente au-dessus du hero (accueil) */
.site-header--overlay {
  position: fixed;
  left: 0;
  right: 0;
  background: transparent;
  backdrop-filter: none;
  color: var(--paper);
}
.site-header--overlay.is-scrolled {
  position: fixed;
  background: rgba(250, 248, 245, 0.94);
  backdrop-filter: saturate(180%) blur(12px);
  color: var(--ink);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 0.5rem;
  font-size: 1.22rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-decoration: none;
  text-transform: uppercase;
}

.brand small {
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--muted);
  text-transform: uppercase;
}

.site-header--overlay:not(.is-scrolled) .brand small {
  color: rgba(250, 248, 245, 0.7);
}

.nav {
  display: none;
  align-items: center;
  gap: clamp(1.1rem, 2vw, 2rem);
}

.nav a {
  font-size: 0.94rem;
  text-decoration: none;
  color: inherit;
  padding-block: 0.35rem;
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-fast), opacity var(--t-fast);
}

.nav a:hover {
  border-bottom-color: currentColor;
}

.nav a[aria-current="page"] {
  border-bottom-color: var(--forest);
}

.site-header--overlay:not(.is-scrolled) .nav a[aria-current="page"] {
  border-bottom-color: currentColor;
}

.header-cta {
  display: none;
}

/* Bouton hamburger */
.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 10px;
  background: none;
  border: 0;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 1.5px;
  background: currentColor;
  transition: transform var(--t-fast), opacity var(--t-fast);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6.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(-6.5px) rotate(-45deg);
}

/* Panneau mobile */
.nav-mobile {
  position: fixed;
  inset: var(--header-h) 0 0;
  z-index: 99;
  background: var(--paper);
  color: var(--ink);
  padding: 2rem clamp(1.15rem, 4vw, 2.5rem) 3rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  overflow-y: auto;
  transform: translateY(-8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--t), transform var(--t), visibility var(--t);
}

.nav-mobile.is-open {
  opacity: 1;
  transform: none;
  visibility: visible;
}

.nav-mobile a {
  padding: 1rem 0;
  font-size: 1.15rem;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}

.nav-mobile .btn {
  margin-top: 1.75rem;
}

@media (min-width: 940px) {
  .nav,
  .header-cta {
    display: flex;
  }
  .nav-toggle,
  .nav-mobile {
    display: none;
  }
}

/* ==========================================================================
   7. PIED DE PAGE
   ========================================================================== */
.site-footer {
  background: var(--ink);
  color: rgba(250, 248, 245, 0.72);
  padding-block: clamp(3rem, 2rem + 3vw, 4.5rem) 2rem;
  font-size: var(--fs-sm);
}

.footer-grid {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1fr;
}

@media (min-width: 760px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}

.site-footer h3 {
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--paper);
  margin-bottom: 1.1rem;
}

.site-footer .brand {
  color: var(--paper);
  margin-bottom: 0.9rem;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.6rem;
}

.footer-links a {
  text-decoration: none;
  transition: color var(--t-fast);
}

.footer-links a:hover {
  color: var(--paper);
}

.footer-bottom {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(250, 248, 245, 0.14);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  font-size: var(--fs-xs);
  color: rgba(250, 248, 245, 0.55);
}

/* ==========================================================================
   8. HERO ET EN-TÊTES DE PAGE
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  color: var(--paper);
  overflow: hidden;
  background: var(--ink);
}

/* Entrée orchestrée : chaque bloc du hero arrive avec un léger décalage.
   Animation purement CSS : elle joue même si le JavaScript ne charge pas. */
.hero__inner > * {
  animation: heroIn 1s var(--ease-out) both;
}
.hero__inner > :nth-child(1) { animation-delay: 0.1s; }
.hero__inner > :nth-child(2) { animation-delay: 0.22s; }
.hero__inner > :nth-child(3) { animation-delay: 0.38s; }
.hero__inner > :nth-child(4) { animation-delay: 0.52s; }
.hero__inner > :nth-child(5) { animation-delay: 0.66s; }

/* Le titre est révélé mot à mot par site.js : on lui retire l'animation de
   bloc pour ne pas cumuler les deux mouvements. Sans JavaScript, il reste
   simplement affiché. */
.hero__inner > .hero__title {
  animation: none;
  opacity: 1;
  transform: none;
}

@keyframes heroIn {
  from {
    opacity: 0;
    transform: translateY(34px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* Le média du hero s'ouvre par un très léger zoom arrière */
.hero__media img,
.hero__media video {
  animation: heroMedia 1.8s var(--ease-out) both;
}

@keyframes heroMedia {
  from {
    transform: scale(1.08);
  }
  to {
    transform: scale(1);
  }
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__media img,
.hero__media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Voile dégradé : garantit la lisibilité du texte quelle que soit la photo */
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(10, 13, 12, 0.82) 0%,
    rgba(10, 13, 12, 0.5) 42%,
    rgba(10, 13, 12, 0.28) 100%
  );
}

.hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  padding-block: clamp(3.5rem, 2rem + 8vw, 6.5rem);
}

.hero__title {
  font-size: var(--fs-hero);
  max-width: 17ch;
  margin-bottom: 1.1rem;
}

.hero__text {
  max-width: 54ch;
  font-size: var(--fs-lead);
  color: rgba(250, 248, 245, 0.9);
  margin-bottom: 2rem;
}

.hero__scroll {
  margin-top: 3rem;
  font-size: var(--fs-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(250, 248, 245, 0.6);
}

/* En-tête des pages intérieures */
.page-head {
  padding-block: clamp(3rem, 2rem + 5vw, 5.5rem) clamp(2rem, 1.5rem + 3vw, 3.5rem);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.page-head .lead {
  margin-top: 0.4rem;
}

/* Fil d'Ariane */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  list-style: none;
  margin: 0 0 1.2rem;
  padding: 0;
  font-size: var(--fs-xs);
  color: var(--muted);
}

.breadcrumb a {
  text-decoration: none;
}
.breadcrumb a:hover {
  text-decoration: underline;
}
.breadcrumb li + li::before {
  content: "/";
  margin-right: 0.4rem;
  color: var(--line-strong);
}

/* ==========================================================================
   9. BANDEAU DE RÉASSURANCE
   ========================================================================== */
.reassurance {
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.reassurance__grid {
  display: grid;
  gap: 0;
  grid-template-columns: 1fr;
}

.reassurance__item {
  padding: 1.6rem 0;
  border-bottom: 1px solid var(--line);
}

.reassurance__item:last-child {
  border-bottom: 0;
}

.reassurance__item h3 {
  font-size: 1rem;
  margin: 0.75rem 0 0.3rem;
}

.reassurance__item p {
  font-size: var(--fs-sm);
  color: var(--muted);
  max-width: 34ch;
}

.icon {
  width: 26px;
  height: 26px;
  stroke: var(--forest);
  stroke-width: 1.4;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (min-width: 720px) {
  .reassurance__grid {
    grid-template-columns: repeat(2, 1fr);
    column-gap: 2.5rem;
  }
  .reassurance__item {
    border-bottom: 0;
    padding: 2.25rem 0;
  }
}

@media (min-width: 1000px) {
  .reassurance__grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .reassurance__item + .reassurance__item {
    padding-left: 2.5rem;
    border-left: 1px solid var(--line);
    margin-left: -1.25rem;
  }
}

/* ==========================================================================
   10. CARTES MODÈLES
   ========================================================================== */
.model-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}

.model-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--line-strong);
}

.model-card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--paper-3);
  overflow: hidden;
}

.model-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms var(--ease);
}

.model-card:hover .model-card__media img {
  transform: scale(1.03);
}

.model-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.4rem 1.5rem 1.6rem;
}

.model-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
}

.tag {
  display: inline-block;
  padding: 0.28rem 0.6rem;
  border-radius: 2px;
  background: var(--forest-soft);
  color: var(--forest);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.tag--neutral {
  background: var(--paper-2);
  color: var(--ink-2);
}

.model-card h3 {
  margin-bottom: 0.5rem;
}

.model-card p {
  color: var(--muted);
  font-size: var(--fs-sm);
}

.model-card__footer {
  margin-top: auto;
  padding-top: 1.25rem;
}

.model-list {
  list-style: none;
  margin: 0.9rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
  font-size: var(--fs-sm);
}

.model-list li {
  position: relative;
  padding-left: 1.35rem;
  color: var(--ink-2);
}

.model-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--forest);
  opacity: 0.55;
}

/* Sections par famille de produits (page « Nos modèles ») */
.model-family + .model-family {
  margin-top: clamp(3.5rem, 2rem + 5vw, 6rem);
}

.model-family__head {
  max-width: 60ch;
  margin-bottom: clamp(1.75rem, 1rem + 2vw, 2.5rem);
  padding-top: 1.5rem;
  border-top: 2px solid var(--ink);
}

.model-family__head h2 {
  margin-bottom: 0.5rem;
}

.model-family__head .lead {
  margin-bottom: 0.6rem;
}

/* Chiffre de performance (résistance au feu, au vent, garantie…) */
.stat {
  padding-top: 1.1rem;
  border-top: 1px solid var(--line-strong);
}

.stat strong {
  display: block;
  font-size: clamp(1.5rem, 1.2rem + 1.1vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--forest);
}

.stat span {
  display: block;
  margin-top: 0.4rem;
  font-size: var(--fs-sm);
  color: var(--muted);
}

.section--ink .stat {
  border-top-color: rgba(250, 248, 245, 0.25);
}

.section--ink .stat strong {
  color: var(--paper);
}

.section--ink .stat span {
  color: rgba(250, 248, 245, 0.7);
}

/* Sommaire des familles */
.family-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.family-nav a {
  display: inline-block;
  padding: 0.55rem 1rem;
  border: 1px solid var(--line-strong);
  border-radius: 100px;
  background: var(--white);
  font-size: 0.88rem;
  text-decoration: none;
  transition: border-color var(--t-fast), background var(--t-fast);
}

.family-nav a:hover {
  border-color: var(--forest);
  background: var(--forest-soft);
}

/* ==========================================================================
   11. ÉTAPES « COMMENT ÇA MARCHE »
   ========================================================================== */
.steps {
  counter-reset: step;
  display: grid;
  gap: 2rem;
}

@media (min-width: 720px) {
  .steps {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
  }
}

@media (min-width: 1000px) {
  .steps {
    grid-template-columns: repeat(4, 1fr);
  }
}

.step {
  position: relative;
  padding-top: 2.6rem;
  border-top: 1px solid var(--line);
}

.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  position: absolute;
  top: 1.2rem;
  left: 0;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--forest);
}

.section--ink .step {
  border-top-color: rgba(250, 248, 245, 0.2);
}

.section--ink .step::before {
  color: rgba(250, 248, 245, 0.55);
}

.step h3 {
  margin-bottom: 0.5rem;
}

.step p {
  font-size: var(--fs-sm);
  color: var(--muted);
}

.section--ink .step p {
  color: rgba(250, 248, 245, 0.7);
}

/* ==========================================================================
   12. CARTES « POUR QUI »
   ========================================================================== */
.audience-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 300px;
  padding: 1.6rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  color: var(--paper);
  background: var(--ink);
}

.audience-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms var(--ease);
}

.audience-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 13, 12, 0.85) 8%, rgba(10, 13, 12, 0.15) 75%);
}

.audience-card:hover img {
  transform: scale(1.04);
}

.audience-card__body {
  position: relative;
  z-index: 1;
}

.audience-card h3 {
  margin-bottom: 0.35rem;
}

.audience-card p {
  font-size: var(--fs-sm);
  color: rgba(250, 248, 245, 0.82);
}

/* ==========================================================================
   13. CONFORMITÉ
   ========================================================================== */
.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.6rem 1rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--white);
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--ink-2);
}

.badge svg {
  width: 17px;
  height: 17px;
  stroke: var(--forest);
  stroke-width: 1.5;
  fill: none;
  flex: none;
}

.section--ink .badge,
.section--forest .badge {
  background: transparent;
  border-color: rgba(250, 248, 245, 0.28);
  color: rgba(250, 248, 245, 0.9);
}

.section--ink .badge svg,
.section--forest .badge svg {
  stroke: rgba(250, 248, 245, 0.85);
}

/* Liste détaillée des normes */
.norm {
  padding: 1.8rem 0;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 0.5rem 2.5rem;
}

@media (min-width: 860px) {
  .norm {
    grid-template-columns: 260px 1fr;
  }
}

.norm h3 {
  margin: 0;
}

.norm__what {
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--forest);
  margin-top: 0.35rem;
}

.norm p {
  color: var(--ink-2);
}

.norm__benefit {
  margin-top: 0.7rem;
  padding-left: 1rem;
  border-left: 2px solid var(--forest);
  font-size: var(--fs-sm);
  color: var(--muted);
}

/* Encadré */
.callout {
  padding: 1.5rem 1.75rem;
  background: var(--forest-soft);
  border-left: 3px solid var(--forest);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.callout h3 {
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}

.callout p {
  font-size: var(--fs-sm);
  color: var(--ink-2);
}

/* ==========================================================================
   14. BANDEAU D'APPEL À L'ACTION
   ========================================================================== */
.cta-band {
  position: relative;
  overflow: hidden;
  background: var(--forest);
  color: var(--paper);
}

.cta-band__inner {
  position: relative;
  z-index: 1;
  padding-block: clamp(3rem, 2rem + 5vw, 5.5rem);
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 900px) {
  .cta-band__inner {
    grid-template-columns: 1.6fr auto;
    gap: 3rem;
  }
}

.cta-band h2 {
  margin-bottom: 0.6rem;
  max-width: 20ch;
}

.cta-band p {
  color: rgba(250, 248, 245, 0.82);
  max-width: 56ch;
}

/* ==========================================================================
   15. GALERIE MÉDIAS ET VISIONNEUSE
   ========================================================================== */
.gallery {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 760px) {
  .gallery {
    grid-template-columns: repeat(4, 1fr);
  }
  /* Le premier média occupe une place plus large : la photo est l'argument */
  .gallery__item:first-child {
    grid-column: span 2;
    grid-row: span 2;
  }
}

.gallery__item {
  position: relative;
  margin: 0;
  padding: 0;
  border: 0;
  background: var(--paper-3);
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  cursor: zoom-in;
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms var(--ease), opacity var(--t-fast);
}

.gallery__item:hover img {
  transform: scale(1.03);
}

/* Pastille « lecture » sur les vignettes vidéo */
.gallery__play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
}

.gallery__play span {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(250, 248, 245, 0.92);
  color: var(--ink);
  font-size: 0.9rem;
  padding-left: 3px;
  box-shadow: var(--shadow-sm);
}

.gallery__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.6rem 0.9rem 0.7rem;
  font-size: var(--fs-xs);
  color: var(--paper);
  text-align: left;
  background: linear-gradient(to top, rgba(10, 13, 12, 0.7), transparent);
}

/* Emplacement média encore vide (vidéo ou visite 360° à venir) */
.media-slot {
  display: grid;
  place-items: center;
  gap: 0.4rem;
  padding: clamp(2rem, 1rem + 5vw, 4rem) 1.5rem;
  text-align: center;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-lg);
  background: var(--paper-2);
  color: var(--muted);
  font-size: var(--fs-sm);
  aspect-ratio: 16 / 9;
  align-content: center;
}

.media-slot strong {
  color: var(--ink-2);
  font-weight: 550;
}

/* Visionneuse plein écran */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 3vw, 3rem);
  background: rgba(10, 13, 12, 0.94);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--t), visibility var(--t);
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.lightbox__stage {
  max-width: min(1200px, 100%);
  max-height: 82vh;
  display: grid;
  place-items: center;
}

.lightbox__stage img,
.lightbox__stage video {
  max-height: 82vh;
  width: auto;
  max-width: 100%;
  border-radius: var(--radius);
}

.lightbox__caption {
  margin-top: 1rem;
  color: rgba(250, 248, 245, 0.75);
  font-size: var(--fs-sm);
  text-align: center;
}

.lightbox__btn {
  position: absolute;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(250, 248, 245, 0.25);
  border-radius: 50%;
  background: rgba(10, 13, 12, 0.5);
  color: var(--paper);
  font-size: 1.2rem;
  cursor: pointer;
  transition: background var(--t-fast), border-color var(--t-fast);
}

.lightbox__btn:hover {
  background: rgba(250, 248, 245, 0.16);
  border-color: var(--paper);
}

.lightbox__btn--close {
  top: 1.25rem;
  right: 1.25rem;
}
.lightbox__btn--prev {
  left: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
}
.lightbox__btn--next {
  right: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
}

/* ==========================================================================
   16. FICHE MODÈLE
   ========================================================================== */
.model-hero {
  display: grid;
  gap: 2.5rem;
  align-items: start;
}

@media (min-width: 960px) {
  .model-hero {
    grid-template-columns: 1.5fr 1fr;
    gap: 3.5rem;
  }
}

.model-aside {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  padding: 1.75rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.model-aside h3 {
  font-size: 1.05rem;
}

.specs {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-sm);
}

.specs th,
.specs td {
  text-align: left;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.specs th {
  width: 42%;
  font-weight: 550;
  color: var(--muted);
  padding-right: 1.5rem;
}

.specs td {
  color: var(--ink);
}

.specs tr:last-child th,
.specs tr:last-child td {
  border-bottom: 0;
}

/* Bandeau de navigation entre modèles */
.model-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

/* ==========================================================================
   17. ACCORDÉON FAQ
   ========================================================================== */
.faq {
  border-top: 1px solid var(--line);
}

.faq__item {
  border-bottom: 1px solid var(--line);
}

.faq__q {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  width: 100%;
  padding: 1.5rem 0;
  background: none;
  border: 0;
  text-align: left;
  font-size: 1.06rem;
  font-weight: 550;
  line-height: 1.4;
  cursor: pointer;
  color: var(--ink);
}

.faq__q:hover {
  color: var(--forest);
}

.faq__sign {
  flex: none;
  width: 22px;
  height: 22px;
  position: relative;
  margin-top: 3px;
}

.faq__sign::before,
.faq__sign::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: currentColor;
  transition: transform var(--t-fast);
}

.faq__sign::after {
  transform: rotate(90deg);
}

.faq__q[aria-expanded="true"] .faq__sign::after {
  transform: rotate(0deg);
}

/* Les réponses ne sont repliées que si le JavaScript a pris la main
   (classe .is-enhanced ajoutée par site.js). Sans JavaScript, toutes les
   réponses restent lisibles : aucun contenu n'est perdu. */
.faq.is-enhanced .faq__a {
  height: 0;
  overflow: hidden;
  transition: height var(--t);
}

.faq__a p {
  padding-bottom: 1.6rem;
  max-width: 72ch;
  color: var(--ink-2);
}

/* ==========================================================================
   18. FORMULAIRES
   ========================================================================== */
.field {
  display: block;
  margin-bottom: 1.4rem;
}

.field > label,
.fieldset > legend {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.94rem;
  font-weight: 550;
}

.field__hint {
  display: block;
  margin-top: 0.35rem;
  font-size: var(--fs-xs);
  color: var(--muted);
}

.req {
  color: var(--forest);
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="url"],
select,
textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  font: inherit;
  font-size: 0.98rem;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}

textarea {
  min-height: 130px;
  resize: vertical;
}

select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%236d7472' stroke-width='1.4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 12px;
  padding-right: 2.5rem;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--forest);
  box-shadow: 0 0 0 3px rgba(36, 80, 63, 0.12);
}

input[aria-invalid="true"],
select[aria-invalid="true"],
textarea[aria-invalid="true"] {
  border-color: #a4432f;
}

.error-text {
  display: none;
  margin-top: 0.4rem;
  font-size: var(--fs-xs);
  color: #a4432f;
}

.error-text.is-visible {
  display: block;
}

.fieldset {
  border: 0;
  padding: 0;
  margin: 0 0 1.6rem;
}

/* Choix sous forme de cartes cliquables */
.choices {
  display: grid;
  gap: 0.7rem;
}

@media (min-width: 620px) {
  .choices--2 {
    grid-template-columns: repeat(2, 1fr);
  }
  .choices--3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.choice {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem 1.1rem;
  background: var(--white);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color var(--t-fast), background var(--t-fast), box-shadow var(--t-fast);
}

.choice:hover {
  border-color: var(--forest);
}

.choice input {
  margin: 0.25rem 0 0;
  accent-color: var(--forest);
  flex: none;
}

.choice__label {
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.4;
}

.choice__desc {
  display: block;
  margin-top: 0.15rem;
  font-size: var(--fs-xs);
  color: var(--muted);
  font-weight: 400;
}

.choice:has(input:checked) {
  border-color: var(--forest);
  background: var(--forest-soft);
  box-shadow: inset 0 0 0 1px var(--forest);
}

/* Vignettes de modèles dans le formulaire */
.choice-cards {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
}

.choice-card {
  position: relative;
  display: block;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  cursor: pointer;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}

.choice-card:hover {
  border-color: var(--forest);
}

/* La case à cocher elle-même est masquée : c'est la carte qui fait office
   de bouton. Le champ « quantité », lui, doit rester utilisable. */
.choice-card__pick {
  display: block;
  cursor: pointer;
}

.choice-card__pick input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.choice-card img {
  aspect-ratio: 4 / 3;
  width: 100%;
  object-fit: cover;
  background: var(--paper-3);
}

.choice-card__body {
  display: block;
  padding: 0.75rem 0.9rem 0.9rem;
}

/* Quantité : n'apparaît qu'une fois le modèle sélectionné */
.choice-card__qty {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.7rem 0.9rem;
  border-top: 1px solid var(--line);
  background: var(--forest-soft);
}

.choice-card__qty label {
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--forest);
  margin: 0;
}

.choice-card__qty input {
  width: 74px;
  padding: 0.4rem 0.5rem;
  font-size: 0.9rem;
  text-align: center;
}

.choice-card:has(.choice-card__pick input:checked) .choice-card__qty {
  display: flex;
}

.choice-card__body strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 550;
}

.choice-card__body span {
  font-size: var(--fs-xs);
  color: var(--muted);
}

.choice-card:has(.choice-card__pick input:checked) {
  border-color: var(--forest);
  box-shadow: inset 0 0 0 2px var(--forest);
}

.choice-card:has(.choice-card__pick input:checked) .choice-card__body {
  background: var(--forest-soft);
}

/* Intitulé de famille au-dessus d'un groupe de vignettes */
.choice-group {
  margin: 1.75rem 0 0.75rem;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.choice-group:first-child {
  margin-top: 0;
}

/* Étapes du formulaire de devis */
.quote-layout {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 1020px) {
  .quote-layout {
    grid-template-columns: 260px 1fr;
    gap: 4rem;
  }
}

.progress {
  position: sticky;
  top: calc(var(--header-h) + 24px);
}

.progress__bar {
  height: 3px;
  background: var(--paper-3);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.progress__fill {
  display: block;
  height: 100%;
  width: 20%;
  background: var(--forest);
  border-radius: 2px;
  transition: width var(--t);
}

.progress__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: none;
  gap: 0.15rem;
}

@media (min-width: 1020px) {
  .progress__list {
    display: grid;
  }
}

.progress__list li {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.55rem 0;
  font-size: var(--fs-sm);
  color: var(--muted);
  transition: color var(--t-fast);
}

.progress__list li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1.5px solid var(--line-strong);
  flex: none;
  transition: background var(--t-fast), border-color var(--t-fast);
}

.progress__list li.is-done {
  color: var(--ink-2);
}

.progress__list li.is-done::before {
  background: var(--forest);
  border-color: var(--forest);
}

.progress__list li.is-current {
  color: var(--ink);
  font-weight: 550;
}

.progress__list li.is-current::before {
  border-color: var(--forest);
  box-shadow: inset 0 0 0 2px var(--white), 0 0 0 3px rgba(36, 80, 63, 0.15);
  background: var(--forest);
}

.progress__count {
  font-size: var(--fs-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.step-panel {
  display: none;
  animation: fadeUp 400ms var(--ease) both;
}

.step-panel.is-active {
  display: block;
}

.step-panel > h2 {
  font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem);
  margin-bottom: 0.35rem;
}

.step-panel__intro {
  color: var(--muted);
  font-size: var(--fs-sm);
  margin-bottom: 2rem;
}

.form-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: space-between;
  align-items: center;
  margin-top: 2.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
}

/* Récapitulatif */
.recap {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  overflow: hidden;
}

.recap__group {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--line);
}

.recap__group:last-child {
  border-bottom: 0;
}

.recap__group h3 {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.85rem;
}

.recap__edit {
  background: none;
  border: 0;
  padding: 0;
  font-size: var(--fs-xs);
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--forest);
  cursor: pointer;
  text-decoration: underline;
}

.recap dl {
  margin: 0;
  display: grid;
  gap: 0.55rem 1.5rem;
  font-size: var(--fs-sm);
}

@media (min-width: 620px) {
  .recap dl {
    grid-template-columns: minmax(140px, 200px) 1fr;
  }
}

.recap dt {
  color: var(--muted);
}

.recap dd {
  margin: 0;
  color: var(--ink);
}

@media (max-width: 619px) {
  .recap dd {
    margin-bottom: 0.4rem;
  }
}

/* Message de statut d'envoi */
.form-status {
  margin-top: 1.25rem;
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius);
  font-size: var(--fs-sm);
  display: none;
}

.form-status.is-visible {
  display: block;
}

.form-status--error {
  background: #fbeeea;
  color: #8d3826;
  border: 1px solid #e6c6bd;
}

.form-status--info {
  background: var(--forest-soft);
  color: var(--forest-dark);
  border: 1px solid #cfdcd6;
}

/* Champ anti-robot : invisible pour l'utilisateur, rempli par les robots */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Page de confirmation */
.confirm {
  max-width: 640px;
  margin-inline: auto;
  text-align: center;
  padding-block: clamp(3.5rem, 2rem + 7vw, 7rem);
}

.confirm__mark {
  width: 68px;
  height: 68px;
  margin: 0 auto 1.75rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--forest-soft);
  border: 1px solid #cfdcd6;
}

.confirm__mark svg {
  width: 30px;
  height: 30px;
  stroke: var(--forest);
  stroke-width: 1.6;
  fill: none;
}

.confirm__next {
  margin-top: 2.5rem;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.75rem;
  background: var(--white);
}

/* ==========================================================================
   18 bis. ASSISTANT GUIDÉ (bulle en bas à droite)
   ========================================================================== */
.chat-launcher {
  position: fixed;
  right: clamp(1rem, 3vw, 2rem);
  bottom: clamp(1rem, 3vw, 2rem);
  z-index: 150;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.35rem 0.85rem 1.1rem;
  border: 0;
  border-radius: 100px;
  background: var(--forest);
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 550;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: background var(--t-fast), transform var(--t-fast);
}

.chat-launcher:hover {
  background: var(--forest-dark);
  transform: translateY(-2px);
}

.chat-launcher svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linejoin: round;
  flex: none;
}

.chat-launcher.is-open span {
  display: none;
}

.chat-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #b4674a;
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  animation: chatPop 400ms var(--ease) both;
}

@keyframes chatPop {
  from {
    transform: scale(0);
  }
  to {
    transform: scale(1);
  }
}

.chat-panel {
  position: fixed;
  right: clamp(1rem, 3vw, 2rem);
  bottom: calc(clamp(1rem, 3vw, 2rem) + 62px);
  z-index: 151;
  display: flex;
  flex-direction: column;
  width: min(380px, calc(100vw - 2rem));
  max-height: min(620px, calc(100vh - 8rem));
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  animation: fadeUp 260ms var(--ease) both;
}

.chat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.1rem;
  background: var(--ink);
  color: var(--paper);
}

.chat-head strong {
  display: block;
  font-size: 0.98rem;
  letter-spacing: 0.04em;
}

.chat-head span {
  display: block;
  margin-top: 2px;
  font-size: var(--fs-xs);
  color: rgba(250, 248, 245, 0.62);
}

.chat-close {
  background: none;
  border: 0;
  color: inherit;
  font-size: 1.5rem;
  line-height: 1;
  padding: 0 0.25rem;
  cursor: pointer;
  opacity: 0.7;
}

.chat-close:hover {
  opacity: 1;
}

.chat-flux {
  flex: 1;
  overflow-y: auto;
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  scroll-behavior: smooth;
}

.chat-bulle {
  align-self: flex-start;
  max-width: 92%;
  padding: 0.7rem 0.95rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 4px 14px 14px 14px;
  font-size: 0.92rem;
  line-height: 1.55;
  animation: fadeUp 300ms var(--ease) both;
}

.chat-bulle--moi {
  align-self: flex-end;
  background: var(--forest);
  border-color: var(--forest);
  color: var(--white);
  border-radius: 14px 4px 14px 14px;
}

.chat-options {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: 0.3rem;
  animation: fadeUp 300ms var(--ease) both;
}

.chat-option {
  padding: 0.62rem 0.9rem;
  background: transparent;
  border: 1px solid var(--forest);
  border-radius: 100px;
  color: var(--forest);
  font-size: 0.88rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: background var(--t-fast), color var(--t-fast);
}

.chat-option:hover {
  background: var(--forest);
  color: var(--white);
}

.chat-cta {
  display: block;
  margin-top: 0.3rem;
  padding: 0.8rem 1rem;
  background: var(--forest);
  color: var(--white);
  border-radius: var(--radius);
  font-size: 0.92rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
}

.chat-cta:hover {
  background: var(--forest-dark);
}

/* Vignettes de modèles proposées dans la conversation */
.chat-modeles {
  display: grid;
  gap: 0.45rem;
  animation: fadeUp 300ms var(--ease) both;
}

.chat-modele {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.5rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  transition: border-color var(--t-fast);
}

.chat-modele:hover {
  border-color: var(--forest);
}

.chat-modele img {
  width: 62px;
  height: 46px;
  object-fit: cover;
  border-radius: 2px;
  background: var(--paper-3);
  flex: none;
}

.chat-modele strong {
  display: block;
  font-size: 0.88rem;
}

.chat-modele em {
  display: block;
  font-size: var(--fs-xs);
  font-style: normal;
  color: var(--muted);
}

/* Mini-formulaire de rappel */
.chat-form {
  display: grid;
  gap: 0.45rem;
  padding: 0.85rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  animation: fadeUp 300ms var(--ease) both;
}

.chat-form input,
.chat-form textarea {
  padding: 0.6rem 0.75rem;
  font-size: 0.9rem;
}

.chat-form textarea {
  min-height: 0;
}

.chat-form button {
  padding: 0.7rem 1rem;
  border: 0;
  border-radius: var(--radius);
  background: var(--forest);
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
}

.chat-form button[disabled] {
  opacity: 0.55;
}

.chat-erreur {
  margin: 0;
  font-size: var(--fs-xs);
  color: #a4432f;
}

.chat-note {
  margin: 0;
  padding: 0.6rem 1.1rem;
  border-top: 1px solid var(--line);
  background: var(--paper-2);
  font-size: 0.72rem;
  color: var(--muted);
  text-align: center;
}

/* Plein écran sur petit mobile : la conversation reste lisible */
@media (max-width: 480px) {
  .chat-panel {
    right: 0;
    left: 0;
    bottom: 0;
    width: 100%;
    max-height: 88vh;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    border-left: 0;
    border-right: 0;
    border-bottom: 0;
  }
}

@media print {
  .chat-launcher,
  .chat-panel {
    display: none !important;
  }
}

/* ==========================================================================
   19. ANIMATIONS AU DÉFILEMENT
   ========================================================================== */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* Éléments révélés au défilement (classe ajoutée par site.js) */
[data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity var(--t-slow), transform var(--t-slow);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* Les photos des cartes se révèlent par un zoom arrière, en plus du fondu */
.model-card[data-reveal] .model-card__media img {
  transform: scale(1.14);
  transition: transform 1.3s var(--ease-out);
}

.model-card[data-reveal].is-visible .model-card__media img {
  transform: scale(1);
}

.model-card.is-visible:hover .model-card__media img {
  transform: scale(1.04);
}

/* ==========================================================================
   19 bis. TITRES RÉVÉLÉS MOT À MOT
   --------------------------------------------------------------------------
   site.js découpe les grands titres en mots ; chaque mot glisse hors de son
   masque avec un léger décalage. Sans JavaScript (ou en mouvement réduit),
   les titres restent simplement affichés.
   ========================================================================== */
.w-line {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  padding-bottom: 0.08em;
  margin-bottom: -0.08em;
}

.w-word {
  display: inline-block;
  transform: translateY(115%);
  transition: transform 850ms var(--ease-out);
  will-change: transform;
}

.is-inview .w-word {
  transform: none;
}

/* ==========================================================================
   19 ter. CARTES EMPILÉES AU DÉFILEMENT (« Comment ça marche »)
   --------------------------------------------------------------------------
   Chaque carte se fige en haut de l'écran pendant que la suivante vient la
   recouvrir — position:sticky uniquement, le JS n'ajoute que l'effet
   d'échelle sur la carte recouverte.
   ========================================================================== */
.stack {
  display: grid;
  gap: clamp(0.9rem, 2vw, 1.4rem);
  counter-reset: stack;
}

.stack__card {
  position: sticky;
  top: calc(var(--header-h) + 1.25rem + var(--i, 0) * 2.9rem);
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem 3rem;
  align-content: start;
  min-height: clamp(230px, 36vh, 330px);
  padding: clamp(1.6rem, 4vw, 3rem);
  background: var(--paper);
  color: var(--ink);
  border-radius: var(--radius-lg);
  box-shadow: 0 -18px 50px rgba(10, 13, 12, 0.35);
  transform-origin: center top;
  will-change: transform;
}

@media (min-width: 760px) {
  .stack__card {
    grid-template-columns: minmax(140px, 220px) 1fr;
  }
}

.stack__num {
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: var(--forest);
  opacity: 0.28;
}

.stack__card h3 {
  font-size: clamp(1.4rem, 1rem + 1.6vw, 2.1rem);
  letter-spacing: -0.02em;
  margin-bottom: 0.45rem;
}

.stack__card p {
  color: var(--ink-2);
  max-width: 56ch;
  font-size: var(--fs-body);
}

/* ==========================================================================
   19 quater. DÉFILÉ DE MOTS-CLÉS (bas du hero)
   ========================================================================== */
.marquee {
  overflow: hidden;
  margin-top: clamp(2.5rem, 6vh, 4.5rem);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.marquee__track {
  display: flex;
  align-items: center;
  gap: 2.75rem;
  width: max-content;
  animation: marquee 36s linear infinite;
}

.marquee:hover .marquee__track {
  animation-play-state: paused;
}

.marquee__track span {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  white-space: nowrap;
  color: rgba(250, 248, 245, 0.55);
}

.marquee__track span.dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(250, 248, 245, 0.35);
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

/* Aucun effet n'est appliqué au curseur : le pointeur du système reste tel
   quel, sans anneau ni traînée. Choix délibéré — voir assets/js/site.js. */

/* Parallaxe très légère sur le média du hero */
.hero__media[data-parallax] {
  will-change: transform;
}

/* Respect strict des préférences système */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

/* ==========================================================================
   20. IMPRESSION
   ========================================================================== */
@media print {
  .site-header,
  .site-footer,
  .cta-band,
  .nav-mobile,
  .lightbox {
    display: none !important;
  }
  body {
    background: #fff;
  }
  .section {
    padding-block: 1.5rem;
  }
}
