/* ==========================================================================
   Martínez Sanitaire - version 2
   Direction : clair, chaleureux, orienté conversion.
   L'inverse exact de la V1 : rondeurs assumées, ombres douces, respiration,
   navigation par symptôme plutôt que par nom de prestation.
   ========================================================================== */

/* --- 1. Fontes ----------------------------------------------------------- */

@font-face {
  font-family: 'Fraunces';
  src: url('../fonts/fraunces-latin.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter V2';
  src: url('../fonts/inter-latin.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* --- 2. Jetons ----------------------------------------------------------- */

:root {
  --encre: #0a1b3f;         /* bleu du logo : titres et texte */
  --ardoise: #4c5875;       /* texte secondaire        (6.2:1 sur blanc) */
  --brume: #67728a;         /* texte tertiaire            (4.8:1 sur blanc) */
  --nuage: #eef4f9;         /* fond de section clair */
  --nuage-fonce: #dbe7f1;   /* bordures douces */
  --blanc: #ffffff;

  --source: #0d7f92;        /* aplats de boutons      (4.7:1 avec du blanc) */
  --source-texte: #0a6a7a;  /* texte et liens         (6.3:1 sur blanc) */
  --source-vif: #0fa0b8;    /* survol, accents sur fond sombre */
  --source-voile: #e4f4f7;  /* aplat très clair */
  --alerte: #c6362f;        /* urgence, employé avec parcimonie */
  --valide: #17795a;        /* points de réassurance */

  --ombre-s: 0 1px 2px rgba(10, 27, 63, 0.06), 0 2px 8px rgba(10, 27, 63, 0.05);
  --ombre-m: 0 2px 4px rgba(10, 27, 63, 0.05), 0 8px 24px rgba(10, 27, 63, 0.08);
  --ombre-l: 0 4px 8px rgba(10, 27, 63, 0.05), 0 18px 48px rgba(10, 27, 63, 0.12);

  --r-s: 8px;
  --r-m: 14px;
  --r-l: 22px;
  --r-plein: 999px;

  --titre: 'Fraunces', Georgia, 'Times New Roman', serif;
  --texte: 'Inter V2', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --shell: 1200px;
  --marge: clamp(20px, 5vw, 40px);
  --entete: 72px;

  --vite: 180ms;
  --normal: 320ms;
  --lent: 560ms;
  --doux: cubic-bezier(0.22, 1, 0.36, 1);
}

/* --- 3. Remise à zéro ---------------------------------------------------- */

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

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

body {
  margin: 0;
  background: var(--blanc);
  color: var(--encre);
  font-family: var(--texte);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
table { border-collapse: collapse; width: 100%; }

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

.saut {
  position: absolute; left: -9999px; top: 8px; z-index: 300;
  background: var(--encre); color: #fff; padding: 12px 20px; border-radius: var(--r-s);
}
.saut:focus { left: 8px; }

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

/* --- 4. Typographie ------------------------------------------------------ */

.t1, .t2, .t3 {
  font-family: var(--titre);
  font-weight: 700;
  font-variation-settings: 'SOFT' 40, 'WONK' 1;
  line-height: 1.08;
  letter-spacing: -0.018em;
  text-wrap: balance;
}

.t1 { font-size: clamp(2.15rem, 5vw, 3.75rem); line-height: 1.04; }
.t2 { font-size: clamp(1.7rem, 3.2vw, 2.6rem); }
.t3 { font-size: clamp(1.15rem, 1.6vw, 1.35rem); line-height: 1.25; letter-spacing: -0.01em; }

.surtitre {
  font-family: var(--texte);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--source-texte);
  margin-bottom: 14px;
  display: block;
}

.chapeau { font-size: clamp(1.05rem, 1.4vw, 1.2rem); line-height: 1.6; color: var(--ardoise); }
.secondaire { color: var(--ardoise); }
.mesure { max-width: 62ch; }
p + p { margin-top: 1em; }

.num { font-variant-numeric: tabular-nums; }

.lien {
  color: var(--source-texte);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1.5px;
  text-decoration-color: rgba(13, 127, 146, 0.35);
  transition: text-decoration-color var(--vite) ease;
}
.lien:hover { text-decoration-color: var(--source-texte); }
/* Sur fond sombre, le teal foncé devient illisible : on prend le vif. */
.sec--encre .lien, .pied .lien { color: var(--source-vif); text-decoration-color: rgba(15, 160, 184, 0.45); }
.sec--encre .lien:hover, .pied .lien:hover { text-decoration-color: var(--source-vif); }

/* --- 5. Structure -------------------------------------------------------- */

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

.sec { padding: clamp(56px, 8vw, 104px) 0; }
.sec--nuage { background: var(--nuage); }
.sec--encre { background: var(--encre); color: var(--blanc); }
.sec--encre .secondaire, .sec--encre .chapeau { color: #b6c2d8; }
.sec--encre .surtitre { color: var(--source-vif); }
.sec--serree { padding: clamp(36px, 5vw, 60px) 0; }

.tete { max-width: 46rem; margin-bottom: clamp(32px, 4vw, 52px); }
.tete--centre { margin-left: auto; margin-right: auto; text-align: center; }
.tete .chapeau { margin-top: 16px; }

/* Offre baignoire vers douche, accueil */
.offre-douche {
  display: grid; grid-template-columns: 1.05fr 1fr;
  gap: clamp(32px, 5vw, 64px); align-items: center;
}
.offre-douche > * { min-width: 0; }
.offre-douche__prix {
  display: flex; flex-wrap: wrap; align-items: center; gap: 20px 28px;
  padding: 24px 0; margin-bottom: 24px;
  border-bottom: 1px solid var(--nuage-fonce);
}
.offre-douche__prix p > span { display: block; font-size: 14px; color: var(--ardoise); }
.offre-douche__prix strong {
  display: block; font-size: clamp(38px, 4vw, 52px); line-height: 1.15;
  letter-spacing: -0.04em; margin-top: 4px; white-space: nowrap;
}
.offre-douche__prix small { font-size: 20px; font-weight: 600; letter-spacing: 0; }
.offre-douche__visite {
  padding: 10px 16px; background: var(--blanc); border-radius: var(--r-m);
  color: var(--source-texte); font-size: 14px; font-weight: 600; line-height: 1.45;
}
.offre-douche__materiel { margin-top: 16px; color: var(--ardoise); font-size: 14px; }
.offre-douche__reserve { font-size: 14px; line-height: 1.6; color: var(--ardoise); }
.offre-douche__tel { display: inline-block; margin-top: 14px; font-size: 15px; }
.offre-douche__galerie {
  display: grid; grid-template-columns: minmax(0, 1fr) 80px;
  gap: 12px; align-items: center;
}
.offre-douche__photo {
  display: block; min-width: 0; border-radius: var(--r-s); overflow: hidden;
  box-shadow: var(--ombre-s); cursor: zoom-in;
}
.offre-douche__photo:first-child { grid-row: 1 / 4; border-radius: var(--r-l); }
.offre-douche__photo img { width: 100%; height: auto; }
.offre-douche__photo:hover { outline: 2px solid var(--source); outline-offset: 3px; }
.offre-douche__legende { margin-top: 16px; font-size: 13px; color: var(--ardoise); text-align: center; }
@media (max-width: 900px) {
  .offre-douche { grid-template-columns: 1fr; gap: 36px; }
  .offre-douche__visuels { width: 100%; max-width: 560px; margin: 0 auto; }
  .offre-douche__galerie { grid-template-columns: minmax(0, 1fr) clamp(52px, 15vw, 80px); gap: 10px; }
}

/* --- 6. Boutons ---------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 26px;
  border: 2px solid transparent;
  border-radius: var(--r-plein);
  background: var(--source);
  color: #fff;
  font-weight: 600;
  font-size: 16px;
  line-height: 1.2;
  cursor: pointer;
  box-shadow: var(--ombre-s);
  transition: background var(--vite) ease, transform var(--vite) ease,
    box-shadow var(--vite) ease, border-color var(--vite) ease, color var(--vite) ease;
}
.btn:hover { background: var(--source-vif); transform: translateY(-2px); box-shadow: var(--ombre-m); }
.btn:active { transform: translateY(0); }

.btn--fonce { background: var(--encre); }
.btn--fonce:hover { background: #14295a; }

.btn--clair {
  background: var(--blanc);
  color: var(--encre);
  border-color: var(--nuage-fonce);
  box-shadow: none;
}
.btn--clair:hover { background: var(--blanc); border-color: var(--source); color: var(--source); }

.sec--encre .btn--clair { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.34); }
.sec--encre .btn--clair:hover { background: #fff; color: var(--encre); border-color: #fff; }

.btn--large { padding: 18px 34px; font-size: 17px; }
.btn svg { width: 18px; height: 18px; flex: none; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* --- 7. Entête ----------------------------------------------------------- */

.entete {
  position: sticky; top: 0; z-index: 100;
  height: var(--entete);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--normal) ease, box-shadow var(--normal) ease;
}
.entete[data-colle='true'] { border-bottom-color: var(--nuage-fonce); box-shadow: var(--ombre-s); }
.entete__in { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; }

.marque { display: flex; align-items: center; gap: 11px; color: var(--encre); }
.marque svg { width: 36px; height: auto; }
.marque b { font-family: var(--titre); font-weight: 700; font-size: 17px; letter-spacing: -0.01em; line-height: 1.05; display: block; }
.marque span { display: block; font-size: 11px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ardoise); }

.nav { display: flex; align-items: center; gap: 2px; }
.nav a {
  padding: 9px 14px; border-radius: var(--r-plein);
  font-size: 15px; font-weight: 500; color: var(--ardoise);
  transition: background var(--vite) ease, color var(--vite) ease;
}
.nav a:hover { background: var(--nuage); color: var(--encre); }
.nav a[aria-current='page'] { color: var(--source); background: var(--source-voile); }

.entete__tel {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 11px 20px; border-radius: var(--r-plein);
  background: var(--source); color: #fff; font-weight: 600; font-size: 15.5px;
  transition: background var(--vite) ease;
}
.entete__tel:hover { background: var(--source-vif); }
.entete__tel svg { width: 17px; height: 17px; }

.burger {
  display: none; width: 44px; height: 44px; padding: 0;
  background: var(--nuage); border: 0; border-radius: var(--r-s); cursor: pointer; position: relative;
}
.burger i { position: absolute; left: 13px; width: 18px; height: 2px; border-radius: 2px; background: var(--encre); transition: transform var(--vite) ease, opacity var(--vite) ease; }
.burger i:nth-child(1) { top: 16px; }
.burger i:nth-child(2) { top: 21px; }
.burger i:nth-child(3) { top: 26px; }
.burger[aria-expanded='true'] i:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.burger[aria-expanded='true'] i:nth-child(2) { opacity: 0; }
.burger[aria-expanded='true'] i:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

@media (max-width: 1040px) {
  .nav { display: none; }
  .burger { display: block; }
  .entete__tel span { display: none; }
  .entete__tel { padding: 12px 14px; }
}

.menu {
  display: none; position: fixed; inset: var(--entete) 0 0 0; z-index: 95;
  background: var(--blanc); padding: 20px var(--marge) 120px; overflow-y: auto;
}
.menu[data-ouvert='true'] { display: block; }
.menu a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 17px 4px; border-bottom: 1px solid var(--nuage);
  font-size: 19px; font-weight: 600; font-family: var(--titre);
}
.menu a svg { width: 18px; height: 18px; color: var(--brume); }
.menu .actions { margin-top: 28px; }
.menu .btn { width: 100%; }

/* --- 8. Barre d'appel mobile -------------------------------------------- */

.appel {
  display: none; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 110;
  gap: 10px;
}
.appel a {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 9px;
  padding: 15px 10px; border-radius: var(--r-plein); font-weight: 600; font-size: 15.5px;
  box-shadow: var(--ombre-l);
}
.appel a:first-child { background: var(--source); color: #fff; }
.appel a:last-child { background: var(--blanc); color: var(--encre); border: 1px solid var(--nuage-fonce); }
.appel svg { width: 17px; height: 17px; }

@media (max-width: 780px) {
  .appel { display: flex; }
  body { padding-bottom: 78px; }
}

/* --- 9. Héros ------------------------------------------------------------ */

.heros { background: var(--nuage); position: relative; overflow: hidden; }
.heros__vague { position: absolute; left: 0; right: 0; bottom: -1px; color: var(--blanc); pointer-events: none; }
.heros__vague svg { width: 100%; height: clamp(40px, 6vw, 80px); }

.heros__in {
  display: grid; grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(32px, 5vw, 64px); align-items: center;
  padding: clamp(36px, 5vw, 64px) 0 clamp(56px, 7vw, 92px);
}
@media (max-width: 900px) { .heros__in { grid-template-columns: 1fr; padding-bottom: clamp(56px, 10vw, 84px); } }

/* Tout bloc à fond clair déclare sa couleur de texte : sans ça il devient
   blanc sur blanc dès qu'il est posé dans une section .sec--encre. */
.carte-appel, .symptome, .tarif, .secteur, .avis blockquote,
.faq details, .form-carte, .avis-vide { color: var(--encre); }

.pastille {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 15px 7px 11px; border-radius: var(--r-plein);
  background: var(--blanc); box-shadow: var(--ombre-s);
  font-size: 13.5px; font-weight: 600; color: var(--ardoise);
  margin-bottom: 22px;
}
.pastille b { color: var(--encre); font-weight: 600; }
.point { width: 8px; height: 8px; border-radius: 50%; background: var(--valide); flex: none; }
.point--alerte { background: var(--alerte); }

.heros p.chapeau { margin-top: 20px; max-width: 34rem; }
.heros .actions { margin-top: 30px; }

.rassure { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 32px; }
.rassure li { display: flex; align-items: center; gap: 9px; font-size: 14.5px; font-weight: 500; color: var(--ardoise); }
.rassure svg { width: 19px; height: 19px; color: var(--valide); flex: none; }

/* Carte d'appel du héros */
.carte-appel {
  background: var(--blanc); border-radius: var(--r-l); box-shadow: var(--ombre-l);
  padding: clamp(24px, 3vw, 34px); border: 1px solid rgba(255, 255, 255, 0.9);
}
.carte-appel__tel {
  display: block; font-family: var(--titre); font-weight: 700;
  font-size: clamp(1.7rem, 3vw, 2.15rem); letter-spacing: -0.02em; color: var(--encre);
  font-variant-numeric: tabular-nums; margin: 6px 0 4px;
}
.carte-appel__tel:hover { color: var(--source); }
.carte-appel dl { margin-top: 22px; border-top: 1px solid var(--nuage); }
.carte-appel dl > div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--nuage); font-size: 14.5px; }
.carte-appel dt { color: var(--ardoise); }
.carte-appel dd { font-weight: 600; text-align: right; }
.carte-appel .btn { width: 100%; margin-top: 22px; }

/* --- 10. Grille des symptômes ------------------------------------------- */

.symptomes { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 1.6vw, 20px); }
@media (max-width: 900px) { .symptomes { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .symptomes { grid-template-columns: 1fr; } }

.symptome {
  --pad: clamp(22px, 2.4vw, 30px);
  display: flex; flex-direction: column; gap: 12px;
  padding: var(--pad);
  background: var(--blanc); border: 1px solid var(--nuage-fonce); border-radius: var(--r-m);
  transition: transform var(--normal) var(--doux), box-shadow var(--normal) var(--doux), border-color var(--normal) ease;
}
.symptome:hover { transform: translateY(-4px); box-shadow: var(--ombre-m); border-color: transparent; }
.symptome__ico {
  width: 52px; height: 52px; border-radius: var(--r-m);
  background: var(--source-voile); color: var(--source);
  display: grid; place-items: center; flex: none;
}
.symptome__ico svg { width: 26px; height: 26px; }
.symptome h3 { font-family: var(--titre); font-weight: 700; font-size: 1.15rem; letter-spacing: -0.01em; }
.symptome p { font-size: 15px; color: var(--ardoise); line-height: 1.55; }
.symptome__lien { margin-top: auto; padding-top: 6px; color: var(--source-texte); font-weight: 600; font-size: 15px; display: inline-flex; align-items: center; gap: 8px; }
.symptome__lien svg { width: 15px; height: 15px; transition: transform var(--vite) ease; }
.symptome:hover .symptome__lien svg { transform: translateX(4px); }

/* --- 11. Tarifs ---------------------------------------------------------- */

.tarifs { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 1.6vw, 20px); }
@media (max-width: 860px) { .tarifs { grid-template-columns: 1fr; } }

.tarif {
  background: var(--blanc); border-radius: var(--r-m); padding: clamp(24px, 2.6vw, 32px);
  border: 1px solid var(--nuage-fonce);
}
.tarif--vedette { border: 2px solid var(--source); box-shadow: var(--ombre-m); position: relative; }
.tarif__badge {
  position: absolute; top: -13px; left: clamp(24px, 2.6vw, 32px);
  background: var(--source); color: #fff; font-size: 12px; font-weight: 600;
  letter-spacing: 0.04em; text-transform: uppercase; padding: 5px 13px; border-radius: var(--r-plein);
}
.tarif h3 { font-family: var(--titre); font-size: 1.3rem; font-weight: 700; }
.tarif__prix { font-family: var(--titre); font-size: 2.1rem; font-weight: 700; letter-spacing: -0.02em; margin: 14px 0 6px; font-variant-numeric: tabular-nums; }
.tarif ul { margin-top: 20px; display: grid; gap: 11px; }
.tarif li { display: grid; grid-template-columns: 20px 1fr; gap: 11px; font-size: 15px; color: var(--ardoise); line-height: 1.5; }
.tarif li svg { width: 18px; height: 18px; color: var(--valide); margin-top: 3px; }

/* --- 12. Étapes ---------------------------------------------------------- */

.etapes { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(20px, 2.4vw, 32px); counter-reset: e; }
@media (max-width: 900px) { .etapes { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .etapes { grid-template-columns: 1fr; } }

.etape { counter-increment: e; position: relative; }
.etape::before {
  content: counter(e);
  display: grid; place-items: center;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--blanc); color: var(--source);
  border: 2px solid var(--source);
  font-family: var(--titre); font-weight: 700; font-size: 19px;
  margin-bottom: 18px;
  position: relative; z-index: 2;
}
.sec--encre .etape::before { background: var(--encre); color: var(--source-vif); border-color: var(--source-vif); }
.etape::after {
  content: ''; position: absolute; top: 23px; left: 52px; right: calc(-1 * clamp(20px, 2.4vw, 32px));
  height: 2px; background: var(--nuage-fonce); z-index: 1;
}
.sec--encre .etape::after { background: rgba(255, 255, 255, 0.16); }
.etape:last-child::after { display: none; }
@media (max-width: 900px) { .etape:nth-child(2n)::after { display: none; } }
@media (max-width: 520px) { .etape::after { display: none; } }
.etape h3 { font-family: var(--titre); font-size: 1.15rem; font-weight: 700; margin-bottom: 8px; }
.etape p { font-size: 15px; color: var(--ardoise); line-height: 1.55; }
.sec--encre .etape p { color: #b6c2d8; }

/* --- 13. Zone ------------------------------------------------------------ */

.zone-grille { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
@media (max-width: 860px) { .zone-grille { grid-template-columns: 1fr; } }

.secteurs { display: grid; gap: 14px; }
.secteur {
  background: var(--blanc); border: 1px solid var(--nuage-fonce); border-radius: var(--r-m);
  padding: 20px 22px;
}
.sec--nuage .secteur { border-color: transparent; box-shadow: var(--ombre-s); }
.secteur h3 { font-family: var(--titre); font-size: 1.05rem; font-weight: 700; display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.secteur h3 span { font-family: var(--texte); font-size: 13px; font-weight: 500; color: var(--brume); font-variant-numeric: tabular-nums; }
.secteur p { margin-top: 9px; font-size: 14.5px; color: var(--ardoise); line-height: 1.6; }

.villes { display: flex; flex-wrap: wrap; gap: 8px; }
.villes li {
  padding: 7px 14px; border-radius: var(--r-plein);
  background: var(--blanc); border: 1px solid var(--nuage-fonce);
  font-size: 14px; font-weight: 500;
}
.villes li b { font-weight: 500; color: var(--brume); font-variant-numeric: tabular-nums; margin-left: 6px; }
.sec--encre .villes li { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.14); }
.sec--encre .villes li b { color: #8fa0bd; }

/* --- 14. Avis ------------------------------------------------------------ */

.avis { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 1.6vw, 20px); }
@media (max-width: 900px) { .avis { grid-template-columns: 1fr; } }
.avis blockquote {
  background: var(--blanc); border-radius: var(--r-m); padding: clamp(22px, 2.4vw, 30px);
  border: 1px solid var(--nuage-fonce); display: flex; flex-direction: column; gap: 14px;
}
.avis p { font-size: 15.5px; line-height: 1.6; color: var(--ardoise); }
.avis footer { font-size: 14px; font-weight: 600; margin-top: auto; }
.avis footer span { display: block; font-weight: 400; color: var(--brume); font-size: 13px; }
.etoiles { display: flex; gap: 3px; color: #e8a33d; }
.etoiles svg { width: 17px; height: 17px; }

/* Emplacement des avis, tant que la fiche Google n'existe pas. */
.avis-vide {
  max-width: 40rem; margin: 0 auto; text-align: center;
  background: var(--blanc); border: 1px solid var(--nuage-fonce); border-radius: var(--r-l);
  padding: clamp(30px, 4vw, 46px);
}
.avis-vide .etoiles { justify-content: center; margin-bottom: 18px; }
.avis-vide h3 { font-family: var(--titre); font-size: 1.35rem; font-weight: 700; }
.avis-vide p { color: var(--ardoise); margin-top: 12px; font-size: 15.5px; }
.avis-vide .a-remplir { margin-top: 20px; }

/* --- 15. FAQ ------------------------------------------------------------- */

.faq { max-width: 52rem; margin: 0 auto; display: grid; gap: 10px; }
.faq details {
  background: var(--blanc); border: 1px solid var(--nuage-fonce); border-radius: var(--r-m);
  transition: border-color var(--vite) ease, box-shadow var(--vite) ease;
}
.faq details[open] { border-color: var(--source); box-shadow: var(--ombre-s); }
.faq summary {
  list-style: none; cursor: pointer; padding: 19px 56px 19px 22px; position: relative;
  font-weight: 600; font-size: 16.5px; line-height: 1.4;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ''; position: absolute; right: 22px; top: 26px;
  width: 11px; height: 11px; border-right: 2px solid var(--source); border-bottom: 2px solid var(--source);
  transform: rotate(45deg); transition: transform var(--normal) var(--doux);
}
.faq details[open] summary::after { transform: rotate(-135deg); top: 30px; }
.faq .rep { padding: 0 22px 22px; color: var(--ardoise); font-size: 15.5px; line-height: 1.65; }

/* --- 16. Formulaire ------------------------------------------------------ */

.form-carte {
  background: var(--blanc); border-radius: var(--r-l); padding: clamp(26px, 3.2vw, 40px);
  box-shadow: var(--ombre-l);
}
.form { display: grid; gap: 17px; }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 17px; }
@media (max-width: 620px) { .duo { grid-template-columns: 1fr; } }

.champ { display: grid; gap: 7px; }
.champ > label { font-size: 14px; font-weight: 600; color: var(--encre); }
.champ > label em { font-style: normal; color: var(--source-texte); }
.champ input, .champ textarea, .champ select {
  width: 100%; padding: 13px 15px; font-size: 16px;
  background: var(--blanc); color: var(--encre);
  border: 1.5px solid var(--nuage-fonce); border-radius: var(--r-s);
  transition: border-color var(--vite) ease, box-shadow var(--vite) ease;
}
.champ input::placeholder, .champ textarea::placeholder { color: var(--brume); }
.champ input:focus, .champ textarea:focus, .champ select:focus {
  outline: none; border-color: var(--source); box-shadow: 0 0 0 3px rgba(13, 127, 146, 0.15);
}
.champ textarea { resize: vertical; min-height: 118px; }
.err { font-size: 13.5px; color: var(--alerte); display: none; }
.champ[data-ko='true'] input, .champ[data-ko='true'] textarea, .champ[data-ko='true'] select { border-color: var(--alerte); }
.champ[data-ko='true'] .err { display: block; }

.champ label.accord {
  display: grid; grid-template-columns: 20px 1fr; gap: 11px; align-items: start;
  font-size: 14px; font-weight: 400; color: var(--ardoise); line-height: 1.5;
}
.accord input { width: 19px; height: 19px; margin-top: 2px; accent-color: var(--source); padding: 0; }

.miel { position: absolute; left: -9999px; opacity: 0; height: 0; }

.retour { display: none; padding: 14px 17px; border-radius: var(--r-s); font-size: 15px; line-height: 1.5; }
.retour[data-etat='ok'] { display: block; background: #e8f5ef; color: var(--valide); border: 1px solid #b9e0cd; }
.retour[data-etat='ko'] { display: block; background: #fdeceb; color: var(--alerte); border: 1px solid #f5c9c6; }

/* --- 17. Bandeau de rappel ---------------------------------------------- */

.rappel {
  background: var(--encre); color: #fff; border-radius: var(--r-l);
  padding: clamp(30px, 4vw, 52px);
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(24px, 3vw, 48px); align-items: center;
  position: relative; overflow: hidden;
}
@media (max-width: 860px) { .rappel { grid-template-columns: 1fr; } }
/* Le décor est hors flux : il ne doit surtout pas devenir une colonne de la
   grille, d'où le sélecteur restreint aux div de contenu. */
.rappel > div:not(.rappel__deco) { position: relative; z-index: 1; }
.rappel__deco {
  position: absolute; right: -90px; top: -90px;
  width: 300px; height: 300px; border-radius: 50%;
  background: rgba(15, 160, 184, 0.12); pointer-events: none; z-index: 0;
}
.rappel p { color: #b6c2d8; margin-top: 12px; }
.rappel .tel-gros {
  font-family: var(--titre); font-weight: 700; font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  letter-spacing: -0.02em; font-variant-numeric: tabular-nums; display: inline-block; margin-top: 20px;
}
.rappel .tel-gros:hover { color: var(--source-vif); }

/* --- 18. Fil, encart, divers -------------------------------------------- */

.fil { font-size: 13.5px; color: var(--ardoise); padding-top: 20px; }
.fil ol { display: flex; flex-wrap: wrap; gap: 7px; }
.fil li::after { content: '/'; margin-left: 7px; color: var(--brume); }
.fil li:last-child::after { content: ''; }
.fil a:hover { color: var(--source); }

.encart {
  background: var(--source-voile); border-radius: var(--r-m);
  padding: clamp(22px, 2.6vw, 30px); border-left: 4px solid var(--source);
}
.encart h3 { font-family: var(--titre); font-size: 1.15rem; font-weight: 700; margin-bottom: 10px; }
.encart p { color: var(--ardoise); font-size: 15.5px; }
.sec--encre .encart { background: rgba(15, 160, 184, 0.1); border-left-color: var(--source-vif); }
.sec--encre .encart p { color: #b6c2d8; }

.liste-ok { display: grid; gap: 13px; }
.liste-ok li { display: grid; grid-template-columns: 22px 1fr; gap: 13px; font-size: 16px; line-height: 1.55; }
.liste-ok svg { width: 20px; height: 20px; color: var(--valide); margin-top: 3px; }
.sec--encre .liste-ok svg { color: var(--source-vif); }

.a-remplir {
  display: inline-block; padding: 2px 9px; border-radius: var(--r-plein);
  background: #fdf3e3; border: 1px dashed #c98a1f; color: #8a5c10;
  font-size: 13px; font-weight: 600;
}
.sec--encre .a-remplir { background: rgba(255, 255, 255, 0.1); border-color: #e0b968; color: #f0cf8e; }

.duo-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
@media (max-width: 860px) { .duo-col { grid-template-columns: 1fr; } }

.mt-l { margin-top: clamp(28px, 3.5vw, 44px); }
.mt-m { margin-top: 22px; }

/* --- 19. Pied ------------------------------------------------------------ */

.pied { background: var(--encre); color: #fff; padding: clamp(48px, 6vw, 72px) 0 0; }
.pied__g { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: clamp(26px, 3vw, 44px); padding-bottom: clamp(36px, 4vw, 52px); }
@media (max-width: 900px) { .pied__g { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .pied__g { grid-template-columns: 1fr; } }
.pied .marque { color: #fff; }
.pied .marque span { color: #8fa0bd; }
.pied h2 { font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--source-vif); margin-bottom: 16px; }
.pied li { font-size: 15px; color: #b6c2d8; }
/* Liens de listes du pied : cible tactile d'au moins 24 px de haut. */
.pied li a { display: inline-block; padding: 6px 0; }
.pied li:not(:has(a)) { padding: 6px 0; }
.pied li a:hover { color: #fff; }
.pied address { font-style: normal; font-size: 15px; color: #b6c2d8; line-height: 1.9; margin-top: 18px; }
.pied address a {
  color: #fff; font-weight: 600;
  display: inline-block; padding: 5px 0;   /* cible tactile d'au moins 24px */
}
.pied__bas {
  border-top: 1px solid rgba(255, 255, 255, 0.12); padding: 20px 0 28px;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px;
  font-size: 13.5px; color: #8fa0bd;
}
.pied__bas ul { display: flex; flex-wrap: wrap; gap: 18px; }
.pied__bas a:hover { color: #fff; }

/* --- 20. Révélations ----------------------------------------------------- */

.rev { opacity: 0; transform: translateY(18px); }
.rev.vu { opacity: 1; transform: none; transition: opacity var(--lent) var(--doux), transform var(--lent) var(--doux); }
.rev-l > * { opacity: 0; transform: translateY(16px); }
.rev-l.vu > * { opacity: 1; transform: none; transition: opacity var(--lent) var(--doux), transform var(--lent) var(--doux); }
.rev-l.vu > *:nth-child(2) { transition-delay: 60ms; }
.rev-l.vu > *:nth-child(3) { transition-delay: 120ms; }
.rev-l.vu > *:nth-child(4) { transition-delay: 180ms; }
.rev-l.vu > *:nth-child(5) { transition-delay: 240ms; }
.rev-l.vu > *:nth-child(n+6) { transition-delay: 300ms; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 1ms !important; animation-iteration-count: 1 !important;
    transition-duration: 1ms !important; transition-delay: 0ms !important;
  }
  .rev, .rev-l > * { opacity: 1; transform: none; }
  .btn:hover, .symptome:hover { transform: none; }
}

/* --- 21. Photographies ---------------------------------------------------
   Les sources sont toutes en portrait : l'affichage est en 2:3, et le bandeau
   large est un triptyque plutôt qu'une bande unique. */

.photo-page { margin: 0; border-radius: var(--r-l); overflow: hidden; box-shadow: var(--ombre-m); background: var(--nuage); }
.photo-page img { width: 100%; height: auto; display: block; }

.symptome__photo {
  margin: calc(-1 * var(--pad)) calc(-1 * var(--pad)) 4px;
  border-radius: calc(var(--r-m) - 1px) calc(var(--r-m) - 1px) 0 0;
  overflow: hidden; background: var(--nuage);
}
.symptome__photo img { width: 100%; height: auto; display: block; aspect-ratio: 4 / 3; object-fit: cover; }

.legende-photo { margin-top: 14px; font-size: 13px; color: var(--brume); text-align: center; }

/* --- 22. Ruban de réalisations ------------------------------------------
   Une grille figée donnait « une suite d'images les unes après les autres ».
   Le ruban occupe toute la largeur, montre deux à quatre photos à la fois et
   laisse deviner la suivante sur le bord : c'est le mouvement qui donne envie
   de regarder. */

.ruban { overflow: hidden; padding: 4px 0 8px; }

.ruban__piste {
  display: flex;
  width: max-content;
  /* L'écart est porté par les cartes et non par le conteneur : la piste est
     alors une concaténation exacte de deux copies, et la boucle se referme
     sans décalage. */
  animation: ruban-defile var(--duree, 46s) linear infinite;
  will-change: transform;
}
.ruban[data-sens='droite'] .ruban__piste { animation-direction: reverse; }

@keyframes ruban-defile {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}

/* Le défilement s'arrête quand on veut regarder. */
.ruban:hover .ruban__piste,
.ruban:focus-within .ruban__piste { animation-play-state: paused; }

.carte-photo {
  position: relative;
  flex: none;
  width: clamp(210px, 23vw, 310px);
  margin-right: clamp(10px, 1.1vw, 16px);
  padding: 0;
  border: 0;
  border-radius: var(--r-m);
  overflow: hidden;
  background: var(--nuage);
  cursor: zoom-in;
  box-shadow: var(--ombre-s);
  transition: box-shadow var(--normal) ease, transform var(--normal) var(--doux);
}
.carte-photo img {
  width: 100%; height: auto; display: block;
  aspect-ratio: 3 / 4; object-fit: cover;
  transition: transform 900ms var(--doux);
}
.carte-photo:hover { transform: translateY(-4px); box-shadow: var(--ombre-m); }
.carte-photo:hover img { transform: scale(1.05); }

.carte-photo__voile {
  position: absolute; inset: auto 0 0 0;
  padding: 46px 14px 13px;
  background: linear-gradient(to top, rgba(8, 20, 44, 0.9) 8%, rgba(8, 20, 44, 0.45) 55%, transparent);
  color: #fff; text-align: left;
  display: flex; flex-direction: column; gap: 2px;
  pointer-events: none;
}
.carte-photo__voile span { font-size: 14px; font-weight: 600; line-height: 1.3; }
.carte-photo__voile i {
  font-style: normal; font-size: 12px; color: #b9cbe0;
  display: inline-flex; align-items: center; gap: 5px;
}
.carte-photo__voile i::before {
  content: ''; width: 4px; height: 4px; border-radius: 50%;
  background: var(--source-vif); flex: none;
}

/* Dégradés sur les bords : le ruban entre et sort de l'écran au lieu d'être
   coupé net. */
.ruban { position: relative; }
.ruban::before, .ruban::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: clamp(28px, 7vw, 110px);
  pointer-events: none; z-index: 2;
}
.ruban::before { left: 0; background: linear-gradient(to right, var(--blanc), transparent); }
.ruban::after { right: 0; background: linear-gradient(to left, var(--blanc), transparent); }
.sec--nuage .ruban::before { background: linear-gradient(to right, var(--nuage), transparent); }
.sec--nuage .ruban::after { background: linear-gradient(to left, var(--nuage), transparent); }

/* Sur écran tactile ou étroit, le ruban devient un défilement manuel avec
   accroche : c'est le geste attendu sur téléphone, et ça évite d'imposer une
   animation qu'on ne peut pas arrêter au doigt. La borne en largeur rend la
   bascule déterministe, là où (hover: none) seul dépend du matériel. */
@media (hover: none), (pointer: coarse), (max-width: 760px), (prefers-reduced-motion: reduce) {
  .ruban {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-inline: var(--marge);
  }
  .ruban::-webkit-scrollbar { display: none; }
  .ruban__piste { animation: none; }
  .ruban__piste > [aria-hidden='true'] { display: none; }
  .carte-photo { scroll-snap-align: center; width: clamp(220px, 62vw, 300px); }
  .ruban::before, .ruban::after { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .carte-photo:hover { transform: none; }
  .carte-photo:hover img { transform: none; }
}

/* --- Visionneuse --------------------------------------------------------- */

.visio {
  border: 0; padding: 0; max-width: 100vw; max-height: 100vh;
  width: 100%; height: 100%;
  background: rgba(6, 14, 32, 0.94);
  color: #fff;
  display: none;
  overflow: hidden;
}
.visio[open] { display: grid; grid-template-columns: auto 1fr auto; align-items: center; }
.visio::backdrop { background: rgba(6, 14, 32, 0.8); }

.visio__vue { margin: 0; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 14px; padding: clamp(12px, 2vw, 28px) 0; min-height: 0; }
.visio__vue img {
  max-width: min(92vw, 640px);
  max-height: calc(100vh - 130px);
  width: auto; height: auto;
  border-radius: var(--r-m);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}
.visio__vue figcaption {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center;
  gap: 4px 12px; font-size: 14.5px; font-weight: 600; text-align: center;
  padding: 0 16px;
}
.visio__vue figcaption i {
  font-style: normal; font-weight: 400; font-size: 13px; color: #b9cbe0;
  display: inline-flex; align-items: center; gap: 5px;
}
.visio__vue figcaption i::before {
  content: ''; width: 4px; height: 4px; border-radius: 50%;
  background: var(--source-vif); flex: none;
}
.visio__vue figcaption b {
  font-weight: 400; font-size: 12.5px; color: #7f8ca6;
  font-variant-numeric: tabular-nums; width: 100%;
}

.visio__nav, .visio__fermer {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff; cursor: pointer;
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  transition: background var(--vite) ease, border-color var(--vite) ease;
}
.visio__nav:hover, .visio__fermer:hover { background: rgba(255, 255, 255, 0.2); border-color: rgba(255, 255, 255, 0.45); }
.visio__nav { margin: 0 clamp(8px, 2vw, 26px); }
.visio__fermer { position: absolute; top: 16px; right: 16px; z-index: 2; }

@media (max-width: 640px) {
  .visio[open] { grid-template-columns: 1fr; grid-template-rows: 1fr auto; }
  .visio__nav { position: static; margin: 0; }
  .visio__nav--prec { grid-column: 1; grid-row: 2; justify-self: start; margin-left: 20px; }
  .visio__nav--suiv { grid-column: 1; grid-row: 2; justify-self: end; margin-right: 20px; }
  .visio__vue { grid-row: 1; }
  .visio__vue img { max-height: calc(100vh - 190px); }
}

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

/* Mesure d’audience : choix facultatif, accessible aussi depuis le pied. */
.preferences-audience { background:none; border:0; padding:0; color:inherit; font:inherit; text-decoration:underline; text-underline-offset:3px; cursor:pointer; }
.preferences-audience:hover { color:#fff; }
.consentement { position:fixed; z-index:130; left:24px; bottom:24px; width:min(440px, calc(100% - 48px)); padding:24px; background:#fff; color:var(--encre); border:1px solid var(--nuage-fonce); border-radius:20px; box-shadow:var(--ombre-l); max-height:calc(100dvh - 48px); overflow:auto; }
.consentement[hidden], .preferences-audience[hidden] { display:none; }
.consentement h2 { font:600 21px/1.3 var(--texte); margin:0 0 10px; }
.consentement p { font-size:14px; line-height:1.6; margin:0 0 10px; }
.consentement > a { font-size:14px; text-decoration:underline; text-underline-offset:3px; }
.consentement__actions { display:flex; gap:12px; margin-top:18px; }
.consentement__actions button { flex:1; min-height:44px; padding:10px; border:1px solid var(--source); border-radius:30px; background:#fff; color:var(--source); font:600 14px/1.4 var(--texte); cursor:pointer; }
.consentement__actions button:hover { background:var(--nuage); }
.consentement :focus-visible, .preferences-audience:focus-visible { outline:3px solid var(--source); outline-offset:4px; }
@media (max-width:780px) {
  .consentement { left:12px; bottom:12px; width:calc(100% - 24px); padding:20px; max-height:calc(100dvh - 24px); }
  .consentement-visible .appel { visibility:hidden; }
}
