/*
Theme Name: Insurance
Theme URI: https://leocare.eu/
Description: Insurance (ex-HERO) — Thème CMS assurance inspiré de leocare.eu. Catalogue complet (Auto, Moto, Habitation, Animaux, Mobilités douces), section Aide via le blog CMS, Espace client relié au CRM, template landing réutilisable pour toutes les offres. 100% responsive, sans dépendance externe.
Version: 1.0.0
Author: PolyXGO / Alliance CA
Author URI: https://leocare.eu/
Text Domain: insurance
Requires CMS: 1.2.0
Requires PHP: 7.4
License: Proprietary
Tags: insurance-cms, landing, mega-menu, responsive, blog
*/

/* ============================================================
   HERO DESIGN SYSTEM
   ============================================================ */
:root {
    /* Brand tokens */
    --hero-ink: #1a0e2b;
    --hero-navy: #3a0159;
    --hero-primary: #5b0295;
    --hero-primary-dark: #45016f;
    --hero-primary-soft: #f2e5fa;
    --hero-accent: #f8bd65;
    --hero-accent-dark: #e2a34a;
    --hero-warn: #ff5a5f;
    --hero-bg: #ffffff;
    --hero-surface: #f8f5fb;
    --hero-line: #e9e0ee;
    --hero-muted: #6b5a78;

    /* Typography — fluid, all resolutions */
    --hero-font: "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
    --fs-xs: clamp(.75rem, .7rem + .2vw, .8125rem);
    --fs-sm: clamp(.8125rem, .78rem + .25vw, .875rem);
    --fs-base: clamp(.9375rem, .9rem + .3vw, 1rem);
    --fs-md: clamp(1.0625rem, 1rem + .4vw, 1.1875rem);
    --fs-lg: clamp(1.25rem, 1.1rem + .8vw, 1.5rem);
    --fs-xl: clamp(1.5rem, 1.2rem + 1.5vw, 2rem);
    --fs-2xl: clamp(1.875rem, 1.4rem + 2.4vw, 2.75rem);
    --fs-hero: clamp(2.125rem, 1.4rem + 3.6vw, 3.75rem);

    /* Layout */
    --container: 1200px;
    --radius: 14px;
    --radius-lg: 22px;
    --shadow-sm: 0 1px 3px rgba(10, 27, 51, .08);
    --shadow-md: 0 8px 24px rgba(10, 27, 51, .10);
    --shadow-lg: 0 18px 48px rgba(10, 27, 51, .14);
    --header-h: 72px;
    --topbar-h: 40px;
}

/* ── Reset / base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body.hero-body {
    margin: 0;
    font-family: var(--hero-font);
    font-size: var(--fs-base);
    line-height: 1.6;
    color: var(--hero-ink);
    background: var(--hero-bg);
    -webkit-font-smoothing: antialiased;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--hero-primary); text-decoration: none; }
a:hover { color: var(--hero-primary-dark); }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; font-weight: 800; letter-spacing: -.02em; color: var(--hero-navy); }
h1 { font-size: var(--fs-hero); }
h2 { font-size: var(--fs-2xl); }
h3 { font-size: var(--fs-lg); }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.25em; }
hr { border: 0; border-top: 1px solid var(--hero-line); margin: 2rem 0; }
:focus-visible { outline: 3px solid var(--hero-primary); outline-offset: 2px; border-radius: 4px; }

.hero-container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 clamp(1rem, 4vw, 2rem); }
.hero-section { padding: clamp(3rem, 8vw, 5.5rem) 0; }
#hero-landing-content { scroll-margin-top: var(--header-h); }
.hero-section--surface { background: var(--hero-surface); }
.hero-section--navy { background: var(--hero-navy); color: #fff; }
.hero-section--navy h2, .hero-section--navy h3 { color: #fff; }
.hero-grid { display: grid; gap: clamp(1rem, 2.5vw, 1.75rem); }
.hero-grid--2 { grid-template-columns: repeat(2, 1fr); }
.hero-grid--3 { grid-template-columns: repeat(3, 1fr); }
.hero-grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) {
    .hero-grid--3, .hero-grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
    .hero-grid--2, .hero-grid--3, .hero-grid--4 { grid-template-columns: 1fr; }
}
.hero-text-center { text-align: center; }
.hero-section-head { max-width: 720px; margin: 0 auto clamp(1.5rem, 4vw, 2.75rem); }
.hero-section-head p { color: var(--hero-muted); font-size: var(--fs-md); }


/* ── Buttons ──────────────────────────────────────────────── */
.hero-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    padding: .8rem 1.6rem; border-radius: 999px; border: 2px solid transparent;
    font-weight: 700; font-size: var(--fs-sm); line-height: 1.2; cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
    text-align: center; white-space: nowrap;
}
.hero-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); text-decoration: none; }
.hero-btn--primary { background: var(--hero-primary); color: #fff; }
.hero-btn--primary:hover { background: var(--hero-primary-dark); color: #fff; }
.hero-btn--accent { background: var(--hero-accent); color: var(--hero-ink); }
.hero-btn--accent:hover { background: var(--hero-accent-dark); color: var(--hero-ink); }
.hero-btn--ghost { border-color: currentColor; color: inherit; background: transparent; }
.hero-btn--light { background: #fff; color: var(--hero-primary); }
.hero-btn--sm { padding: .5rem 1.1rem; font-size: var(--fs-xs); }
.hero-btn--lg { padding: 1rem 2.2rem; font-size: var(--fs-base); }
.hero-btn .hero-ico { flex: none; }

/* ── Top bar ──────────────────────────────────────────────── */
.hero-topbar {
    background: var(--hero-navy); color: #f0d9f5; font-size: var(--fs-xs);
    min-height: var(--topbar-h); display: flex; align-items: center;
}
.hero-topbar a { color: #fff; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.hero-topbar .hero-container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-top: .4rem; padding-bottom: .4rem; }
.hero-topbar__contact { display: flex; align-items: center; gap: 1.25rem; }
.hero-topbar__contact a { display: inline-flex; align-items: center; gap: .4rem; }

/* ── Payment method badges (topbar + landing/home hero media) ─ */
.hero-payment-badges { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin: 0; padding: 0; }
.hero-payment-badges img { display: block; width: 38px; height: 24px; object-fit: contain; border-radius: 4px; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.15); }
.hero-topbar__contact .hero-payment-badges--topbar img { width: 28px; height: 18px; }
.hero-payment-badges--media { justify-content: center; }
.hero-payment-badges--media img { width: auto; height: 24px; }
.hero-payment-group { display: flex; flex-direction: column; align-items: center; gap: .6rem; }
.hero-payment-trust { display: inline-flex; align-items: center; gap: .4rem; font-size: var(--fs-xs); color: var(--hero-muted); text-decoration: none; }
.hero-payment-trust .hero-ico { color: var(--hero-accent); flex: none; }

/* ── Header / navigation ──────────────────────────────────── */
.hero-header { position: sticky; top: 0; z-index: 1000; background: var(--hero-bg); border-bottom: 1px solid var(--hero-line); transition: box-shadow .25s ease; }
.hero-header.is-stuck { box-shadow: var(--shadow-md); }
.hero-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: var(--header-h); }
.hero-logo { display: inline-flex; align-items: center; gap: .6rem; font-weight: 800; font-size: 1.35rem; color: var(--hero-navy); letter-spacing: -.03em; }
.hero-logo img { max-height: 40px; width: auto; }
.hero-logo__badge { width: 38px; height: 38px; border-radius: 12px; background: var(--hero-primary); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 1.05rem; }
.hero-nav { display: flex; align-items: center; gap: .25rem; }
.hero-nav__item { position: relative; }
.hero-nav__link {
    display: inline-flex; align-items: center; gap: .35rem; padding: .6rem .85rem;
    border-radius: 10px; font-weight: 600; font-size: var(--fs-sm); color: var(--hero-ink);
    background: none; border: 0; cursor: pointer; font-family: inherit;
}
.hero-nav__link:hover { background: var(--hero-primary-soft); color: var(--hero-primary); text-decoration: none; }
.hero-header__actions { display: flex; align-items: center; gap: .6rem; }
.hero-header__client { font-weight: 600; font-size: var(--fs-sm); color: var(--hero-navy); }
.hero-header__burger { display: none; background: none; border: 0; cursor: pointer; color: var(--hero-navy); padding: .5rem; border-radius: 8px; }
.hero-header__burger:hover { background: var(--hero-primary-soft); }

/* ── Mega menu (desktop) ──────────────────────────────────── */
.hero-nav__item { position: relative; }
.hero-nav__item.is-open > .hero-nav__link .hero-ico--chevron { transform: rotate(180deg); }
.hero-mega {
    position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%) translateY(8px);
    background: #fff; border: 1px solid var(--hero-line); border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg); padding: 1.25rem; min-width: 300px;
    opacity: 0; visibility: hidden; transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.hero-nav__item.is-open > .hero-mega { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.hero-mega--wide { width: min(620px, 90vw); }
.hero-mega--with-cards { width: min(680px, 90vw); display: flex; gap: 1.5rem; align-items: flex-start; }
.hero-mega--with-cards .hero-mega__links { flex: 1 1 55%; min-width: 0; }
.hero-mega__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .15rem 1.25rem; }
.hero-mega--with-cards .hero-mega__grid { grid-template-columns: 1fr; }
.hero-mega__title { display: flex; align-items: center; gap: .55rem; font-weight: 700; color: var(--hero-navy); padding: .5rem .75rem; font-size: var(--fs-sm); }
.hero-mega__title .hero-ico { color: var(--hero-primary); }
.hero-mega__link { display: block; padding: .5rem .75rem; border-radius: 8px; color: var(--hero-muted); font-size: var(--fs-sm); font-weight: 500; }
.hero-mega__link:hover { background: var(--hero-primary-soft); color: var(--hero-primary); text-decoration: none; }
.hero-mega__cta { margin-top: .75rem; padding: .9rem .75rem .25rem; border-top: 1px solid var(--hero-line); }
.hero-mega__cta a { display: inline-flex; align-items: center; gap: .5rem; font-weight: 700; color: var(--hero-primary); }

/* ── Mega menu promo cards ────────────────────────────────── */
.hero-mega__cards { flex: 1 1 45%; display: flex; flex-direction: column; gap: .75rem; min-width: 190px; }
.hero-mega__card {
    background: var(--hero-surface); border: 1px solid var(--hero-line); border-radius: var(--radius);
    padding: 1rem; display: flex; flex-direction: column; gap: .35rem;
}
.hero-mega__card-icon {
    display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px;
    border-radius: 10px; background: var(--hero-primary-soft); color: var(--hero-primary); margin-bottom: .25rem;
}
.hero-mega__card-title { margin: 0; font-weight: 700; color: var(--hero-navy); font-size: var(--fs-sm); }
.hero-mega__card-desc { margin: 0 0 .25rem; color: var(--hero-muted); font-size: var(--fs-xs); line-height: 1.5; }
.hero-mega__card .hero-btn { align-self: flex-start; }

/* ── Client account dropdown (customers-nav-item-profile) ──── */
.hero-account { position: relative; }
.hero-account__trigger {
    display: flex; align-items: center; gap: .5rem; background: none; border: 0; cursor: pointer;
    font-family: inherit; font-weight: 600; font-size: var(--fs-sm); color: var(--hero-navy); padding: .25rem .4rem .25rem .25rem;
    border-radius: 50px;
}
.hero-account__trigger:hover { background: var(--hero-primary-soft); }
.hero-account__avatar { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; border: 1px solid var(--hero-line); }
.hero-account__name { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hero-account.is-open > .hero-account__trigger .hero-ico--chevron { transform: rotate(180deg); }
.hero-account__menu {
    position: absolute; top: calc(100% + 10px); right: 0; transform: translateY(8px);
    background: #fff; border: 1px solid var(--hero-line); border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg); padding: .5rem; min-width: 240px;
    opacity: 0; visibility: hidden; transition: opacity .2s ease, transform .2s ease, visibility .2s;
    z-index: 20;
}
.hero-account.is-open > .hero-account__menu { opacity: 1; visibility: visible; transform: translateY(0); }
.hero-account__item {
    display: flex; align-items: center; gap: .55rem; padding: .55rem .75rem; border-radius: 8px;
    color: var(--hero-ink); font-size: var(--fs-sm); font-weight: 500;
}
.hero-account__item i { color: var(--hero-primary); width: 1.1em; text-align: center; }
.hero-account__item:hover { background: var(--hero-primary-soft); color: var(--hero-primary); text-decoration: none; }
.hero-account__item--danger { color: var(--hero-warn); }
.hero-account__item--danger i { color: var(--hero-warn); }
.hero-account__item--danger:hover { background: rgba(255, 90, 95, .1); color: var(--hero-warn); }
.hero-account__divider { height: 1px; background: var(--hero-line); margin: .4rem .25rem; }

/* ── Mobile drawer ────────────────────────────────────────── */
.hero-drawer { position: fixed; inset: 0; z-index: 1100; visibility: hidden; pointer-events: none; }
.hero-drawer.is-open { visibility: visible; pointer-events: auto; }
.hero-drawer__backdrop { position: absolute; inset: 0; background: rgba(10, 27, 51, .55); opacity: 0; transition: opacity .25s ease; }
.hero-drawer.is-open .hero-drawer__backdrop { opacity: 1; }
.hero-drawer__panel {
    position: absolute; top: 0; right: 0; height: 100%; width: min(400px, 92vw);
    background: #fff; transform: translateX(100%); transition: transform .28s ease;
    display: flex; flex-direction: column; overflow-y: auto;
}
.hero-drawer.is-open .hero-drawer__panel { transform: translateX(0); }
.hero-drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.25rem; border-bottom: 1px solid var(--hero-line); position: sticky; top: 0; background: #fff; }
.hero-drawer__close { background: none; border: 0; cursor: pointer; color: var(--hero-navy); padding: .4rem; border-radius: 8px; }
.hero-drawer__nav { padding: .75rem; flex: 1; }
.hero-drawer__group { border-bottom: 1px solid var(--hero-line); }
.hero-drawer__toggle {
    width: 100%; display: flex; align-items: center; justify-content: space-between; gap: .5rem;
    background: none; border: 0; padding: 1rem .5rem; font: inherit; font-weight: 700; color: var(--hero-navy); cursor: pointer; text-align: left; text-decoration: none;
}
.hero-drawer__toggle:hover { color: var(--hero-primary); }
.hero-drawer__toggle span { display: inline-flex; align-items: center; gap: .5rem; }
.hero-drawer__toggle .hero-ico { transition: transform .2s ease; }
.hero-drawer__group.is-open > .hero-drawer__toggle .hero-ico--chevron { transform: rotate(180deg); }
.hero-drawer__sub { display: none; padding: 0 .5rem 1rem; }
.hero-drawer__group.is-open > .hero-drawer__sub { display: block; }
.hero-drawer__sub a { display: block; padding: .55rem .75rem; border-radius: 8px; color: var(--hero-muted); font-weight: 500; }
.hero-drawer__sub a:hover { background: var(--hero-primary-soft); color: var(--hero-primary); text-decoration: none; }
.hero-drawer__sub a.hero-drawer__card-link { font-weight: 700; color: var(--hero-primary); background: var(--hero-primary-soft); margin-top: .35rem; }
.hero-drawer__foot { padding: 1.25rem; display: grid; gap: .6rem; border-top: 1px solid var(--hero-line); position: sticky; bottom: 0; background: #fff; }

/* ── Skip link / accessibility ────────────────────────────── */
.hero-skip {
    position: absolute; left: -9999px; top: 0; z-index: 2000;
    background: var(--hero-navy); color: #fff; padding: .75rem 1.25rem; border-radius: 0 0 10px 0;
}
.hero-skip:focus { left: 0; color: #fff; }

/* ── Homepage hero ────────────────────────────────────────── */
.hero-home-hero {
    background: linear-gradient(160deg, var(--hero-navy) 0%, #c742a7 60%, #5b0295 130%);
    color: #fff; overflow: hidden;
}
.hero-home-hero__inner {
    display: grid; grid-template-columns: 1.1fr .9fr; align-items: center;
    gap: clamp(2rem, 5vw, 4rem); padding-top: clamp(3rem, 7vw, 5rem); padding-bottom: clamp(3rem, 7vw, 5rem);
}
.hero-home-hero h1 { color: #fff; }
.hero-home-hero .hero-lead { color: #dfc2e8; font-size: var(--fs-md); max-width: 46ch; }
.hero-home-hero__visual { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.25rem; }
.hero-home-hero__visual .alliance-hero-art { position: relative; }
.hero-home-hero__orb {
    position: absolute; inset: -10% -10% auto auto; width: 120%; aspect-ratio: 1;
    background: radial-gradient(circle at 30% 30%, rgba(183, 240, 74, .35), transparent 60%);
    pointer-events: none;
}
.hero-eyebrow {
    display: inline-block; background: rgba(183, 240, 74, .15); color: var(--hero-accent);
    border: 1px solid rgba(183, 240, 74, .4); border-radius: 999px;
    padding: .35rem .9rem; font-size: var(--fs-xs); font-weight: 700; margin: 0 0 1rem;
}
.hero-main .hero-eyebrow:not(.hero-home-hero .hero-eyebrow) { color: var(--hero-primary); background: var(--hero-primary-soft); border-color: transparent; }
.hero-lead { font-size: var(--fs-md); color: var(--hero-muted); }
.hero-btn-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.hero-btn-row--center { justify-content: center; }
.hero-checklist { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; padding: 0; margin: 1.5rem 0 0; font-size: var(--fs-sm); color: #f0d9f5; }
.hero-checklist li { display: inline-flex; align-items: center; gap: .4rem; }
.hero-checklist .hero-ico { color: var(--hero-accent); }
.hero-app-card {
    position: relative; background: #fff; color: var(--hero-ink); border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg); padding: 1.25rem; display: grid; gap: .75rem;
    width: min(340px, 100%); animation: hero-float 6s ease-in-out infinite;
}
@keyframes hero-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.hero-app-card__row { display: flex; align-items: center; gap: .8rem; }
.hero-app-card__row small { display: block; color: var(--hero-muted); font-size: var(--fs-xs); }
.hero-app-card__row--muted { opacity: .85; }
.hero-app-card__ico {
    width: 44px; height: 44px; border-radius: 12px; background: var(--hero-primary);
    color: #fff; display: inline-flex; align-items: center; justify-content: center; flex: none;
}
.hero-app-card__ico--soft { background: var(--hero-primary-soft); color: var(--hero-primary); }

@media (max-width: 900px) {
    .hero-home-hero__inner { grid-template-columns: 1fr; }
    .hero-home-hero__visual { order: -1; }
    .hero-app-card { width: min(300px, 100%); }
}

/* ── Product cards ────────────────────────────────────────── */
.hero-product-card {
    display: flex; flex-direction: column; align-items: flex-start; gap: .5rem;
    border: 1px solid var(--hero-line); border-radius: var(--radius-lg);
    padding: 1.75rem 1.5rem; background: #fff; color: var(--hero-ink);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.hero-product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--hero-primary); color: var(--hero-ink); text-decoration: none; }
.hero-product-card__ico {
    width: 52px; height: 52px; border-radius: 14px; background: var(--hero-primary-soft);
    color: var(--hero-primary); display: inline-flex; align-items: center; justify-content: center; margin-bottom: .5rem;
}
.hero-product-card__name { font-weight: 800; font-size: var(--fs-lg); color: var(--hero-navy); }
.hero-product-card__price { display: flex; align-items: baseline; gap: .3rem; }
.hero-product-card__price strong { font-size: var(--fs-xl); color: var(--hero-primary); }
.hero-product-card__price small { color: var(--hero-muted); }
.hero-product-card__go { margin-top: auto; display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; color: var(--hero-primary); font-size: var(--fs-sm); }

/* ── Stats band ───────────────────────────────────────────── */
.hero-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: clamp(1rem, 3vw, 2rem); text-align: center; }
.hero-stat__value { display: block; font-size: var(--fs-2xl); font-weight: 800; color: var(--hero-accent); letter-spacing: -.02em; }
.hero-stat__label { color: #dfc2e8; font-size: var(--fs-sm); }

/* ── Features / steps / steps numbers ─────────────────────── */
.hero-feature { background: #fff; border: 1px solid var(--hero-line); border-radius: var(--radius-lg); padding: 1.75rem 1.5rem; }
.hero-feature__ico {
    width: 48px; height: 48px; border-radius: 12px; background: var(--hero-primary-soft);
    color: var(--hero-primary); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 1rem;
}
.hero-feature h3 { font-size: var(--fs-md); }
.hero-feature p { color: var(--hero-muted); font-size: var(--fs-sm); margin: 0; }

/* ── Testimonials slider (scroll-snap, no JS lib) ─────────── */
.hero-slider__track {
    display: grid; grid-auto-flow: column; grid-auto-columns: min(360px, 82vw);
    gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: .5rem;
    scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.hero-slider__track::-webkit-scrollbar { display: none; }
.hero-review {
    scroll-snap-align: start; margin: 0; background: #fff; border: 1px solid var(--hero-line);
    border-radius: var(--radius-lg); padding: 1.5rem; display: flex; flex-direction: column; gap: .75rem;
}
.hero-review__stars { display: flex; gap: .15rem; color: #f8bd65; }
.hero-review blockquote { margin: 0; color: var(--hero-ink); font-size: var(--fs-sm); }
.hero-review figcaption { font-weight: 700; color: var(--hero-navy); font-size: var(--fs-sm); }
.hero-slider__nav { display: flex; justify-content: center; gap: .5rem; margin-top: 1rem; }
.hero-slider__nav button {
    width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--hero-line);
    background: #fff; color: var(--hero-navy); font-size: 1.25rem; cursor: pointer; line-height: 1;
}
.hero-slider__nav button:hover { background: var(--hero-primary-soft); color: var(--hero-primary); }

/* ── Accordion (FAQ) ──────────────────────────────────────── */
.hero-accordion { display: grid; gap: .75rem; }
.hero-accordion__item { border: 1px solid var(--hero-line); border-radius: var(--radius); background: #fff; }
.hero-accordion__item summary {
    list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    padding: 1.1rem 1.25rem; font-weight: 700; color: var(--hero-navy); font-size: var(--fs-base);
}
.hero-accordion__item summary::-webkit-details-marker { display: none; }
.hero-accordion__item summary .hero-ico { transition: transform .2s ease; color: var(--hero-primary); flex: none; }
.hero-accordion__item[open] summary .hero-ico { transform: rotate(180deg); }
.hero-accordion__body { padding: 0 1.25rem 1.1rem; color: var(--hero-muted); }

/* ── Landing hero (offres assurance) ──────────────────────── */
.hero-landing-hero {
    background: linear-gradient(160deg, var(--hero-navy) 0%, #c742a7 70%, #5b0295 140%);
    color: #fff; padding: clamp(3rem, 7vw, 5rem) 0;
}
.hero-landing-hero h1 { color: #fff; max-width: 22ch; }
.hero-landing-hero .hero-lead { color: #dfc2e8; max-width: 55ch; }
.hero-landing-hero__price { margin-top: 1rem; font-weight: 700; color: var(--hero-accent); }
.hero-landing-hero--flat h1 { max-width: none; }
.hero-landing-hero__row { display: flex; align-items: center; gap: clamp(1.5rem, 4vw, 3rem); }
.hero-landing-hero__text { flex: 1 1 420px; min-width: 0; }
.hero-landing-hero__media { flex: 1 1 320px; max-width: 420px; display: flex; justify-content: center; }
.hero-landing-hero__media img { width: 100%; height: auto; max-width: 420px; filter: drop-shadow(0 12px 28px rgba(0,0,0,.25)); }
.hero-landing-hero .hero-payment-group { margin-top: 1.5rem; }
@media (max-width: 860px) {
    .hero-landing-hero__row { flex-direction: column; text-align: center; }
    .hero-landing-hero__media { max-width: 280px; order: -1; }
    .hero-landing-hero .hero-lead { margin-left: auto; margin-right: auto; }
    .hero-landing-hero .hero-btn-row { justify-content: center; }
}
.hero-breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; font-size: var(--fs-xs); color: #dfc2e8; margin-bottom: 1rem; }
.hero-breadcrumb a { color: #fff; opacity: .85; }
.hero-breadcrumb a:hover { opacity: 1; }

/* ── Steps ────────────────────────────────────────────────── */
.hero-steps { list-style: none; margin: 0; padding: 0; counter-reset: none; }
.hero-step { position: relative; background: #fff; border: 1px solid var(--hero-line); border-radius: var(--radius-lg); padding: 1.75rem 1.5rem; }
.hero-step__num {
    display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px;
    border-radius: 50%; background: var(--hero-accent); color: var(--hero-ink);
    font-weight: 800; margin-bottom: .75rem;
}
.hero-step h3 { font-size: var(--fs-md); }
.hero-step p { color: var(--hero-muted); font-size: var(--fs-sm); margin: 0; }

/* ── Prose (contenu éditorial) ────────────────────────────── */
.hero-prose { color: var(--hero-ink); font-size: var(--fs-base); }
.hero-prose h2 { margin-top: 1.75em; }
.hero-prose h3 { margin-top: 1.5em; }
.hero-prose a { text-decoration: underline; text-underline-offset: 2px; }
.hero-prose img { border-radius: var(--radius); margin: 1.5rem 0; }
.hero-prose blockquote { border-left: 4px solid var(--hero-accent); margin: 1.5rem 0; padding: .5rem 0 .5rem 1.25rem; color: var(--hero-muted); }
.hero-prose table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: var(--fs-sm); }
.hero-prose th, .hero-prose td { border: 1px solid var(--hero-line); padding: .6rem .8rem; text-align: left; }
.hero-prose th { background: var(--hero-surface); }

/* ── Blog cards / meta ────────────────────────────────────── */
.hero-post-card { background: #fff; border: 1px solid var(--hero-line); border-radius: var(--radius-lg); padding: 1.5rem; display: flex; flex-direction: column; gap: .5rem; }
.hero-post-card__link h3 { color: var(--hero-navy); }
.hero-post-card__link:hover h3 { color: var(--hero-primary); }
.hero-post-card p { color: var(--hero-muted); font-size: var(--fs-sm); margin: 0; }
.hero-post-card__more { display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; font-size: var(--fs-sm); margin-top: auto; }
.hero-post-meta { color: var(--hero-muted); font-size: var(--fs-xs); }
.hero-post-hero-img { border-radius: var(--radius-lg); margin: 1.5rem 0; }
.hero-pagination { display: flex; justify-content: center; margin-top: 2.5rem; }
.hero-pagination a, .hero-pagination span {
    min-width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center;
    border-radius: 10px; border: 1px solid var(--hero-line); margin: 0 .2rem; font-weight: 600;
}
.hero-pagination span.current, .hero-pagination a:hover { background: var(--hero-primary); border-color: var(--hero-primary); color: #fff; text-decoration: none; }

/* ── App section (accueil) ────────────────────────────────── */
.hero-app { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; }

/* ── Footer ───────────────────────────────────────────────── */
.hero-footer { background: var(--hero-navy); color: #dfc2e8; margin-top: 0; }
.hero-footer__grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: clamp(1.5rem, 4vw, 3rem); padding: clamp(2.5rem, 6vw, 4rem) 0; }
.hero-footer .hero-logo { color: #fff; }
.hero-footer__about { font-size: var(--fs-sm); margin-top: 1rem; max-width: 34ch; }
.hero-footer__social { display: flex; gap: .5rem; margin-top: 1.25rem; }
.hero-footer__social a {
    width: 38px; height: 38px; border-radius: 50%; background: rgba(255, 255, 255, .08);
    color: #fff; display: inline-flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: .8rem; transition: background .2s ease;
}
.hero-footer__social a:hover { background: var(--hero-primary); color: #fff; }
.hero-footer__col h3 { color: #fff; font-size: var(--fs-sm); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 1rem; }
.hero-footer__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.hero-footer__col a { color: #dfc2e8; font-size: var(--fs-sm); }
.hero-footer__col a:hover { color: #fff; }
.hero-footer__cta {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, .12); padding: 2rem 0;
}
.hero-footer__cta h2 { font-size: var(--fs-xl); color: #fff; margin: 0; }
.hero-footer__cta p { margin: 0; color: #dfc2e8; }
.hero-footer__legal { border-top: 1px solid rgba(255, 255, 255, .12); padding: 1.25rem 0; font-size: var(--fs-xs); }
.hero-footer__legal-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; }
.hero-footer__legal p { margin: 0; }
.hero-footer__legal nav { display: flex; flex-wrap: wrap; gap: 1rem; }
.hero-footer__legal a { color: #dfc2e8; }
.hero-footer__legal a:hover { color: #fff; }
@media (max-width: 900px) {
    .hero-footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
    .hero-footer__grid { grid-template-columns: 1fr; }
}

/* ── Responsive header rules ──────────────────────────────── */
@media (max-width: 1080px) {
    .hero-nav, .hero-header__client, .hero-account { display: none; }
    .hero-header__burger { display: inline-flex; }
}
@media (max-width: 560px) {
    .hero-topbar__contact span.hide-sm { display: none; }
    .hero-header__actions .hero-btn--tarif { padding: .5rem 1rem; }
}

/* ── Motion preferences ───────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ── Reveal on scroll (JS-driven) ─────────────────────────── */
.hero-reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.hero-reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    .hero-reveal { opacity: 1; transform: none; }
}

/* ── Language switcher ────────────────────────────────────── */
.hero-lang { display: inline-flex; align-items: center; gap: .25rem; }
.hero-lang__item {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 34px; height: 26px; padding: 0 .45rem; border-radius: 999px;
    font-size: var(--fs-xs); font-weight: 700; letter-spacing: .04em;
    color: inherit; border: 1px solid transparent;
}
.hero-lang__item:hover { border-color: currentColor; text-decoration: none; }
.hero-lang__item.is-active { background: var(--hero-primary); color: #fff; }
.hero-topbar .hero-lang__item { color: #f0d9f5; }
.hero-topbar .hero-lang__item.is-active { color: var(--hero-navy); background: var(--hero-accent); }

/* ── Slidebar (off-canvas side panel, left or right) ──────── */
.hero-slidebar { position: fixed; inset: 0; z-index: 1200; visibility: hidden; pointer-events: none; }
.hero-slidebar.is-open { visibility: visible; pointer-events: auto; }
.hero-slidebar__backdrop { position: absolute; inset: 0; background: rgba(10, 27, 51, .55); opacity: 0; transition: opacity .25s ease; }
.hero-slidebar.is-open .hero-slidebar__backdrop { opacity: 1; }
.hero-slidebar__panel {
    position: absolute; top: 0; height: 100%; width: min(420px, 94vw);
    background: #fff; display: flex; flex-direction: column; overflow-y: auto;
    transition: transform .28s ease; box-shadow: var(--shadow-lg);
}
.hero-slidebar--right .hero-slidebar__panel { right: 0; transform: translateX(100%); }
.hero-slidebar--left .hero-slidebar__panel { left: 0; transform: translateX(-100%); }
.hero-slidebar.is-open .hero-slidebar__panel { transform: translateX(0); }
.hero-slidebar__head {
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    padding: 1.1rem 1.5rem; border-bottom: 1px solid var(--hero-line);
    position: sticky; top: 0; background: #fff;
}
.hero-slidebar__head h3 { margin: 0; font-size: var(--fs-md); }
.hero-slidebar__close { background: none; border: 0; cursor: pointer; color: var(--hero-navy); padding: .4rem; border-radius: 8px; }
.hero-slidebar__close:hover { background: var(--hero-primary-soft); }
.hero-slidebar__body { padding: 1.5rem; display: grid; gap: 1.25rem; align-content: start; }
.hero-slidebar__item { display: flex; gap: .9rem; align-items: flex-start; }
.hero-slidebar__item .hero-ico { color: var(--hero-primary); flex: none; margin-top: .1rem; }
.hero-slidebar__item strong { display: block; color: var(--hero-navy); }
.hero-slidebar__item p { margin: 0; color: var(--hero-muted); font-size: var(--fs-sm); }

/* Slidebar trigger button (generic) */
.hero-slidebar-trigger { background: none; border: 0; cursor: pointer; font: inherit; font-weight: 600; color: var(--hero-navy); display: inline-flex; align-items: center; gap: .4rem; padding: .4rem .6rem; border-radius: 8px; }
.hero-slidebar-trigger:hover { background: var(--hero-primary-soft); color: var(--hero-primary); }

@media (max-width: 560px) {
    .hero-lang--topbar { display: none; }
    .hero-slidebar__panel { width: 100vw; }
}


/* ============================================================
   INSURANCE v1.1 — Nouveaux templates + slider marketing
   ============================================================ */

/* ── Split hero (templates Sinistres / Assistance / Garages) ── */
.hero-hero-split { display: flex; align-items: center; gap: 2.5rem; }
.hero-hero-split > div:first-child { flex: 1.2; }
.hero-hero-split__visual { flex: 1; display: flex; flex-direction: column; gap: 1rem; align-items: center; }
.hero-hero-split__img { max-width: 100%; height: auto; border-radius: var(--radius-lg); }

/* ── Carte urgence (template Assistance) ─────────────────── */
.hero-emergency {
    width: 100%; background: #fff; border: 1px solid var(--hero-line); border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md, 0 10px 30px rgba(58, 1, 89, .08));
    display: flex; flex-direction: column; align-items: center; gap: .35rem; text-align: center; padding: 1.25rem 1.5rem;
}
.hero-emergency__ico {
    display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 50%;
    background: var(--hero-primary-soft); color: var(--hero-primary);
}
.hero-emergency strong { color: var(--hero-navy); font-size: var(--fs-base); }
.hero-emergency__phone { font-size: var(--fs-lg); font-weight: 800; color: var(--hero-primary); letter-spacing: -.02em; }
.hero-emergency small { color: var(--hero-muted); font-size: var(--fs-xs); }

/* ── Délais (template Sinistres) ──────────────────────────── */
.hero-delay-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.1rem 1.25rem; }
.hero-delay-row__badge {
    flex-shrink: 0; background: var(--hero-primary-soft); color: var(--hero-primary);
    font-weight: 700; font-size: var(--fs-xs); border-radius: 999px; padding: .3rem .8rem;
}

/* ── Cartes garages (template Garages agréés) ─────────────── */
.hero-garage-card {
    background: #fff; border: 1px solid var(--hero-line); border-radius: var(--radius-lg);
    padding: 1.25rem; display: flex; flex-direction: column; gap: .5rem;
}
.hero-garage-card__head { display: flex; align-items: center; gap: .6rem; }
.hero-garage-card__ico {
    display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 10px;
    background: var(--hero-primary-soft); color: var(--hero-primary); flex-shrink: 0;
}
.hero-garage-card__head h3 { margin: 0; font-size: var(--fs-base); }
.hero-garage-card__meta { display: flex; align-items: center; gap: .35rem; color: var(--hero-muted); font-size: var(--fs-sm); margin: 0; }
.hero-garage-card__phone { font-weight: 700; color: var(--hero-primary); font-size: var(--fs-sm); }

/* ── Checklist centrée (template Tarif) ───────────────────── */
.hero-checklist--center { justify-content: center; color: var(--hero-muted); }

/* ── Slider marketing (accueil) ───────────────────────────── */
.hero-showcase__track { grid-auto-columns: min(720px, 92vw); }
.hero-showcase__slide {
    scroll-snap-align: start; background: #fff; border: 1px solid var(--hero-line); border-radius: var(--radius-lg);
    overflow: hidden; display: flex; min-height: 300px;
}
.hero-showcase__media { flex: 0 0 52%; min-width: 0; background: var(--hero-primary-soft); }
.hero-showcase__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-showcase__copy { flex: 1; padding: 2rem 1.75rem; display: flex; flex-direction: column; gap: .75rem; align-items: flex-start; justify-content: center; }
.hero-showcase__copy h3 { margin: 0; color: var(--hero-navy); font-size: var(--fs-lg); }
.hero-showcase__copy p { margin: 0; color: var(--hero-muted); font-size: var(--fs-sm); }

@media (max-width: 900px) {
    .hero-hero-split { flex-direction: column; gap: 1.5rem; }
    .hero-hero-split__visual { width: 100%; }
    .hero-showcase__slide { flex-direction: column; min-height: 0; }
    .hero-showcase__media { flex: none; height: 190px; }
    .hero-showcase__copy { padding: 1.5rem 1.25rem; }
}
@media (max-width: 560px) {
    .hero-showcase__track { grid-auto-columns: 94vw; }
    .hero-delay-row { flex-direction: column; align-items: flex-start; gap: .4rem; }
}

