/* =========================================================================
   QUIZZ FACTORY — feuille de style unique (site v4)
   Repris du design v3 « Énergie Pop » : mêmes polices, espacements, rayons,
   palette. Fond blanc, bandes lavande, hero et bande finale sur fond encre.
   ========================================================================= */

/* ----- Jetons ----------------------------------------------------------- */
:root {
  --ink:      #241B3A;
  --ink-2:    #4A4163;
  --muted:    #6E6688;
  --blanc:    #FFFFFF;
  --lavande:  #F7F5FB;
  --card:     #FFFFFF;

  --coral:       #FF5A5F;   /* accents décoratifs */
  --coral-d:     #F0364E;
  --coral-btn:   #D42A3A;   /* fond des boutons : blanc dessus ≥ 4,5:1 */
  --coral-btn-h: #B8202F;
  --coral-texte: #C8283A;   /* texte corail sur fond clair */
  --yellow:   #FFC93C;
  --teal:     #15C7A8;
  --teal-d:   #0B7D69;
  --violet:   #7B61FF;
  --pink:     #FF5DA2;
  --blue:     #2FB6FF;

  --line:     #ECE7F3;
  --line-2:   #DDD5E8;

  --shadow-sm: 0 2px 8px rgba(36,27,58,.06);
  --shadow:    0 14px 34px rgba(36,27,58,.10);
  --shadow-lg: 0 28px 60px rgba(36,27,58,.16);
  --ring:      0 0 0 4px rgba(212,42,58,.18);

  --r-sm: 12px;
  --r:    18px;
  --r-lg: 28px;
  --r-xl: 40px;
  --r-pill: 999px;

  --font-display: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body:    "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --maxw: 1180px;
  --gut: clamp(16px, 5vw, 48px);
  --header-h: 76px;
}

/* ----- Base ------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
body {
  font-family: var(--font-body); color: var(--ink); background: var(--blanc);
  line-height: 1.6; font-size: 17px; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video, picture { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
ul { list-style: none; padding: 0; }
:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; border-radius: 6px; }
.icone { width: 1.2em; height: 1.2em; flex: none; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ----- Typographie ------------------------------------------------------ */
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.1; font-weight: 800; letter-spacing: -.02em; color: var(--ink); overflow-wrap: break-word; hyphens: auto; }
h1 { font-size: clamp(2.2rem, 5.6vw, 4.1rem); }
h2 { font-size: clamp(1.8rem, 3.8vw, 2.8rem); }
h3 { font-size: clamp(1.2rem, 2.1vw, 1.5rem); font-weight: 700; }
h4 { font-size: 1.1rem; font-weight: 700; }
p  { color: var(--ink-2); }
strong { color: var(--ink); font-weight: 700; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .5em;
  font-family: var(--font-display); font-weight: 700; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--coral-texte);
}
.eyebrow::before { content: ""; width: 26px; height: 3px; border-radius: 3px; background: currentColor; }
.lead { font-size: clamp(1.06rem, 1.6vw, 1.25rem); color: var(--ink-2); }
.text-grad { background: linear-gradient(100deg, var(--yellow) 0%, var(--coral) 45%, var(--pink) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.prose > * + * { margin-top: 1em; }
.prose h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose ul { list-style: disc; padding-left: 1.3em; color: var(--ink-2); }
.prose li + li { margin-top: .35em; }
.prose a, .lien { color: var(--coral-texte); text-decoration: underline; text-underline-offset: 3px; }

/* ----- Mise en page ----------------------------------------------------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gut); }
.wrap--etroit { max-width: 820px; }
.section { padding-block: clamp(64px, 9vw, 112px); position: relative; }
.section--tight { padding-block: clamp(44px, 6vw, 76px); }
.section--lavande { background: var(--lavande); }
.section--ink {
  background:
    radial-gradient(900px 500px at 12% -10%, rgba(123,97,255,.35), transparent 60%),
    radial-gradient(800px 600px at 100% 0%, rgba(255,93,162,.28), transparent 55%),
    var(--ink);
  color: #fff; overflow: hidden;
}
.section--ink h1, .section--ink h2, .section--ink h3, .section--ink h4, .section--ink strong { color: #fff; }
.section--ink p { color: rgba(255,255,255,.84); }
.section--ink .eyebrow { color: var(--yellow); }
.center { text-align: center; }
.section-head { max-width: 760px; margin-inline: auto; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head.center { text-align: center; }
.section-head .lead { margin-top: 14px; }
.section-head h2 { margin-top: 10px; }
.section-foot { margin-top: clamp(28px, 4vw, 44px); text-align: center; }
.stack > * + * { margin-top: 1rem; }

/* ----- Boutons ---------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  font-family: var(--font-display); font-weight: 700; font-size: 1rem; line-height: 1.2;
  padding: .85em 1.5em; border-radius: var(--r-pill); text-align: center;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
}
.btn--primary { background: var(--coral-btn); color: #fff; box-shadow: 0 12px 24px rgba(212,42,58,.28); }
.btn--primary:hover { background: var(--coral-btn-h); transform: translateY(-3px); box-shadow: 0 18px 32px rgba(212,42,58,.36); }
.btn--ink { background: var(--ink); color: #fff; }
.btn--ink:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--line-2); }
.btn--ghost:hover { box-shadow: inset 0 0 0 2px var(--ink); transform: translateY(-3px); }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.btn--outline-light { background: transparent; color: #fff; box-shadow: inset 0 0 0 2px rgba(255,255,255,.55); }
.btn--outline-light:hover { box-shadow: inset 0 0 0 2px #fff; transform: translateY(-3px); }
.btn--lg { font-size: 1.06rem; padding: 1em 1.8em; }
.btn--block { width: 100%; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.center .actions, .actions--center { justify-content: center; }
.link-arrow { display: inline-flex; align-items: center; gap: .45em; font-family: var(--font-display); font-weight: 700; color: var(--coral-texte); margin-top: 22px; }
.link-arrow .icone { transition: transform .2s ease; }
.link-arrow:hover .icone { transform: translateX(5px); }
.section--ink .link-arrow { color: var(--yellow); }

/* ----- En-tête ---------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.9); backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .25s ease, box-shadow .25s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: var(--shadow-sm); }
.nav { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 1rem; }
.brand { display: inline-flex; align-items: center; flex: none; }
.brand img { width: 58px; height: 58px; }
.nav-main { flex: 1; display: flex; justify-content: center; }
.nav-links { display: flex; align-items: center; gap: .2rem; }
.nav-item { position: relative; }
.nav-trigger, .nav-link {
  display: inline-flex; align-items: center; gap: .3em; white-space: nowrap;
  font-family: var(--font-display); font-weight: 600; font-size: .96rem;
  padding: .55em .85em; border-radius: var(--r-pill); color: var(--ink-2);
  transition: color .15s ease, background .15s ease;
}
.nav-trigger .icone { width: 16px; height: 16px; transition: transform .2s ease; }
.nav-trigger[aria-expanded="true"] .icone { transform: rotate(180deg); }
.nav-trigger:hover, .nav-link:hover, .nav-trigger[aria-expanded="true"] { color: var(--ink); background: rgba(36,27,58,.05); }
.nav-trigger.is-active, .nav-link.is-active { color: var(--coral-texte); background: rgba(212,42,58,.08); }
.nav-panel {
  position: absolute; top: calc(100% + 12px); left: 50%; transform: translate(-50%, -6px);
  width: min(720px, 92vw); padding: 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.nav-panel--etroit { width: min(400px, 92vw); }
.nav-item.is-open .nav-panel { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition: opacity .18s ease, transform .18s ease, visibility 0s; }
.nav-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.nav-card { display: block; height: 100%; padding: 14px 14px 12px; border-radius: var(--r-sm); background: var(--lavande); transition: background .15s, transform .15s; }
.nav-card:hover { background: #EFEBF8; transform: translateY(-2px); }
.nav-card strong { display: block; font-family: var(--font-display); font-size: .98rem; margin-top: 8px; }
.nav-card small { display: flex; align-items: center; gap: .3em; color: var(--muted); font-size: .84rem; line-height: 1.35; margin-top: 2px; }
.nav-card--fonce { background: var(--ink); }
.nav-card--fonce:hover { background: #33284f; }
.nav-card--fonce strong { color: #fff; margin-top: 0; }
.nav-card--fonce small { color: rgba(255,255,255,.78); }
.nav-card--fonce .icone { width: 14px; height: 14px; }
.nav-card[aria-current="page"] { box-shadow: inset 0 0 0 2px var(--coral-btn); }
.nav-list { display: grid; gap: 4px; }
.nav-row { display: flex; gap: 12px; align-items: center; padding: 10px; border-radius: var(--r-sm); }
.nav-row:hover, .nav-row[aria-current="page"] { background: var(--lavande); }
.nav-row strong { display: block; font-family: var(--font-display); font-size: .98rem; }
.nav-row small { display: block; color: var(--muted); font-size: .84rem; line-height: 1.35; }
.pastille { display: inline-block; width: 14px; height: 14px; border-radius: 5px; flex: none; }
.pastille--violet { background: var(--violet); } .pastille--pink { background: var(--pink); } .pastille--teal { background: var(--teal); }
.pastille--yellow { background: var(--yellow); } .pastille--blue { background: var(--blue); } .pastille--coral { background: var(--coral); }
.nav-cta { display: flex; align-items: center; gap: .6rem; flex: none; }
.nav-toggle { display: none; width: 46px; height: 46px; border-radius: 12px; align-items: center; justify-content: center; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { content: ""; display: block; width: 22px; height: 2.5px; background: var(--ink); border-radius: 3px; transition: transform .25s ease; position: relative; }
.nav-toggle span::before { position: absolute; top: -7px; }
.nav-toggle span::after { position: absolute; top: 7px; }
body.nav-open .nav-toggle span { background: transparent; }
body.nav-open .nav-toggle span::before { transform: translateY(7px) rotate(45deg); }
body.nav-open .nav-toggle span::after { transform: translateY(-7px) rotate(-45deg); }
.menu-mobile { position: fixed; inset: var(--header-h) 0 0 0; background: #fff; overflow-y: auto; padding-bottom: 110px; border-top: 1px solid var(--line); }
.menu-mobile__titre { font-family: var(--font-display); font-weight: 700; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 22px 0 6px; }
.menu-mobile a { display: flex; align-items: center; gap: 12px; padding: 13px 0; font-family: var(--font-display); font-weight: 600; font-size: 1.08rem; border-bottom: 1px solid var(--line); }
.menu-mobile__cta { position: fixed; left: 0; right: 0; bottom: 0; padding: 14px var(--gut) 18px; background: rgba(255,255,255,.96); border-top: 1px solid var(--line); }
.menu-mobile__cta a { border: 0; color: #fff; padding: 1em 1.8em; justify-content: center; }
body.nav-open { overflow: hidden; }

/* ----- Hero (toujours sur fond encre) ----------------------------------- */
.hero { padding-block: clamp(48px, 7vw, 96px) clamp(56px, 8vw, 104px); position: relative; }
.hero--compact { padding-block: clamp(44px, 6vw, 76px); text-align: center; }
.hero--compact .lead { max-width: 60ch; margin-inline: auto; }
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero h1 { margin-top: 16px; font-size: clamp(2.2rem, 4.4vw, 3.5rem); }
.hero--compact h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); }
.hero .lead { margin-top: 20px; max-width: 40ch; }
.hero--compact .lead { max-width: 60ch; }
.hero .actions { margin-top: 32px; }
.hero__visual { position: relative; }
.hero__visual picture, .hero__visual img { border-radius: var(--r-lg); box-shadow: 0 30px 70px rgba(0,0,0,.35); }
.hero__visual img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.hero__badge {
  position: absolute; left: -14px; bottom: -20px; background: #fff; color: var(--ink); border-radius: var(--r); padding: 12px 16px;
  box-shadow: var(--shadow); display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: .95rem;
}
.hero__badge .etoiles { color: #E0A400; letter-spacing: 1px; font-size: .8rem; }
.hero__badge small { display: block; font-family: var(--font-body); font-weight: 500; color: var(--muted); font-size: .8rem; }
a.hero__badge { text-decoration: none; transition: transform .2s ease; }
a.hero__badge:hover { transform: translateY(-2px); }
.hero__note { display: flex; align-items: center; gap: 10px; }
.hero__note--fb { padding-left: 12px; border-left: 1px solid var(--line); }
.hero__note small { white-space: nowrap; }
.hero__note .logo-avis .icone { width: 26px; height: 26px; }
/* Logos Google et Facebook à côté des notes */
.logo-avis { display: inline-flex; vertical-align: middle; flex: none; }
.logo-avis--facebook { color: #1877F2; }
.hero .hero__exergue { margin-top: 20px; max-width: 46ch; font-family: var(--font-display); font-weight: 700; font-size: clamp(1.1rem, 2vw, 1.35rem); line-height: 1.45; color: var(--yellow); }
.hero--compact .hero__exergue { max-width: 58ch; margin-inline: auto; }
/* Grands badges des notes (haut de la page des avis) */
.badges-avis { display: flex; justify-content: center; flex-wrap: wrap; gap: 16px; margin-top: 32px; }
.badge-avis { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 230px; padding: 22px 30px; background: #fff; color: var(--ink); border-radius: var(--r-lg); box-shadow: var(--shadow); text-decoration: none; transition: transform .2s ease; }
.badge-avis:hover { transform: translateY(-3px); }
.badge-avis .logo-avis .icone { width: 36px; height: 36px; margin-bottom: 6px; }
.badge-avis__label { font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.badge-avis__chiffre { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.3rem, 5vw, 3.1rem); line-height: 1.05; }
.badge-avis__chiffre small { font-size: .45em; color: var(--muted); }
.badge-avis .etoiles { font-size: 1.15rem; }
.badge-avis__texte { font-size: .9rem; font-weight: 600; color: var(--muted); }
.crumbs { font-size: .88rem; font-family: var(--font-display); font-weight: 600; color: rgba(255,255,255,.65); }
.crumbs a { color: rgba(255,255,255,.85); }
.crumbs a:hover { color: #fff; }

/* ----- Cartes ----------------------------------------------------------- */
.grid { display: grid; gap: clamp(18px, 2.5vw, 28px); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--5 { grid-template-columns: repeat(6, 1fr); }
.grid--5 > * { grid-column: span 2; }
.grid--5 > :nth-child(4) { grid-column: 2 / span 2; }
.card {
  display: block; background: var(--card); border-radius: var(--r-lg); padding: 30px;
  box-shadow: var(--shadow-sm); border: 1px solid var(--line); transition: transform .2s ease, box-shadow .2s ease; height: 100%;
}
a.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card h3 { margin-bottom: 8px; }
.card p { font-size: .98rem; }
.card .link-arrow { margin-top: 14px; font-size: .95rem; }
.ico { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 18px; color: #fff; }
.ico .icone { width: 28px; height: 28px; }
.ico--sm { width: 40px; height: 40px; border-radius: 12px; margin: 0; }
.ico--sm .icone { width: 20px; height: 20px; }
.ico--coral  { background: linear-gradient(140deg, #FF7A6E, var(--coral-btn)); }
.ico--yellow { background: linear-gradient(140deg, #FFD86B, var(--yellow)); color: var(--ink); }
.ico--teal   { background: linear-gradient(140deg, #4FE0C5, #0FA98E); }
.ico--violet { background: linear-gradient(140deg, #9D86FF, var(--violet)); }
.ico--pink   { background: linear-gradient(140deg, #FF8AC0, #E8448C); }
.ico--blue   { background: linear-gradient(140deg, #74CEFF, #1A8FD0); }
.card--public { text-align: left; }
.card--public .pastille { width: 18px; height: 18px; border-radius: 6px; margin-bottom: 16px; }

.tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.tag { display: inline-flex; align-items: center; gap: .4em; padding: .45em .95em; border-radius: var(--r-pill); background: #fff; border: 1px solid var(--line-2); font-family: var(--font-display); font-weight: 600; font-size: .88rem; color: var(--ink-2); }

/* ----- Texte + image ---------------------------------------------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.split + .split { margin-top: clamp(56px, 8vw, 96px); }
.split--rev .split__media { order: 2; }
.split__media img { width: 100%; border-radius: var(--r-lg); box-shadow: var(--shadow); aspect-ratio: 4 / 3; object-fit: cover; }
.split__copy h2 { margin-top: 10px; }
.split__copy .lead, .split__copy .prose { margin-top: 16px; }

/* ----- Étapes ----------------------------------------------------------- */
.steps { display: grid; gap: 22px; margin-top: 28px; }
.step { display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: start; }
.step__n { width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: 1.2rem; color: #fff; background: var(--ink); }
.step:nth-child(4n+1) .step__n { background: var(--coral-btn); }
.step:nth-child(4n+2) .step__n { background: var(--yellow); color: var(--ink); }
.step:nth-child(4n+3) .step__n { background: #0FA98E; }
.step:nth-child(4n+4) .step__n { background: var(--violet); }
.step h3 { margin-bottom: 4px; font-size: 1.2rem; }

/* ----- Chiffres --------------------------------------------------------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat .num { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.1rem, 4.6vw, 3.3rem); line-height: 1; white-space: nowrap; background: linear-gradient(120deg, var(--yellow), var(--coral)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat p { margin-top: 8px; font-weight: 600; }

/* ----- Témoignages ------------------------------------------------------ */
.quotes { position: relative; max-width: 900px; margin-inline: auto; }
.quote-viewport { overflow: hidden; border-radius: var(--r-lg); }
.quote-track { display: flex; transition: transform .5s ease; }
.quote { flex: 0 0 100%; padding: clamp(28px, 4vw, 48px); background: #fff; border-radius: var(--r-lg); border: 1px solid var(--line); text-align: center; }
.quote blockquote { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.15rem, 2.4vw, 1.55rem); line-height: 1.4; color: var(--ink); margin: 14px auto 18px; max-width: 34ch; }
.etoiles { color: #E0A400; letter-spacing: 3px; }
.quote figcaption, .quote-card figcaption { color: var(--muted); font-weight: 600; font-size: .95rem; }
.quote figcaption strong, .quote-card figcaption strong { color: var(--ink); }
.quote-dots { display: flex; justify-content: center; gap: 6px; margin-top: 18px; }
.quote-dots button { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; }
.quote-dots button::before { content: ""; width: 11px; height: 11px; border-radius: 50%; background: var(--line-2); transition: background .2s, transform .2s; }
.quote-dots button[aria-current="true"]::before { background: var(--coral-btn); transform: scale(1.25); }
.quote-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; box-shadow: var(--shadow-sm); height: 100%; display: flex; flex-direction: column; }
.quote-card blockquote { margin: 12px 0 16px; color: var(--ink); font-weight: 500; flex: 1; }
/* Passages en gras des avis : couleur des boutons d'action, pour les parcourir d'un coup d'œil */
.quote blockquote strong, .quote-card blockquote strong { color: var(--coral-btn); }
.avis-note { margin-top: 18px; text-align: center; color: var(--muted); font-weight: 600; font-size: .95rem; }
.avis-note > span { display: inline-block; }
.avis-note__sep { margin-inline: .35em; }
.avis-note .logo-avis .icone { width: 18px; height: 18px; margin-right: 2px; }
.quote-card__source { display: block; margin-bottom: 2px; }
.quote-card__source .icone { width: 22px; height: 22px; }
/* Mur d'avis : colonnes de hauteurs libres, pour des citations de longueurs très différentes */
.quote-mur { columns: 3 300px; column-gap: 24px; }
.avis-note + .quote-mur { margin-top: 28px; }
.quote-mur .quote-card { height: auto; break-inside: avoid; margin-bottom: 24px; }

/* ----- Logos ------------------------------------------------------------ */
.logos { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 14px; }
.logo-tile { background: #fff; border: 1px solid var(--line); border-radius: var(--r-sm); aspect-ratio: 16 / 9; display: grid; place-items: center; padding: 12px; }
.logo-tile img { max-height: 100%; width: auto; max-width: 100%; object-fit: contain; filter: grayscale(1); opacity: .75; transition: filter .2s, opacity .2s; }
.logo-tile:hover img { filter: none; opacity: 1; }

/* ----- Galerie ---------------------------------------------------------- */
.filtres { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 28px; }
.filtres button { padding: .5em 1.05em; border-radius: var(--r-pill); border: 1.5px solid var(--line-2); font-family: var(--font-display); font-weight: 600; font-size: .9rem; color: var(--ink-2); background: #fff; }
.filtres button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gallery figure { position: relative; border-radius: var(--r); overflow: hidden; background: var(--lavande); }
.gallery figure[hidden] { display: none; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .35s ease; }
.gallery figure:hover img { transform: scale(1.03); }
.gallery figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 14px 12px; color: #fff; font-family: var(--font-display); font-weight: 600; font-size: .9rem; background: linear-gradient(180deg, transparent, rgba(20,16,40,.78)); }

/* ----- FAQ -------------------------------------------------------------- */
.faq { max-width: 820px; margin-inline: auto; }
.faq__item { border-bottom: 1px solid var(--line-2); }
.faq__q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; text-align: left; padding: 22px 4px; font-family: var(--font-display); font-weight: 700; font-size: 1.08rem; color: var(--ink); }
.faq__q .pm { width: 30px; height: 30px; flex: none; border-radius: 50%; background: rgba(212,42,58,.1); color: var(--coral-texte); display: grid; place-items: center; font-size: 1.2rem; transition: transform .25s ease, background .2s; }
.faq__item.open .pm { transform: rotate(45deg); background: var(--coral-btn); color: #fff; }
.faq__a { overflow: hidden; }
.js .faq__a { max-height: 0; transition: max-height .3s ease; }
.faq__a > div { padding: 0 4px 22px; color: var(--ink-2); }
.faq__a > div > * + * { margin-top: .7em; }

/* ----- Formules --------------------------------------------------------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.plan { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 32px; display: flex; flex-direction: column; box-shadow: var(--shadow-sm); position: relative; }
.plan.is-featured { border: 2px solid var(--coral-btn); box-shadow: var(--shadow); }
.plan__badge { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: var(--coral-btn); color: #fff; font-family: var(--font-display); font-weight: 700; font-size: .76rem; letter-spacing: .06em; text-transform: uppercase; padding: .4em 1em; border-radius: var(--r-pill); white-space: nowrap; }
.plan h3 { font-size: 1.35rem; }
.plan__pour { font-family: var(--font-display); font-weight: 700; font-size: 1rem; color: var(--coral-texte); margin: 6px 0 16px; }
.plan ul { display: grid; gap: 12px; margin-bottom: 26px; }
.plan li { display: flex; gap: 10px; align-items: flex-start; color: var(--ink-2); font-size: .98rem; }
.plan li .icone { width: 20px; height: 20px; color: #0FA98E; margin-top: 2px; }
.plan .btn { margin-top: auto; }
.note { margin-top: 24px; text-align: center; color: var(--muted); font-size: .92rem; }

/* ----- Agenda ----------------------------------------------------------- */
.agenda { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.agenda__item { display: flex; gap: 14px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 14px; box-shadow: var(--shadow-sm); }
.agenda__date { flex: none; width: 60px; text-align: center; border-radius: 12px; background: var(--coral-btn); color: #fff; padding: 8px 0; font-family: var(--font-display); line-height: 1.05; }
.agenda__date b { display: block; font-size: 1.5rem; font-weight: 800; }
.agenda__date span { font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.agenda__item strong { display: block; font-family: var(--font-display); }
.agenda__item small { color: var(--muted); font-size: .9rem; }
.agenda__item a { color: var(--coral-texte); font-weight: 600; font-size: .9rem; }

/* ----- Formulaire de contact -------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
.form { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(22px, 4vw, 40px); box-shadow: var(--shadow-sm); }
.field { margin-bottom: 18px; }
.field label, .field legend { display: block; font-family: var(--font-display); font-weight: 600; font-size: .92rem; margin-bottom: 7px; color: var(--ink); }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; border-radius: 12px; border: 1.5px solid var(--line-2); background: #fff; font: inherit; color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--coral-btn); box-shadow: var(--ring); }
.field textarea { min-height: 130px; resize: vertical; }
.field [aria-invalid="true"] { border-color: var(--coral-btn); }
.field .erreur { display: block; color: var(--coral-texte); font-size: .86rem; font-weight: 600; margin-top: 6px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; color: var(--ink-2); }
.check input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--coral-btn); }
.piege { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: .85rem; color: var(--muted); margin-top: 12px; }
.alerte { padding: 14px 18px; border-radius: 12px; font-weight: 600; margin-bottom: 18px; background: rgba(212,42,58,.08); color: var(--coral-texte); }
.info-list { display: grid; gap: 14px; }
.info-item { display: flex; gap: 14px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 18px; box-shadow: var(--shadow-sm); }
.info-item h3 { font-size: 1rem; margin-bottom: 2px; }
.info-item a, .info-item p { color: var(--ink-2); font-size: .97rem; }
.info-item a:hover { color: var(--coral-texte); }

/* ----- À fournir -------------------------------------------------------- */
.a-fournir { display: inline-block; padding: .1em .55em; border-radius: 6px; background: #FFF1B8; color: #6B4E00; border: 1px dashed #C99A00; font-size: .9em; font-weight: 600; }

/* ----- Pied de page ----------------------------------------------------- */
.site-footer { background: #1A1430; color: rgba(255,255,255,.74); padding-top: clamp(56px, 7vw, 80px); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 36px; padding-bottom: 48px; }
.site-footer .brand img { width: 72px; height: 72px; margin-bottom: 16px; }
.site-footer p { color: rgba(255,255,255,.68); font-size: .95rem; max-width: 34ch; }
.footer-titre { color: #fff !important; font-family: var(--font-display); font-weight: 700; font-size: .9rem; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 14px; }
.footer-col { display: flex; flex-direction: column; align-items: flex-start; }
.footer-col a, .footer-col span { padding: 5px 0; color: rgba(255,255,255,.76); font-size: .96rem; }
.footer-col a:hover { color: #fff; }
.footer-col .footer-devis { margin-top: 14px; padding: .75em 1.3em; color: #fff; font-size: .95rem; }
.socials { display: flex; gap: 12px; margin-top: 18px; }
.socials a { width: 42px; height: 42px; border-radius: 12px; background: rgba(255,255,255,.08); display: grid; place-items: center; color: #fff; transition: background .2s, transform .2s; }
.socials a:hover { background: var(--coral-btn); transform: translateY(-3px); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-block: 24px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .88rem; color: rgba(255,255,255,.62); }
.footer-bottom a { color: rgba(255,255,255,.75); }
.footer-bottom a:hover { color: #fff; }

/* ----- Apparition au défilement ------------------------------------------ */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }

/* ----- Divers ----------------------------------------------------------- */
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; z-index: 200; }
.skip-link:focus { left: 12px; }

/* ----- Responsive ------------------------------------------------------- */
@media (max-width: 1200px) {
  .nav-cta .btn--ghost { display: none; }
}
@media (max-width: 980px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { max-width: 560px; }
  .split, .contact-grid { grid-template-columns: 1fr; }
  .split--rev .split__media { order: 0; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3, .grid--5 { grid-template-columns: repeat(2, 1fr); }
  .grid--5 > *, .grid--5 > :nth-child(4) { grid-column: auto; }
  .plans { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 32px 16px; }
}
@media (max-width: 900px) {
  .nav-main, .nav-cta .btn--primary { display: none; }
  .nav-toggle { display: inline-flex; }
}
@media (max-width: 640px) {
  .grid--2, .grid--3, .grid--5 { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
}
@media (max-width: 540px) {
  body { font-size: 16px; }
  .grid--4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .actions .btn { width: 100%; }
  .hero__badge { left: 10px; }
  .hero__note { gap: 8px; }
  .hero__note .logo-avis .icone { width: 22px; height: 22px; }
  .badges-avis { flex-wrap: nowrap; gap: 10px; }
  .badge-avis { flex: 1 1 0; min-width: 0; padding: 16px 10px; }
  .badge-avis__label { font-size: .68rem; }
  .badge-avis__texte { font-size: .8rem; text-align: center; }
}
.cta__texte { max-width: 46ch; margin: 16px auto 0; }
.hero h1 em { font-style: normal; background: linear-gradient(100deg, var(--yellow) 0%, var(--coral) 45%, var(--pink) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.split__copy h3.split__titre { font-size: clamp(1.5rem, 2.8vw, 2.1rem); font-weight: 800; margin-top: 10px; }
.contact-appel { margin-top: 18px; background: var(--ink); color: #fff; border: 0; }
.contact-appel h3 { color: #fff; }
.contact-appel p { color: rgba(255,255,255,.82); margin-bottom: 16px; }
/* Le flou d'arrière-plan crée un bloc conteneur : on le retire quand le menu mobile, en position fixe, est ouvert. */
body.nav-open .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: #fff; }
.field label.check { font-family: var(--font-body); font-weight: 400; font-size: .92rem; color: var(--ink-2); }

/* ----- Kit médias (/logos/) --------------------------------------------- */
.kit-avis { display: flex; gap: 14px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--coral-btn); border-radius: var(--r); padding: 18px 20px; margin-bottom: 32px; box-shadow: var(--shadow-sm); }
.kit-grille { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; max-width: 1000px; margin-inline: auto; }
.kit-avis { max-width: 1000px; margin-inline: auto; }
.kit-avis .ico { flex: none; }
.kit-carte { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; }
.kit-apercu { aspect-ratio: 16 / 10; display: grid; place-items: center; padding: 24px; background: repeating-conic-gradient(#EFEBF8 0% 25%, #fff 0% 50%) 0 0 / 20px 20px; }
.kit-apercu img { max-height: 100%; width: auto; object-fit: contain; filter: drop-shadow(0 10px 20px rgba(36,27,58,.18)); }
.kit-corps { padding: 20px 22px 22px; }
.kit-corps h2 { font-size: 1.3rem; margin-bottom: 14px; }
.kit-variantes { display: grid; gap: 10px; }
.kit-variante { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--lavande); }
.kit-format { flex: none; font-family: var(--font-display); font-weight: 700; font-size: .72rem; letter-spacing: .06em; padding: 3px 8px; border-radius: 6px; background: var(--ink); color: #fff; }
.kit-format--jpg { background: #6B4E00; }
.kit-libelle { flex: 1; min-width: 0; line-height: 1.3; }
.kit-libelle strong { display: block; font-size: .92rem; }
.kit-libelle small { color: var(--muted); font-size: .82rem; }
.kit-telecharger { flex: none; padding: .55em 1em; font-size: .85rem; box-shadow: none; }
.kit-telecharger .kit-fleche { transform: rotate(90deg); width: 1em; height: 1em; }
.kit-conseils { max-width: 760px; margin: 48px auto 0; }
@media (max-width: 760px) {
  .kit-grille { grid-template-columns: 1fr; }
}
@media (max-width: 540px) {
  .kit-variante { flex-wrap: wrap; }
  .kit-telecharger { width: 100%; justify-content: center; }
}

/* ----- Hero avec vidéo de fond (accueil) --------------------------------- */
.hero--video { position: relative; isolation: isolate; min-height: min(78vh, 760px); display: flex; align-items: center; }
.hero__fond { position: absolute; inset: 0; z-index: -1; background: var(--ink); }
.hero__video { width: 100%; height: 100%; object-fit: cover; }
.hero__fond::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(36,27,58,.92) 0%, rgba(36,27,58,.72) 45%, rgba(36,27,58,.18) 100%),
    linear-gradient(0deg, rgba(36,27,58,.6) 0%, transparent 35%);
}
.hero__contenu { width: 100%; }
.hero--video .hero__copy { max-width: 640px; }
.hero--video .hero__badge { position: static; display: inline-flex; margin-top: 28px; box-shadow: none; background: rgba(255,255,255,.94); }
.hero__pause {
  position: absolute; right: var(--gut); bottom: 18px; z-index: 1;
  font: 600 .82rem var(--font-body); color: #fff; background: rgba(36,27,58,.6);
  border: 1px solid rgba(255,255,255,.35); border-radius: var(--r-pill); padding: .45em 1em;
}
.hero__pause:hover { background: rgba(36,27,58,.85); }
@media (max-width: 760px) {
  .hero--video { min-height: 0; }
  .hero__fond::after { background: rgba(36,27,58,.82); }
}

/* ----- Mot qui alterne dans le titre du hero -----------------------------
   L'ancien mot glisse vers le haut et sort du cadre, le nouveau arrive par le bas.
   Choix éditorial : l'effet est conservé même si le système demande moins d'animations. */
.mot-alterne {
  display: inline-block; position: relative; vertical-align: bottom; white-space: nowrap;
  overflow: hidden; padding-bottom: .1em; margin-bottom: -.1em;
  transition: width .25s cubic-bezier(.2, .8, .2, 1);
}
.mot-alterne__mot {
  display: inline-block;
  background: linear-gradient(100deg, var(--yellow) 0%, var(--coral) 45%, var(--pink) 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.mot-alterne__mot.est-sortant { position: absolute; left: 0; top: 0; animation: mot-sort .25s cubic-bezier(.55, 0, .45, 1) forwards; }
.mot-alterne__mot.est-entrant { animation: mot-entre .25s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes mot-sort { to { transform: translateY(-105%); opacity: 0; filter: blur(3px); } }
@keyframes mot-entre { from { transform: translateY(105%); opacity: 0; filter: blur(3px); } to { transform: none; opacity: 1; filter: none; } }
.mot-alterne__mesure { position: absolute; visibility: hidden; left: 0; top: 0; }
@media (prefers-reduced-motion: reduce) {
  .mot-alterne { transition-duration: .25s !important; }
  .mot-alterne__mot.est-sortant, .mot-alterne__mot.est-entrant { animation-duration: .25s !important; }
}

/* ----- WhatsApp -------------------------------------------------------- */
.lien-whatsapp { display: inline-flex; align-items: center; gap: .4em; }
.lien-whatsapp .icone { width: 1.05em; height: 1.05em; }
.btn--whatsapp { background: #0F7A41; color: #fff; }  /* vert WhatsApp foncé : blanc dessus ≥ 4,5:1 */
.btn--whatsapp:hover { background: #0B6234; transform: translateY(-3px); }
.btn .icone { width: 1.1em; height: 1.1em; }
.actions--serre { margin-top: 14px; gap: 10px; }
