/* ==========================================================================
   Fournisseur Direct · feuille de style unique
   Mobile-first. Aucune dépendance, aucun build.
   Ordre : 1 tokens · 2 reset · 3 typo · 4 layout · 5 composants · 6 header
           7 sections · 8 footer · 9 modal + formulaire · 10 widget WhatsApp
           11 tablette et desktop
   ========================================================================== */

/* --- 1. Tokens ---------------------------------------------------------- */
:root {
  --navy: #1F3A5F;
  --navy-dark: #152A45;
  --accent: #C8742A;
  --accent-hover: #A85E1F;
  --text: #1B2430;
  --muted: #5A6472;
  --bg: #FBFBF9;
  --bg-alt: #F2F4F1;
  --line: #D9DED8;
  --card-line: #D5DCE5;
  --white: #FFFFFF;
  --whatsapp: #25D366;
  --whatsapp-dark: #1DA851;
  --todo: #FBF0A8;

  --font-title: "Archivo", Arial, sans-serif;
  --font-body: "Source Sans 3", "Segoe UI", system-ui, sans-serif;

  --container: 1160px;
  --gutter: 24px;
  --section-y: 48px;
  --radius: 8px;
  --shadow: 0 1px 2px rgba(31, 58, 95, .05);
  --shadow-lift: 0 6px 20px rgba(31, 58, 95, .08);
}

/* --- 2. Reset ----------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

/* Filet de sécurité : la page ne peut jamais défiler horizontalement.
   « clip » et non « hidden » : hidden ferait de <html> un conteneur de
   défilement, ce qui casserait le position:sticky du header. */
html, body { overflow-x: clip; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img, svg, figure { max-width: 100%; }
img { height: auto; display: block; }

ul, ol { margin: 0; padding: 0; list-style: none; }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); text-decoration: underline; }

button { font: inherit; color: inherit; }

/* Le surlignage jaune ne vient que de la classe .todo, jamais de <mark> par défaut */
mark { background: none; color: inherit; }

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--navy);
  color: var(--white);
  padding: 12px 20px;
  font-weight: 600;
}
.skip-link:focus { left: 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* --- 3. Typographie ----------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--font-title);
  color: var(--navy);
  margin: 0;
  line-height: 1.15;
  letter-spacing: -.01em;
}

h1 { font-size: 38px; font-weight: 800; line-height: 1.08; }
h2 { font-size: 28px; font-weight: 800; }
h3 { font-size: 18px; font-weight: 700; }

p { margin: 0; }
h1, h2, h3, h4, p, li, label, summary { overflow-wrap: break-word; }
p + p { margin-top: 16px; }

.eyebrow {
  font-family: var(--font-title);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 12px;
}

.lead { font-size: 17px; color: var(--muted); margin-top: 20px; }
.muted { color: var(--muted); }
.micro { font-size: 13px; color: var(--muted); margin-top: 20px; }

.section-title { max-width: 28ch; }

/* Retour à la ligne volontaire, en desktop seulement */
.br-desktop { display: none; }
.section-title + .muted { margin-top: 20px; max-width: 46ch; }

/* Marqueur des informations à compléter ou à vérifier avant mise en ligne */
mark.todo {
  background: var(--todo);
  color: var(--text);
  padding: 1px 6px;
  border-radius: 3px;
  font-size: .85em;
  font-weight: 600;
  white-space: nowrap;
}

/* --- 4. Layout ---------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  /* env() protège du passage sous l'encoche en paysage sur iOS */
  padding-left: max(var(--gutter), env(safe-area-inset-left));
  padding-right: max(var(--gutter), env(safe-area-inset-right));
}

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

.grid { display: grid; gap: 16px; }

.split { display: grid; gap: 32px; }

/* --- 5. Composants ------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 24px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-family: var(--font-title);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn:hover { text-decoration: none; }
.btn-sm { min-height: 40px; padding: 9px 18px; font-size: 14px; }
.header-cta { white-space: nowrap; }
.cta-full { display: none; }

.btn-primary { background: var(--accent); color: var(--white); }
.btn-primary:hover { background: var(--accent-hover); color: var(--white); }

.btn-secondary { background: var(--white); border-color: var(--card-line); color: var(--navy); }
.btn-secondary:hover { background: var(--white); border-color: var(--navy); color: var(--navy); }

.btn-ghost { background: transparent; border-color: rgba(255, 255, 255, .45); color: var(--white); }
.btn-ghost:hover { background: rgba(255, 255, 255, .1); border-color: var(--white); color: var(--white); }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn-row .btn { flex: 1 1 220px; }

.ico { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.card {
  background: var(--white);
  border: 1px solid var(--card-line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
}
.card h3 { margin-bottom: 8px; }
.card p { font-size: 15px; color: var(--muted); }

.card .card-num {
  font-family: var(--font-title);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--accent);
  margin-bottom: 10px;
}

.link-arrow {
  display: inline-block;
  margin-top: 24px;
  font-family: var(--font-title);
  font-size: 15px;
  font-weight: 600;
  color: var(--accent);
}
.link-arrow span { transition: transform .15s ease; display: inline-block; }
.link-arrow:hover span { transform: translateX(3px); }

/* Emplacement de photo réelle (zone hachurée des maquettes) */
.media-placeholder {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  min-height: 260px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background-color: #EDEFE9;
  background-image: repeating-linear-gradient(
    135deg,
    rgba(31, 58, 95, .05) 0 6px,
    transparent 6px 14px
  );
}
.media-placeholder span {
  font-family: var(--font-title);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Photos réelles : même habillage que les emplacements hachurés qu'elles remplacent */
.hero-media img,
.media-video video {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--bg-alt);
}
.hero-media { margin: 0; }

/* Le clip est filmé en portrait : on lui garde son cadrage plutôt que de le
   recadrer en paysage, et on plafonne sa hauteur pour qu'il ne dévore pas
   la section. */
.media-video { margin: 0; display: flex; flex-direction: column; align-items: center; }
.media-video video {
  aspect-ratio: 9 / 16;
  max-height: 560px;
  width: auto;
  max-width: 100%;
  object-fit: cover;
  background: var(--navy-dark);
}
.media-video figcaption {
  margin-top: 10px;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}

/* Bande de preuves : trois vignettes carrées sous la liste « De A à Z » */
.preuves {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 40px;
}
.preuves img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}
.preuves p {
  margin-top: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
}

/* --- 6. Header ---------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .2s ease;
}
.site-header.is-scrolled { box-shadow: 0 2px 12px rgba(31, 58, 95, .08); }

.header-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 68px;
}

.logo {
  font-family: var(--font-title);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--navy);
}
.logo { margin-right: auto; }
.logo:hover { color: var(--navy); text-decoration: none; }
.logo span { color: var(--accent); margin-left: .3em; }

/* --- 7. Sections -------------------------------------------------------- */

/* Hero */
.hero { padding-block: 40px var(--section-y); }
.hero-grid { display: grid; gap: 32px; }
.hero h1 { margin-bottom: 0; }
.hero-media { min-height: 220px; }

/* Chiffres clés */
.stats { background: var(--navy); color: var(--white); padding-block: 32px; }
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 24px; }
.stat { text-align: center; }
.stat-n {
  font-family: var(--font-title);
  font-size: 24px;
  font-weight: 800;
  color: var(--white);
  line-height: 1.1;
}
.stat-l { font-size: 13px; color: rgba(255, 255, 255, .72); margin-top: 6px; }

/* En-tête de section avec lien à droite */
.section-head { display: grid; gap: 8px; }

/* Étapes */
.steps .step { border-top: 2px solid var(--accent); padding-top: 20px; }
.card .step-n {
  font-family: var(--font-title);
  font-size: 28px;
  font-weight: 800;
  color: var(--navy);
  line-height: 1;
  margin-bottom: 12px;
}
.steps h3 { font-size: 16px; }

@media (max-width: 899px) {
  .steps { gap: 4px; }
  .steps .step {
    display: grid;
    grid-template-columns: 34px 1fr;
    column-gap: 14px;
    background: none;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    padding: 18px 0 0;
  }
  .steps .step-n { grid-column: 1; grid-row: 1 / span 2; margin-bottom: 0; }
  .steps .step h3,
  .steps .step > p:not(.step-n) { grid-column: 2; }
}

/* Liste « Ce que nous prenons en charge » */
.checklist { display: grid; gap: 0; }
.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  font-weight: 600;
  color: var(--navy);
}
.ico-check {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Références */
.ref-list { margin-top: 24px; display: grid; gap: 12px; }
.ref-list li {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--navy);
}
.bullet { width: 8px; height: 8px; background: var(--accent); border-radius: 2px; flex: 0 0 auto; }

/* Mini-cartes « Pourquoi maintenant » */
.minicards .card h3 { font-size: 15px; margin-bottom: 4px; }
.minicards .card p { font-size: 13px; }

/* FAQ (accordéon natif <details>, fonctionne sans JavaScript) */
.section[id] { scroll-margin-top: 92px; }

.faq-list { margin-top: 32px; max-width: 820px; border-top: 1px solid var(--line); }

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

.faq-item summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-title);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--navy);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--accent); }

/* Chevron ocre, pointe vers le bas fermé, vers le haut ouvert */
.faq-item summary::after {
  content: "";
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  margin-top: 8px;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(45deg);
  transition: transform .2s ease;
}
.faq-item[open] summary::after { margin-top: 12px; transform: rotate(225deg); }

.faq-answer {
  padding: 0 40px 22px 0;
  margin-top: -4px;
  max-width: 68ch;
  font-size: 16px;
  color: var(--muted);
}

/* CTA final */
.cta-final { background: var(--navy); color: var(--white); padding-block: 56px; }
.cta-final h2 { color: var(--white); font-size: 28px; }
.cta-final p { color: rgba(255, 255, 255, .8); margin-top: 16px; font-size: 16px; }

/* --- 8. Footer ---------------------------------------------------------- */
.site-footer {
  background: var(--navy-dark);
  color: rgba(255, 255, 255, .72);
  padding-block: 40px;
  font-size: 14px;
}
.site-footer a { color: rgba(255, 255, 255, .82); }
.site-footer a:hover { color: var(--white); }

.footer-grid { display: grid; gap: 28px; }

.footer-logo {
  font-family: var(--font-title);
  font-size: 18px;
  font-weight: 800;
  color: var(--white);
}
.footer-baseline { margin-top: 4px; }
.footer-zones { margin-top: 12px; font-size: 13px; color: rgba(255, 255, 255, .5); }

.footer-contact p + p { margin-top: 8px; }
.footer-legal { font-size: 13px; color: rgba(255, 255, 255, .5); }
.site-footer mark.todo { font-weight: 700; }

/* --- 9. Modal « Envoyer mes devis » et formulaire ------------------------ */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 80;
  padding: 16px;
  overflow-y: auto;
}
/* :target = repli sans JavaScript ; .is-open = pilotage par main.js */
.modal:target,
.modal.is-open { display: block; }

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(21, 42, 69, .6);
  display: block;
}
.modal-backdrop:hover { text-decoration: none; }

.modal-box {
  position: relative;
  width: 100%;
  max-width: 560px;
  margin: 24px auto;
  padding: 28px 20px 24px;
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 24px 60px rgba(21, 42, 69, .3);
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 6px;
  color: var(--muted);
}
.modal-close:hover { background: var(--bg-alt); color: var(--navy); text-decoration: none; }
.modal-close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

.modal-box h2 { font-size: 26px; }
.modal-intro { margin-top: 12px; font-size: 15px; color: var(--muted); }
.modal-alt { margin-top: 18px; font-size: 14px; color: var(--muted); text-align: center; }

/* Champs */
.form { margin-top: 24px; }

.field { margin-bottom: 16px; }
/* :not(.dropzone) : la zone de dépôt est aussi un <label>, mais en flex */
.field > label:not(.dropzone) {
  display: block;
  margin-bottom: 6px;
  font-family: var(--font-title);
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
}
.req { color: var(--accent); }

.field input[type="text"],
.field input[type="tel"],
.field input[type="email"],
.field select,
.field textarea {
  width: 100%;
  min-height: 46px;
  padding: 11px 14px;
  border: 1px solid var(--card-line);
  border-radius: 6px;
  background: var(--white);
  font-family: var(--font-body);
  font-size: 16px; /* 16px minimum : évite le zoom automatique sur iOS */
  color: var(--text);
}
.field textarea { min-height: 84px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); }
.field ::placeholder { color: #9AA3B0; }

/* Un champ signalé en erreur par la validation du navigateur ou par main.js */
.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] { border-color: #C0392B; }

.field-hint { margin-top: 6px; font-size: 12px; color: var(--muted); }
.field-error { margin-top: 6px; font-size: 13px; font-weight: 600; color: #C0392B; }

/* Indicatif pays + numéro */
.phone { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 8px; }

/* Zone de dépôt des devis */
.file-input {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
  padding: 22px 16px;
  border: 1.5px dashed #BCC6D2;
  border-radius: 8px;
  background: var(--bg-alt);
  cursor: pointer;
}
.dropzone:hover, .dropzone.is-dragover { border-color: var(--accent); background: #F7F1EA; }
.file-input:focus-visible + .file-list,
.file-input:focus + .dropzone { outline: 3px solid var(--accent); }
.dropzone-ico { width: 22px; height: 22px; fill: none; stroke: var(--navy); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.dropzone-main { font-family: var(--font-title); font-size: 14px; font-weight: 600; color: var(--navy); }
.dropzone-hint { font-size: 12px; color: var(--muted); }

.file-list { margin-top: 10px; display: grid; gap: 6px; }
.file-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  font-size: 13px;
  color: var(--navy);
}
/* Les bureaux d'études produisent des noms de fichiers très longs :
   on force la coupure plutôt que de laisser la ligne s'élargir. */
.file-list li > span:first-child { min-width: 0; overflow-wrap: anywhere; }
.file-list .file-size { margin-left: auto; flex: 0 0 auto; color: var(--muted); font-size: 12px; }

/* Sélecteur de pays avec recherche.
   Sans JavaScript, le <select> natif reste visible et utilisable ;
   main.js ajoute la classe .is-enhanced et prend le relais. */
.country { position: relative; min-width: 0; }
.country.is-enhanced select { display: none; }

.country-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 46px;
  padding: 11px 12px;
  border: 1px solid var(--card-line);
  border-radius: 6px;
  background: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}
.country-btn:hover { border-color: var(--navy); }
.country-label { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.country-caret {
  flex: 0 0 auto;
  width: 7px; height: 7px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: translateY(-2px) rotate(45deg);
}
.country-btn[aria-expanded="true"] { border-color: var(--accent); }

.country-panel {
  position: absolute;
  z-index: 5;
  top: calc(100% + 6px);
  left: 0;
  width: max(100%, 260px);
  max-width: calc(100vw - 56px);
  background: var(--white);
  border: 1px solid var(--card-line);
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(21, 42, 69, .18);
  overflow: hidden;
}
.country-panel[hidden] { display: none; }

.country-search {
  width: 100%;
  min-height: 44px;
  padding: 11px 14px;
  border: 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--text);
}
.country-search:focus { outline: none; border-bottom-color: var(--accent); }

.country-list { max-height: 240px; overflow-y: auto; padding: 4px; }
.country-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 4px;
  font-size: 15px;
  color: var(--text);
  cursor: pointer;
}
.country-list li[hidden] { display: none; }
.country-name { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.country-code { flex: 0 0 auto; color: var(--muted); font-size: 13px; }
.country-list li:hover,
.country-list li.is-active { background: var(--bg-alt); }
.country-list li.is-active { box-shadow: inset 2px 0 0 var(--accent); }

.country-group {
  padding: 10px 10px 4px;
  font-family: var(--font-title);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  cursor: default;
}
.country-group[hidden] { display: none; }

.country-empty { padding: 16px 14px; font-size: 14px; color: var(--muted); text-align: center; }

.opt { font-weight: 400; color: var(--muted); }

/* Consentement */
.field-check { display: flex; align-items: flex-start; gap: 10px; margin: 20px 0; }
.field-check input { flex: 0 0 auto; width: 18px; height: 18px; margin-top: 2px; accent-color: var(--accent); }
.field-check label { font-size: 14px; color: var(--muted); line-height: 1.45; }

.field-alt { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Bannière d'erreur renvoyée par send.php */
.form-alerte {
  margin-bottom: 18px;
  padding: 12px 14px;
  border: 1px solid #E3B4AD;
  border-left: 3px solid #C0392B;
  border-radius: 6px;
  background: #FCF3F1;
  font-size: 14px;
  font-weight: 600;
  color: #8E2B1E;
}

/* Page de remerciement */
.merci { text-align: center; padding-block: 64px; }
.merci .eyebrow { margin-top: 20px; }
.merci .lead { margin-inline: auto; max-width: 46ch; }
.merci .btn-row { justify-content: center; }
.merci-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--bg-alt);
  border: 1px solid var(--line);
}
.merci-ico svg {
  width: 28px; height: 28px;
  fill: none; stroke: var(--accent);
  stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round;
}

/* Cloudflare Turnstile : le widget fait 300x65 px, on lui laisse sa place
   pour éviter un saut de mise en page à son apparition. */
/* Le widget Cloudflare fait 300x65 px : on réserve la place pour éviter
   un saut de mise en page quand il apparaît. */
.cf-turnstile { margin: 18px 0 16px; min-height: 65px; }
.cf-turnstile:empty { min-height: 0; margin: 0; }

.form-submit { width: 100%; }
.form-note { margin-top: 12px; font-size: 13px; color: var(--muted); text-align: center; }

/* Quand le modal est ouvert, la page derrière ne défile plus */
body.is-locked { overflow: hidden; }

/* --- 10. Widget WhatsApp ------------------------------------------------- */
.wa {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: calc(16px + env(safe-area-inset-bottom));
  z-index: 60;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

.wa-fab {
  width: 56px;
  height: 56px;
  border: 0;
  border-radius: 50%;
  background: var(--whatsapp);
  color: var(--white);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .22);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color .15s ease, transform .15s ease;
}
.wa-fab:hover { background: var(--whatsapp-dark); transform: translateY(-1px); }
.wa-fab svg { width: 32px; height: 32px; }

.wa-panel {
  width: min(300px, calc(100vw - 32px));
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .22);
}
.wa-panel[hidden] { display: none; }

.wa-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: var(--whatsapp);
  color: var(--white);
}
.wa-avatar {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .25);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-title);
  font-size: 12px;
  font-weight: 700;
}
.wa-name { font-family: var(--font-title); font-size: 14px; font-weight: 700; line-height: 1.2; }
.wa-status { font-size: 11px; opacity: .9; line-height: 1.3; margin-top: 2px; }
.wa-close {
  margin-left: auto;
  align-self: flex-start;
  width: 24px;
  height: 24px;
  padding: 0;
  background: none;
  border: 0;
  color: var(--white);
  cursor: pointer;
  opacity: .85;
}
.wa-close:hover { opacity: 1; }
.wa-close svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

.wa-body { padding: 16px 14px; background: #F5F3EE; }
.wa-bubble {
  background: var(--white);
  border-radius: 0 10px 10px 10px;
  padding: 12px 14px;
  font-size: 14px;
  color: var(--text);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .08);
}
.wa-open {
  display: block;
  margin-top: 14px;
  padding: 12px 16px;
  border-radius: 6px;
  background: var(--whatsapp);
  color: var(--white);
  font-family: var(--font-title);
  font-size: 15px;
  font-weight: 600;
  text-align: center;
}
.wa-open:hover { background: var(--whatsapp-dark); color: var(--white); text-decoration: none; }

/* --- 11. Tablette et desktop -------------------------------------------- */
@media (min-width: 600px) {
  .btn-row .btn { flex: 0 0 auto; }
  .grid-2, .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid { gap: 24px; }
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 599px) {
  .preuves { gap: 10px; }
  .preuves p { font-size: 12px; line-height: 1.35; }
}

@media (min-width: 900px) {
  body { font-size: 17px; }

  :root { --section-y: 80px; }

  h1 { font-size: 58px; }
  h2 { font-size: 36px; }
  h3 { font-size: 19px; }

  .lead { font-size: 17px; }

  /* Header */
  .header-inner { min-height: 76px; }
  .logo { font-size: 22px; }
  .header-cta { min-height: 44px; padding: 11px 22px; font-size: 15px; }
  .cta-full { display: inline; }
  .cta-short { display: none; }

  /* Hero */
  .hero { padding-block: 72px 88px; }
  .hero-grid { grid-template-columns: 1.05fr 1fr; align-items: center; gap: 64px; }
  .hero .lead { max-width: 34em; }
  .hero-media { min-height: 340px; }

  /* Chiffres clés */
  .stats { padding-block: 44px; }
  .stat-n { font-size: 32px; }

  /* Sections */
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }

  .section-head {
    grid-template-columns: 1fr auto;
    align-items: end;
    gap: 32px;
    margin-bottom: 8px;
  }
  .section-head .link-arrow { margin-top: 0; }

  .split { grid-template-columns: 1fr 1.6fr; gap: 64px; align-items: start; }
  .split-media { grid-template-columns: 1fr 1fr; align-items: center; }

  .checklist { grid-template-columns: 1fr 1fr; column-gap: 40px; }

  .steps h3 { font-size: 17px; }
  .step-n { font-size: 32px; }

  .minicards { grid-template-columns: repeat(2, 1fr); }

  .faq-item summary { font-size: 18px; }
  .faq-answer { font-size: 17px; }

  /* CTA final */
  .br-desktop { display: inline; }
  .cta-final { padding-block: 80px; }
  .cta-final h2 { font-size: 36px; }

  /* Footer */
  .site-footer { padding-block: 56px 40px; }
  .footer-grid { grid-template-columns: 1fr auto; gap: 56px; align-items: start; }
  .footer-contact { text-align: right; }

  /* Modal */
  .modal { padding: 24px; }
  .modal-box { padding: 36px 36px 32px; margin: 32px auto; }
  .modal-box h2 { font-size: 30px; }
  .form-submit { width: auto; min-width: 220px; }
  .form-note { text-align: left; margin-top: 14px; }

  /* Widget */
  .wa { right: max(24px, env(safe-area-inset-right)); bottom: calc(24px + env(safe-area-inset-bottom)); }
}

/* Les grilles n'ont pas besoin de marge haute quand elles suivent un titre */
.section-title + .grid,
.section-title + .muted + .grid,
.eyebrow + .section-title + .grid { margin-top: 32px; }
.section .grid { margin-top: 32px; }
.split .grid { margin-top: 0; }
