/* ==========================================================================
   Bleau'décor V2 — style.css
   Peinture, décoration & rénovation intérieure — Avon / Fontainebleau (77)
   ========================================================================== */

@import url('https://api.fontshare.com/v2/css?f[]=cabinet-grotesk@500,700,800,900&f[]=general-sans@400,500,600,700&display=swap');

:root {
  /* Palette — logo Bleau'décor (bleu canard / noir / doré), direction vivante */
  --teal: #0E7C6B;
  --teal-dark: #0A5C4F;
  --teal-tint: #E3F0ED;
  --ink: #24262B;
  --gold: #B99562;
  --gold-deep: #8A6A3D;   /* variante foncée du doré — seule utilisable en texte (AA) */
  --gold-tint: #F3ECE0;
  --sage: #1C5E43;        /* vert sapin — bande de réassurance, badges succès */
  --spark: #D97748;       /* terracotta — micro-interactions ponctuelles uniquement */
  --bg: #FAFAF8;
  --surface: #FFFFFF;
  --text-muted: #5B5E63;
  --white: #FFFFFF;
  --border: #E6E4DE;
  --wa: #075E54;      /* vert WhatsApp foncé — #25D366 en texte blanc échoue au contraste AA (~2:1) */
  --wa-dark: #054840;

  --font-display: 'Cabinet Grotesk', 'General Sans', -apple-system, sans-serif;
  --font-body: 'General Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --container: 1240px;
  --r-s: 10px;
  --r-m: 16px;
  --r-l: 26px;
  --sh-s: 0 1px 3px rgba(36,38,43,.08);
  --sh-m: 0 14px 34px -16px rgba(36,38,43,.28);
  --sh-l: 0 30px 60px -24px rgba(36,38,43,.34);
  --ease: cubic-bezier(.2,.7,.2,1);

  --header-h: 72px;
  --header-gap: 14px;
  --mobile-cta-h: 64px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
body, h1, h2, h3, h4, p, figure, dl, dd { margin: 0; }
ul[class], ol[class] { list-style: none; margin: 0; padding: 0; }
img, picture, svg { max-width: 100%; display: block; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding-bottom: var(--mobile-cta-h);
}
@media (min-width: 940px) { body { padding-bottom: 0; } }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.06;
  font-weight: 800;
  letter-spacing: -.01em;
}
h1 { font-size: clamp(2.3rem, 6vw, 4rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.7rem); }
h3 { font-size: clamp(1.15rem, 2.2vw, 1.4rem); font-weight: 700; }
p { color: var(--ink); }
.lede { font-size: clamp(1.05rem, 2vw, 1.18rem); color: var(--text-muted); max-width: 48ch; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 1.25rem; }
@media (min-width: 640px) { .container { padding-inline: 2rem; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: .5em;
  font-weight: 600; font-size: .8rem; letter-spacing: .04em; text-transform: uppercase;
  color: var(--teal); background: var(--teal-tint);
  padding: .5em .9em; border-radius: 999px;
}
section { padding-block: clamp(3rem, 7vw, 6rem); }

/* ---------- Focus ---------- */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible,
textarea:focus-visible, summary:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--teal); outline-offset: 2px; border-radius: var(--r-s);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 48px; padding: .95rem 1.6rem; font-weight: 600; font-size: 1rem;
  border-radius: 999px; border: 1.6px solid transparent;
  transition: transform .16s var(--ease), box-shadow .16s var(--ease), background-color .16s, border-color .16s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary { background: var(--teal); color: var(--white); box-shadow: 0 14px 26px -14px rgba(14,124,107,.55); }
.btn-primary:hover { background: var(--teal-dark); box-shadow: 0 20px 34px -16px rgba(14,124,107,.55); }

.btn-outline { background: transparent; color: var(--ink); border-color: var(--border); }
.btn-outline:hover { background: var(--surface); border-color: var(--ink); box-shadow: var(--sh-s); }

.btn-whatsapp { background: var(--wa); color: var(--white); }
.btn-whatsapp:hover { background: var(--wa-dark); }
.btn-whatsapp svg { flex-shrink: 0; }

.on-teal .btn-outline { color: var(--white); border-color: rgba(255,255,255,.4); }
.on-teal .btn-outline:hover { background: rgba(255,255,255,.1); box-shadow: none; }

.btn-block { width: 100%; }
.btn-sm { min-height: 40px; padding: .55rem 1.1rem; font-size: .9rem; }
.btn .arr { transition: transform .16s var(--ease); }
.btn:hover .arr { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 70; padding-top: var(--header-gap);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 1rem;
  max-width: min(1120px, calc(var(--container) - 2rem)); padding-inline: clamp(1.1rem, 3vw, 1.6rem);
  border-radius: 999px; border: 1px solid rgba(36,38,43,.1);
  /* --header-alpha : piloté en JS au scroll (transparent en haut de page,
     opaque après ~80px) — voir onScroll dans script.js. .12 = valeur de
     repli si le JS ne s'exécute pas. */
  background: rgba(250,250,248, var(--header-alpha, .12)); backdrop-filter: blur(8px);
  box-shadow: 0 14px 34px -20px rgba(36,38,43,0);
  transition: box-shadow .2s;
}
.site-header.scrolled .container { box-shadow: 0 14px 34px -20px rgba(36,38,43,.22); }

.logo { display: flex; align-items: center; gap: .6rem; flex-shrink: 0; }
.logo .mk { height: 28px; width: auto; flex-shrink: 0; }
.logo .wm { font-family: var(--font-display); font-weight: 800; font-size: 1.28rem; letter-spacing: -.01em; color: var(--ink); }
.logo .wm .l { font-weight: 500; }

.main-nav { display: none; align-items: center; gap: 1.9rem; }
.main-nav a { font-weight: 500; font-size: .96rem; color: var(--ink); opacity: .8; transition: opacity .15s; }
.main-nav a:hover, .main-nav a[aria-current="page"] { opacity: 1; color: var(--teal); }

.header-actions { display: flex; align-items: center; gap: .75rem; }
.header-actions .btn-whatsapp { display: none; }

.menu-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; background: transparent; border: 1.6px solid var(--border); border-radius: var(--r-s);
}
.menu-toggle svg { width: 22px; height: 22px; }
.menu-toggle .icon-close { display: none; }
.menu-toggle[aria-expanded="true"] .icon-hamburger { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: block; }

@media (min-width: 940px) {
  .main-nav { display: flex; }
  .header-actions .btn-whatsapp { display: inline-flex; }
  .menu-toggle { display: none; }
}

.mobile-nav {
  position: fixed; inset: calc(var(--header-h) + var(--header-gap)) 0 auto 0; z-index: 65;
  background: var(--bg); border-bottom: 1px solid var(--border);
  /* -150vh (pas un % de sa propre hauteur) : garantit un masquage complet quel que
     soit le nombre de liens, y compris si le contenu est trop court pour qu'un
     pourcentage de sa propre hauteur suffise à le sortir de l'écran. */
  transform: translateY(-150vh); transition: transform .28s var(--ease);
  padding: .5rem 0 1.5rem; max-height: calc(100vh - var(--header-h) - var(--header-gap)); overflow-y: auto;
}
.mobile-nav.is-open { transform: translateY(0); }
.mobile-nav a { display: block; font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; padding: 1rem 1.25rem; border-top: 1px solid var(--border); }
.mobile-nav a[aria-current="page"] { color: var(--teal); }
.mobile-nav .btn { margin: 1rem 1.25rem 0; }
body.nav-open { overflow: hidden; }

/* ---------- Hero ---------- */
.hero { padding-top: clamp(1.5rem, 4vw, 2.75rem); padding-bottom: clamp(2rem, 4vw, 3rem); }
.hero .grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; align-items: center; }
@media (min-width: 960px) { .hero .grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(2.5rem, 5vw, 4rem); } }
.hero h1 { margin-top: 1rem; }
.hero h1 .hl {
  background: linear-gradient(rgba(185,149,98,.35), rgba(185,149,98,.35));
  background-repeat: no-repeat;
  background-size: 100% .3em;
  background-position: 0 88%;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.hero .services-line { margin-top: 1.2rem; font-weight: 600; color: var(--ink); display: flex; flex-wrap: wrap; gap: .4rem .9rem; }
.hero .services-line span:not(:last-child)::after { content: "·"; margin-left: .9rem; color: var(--gold); }
.ctas { display: flex; align-items: center; gap: .85rem; flex-wrap: wrap; }
.hero .ctas { margin-top: 1.75rem; }
.hero .reassure { margin-top: 1.1rem; font-size: .92rem; color: var(--text-muted); display: flex; align-items: center; gap: .5em; }
.hero .reassure svg { color: var(--teal); flex-shrink: 0; }

.hero-visual { position: relative; }
.hero-visual .frame {
  position: relative; border-radius: var(--r-l); overflow: hidden; box-shadow: var(--sh-l);
  aspect-ratio: 4/5;
}
@media (min-width: 960px) { .hero-visual .frame { aspect-ratio: 6/7; } }
.hero-visual .frame img { width: 100%; height: 100%; object-fit: cover; }
.hero-visual .float {
  position: absolute; left: -10px; bottom: 20px; z-index: 5;
  background: var(--surface); border-radius: var(--r-m); padding: .7rem .95rem;
  display: flex; align-items: center; gap: .7rem; box-shadow: var(--sh-m);
}
.hero-visual .float .ic { width: 38px; height: 38px; border-radius: 10px; background: var(--teal-tint); color: var(--teal); display: grid; place-items: center; flex-shrink: 0; }
.hero-visual .float b { font-size: .9rem; display: block; }
.hero-visual .float small { display: block; color: var(--text-muted); font-size: .76rem; }
@media (max-width: 520px) { .hero-visual .float { left: 6px; bottom: 10px; padding: .55rem .75rem; } }

/* Duotone overlay — unifie des photos Unsplash d'origines différentes */
.duotone { position: relative; isolation: isolate; }
.duotone::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(135deg, var(--teal-dark) 0%, transparent 55%, var(--gold) 100%);
  mix-blend-mode: multiply; opacity: .22;
}
.duotone.subtle::after { opacity: .14; }

/* ---------- Reassurance band (sage, plein-large) ---------- */
.reassure-band { background: var(--sage); color: var(--white); }
.reassure-band .wrap { display: grid; grid-template-columns: 1fr; gap: 1rem 2rem; }
@media (min-width: 700px) { .reassure-band .wrap { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .reassure-band .wrap { grid-template-columns: repeat(4, 1fr); } }
.reassure-item { display: flex; align-items: flex-start; gap: .7rem; }
.reassure-item svg { flex-shrink: 0; width: 24px; height: 24px; color: var(--gold); margin-top: 2px; }
.reassure-item b { display: block; font-size: .95rem; font-weight: 700; }
.reassure-item span { font-size: .83rem; color: rgba(255,255,255,.72); }

/* ---------- Section head ---------- */
.s-head { max-width: 62ch; }
.s-head.center { margin-inline: auto; text-align: center; }
.s-head h2 { margin-top: .85rem; }
.s-head p { margin-top: .9rem; }
.s-head-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 1rem; margin-bottom: 2.2rem; }
.s-head-row .s-head { margin-bottom: 0; }

/* ---------- Services cards ---------- */
.cards { margin-top: clamp(1.75rem, 4vw, 3rem); display: grid; grid-template-columns: 1fr; gap: 1.1rem; }
@media (min-width: 760px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-l);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--sh-m); border-color: transparent; }
.card .thumb { aspect-ratio: 4/3; overflow: hidden; }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.card .body { padding: 1.5rem 1.5rem 1.75rem; }
.card .ic { width: 44px; height: 44px; border-radius: 12px; background: var(--teal-tint); color: var(--teal); display: grid; place-items: center; margin-bottom: 1rem; }
.card:nth-child(2) .ic { background: var(--gold-tint); color: var(--gold-deep); }
.card:nth-child(3) .ic { background: rgba(217,119,72,.12); color: var(--spark); }
.card .desc { margin-top: .5rem; color: var(--text-muted); font-size: .95rem; }
.card .card-link { margin-top: 1.1rem; display: inline-flex; align-items: center; gap: .4em; font-weight: 700; font-size: .9rem; color: var(--teal); }
.card .card-link:hover { text-decoration: underline; }

/* ---------- Before/After slider ---------- */
.ba {
  position: relative; border-radius: var(--r-l); overflow: hidden; background: #dfe3df;
  box-shadow: var(--sh-l); aspect-ratio: 16/10; max-height: clamp(280px, 46vh, 480px);
  isolation: isolate; touch-action: none;
}
.ba.frame { aspect-ratio: 16/9; }
.ba-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba .after { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos, 55%)) 0 0); }
.ba .tag {
  position: absolute; top: 14px; z-index: 6; font-size: .68rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
  padding: .42em .7em; border-radius: 8px; color: var(--white); background: rgba(36,38,43,.62); backdrop-filter: blur(4px);
}
.ba .tag.av { left: 14px; }
.ba .tag.ap { right: 14px; background: var(--gold); color: var(--ink); }
.ba .divider { position: absolute; top: 0; bottom: 0; left: var(--pos, 55%); width: 3px; background: var(--white); z-index: 7; transform: translateX(-1.5px); box-shadow: 0 0 0 1px rgba(36,38,43,.14); pointer-events: none; }
.ba .handle {
  position: absolute; top: 50%; left: var(--pos, 55%); z-index: 8; transform: translate(-50%,-50%);
  width: 46px; height: 46px; border-radius: 50%; background: var(--white); box-shadow: var(--sh-m);
  display: grid; place-items: center; color: var(--teal); pointer-events: none;
}
.ba .cap { position: absolute; left: 14px; bottom: 12px; z-index: 6; font-size: .82rem; color: var(--white); font-weight: 500; text-shadow: 0 1px 8px rgba(0,0,0,.5); }
.ba input[type="range"] { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; z-index: 9; }
.ba input[type="range"]:focus-visible { outline: 3px solid var(--white); outline-offset: -6px; border-radius: var(--r-l); }

.ba-teaser-grid { margin-top: clamp(1.75rem, 4vw, 3rem); display: grid; gap: 1rem; max-width: 820px; margin-inline: auto; }

/* ---------- Galerie (rail horizontal) — mêle avant/après cliquables et photos statiques ---------- */
.gallery-rail-wrap { position: relative; margin-top: clamp(1.75rem, 4vw, 3rem); }
.gallery-rail {
  display: flex; gap: .9rem; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: .25rem .1rem .75rem; margin: 0; list-style: none;
  scrollbar-width: none; -ms-overflow-style: none;
}
.gallery-rail::-webkit-scrollbar { display: none; }
.gallery-rail:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; border-radius: var(--r-s); }

.gal-card {
  position: relative; flex: 0 0 auto; width: clamp(190px, 42vw, 260px); aspect-ratio: 1 / 1;
  border-radius: var(--r-m); overflow: hidden; scroll-snap-align: start; background: var(--border);
}
.gal-card > img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s var(--ease); }
.gal-card:not(.gal-ba)::after {
  content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(24,22,18,.28), transparent 45%);
  opacity: 0; transition: opacity .25s; pointer-events: none;
}
.gal-card:not(.gal-ba):hover > img { transform: scale(1.05); }
.gal-card:not(.gal-ba):hover::after { opacity: 1; }

.ba-toggle { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; cursor: pointer; background: var(--border); }
.ba-toggle .ba-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba-toggle .after { opacity: 1; transition: opacity .35s ease; }
.gal-ba.is-before .ba-toggle .after { opacity: 0; }
.ba-toggle-tag {
  position: absolute; left: .7rem; bottom: .7rem; z-index: 3; font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: .4em .8em; border-radius: 8px; color: var(--white); background: rgba(36,38,43,.62); backdrop-filter: blur(4px);
  display: inline-flex; align-items: center; gap: .4em;
}
.gal-ba.is-before .ba-toggle-tag { background: var(--gold); color: var(--ink); }
.ba-toggle-tag .tag-before { display: none; }
.gal-ba.is-before .ba-toggle-tag .tag-after { display: none; }
.gal-ba.is-before .ba-toggle-tag .tag-before { display: inline; }
.ba-toggle:focus-visible { outline: 3px solid var(--white); outline-offset: -6px; border-radius: var(--r-m); }

/* ---------- Pourquoi nous ---------- */
.why-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; margin-top: clamp(1.75rem, 4vw, 3rem); }
@media (min-width: 700px) { .why-grid { grid-template-columns: repeat(2, 1fr); } }
.why-item { display: flex; gap: 1rem; }
.why-item .dash { font-family: var(--font-display); font-weight: 800; color: var(--gold); flex-shrink: 0; font-size: 1.3rem; line-height: 1.5; }
.why-item h3 { margin-bottom: .3rem; font-size: 1.08rem; }
.why-item p { color: var(--text-muted); font-size: .95rem; }

/* ---------- Bouton "Voir sur Instagram" (en-tête de section) — icône seule au repos,
   se déplie au survol/focus pour révéler le texte ---------- */
.ig-follow-btn {
  display: flex; align-items: center; justify-content: flex-end; gap: .55rem; flex-shrink: 0;
  height: 40px; max-width: 40px; padding: 0 .6rem; border-radius: 999px; overflow: hidden;
  background: transparent; border: 1.6px solid var(--border); text-decoration: none;
  transition: max-width .32s cubic-bezier(.4,0,.2,1), border-color .2s;
}
.ig-follow-btn .ig-ic {
  flex-shrink: 0;
  stroke: url(#ig-grad-stroke);
}
.ig-follow-btn .ig-label { font-size: .88rem; font-weight: 700; color: var(--ink); white-space: nowrap; opacity: 0; transition: opacity .15s ease; }
.ig-follow-btn:hover, .ig-follow-btn:focus-visible { max-width: 210px; border-color: var(--ink); }
.ig-follow-btn:hover .ig-label, .ig-follow-btn:focus-visible .ig-label { opacity: 1; transition-delay: .08s; }
.ig-follow-btn:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.on-teal .ig-follow-btn { border-color: rgba(255,255,255,.4); }
.on-teal .ig-follow-btn .ig-label { color: var(--white); }
.on-teal .ig-follow-btn:hover, .on-teal .ig-follow-btn:focus-visible { border-color: var(--white); }

/* ---------- Reels Instagram — rail horizontal, cartes portrait 9:16 ---------- */
.reels-rail-wrap { position: relative; margin-top: clamp(1.75rem, 4vw, 3rem); }
.reels-rail {
  display: flex; gap: .9rem; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: .25rem .1rem .75rem; margin: 0; list-style: none;
  scrollbar-width: none; -ms-overflow-style: none;
}
.reels-rail::-webkit-scrollbar { display: none; }
.reels-rail:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; border-radius: var(--r-s); }

.reel-card { position: relative; flex: 0 0 auto; width: clamp(140px, 36vw, 210px); aspect-ratio: 9 / 16; }
.reel-trigger {
  position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0;
  border-radius: var(--r-m); overflow: hidden; background: var(--border); scroll-snap-align: start;
}
.reel-video { width: 100%; height: 100%; object-fit: cover; display: block; background: var(--border); }
.reel-play-ic {
  position: absolute; inset: 0; margin: auto; width: 50px; height: 50px; border-radius: 50%;
  background: rgba(36,38,43,.6); color: var(--white); display: flex; align-items: center; justify-content: center;
  transition: background .2s, transform .2s;
}
.reel-play-ic svg { margin-left: 2px; }
.reel-trigger:hover .reel-play-ic, .reel-trigger:focus-visible .reel-play-ic { background: var(--teal); transform: scale(1.08); }
.reel-card.is-playing .reel-play-ic { display: none; }
.reel-ig-badge {
  position: absolute; top: .55rem; right: .55rem; z-index: 2; width: 28px; height: 28px; border-radius: 50%;
  background: rgba(36,38,43,.55); color: var(--white); display: flex; align-items: center; justify-content: center;
}
.reel-ig-badge:hover, .reel-ig-badge:focus-visible { background: var(--teal); }

.rail-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 40px; height: 40px; border-radius: 50%; background: var(--surface); border: 1px solid var(--border);
  box-shadow: var(--sh-m); display: flex; align-items: center; justify-content: center; color: var(--ink);
}
.rail-nav:hover { border-color: var(--teal); color: var(--teal); }
.rail-nav.prev { left: -10px; }
.rail-nav.next { right: -10px; }
@media (max-width: 719px) { .rail-nav { display: none; } }

/* ---------- Zone d'intervention ---------- */
.zone-list { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.2rem; }
.zone-list span { background: var(--surface); border: 1px solid var(--border); padding: .45rem .9rem; border-radius: 999px; font-size: .88rem; font-weight: 600; }

/* ---------- Method / stepper (séquence réelle : 4 étapes) ---------- */
.steps { margin-top: clamp(1.75rem, 4vw, 3rem); display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr 1fr; gap: 1.6rem 1.2rem; } }
@media (max-width: 480px) { .steps { grid-template-columns: 1fr; } }
.step .num {
  display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 13px;
  background: var(--ink); color: var(--white); font-family: var(--font-display); font-weight: 800; margin-bottom: .9rem;
}
.step:nth-child(2) .num { background: var(--gold); color: var(--ink); }
.step:nth-child(3) .num { background: var(--teal); }
.step:nth-child(4) .num { background: var(--sage); }
.step h3 { font-size: 1.08rem; }
.step p { margin-top: .4rem; font-size: .92rem; color: var(--text-muted); }

/* ---------- FAQ accordion (details/summary — natif, accessible) ---------- */
.faq-list { margin-top: clamp(1.5rem, 3vw, 2.5rem); display: flex; flex-direction: column; gap: .7rem; max-width: 74ch; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-m); overflow: hidden; }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 1.1rem 1.3rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  font-family: var(--font-display); font-weight: 700; font-size: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .chev { flex-shrink: 0; transition: transform .2s var(--ease); color: var(--teal); }
.faq-item[open] summary .chev { transform: rotate(180deg); }
.faq-item .a { padding: 0 1.3rem 1.2rem; color: var(--text-muted); font-size: .95rem; }

/* ---------- Avis clients (Google, réels) ---------- */
.quotes-head { display: flex; flex-wrap: wrap; align-items: center; gap: .9rem; margin-top: .9rem; }
.quotes-head .g-badge { display: inline-flex; align-items: center; gap: .45em; font-weight: 700; font-size: .95rem; color: var(--text-muted); }
.quotes-head .g-badge svg { flex-shrink: 0; }
.quotes-grid { margin-top: clamp(1.75rem, 4vw, 3rem); display: grid; grid-template-columns: 1fr; gap: 1.1rem; }
@media (min-width: 700px) { .quotes-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .quotes-grid { grid-template-columns: repeat(3, 1fr); } }
.quote-card {
  background: var(--ink); color: rgba(255,255,255,.92); border-radius: var(--r-l);
  padding: 1.6rem 1.5rem; display: flex; flex-direction: column; gap: 1rem;
}
.quote-card p { color: rgba(255,255,255,.9); font-size: .95rem; line-height: 1.55; }
.stars { display: flex; gap: .15rem; }
.stars svg { width: 15px; height: 15px; color: var(--gold); }
.quotes-head .avg { font-weight: 800; font-family: var(--font-display); color: var(--ink); font-size: 1.05rem; }

/* Note Google réelle (4,6 sur 5) — étoiles partiellement remplies, pas de texte "/5" */
.g-link { color: inherit; font: inherit; text-decoration: none; }
.g-link:hover, .g-link:focus-visible { text-decoration: underline; }
.g-rating { position: relative; display: inline-flex; line-height: 0; }
.g-rating .stars-row { display: flex; gap: .15rem; }
.g-rating .stars-row svg { width: 15px; height: 15px; flex-shrink: 0; }
.g-rating .stars-bg svg { color: #DAD5C6; }
.g-rating .stars-fg { position: absolute; inset: 0 auto 0 0; overflow: hidden; white-space: nowrap; }
.g-rating .stars-fg svg { color: var(--gold-deep); }
.quote-card footer { display: flex; align-items: center; gap: .7rem; margin-top: auto; }
.quote-card .av {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  color: var(--white); font-weight: 700; font-family: var(--font-display); font-size: .85rem; flex-shrink: 0;
}
.quote-card b { font-size: .9rem; color: var(--white); }
.quote-card small { display: block; color: rgba(255,255,255,.56); font-size: .78rem; }

/* ---------- Comment ça marche (séquence réelle) ---------- */
/* .steps est défini plus haut (voir "Method / stepper") — réutilisé tel quel ici */

/* ---------- CTA + form section ---------- */
.cta-section { background: var(--teal); color: var(--white); }
.cta-section .wrap { display: grid; gap: clamp(2rem, 5vw, 3.5rem); align-items: start; }
@media (min-width: 940px) { .cta-section .wrap { grid-template-columns: 1fr 1fr; } }
.cta-section .eyebrow { background: rgba(255,255,255,.16); color: var(--white); }
.cta-section h2 { color: var(--white); margin-top: .9rem; }
.cta-section .pts { margin-top: 1.4rem; display: flex; flex-direction: column; gap: .8rem; }
.cta-section .pt { display: flex; gap: .65rem; align-items: flex-start; color: rgba(255,255,255,.92); font-size: .95rem; }
.cta-section .pt svg { flex-shrink: 0; margin-top: 3px; color: var(--gold); }
.cta-coords { margin-top: 2.2rem; padding-top: 1.6rem; border-top: 1px solid rgba(255,255,255,.18); }
.cta-coords ul { margin-top: .9rem; display: flex; flex-direction: column; gap: .6rem; font-size: .92rem; color: rgba(255,255,255,.85); }
.cta-coords a { color: var(--white); text-decoration: underline; text-decoration-color: rgba(255,255,255,.5); text-underline-offset: 2px; }
.cta-coords a:hover, .cta-coords a:focus-visible { text-decoration-color: var(--white); }

.form-card { background: var(--surface); color: var(--ink); border-radius: var(--r-l); padding: clamp(1.35rem, 2.5vw, 1.85rem); box-shadow: var(--sh-l); }
.form-card h3 { font-size: 1.25rem; }
.form-card .sub { font-size: .9rem; color: var(--text-muted); margin: .25rem 0 1.1rem; }
.field { margin-bottom: .7rem; }
.field label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: .3rem; }
.field .opt { font-weight: 400; color: #97a09b; }
.field input, .field select, .field textarea {
  width: 100%; padding: .65em .9em; border: 1.6px solid var(--border); border-radius: 12px;
  background: var(--surface); color: var(--ink); transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(14,124,107,.15);
}
.field textarea { resize: vertical; min-height: 72px; }
.field[data-invalid="true"] input, .field[data-invalid="true"] select, .field[data-invalid="true"] textarea { border-color: #c0392b; }
.field .err { display: none; font-size: .8rem; color: #c0392b; margin-top: .35rem; }
.field[data-invalid="true"] .err { display: block; }
/* Honeypot anti-spam — invisible et non focusable pour un humain, appâtant pour un bot */
.hp-field { position: absolute; left: -9999px; top: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-note { font-size: .8rem; color: var(--text-muted); margin-top: .65rem; display: flex; gap: .45em; align-items: flex-start; }
.form-ok { display: none; text-align: center; padding: 1.6rem .5rem; }
.form-ok.show { display: block; }
.form-ok .ico { width: 56px; height: 56px; border-radius: 50%; background: var(--teal-tint); color: var(--teal); display: grid; place-items: center; margin: 0 auto 1rem; }
.form-ok p { color: var(--text-muted); }
.wa-alt { margin-top: 1.15rem; padding-top: 1rem; border-top: 1px solid var(--border); text-align: center; }
.wa-alt p { font-size: .88rem; color: var(--text-muted); margin-bottom: .6rem; }

/* ---------- Sticky mobile CTA ---------- */
.mobile-cta-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: flex; gap: .6rem;
  padding: .65rem .9rem calc(.65rem + env(safe-area-inset-bottom));
  background: rgba(250,250,248,.97); backdrop-filter: blur(8px); border-top: 1px solid var(--border);
}
.mobile-cta-bar .btn-call { flex: none; width: 52px; padding: 0; }
.mobile-cta-bar .btn-primary { flex: 1; }
@media (min-width: 940px) { .mobile-cta-bar { display: none; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,.72); }
.site-footer .top-row {
  display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 2rem 2.5rem; align-items: start;
  padding-block: clamp(2.75rem, 5vw, 4rem) 1.8rem; border-bottom: 1px solid rgba(255,255,255,.12);
}
.site-footer .logo .wm { color: var(--white); }
.site-footer .brand-desc { color: rgba(255,255,255,.6); font-size: .9rem; margin-top: .9rem; max-width: 34ch; }
.site-footer .social { display: flex; gap: .7rem; margin-top: 1.1rem; }
.site-footer .social a { width: 40px; height: 40px; border: 1px solid rgba(255,255,255,.2); border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.site-footer .social a:hover { border-color: var(--gold); color: var(--gold); }
.site-footer .footer-wa { margin-top: 1.3rem; }
/* .cols n'a plus de mise en page propre : ses 3 enfants deviennent des colonnes directes de la grille .top-row */
.site-footer .cols { display: contents; }
.site-footer .cols h4 { font-family: var(--font-display); color: var(--white); font-size: .95rem; margin-bottom: .8rem; }
.site-footer .cols a, .site-footer .cols address, .site-footer .cols p { font-size: .9rem; color: rgba(255,255,255,.7); line-height: 2; font-style: normal; }
.site-footer .cols a:hover { color: var(--gold); }
.site-footer .bottom { padding-block: 1.4rem calc(1.4rem + var(--extra-bottom, 0px)); display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .8rem; color: rgba(255,255,255,.46); }
.site-footer .bottom ul { display: flex; gap: 1.2rem; flex-wrap: wrap; }
.site-footer .bottom a:hover { color: var(--gold); }
@media (max-width: 899px) {
  .site-footer .top-row { grid-template-columns: 1fr 1fr; gap: 2.2rem 1.5rem; }
  .site-footer .top-row .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .site-footer .top-row { grid-template-columns: 1fr; }
}
@media (max-width: 939px) { .site-footer { --extra-bottom: 12px; } }

/* ---------- Gallery / modal (services page mini-galleries) ---------- */
.mini-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; margin-top: 1.5rem; }
.mini-gallery button { position: relative; padding: 0; border: 0; border-radius: var(--r-m); overflow: hidden; aspect-ratio: 1/1; background: var(--border); }
.mini-gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.mini-gallery button:hover img { transform: scale(1.06); }

.lightbox {
  position: fixed; inset: 0; z-index: 100; background: rgba(24,22,18,.94);
  display: none; align-items: center; justify-content: center; padding: 1.25rem;
}
.lightbox.is-open { display: flex; }
.lightbox-inner { max-width: 1000px; width: 100%; }
.lightbox-inner img { max-height: 78vh; width: 100%; object-fit: contain; border-radius: var(--r-s); }
.lightbox-inner figcaption { color: #E7E2D8; margin-top: .9rem; font-size: .92rem; text-align: center; }
.lightbox-close, .lightbox-prev, .lightbox-next {
  position: fixed; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.25); color: var(--white);
  width: 46px; height: 46px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
}
.lightbox-close { top: 1.25rem; right: 1.25rem; }
.lightbox-prev { left: 1.25rem; top: 50%; transform: translateY(-50%); display: none; }
.lightbox-next { right: 1.25rem; top: 50%; transform: translateY(-50%); display: none; }
@media (min-width: 720px) { .lightbox-prev, .lightbox-next { display: flex; } }
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { background: rgba(255,255,255,.2); }

/* ---------- Cookie banner (CNIL — 3 actions au même niveau) ---------- */
.cookie-banner {
  position: fixed; left: .75rem; right: .75rem; bottom: .75rem; z-index: 200; max-width: 640px; margin-inline: auto;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-m); box-shadow: var(--sh-l);
  padding: 1.25rem; display: none;
}
.cookie-banner.is-visible { display: block; }
.cookie-banner p { font-size: .88rem; color: var(--text-muted); margin-bottom: 1rem; }
.cookie-banner a { color: var(--teal); font-weight: 600; text-decoration: underline; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.cookie-actions .btn { flex: 1 1 auto; min-width: 120px; }
.cookie-modal { position: fixed; inset: 0; z-index: 210; background: rgba(24,22,18,.6); display: none; align-items: center; justify-content: center; padding: 1rem; }
.cookie-modal.is-open { display: flex; }
.cookie-modal-panel { background: var(--surface); border-radius: var(--r-m); max-width: 520px; width: 100%; max-height: 90vh; overflow-y: auto; padding: 1.75rem; }
.cookie-modal-panel h2 { font-size: 1.3rem; margin-bottom: 1rem; }
.cookie-cat { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .9rem 0; border-bottom: 1px solid var(--border); }
.cookie-cat p { font-size: .84rem; color: var(--text-muted); margin-top: .2rem; }
.cookie-detected { margin-top: 1.1rem; padding-top: 1rem; border-top: 1px solid var(--border); }
.cookie-detected h3 { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--text-muted); margin-bottom: .6rem; }
.cookie-detected ul { display: flex; flex-direction: column; gap: .45rem; max-height: 140px; overflow-y: auto; list-style: none; padding: 0; margin: 0; }
.cookie-detected li { display: flex; justify-content: space-between; align-items: baseline; gap: .75rem; font-size: .8rem; }
.cookie-detected li code { font-family: monospace; background: var(--bg); border: 1px solid var(--border); border-radius: 6px; padding: .1rem .4rem; flex-shrink: 0; color: var(--ink); }
.cookie-detected li span { color: var(--text-muted); text-align: right; }
.cookie-detected-empty { color: var(--text-muted); font-style: italic; justify-content: flex-start !important; }
.switch { position: relative; display: inline-block; width: 46px; height: 26px; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch .track { position: absolute; inset: 0; background: var(--border); border-radius: 999px; transition: background .15s; }
.switch .track::before { content: ""; position: absolute; width: 20px; height: 20px; left: 3px; top: 3px; background: var(--white); border-radius: 50%; transition: transform .15s; box-shadow: var(--sh-s); }
.switch input:checked + .track { background: var(--teal); }
.switch input:checked + .track::before { transform: translateX(20px); }
.switch input:disabled + .track { background: var(--text-muted); opacity: .6; }
.switch input:focus-visible + .track { outline: 3px solid var(--teal); outline-offset: 2px; }
.cookie-modal-actions { display: flex; gap: .6rem; margin-top: 1.5rem; flex-wrap: wrap; }

/* ---------- Reveal — un seul moment orchestré (hero), pas de fade partout ---------- */
.rv { opacity: 0; transform: translateY(14px); transition: opacity .55s var(--ease), transform .55s var(--ease); }
.rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1; transform: none; } }

/* ---------- Utility ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 1rem; top: -60px; background: var(--ink); color: var(--white); padding: .75rem 1.1rem; border-radius: var(--r-s); z-index: 300; transition: top .15s ease; }
.skip-link:focus { top: 1rem; }
.bg-alt { background: var(--gold-tint); }
.bg-surface { background: var(--surface); }

/* ---------- Legal pages ---------- */
/* ---------- Contact page layout ---------- */
.contact-grid { display: grid; gap: 2.5rem; }
.contact-grid .contact-form-col { order: 1; }
.contact-grid .contact-info-col { order: 2; }
@media (min-width: 900px) {
  .contact-grid { grid-template-columns: 1.1fr 0.9fr; align-items: start; }
}

.legal-page main { padding: clamp(2rem, 5vw, 3.5rem) 0 4rem; }
.legal-content { max-width: 760px; margin-inline: auto; }
.legal-content h2 { margin-top: 2.3rem; margin-bottom: .9rem; font-size: 1.3rem; }
.legal-content h2:first-child { margin-top: 0; }
.legal-content p, .legal-content li { color: var(--text-muted); font-size: .98rem; margin-bottom: .9rem; }
.legal-content ul { padding-left: 1.3rem; list-style: disc; }
.legal-content strong { color: var(--ink); }
.legal-updated { font-size: .85rem; color: var(--text-muted); margin-bottom: 2rem; }
.tbd { background: #FBEFE0; color: #7A4E11; padding: .1rem .4rem; border-radius: 3px; font-weight: 700; font-size: .9em; }

/* ---------- Service detail blocks (services.html) ---------- */
.service-block { padding-block: clamp(3rem, 6vw, 5rem); }
.service-block:nth-child(even) { background: var(--surface); }
.service-block .head-row { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 900px) { .service-block .head-row { grid-template-columns: 1fr 1fr; gap: 3rem; } }
.service-block .num-tag { font-family: var(--font-display); font-weight: 800; font-size: 1rem; color: var(--gold-deep); }
.service-block ul.points { margin-top: 1.1rem; display: flex; flex-direction: column; gap: .55rem; }
.service-block ul.points li { display: flex; gap: .6rem; font-size: .95rem; color: var(--text-muted); }
.service-block ul.points li svg { flex-shrink: 0; color: var(--teal); width: 18px; height: 18px; margin-top: 3px; }
.service-block .ba-wrap { margin-top: 1.5rem; }
