/* ============================================================
   MG Refonte — header, sections & variant styles
   ============================================================ */

/* ---------- Promo bar ---------- */
.promo {
  background: var(--teal-900); color: #fff;
  font-size: .9rem;
}
/* red (brand) variant — used on the homepage promo bar */
.promo.promo-brand { background: var(--brand); }
.promo.promo-brand .badge { background: #fff; color: var(--brand); }
.promo.promo-brand .tel svg { color: #fff; }
.promo.promo-brand .tel:hover { color: #ffe0d6; }
.promo.promo-brand .btn-primary { background: #fff; color: var(--brand); box-shadow: none; }
.promo.promo-brand .btn-primary:hover { background: #ffe9e2; color: var(--brand-700); transform: translateY(-1px); }

/* ---------- Rappel modal (generic) ---------- */
.rmodal-back { position: fixed; inset: 0; background: rgba(10,30,40,.55); backdrop-filter: blur(3px); z-index: 100; display: grid; place-items: center; padding: 1.2rem; opacity: 0; visibility: hidden; transition: opacity .2s; }
.rmodal-back.open { opacity: 1; visibility: visible; }
.rmodal { background: var(--surface); border-radius: var(--r-lg); width: min(420px, 100%); box-shadow: var(--shadow-lg); overflow: hidden; transform: translateY(12px) scale(.98); transition: transform .2s; }
.rmodal-back.open .rmodal { transform: none; }
.rmodal-head { background: var(--teal); color: #fff; padding: 1.4rem 1.5rem; position: relative; }
.rmodal-head h3 { color: #fff; font-size: 1.4rem; }
.rmodal-head p { color: rgba(255,255,255,.82); font-size: .92rem; margin-top: .4rem; max-width: 30ch; }
.rmodal-x { position: absolute; top: 1rem; right: 1rem; width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center; color: #fff; background: rgba(255,255,255,.14); }
.rmodal-x:hover { background: rgba(255,255,255,.26); }
.rmodal-x svg { width: 18px; height: 18px; }
.rmodal-form { padding: 1.4rem 1.5rem 1.6rem; display: grid; gap: 1rem; }

/* ---------- Pro account modal (wider, tabbed) ---------- */
.rmodal.rmodal-wide { width: min(560px, 100%); }
.rmodal-tabs { display: flex; gap: .4rem; padding: 0 1.5rem; border-bottom: 1px solid var(--line); background: var(--surface); }
.rmodal-tab { padding: 1rem .4rem; font-family: var(--font-head); font-weight: 700; font-size: 1.02rem; color: var(--muted); border-bottom: 2.5px solid transparent; margin-bottom: -1px; transition: color .15s; }
.rmodal-tab:hover { color: var(--text); }
.rmodal-tab[aria-selected="true"] { color: var(--text); border-bottom-color: var(--teal); }
.rmodal-body { padding: 1.4rem 1.5rem 1.6rem; max-height: min(70vh, 620px); overflow-y: auto; }
.propanel { display: none; }
.propanel.active { display: grid; gap: 1rem; }
.rmodal-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 520px) { .rmodal-grid2 { grid-template-columns: 1fr; } }
.rmodal-alt { text-align: center; font-size: .86rem; color: var(--muted); }
.rmodal-alt a, .rmodal-link { color: var(--accent); font-weight: 600; cursor: pointer; }
.rmodal-alt a:hover, .rmodal-link:hover { text-decoration: underline; }
.rmodal-mention { font-size: .76rem; color: var(--muted-2); line-height: 1.45; }

/* ---------- How-to / parcours en 4 étapes ---------- */
.howto { background: var(--surface-2); }
.howto .section-head { text-align: center; margin-inline: auto; }
.howto-grid { display: grid; gap: 1.8rem; grid-template-columns: 1fr; margin-top: clamp(2.2rem, 4vw, 3.2rem); }
@media (min-width: 720px) { .howto-grid { grid-template-columns: repeat(4, 1fr); gap: 1rem; } }
.hstep { text-align: center; position: relative; padding: 0 .4rem; }
.hstep .line { display: none; }
@media (min-width: 720px) {
  .hstep .line { display: block; position: absolute; top: 39px; left: 50%; width: 100%; height: 2px; background: var(--line-2); z-index: 0; }
  .hstep:last-child .line { display: none; }
}
.hstep .ic { position: relative; z-index: 1; width: 78px; height: 78px; border-radius: 999px; background: color-mix(in oklab, var(--teal), transparent 92%); color: var(--teal); display: grid; place-items: center; margin: 0 auto 1.2rem; box-shadow: 0 0 0 6px var(--surface-2); }
.hstep .ic svg { width: 33px; height: 33px; }
.hstep .num { position: absolute; top: -2px; left: calc(50% + 18px); width: 26px; height: 26px; border-radius: 999px; background: var(--brand); color: #fff; font-family: var(--font-head); font-weight: 800; font-size: .82rem; display: grid; place-items: center; z-index: 2; border: 2px solid var(--surface-2); }
.hstep .ht { font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; line-height: 1.2; }
.hstep .hd { font-size: .9rem; color: var(--muted); margin-top: .45rem; max-width: 24ch; margin-inline: auto; }
/* generic reassure-mini (also used outside .recall, e.g. the rappel modal) */
.reassure-mini { display: flex; align-items: center; justify-content: center; gap: .5em; font-size: .82rem; color: var(--muted); }
.reassure-mini svg { width: 15px; height: 15px; color: #1f8a4c; flex: none; }

/* ---------- Hero without side column (form/visual removed) ---------- */
.hero.hero-solo .hero-grid { grid-template-columns: 1fr; max-width: 800px; }
@media (min-width: 1000px) { .hero.hero-solo .hero-grid { grid-template-columns: minmax(0, 1.45fr) minmax(280px, .82fr); max-width: none; align-items: center; gap: clamp(1.6rem, 3vw, 3rem); } }
/* promo card (right) — translucent so the photo stays visible */
.hero-promo { background: linear-gradient(160deg, rgba(11,46,57,.72), rgba(11,46,57,.56)); backdrop-filter: blur(7px) saturate(1.15); -webkit-backdrop-filter: blur(7px) saturate(1.15); border: 1px solid rgba(255,255,255,.2); border-radius: var(--r-xl); padding: 1.5rem 1.4rem 1.6rem; color: #fff; box-shadow: var(--shadow-lg); text-align: center; }
@media (max-width: 999px) { .hero-promo { margin-top: 1.6rem; max-width: 420px; } }
.hero-promo .hp-flag { display: inline-block; font-family: var(--font-head); font-weight: 800; font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; background: var(--brand); color: #fff; padding: .4em .8em; border-radius: 999px; }
.hero-promo .hp-big { font-family: var(--font-head); font-weight: 800; font-size: clamp(1.7rem, 3vw, 2.2rem); margin-top: .9rem; line-height: 1; }
.hero-promo .hp-big span { color: #ffd6c9; }
.hero-promo .hp-sub { color: rgba(255,255,255,.82); font-size: .92rem; margin-top: .4rem; }
.hero-promo .hp-countdown { display: flex; justify-content: center; gap: .5rem; margin: 1.2rem 0 .6rem; }
.hero-promo .cd { background: rgba(255,255,255,.13); border: 1px solid rgba(255,255,255,.14); border-radius: 10px; padding: .55rem .35rem; min-width: 54px; flex: 1; max-width: 66px; }
.hero-promo .cd .n { font-family: var(--font-head); font-weight: 800; font-size: 1.5rem; line-height: 1; display: block; font-variant-numeric: tabular-nums; }
.hero-promo .cd .l { font-size: .62rem; text-transform: uppercase; letter-spacing: .04em; color: rgba(255,255,255,.68); margin-top: .3rem; display: block; }
.hero-promo .hp-until { font-size: .82rem; color: rgba(255,255,255,.72); margin-bottom: 1rem; }

/* ---------- Typewriter (hero headline) ---------- */
.tw { display: inline-block; white-space: nowrap; min-height: 1em; vertical-align: top; }
.tw-caret { display: inline-block; width: 3px; height: .92em; background: currentColor; margin-left: .08em; vertical-align: -.06em; border-radius: 1px; animation: tw-blink 1.05s steps(1, end) infinite; }
@keyframes tw-blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .tw-caret { animation: none; } }
/* photo background (slide) — teal-left baked in, photo on the right */
.hero.hero-solo { min-height: 480px; display: flex; align-items: center; }
.hero.hero-solo .hero-bg { display: block; }
.hero-bg .hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: right center; }
.hero.hero-solo .hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, var(--teal) 0%, rgba(14,58,71,.82) 30%, rgba(14,58,71,.30) 54%, rgba(14,58,71,0) 72%); }
@media (max-width: 820px) {
  .hero.hero-solo .hero-bg::after { background: linear-gradient(180deg, rgba(14,58,71,.68) 0%, rgba(14,58,71,.88) 75%); }
}
.promo .wrap { display: flex; align-items: center; gap: 1rem; min-height: 46px; padding-block: .5rem; flex-wrap: wrap; }
.promo .badge {
  font-family: var(--font-head); font-weight: 800; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase;
  background: var(--brand); color: #fff; padding: .35em .7em; border-radius: 6px; flex: none;
}
.promo .txt { color: rgba(255,255,255,.9); }
.promo .txt b { color: #fff; }
.promo .spacer { flex: 1; }
.promo .right { display: flex; align-items: center; gap: 1.1rem; margin-left: auto; }
.promo .tel { display: inline-flex; align-items: center; gap: .45em; font-weight: 700; color: #fff; }
.promo .tel svg { width: 16px; height: 16px; color: var(--brand); }
.promo .tel:hover { color: var(--brand); }
@media (max-width: 760px) { .promo .right { display: none; } .promo .txt-long { display: none; } }

/* ---------- Header ---------- */
.header { position: sticky; top: 0; z-index: 60; background: rgba(255,255,255,.92); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.header .wrap { display: flex; align-items: center; gap: 1.5rem; min-height: 78px; }
.logo img { height: 52px; width: auto; }
.nav { display: none; align-items: center; gap: .35rem; margin-inline: auto; }
@media (min-width: 1040px) { .nav { display: flex; } }
.nav-item { position: relative; }
.nav-item > button, .nav-item > a {
  display: inline-flex; align-items: center; gap: .35em; font-weight: 600; font-size: .98rem;
  padding: .7em .85em; border-radius: var(--r-sm); color: var(--text); transition: color .14s, background .14s;
}
.nav-item > button:hover, .nav-item > a:hover, .nav-item.open > button { color: var(--accent); background: var(--accent-050); }
.nav-item .caret { width: 14px; height: 14px; transition: transform .2s; }
.nav-item.open .caret { transform: rotate(180deg); }

.header-actions { display: flex; align-items: center; gap: .7rem; margin-left: auto; }
@media (min-width: 1040px) { .header-actions { margin-left: 0; } }
.icon-btn { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: var(--r-sm); border: 1.5px solid var(--line-2); color: var(--text); position: relative; transition: all .14s; }
.icon-btn:hover { border-color: var(--accent); color: var(--accent); }
.icon-btn svg { width: 21px; height: 21px; }
.icon-btn .count { position: absolute; top: -7px; right: -7px; background: var(--brand); color: #fff; font-size: .68rem; font-weight: 700; min-width: 19px; height: 19px; border-radius: 999px; display: grid; place-items: center; padding: 0 4px; }
.btn-tel-head { display: none; }
@media (min-width: 1280px) { .btn-tel-head { display: inline-flex; } }

/* burger */
.burger { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: var(--r-sm); border: 1.5px solid var(--line-2); }
@media (min-width: 1040px) { .burger { display: none; } }
.burger svg { width: 24px; height: 24px; }

/* ---------- Mega menu ---------- */
.mega {
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%) translateY(8px);
  width: min(680px, 86vw); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg); padding: 1.1rem; opacity: 0; visibility: hidden; transition: opacity .18s ease, transform .18s ease; z-index: 70;
}
.nav-item.open .mega { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.mega-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .4rem; }
.mega a.mega-link { display: flex; align-items: center; gap: .8rem; padding: .7rem .8rem; border-radius: var(--r-sm); transition: background .14s; }
.mega a.mega-link:hover { background: var(--surface-2); }
.mega .mi { width: 40px; height: 40px; border-radius: 9px; display: grid; place-items: center; background: var(--accent-050); color: var(--accent-700); flex: none; }
.mega .mi svg { width: 21px; height: 21px; }
.mega .mt { display: block; font-weight: 700; font-size: .96rem; }
.mega .md { display: block; font-size: .82rem; color: var(--muted); margin-top: .1rem; }
/* grouped mega (categories with material variants) */
.mega-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: .2rem 1.1rem; }
@media (max-width: 560px) { .mega-cols { grid-template-columns: 1fr; gap: .6rem; } }
.mega-col-h { display: flex; align-items: center; gap: .45em; font-family: var(--font-head); font-weight: 800; font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: .2rem .65rem .55rem; border-bottom: 1px solid var(--line); margin-bottom: .25rem; }
.mega-col-h svg { width: 15px; height: 15px; color: var(--accent); flex: none; }
.mega-col a { display: block; padding: .55rem .65rem; border-radius: var(--r-sm); font-weight: 600; font-size: .92rem; transition: background .14s ease, color .14s ease; }
.mega-col a:hover { background: var(--surface-2); color: var(--accent); }
.mega-foot { margin-top: .8rem; padding-top: .9rem; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.mega-foot .mf-txt { font-size: .88rem; color: var(--muted); }

/* mobile drawer */
.drawer-backdrop { position: fixed; inset: 0; background: rgba(10,30,40,.45); backdrop-filter: blur(2px); z-index: 90; opacity: 0; visibility: hidden; transition: opacity .25s; }
.drawer-backdrop.open { opacity: 1; visibility: visible; }
.drawer { position: fixed; top: 0; right: 0; height: 100%; width: min(380px, 88vw); background: var(--surface); z-index: 95; transform: translateX(100%); transition: transform .28s cubic-bezier(.4,0,.2,1); display: flex; flex-direction: column; box-shadow: var(--shadow-lg); }
.drawer.open { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.2rem; border-bottom: 1px solid var(--line); }
.drawer-body { padding: .8rem 1rem; overflow-y: auto; flex: 1; }
.drawer-body a.d-link { display: flex; align-items: center; justify-content: space-between; padding: 1em .6em; font-weight: 600; font-size: 1.05rem; border-bottom: 1px solid var(--line); }
.drawer-foot { padding: 1.1rem; border-top: 1px solid var(--line); display: grid; gap: .6rem; }

/* ============================================================
   HERO  — variants via [data-hero]
   ============================================================ */
.hero { position: relative; background: var(--teal); color: #fff; overflow: hidden; }
.hero .wrap { position: relative; z-index: 2; }
.hero-grid { display: grid; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; padding-block: clamp(2.2rem, 5vw, 4rem); }
.hero h1 { color: #fff; }
.hero .lead { color: rgba(255,255,255,.82); }
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg .ph { width: 100%; height: 100%; }
.hero-chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.4rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.7rem; align-items: center; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 1.2rem 1.6rem; margin-top: 1.8rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.16); }
.hero-trust .t { display: flex; align-items: center; gap: .55rem; font-size: .9rem; color: rgba(255,255,255,.9); }
.hero-trust .t svg { width: 20px; height: 20px; color: var(--brand); flex: none; }

/* recall form card */
.recall {
  background: var(--surface); color: var(--text); border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg); overflow: hidden; align-self: stretch;
}
.recall-head { background: var(--teal-700); color: #fff; padding: 1.2rem 1.5rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.recall-head h3 { color: #fff; font-size: 1.3rem; }
.recall-head .free { font-family: var(--font-head); font-weight: 800; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; background: var(--brand); color: #fff; padding: .4em .7em; border-radius: 6px; }
.recall-body { padding: 1.4rem 1.5rem 1.6rem; display: grid; gap: 1rem; }
.recall-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.recall .reassure-mini { display: flex; align-items: center; gap: .5em; font-size: .82rem; color: var(--muted); justify-content: center; }
.recall .reassure-mini svg { width: 15px; height: 15px; color: #1f8a4c; }

/* DEFAULT hero = split (visual left, form right) */
.hero[data-hero] .hero-grid { grid-template-columns: 1fr; }
[data-hero="split"] .hero-bg { display: none; }
@media (min-width: 980px) {
  [data-hero="split"] .hero-grid { grid-template-columns: 1.05fr .95fr; }
  [data-hero="split"] .hero-bg { display: none; }
  [data-hero="split"] .hero-visual { display: block; }
  [data-hero="split"] .hero-visual .ph { height: 100%; min-height: 440px; border-radius: var(--r-xl); }
}
.hero-visual { display: none; }
@media (max-width: 979px) { .hero-visual { display: block; margin-top: 1.4rem; } .hero-visual .ph { height: 260px; border-radius: var(--r-lg); } }

/* OVERLAY hero = full-bleed image, text over, form floats right */
[data-hero="overlay"] .hero-bg { display: block; }
[data-hero="overlay"] .hero-bg .ph { background: var(--teal-900); background-image: repeating-linear-gradient(135deg, rgba(255,255,255,.05) 0 1px, transparent 1px 11px); }
[data-hero="overlay"] .hero-bg .ph::after { background: rgba(10,44,55,.66); color: rgba(255,255,255,.78); border-color: rgba(255,255,255,.16); }
[data-hero="overlay"] .hero-bg::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(100deg, var(--teal) 16%, rgba(14,58,71,.94) 48%, rgba(14,58,71,.55) 100%); }
[data-hero="overlay"] .hero-visual { display: none; }
@media (min-width: 980px) {
  [data-hero="overlay"] .hero-grid { grid-template-columns: 1.05fr .82fr; }
}

/* MINIMAL hero = lots of white space, centered, no dark bg */
[data-hero="minimal"] { background: var(--paper); color: var(--text); }
[data-hero="minimal"] h1 { color: var(--text); }
[data-hero="minimal"] .lead { color: var(--muted); }
[data-hero="minimal"] .hero-bg { display: none; }
[data-hero="minimal"] .hero-visual { display: block; }
[data-hero="minimal"] .hero-trust { border-top-color: var(--line); }
[data-hero="minimal"] .hero-trust .t { color: var(--text); }
[data-hero="minimal"] .recall { border: 1px solid var(--line); }
[data-hero="minimal"] .eyebrow.on-dark { color: var(--accent); }
[data-hero="minimal"] .eyebrow.on-dark::before { background: var(--accent); }
@media (min-width: 980px) {
  [data-hero="minimal"] .hero-grid { grid-template-columns: 1fr .9fr; }
  [data-hero="minimal"] .hero-visual .ph { min-height: 420px; height: 100%; border-radius: var(--r-xl); }
}
[data-hero="minimal"] .hero-trust .t svg { color: var(--brand); }

/* ============================================================
   REASSURANCE — variants via [data-reassure]
   ============================================================ */
.reassure { background: var(--surface); border-bottom: 1px solid var(--line); }
.reassure .wrap { padding-block: clamp(1.4rem, 3vw, 2.2rem); }
.reassure-list { display: grid; gap: 1.3rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 720px) { .reassure-list { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1040px) { [data-reassure="row"] .reassure-list,[data-reassure="cards"] .reassure-list { grid-template-columns: repeat(6, 1fr); } }
.r-item { display: flex; gap: .8rem; align-items: flex-start; }
.r-item .ri { width: 38px; height: 38px; flex: none; display: grid; place-items: center; color: var(--accent); }
.r-item .ri svg { width: 26px; height: 26px; }
.r-item .rt { font-weight: 700; font-size: .94rem; line-height: 1.2; }
.r-item .rd { font-size: .8rem; color: var(--muted); margin-top: .2rem; }

/* cards variant */
[data-reassure="cards"] .r-item { flex-direction: column; align-items: center; text-align: center; gap: .5rem; padding: 1.1rem .8rem; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface-2); }
[data-reassure="cards"] .r-item .ri { width: 48px; height: 48px; border-radius: 12px; background: var(--accent-050); }

/* ticker variant — marquee strip on accent */
[data-reassure="ticker"] { background: var(--teal); border: 0; }
[data-reassure="ticker"] .wrap { padding-block: 0; max-width: none; padding-inline: 0; overflow: hidden; }
[data-reassure="ticker"] .reassure-list { display: flex; gap: 0; flex-wrap: nowrap; width: max-content; animation: ticker 32s linear infinite; }
[data-reassure="ticker"] .r-item { flex-direction: row; align-items: center; white-space: nowrap; color: #fff; padding: 1.15rem 2.2rem; border: 0; gap: .6rem; }
[data-reassure="ticker"] .r-item .ri { width: auto; height: auto; color: var(--brand); }
[data-reassure="ticker"] .r-item .ri svg { width: 22px; height: 22px; }
[data-reassure="ticker"] .r-item .rt { color: #fff; font-size: 1rem; }
[data-reassure="ticker"] .r-item .rd { display: none; }
[data-reassure="ticker"] .r-item::after { content: "•"; color: var(--brand); margin-left: 2.2rem; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { [data-reassure="ticker"] .reassure-list { animation: none; } }

/* ============================================================
   GAMMES / PRODUCT CARDS — variants via [data-cards]
   ============================================================ */
.gammes-rail { display: grid; gap: 1.3rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .gammes-rail { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .gammes-rail { grid-template-columns: repeat(3, 1fr); } }

.prod {
  position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  display: flex; flex-direction: column;
}
.prod:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--line-2); }
.prod .prod-img { aspect-ratio: 4/3; width: 100%; }
.prod .prod-body { padding: 1.1rem 1.2rem 1.3rem; display: flex; flex-direction: column; gap: .55rem; flex: 1; }
.prod .prod-tags { display: flex; gap: .4rem; }
.prod h3 { font-size: 1.2rem; }
.prod .prod-desc { font-size: .9rem; color: var(--muted); }
.prod .prod-foot { margin-top: auto; padding-top: .7rem; display: flex; align-items: center; justify-content: space-between; gap: .8rem; }
.prod .price { font-family: var(--font-head); font-weight: 800; font-size: 1.05rem; }
.prod .price small { display: block; font-size: .7rem; font-weight: 600; color: var(--muted); letter-spacing: .02em; }
.prod .prod-link { display: inline-flex; align-items: center; gap: .4em; font-weight: 700; font-size: .92rem; color: var(--accent); }
.prod .prod-link .arrow { transition: transform .2s; }
.prod:hover .prod-link .arrow { transform: translateX(4px); }

/* overlay-style cards */
[data-cards="overlay"] .prod { color: #fff; border: 0; }
[data-cards="overlay"] .prod .prod-img { position: absolute; inset: 0; aspect-ratio: auto; height: 100%; }
[data-cards="overlay"] .prod { min-height: 340px; }
[data-cards="overlay"] .prod .prod-img .ph { height: 100%; }
[data-cards="overlay"] .prod .prod-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(8,30,38,.92) 8%, rgba(8,30,38,.30) 55%, transparent 90%); }
[data-cards="overlay"] .prod .prod-body { position: relative; z-index: 2; justify-content: flex-end; }
[data-cards="overlay"] .prod h3 { color: #fff; }
[data-cards="overlay"] .prod .prod-desc { color: rgba(255,255,255,.82); }
[data-cards="overlay"] .prod .prod-foot { border-top: 1px solid rgba(255,255,255,.18); }
[data-cards="overlay"] .prod .price { color: #fff; }
[data-cards="overlay"] .prod .price small { color: rgba(255,255,255,.7); }
[data-cards="overlay"] .prod .prod-link { color: #fff; }

/* minimal / editorial cards */
[data-cards="minimal"] .prod { border: 0; box-shadow: none; background: transparent; border-radius: 0; }
[data-cards="minimal"] .prod:hover { transform: translateY(-3px); box-shadow: none; }
[data-cards="minimal"] .prod .prod-img .ph { border-radius: var(--r-lg); }
[data-cards="minimal"] .prod .prod-body { padding: 1rem 0 0; }
[data-cards="minimal"] .prod .prod-foot { border-top: 0; padding-top: .2rem; }

/* featured first card (alu coulissant en tête) */
.prod.featured { border-color: var(--accent); }
.prod .feat-flag { position: absolute; top: .9rem; left: .9rem; z-index: 3; font-family: var(--font-head); font-weight: 800; font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; background: var(--brand); color: #fff; padding: .4em .65em; border-radius: 6px; white-space: nowrap; }

/* ============================================================
   CONFIGURATEUR CTA — variants via [data-config]
   ============================================================ */
.config { background: var(--teal); color: #fff; overflow: hidden; position: relative; }
.config .wrap { position: relative; z-index: 2; }
.config-grid { display: grid; gap: clamp(1.6rem, 4vw, 3rem); align-items: center; }
@media (min-width: 900px) { .config-grid { grid-template-columns: 1.05fr .95fr; } }
.config h2 { color: #fff; }
.config .lead { color: rgba(255,255,255,.82); }
.config-steps { display: grid; gap: .9rem; margin-top: 1.6rem; }
.config-step { display: flex; gap: .9rem; align-items: flex-start; }
.config-step .n { font-family: var(--font-head); font-weight: 800; width: 34px; height: 34px; border-radius: 999px; display: grid; place-items: center; background: rgba(255,255,255,.12); color: #fff; flex: none; font-size: .95rem; }
.config-step .ct { font-weight: 700; }
.config-step .cd { font-size: .88rem; color: rgba(255,255,255,.74); }
.config-visual .ph { border-radius: var(--r-xl); min-height: 380px; }

/* banner variant — compact horizontal strip */
[data-config="banner"] .config-grid { grid-template-columns: 1fr; text-align: center; }
[data-config="banner"] .config-visual { display: none; }
[data-config="banner"] .config-steps { display: none; }
[data-config="banner"] .config .lead { margin-inline: auto; }
[data-config="banner"] .config-cta { justify-content: center; }
.config-cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.7rem; }

/* interactive preview variant — mock configurator UI */
[data-config="interactive"] .config-visual { display: block; }
/* steps variant — big render + steps, no live controls */
[data-config="steps"] .config-visual { display: block; }
[data-config="steps"] .cm-controls { display: none; }
[data-config="steps"] .config-mock .cm-canvas { aspect-ratio: 4/5; }
.config-mock { background: var(--surface); color: var(--text); border-radius: var(--r-xl); box-shadow: var(--shadow-lg); overflow: hidden; }
.config-mock .cm-canvas { aspect-ratio: 16/11; position: relative; }
.config-mock .cm-canvas .ph { height: 100%; }
.config-mock .cm-controls { padding: 1.2rem 1.3rem 1.4rem; display: grid; gap: 1rem; }
.cm-row { display: grid; gap: .5rem; }
.cm-swatches { display: flex; gap: .5rem; }
.cm-sw { width: 34px; height: 34px; border-radius: 8px; border: 2px solid var(--line-2); cursor: pointer; transition: transform .12s, border-color .12s; }
.cm-sw[aria-pressed="true"] { border-color: var(--accent); transform: scale(1.08); box-shadow: 0 0 0 3px var(--accent-050); }
.cm-seg { display: inline-flex; background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; padding: 4px; gap: 2px; }
.cm-seg button { padding: .5em 1em; border-radius: 999px; font-weight: 600; font-size: .9rem; color: var(--muted); }
.cm-seg button[aria-pressed="true"] { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }
.cm-priceline { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: .9rem; border-top: 1px solid var(--line); }
.cm-priceline .pl { font-family: var(--font-head); font-weight: 800; font-size: 1.4rem; }
.cm-priceline .pl small { display: block; font-size: .72rem; font-weight: 600; color: var(--muted); }

/* ============================================================
   POURQUOI + STATS
   ============================================================ */
.why-grid { display: grid; gap: 2.4rem; align-items: start; }
@media (min-width: 920px) { .why-grid { grid-template-columns: .9fr 1.1fr; } }
.steps { display: grid; gap: 1.5rem; margin-top: 1.6rem; }
.step { display: flex; gap: 1.1rem; align-items: flex-start; }
.step .n { font-family: var(--font-head); font-weight: 800; font-size: 1.05rem; width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--accent-050); color: var(--accent-700); flex: none; }
.step .st { font-weight: 700; font-size: 1.1rem; }
.step .sd { color: var(--muted); font-size: .95rem; margin-top: .2rem; }

.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
@media (min-width: 560px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { background: var(--surface); padding: 1.5rem 1.2rem; text-align: center; }
.stat .num { font-family: var(--font-head); font-weight: 800; font-size: clamp(1.7rem, 4vw, 2.4rem); color: var(--text); line-height: 1; letter-spacing: -.02em; }
.stat .lab { font-size: .82rem; color: var(--muted); margin-top: .45rem; }
.stat .num .u { color: var(--accent); }

.why-stats-card { background: var(--teal); border-radius: var(--r-xl); padding: clamp(1.4rem, 3vw, 2.2rem); color: #fff; }
.why-stats-card .stats { background: rgba(255,255,255,.14); border: 0; }
.why-stats-card .stat { background: transparent; }
.why-stats-card .stat .num { color: #fff; }
.why-stats-card .stat .lab { color: rgba(255,255,255,.74); }
.why-stats-card .stat .num .u { color: var(--brand); }
.badges-row { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.4rem; }
.cert { display: inline-flex; align-items: center; gap: .5em; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); padding: .55em .9em; border-radius: 999px; font-size: .85rem; font-weight: 600; }
.cert svg { width: 16px; height: 16px; color: var(--brand); }

/* ============================================================
   AVIS / SOCIAL PROOF — variants via [data-social]
   ============================================================ */
.avis-grid { display: grid; gap: 1.3rem; grid-template-columns: 1fr; }
@media (min-width: 720px) { .avis-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .avis-grid { grid-template-columns: repeat(3, 1fr); } }
.avis {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 1.4rem 1.4rem 1.5rem; display: flex; flex-direction: column; gap: .8rem; box-shadow: var(--shadow-sm);
}
.avis .quote { font-size: 1rem; line-height: 1.55; color: var(--text); }
.avis .who { display: flex; align-items: center; gap: .7rem; margin-top: auto; padding-top: .6rem; }
.avis .av { width: 42px; height: 42px; border-radius: 999px; background: var(--accent-050); color: var(--accent-700); display: grid; place-items: center; font-family: var(--font-head); font-weight: 800; flex: none; }
.avis .wn { font-weight: 700; font-size: .92rem; }
.avis .wm { font-size: .8rem; color: var(--muted); }
.avis .verified { display: inline-flex; align-items: center; gap: .3em; font-size: .76rem; color: #1f8a4c; font-weight: 600; }
.avis .verified svg { width: 14px; height: 14px; }

.rating-summary { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1rem 2rem; margin-bottom: 2.4rem; }
.rating-summary .big { font-family: var(--font-head); font-weight: 800; font-size: 3rem; line-height: 1; }
.rating-summary .src { display: flex; align-items: center; gap: .6rem; font-size: .9rem; color: var(--muted); }
.rating-summary .src b { color: var(--text); }

/* feature variant: one big quote + small thumbs */
[data-social="feature"] .avis-grid { grid-template-columns: 1fr; max-width: 820px; margin-inline: auto; }
[data-social="feature"] .avis { text-align: center; align-items: center; padding: clamp(1.8rem,4vw,3rem); }
[data-social="feature"] .avis .quote { font-size: clamp(1.3rem, 2.6vw, 1.85rem); font-family: var(--font-head); font-weight: 700; letter-spacing: -.01em; line-height: 1.25; }
[data-social="feature"] .avis .who { justify-content: center; }
[data-social="feature"] .avis:nth-child(n+2) { display: none; }
[data-social="feature"] .feature-thumbs { display: flex; justify-content: center; gap: .7rem; margin-top: 1.6rem; }

/* logos/marquee strip variant */
[data-social="strip"] .avis-grid { display: none; }
[data-social="strip"] .strip-wrap { display: block; }
.strip-wrap { display: none; }
.strip-row { display: grid; gap: 1rem; grid-template-columns: repeat(2,1fr); }
@media (min-width: 800px) { .strip-row { grid-template-columns: repeat(4, 1fr); } }
.strip-card { border: 1px solid var(--line); border-radius: var(--r); padding: 1.1rem; background: var(--surface); }
.strip-card .quote { font-size: .9rem; color: var(--text); margin: .5rem 0; }
.strip-card .wn { font-size: .82rem; font-weight: 700; }

/* ============================================================
   FAQ
   ============================================================ */
.faq-list { max-width: 820px; margin-inline: auto; display: grid; gap: .7rem; }
.faq-item { border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); overflow: hidden; transition: border-color .15s, box-shadow .15s; }
.faq-item[open] { border-color: var(--line-2); box-shadow: var(--shadow-sm); }
.faq-item summary { list-style: none; cursor: pointer; padding: 1.15rem 1.3rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .pm { width: 26px; height: 26px; flex: none; position: relative; }
.faq-item summary .pm::before, .faq-item summary .pm::after { content: ""; position: absolute; background: var(--accent); border-radius: 2px; transition: transform .2s; }
.faq-item summary .pm::before { top: 50%; left: 4px; right: 4px; height: 2.5px; transform: translateY(-50%); }
.faq-item summary .pm::after { left: 50%; top: 4px; bottom: 4px; width: 2.5px; transform: translateX(-50%); }
.faq-item[open] summary .pm::after { transform: translateX(-50%) scaleY(0); }
.faq-item .faq-a { padding: 0 1.3rem 1.25rem; color: var(--muted); font-size: .98rem; line-height: 1.6; }

/* ============================================================
   DEVIS form section
   ============================================================ */
.devis { background: var(--surface); }
.devis-card { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-xl); overflow: hidden; display: grid; grid-template-columns: 1fr; }
@media (min-width: 920px) { .devis-card { grid-template-columns: .8fr 1.2fr; } }
.devis-aside { background: var(--teal); color: #fff; padding: clamp(1.6rem, 3vw, 2.6rem); display: flex; flex-direction: column; gap: 1.2rem; }
.devis-aside h2 { color: #fff; }
.devis-aside .lead { color: rgba(255,255,255,.8); }
.devis-aside ul { display: grid; gap: .8rem; margin-top: .4rem; }
.devis-aside li { display: flex; gap: .6rem; align-items: flex-start; font-size: .94rem; }
.devis-aside li svg { width: 20px; height: 20px; color: var(--brand); flex: none; margin-top: 1px; }
.devis-aside .tel-big { display: inline-flex; align-items: center; gap: .5em; font-family: var(--font-head); font-weight: 800; font-size: 1.4rem; color: #fff; margin-top: auto; }
.devis-aside .tel-big svg { width: 22px; height: 22px; color: var(--brand); }
.devis-form { padding: clamp(1.6rem, 3vw, 2.6rem); display: grid; gap: 1.1rem; }
.devis-form .grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
@media (max-width: 520px) { .devis-form .grid2, .recall-row { grid-template-columns: 1fr; } }
.consent { display: flex; gap: .6rem; align-items: flex-start; font-size: .82rem; color: var(--muted); }
.consent input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--accent); flex: none; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--teal-900); color: rgba(255,255,255,.72); }
.footer .wrap { padding-block: clamp(2.6rem, 5vw, 4rem) 1.6rem; }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: 1fr; }
@media (min-width: 700px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.footer .logo-foot { background: #fff; padding: .6rem .8rem; border-radius: 10px; display: inline-block; }
.footer .logo-foot img { height: 44px; }
.footer h4 { color: #fff; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; margin-bottom: 1rem; }
.footer a { display: block; padding: .3rem 0; font-size: .92rem; transition: color .14s; }
.footer a:hover { color: #fff; }
.footer .f-tel { font-family: var(--font-head); font-weight: 800; font-size: 1.25rem; color: #fff; }
.footer .pays { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: 1rem; }
.footer .pay { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.16); border-radius: 6px; padding: .4em .7em; font-size: .74rem; font-weight: 600; color: #fff; }
.footer-bottom { margin-top: 2.4rem; padding-top: 1.4rem; border-top: 1px solid rgba(255,255,255,.12); display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; align-items: center; justify-content: space-between; font-size: .82rem; }
.footer-bottom .legal { display: flex; flex-wrap: wrap; gap: 1rem; }

/* ============================================================
   FLOATING widgets
   ============================================================ */
.float-stack { position: fixed; right: clamp(14px, 3vw, 26px); bottom: clamp(14px, 3vw, 26px); z-index: 80; display: flex; flex-direction: column; gap: .7rem; align-items: flex-end; }
.fab { display: inline-flex; align-items: center; gap: .55em; border-radius: 999px; font-weight: 700; box-shadow: var(--shadow-lg); transition: transform .15s; }
.fab:hover { transform: translateY(-2px); }
.fab-chat { width: 60px; height: 60px; border-radius: 999px; background: var(--teal-700); color: #fff; display: grid; place-items: center; }
.fab-chat svg { width: 26px; height: 26px; }
.fab-call { background: var(--brand); color: #fff; padding: .85em 1.2em; }
.fab-call svg { width: 18px; height: 18px; }
@media (min-width: 1040px) { .fab-call { display: none; } }

/* chat popup */
.chatbox { position: fixed; right: clamp(14px,3vw,26px); bottom: calc(clamp(14px,3vw,26px) + 74px); z-index: 81; width: min(330px, 88vw); background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); overflow: hidden; transform: translateY(14px) scale(.98); opacity: 0; visibility: hidden; transition: all .2s ease; transform-origin: bottom right; }
.chatbox.open { transform: none; opacity: 1; visibility: visible; }
.chatbox .cb-head { background: var(--teal-700); color: #fff; padding: 1rem 1.1rem; display: flex; align-items: center; gap: .7rem; }
.chatbox .cb-head .av { width: 38px; height: 38px; border-radius: 999px; background: var(--brand); display: grid; place-items: center; font-family: var(--font-head); font-weight: 800; }
.chatbox .cb-head .nm { font-weight: 700; }
.chatbox .cb-head .on { font-size: .76rem; color: rgba(255,255,255,.8); display: flex; align-items: center; gap: .35em; }
.chatbox .cb-head .on::before { content: ""; width: 8px; height: 8px; border-radius: 999px; background: #43d17a; }
.chatbox .cb-body { padding: 1.1rem; display: grid; gap: .7rem; background: var(--surface-2); }
.chatbox .bubble { background: var(--surface); border: 1px solid var(--line); padding: .7rem .9rem; border-radius: 12px; font-size: .9rem; max-width: 85%; }
.chatbox .cb-foot { padding: .8rem 1rem 1rem; display: grid; gap: .5rem; }

/* toast */
.toast { position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%) translateY(20px); z-index: 99; background: var(--text); color: #fff; padding: .9em 1.3em; border-radius: 999px; font-weight: 600; font-size: .92rem; box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transition: all .25s ease; display: flex; align-items: center; gap: .5em; }
.toast.show { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.toast svg { width: 18px; height: 18px; color: #43d17a; }
