/* Icons: the theme forces colour/stroke/fill on "svg path" in many places (black or white).
   On these pages every icon follows the colour of its parent (currentColor). */
:is(.tv-hero, .tv-legal, .tv-dealers, .tv-faq, .tv-brands) svg.icon { fill: none; stroke: currentColor; }
/* Zero specificity: only beats the theme's "* { color }", never a colour set on purpose. */
:where(.tv-hero, .tv-legal, .tv-dealers, .tv-faq, .tv-brands) :where(svg.icon) { color: inherit; }
:is(.tv-hero, .tv-legal, .tv-dealers, .tv-faq, .tv-brands) svg.icon > * { color: inherit !important; }
:is(.tv-hero, .tv-legal, .tv-dealers, .tv-faq, .tv-brands) svg.icon > :not([stroke="none"]):not([stroke-width="0"]) { stroke: currentColor !important; }
:is(.tv-hero, .tv-legal, .tv-dealers, .tv-faq, .tv-brands) svg.icon > :not([fill="currentColor"]) { fill: none !important; }
:is(.tv-hero, .tv-legal, .tv-dealers, .tv-faq, .tv-brands) svg.icon > [fill="currentColor"] { fill: currentColor !important; }

/* ---------- Colour variants ---------- */
.tv-hero {
    /* Émeraude (défaut) : vert profond -> vert de la marque */
    --h-from: #052e16;
    --h-via: #14532d;
    --h-to: #4d7c0f;
    --h-glow-1: rgba(190, 242, 100, .45);
    --h-glow-2: rgba(20, 184, 166, .35);
    --h-accent: #d9f99d;
    --h-text: rgba(255, 255, 255, .85);
    --h-muted: rgba(255, 255, 255, .65);
    --h-focus: #a3e635;
}
.tv-hero[data-hero="ocean"] {
    --h-from: #082f49; --h-via: #1e3a8a; --h-to: #6d28d9;
    --h-glow-1: rgba(56, 189, 248, .45); --h-glow-2: rgba(192, 132, 252, .40);
    --h-accent: #bae6fd; --h-focus: #38bdf8;
}
.tv-hero[data-hero="sunset"] {
    --h-from: #431407; --h-via: #be123c; --h-to: #7e22ce;
    --h-glow-1: rgba(251, 191, 36, .45); --h-glow-2: rgba(244, 114, 182, .40);
    --h-accent: #fde68a; --h-focus: #fbbf24;
}
.tv-hero[data-hero="night"] {
    --h-from: #0f172a; --h-via: #1e293b; --h-to: #1e293b;
    --h-glow-1: rgba(var(--primary-color-rgb, 130,180,64), .35); --h-glow-2: rgba(56, 189, 248, .12);
    --h-accent: var(--primary-color, #82b440); --h-focus: var(--primary-color, #82b440);
}

/* ---------- Base ---------- */
.tv-hero {
    --tv-accent: var(--primary-color, #82b440);
    --tv-rgb: var(--primary-color-rgb, 130,180,64);
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 400px;
    padding: 44px 0 72px;
    background: linear-gradient(120deg, var(--h-from) 0%, var(--h-via) 55%, var(--h-to) 100%);
    color: var(--h-text);
    text-align: left;
}
.tv-hero > .container { position: relative; z-index: 1; width: 100%; }
/* Only while a dropdown is open: the header goes above the next section so the list is not covered. */
.tv-hero:has(.tv-dd.is-open) { z-index: 30; }
.tv-hero__bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.tv-hero__below { margin-top: 28px; }

/* Decoration: glows, dotted texture, ring */
.tv-hero__decor { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.tv-hero__decor::before {
    content: ""; position: absolute; inset: 0;
    background-image: radial-gradient(rgba(255,255,255,.16) 1px, transparent 1.2px);
    background-size: 22px 22px;
    -webkit-mask-image: linear-gradient(100deg, transparent 35%, #000 100%);
    mask-image: linear-gradient(100deg, transparent 35%, #000 100%);
}
.tv-hero__decor::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 120px;
    background: linear-gradient(to bottom, transparent, rgba(0,0,0,.18));
}
.tv-hero__blob { position: absolute; border-radius: 50%; filter: blur(70px); }
.tv-hero__blob--1 { width: 520px; height: 520px; right: -140px; top: -220px; background: var(--h-glow-1); }
.tv-hero__blob--2 { width: 420px; height: 420px; left: -160px; bottom: -260px; background: var(--h-glow-2); }
.tv-hero__ring {
    position: absolute; width: 380px; height: 380px; right: 8%; bottom: -230px; border-radius: 50%;
    border: 1px solid rgba(255,255,255,.14);
    box-shadow: 0 0 0 40px rgba(255,255,255,.03), 0 0 0 80px rgba(255,255,255,.02);
}

/* Photo mode: car picture on the right, dark gradient on the left for the text */
.tv-hero__photo {
    position: absolute; inset: 0; z-index: 0;
    background-size: cover; background-repeat: no-repeat;
    transform: scale(1.04); animation: tv-hero-zoom 14s ease-out forwards;
}
@keyframes tv-hero-zoom { to { transform: scale(1); } }
.tv-hero__shade {
    position: absolute; inset: 0; z-index: 1;
    background:
        linear-gradient(90deg, rgba(8,10,14,.97) 0%, rgba(8,10,14,.90) 30%, rgba(8,10,14,.55) 58%, rgba(8,10,14,.15) 100%),
        linear-gradient(to top, rgba(8,10,14,.75) 0%, transparent 45%);
}
.tv-hero--photo { background: #0b0d12; }
.tv-hero--photo .tv-hero__blob, .tv-hero--photo .tv-hero__ring, .tv-hero--photo .tv-hero__decor::before { display: none; }
.tv-hero--photo .tv-hero__decor::after {
    top: auto; height: 4px; background: linear-gradient(90deg, var(--tv-accent), rgba(var(--tv-rgb), .2) 60%, transparent);
}
.tv-hero--photo .tv-hero__blob--1 { display: block; width: 420px; height: 420px; left: -200px; right: auto; top: -200px; background: rgba(var(--tv-rgb), .22); }
.tv-hero--photo { --h-accent: var(--primary-color, #82b440); --h-focus: var(--primary-color, #82b440); --h-text: rgba(255,255,255,.86); --h-muted: rgba(255,255,255,.62); }
.tv-hero--photo .tv-hero__eyebrow { background: rgba(var(--tv-rgb), .16); border-color: rgba(var(--tv-rgb), .45); }
.tv-hero--photo .tv-hero__stats li { background: linear-gradient(160deg, rgba(255,255,255,.16), rgba(255,255,255,.04)); border-color: rgba(255,255,255,.2); }
.tv-hero--photo .tv-hero__stats strong { color: #fff !important; }
.tv-hero--photo .tv-hero__stats li::after { content: ""; position: absolute; left: 22px; top: 0; width: 28px; height: 3px; border-radius: 0 0 3px 3px; background: var(--tv-accent); }

/* Breadcrumb */
.tv-hero .tv-hero__crumbs { margin: 0 0 28px; }
.tv-hero .tv-hero__crumbs ol { display: flex !important; flex-flow: row wrap !important; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; font-size: 14px; }
.tv-hero .tv-hero__crumbs li { display: inline-flex !important; align-items: center; width: auto !important; flex: 0 0 auto; margin: 0; padding: 0; color: var(--h-muted) !important; list-style: none; }
.tv-hero .tv-hero__crumbs li::before, .tv-hero .tv-hero__crumbs li::after { display: none !important; content: none !important; }
.tv-hero .tv-hero__crumbs a { display: inline !important; color: var(--h-text) !important; text-decoration: none; }
.tv-hero .tv-hero__crumbs a:hover { color: #fff !important; }
.tv-hero .tv-hero__crumbs svg { width: 14px; height: 14px; display: inline-block !important; color: var(--h-muted) !important; stroke: currentColor !important; }
.tv-hero .tv-hero__crumbs svg path { stroke: currentColor !important; fill: none !important; }
.tv-hero .tv-hero__current { flex: 0 1 auto !important; min-width: 0; }

/* Layout */
.tv-hero__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; align-items: end; }
.tv-hero--split .tv-hero__grid { grid-template-columns: minmax(0, 1fr) auto; }
.tv-hero__main { min-width: 0; }

/* Texts */
.tv-hero .tv-hero__eyebrow {
    display: inline-flex; align-items: center; gap: 8px; margin: 0;
    padding: 6px 14px; border-radius: 999px;
    background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22);
    -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
    color: var(--h-accent) !important; font-size: 13px; font-weight: 600; letter-spacing: .02em; text-transform: none;
}
.tv-hero .tv-hero__eyebrow svg { width: 16px; height: 16px; color: var(--h-accent) !important; }
.tv-hero .tv-hero__title {
    color: #fff !important; font-size: clamp(28px, 4.2vw, 46px); font-weight: 800; line-height: 1.15;
    letter-spacing: -.01em; margin: 18px 0 14px; max-width: 820px;
    text-shadow: 0 2px 24px rgba(0,0,0,.18);
}
.tv-hero .tv-hero__lead { color: var(--h-text) !important; font-size: 17px; line-height: 1.6; max-width: 680px; margin: 0; }
.tv-hero__extra { margin-top: 28px; }

/* Meta line (date, reading time…) */
.tv-hero .tv-hero__meta { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0; font-size: 14px; color: var(--h-text) !important; }
.tv-hero .tv-hero__meta li { display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 7px 14px; border-radius: 999px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.16); color: var(--h-text) !important; list-style: none; }
.tv-hero .tv-hero__meta li::before { display: none !important; }
.tv-hero .tv-hero__meta strong { color: #fff !important; font-weight: 600; }
.tv-hero .tv-hero__meta svg { width: 18px; height: 18px; color: var(--h-accent) !important; }

/* Search field */
.tv-hero .tv-hero__search { display: flex; align-items: center; gap: 10px; max-width: 560px; margin: 0; padding: 0 18px; height: 54px; border-radius: 14px; background: #fff; border: 2px solid transparent; box-shadow: 0 18px 40px -18px rgba(0,0,0,.55); cursor: text; transition: border-color .15s, box-shadow .15s; }
.tv-hero .tv-hero__search:focus-within { border-color: var(--h-focus); box-shadow: 0 0 0 4px rgba(255,255,255,.25), 0 18px 40px -18px rgba(0,0,0,.55); }
.tv-hero .tv-hero__search svg { position: static !important; width: 20px; height: 20px; color: #94a3b8 !important; flex-shrink: 0; }
.tv-hero .tv-hero__search input { flex: 1; min-width: 0; height: 100%; border: 0 !important; outline: 0; background: transparent !important; box-shadow: none !important; padding: 0 !important; font-size: 15px; color: #0f172a; }
.tv-hero .tv-hero__note { margin: 12px 0 0; color: var(--h-muted) !important; font-size: 14px; }

/* Stats (right column) — glass cards */
.tv-hero .tv-hero__stats { display: grid; grid-auto-flow: column; grid-auto-columns: auto; gap: 12px; list-style: none; margin: 0; padding: 0; }
.tv-hero .tv-hero__stats li {
    position: relative; margin: 0; padding: 18px 22px; min-width: 130px; border-radius: 16px; list-style: none;
    background: linear-gradient(160deg, rgba(255,255,255,.18), rgba(255,255,255,.06));
    border: 1px solid rgba(255,255,255,.22);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    box-shadow: 0 12px 30px -16px rgba(0,0,0,.45);
}
.tv-hero .tv-hero__stats li::before { display: none !important; }
.tv-hero .tv-hero__stats strong { display: block; color: #fff !important; font-size: 30px; line-height: 1; font-weight: 800; }
.tv-hero .tv-hero__stats span { display: block; margin-top: 8px; color: var(--h-text) !important; font-size: 13px; }

/* Custom dropdowns placed in the header follow the variant */
.tv-hero .tv-dd.is-open .tv-dd__btn, .tv-hero .tv-dd__btn:focus-visible { border-color: var(--h-focus); box-shadow: 0 0 0 4px rgba(255,255,255,.25), 0 18px 40px -18px rgba(0,0,0,.55); }

@media (max-width: 991px) {
    .tv-hero { min-height: 0; }
    .tv-hero--split .tv-hero__grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
    .tv-hero .tv-hero__stats { grid-auto-columns: 1fr; }
    .tv-hero .tv-hero__stats li { min-width: 0; }
    .tv-hero__ring { display: none; }
    .tv-hero__shade { background: linear-gradient(90deg, rgba(8,10,14,.94) 0%, rgba(8,10,14,.78) 60%, rgba(8,10,14,.55) 100%), linear-gradient(to top, rgba(8,10,14,.8) 0%, transparent 50%); }
}
@media (prefers-reduced-motion: reduce) {
    .tv-hero__photo { animation: none; transform: none; }
}
@media (max-width: 575px) {
    .tv-hero { padding: 32px 0 60px; }
    .tv-hero .tv-hero__crumbs { margin-bottom: 22px; }
    .tv-hero .tv-hero__lead { font-size: 16px; }
    .tv-hero .tv-hero__stats li { padding: 14px; }
    .tv-hero .tv-hero__stats strong { font-size: 22px; }
    .tv-hero .tv-hero__stats span { font-size: 12px; }
    .tv-hero__blob--1 { width: 320px; height: 320px; }
}
@media print {
    .tv-hero { background: none; color: #000; min-height: 0; padding: 0 0 16px; }
    .tv-hero__bg, .tv-hero .tv-hero__crumbs, .tv-hero__below, .tv-hero__extra .tv-hero__search { display: none !important; }
    .tv-hero .tv-hero__title, .tv-hero .tv-hero__meta strong { color: #000 !important; text-shadow: none; }
}
