/* rév. 2026-07-26c — correctif largeur fiches modèles (min-width sur grille) */
/* ==========================================================================
   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: #143126; /* accent vert profond (nettement assombri, demande d'Alex 2026-07-26) */
  --forest-dark: #0c2018;
  --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: center;
  gap: 0.6rem;
  font-size: 1.22rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-decoration: none;
  text-transform: uppercase;
}

/* Symbole de la marque. En currentColor : vert sur fond clair, blanc cassé
   par-dessus le hero — une seule version à maintenir. */
.brand__mark {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  color: inherit;
}

/* nowrap : le nom et la signature doivent tenir sur une seule ligne,
   sinon l'en-tête se dédouble en hauteur dès que la place manque. */
.brand__text {
  display: inline-flex;
  align-items: baseline;
  gap: 0.5rem;
  white-space: nowrap;
}

@media (max-width: 560px) {
  /* Sur petit écran, le symbole seul suffit : il tient lieu de logo et
     libère la place pour le bouton de menu. */
  .brand__text small {
    display: none;
  }
}

.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.
   Deux couches : le voile vertical d'origine, légèrement renforcé, plus une
   bande latérale gauche — c'est là que vivent le titre et les boutons. */
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      to right,
      rgba(10, 13, 12, 0.34) 0%,
      rgba(10, 13, 12, 0.16) 48%,
      rgba(10, 13, 12, 0) 78%
    ),
    linear-gradient(
      to top,
      rgba(10, 13, 12, 0.85) 0%,
      rgba(10, 13, 12, 0.54) 42%,
      rgba(10, 13, 12, 0.3) 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;
  box-shadow: var(--shadow-sm);
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.45s cubic-bezier(0.16, 1, 0.3, 1), border-color var(--t);
}

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

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

/* Voile très léger en bas de la photo : assoit la carte, sans masquer */
.model-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 13, 12, 0.14), transparent 32%);
  opacity: 0;
  transition: opacity var(--t);
  pointer-events: none;
}

.model-card:hover .model-card__media::after {
  opacity: 1;
}

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

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

.model-card:hover h3 {
  color: var(--forest);
}

.model-card h3 {
  transition: color var(--t-fast);
}

.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
   ========================================================================== */
/* ---------------------------------------------------------------------------
   GALERIE « VISIONNEUSE » (fiches modèles) : une grande photo, une bande de
   vignettes en dessous. La vignette active est soulignée de vert.
   --------------------------------------------------------------------------- */
.gallery__stage {
  margin: 0;
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--paper-3);
  box-shadow: var(--shadow-sm);
}

.gallery__main {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
  position: relative;
  aspect-ratio: 4 / 3;
}

.gallery__main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.3s ease, transform 0.8s var(--ease);
}

.gallery__main:hover img {
  transform: scale(1.02);
}

/* Pastille « Agrandir », même langage que le schéma de la page Conformité */
.gallery__expand {
  position: absolute;
  right: 0.85rem;
  top: 0.85rem;
  z-index: 3;
  padding: 0.4rem 0.8rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--white);
  background: rgba(20, 24, 22, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: 999px;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}

.gallery__main:hover .gallery__expand,
.gallery__main:focus-visible .gallery__expand {
  opacity: 1;
  transform: none;
}

.gallery__stage-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.8rem 1rem 0.85rem;
  color: var(--paper);
  font-size: var(--fs-xs);
  letter-spacing: 0.01em;
  background: linear-gradient(to top, rgba(10, 13, 12, 0.62), transparent);
  pointer-events: none;
}

.gallery__stage-caption:empty {
  display: none;
}

/* ⚠ min-width:0 indispensable sur toute la chaîne.
   Un élément de grille ou de flex vaut `min-width: auto` par défaut : il
   refuse de descendre sous la largeur de son contenu. La bande de vignettes
   (8 × 88 px = 760 px) élargissait donc toute la colonne au lieu de défiler,
   et la fiche s'affichait « en mode ordinateur » sur téléphone. */
.gallery--viewer,
.gallery__stage,
.gallery__thumbs {
  min-width: 0;
}

.gallery__thumbs {
  display: flex;
  gap: 0.6rem;
  margin-top: 0.75rem;
  overflow-x: auto;
  padding-bottom: 0.3rem;
  scrollbar-width: thin;
}

.gallery__thumb {
  position: relative;
  flex: 0 0 auto;
  width: clamp(76px, 9vw, 104px);
  aspect-ratio: 4 / 3;
  padding: 0;
  border: 2px solid transparent;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper-3);
  cursor: pointer;
  opacity: 0.65;
  transition: opacity var(--t-fast), border-color var(--t-fast);
}

.gallery__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery__thumb:hover,
.gallery__thumb:focus-visible {
  opacity: 1;
}

.gallery__thumb.is-active {
  opacity: 1;
  border-color: var(--forest);
}

.gallery__thumb-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--paper);
  font-size: 0.8rem;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6);
  pointer-events: none;
}

/* Ancienne grille (conservée pour d'éventuelles galeries hors fiches) */
.gallery {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(2, 1fr);
}

.gallery--viewer {
  display: block;
}

@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-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  cursor: zoom-in;
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms var(--ease), filter 700ms var(--ease);
}

.gallery__item:hover img,
.gallery__item:focus-visible img {
  transform: scale(1.05);
  filter: brightness(1.04);
}

/* Pastille « + » au survol : indique que la photo s'agrandit.
   ::before uniquement — le ::after des vignettes est réservé au rideau. */
.gallery__item::before {
  content: "+";
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(20, 24, 22, 0.62);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: var(--paper);
  font-size: 1.15rem;
  font-weight: 300;
  line-height: 1;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity var(--t-fast), transform var(--t-fast);
  pointer-events: none;
}

.gallery__item:hover::before,
.gallery__item:focus-visible::before {
  opacity: 1;
  transform: none;
}

/* 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(8, 10, 9, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--t), visibility var(--t);
}

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

/* Le média entre en scène : léger zoom montant plutôt qu'une simple bascule */
.lightbox > div {
  transform: translateY(14px) scale(0.975);
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.lightbox.is-open > div {
  transform: none;
}

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

.lightbox__stage img,
.lightbox__stage video {
  max-height: 84vh;
  width: auto;
  max-width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.55);
}

.lightbox__caption {
  margin-top: 1.1rem;
  color: rgba(250, 248, 245, 0.8);
  font-size: var(--fs-sm);
  letter-spacing: 0.01em;
  text-align: center;
}

.lightbox__btn {
  position: absolute;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(250, 248, 245, 0.22);
  border-radius: 50%;
  background: rgba(20, 24, 22, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--paper);
  font-size: 1.25rem;
  cursor: pointer;
  transition: background var(--t-fast), border-color var(--t-fast), transform var(--t-fast);
}

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

.lightbox__btn--prev:hover {
  transform: translateY(-50%) scale(1.06);
}

.lightbox__btn--next:hover {
  transform: translateY(-50%) scale(1.06);
}

.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;
}

/* Les colonnes doivent pouvoir rétrécir sous la largeur de leur contenu :
   sans cela, un tableau large ou une bande défilante élargit la fiche
   entière et la mise en page bascule en « mode ordinateur » sur mobile. */
.model-hero > * {
  min-width: 0;
}

@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 D'ALERTE DU FORMULAIRE
   Posé en tête de formulaire par devis.js. Il doit rester visible quelle que
   soit l'étape affichée : le bloc .form-status, lui, vit dans le
   récapitulatif et disparaît dès qu'on revient en arrière.
   --------------------------------------------------------------------------- */
.form-alert {
  margin-bottom: 1.5rem;
  padding: 0.9rem 1.1rem;
  border: 1px solid #d9b8b0;
  border-left: 3px solid #a4402c;
  border-radius: var(--radius);
  background: #fdf3f0;
  color: #7d2f20;
  font-size: var(--fs-sm);
  line-height: 1.5;
}

/* ---------------------------------------------------------------------------
   APERÇU DE LA PERSONNALISATION (accueil)
   Bande d'images qui annonce le configurateur : elle défile au doigt sur
   mobile, se répartit en grille dès qu'il y a la place.
   --------------------------------------------------------------------------- */
.perso-strip {
  list-style: none;
  margin: 0;
  padding: 0 0 0.4rem;
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  /* Indispensable : sans cela la bande élargit sa colonne au lieu de défiler */
  min-width: 0;
}

.perso-strip__item {
  flex: 0 0 auto;
  width: clamp(104px, 13vw, 138px);
  scroll-snap-align: start;
  text-align: center;
}

.perso-strip__item img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--white);
  transition: transform 0.5s var(--ease), border-color var(--t-fast);
}

.perso-strip__item:hover img {
  transform: translateY(-3px);
  border-color: var(--forest);
}

.perso-strip__item span {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.76rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--ink-2);
}

.perso-strip__note {
  margin-top: 1rem;
  text-align: center;
}

/* Assez large pour tout montrer : on répartit au lieu de laisser défiler */
@media (min-width: 1100px) {
  .perso-strip {
    flex-wrap: wrap;
    justify-content: center;
    overflow-x: visible;
  }
}

/* ---------------------------------------------------------------------------
   PERSONNALISATION VISUELLE (étape options du devis)
   Une rangée de cartes-images par catégorie. La sélection est signalée par
   la classe .is-selected (posée par devis.js — plus fiable que :has()).
   --------------------------------------------------------------------------- */
.perso-group {
  margin-top: 1.75rem;
}

.perso-group__hint {
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: var(--muted);
}

.perso-group__reset {
  margin-left: 0.75rem;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: var(--muted);
  text-decoration: underline;
  cursor: pointer;
}

.perso-group__reset:hover {
  color: var(--ink);
}

.perso-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
  gap: 0.75rem;
}

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

.perso-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.perso-card img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.perso-card__label {
  display: block;
  padding: 0.5rem 0.5rem 0.6rem;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--ink-2);
  text-align: center;
}

.perso-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.perso-card.is-selected {
  border-color: var(--forest);
  box-shadow: 0 0 0 1px var(--forest);
}

/* Coche de confirmation sur la carte choisie */
.perso-card.is-selected::after {
  content: "✓";
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--forest);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 700;
}

/* Navigation clavier : anneau visible quand le champ caché a le focus */
.perso-card:focus-within {
  outline: 2px solid var(--forest);
  outline-offset: 2px;
}

/* ---------------------------------------------------------------------------
   SÉLECTEUR DE LANGUE (en-tête)
   Hérite de la couleur de l'en-tête : lisible aussi bien sur le hero sombre
   que sur fond clair. La langue courante est pleine, l'autre estompée.
   --------------------------------------------------------------------------- */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.09em;
}

.lang-switch a {
  color: inherit;
  text-decoration: none;
  opacity: 0.5;
  transition: opacity var(--t-fast);
}

.lang-switch a:hover,
.lang-switch a:focus-visible,
.lang-switch a[aria-current="true"] {
  opacity: 1;
}

.lang-switch span {
  opacity: 0.35;
}

/* ---------------------------------------------------------------------------
   TRANSITION ENTRE LES PAGES
   Fondu court, jamais bloquant : si le JS ne s'exécute pas, rien ne masque
   la page (les classes ne sont ajoutées que par le script).
   --------------------------------------------------------------------------- */
/* L'entrée est une animation CSS pure, SANS fill-mode : l'état par défaut du
   body reste donc « visible ». Si le CSS n'est pas joué, si l'onglet est en
   arrière-plan ou si le JS échoue, la page reste lisible — on ne masque
   jamais le contenu en comptant sur un script pour le réafficher. */
/* Volontairement SANS opacité : une animation figée (onglet en arrière-plan,
   rendu suspendu) laisserait sinon la page à opacity:0, donc invisible.
   Ici, le pire cas est un contenu décalé de 10 px — toujours lisible. */
@keyframes page-in {
  from {
    transform: translateY(10px);
  }
  to {
    transform: none;
  }
}

/* ⚠ L'animation porte sur <main>, JAMAIS sur <body>.
   Un transform sur un ancêtre devient le bloc conteneur de tous ses
   descendants en position:fixed : la visionneuse, la bulle d'assistant et
   l'en-tête se calent alors sur la hauteur de la PAGE au lieu de l'écran.
   <main> ne contient aucun élément fixe, l'animation y est donc sans risque. */
@media (prefers-reduced-motion: no-preference) {
  main {
    animation: page-in 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  }
}

/* La sortie est pilotée par le script : elle n'existe que si le JS tourne.
   Uniquement de l'opacité ici — contrairement au transform, elle ne crée
   pas de bloc conteneur et ne déplace donc aucun élément fixe. */
.page-leave body {
  opacity: 0;
  transition: opacity 0.22s ease;
}

/* ---------------------------------------------------------------------------
   RIDEAU SUR LES IMAGES
   Un volet couleur papier glisse vers le haut et découvre le visuel, qui
   revient en même temps de 1,06 à 1. Le conteneur doit rogner le débord.
   --------------------------------------------------------------------------- */
[data-curtain] {
  position: relative;
  overflow: hidden;
}

/* Le volet n'existe que si le JS tourne (.js) : sinon l'image est visible
   d'emblée, jamais recouverte par un rideau que rien ne viendrait ouvrir.

   ⚠ Le rideau OCCUPE le pseudo-élément ::after de son support. Ne posez donc
   jamais data-curtain sur un élément qui utilise déjà ::after — il serait
   écrasé. C'est arrivé avec .audience-card, dont le ::after porte le dégradé
   qui rend le texte lisible : les vignettes devenaient des rectangles vides.
   En cas de doute, posez data-curtain sur un conteneur intermédiaire. */
.js [data-curtain]::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--paper, #faf8f5);
  transform-origin: top;
  transform: scaleY(1);
  /* Le retard vient d'une variable posée par le script : un transition-delay
     en ligne s'appliquerait à l'élément, pas à son pseudo-élément. */
  transition: transform 1s cubic-bezier(0.76, 0, 0.24, 1);
  transition-delay: var(--curtain-delay, 0ms);
  z-index: 2;
  pointer-events: none;
}

.js [data-curtain] img,
.js [data-curtain] video {
  transform: scale(1.06);
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.js [data-curtain].is-revealed::after {
  transform: scaleY(0);
}

.js [data-curtain].is-revealed img,
.js [data-curtain].is-revealed video {
  transform: scale(1);
}

/* ---------------------------------------------------------------------------
   BOUTONS MAGNÉTIQUES
   Le décalage est appliqué en ligne par le script ; ici on ne règle que le
   retour à la position d'origine, pour qu'il soit souple et non sec.
   --------------------------------------------------------------------------- */
.btn--lg,
.header-cta {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  will-change: transform;
}

/* Respect absolu du réglage système : aucune de ces animations ne s'applique */
@media (prefers-reduced-motion: reduce) {
  .page-leave body {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .js [data-curtain]::after {
    display: none;
  }
  .js [data-curtain] img,
  .js [data-curtain] video {
    transform: none;
    transition: none;
  }
  .btn--lg,
  .header-cta {
    transition: background-color 0.2s ease, color 0.2s ease;
  }
}

/* ---------------------------------------------------------------------------
   SCHÉMA TECHNIQUE (page Conformité — composition et matériaux)
   Un schéma se lit en entier : jamais rogné, fond clair, agrandissable.
   --------------------------------------------------------------------------- */
.schema {
  margin: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(0.75rem, 0.4rem + 1.4vw, 1.5rem);
  overflow: hidden;
}

.schema__btn {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
  border-radius: var(--radius);
  overflow: hidden;
}

.schema__btn img {
  display: block;
  width: 100%;
  height: auto;
  /* un schéma coté ne se rogne pas */
  object-fit: contain;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.schema__btn:hover img,
.schema__btn:focus-visible img {
  transform: scale(1.02);
}

/* Pastille « Agrandir » : discrète, apparaît au survol */
.schema__zoom {
  position: absolute;
  right: 0.85rem;
  bottom: 0.85rem;
  padding: 0.4rem 0.8rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--white);
  background: rgba(20, 20, 20, 0.82);
  backdrop-filter: blur(6px);
  border-radius: 999px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.35s ease, transform 0.35s ease;
  pointer-events: none;
}

.schema__btn:hover .schema__zoom,
.schema__btn:focus-visible .schema__zoom {
  opacity: 1;
  transform: translateY(0);
}

.schema figcaption {
  margin-top: 1rem;
  text-align: center;
}

/* Sur mobile le schéma reste lisible : on invite clairement à l'agrandir */
@media (max-width: 640px) {
  .schema__zoom {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .schema__btn img {
    transition: none;
  }
  .schema__btn:hover img,
  .schema__btn:focus-visible img {
    transform: none;
  }
}

/* Plan d'agencement sur la fiche modèle */
.model-plan {
  margin-top: clamp(2.5rem, 1.5rem + 3vw, 4rem);
  padding-top: clamp(2rem, 1rem + 2vw, 3rem);
  border-top: 1px solid var(--line);
}

.model-plan h2 {
  margin-bottom: 1.5rem;
}

.model-plan figure {
  margin: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1rem, 0.5rem + 2vw, 2.5rem);
}

.model-plan img {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  /* un plan se montre en entier, jamais rogné */
  object-fit: contain;
}

.model-plan .small {
  margin-top: 0.9rem;
}

/* 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 */
/* Piège à robots.
   ⚠ display:none, et surtout PAS un simple décalage hors écran : un champ
   seulement déporté reste vu comme un vrai champ par les navigateurs, qui le
   remplissent automatiquement (nom de société, adresse…). Le formulaire
   croyait alors avoir affaire à un robot et refusait l'envoi, sans message. */
.hp-field {
  display: none;
}

/* 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;
  }
}

/* ==========================================================================
   MOBILE — CORRECTIFS ET CONFORT
   --------------------------------------------------------------------------
   Regroupé ici volontairement : ces règles corrigent des comportements
   propres au tactile et aux petits écrans. Les garder ensemble évite de
   les disperser (et de les casser) au fil des évolutions.
   ========================================================================== */

/* Garde-fou global : aucune page ne doit pouvoir défiler latéralement.
   Un seul élément trop large suffit à décaler toute la mise en page. */
html,
body {
  overflow-x: clip;
}

/* Pas de halo bleu au tap, mais on garde un retour visuel via :active */
a,
button,
label,
summary,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}

@media (max-width: 899px) {
  /* iOS Safari zoome le formulaire dès qu'un champ fait moins de 16 px.
     On force donc 16 px sur mobile : le zoom intempestif disparaît. */
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="number"],
  input[type="url"],
  input[type="search"],
  select,
  textarea {
    font-size: 16px;
  }

  /* Le sélecteur FR/EN encombre l'en-tête tactile (marque + burger).
     Il reste accessible dans le menu mobile, via « English version ». */
  .lang-switch {
    display: none;
  }

  /* Cibles tactiles : 44 px minimum, recommandation Apple et Google.
     On agrandit la zone cliquable sans grossir le texte. */
  .nav-mobile a,
  .footer-links a,
  .breadcrumb a {
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  .link-arrow {
    min-height: 44px;
    align-items: center;
  }

  /* Personnalisation : deux colonnes plutôt que trois — les intitulés
     doivent rester lisibles, sinon le choix se fait à l'aveugle. */
  .perso-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6rem;
  }

  .perso-card__label {
    font-size: 0.82rem;
    padding: 0.55rem 0.4rem 0.65rem;
  }

  /* Vignettes de galerie : plus grandes au doigt, et défilement calé
     pour qu'une vignette ne reste jamais coupée en deux. */
  .gallery__thumbs {
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 0.5rem;
  }

  .gallery__thumb {
    width: 88px;
    scroll-snap-align: start;
  }

  /* Visionneuse : les flèches passent en bas, à portée du pouce, plutôt
     qu'au milieu des bords où elles gênent le balayage. */
  .lightbox__btn--prev,
  .lightbox__btn--next {
    top: auto;
    bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
    transform: none;
  }

  .lightbox__btn--prev {
    left: calc(50% - 68px);
  }

  .lightbox__btn--next {
    right: calc(50% - 68px);
  }

  .lightbox__btn--prev:hover,
  .lightbox__btn--next:hover {
    transform: scale(1.06);
  }

  .lightbox__stage img,
  .lightbox__stage video {
    max-height: 66vh;
  }

  /* Encoches et barres système : rien ne doit passer dessous */
  .chat-launcher {
    bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px));
  }

  .site-footer {
    padding-bottom: calc(2rem + env(safe-area-inset-bottom, 0px));
  }
}

/* Sur écran étroit, le défilé des clientèles va moins vite : sinon il
   traverse l'écran en une seconde et devient illisible. */
@media (max-width: 640px) {
  .marquee__track {
    animation-duration: 26s;
  }
}

/* ==========================================================================
   ANIMATIONS — FINITIONS
   ========================================================================== */

/* Retour au toucher : un enfoncement bref confirme l'appui. C'est ce qui
   manque le plus sur mobile, où il n'y a pas de survol. */
@media (hover: none) {
  .btn:active,
  .model-card:active,
  .perso-card:active,
  .gallery__thumb:active,
  .audience-card:active {
    transform: scale(0.975);
    transition: transform 0.1s ease;
  }
}

/* Apparition en cascade dans les grilles : les cartes d'une même rangée
   arrivent l'une après l'autre plutôt que d'un bloc. Le décalage est posé
   en CSS (nth-child) pour ne rien coûter au script. */
.js .grid [data-reveal]:nth-child(2) {
  transition-delay: 70ms;
}
.js .grid [data-reveal]:nth-child(3) {
  transition-delay: 140ms;
}
.js .grid [data-reveal]:nth-child(4) {
  transition-delay: 210ms;
}
.js .grid [data-reveal]:nth-child(5) {
  transition-delay: 280ms;
}
.js .grid [data-reveal]:nth-child(6) {
  transition-delay: 350ms;
}

/* Courbe de révélation plus souple : démarrage franc, arrivée en douceur */
.js [data-reveal] {
  transition-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
}

/* La bulle d'assistant se pose au lieu d'apparaître */
@media (prefers-reduced-motion: no-preference) {
  @keyframes chat-in {
    from {
      opacity: 0;
      transform: translateY(10px) scale(0.96);
    }
  }
  .chat-panel:not([hidden]) {
    animation: chat-in 0.32s cubic-bezier(0.16, 1, 0.3, 1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .js .grid [data-reveal] {
    transition-delay: 0ms !important;
  }
  .marquee__track {
    animation: none;
  }
}

/* ==========================================================================
   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).
   Le masquage est conditionné à .js : sans JavaScript, aucun contenu n'est
   caché — on ne compte jamais sur un script pour réafficher la page. */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity var(--t-slow), transform var(--t-slow);
}

.js [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.05);
}

/* ==========================================================================
   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;
  }
}
