/* =====================================================================
   DUPOUY PLÂTRERIE - Feuille de style principale
   Design : BTP haut de gamme · sobre · signature tricolore française
   Palette : Bleu France #002395 · Rouge France #ED2939 · Blanc · Noir #0D0D0D
   Auteur : construit pour Louis Dupouy - "L'artisanat à la française"
   ===================================================================== */

/* -------------------------------------------------------------
   1. TOKENS (variables de design)
   ------------------------------------------------------------- */
:root {
  /* Couleurs de marque */
  --bleu-france: #002395;
  --bleu-france-fonce: #001a6e;   /* hover / états pressés */
  --bleu-france-clair: #e6ebf6;   /* fonds légers, focus */
  --rouge-france: #ED2939;
  --rouge-france-fonce: #c81e2d;
  --blanc: #ffffff;
  --noir: #0d0d0d;
  --gris-bleute: #f1f3f8;

  /* Sémantique */
  --bg: var(--blanc);
  --bg-alt: var(--gris-bleute);
  --bg-fonce: var(--bleu-france);
  --text: var(--noir);
  --text-muted: #4b5162;          /* ~7:1 sur blanc - accessible */
  --text-invert: #ffffff;
  --text-invert-muted: #c3ccdf;
  --border: #e3e7f0;
  --border-fort: #cdd4e4;

  /* Typographie */
  --font-heading: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-display: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-hero: "Bebas Neue", "Inter", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;

  /* Échelle typographique fluide (clamp mobile → desktop) */
  --fs-xs:  clamp(0.75rem, 0.72rem + 0.15vw, 0.8125rem);
  --fs-sm:  clamp(0.875rem, 0.84rem + 0.18vw, 0.9375rem);
  --fs-base: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  --fs-md:  clamp(1.125rem, 1.05rem + 0.35vw, 1.25rem);
  --fs-lg:  clamp(1.375rem, 1.2rem + 0.8vw, 1.75rem);
  --fs-xl:  clamp(1.75rem, 1.4rem + 1.6vw, 2.5rem);
  --fs-2xl: clamp(2.25rem, 1.7rem + 2.6vw, 3.5rem);
  --fs-3xl: clamp(2.75rem, 1.9rem + 4vw, 4.5rem);

  /* Espacement (rythme 4/8) */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;
  --section-y: clamp(2.5rem, 1.5rem + 3.2vw, 4.5rem);

  /* Rayons, ombres, layout */
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(13, 19, 33, 0.06), 0 1px 3px rgba(13, 19, 33, 0.05);
  --shadow-md: 0 6px 18px rgba(13, 19, 33, 0.08), 0 2px 6px rgba(13, 19, 33, 0.05);
  --shadow-lg: 0 22px 48px rgba(0, 35, 149, 0.14), 0 8px 20px rgba(13, 19, 33, 0.08);
  --container: 1180px;
  --container-narrow: 820px;
  --header-h: 76px;

  /* Transitions */
  --t-fast: 140ms cubic-bezier(0.4, 0, 0.2, 1);
  --t: 220ms cubic-bezier(0.4, 0, 0.2, 1);
  --t-slow: 380ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* -------------------------------------------------------------
   2. RESET & BASE
   ------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

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

body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; height: auto; }
img { object-fit: cover; }

a { color: var(--bleu-france); text-decoration: none; transition: color var(--t-fast); }
a:hover { color: var(--bleu-france-fonce); }

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

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-optical-sizing: auto;
  line-height: 1.14;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--text);
  text-wrap: balance;
}

p { text-wrap: pretty; }

button { font-family: inherit; cursor: pointer; }
a, button, .btn, input, select, textarea { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }

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

/* Sélection de texte aux couleurs de marque */
::selection { background: var(--bleu-france); color: #fff; }

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

.section { padding-block: var(--section-y); }
.section--alt { background: var(--bg-alt); }
.section--fonce { background: var(--bleu-france); color: var(--text-invert); }

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

/* Lien d'évitement (accessibilité clavier) */
.skip-link {
  position: absolute;
  left: 1rem; top: -100%;
  z-index: 2000;
  background: var(--bleu-france);
  color: #fff;
  padding: 0.7rem 1.2rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  transition: top var(--t);
}
.skip-link:focus { top: 1rem; color: #fff; }

/* -------------------------------------------------------------
   4. SIGNATURE TRICOLORE (élément de marque)
   ------------------------------------------------------------- */
.tricolore {
  display: inline-block;
  width: 6px;
  align-self: stretch;
  border-radius: 3px;
  background: linear-gradient(
    to bottom,
    var(--bleu-france) 0 33.33%,
    #ffffff 33.33% 66.66%,
    var(--rouge-france) 66.66% 100%
  );
  box-shadow: inset 0 0 0 1px rgba(13, 19, 33, 0.1);
  flex: 0 0 auto;
}
/* Filet horizontal (sous les titres centrés / footer) */
.tricolore-rule {
  width: 68px; height: 5px; border-radius: 3px;
  background: linear-gradient(
    to right,
    var(--bleu-france) 0 33.33%,
    #ffffff 33.33% 66.66%,
    var(--rouge-france) 66.66% 100%
  );
  box-shadow: inset 0 0 0 1px rgba(13, 19, 33, 0.1);
}

/* Titre de section avec filet tricolore à gauche */
.section-head { margin-bottom: clamp(2rem, 1rem + 3vw, 3.25rem); max-width: 720px; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head .eyebrow { display: inline-flex; align-items: center; gap: 0.6rem; }

.title-tricolore {
  display: flex;
  align-items: stretch;
  gap: 0.9rem;
}
.section-head--center .title-tricolore { flex-direction: column; align-items: center; justify-content: center; gap: 0.85rem; }
.section-head--center .title-tricolore .tricolore {
  width: 100%; height: 5px; max-width: 68px; align-self: auto;
  background: linear-gradient(to right,
    var(--bleu-france) 0 33.33%, #fff 33.33% 66.66%, var(--rouge-france) 66.66% 100%);
}

.eyebrow {
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bleu-france);
  margin-bottom: 0.9rem;
}
.section--fonce .eyebrow { color: #9db4f0; }

.section-title { font-size: var(--fs-xl); }
.section-subtitle {
  margin-top: 1rem;
  font-size: var(--fs-md);
  color: var(--text-muted);
  max-width: 60ch;
}
.section-head--center .section-subtitle { margin-inline: auto; }
.section--fonce .section-subtitle { color: var(--text-invert-muted); }

/* -------------------------------------------------------------
   5. BOUTONS
   ------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 50px;
  padding: 0.85rem 1.6rem;
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: 0.01em;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  transition: transform var(--t-fast), box-shadow var(--t), background var(--t), color var(--t), border-color var(--t);
  text-align: center;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn .btn-icon { width: 1.15em; height: 1.15em; flex: 0 0 auto; }

.btn-primary {
  background: var(--bleu-france);
  color: #fff;
  box-shadow: 0 8px 20px rgba(0, 35, 149, 0.25);
}
.btn-primary:hover { background: var(--bleu-france-fonce); color: #fff; box-shadow: 0 12px 26px rgba(0, 35, 149, 0.32); transform: translateY(-2px); }

.btn-secondary {
  background: #fff;
  color: var(--bleu-france);
  border-color: var(--border-fort);
}
.btn-secondary:hover { border-color: var(--bleu-france); color: var(--bleu-france); transform: translateY(-2px); box-shadow: var(--shadow-md); }

.btn-ghost { background: transparent; color: var(--text); }
.btn-ghost:hover { color: var(--bleu-france); }

.btn-white { background: #fff; color: var(--bleu-france); }
.btn-white:hover { background: var(--gris-bleute); color: var(--bleu-france-fonce); transform: translateY(-2px); }

.btn-outline-white { background: transparent; color: #fff; border-color: rgba(255,255,255,0.5); }
.btn-outline-white:hover { border-color: #fff; background: rgba(255,255,255,0.08); color: #fff; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,0.25); }

.btn-block { width: 100%; }
.btn-lg { min-height: 56px; padding: 1rem 2rem; font-size: var(--fs-base); }

/* -------------------------------------------------------------
   6. BADGES / PILULES DE RÉASSURANCE
   ------------------------------------------------------------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.95rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--text);
  box-shadow: var(--shadow-sm);
}
.badge .badge-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--rouge-france); flex: 0 0 auto; }
.badge svg { width: 1.15em; height: 1.15em; color: var(--bleu-france); flex: 0 0 auto; }
.badge--fonce { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.18); color: #fff; }
.badge--fonce svg { color: #fff; }

.badge-row { display: flex; flex-wrap: wrap; gap: 0.7rem; }

/* -------------------------------------------------------------
   7. EN-TÊTE / NAVIGATION
   ------------------------------------------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: box-shadow var(--t), border-color var(--t), background var(--t);
}
.site-header.is-scrolled {
  box-shadow: var(--shadow-sm);
  border-bottom-color: var(--border);
  background: rgba(255, 255, 255, 0.96);
}
.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

/* Logo (placeholder texte + emplacement SVG) */
.logo { display: inline-flex; align-items: center; gap: 0.7rem; color: var(--text); }
.logo:hover { color: var(--text); }
.logo-mark {
  width: 54px; height: 54px;
  display: grid; place-items: center;
  flex: 0 0 auto;
}
.logo-img { width: 100%; height: 100%; object-fit: contain; display: block; }
/* Pied de page sombre : logo en blanc monochrome */
.site-footer .logo-img { filter: brightness(0) invert(1); }
.logo-text { display: flex; flex-direction: column; line-height: 1.1; gap: 0.3rem; }
.logo-text strong { font-family: var(--font-body); font-weight: 400; font-size: 1rem; letter-spacing: 0.03em; color: var(--text); text-transform: uppercase; }
.site-header .logo-text strong { text-transform: uppercase; letter-spacing: 0.06em; }
.logo-text span { font-size: 0.62rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--text-muted); font-weight: 500; white-space: nowrap; }

/* Navigation centrale */
.nav { display: flex; align-items: center; gap: 0.35rem; }
.nav a {
  position: relative;
  padding: 0.55rem 0.9rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-sm);
  color: var(--text);
  border-radius: var(--radius-sm);
}
.nav a::after {
  content: ""; position: absolute; left: 0.9rem; right: 0.9rem; bottom: 0.3rem; height: 2px;
  background: var(--rouge-france); border-radius: 2px;
  transform: scaleX(0); transform-origin: left; transition: transform var(--t);
}
.nav a:hover { color: var(--bleu-france); }
.nav a:hover::after { transform: scaleX(1); }
.nav a[aria-current="page"] { color: var(--bleu-france); }
.nav a[aria-current="page"]::after { transform: scaleX(1); }

/* Actions à droite (téléphone + CTA) */
.header-actions { display: flex; align-items: center; gap: 0.9rem; }
.header-phone {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-display); font-weight: 700; font-size: var(--fs-sm);
  color: var(--text); white-space: nowrap;
}
.header-phone svg { width: 1.05em; height: 1.05em; color: var(--bleu-france); }
.header-phone:hover { color: var(--bleu-france); }

/* Burger */
.burger {
  display: none;
  width: 46px; height: 46px;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: var(--radius-sm);
  position: relative;
}
.burger span {
  position: absolute; left: 50%; top: 50%; width: 20px; height: 2px;
  background: var(--text); border-radius: 2px;
  transform: translate(-50%, -50%);
  transition: transform var(--t), opacity var(--t-fast);
}
.burger span:nth-child(1) { transform: translate(-50%, -7px); }
.burger span:nth-child(3) { transform: translate(-50%, 5px); }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translate(-50%, -50%) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translate(-50%, -50%) rotate(-45deg); }

/* -------------------------------------------------------------
   8. HERO
   ------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 1rem) 0 4rem;
  overflow: hidden;
  background: #0b1020;
}
.hero-eyebrow { display: inline-flex; align-items: center; gap: 0.7rem; margin-bottom: 1rem; }
.hero h1 {
  font-family: var(--font-hero);
  font-weight: 400;
  color: #fff;
  font-size: clamp(48px, 6.5vw, 82px);
  line-height: 1.05;
  letter-spacing: 0.02em;
  margin-bottom: 0;
}
.hero h1 .accent { color: var(--bleu-france); position: relative; white-space: nowrap; }
.hero-lead {
  font-family: var(--font-display);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.85);
  font-size: clamp(14px, 1.6vw, 17px);
  max-width: none;
  line-height: 1.5;
  margin: 14px 0 0;
}
.hero-services {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem 0.6rem;
  margin-bottom: 1.4rem;
  font-family: var(--font-display); font-weight: 600; font-size: var(--fs-sm);
  color: var(--text);
}
.hero-services .hs-label {
  font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--bleu-france); margin-right: 0.15rem;
}
.hero-services span:not(.hs-label)::after { content: "·"; color: var(--rouge-france); margin-left: 0.55rem; font-weight: 700; }
.hero-services span:last-child::after { content: none; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.hero-badges .badge { padding: 0.38rem 0.7rem; font-size: var(--fs-xs); box-shadow: none; gap: 0; }
.hero-badges .badge .badge-dot { display: none; }

/* Couche 1 - diaporama de réalisations en fond (crossfade opacity) */
.hero-slideshow { position: absolute; inset: 0; z-index: 0; }
.hero-slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0; transition: opacity 1.2s ease-in-out;
}
.hero-slide.is-active { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .hero-slide { transition: none; } }

/* Couche 2 - overlay sombre unifiant, sous Louis et le texte */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.70) 0%, rgba(0, 0, 0, 0.40) 60%, rgba(0, 0, 0, 0.10) 100%);
}

/* Couche 3 - photo de Louis, fondue vers la gauche (mask-image), au-dessus de l'overlay */
.hero-louis {
  position: absolute; right: 0; top: 0; z-index: 2;
  width: 45%; height: 100%; object-fit: cover; object-position: 50% 18%;
  -webkit-mask-image: linear-gradient(to left, #000 55%, transparent 100%);
          mask-image: linear-gradient(to left, #000 55%, transparent 100%);
}

/* Couche 4 - contenu */
.hero-inner { position: relative; z-index: 3; width: 100%; padding-left: 6%; padding-right: 24px; }
.hero-content { max-width: 55%; color: #fff; }

/* Prestations en pastilles */
.hero-pills {
  margin: 22px 0 0; overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
          mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
}
.hero-pills-track { display: flex; align-items: center; gap: 8px; width: max-content; animation: marquee 22s linear infinite; }
.hero-pills:hover .hero-pills-track { animation-play-state: paused; }
.hero-pills-track span { flex: 0 0 auto; }
.hero-pills span {
  display: inline-flex; align-items: center;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #fff; border-radius: 4px; padding: 8px 15px;
  font-family: var(--font-display); font-weight: 500; font-size: 13px; line-height: 1.2;
}

/* Badges de réassurance, barre basse du héro */
.hero-trust {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3;
  background: rgba(0, 0, 0, 0.42);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.hero-trust .container { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem 36px; padding: 13px 40px; }
.hero-trust span { display: inline-flex; align-items: center; gap: 0.45rem; color: #fff; font-family: var(--font-display); font-size: 12px; }
.hero-trust svg { width: 14px; height: 14px; flex: 0 0 auto; color: var(--rouge-france); }

/* ===== Hero 2 colonnes + QCM devis ===== */
.hero--qcm .hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: stretch;
  gap: 3.2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: calc(var(--header-h) + 1rem) 24px 1.5rem;
}
.hero--qcm .hero-left { max-width: none; color: #fff; }
.hero--qcm .hero-text { max-width: none; }
.hero--qcm .hero-lead { color: rgba(255, 255, 255, 0.92); margin-bottom: 1.3rem; }
.hero-badges-row { display: flex; flex-wrap: wrap; gap: 0.5rem 1.2rem; margin-top: 0.4rem; }
.hero-badges-row span { display: inline-flex; align-items: center; gap: 0.45rem; color: #fff; font-family: var(--font-display); font-size: 13px; letter-spacing: 0.02em; }
.hero-badges-row svg { width: 15px; height: 15px; flex: 0 0 auto; color: var(--rouge-france); }

.hero-qcm { background: #fff; border-radius: 16px; padding: 1.5rem; box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28); position: relative; }
.qcm-step { display: none; }
.qcm-step.active { display: block; animation: fadeInStep 0.3s ease; }
@keyframes fadeInStep { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.qcm-illustration svg { width: 116px; height: 92px; display: block; margin: 0 auto 0.9rem; }
.qcm-step h3 { font-size: 1.12rem; font-weight: 700; color: #0D0D0D; text-align: center; margin: 0 0 1.3rem; }
.qcm-options { display: flex; flex-direction: column; gap: 0.65rem; }
.qcm-btn { background: var(--gris-clair, #F1F3F8); border: 2px solid transparent; border-radius: 8px; padding: 0.8rem 1.15rem; font-family: inherit; font-size: 0.95rem; font-weight: 500; color: #0D0D0D; cursor: pointer; text-align: left; transition: all 0.18s ease; }
/* Survol = aperçu léger */
.qcm-btn:hover { background: #EEF1FF; border-color: var(--bleu-france); color: var(--bleu-france); }
/* Sélectionné = état marqué (rempli), prioritaire même au survol */
.qcm-btn.selected, .qcm-btn.selected:hover { background: var(--bleu-france); color: #fff; border-color: var(--bleu-france); }
.qcm-form { display: flex; flex-direction: column; gap: 0.9rem; }
.qcm-form input { border: 2px solid #E5E7EB; border-radius: 8px; padding: 0.8rem 1.15rem; font-family: inherit; font-size: 0.95rem; outline: none; transition: border-color 0.18s ease; }
.qcm-form input:focus { border-color: var(--bleu-france); }
.qcm-submit { background: var(--bleu-france); color: #fff; border: none; border-radius: 8px; padding: 0.95rem; font-family: var(--font-display); letter-spacing: 0.03em; font-size: 1.05rem; cursor: pointer; transition: background 0.18s ease; }
.qcm-submit:hover { background: #001a75; }
.qcm-submit:disabled { opacity: 0.55; cursor: not-allowed; }
.qcm-submit:disabled:hover { background: var(--bleu-france); }
.qcm-reassurance { font-size: 0.78rem; color: #6B7280; text-align: center; margin: 0; }
.qcm-error { font-size: 0.82rem; color: var(--rouge-france); text-align: center; margin: 0; font-weight: 600; }
.qcm-progress { display: flex; justify-content: center; gap: 0.5rem; margin-top: 1.4rem; }
.qcm-dot { width: 10px; height: 10px; border-radius: 50%; background: #D1D5DB; transition: background 0.2s ease; }
.qcm-dot.active { background: var(--bleu-france); }
.qcm-done { text-align: center; padding: 1.4rem 0.5rem; }
.qcm-done h3 { font-family: var(--font-display); color: var(--bleu-france); font-size: 1.6rem; margin: 0.8rem 0 0.4rem; }
.qcm-done p { color: #6B7280; margin: 0 0 1.1rem; }
@media (max-width: 900px) {
  .hero--qcm .hero-inner { grid-template-columns: 1fr; gap: 1.5rem; padding: calc(var(--header-h) + 0.5rem) 20px 2.4rem; }
  .hero--qcm .hero-text { text-align: center; }
  .hero-badges-row { justify-content: center; }
}

/* ===== Bento grid : Pourquoi Louis ===== */
.bento-section { padding: 4.5rem 24px; max-width: 1200px; margin: 0 auto; }
.bento-label { font-family: var(--font-display); font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.15em; color: var(--rouge-france); text-transform: uppercase; margin-bottom: 0.5rem; }
.bento-title { font-family: var(--font-display); font-size: 2.4rem; color: #0D0D0D; line-height: 1.05; margin: 0; }
.bento-title strong { color: var(--bleu-france); font-weight: inherit; }
.bento-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1rem; margin-top: 2.2rem; }
.bento-card { background: var(--gris-clair, #F1F3F8); border-radius: 16px; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.bento-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0, 35, 149, 0.1); }
.bento-large { grid-column: 1 / 8; grid-row: 1 / 3; border-radius: 16px; overflow: hidden; position: relative; min-height: 340px; }
.bento-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bento-photo-overlay { position: absolute; bottom: 1rem; left: 1rem; }
.bento-tag { background: rgba(0, 35, 149, 0.85); color: #fff; font-size: 0.8rem; font-weight: 600; padding: 0.4rem 0.8rem; border-radius: 20px; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.bento-avis { grid-column: 8 / 13; grid-row: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 1.5rem; text-align: center; }
.bento-stat { font-family: var(--font-display); font-size: 3rem; color: var(--bleu-france); line-height: 1; margin: 0.35rem 0 0.1rem; }
.bento-stat-label { font-size: 0.85rem; color: #6B7280; font-weight: 500; }
.bento-badge { grid-column: 8 / 11; grid-row: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 1.25rem; text-align: center; }
.bento-badge-title { font-size: 0.9rem; font-weight: 700; color: var(--bleu-france); margin: 0.5rem 0 0.25rem; }
.bento-badge-sub { font-size: 0.75rem; color: #6B7280; }
.bento-stat-card { grid-column: 11 / 13; grid-row: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 1.25rem; text-align: center; }
.bento-big-number { font-family: var(--font-display); font-size: 2.5rem; color: var(--bleu-france); line-height: 1; }
.bento-stat-desc { font-size: 0.8rem; color: #6B7280; margin-top: 0.25rem; }
.bento-zone { grid-column: 1 / 5; grid-row: 3; }
.bento-garantie { grid-column: 5 / 9; grid-row: 3; }
.bento-propre { grid-column: 9 / 13; grid-row: 3; }
.bento-zone, .bento-garantie, .bento-propre { display: flex; flex-direction: column; gap: 0.5rem; padding: 1.5rem; }
.bento-zone-title, .bento-garantie-title, .bento-propre-title { font-size: 1rem; font-weight: 700; color: #0D0D0D; }
.bento-zone-list, .bento-garantie-sub, .bento-propre-sub { font-size: 0.82rem; color: #6B7280; line-height: 1.5; }
.bento-propre-emoji { font-size: 2rem; }
@media (max-width: 768px) {
  .bento-title { font-size: 2rem; }
  .bento-grid { grid-template-columns: 1fr 1fr; }
  .bento-large { grid-column: 1 / 3; grid-row: 1; min-height: 220px; }
  .bento-avis { grid-column: 1 / 2; grid-row: 2; }
  .bento-badge { grid-column: 2 / 3; grid-row: 2; }
  .bento-stat-card { grid-column: 1 / 2; grid-row: 3; }
  .bento-zone { grid-column: 2 / 3; grid-row: 3; }
  .bento-garantie { grid-column: 1 / 2; grid-row: 4; }
  .bento-propre { grid-column: 2 / 3; grid-row: 4; }
}
@media (max-width: 480px) {
  .bento-grid { grid-template-columns: 1fr; }
  .bento-large, .bento-avis, .bento-badge, .bento-stat-card, .bento-zone, .bento-garantie, .bento-propre { grid-column: 1; grid-row: auto; }
}

/* Bande "Savoir-faire en images" */
.photo-band { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.photo-card { display: flex; flex-direction: column; }
.photo-frame {
  position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--border);
}
.photo-frame img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--t-slow); }
.photo-card:hover .photo-frame img { transform: scale(1.05); }
.photo-frame .photo-tag {
  position: absolute; left: 0; bottom: 0; z-index: 1;
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(0, 35, 149, 0.92); color: #fff;
  font-family: var(--font-display); font-weight: 700; font-size: var(--fs-xs);
  padding: 0.5rem 0.9rem; border-radius: 0 var(--radius-sm) 0 0;
}
.photo-card figcaption { margin-top: 0.9rem; font-size: var(--fs-sm); color: var(--text-muted); }
.photo-card figcaption b { display: block; font-family: var(--font-display); color: var(--text); font-size: var(--fs-base); margin-bottom: 0.15rem; }
/* Bande photo : 3 colonnes → 1 colonne (pas d'orphelin en 2 colonnes) */
@media (max-width: 620px) { .photo-band { grid-template-columns: 1fr; } }

/* -------------------------------------------------------------
   9. AVIS CLIENTS
   ------------------------------------------------------------- */
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.review-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.8rem;
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; gap: 1rem;
  transition: transform var(--t), box-shadow var(--t);
}
.review-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.stars { display: inline-flex; gap: 2px; color: #f5a623; }
.stars svg { width: 1.15rem; height: 1.15rem; }
.review-text { color: var(--text); font-size: var(--fs-base); }
.review-author { display: flex; align-items: center; gap: 0.7rem; margin-top: auto; }
.review-avatar {
  width: 40px; height: 40px; border-radius: 50%; flex: 0 0 auto;
  background: var(--bleu-france-clair); color: var(--bleu-france);
  display: grid; place-items: center; font-family: var(--font-display); font-weight: 800;
}
.review-author b { font-family: var(--font-display); font-size: var(--fs-sm); }
.review-author span { display: block; font-size: var(--fs-xs); color: var(--text-muted); }
.reviews-cta { margin-top: 2.25rem; display: flex; align-items: center; justify-content: center; gap: 1rem; flex-wrap: wrap; }
.google-note { display: inline-flex; align-items: center; gap: 0.5rem; font-size: var(--fs-sm); color: var(--text-muted); }
/* Bloc "Pourquoi choisir" (fusionne avec avis) : 2 cartes prestations pleine largeur + widget dessous */
.pourquoi-top { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; align-items: stretch; margin-top: 0.5rem; }
.pourquoi-card { align-items: center; text-align: center; }
.pourquoi-card p { flex: 0 0 auto; }
@media (max-width: 700px) { .pourquoi-top { grid-template-columns: 1fr; } }

/* -------------------------------------------------------------
   10. "POURQUOI NOUS" / ATOUTS
   ------------------------------------------------------------- */
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.feature {
  padding: 1.8rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--border-fort); }
.feature-icon {
  width: 54px; height: 54px; border-radius: 13px;
  display: grid; place-items: center; margin-bottom: 1.1rem;
  background: var(--bleu-france-clair); color: var(--bleu-france);
}
.feature-icon svg { width: 26px; height: 26px; }
.feature h3 { font-size: var(--fs-md); margin-bottom: 0.5rem; }
.feature p { color: var(--text-muted); font-size: var(--fs-sm); }

/* -------------------------------------------------------------
   11. SERVICES (grille de prestations)
   ------------------------------------------------------------- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.service-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.8rem;
  display: flex; flex-direction: column;
  overflow: hidden;
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}
.service-card::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: linear-gradient(to bottom, var(--bleu-france), var(--rouge-france));
  transform: scaleY(0); transform-origin: top; transition: transform var(--t-slow);
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.service-card:hover::before { transform: scaleY(1); }
.service-icon {
  width: 60px; height: 60px; border-radius: 15px; margin-bottom: 1.4rem;
  display: grid; place-items: center;
  background: var(--gris-bleute); color: var(--bleu-france);
  transition: background var(--t), color var(--t);
}
.service-card:hover .service-icon { background: var(--bleu-france); color: #fff; }
.service-icon svg { width: 30px; height: 30px; }
.service-card h3 { font-size: var(--fs-md); margin-bottom: 0.7rem; }
.service-card p { color: var(--text-muted); font-size: var(--fs-sm); flex: 1; }
.service-card .service-more {
  margin-top: 1.2rem; display: inline-flex; align-items: center; gap: 0.4rem;
  font-family: var(--font-display); font-weight: 700; font-size: var(--fs-sm); color: var(--bleu-france);
}
.service-card .service-more svg { width: 1em; height: 1em; transition: transform var(--t); }
.service-card:hover .service-more svg { transform: translateX(4px); }
/* Rebond devis en bas de carte : "En savoir plus" (decouverte) + "Devis gratuit" (action) */
.service-card .service-actions { margin-top: 1.2rem; display: flex; align-items: center; justify-content: space-between; gap: 0.6rem 1rem; flex-wrap: wrap; }
.service-card .service-actions .service-more { margin-top: 0; }
.service-devis { display: inline-flex; align-items: center; font-family: var(--font-display); font-weight: 700; font-size: var(--fs-sm); color: var(--bleu-france); background: transparent; border: 1.5px solid var(--bleu-france); border-radius: 999px; padding: 0.38rem 0.9rem; transition: background var(--t), color var(--t); }
.service-devis:hover { background: var(--bleu-france); color: #fff; }

/* Carte "prestation phare" mise en avant */
.service-card--phare { border-color: var(--bleu-france); box-shadow: var(--shadow-md); }
.service-tag {
  position: absolute; top: 1.2rem; right: 1.2rem;
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: var(--rouge-france); color: #fff;
  font-family: var(--font-display); font-weight: 700; font-size: 0.7rem; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 0.3rem 0.65rem; border-radius: var(--radius-pill);
}

/* -------------------------------------------------------------
   12. BANDEAU CTA
   ------------------------------------------------------------- */
.cta-band { position: relative; overflow: hidden; }
.cta-band .container { position: relative; z-index: 1; text-align: center; }
.cta-band h2 { font-size: var(--fs-2xl); color: #fff; margin-bottom: 1rem; }
.cta-band p { color: var(--text-invert-muted); font-size: var(--fs-md); max-width: 52ch; margin: 0 auto 2rem; }
.cta-band .btn-row { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.cta-band::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 6px;
  background: linear-gradient(to right,
    var(--bleu-france) 0 33.33%, #fff 33.33% 66.66%, var(--rouge-france) 66.66% 100%);
}

/* -------------------------------------------------------------
   13. RÉALISATIONS (galerie + filtres)
   ------------------------------------------------------------- */
.filters { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 2.5rem; }
.filter-btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 1.15rem;
  background: #fff;
  border: 1px solid var(--border-fort);
  border-radius: var(--radius-pill);
  font-family: var(--font-display); font-weight: 600; font-size: var(--fs-sm);
  color: var(--text);
  transition: all var(--t-fast);
}
.filter-btn:hover { border-color: var(--bleu-france); color: var(--bleu-france); }
.filter-btn.is-active { background: var(--bleu-france); border-color: var(--bleu-france); color: #fff; }

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.gallery-item { transition: opacity var(--t), transform var(--t); }
.gallery-item.is-hidden { display: none; }

/* Placeholder élégant (en attendant les vraies photos) */
.photo-placeholder {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  background:
    linear-gradient(135deg, var(--gris-bleute) 0%, #e4e9f4 100%);
  border: 1px solid var(--border);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.8rem; text-align: center; padding: 1.5rem;
  transition: transform var(--t), box-shadow var(--t);
}
.photo-placeholder::before {
  content: ""; position: absolute; inset: 0;
  background-image: repeating-linear-gradient(45deg, rgba(0,35,149,0.03) 0 10px, transparent 10px 20px);
}
.photo-placeholder::after {
  content: ""; position: absolute; left: 0; top: 0; width: 6px; height: 46px;
  background: linear-gradient(to bottom,
    var(--bleu-france) 0 33.33%, #fff 33.33% 66.66%, var(--rouge-france) 66.66% 100%);
  border-radius: 0 3px 3px 0;
}
.gallery-item:hover .photo-placeholder { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.photo-placeholder .pp-icon { width: 46px; height: 46px; color: var(--bleu-france); opacity: 0.65; position: relative; }
.photo-placeholder .pp-label { font-family: var(--font-display); font-weight: 700; color: var(--bleu-france); position: relative; }
.photo-placeholder .pp-tag { font-size: var(--fs-xs); color: var(--text-muted); position: relative; text-transform: uppercase; letter-spacing: 0.1em; }
.gallery-caption { margin-top: 0.9rem; }
.gallery-caption b { font-family: var(--font-display); font-size: var(--fs-base); display: block; }
.gallery-caption span { font-size: var(--fs-sm); color: var(--text-muted); }

/* -------------------------------------------------------------
   14. CONTACT (formulaire + coordonnées + carte)
   ------------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(2rem, 4vw, 3.5rem); align-items: start; }

.form-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1.6rem, 3vw, 2.6rem);
  box-shadow: var(--shadow-md);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.field { margin-bottom: 1.2rem; display: flex; flex-direction: column; gap: 0.4rem; }
.field label { font-family: var(--font-display); font-weight: 600; font-size: var(--fs-sm); }
.field label .req { color: var(--rouge-france); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  font-family: inherit; font-size: var(--fs-base); color: var(--text);
  background: #fff;
  border: 1.5px solid var(--border-fort);
  border-radius: var(--radius-sm);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
  min-height: 50px;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--bleu-france);
  box-shadow: 0 0 0 4px var(--bleu-france-clair);
}
.field input:user-invalid, .field select:user-invalid, .field textarea:user-invalid { border-color: var(--rouge-france); }
.field .error-msg { font-size: var(--fs-xs); color: var(--rouge-france-fonce); font-weight: 600; min-height: 1em; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--rouge-france); }

.form-consent { font-size: var(--fs-xs); color: var(--text-muted); margin-top: 0.5rem; }
.form-status {
  margin-top: 1rem; padding: 1rem 1.2rem; border-radius: var(--radius-sm);
  font-weight: 600; font-size: var(--fs-sm); display: none;
}
.form-status.is-success { display: block; background: #e7f6ec; color: #146c2e; border: 1px solid #b7e4c6; }
.form-status.is-error { display: block; background: #fde9eb; color: var(--rouge-france-fonce); border: 1px solid #f6bcc2; }
/* pot de miel anti-spam */
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

/* Colonne coordonnées */
.contact-info { display: flex; flex-direction: column; gap: 1.4rem; }
.info-item { display: flex; gap: 1rem; align-items: flex-start; }
.info-item .info-icon {
  width: 48px; height: 48px; border-radius: 12px; flex: 0 0 auto;
  display: grid; place-items: center; background: var(--bleu-france-clair); color: var(--bleu-france);
}
.info-item .info-icon svg { width: 22px; height: 22px; }
.info-item h3 { font-size: var(--fs-base); margin-bottom: 0.15rem; }
.info-item a, .info-item p { color: var(--text-muted); font-size: var(--fs-base); }
.info-item a:hover { color: var(--bleu-france); }
.zone-list { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.6rem; }
.zone-list li { font-size: var(--fs-xs); background: var(--gris-bleute); border-radius: var(--radius-pill); padding: 0.3rem 0.7rem; color: var(--text-muted); }

.map-embed {
  margin-top: 0.5rem; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border); box-shadow: var(--shadow-sm); line-height: 0;
}
.map-embed iframe { width: 100%; height: 320px; border: 0; filter: grayscale(0.1); }

/* -------------------------------------------------------------
   15. PIED DE PAGE
   ------------------------------------------------------------- */
.site-footer { background: var(--noir); color: #cfd6e6; padding-top: var(--section-y); }
.footer-top {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1.2fr; gap: 2.5rem;
  padding-bottom: 3rem; border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand .logo { color: #fff; margin-bottom: 1.1rem; }
.footer-brand .logo-text strong { color: #fff; }
.footer-brand .logo-text span { color: #8b93a7; }
.footer-brand p { color: #9aa3b8; font-size: var(--fs-sm); max-width: 34ch; }
.footer-brand .tricolore-rule { margin-top: 1.2rem; }
.footer-col h4 { font-family: var(--font-display); color: #fff; font-size: var(--fs-sm); text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 1.1rem; font-weight: 700; }
.footer-col ul { display: flex; flex-direction: column; gap: 0.7rem; }
.footer-col a { color: #9aa3b8; font-size: var(--fs-sm); }
.footer-col a:hover { color: #fff; }
.footer-col .footer-contact-item { display: flex; gap: 0.6rem; align-items: flex-start; margin-bottom: 0.8rem; color: #9aa3b8; font-size: var(--fs-sm); }
.footer-col .footer-contact-item svg { width: 1.1em; height: 1.1em; color: #7c86a0; flex: 0 0 auto; margin-top: 0.2em; }
.footer-badges { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.4rem; }
.footer-badge { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: #fff; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.14); border-radius: var(--radius-pill); padding: 0.3rem 0.7rem; }
.footer-badge--bni { display: inline-flex; align-items: center; gap: 0.42rem; padding-block: 0.28rem; }
.footer-badge--bni img { height: 15px; width: auto; display: block; }
.footer-social { display: inline-flex; align-items: center; gap: 0.5rem; margin-top: 1rem; color: #fff; font-weight: 600; font-size: var(--fs-sm); }
.footer-social svg { width: 1.2em; height: 1.2em; }
.footer-social:hover { color: var(--rouge-france); }

.footer-bottom {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding-block: 1.6rem; flex-wrap: wrap;
}
.footer-bottom p { font-size: var(--fs-xs); color: #7c86a0; }
.footer-bottom a { color: #9aa3b8; font-size: var(--fs-xs); }
.footer-bottom a:hover { color: #fff; }
.footer-credit { margin: 0.3rem 0 0; font-size: var(--fs-xs); color: #7c86a0; }
.footer-credit a { color: #9aa3b8; text-decoration: none; }
.footer-credit a:hover { color: #fff; }

/* -------------------------------------------------------------
   16. FIL D'ARIANE / EN-TÊTE DE PAGE INTERNE
   ------------------------------------------------------------- */
.page-hero {
  position: relative;
  min-height: 55vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding-top: calc(var(--header-h) + 1rem);
  padding-bottom: 1.5rem;
  overflow: hidden;
  background-color: #1B2A4A; /* fallback si la photo ne charge pas */
  background-size: cover;
  background-position: center;
}
.page-hero::after { /* voile sombre : léger en haut, plus dense en bas */
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.18) 0%, rgba(0, 0, 0, 0.52) 100%);
}
.page-hero > .container { position: relative; z-index: 2; }
.breadcrumb { display: flex; gap: 0.5rem; align-items: center; font-size: var(--fs-sm); color: var(--text-muted); margin-bottom: 1.2rem; }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--bleu-france); }
.breadcrumb .sep { color: var(--border-fort); }
.page-hero .breadcrumb { justify-content: center; }
.page-hero .breadcrumb, .page-hero .breadcrumb a { color: rgba(255, 255, 255, 0.85); }
.page-hero .breadcrumb a:hover { color: #fff; }
.page-hero .breadcrumb .sep { color: rgba(255, 255, 255, 0.5); }
.page-hero .breadcrumb [aria-current] { color: #fff; }
.page-hero .title-tricolore { justify-content: center; align-items: stretch; }
.page-hero h1 { color: #fff; font-family: var(--font-hero); font-weight: 400; letter-spacing: 0.04em; font-size: clamp(34px, 4.5vw, 58px); text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4); }
.page-hero p { margin: 10px auto 0; color: rgba(255, 255, 255, 0.82); font-family: var(--font-display); font-weight: 400; font-size: 15px; text-shadow: 0 1px 8px rgba(0, 0, 0, 0.55); }
.banner-tel { color: #fff; font-weight: 700; white-space: nowrap; border-bottom: 2px solid rgba(255, 255, 255, 0.55); }
.banner-tel:hover { color: #fff; border-bottom-color: #fff; }

/* Prose (mentions légales) */
.prose { max-width: 760px; }
.prose h2 { font-size: var(--fs-lg); margin: 2.4rem 0 0.9rem; }
.prose h3 { font-size: var(--fs-md); margin: 1.6rem 0 0.6rem; }
.prose p, .prose li { color: var(--text-muted); margin-bottom: 0.8rem; }
.prose ul { list-style: disc; padding-left: 1.4rem; }
.prose a { text-decoration: underline; }

/* Pages services / villes : le corps occupe toute la largeur du conteneur
   (titres, listes, tableau de prix, bandeau de réassurance, FAQ) au lieu de
   rester bloqué dans une colonne étroite à gauche. Les paragraphes courants
   gardent une longueur de ligne lisible. */
.ville-section .prose { max-width: none; }
.ville-section .prose > p { max-width: 820px; }

/* Détail d'un service (page Services) : liste de points inclus */
.service-points { margin-top: 1.1rem; display: flex; flex-direction: column; gap: 0.55rem; }
.service-points li { display: flex; gap: 0.6rem; align-items: flex-start; font-size: var(--fs-sm); color: var(--text-muted); }
.service-points li svg { width: 1.2em; height: 1.2em; color: var(--bleu-france); flex: 0 0 auto; margin-top: 0.15em; }
.service-card[id] { scroll-margin-top: calc(var(--header-h) + 1.5rem); }

/* Bandeau d'information (neuf & rénovation / particuliers & pros) */
.info-banner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1rem 2.5rem;
  padding: 1.5rem 2rem;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); text-align: center;
}
.info-banner .ib-item { display: inline-flex; align-items: center; gap: 0.7rem; font-family: var(--font-display); font-weight: 700; }
.info-banner .ib-item svg { width: 1.5em; height: 1.5em; color: var(--bleu-france); flex: 0 0 auto; }

/* Étapes (méthode de travail) */
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; counter-reset: step; }
.step { position: relative; padding: 1.8rem 1.5rem; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); }
.step .step-num {
  width: 44px; height: 44px; border-radius: 12px; margin-bottom: 1rem;
  display: grid; place-items: center; background: var(--bleu-france); color: #fff;
  font-family: var(--font-display); font-weight: 800; font-size: 1.15rem;
}
.step h3 { font-size: var(--fs-md); margin-bottom: 0.4rem; }
.step p { font-size: var(--fs-sm); color: var(--text-muted); }
@media (max-width: 860px) { .steps-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps-grid { grid-template-columns: 1fr; } }

/* -------------------------------------------------------------
   FAQ (accordéon natif <details>, GEO/SEO) - tokens existants
   ------------------------------------------------------------- */
.faq-list { max-width: 820px; margin: 2.5rem auto 0; display: flex; flex-direction: column; gap: 0.8rem; }
.faq-item { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.faq-item > summary {
  cursor: pointer; list-style: none;
  padding: 1.15rem 1.4rem;
  font-family: var(--font-display); font-weight: 700; font-size: var(--fs-md);
  color: var(--bleu-france);
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item > summary::after {
  content: "+"; font-size: 1.4em; font-weight: 400; line-height: 1;
  color: var(--rouge-france); flex: 0 0 auto; transition: transform var(--t);
}
.faq-item[open] > summary::after { transform: rotate(45deg); }
.faq-answer { padding: 0 1.4rem 1.25rem; color: var(--text-muted); font-size: var(--fs-sm); line-height: 1.65; }
.faq-answer a { color: var(--bleu-france); text-decoration: underline; }
/* Photo ronde de Louis épinglée à la réponse "Qui est Dupouy Plâtrerie ?" */
.faq-answer--louis { display: flex; align-items: flex-start; gap: 1.1rem; }
.faq-avatar {
  flex: 0 0 auto; width: 72px; height: 72px; border-radius: 50%;
  object-fit: cover; object-position: 50% 18%;
  border: 2px solid var(--bleu-france); box-shadow: var(--shadow-sm);
}
@media (max-width: 480px) { .faq-avatar { width: 60px; height: 60px; } }

/* Champ pièce jointe du formulaire de contact */
.field .opt { color: var(--text-muted); font-weight: 400; font-size: 0.85em; }
.bloc-citable a { color: var(--bleu-france); font-weight: 700; }
.section--fonce .bloc-citable a { color: #fff; text-decoration: underline; }
/* Bloc "précisions" repliable du formulaire (formulaire hybride) */
.form-optional { margin: 0 0 1.1rem; }
.form-optional > summary { cursor: pointer; list-style: none; padding: 0.55rem 0; font-family: var(--font-display); font-weight: 700; font-size: var(--fs-sm); color: var(--bleu-france); display: inline-flex; align-items: center; gap: 0.5rem; }
.form-optional > summary::-webkit-details-marker { display: none; }
.form-optional > summary::before { content: "+"; font-size: 1.15em; line-height: 1; color: var(--rouge-france); }
.form-optional[open] > summary::before { content: "\2013"; }
.form-optional .field:last-child { margin-bottom: 0; }
.form-reassurance { margin-top: 0.7rem; text-align: center; font-size: var(--fs-sm); color: var(--text-muted); }
.field-hint { display: block; margin-top: 0.4rem; font-size: var(--fs-xs); color: var(--text-muted); }
input[type="file"] {
  width: 100%; font-family: var(--font-body); font-size: var(--fs-sm);
  color: var(--text-muted); padding: 0.5rem 0;
}
input[type="file"]::file-selector-button {
  margin-right: 0.85rem; padding: 0.6rem 1.1rem; border-radius: var(--radius-sm);
  border: 2px solid var(--border-fort); background: #fff; color: var(--bleu-france);
  font-family: var(--font-display); font-weight: 700; font-size: var(--fs-sm); cursor: pointer;
  transition: border-color var(--t), background var(--t);
}
input[type="file"]::file-selector-button:hover { border-color: var(--bleu-france); background: var(--gris-bleute); }

/* -------------------------------------------------------------
   PLATEFORME WEB 2026 - View Transitions
   ------------------------------------------------------------- */
@view-transition { navigation: auto; }
.site-header { view-transition-name: header; }
.site-header .logo { view-transition-name: logo; }

/* Sur-titre du héro (compromis H1 : mot-clé au-dessus du slogan) */
.hero-eyebrow {
  display: inline-block; margin-bottom: 0.9rem;
  font-family: var(--font-display); font-weight: 700; font-size: var(--fs-xs);
  letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
}
.hero-eyebrow::before { content: ""; display: inline-block; width: 26px; height: 2px; margin-right: 0.7rem; vertical-align: middle; background: var(--rouge-france); }

/* Bloc citable (GEO - énoncé factuel extractible par les IA) */
.bloc-citable {
  max-width: 760px; margin: 1.8rem auto 2.75rem; padding: 1.15rem 1.4rem;
  background: #fff; border-left: 3px solid var(--bleu-france); border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm); color: var(--text); font-size: var(--fs-sm); line-height: 1.65;
}
.section--fonce .bloc-citable { background: rgba(255,255,255,0.08); border-left-color: #fff; color: rgba(255,255,255,0.92); box-shadow: none; }

/* Barre d'appel sticky (mobile uniquement) */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1000;
  background: var(--bleu-france); padding: 9px 16px calc(9px + env(safe-area-inset-bottom));
  transform: translateY(110%); transition: transform 0.3s ease;
  box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.18);
}
.sticky-cta.is-visible { transform: translateY(0); }
.sticky-cta a {
  display: flex; align-items: center; justify-content: center; gap: 0.55rem; min-height: 48px;
  color: #fff; font-family: var(--font-hero); font-size: 20px; letter-spacing: 0.04em;
}
.sticky-cta svg { width: 20px; height: 20px; flex: 0 0 auto; }
@media (min-width: 768px) { .sticky-cta { display: none !important; } }

/* ---- Confort tactile mobile (là où la barre d'appel fixe est présente) ---- */
@media (max-width: 767px) {
  /* Le pied de page dégage la barre d'appel fixe (sinon la dernière ligne
     passe dessous). */
  .site-footer { padding-bottom: calc(74px + env(safe-area-inset-bottom)); }
  /* Cibles tactiles plus généreuses pour les liens du pied de page */
  .footer-col ul { gap: 0; }
  .footer-col ul a { display: inline-block; padding: 0.55rem 0; }
  .footer-bottom { row-gap: 0.1rem; }
  .footer-bottom a { display: inline-block; padding: 0.4rem 0; }
  /* "En savoir plus" plus facile à toucher dans les cartes services */
  .service-card .service-more { padding: 0.4rem 0; }
}

@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  .sticky-cta { transition: none; }
}

/* -------------------------------------------------------------
   PARTENAIRES - bandeaux de logos défilants (marquee CSS)
   ------------------------------------------------------------- */
.marquee-label {
  text-align: center; margin: 1.8rem 0 0.2rem;
  font-family: var(--font-display); font-weight: 700; font-size: var(--fs-xs);
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--bleu-france);
}
.marquee {
  overflow: hidden; width: 100%; padding: 1.1rem 0;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}
.marquee-inner { display: flex; align-items: center; width: max-content; animation: marquee 32s linear infinite; }
.marquee--reverse .marquee-inner { animation-direction: reverse; }
.marquee:hover .marquee-inner { animation-play-state: paused; }
.partner-logo {
  flex: 0 0 auto; min-width: 190px; padding: 0 1.5rem; text-align: center;
  font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; letter-spacing: 0.01em;
  color: var(--text-muted); opacity: 0.7; white-space: nowrap;
}
.partner-logo--img { display: inline-flex; align-items: center; justify-content: center; }
.partner-logo--img img { height: 40px; width: auto; max-width: 155px; object-fit: contain; display: block; }
.partners-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1.4rem 0.5rem; padding: 1.1rem 0; width: 100%; }

/* Cartes guides/blog sur l'accueil (reprise du style de la page /blog) */
.guides-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 2rem; }
.blog-card { background: #fff; border: 1px solid #e8e8e8; border-radius: 10px; overflow: hidden; transition: transform .2s, box-shadow .2s; text-decoration: none; color: inherit; display: flex; flex-direction: column; }
.blog-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,35,149,0.12); }
.blog-card__img { width: 100%; height: 170px; background: var(--gris-clair, #F1F3F8); display: flex; align-items: center; justify-content: center; font-size: 52px; }
.blog-card__img--photo { background-size: cover; background-position: center; font-size: 0; }
.blog-card__body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.blog-card__cat { font-size: 11px; font-weight: 600; color: var(--rouge-france); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 8px; }
.blog-card__title { font-family: var(--font-display); font-size: 24px; color: var(--bleu-france); letter-spacing: 0.03em; line-height: 1.15; margin: 0 0 12px; }
.blog-card__excerpt { font-size: 14px; color: #555; line-height: 1.6; flex: 1; margin-bottom: 16px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.blog-card__meta { font-size: 12px; color: #888; }
@media (max-width: 900px) { .guides-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .guides-grid { grid-template-columns: 1fr; } }

@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .marquee-inner { animation: none; width: 100%; flex-wrap: wrap; justify-content: center; gap: 0.6rem 0; }
  .hero-pills-track { animation: none; flex-wrap: wrap; width: 100%; }
  .hero-pills-track span:nth-child(n+6) { display: none; }
}

/* -------------------------------------------------------------
   17. ANIMATIONS AU SCROLL (Intersection Observer)
   ------------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
  }
  .reveal.is-visible { opacity: 1; transform: none; }
  .reveal[data-delay="1"] { transition-delay: 100ms; }
  .reveal[data-delay="2"] { transition-delay: 200ms; }
  .reveal[data-delay="3"] { transition-delay: 300ms; }
  .reveal[data-delay="4"] { transition-delay: 400ms; }
}

/* Animation d'entrée du héro (au chargement) */
@keyframes heroInUp { from { opacity: 0; transform: translateY(-14px); } to { opacity: 1; transform: none; } }
@keyframes heroInDown { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes heroFade { from { opacity: 0; } to { opacity: 1; } }

@media (prefers-reduced-motion: no-preference) {
  .hero h1      { animation: heroInUp 0.55s ease-out both; animation-delay: 0.10s; will-change: transform, opacity; }
  .hero-lead    { animation: heroInUp 0.55s ease-out both; animation-delay: 0.25s; will-change: transform, opacity; }
  .hero-cta     { animation: heroInDown 0.6s ease-out both; animation-delay: 0.60s; will-change: transform, opacity; }
  .hero-trust   { animation: heroFade 0.6s ease-out both; animation-delay: 0.80s; will-change: opacity; }
}

/* -------------------------------------------------------------
   18. RESPONSIVE
   ------------------------------------------------------------- */
@media (max-width: 1024px) {
  .footer-top { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 860px) {
  :root { --header-h: 66px; }

  /* Navigation mobile */
  .burger { display: block; }
  .header-phone { display: none; }
  .nav {
    display: flex;
    z-index: 1001;
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    padding: 0.8rem 1.15rem 1.4rem;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    transform: translateY(-120%);
    transition: transform var(--t-slow);
    visibility: hidden;
  }
  .nav.is-open { transform: translateY(0); visibility: visible; }
  .nav a { padding: 0.95rem 0.6rem; font-size: var(--fs-md); border-bottom: 1px solid var(--border); }
  .nav a::after { display: none; }
  .mobile-actions { display: flex; flex-direction: column; gap: 0.8rem; margin-top: 1rem; }
  /* Les boutons du menu mobile sont des <a> : on annule l'héritage de .nav a
     (couleur de texte foncée + bordure du bas) pour retrouver le vrai style bouton */
  .mobile-actions .btn { border-bottom: none; }
  .mobile-actions .btn-primary { color: #fff; }
  .mobile-actions .btn-secondary { color: var(--bleu-france); }

  .services-grid, .features-grid, .gallery { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

/* HÉRO & BANNIÈRES - mobile (une seule photo, ni diaporama ni Louis) */
@media (max-width: 768px) {
  /* HÉRO MOBILE : diaporama seul en fond, Louis masqué, texte centré */
  .hero { min-height: 90vh; }
  .hero-louis { display: none; }
  .hero::before { background: rgba(0, 0, 0, 0.58); }
  .hero-inner { padding-left: 24px; padding-right: 24px; }
  .hero-content { max-width: none; text-align: center; margin-inline: auto; }
  .hero-lead { max-width: none; margin-inline: auto; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { width: 100%; }

  .page-hero { min-height: 45vh; }
}

@media (max-width: 560px) {
  .reviews-grid, .services-grid, .features-grid, .gallery { grid-template-columns: 1fr; }
  /* Header compact : le CTA passe dans le menu burger (évite que le burger déborde) */
  .header-actions .btn-primary { display: none; }
  .form-row { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 1.8rem; }
  .hero-cta .btn, .cta-band .btn { width: 100%; }
  .hero-cta, .cta-band .btn-row { width: 100%; }
}

/* Desktop : masquer les actions mobiles du menu */
@media (min-width: 861px) {
  .mobile-actions { display: none; }
}

/* Avis clients : rangée de 3 sur tablette, empilés sous 700px (pas d'orphelin) */
@media (max-width: 860px) { .reviews-grid { grid-template-columns: 1fr; max-width: 640px; margin-inline: auto; } }

/* -------------------------------------------------------------
   CARROUSEL RÉALISATIONS
   ------------------------------------------------------------- */
.carousel { margin-top: 0.5rem; }
.carousel-track {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: 0.5rem;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-slide { flex: 0 0 auto; width: clamp(270px, 82vw, 400px); scroll-snap-align: start; }

.realisation { display: flex; flex-direction: column; height: 100%; }
.realisation-media {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  background: var(--gris-bleute);
}
.realisation-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s ease; }
.realisation:hover .realisation-media img,
.gallery-item:hover .realisation-media img { transform: scale(1.03); }
.realisation-media::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: rgba(0, 35, 149, 0.12); opacity: 0; transition: opacity 0.3s ease;
}
.realisation:hover .realisation-media::after,
.gallery-item:hover .realisation-media::after { opacity: 1; }
.realisation-tag {
  position: absolute; left: 0; bottom: 0; z-index: 1;
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(0, 35, 149, 0.92); color: #fff;
  font-family: var(--font-display); font-weight: 700; font-size: var(--fs-xs);
  padding: 0.45rem 0.85rem; border-radius: 0 var(--radius-sm) 0 0;
}
.realisation figcaption { margin-top: 0.9rem; }
.realisation figcaption b { display: block; font-family: var(--font-heading); font-size: var(--fs-md); margin-bottom: 0.1rem; }
.realisation figcaption span { font-size: var(--fs-sm); color: var(--text-muted); }

.carousel-controls { display: flex; justify-content: center; gap: 0.75rem; margin-top: 1.35rem; }
.carousel-btn {
  width: 50px; height: 50px; border-radius: 50%;
  background: #fff; border: 1px solid var(--border-fort); box-shadow: var(--shadow-sm);
  color: var(--bleu-france); display: grid; place-items: center;
  transition: background var(--t), color var(--t), border-color var(--t), opacity var(--t), transform var(--t-fast);
}
.carousel-btn:hover:not(:disabled) { background: var(--bleu-france); color: #fff; border-color: var(--bleu-france); transform: translateY(-2px); }
.carousel-btn:disabled { opacity: 0.35; cursor: not-allowed; }
.carousel-btn svg { width: 22px; height: 22px; }
.carousel-note { margin-top: 1rem; font-size: var(--fs-xs); color: var(--text-muted); text-align: center; }

/* ============================================================
   PHASE 12 : Hero refonte (fond fixe, titre, medaillon, QCM cards)
   ============================================================ */
/* Fond fixe du hero. PLACEHOLDER: remplacer salon-cathedrale par la
   photo "Apres Creon" une fois fournie (/assets/img/chantiers/apres-creon.webp). */
.hero--qcm {
  background-image:
    /* TEST : overlay UNIFORME (assombrissement plat sur toute la photo, a peine plus
       fort a gauche cote texte) au lieu de la poche localisee. Contraste franc,
       niches un peu moins lumineuses mais encore identifiables. */
    linear-gradient(to right, rgba(0,0,0,0.62) 0%, rgba(0,0,0,0.5) 100%),
    url('../img/chantiers/hero-accueil-2.webp');
  background-size: cover;
  background-position: center 61%; /* cadrage niches : niches visibles a gauche, poutre en haut */
  background-attachment: fixed;
  min-height: auto; /* hauteur = contenu : la bande chiffres passe sur la ligne de flottaison */
  padding: 0; /* le padding est géré par .hero-inner ; évite le double padding du .hero de base */
}
.hero--qcm::before { content: none; }
.hero--qcm .hero-inner { padding-bottom: 1.5rem; }
/* Desktop : la colonne gauche s'étire à la hauteur du formulaire, médaillon collé en bas */
@media (min-width: 901px) {
  .hero--qcm .hero-left { display: flex; flex-direction: column; }
  .hero--qcm .hero-cred { flex: 1 1 auto; display: flex; flex-direction: column; }
  .hero--qcm .hero-louis-medal { margin-top: 1.6rem; }
  /* Formulaire à hauteur fixe : toutes les étapes occupent le même espace */
  .qcm-step.active { display: flex; flex-direction: column; min-height: 522px; }
  .qcm-step[data-step="1"] .qcm-cards { margin-bottom: auto; }   /* ancre bouton+garanties+google en bas */
  .qcm-step[data-step="3"] .qcm-form { flex: 1 1 auto; }
  .qcm-step[data-step="3"] .qcm-submit { margin-top: auto; }
}

/* Titre hero */
/* Titre hero bicolore, deux lignes même taille (Bebas, nowrap) */
.hero--qcm .hero-title { margin: 0; }
.hero-title-white, .hero-title-red { display: block; white-space: nowrap; font-family: var(--font-hero); font-weight: 400; font-size: clamp(1.95rem, 3.55vw, 2.8rem); line-height: 1.12; letter-spacing: 0.01em; text-transform: none; text-shadow: 0 2px 10px rgba(0,0,0,0.7); -webkit-text-stroke: 0.5px currentColor; }
.hero-title-white { color: #fff; }
/* Regle globale : plus aucun texte rouge dans le hero -> 2e ligne aussi en blanc */
.hero-title-red { color: #fff; }
/* Sous-titre */
.hero-subtitle { font-family: var(--font-body); font-size: 1.05rem; color: #D1D5DB; margin: 1.35rem 0 0; max-width: 480px; line-height: 1.6; text-shadow: 0 2px 8px rgba(0,0,0,0.6); }
/* Badges de réassurance (pills) */
.hero-badges { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.6rem; }
.hero-badges span { background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.18); border-radius: 20px; padding: 0.4rem 0.9rem; font-size: 0.82rem; color: #fff; white-space: nowrap; }

/* Label + surtitre hero */
/* Label = badge/pill rouge plein, texte blanc (aligne modele reference) */
.hero--qcm .hero-label { display: inline-block; font-family: var(--font-body); font-size: 0.76rem; font-weight: 700; color: #fff; background: var(--rouge-france); letter-spacing: 0.16em; text-transform: uppercase; padding: 0.5rem 1rem; border-radius: 999px; box-shadow: 0 4px 14px rgba(237,41,57,0.3); margin: 0 0 1.4rem; }
/* Medaillon Louis */
/* Chip témoignage Louis : encadré translucide (cohérent badges/Google) pour le détacher de la photo */
.hero-louis-medal { display: flex; width: -moz-fit-content; width: fit-content; align-items: center; gap: 0.85rem; margin-top: 2.25rem; align-self: flex-start; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.16); border-radius: 14px; padding: 0.6rem 1.1rem 0.6rem 0.6rem; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); box-shadow: 0 6px 20px rgba(0,0,0,0.22); }
.hero-louis-medal img { width: 58px; height: 58px; border-radius: 50%; object-fit: cover; object-position: center 22%; border: 2px solid var(--bleu-france); box-shadow: 0 2px 6px rgba(0,0,0,0.28); }
.hero-louis-text { display: flex; flex-direction: column; gap: 0.1rem; }
.hero-louis-text strong { display: block; color: #fff; font-size: 1.05rem; font-weight: 700; letter-spacing: 0.01em; }
.hero-louis-text span { color: #C7CDD8; font-size: 0.82rem; }
/* Qualites de Louis : 3e ligne discrete (hierarchie nom > role > qualites) */
.hero-louis-qualities { color: #9FB0C8; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.02em; margin-top: 0.1rem; }
/* CTA rappeles dans le hero (sous Louis) : primaire rouge + secondaire blanc/contour navy */
.hero-cta-row { display: flex; gap: 0.75rem; margin-top: 1.6rem; flex-wrap: wrap; }
.hero-cta { display: inline-flex; align-items: center; gap: 0.5rem; border-radius: 12px; padding: 0.85rem 1.35rem; font-family: var(--font-display); font-weight: 700; font-size: 1rem; letter-spacing: 0.02em; white-space: nowrap; transition: transform var(--t-fast), box-shadow var(--t-fast); }
.hero-cta svg { width: 18px; height: 18px; flex: 0 0 auto; }
.hero-cta--primary { background: var(--rouge-france); color: #fff; box-shadow: 0 8px 22px rgba(237,41,57,0.32); }
.hero-cta--primary:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 12px 28px rgba(237,41,57,0.42); }
.hero-cta--secondary { background: #fff; color: var(--bleu-france); border: 1.5px solid var(--bleu-france); }
.hero-cta--secondary:hover { color: var(--bleu-france); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,0.22); }

/* Badge Google sobre (statique) sous le médaillon */
.hero-google { display: flex; align-items: center; gap: 0.5rem; margin-top: 1.25rem; }
.hero-google-stars { color: #F59E0B; font-size: 0.95rem; letter-spacing: 0.03em; }
.hero-google-text { font-size: 0.82rem; color: #D1D5DB; }
.hero-google-text strong { color: #fff; font-weight: 700; }

/* QCM : en-tete */
.qcm-header { margin-bottom: 0.85rem; }
.qcm-main-title { font-size: 1.25rem; font-weight: 700; color: #0D0D0D; text-align: center; margin: 0 0 0.25rem; }
.qcm-reassurance-top { font-size: 0.8rem; color: #6B7280; text-align: center; margin: 0; letter-spacing: 0.03em; }

/* QCM : cartes icones (etape 1) */
.qcm-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
.qcm-card { position: relative; display: flex; flex-direction: column; align-items: center; gap: 0.35rem; padding: 0.75rem 0.6rem; background: var(--gris-clair, #F1F3F8); border: 2px solid transparent; border-radius: 12px; cursor: pointer; transition: all 0.2s ease; text-align: center; color: #0D0D0D; font-family: inherit; }
.qcm-card svg { width: 28px; height: 28px; }
.qcm-card span { font-size: 0.82rem; font-weight: 500; line-height: 1.3; }
.qcm-card svg { color: var(--bleu-france); transition: color 0.2s ease; }
/* Survol = aperçu léger (bordure douce + légère élévation) */
.qcm-card:hover { background: #F7F9FF; border-color: #A9B8FF; transform: translateY(-2px); box-shadow: 0 6px 16px -8px rgba(0, 35, 149, 0.30); }
/* Sélectionné = état marqué (teinte + bordure bleue + liseré + pastille ✓), prioritaire au survol */
.qcm-card.selected, .qcm-card.selected:hover { background: #E7ECFF; border-color: var(--bleu-france); color: var(--bleu-france); box-shadow: inset 0 0 0 1px var(--bleu-france); transform: none; }
.qcm-card.selected span { font-weight: 600; }
.qcm-card.selected::after {
  content: "\2713"; position: absolute; top: 6px; right: 8px;
  width: 18px; height: 18px; line-height: 18px; text-align: center;
  background: var(--bleu-france); color: #fff; border-radius: 50%;
  font-size: 11px; font-weight: 700;
}
.qcm-cards .qcm-card:nth-child(5):last-child { grid-column: 1 / -1; }
.qcm-cards--2 .qcm-card:nth-child(3) { grid-column: 1 / -1; }

/* Bouton "Suivant" (étape 1 multi-sélection) */
.qcm-next { display: block; width: 100%; margin-top: 0.9rem; background: var(--bleu-france); color: #fff; border: none; border-radius: 8px; padding: 0.85rem; font-family: var(--font-display); letter-spacing: 0.03em; font-size: 1rem; cursor: pointer; transition: background 0.18s ease; }
.qcm-next:hover { background: #001a75; }
.qcm-next:disabled { opacity: 0.5; cursor: not-allowed; }
.qcm-next:disabled:hover { background: var(--bleu-france); }
/* Bouton "Retour" (étapes 2 et 3 du QCM) — pastille à la charte, clic évident */
.qcm-back { align-self: flex-start; display: inline-flex; align-items: center; gap: 0.4rem; margin: 0 0 0.9rem; padding: 0.45rem 0.9rem; background: #EEF2FF; border: 1px solid #DCE3F7; border-radius: 9px; color: var(--bleu-france); font-family: var(--font-display); font-size: 0.9rem; font-weight: 600; line-height: 1; cursor: pointer; transition: background .18s ease, color .18s ease, border-color .18s ease; }
.qcm-back:hover, .qcm-back:focus-visible { background: var(--bleu-france); border-color: var(--bleu-france); color: #fff; outline: none; }
/* Case de consentement RGPD (étape 3) */
.qcm-consent { display: flex; align-items: flex-start; gap: 0.5rem; margin: 0.1rem 0 0.3rem; text-align: left; font-size: 0.8rem; line-height: 1.4; color: var(--text-muted); }
.qcm-consent input { flex: 0 0 auto; width: 16px; height: 16px; margin-top: 0.15rem; accent-color: var(--bleu-france); cursor: pointer; }
.qcm-consent a { color: var(--bleu-france); text-decoration: underline; }
.qcm-next[hidden] { display: none; }

/* Étape 4 : choix du mode de contact */
.qcm-contact-label { font-size: 0.9rem; font-weight: 600; color: #0D0D0D; text-align: center; margin: 0.6rem 0 0.1rem; }
.qcm-methods { margin-top: 0.2rem; }
.qcm-method small { font-size: 0.72rem; font-weight: 400; color: #6B7280; line-height: 1.3; }
.qcm-method.selected small { color: inherit; opacity: 0.85; }

/* QCM : badge Google */
.qcm-google-badge { display: flex; align-items: center; gap: 0.6rem; padding: 0.75rem 1rem; background: #F9FAFB; border: 1px solid #E5E7EB; border-radius: 10px; margin: 0 0 0.9rem; }
.qcm-google-stars { display: flex; align-items: center; gap: 0.3rem; flex-wrap: wrap; }
.stars { color: #F59E0B; font-size: 1rem; letter-spacing: 0.05em; }
.qcm-google-badge strong { font-size: 0.95rem; font-weight: 700; color: #0D0D0D; }
.avis-count { font-size: 0.82rem; color: #6B7280; }

/* Champs QCM avec icône + bouton avec flèche */
.qcm-input { position: relative; }
.qcm-input > svg { position: absolute; left: 0.9rem; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: #6B7280; pointer-events: none; }
.qcm-input input { padding-left: 2.6rem !important; width: 100%; }
.qcm-submit { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; }
.qcm-submit svg { width: 18px; height: 18px; }

/* Carte SVG interactive Nouvelle-Aquitaine (étape 3) */
.qcm-map-wrap { text-align: center; }
.qcm-map { width: 100%; max-width: 320px; height: auto; margin: 0.25rem auto 0; display: block; overflow: visible; }
.dep { stroke: #fff; stroke-width: 0.8; transition: fill 0.15s ease; }
.dep--off { fill: #E5E7EB; pointer-events: none; }
.dep--on { fill: var(--bleu-france); cursor: pointer; }
.dep--on:hover, .dep--on:focus { fill: var(--rouge-france); outline: none; }
.dep--on.selected { fill: var(--rouge-france); stroke: #fff; stroke-width: 1.6; }
.qcm-map-tooltip { text-align: center; font-size: 0.85rem; color: #6B7280; margin: 0.75rem 0 0; min-height: 1.2em; }
.qcm-map-tooltip.is-active { color: #0D0D0D; font-weight: 600; }

/* Barre de progression (étapes numérotées en haut du QCM) */
.qcm-steps { display: flex; justify-content: space-between; align-items: flex-start; gap: 4px; margin-bottom: 1rem; }
.qcm-pstep { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; gap: 0.35rem; }
.qcm-pstep:not(:last-child)::after { content: ""; position: absolute; top: 13px; left: 50%; width: 100%; height: 2px; background: #D1D5DB; z-index: 0; }
.qcm-pstep.is-done:not(:last-child)::after { background: var(--bleu-france); }
.qcm-pnum { position: relative; z-index: 1; width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: #D1D5DB; color: #fff; font-weight: 700; font-size: 0.82rem; transition: background 0.2s ease; }
.qcm-pstep.is-active .qcm-pnum, .qcm-pstep.is-done .qcm-pnum { background: var(--bleu-france); }
.qcm-plabel { font-size: 0.68rem; font-weight: 600; color: #9CA3AF; white-space: nowrap; }
.qcm-pstep.is-active .qcm-plabel { color: var(--bleu-france); }
.qcm-pstep.is-done .qcm-plabel { color: #0D0D0D; }

/* Sous-titre descriptif sous le titre de chaque carte */
.qcm-card small { font-size: 0.75rem; font-weight: 400; color: #6B7280; line-height: 1.25; margin-top: 0.1rem; display: block; }
.qcm-card.selected small { color: inherit; opacity: 0.85; }

/* Ligne de garanties sous le bouton Suivant (sobre, centrée) */
.qcm-guarantees { margin: 0.75rem 0 0; font-size: 0.78rem; color: #6B7280; text-align: center; }

/* Bandeau de chiffres clés (blanc, sous le hero) */
.hero-stats { display: flex; flex-wrap: wrap; justify-content: center; background: #fff; border-bottom: 1px solid #E5E7EB; }
.stat-item { display: flex; flex-direction: column; align-items: center; padding: 1.25rem 3rem; border-right: 1px solid #E5E7EB; }
.stat-item:last-child { border-right: none; }
.stat-number { font-family: var(--font-hero); font-weight: 400; font-size: 2rem; color: var(--bleu-france); line-height: 1; letter-spacing: 0.02em; }
.stat-label { font-family: var(--font-body); font-size: 0.78rem; color: #6B7280; margin-top: 0.25rem; text-align: center; }
/* Variante benefices : bandeau bas du hero en bleu marine (charte) + icones ligne blanches */
.hero-stats--benefits { background: var(--bleu-france); border-bottom: none; }
.hero-stats--benefits .stat-item { border-right-color: rgba(255,255,255,0.16); gap: 0.5rem; }
.hero-stats--benefits svg { width: 26px; height: 26px; color: #fff; flex: 0 0 auto; }
.hero-stats--benefits .stat-benefit { font-family: var(--font-body); font-size: 0.88rem; font-weight: 600; color: #fff; text-align: center; }
.hero-stats--benefits .stat-item:nth-child(n+3) { border-top-color: rgba(255,255,255,0.16); }

/* Bande de reassurance (bas du hero) */
.hero-reassurance { position: absolute; bottom: 0; left: 0; right: 0; z-index: 3; height: 56px; display: flex; align-items: center; background: rgba(0,35,149,0.92); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); padding: 0 2rem; }
.hero-reassurance-inner { max-width: 1200px; width: 100%; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: nowrap; overflow: hidden; }
.reassurance-quote { font-size: 0.9rem; font-style: italic; color: #fff; opacity: 0.92; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.reassurance-badges { display: flex; gap: 1rem; flex-wrap: nowrap; flex: 0 0 auto; }
.reassurance-badges span { font-size: 0.82rem; font-weight: 600; color: #fff; display: inline-flex; align-items: center; gap: 0.4rem; white-space: nowrap; }
.reassurance-badges span + span::before { content: "·"; color: var(--rouge-france); font-weight: 700; margin-right: 0.75rem; }
.reassurance-badges i { color: var(--rouge-france); font-style: normal; font-weight: 700; }

@media (max-width: 900px) {
  /* Passage en flux vertical : la bande (position:static) doit s'empiler,
     pas devenir un frère flex du contenu. */
  .hero--qcm { display: block; min-height: 0; background-attachment: scroll; }
  /* Héros QCM = photo portrait sur un héros très haut : en "cover" l'image est
     calée sur la hauteur et background-position vertical ne peut plus rien pan-er.
     On zoome légèrement le fond pour créer du débattement, puis chaque page ancre
     son sujet via background-position (réglage par photo ci-dessous / inline). */
  .hero--qcm { background-size: auto 150% !important; background-position: center 100% !important; }
  .hero-stats { position: static; }
  /* Empilement mobile : contexte + réassurance AVANT le formulaire, pour ne
     pas "tomber" directement sur le QCM :
     [fil d'Ariane] -> [label+H1] -> [sous-titre] -> [badges] -> [médaillon Louis]
     -> [QCM] -> [boutons d'appel]. */
  /* Espacement aéré entre les éléments de texte du hero (label, titre,
     sous-titre, badges, médaillon Louis). Le QCM reste visible dans le
     premier écran (première question ~690px < 812). */
  .hero--qcm .hero-inner { padding-bottom: 2rem; gap: 1.4rem; }
  .hero--qcm .qcm-steps { margin-bottom: 0.6rem; }
  .hero--qcm .hero-left, .hero--qcm .hero-cred { display: contents; }
  .hero--qcm .breadcrumb { order: 1; }
  .hero--qcm .hero-text { order: 2; }
  .hero--qcm .hero-subtitle { order: 3; }
  .hero--qcm .hero-badges { order: 4; }
  .hero--qcm .hero-louis-medal { order: 5; }
  .hero--qcm .hero-qcm { order: 6; margin-top: 0.3rem; }
  .hero--qcm .hero-cta-row { order: 7; }
  .hero--qcm .hero-subtitle, .hero--qcm .hero-badges, .hero--qcm .hero-cta-row { margin-top: 0; }
  .hero--qcm .hero-text, .hero--qcm .hero-subtitle { text-align: center; }
  .hero--qcm .hero-label { letter-spacing: 0.1em; margin-bottom: 0.8rem; }
  .hero--qcm .hero-title { max-width: none; }
  .hero-title-white, .hero-title-red { font-size: clamp(1.3rem, 6.2vw, 2.3rem); }
  .hero-subtitle { max-width: none; margin-left: auto; margin-right: auto; }
  .hero-louis-medal, .hero-google, .hero-badges { justify-content: center; }
  .hero-louis-medal { margin-top: 0; margin-left: auto; margin-right: auto; }
  .hero-google { margin-top: 0.8rem; }
  .hero-reassurance { position: static; height: auto; padding: 1rem 20px; }
  .hero-reassurance-inner { flex-direction: column; justify-content: center; align-items: center; text-align: center; flex-wrap: wrap; gap: 0.7rem; overflow: visible; }
  .reassurance-quote { white-space: normal; }
  .reassurance-badges { width: 100%; flex: 0 1 auto; flex-wrap: wrap; justify-content: center; gap: 0.35rem 0.9rem; }
  /* Séparateurs "·" retirés sur mobile : ils tombaient en début de ligne au wrap */
  .reassurance-badges span + span::before { content: none; margin: 0; }
}
/* Cartes du wizard : rester en 2 colonnes même sur petit écran (wizard plus court) */
@media (max-width: 560px) {
  /* Bande chiffres en 2x2 sur petit écran */
  .stat-item { flex: 1 1 50%; padding: 1rem 0.5rem; box-sizing: border-box; }
  .stat-item:nth-child(2n) { border-right: none; }
  .stat-item:nth-child(n+3) { border-top: 1px solid #E5E7EB; }
}
@media (max-width: 420px) {
  .qcm-cards { gap: 0.5rem; }
  .qcm-card { padding: 0.8rem 0.5rem; }
  .qcm-card span { font-size: 0.78rem; }
  .qcm-card small { font-size: 0.66rem; }
  .hero-qcm { padding: 1.4rem; }
  .qcm-plabel { font-size: 0.6rem; }
}

/* ============ Breadcrumb lisible sur le hero sombre des pages services (.hero--qcm) ============ */
.hero--qcm .breadcrumb, .hero--qcm .breadcrumb a { color: rgba(255,255,255,0.85); }
.hero--qcm .breadcrumb a:hover { color: #fff; }
.hero--qcm .breadcrumb .sep { color: rgba(255,255,255,0.5); }
.hero--qcm .breadcrumb [aria-current] { color: #fff; }

/* ============ Nav : "Services" = lien direct + sous-menu déroulant ============ */
.nav-item-sub { position: relative; display: inline-flex; align-items: center; gap: 0.05rem; }
.nav-sub-toggle { display: inline-flex; align-items: center; justify-content: center; background: none; border: 0; padding: 0.35rem; margin: 0; color: var(--text); cursor: pointer; border-radius: 6px; line-height: 0; transition: color .18s ease, background .18s ease; }
.nav-chevron { transition: transform 0.2s ease; display: block; }
.nav-sub-toggle:hover, .nav-item-sub.is-open .nav-sub-toggle { color: var(--bleu-france); background: rgba(0, 35, 149, 0.07); }
/* "Services" reste mis en avant tant que le menu est ouvert/survolé */
.nav-item-sub:hover > a, .nav-item-sub:focus-within > a { color: var(--bleu-france); }
.nav-sub {
  position: absolute; top: calc(100% + 12px); left: -0.75rem; z-index: 60;
  min-width: 280px; margin: 0; padding: 0.5rem; list-style: none;
  background: #fff; border: 1px solid rgba(15, 23, 42, 0.07); border-radius: 16px;
  box-shadow: 0 22px 46px -16px rgba(2, 12, 40, 0.32), 0 6px 14px -8px rgba(2, 12, 40, 0.14);
  opacity: 0; visibility: hidden; transform: translateY(10px) scale(0.97); transform-origin: 2rem top;
  transition: opacity .18s ease, transform .2s cubic-bezier(.2, .8, .2, 1), visibility .18s ease;
}
/* Pont invisible : garde le menu ouvert quand la souris traverse l'espace */
.nav-sub::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
/* Petite flèche reliant le menu au bouton "Services" */
.nav-sub::after {
  content: ""; position: absolute; top: -6px; left: 2rem; width: 12px; height: 12px;
  background: #fff; border-left: 1px solid rgba(15, 23, 42, 0.07); border-top: 1px solid rgba(15, 23, 42, 0.07);
  border-radius: 3px 0 0 0; transform: rotate(45deg);
}
.nav-item-sub:hover > .nav-sub, .nav-item-sub:focus-within > .nav-sub, .nav-item-sub.is-open > .nav-sub {
  opacity: 1; visibility: visible; transform: translateY(0) scale(1);
}
.nav-item-sub:hover .nav-chevron, .nav-item-sub:focus-within .nav-chevron, .nav-item-sub.is-open .nav-chevron { transform: rotate(180deg); }
.nav-sub li { margin: 0; }
.nav-sub a {
  display: flex; align-items: center; justify-content: space-between; gap: 1.2rem;
  padding: 0.66rem 0.9rem; border-radius: 11px;
  color: var(--text); font-size: 0.93rem; font-weight: 500; white-space: nowrap;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}
.nav-sub a::after {
  content: "\2192" !important;
  position: static; left: auto; right: auto; bottom: auto; width: auto; height: auto;
  background: none; border-radius: 0;
  font-size: 0.95em; font-weight: 700; color: var(--rouge-france);
  opacity: 0; transform: translateX(-6px); transition: opacity .18s ease, transform .18s ease;
}
.nav-sub a:hover, .nav-sub a:focus {
  background: linear-gradient(90deg, #EEF2FF 0%, #F6F8FF 100%);
  color: var(--bleu-france); transform: translateX(3px);
}
.nav-sub a:hover::after, .nav-sub a:focus::after { opacity: 1; transform: translateX(0); }
/* Page service courante : item du menu déroulant marqué actif (aria-current),
   et parent "Services" mis en avant comme "Accueil" quand on est sur la home. */
.nav-sub a[aria-current="page"] {
  background: linear-gradient(90deg, #EEF2FF 0%, #F6F8FF 100%);
  color: var(--bleu-france); font-weight: 700;
}
.nav-sub a[aria-current="page"]::after { opacity: 1; transform: translateX(0); }
.nav-item-sub.is-current > a { color: var(--bleu-france); }
.nav-item-sub.is-current > a::after { transform: scaleX(1); }

@media (max-width: 900px) {
  .nav-item-sub { display: block; width: 100%; position: relative; }
  .nav-item-sub > a { padding-right: 3.6rem; }
  .nav-sub-toggle { position: absolute; top: 0; right: 0; height: 100%; width: 3.6rem; border-radius: 0; border-bottom: 1px solid var(--border); color: var(--text-muted); }
  .nav-sub {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: 0; border-radius: 0; min-width: 0; padding: 0 0 0 0.9rem;
    max-height: 0; overflow: hidden; transition: max-height .25s ease;
  }
  .nav-item-sub:hover > .nav-sub, .nav-item-sub:focus-within > .nav-sub { max-height: 0; }
  .nav-item-sub.is-open > .nav-sub { max-height: 560px; }
  .nav-sub a { padding: 0.8rem 0.6rem; border-bottom: 1px solid var(--border); font-size: var(--fs-md); transform: none; }
  .nav-sub a:last-child { border-bottom: none; }
  .nav-sub a::after { content: none !important; }
}
