/* =====================================================================
   DriveLess — front office
   Thème sombre, accent turquoise, titres condensés (maquette « image 1 »).
   Propriétés logiques (inline/block) pour le RTL arabe.
   ===================================================================== */

:root {
    --bg: #06080a;
    --bg-2: #0a0f12;
    --panel: #0f1519;
    --panel-2: #131b20;
    --panel-3: #18222866;
    --line: rgba(255, 255, 255, .08);
    --line-2: rgba(255, 255, 255, .14);
    --text: #f3f6f7;
    --text-2: #c9d2d6;
    --muted: #8d9ba1;
    --accent: #36cbb4;
    --accent-2: #24ae9b;
    --accent-3: #1b8577;
    --accent-soft: rgba(var(--accent-rgb), .12);
    --accent-glow: rgba(var(--accent-rgb), .35);
    --coral: #f26d5f;
    --danger: #f0616d;
    --warning: #f2b84b;
    --success: #3ccf8e;
    --radius: 14px;
    --radius-sm: 10px;
    --radius-lg: 22px;
    --shadow: 0 20px 50px -20px rgba(0, 0, 0, .8);
    --shadow-accent: 0 12px 30px -10px rgba(var(--accent-rgb), .45);
    --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --font-display: "Barlow Condensed", "Oswald", "Arial Narrow", sans-serif;
    --container: 1200px;
    --header-h: 76px;
    --ease: cubic-bezier(.22, .8, .28, 1);
    --ico-contrast: var(--on-accent);
    /* Thème personnalisable (Site builder › Apparence) */
    --accent-rgb: 54, 203, 180;
    --accent-hover: #47dcc4;
    --on-accent: #04110f;
    --bg-rgb: 6, 8, 10;
    --panel-rgb: 15, 21, 25;
    --coral-rgb: 242, 109, 95;
    --font-size: 15px;
    color-scheme: dark;
}

html[dir="rtl"] {
    --font: "Cairo", "Inter", system-ui, sans-serif;
    --font-display: "Cairo", "Barlow Condensed", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    min-height: 100vh;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: var(--font-size);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.15; font-weight: 700; }
p { margin: 0 0 1em; }
::selection { background: var(--accent); color: #041210; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 24px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 1000; background: var(--accent); color: #041210; padding: 10px 16px; border-radius: 8px; font-weight: 600; }
.skip-link:focus { top: 12px; }

.ico { width: 1.15em; height: 1.15em; flex-shrink: 0; }
.ico-lg { width: 28px; height: 28px; }
.ico-xl { width: 38px; height: 38px; }
html[dir="rtl"] .ico-arrow-right, html[dir="rtl"] .ico-arrow-left,
html[dir="rtl"] .ico-chevron-right, html[dir="rtl"] .ico-chevron-left { transform: scaleX(-1); }

/* ---------------------------------------------------------------------
   Boutons
   --------------------------------------------------------------------- */
.btn {
    --btn-bg: transparent;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 44px;
    padding: 10px 24px;
    border: 1px solid transparent;
    border-radius: 999px;
    background: var(--btn-bg);
    font-weight: 600;
    font-size: 14px;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    isolation: isolate;
    transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .25s, border-color .25s, color .25s;
}
.btn::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(110deg, transparent 20%, rgba(255, 255, 255, .35) 45%, transparent 70%);
    transform: translateX(-120%);
    transition: transform .7s var(--ease);
}
.btn:hover::after { transform: translateX(120%); }
.btn:active { transform: scale(.97); }
.btn .ico { transition: transform .25s var(--ease); }
.btn:hover .ico-arrow-right { transform: translateX(4px); }
html[dir="rtl"] .btn:hover .ico-arrow-right { transform: scaleX(-1) translateX(4px); }
.btn:focus-visible, .icon-btn:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, button:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

.btn-primary { --btn-bg: var(--accent); color: var(--on-accent); }
.btn-primary:hover { --btn-bg: var(--accent-hover); box-shadow: var(--shadow-accent); transform: translateY(-2px); }
.btn-outline { border-color: var(--line-2); color: var(--text); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.btn-ghost { color: var(--text-2); padding-inline: 14px; }
.btn-ghost:hover { color: var(--accent); }
.btn-dark { --btn-bg: var(--bg-2); color: var(--text); border-color: var(--line); }
.btn-dark:hover { border-color: var(--accent); }
.btn-danger { --btn-bg: transparent; color: var(--danger); border-color: rgba(240, 97, 109, .4); }
.btn-danger:hover { --btn-bg: rgba(240, 97, 109, .1); }
.btn-block { width: 100%; }
.btn-lg { min-height: 52px; padding-inline: 30px; font-size: 15px; }
.btn-sm { min-height: 36px; padding: 7px 16px; font-size: 13px; }
.btn[disabled], .btn.is-loading { opacity: .6; pointer-events: none; }
.btn.is-loading::before {
    content: ""; width: 16px; height: 16px; border-radius: 50%;
    border: 2px solid currentColor; border-inline-end-color: transparent;
    animation: spin .8s linear infinite;
}

.icon-btn {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 0;
    background: var(--accent);
    color: var(--on-accent);
    transition: transform .3s var(--ease), box-shadow .3s;
}
.icon-btn:hover { transform: scale(1.08) rotate(-8deg); box-shadow: var(--shadow-accent); }
html[dir="rtl"] .icon-btn:hover { transform: scale(1.08) rotate(8deg); }

.link-arrow { display: inline-flex; align-items: center; gap: 14px; font-size: 14px; color: var(--text-2); transition: color .2s; }
.link-arrow:hover { color: var(--accent); }

/* ---------------------------------------------------------------------
   En-tête
   --------------------------------------------------------------------- */
.site-header {
    position: fixed;
    inset-inline: 0;
    top: 0;
    z-index: 100;
    height: var(--header-h);
    transition: background-color .35s, box-shadow .35s, height .35s, backdrop-filter .35s;
}
.site-header.is-scrolled, body:not(.page-accueil) .site-header {
    background: rgba(var(--bg-rgb), .82);
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    box-shadow: 0 1px 0 var(--line);
}
.site-header.is-scrolled { --header-h: 66px; }
.header-inner { display: flex; align-items: center; gap: 28px; height: 100%; }
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand img { height: 40px; width: auto; transition: transform .3s var(--ease); }
.brand:hover img { transform: scale(1.04); }

.main-nav { flex: 1; display: flex; justify-content: center; }
.main-nav ul { display: flex; gap: 34px; margin: 0; padding: 0; list-style: none; }
.main-nav a {
    position: relative;
    display: block;
    padding: 8px 0;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-2);
    transition: color .2s;
}
.main-nav a::after {
    content: "";
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    height: 2px;
    border-radius: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: var(--origin, left);
    transition: transform .3s var(--ease);
}
html[dir="rtl"] .main-nav a::after { --origin: right; }
.main-nav a:hover { color: var(--text); }
.main-nav a:hover::after, .main-nav a.is-active::after { transform: scaleX(1); }
.main-nav a.is-active { color: var(--accent); }

.header-actions { display: flex; align-items: center; gap: 12px; }
.header-actions .btn { min-height: 40px; padding-inline: 22px; }

.lang-switch { position: relative; }
.lang-switch > button {
    display: flex; align-items: center; gap: 6px;
    height: 40px; padding: 0 12px;
    border: 1px solid var(--line); border-radius: 999px;
    background: transparent; font-size: 13px; font-weight: 600; text-transform: uppercase;
    color: var(--text-2);
    transition: border-color .2s, color .2s;
}
.lang-switch > button:hover { border-color: var(--accent); color: var(--accent); }
.dropdown {
    position: absolute;
    inset-inline-end: 0;
    top: calc(100% + 10px);
    min-width: 180px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(var(--panel-rgb), .97);
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px) scale(.98);
    transform-origin: top;
    transition: opacity .2s, transform .25s var(--ease), visibility .2s;
}
.is-open > .dropdown { opacity: 1; visibility: visible; transform: none; }
.dropdown a, .dropdown button {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    width: 100%; padding: 9px 12px; border: 0; border-radius: 8px;
    background: none; font-size: 14px; color: var(--text-2); text-align: start;
}
.dropdown a:hover, .dropdown button:hover { background: var(--accent-soft); color: var(--text); }
.dropdown a.is-active { color: var(--accent); }
.dropdown hr { border: 0; border-top: 1px solid var(--line); margin: 6px 0; }
.dropdown small { color: var(--muted); }

.user-chip {
    display: flex; align-items: center; gap: 10px;
    height: 40px; padding: 0 14px 0 4px;
    border: 1px solid var(--line); border-radius: 999px; background: none;
    font-size: 13px; font-weight: 600;
}
html[dir="rtl"] .user-chip { padding: 0 4px 0 14px; }
.avatar {
    display: grid; place-items: center;
    width: 32px; height: 32px; border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent-3));
    color: var(--on-accent); font-size: 12px; font-weight: 700;
}

.burger { display: none; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 12px; background: none; place-items: center; }

/* ---------------------------------------------------------------------
   Hero (accueil)
   --------------------------------------------------------------------- */
.hero {
    position: relative;
    min-height: 780px;
    padding-top: calc(var(--header-h) + 60px);
    overflow: hidden;
    isolation: isolate;
}
.hero-slides { position: absolute; inset: 0; z-index: -2; }
.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1.2s ease;
}
.hero-slide.is-active { opacity: 1; }
.hero-slide img {
    position: absolute;
    inset-block: 0;
    inset-inline-end: 0;
    width: 72%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1.12);
    will-change: transform;
}
.hero-slide.is-active img { animation: kenburns 9s ease-out forwards; }
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(90deg, var(--bg) 30%, rgba(var(--bg-rgb), .9) 44%, rgba(var(--bg-rgb), .35) 68%, rgba(var(--bg-rgb), .5) 100%),
        linear-gradient(0deg, var(--bg) 2%, rgba(var(--bg-rgb), .1) 40%, rgba(var(--bg-rgb), .55) 100%);
}
html[dir="rtl"] .hero::before {
    background:
        linear-gradient(270deg, var(--bg) 30%, rgba(var(--bg-rgb), .9) 44%, rgba(var(--bg-rgb), .35) 68%, rgba(var(--bg-rgb), .5) 100%),
        linear-gradient(0deg, var(--bg) 2%, rgba(var(--bg-rgb), .1) 40%, rgba(var(--bg-rgb), .55) 100%);
}
.hero-glow {
    position: absolute; z-index: -1; pointer-events: none;
    width: 620px; height: 620px; border-radius: 50%;
    inset-inline-end: 8%; top: 18%;
    background: radial-gradient(circle, rgba(var(--accent-rgb), .18), transparent 62%);
    filter: blur(10px);
}

.hero-title {
    margin: 0 0 22px;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(54px, 7.6vw, 104px);
    line-height: .92;
    letter-spacing: -.01em;
    text-transform: uppercase;
}
html[dir="rtl"] .hero-title { line-height: 1.15; font-size: clamp(44px, 6vw, 82px); letter-spacing: 0; }
.hero-title .line { display: block; overflow: hidden; padding-bottom: .1em; margin-bottom: -.08em; }
.hero-title .line > span { display: inline-block; }
.hero-title .accent { color: var(--accent); }
.hero-lead { max-width: 420px; font-size: 18px; line-height: 1.55; color: var(--text-2); margin-bottom: 34px; white-space: pre-line; }

.hero-text > * { transition: opacity .6s var(--ease), transform .8s var(--ease); }
.hero-text.is-changing > * { opacity: 0; transform: translateY(18px); }
.hero.is-ready .hero-title .line > span { animation: lineUp 1s var(--ease) both; }
.hero.is-ready .hero-title .line:nth-child(2) > span { animation-delay: .12s; }
.hero.is-ready .hero-lead { animation: fadeUp .9s .3s var(--ease) both; }

.hero-dots {
    position: absolute;
    inset-inline-end: 7%;
    top: 360px;
    display: flex;
    gap: 10px;
    z-index: 3;
}
.hero-dots button {
    width: 9px; height: 9px; padding: 0; border: 1px solid rgba(255, 255, 255, .5); border-radius: 50%;
    background: transparent; transition: background .3s, width .35s var(--ease), border-radius .35s;
}
.hero-dots button.is-active { background: var(--accent); border-color: var(--accent); width: 26px; border-radius: 6px; }

.hero-bottom {
    display: grid;
    grid-template-columns: 330px 1fr;
    align-items: end;
    gap: 0;
    position: relative;
    z-index: 2;
}

/* Carte de recherche */
.search-card {
    position: relative;
    z-index: 3;
    padding: 22px 18px 20px;
    border: 1px solid var(--line-2);
    border-radius: var(--radius);
    background: rgba(var(--panel-rgb), .86);
    backdrop-filter: blur(16px) saturate(130%);
    -webkit-backdrop-filter: blur(16px) saturate(130%);
    box-shadow: var(--shadow);
}
.search-card h2 { font-size: 17px; font-weight: 700; margin-bottom: 18px; }
.search-card .field + .field, .search-card .field-row + .field, .search-card .field + .field-row { margin-top: 10px; }
.search-card .field-row > .field + .field { margin-top: 0; } /* deux champs côte à côte (dates) : alignés */
.search-card .btn { margin-top: 16px; }
.search-card .one-way {
    display: flex; align-items: center; gap: 8px;
    margin-top: 10px; font-size: 12.5px; color: var(--muted); cursor: pointer; user-select: none;
}
.search-card .one-way input { accent-color: var(--accent); }
.search-card [data-retour-agence] { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s var(--ease), margin .35s; margin-top: 0; }
.search-card [data-retour-agence] > * { overflow: hidden; }
.search-card [data-retour-agence].is-open { grid-template-rows: 1fr; margin-top: 10px; }

.field {
    position: relative;
    display: block;
    padding: 9px 40px 9px 12px;
    border: 1px solid var(--line-2);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, .02);
    cursor: pointer;
    transition: border-color .2s, background-color .2s, box-shadow .2s;
}
html[dir="rtl"] .field { padding: 9px 12px 9px 40px; }
.field:hover { border-color: rgba(var(--accent-rgb), .5); }
.field:focus-within, .field.is-focus { border-color: var(--accent); background: rgba(var(--accent-rgb), .05); box-shadow: 0 0 0 3px rgba(var(--accent-rgb), .12); }
.field .label { display: block; font-size: 11.5px; color: var(--muted); line-height: 1.3; }
.field select, .field input, .field .value {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    outline: 0;
    background: transparent;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--text);
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    line-height: 1.5;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.field select option { background: var(--panel); color: var(--text); }
.field .value.is-placeholder { color: var(--muted); font-weight: 400; }
.field > .ico {
    position: absolute;
    inset-inline-end: 13px;
    top: 50%;
    width: 17px;
    height: 17px;
    transform: translateY(-50%);
    color: var(--text-2);
    pointer-events: none;
}
.field-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.field { min-width: 0; }
.field-row .field { padding-inline-end: 34px; }
.field-row .field > .ico { inset-inline-end: 10px; }

/* Bandeau des atouts */
.features-panel {
    position: relative;
    margin-inline-start: -12px;
    margin-bottom: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding: 26px 16px 24px 64px;
    border: 1px solid var(--line-2);
    border-inline-start: 0;
    border-radius: 0 var(--radius) var(--radius) 0;
    background: linear-gradient(180deg, rgba(var(--panel-rgb), .92), rgba(var(--panel-rgb), .96));
    backdrop-filter: blur(10px);
    clip-path: polygon(46px 0, 100% 0, 100% 100%, 0 100%);
}
html[dir="rtl"] .features-panel {
    padding: 26px 64px 24px 16px;
    border-radius: var(--radius) 0 0 var(--radius);
    clip-path: polygon(0 0, calc(100% - 46px) 0, 100% 100%, 0 100%);
}
.features-panel::before {
    content: "";
    position: absolute;
    inset-block: 0;
    inset-inline-start: 0;
    width: 50px;
    background: linear-gradient(to bottom right, transparent 49%, var(--line-2) 50%, transparent 51%);
}
html[dir="rtl"] .features-panel::before { background: linear-gradient(to bottom left, transparent 49%, var(--line-2) 50%, transparent 51%); }
.feature { padding: 4px 22px; border-inline-start: 1px solid var(--line); }
.feature:first-child { border-inline-start: 0; }
.feature .ico { width: 34px; height: 34px; color: var(--accent); stroke-width: 1.5; margin-bottom: 16px; transition: transform .4s var(--ease); }
.feature:hover .ico { transform: translateY(-4px) scale(1.08); }
.feature h3 { font-size: 14.5px; font-weight: 700; line-height: 1.3; margin-bottom: 10px; max-width: 130px; }
.feature p { font-size: 12px; color: var(--muted); line-height: 1.5; margin: 0; max-width: 150px; }

/* ---------------------------------------------------------------------
   Sections
   --------------------------------------------------------------------- */
.section { padding-block: 90px; position: relative; }
.section-sm { padding-block: 50px; }
.eyebrow {
    display: inline-block;
    margin-bottom: 8px;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--accent);
}
html[dir="rtl"] .eyebrow { letter-spacing: 0; font-size: 13px; }
.section-title { font-size: clamp(26px, 3vw, 34px); font-weight: 700; letter-spacing: -.01em; white-space: pre-line; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.section-head .section-title { margin: 0; }
.lead { color: var(--text-2); font-size: 17px; }
.muted { color: var(--muted); }

/* Cartes véhicules */
.cars-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.car-card {
    position: relative;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: linear-gradient(180deg, var(--panel), var(--bg-2));
    overflow: hidden;
    transition: transform .45s var(--ease), border-color .35s, box-shadow .45s var(--ease);
    isolation: isolate;
}
.car-card::before {
    content: "";
    position: absolute;
    inset: -1px;
    z-index: -1;
    border-radius: inherit;
    background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), rgba(var(--accent-rgb), .16), transparent 45%);
    opacity: 0;
    transition: opacity .4s;
}
.car-card:hover { transform: translateY(-8px); border-color: rgba(var(--accent-rgb), .45); box-shadow: 0 26px 50px -22px rgba(0, 0, 0, .9), 0 0 0 1px rgba(var(--accent-rgb), .12); }
.car-card:hover::before { opacity: 1; }
.car-media {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: radial-gradient(ellipse at 50% 110%, #24313a 0%, var(--panel-2) 55%, var(--bg-2) 100%);
}
.car-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease), filter .5s; }
.car-media img.is-placeholder { object-fit: contain; padding: 22px 18px 10px; }
.car-card:hover .car-media img { transform: scale(1.08); }
.car-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(var(--panel-rgb), .85)); pointer-events: none; }
.fav-btn {
    position: absolute;
    top: 12px;
    inset-inline-end: 12px;
    z-index: 2;
    display: grid; place-items: center;
    width: 34px; height: 34px;
    border: 0; border-radius: 50%;
    background: rgba(var(--bg-rgb), .45);
    backdrop-filter: blur(6px);
    color: #fff;
    transition: transform .3s var(--ease), color .2s, background .2s;
}
.fav-btn .ico { width: 18px; height: 18px; }
.fav-btn:hover { transform: scale(1.12); }
.fav-btn.is-on { color: var(--coral); }
.fav-btn.is-on .ico { fill: currentColor; animation: pop .45s var(--ease); }
.car-badge {
    position: absolute; top: 12px; inset-inline-start: 12px; z-index: 2;
    padding: 4px 10px; border-radius: 999px;
    background: var(--accent); color: var(--on-accent); font-size: 11px; font-weight: 700;
}
.car-body { display: flex; flex-direction: column; flex: 1; padding: 16px 16px 18px; }
.car-name { font-size: 16px; font-weight: 700; margin: 0 0 2px; }
.car-cat { font-size: 12.5px; color: var(--muted); margin-bottom: 14px; }
.car-specs { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0 0 16px; padding: 0; list-style: none; font-size: 11.5px; color: var(--text-2); }
.car-specs li { display: flex; align-items: center; gap: 5px; }
.car-specs .ico { width: 14px; height: 14px; color: var(--muted); }
.car-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; }
.car-price { font-size: 20px; font-weight: 700; color: var(--accent); line-height: 1; }
.car-price small { font-size: 13px; font-weight: 500; }
.car-price .total { display: block; margin-top: 6px; font-size: 12px; font-weight: 500; color: var(--muted); white-space: nowrap; }
.car-card .btn-sm { opacity: 0; transform: translateX(-8px); transition: opacity .3s, transform .35s var(--ease); }
html[dir="rtl"] .car-card .btn-sm { transform: translateX(8px); }
.car-card:hover .btn-sm, .car-card:focus-within .btn-sm { opacity: 1; transform: none; }
.car-card .stretched { position: absolute; inset: 0; z-index: 1; }
.car-card .fav-btn, .car-card .btn-sm { z-index: 2; }

/* Pourquoi DriveLess */
.why { display: grid; grid-template-columns: 300px 1fr; gap: 40px; align-items: center; }
.check-list { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 12px; }
.check-list li { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--text-2); }
.check-list .ico { width: 19px; height: 19px; color: var(--accent); }

.testimonial {
    position: relative;
    display: grid;
    grid-template-columns: minmax(260px, 42%) 1fr;
    min-height: 330px;
    border-radius: var(--radius-lg);
}
.testimonial-card {
    position: relative;
    z-index: 2;
    align-self: center;
    padding: 36px 30px;
    margin-inline-end: -60px;
    border: 1px solid var(--line-2);
    border-radius: var(--radius-lg);
    background: linear-gradient(160deg, var(--panel-2), var(--bg-2));
    box-shadow: var(--shadow);
}
.testimonial-card .ico-quote { width: 34px; height: 34px; color: var(--accent); margin-bottom: 16px; }
html[dir="rtl"] .testimonial-card .ico-quote { transform: scaleX(-1); }
.testimonial-card blockquote { margin: 0 0 22px; font-size: 17px; line-height: 1.5; color: var(--text); }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-author img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; border: 2px solid var(--accent); }
.testimonial-author strong { display: block; font-size: 14px; }
.testimonial-author span { font-size: 12px; color: var(--muted); }
.testimonial-media {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    clip-path: polygon(14% 0, 100% 0, 100% 100%, 0 100%, 6% 55%);
}
html[dir="rtl"] .testimonial-media { clip-path: polygon(0 0, 86% 0, 94% 55%, 100% 100%, 0 100%); }
.testimonial-media img { width: 100%; height: 115%; object-fit: cover; }

/* Bannière fidélité */
.rewards {
    position: relative;
    display: flex;
    align-items: center;
    gap: 34px;
    padding: 28px 40px;
    border: 1px solid rgba(var(--accent-rgb), .35);
    border-radius: var(--radius);
    background: linear-gradient(100deg, #0d2a28 0%, #124b45 45%, #1a6b62 100%);
    overflow: hidden;
    isolation: isolate;
}
.rewards::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: radial-gradient(500px circle at var(--mx, 70%) 50%, rgba(255, 255, 255, .12), transparent 50%);
    transition: background .2s;
}
.rewards-icon {
    display: grid; place-items: center; flex-shrink: 0;
    width: 74px; height: 74px; border-radius: 50%;
    background: var(--accent); color: #062a26;
    animation: floaty 4s ease-in-out infinite;
}
.rewards-icon .ico { width: 34px; height: 34px; }
.rewards h2 { margin: 0 0 4px; font-size: 22px; color: var(--accent); }
.rewards p { margin: 0; color: var(--text-2); font-size: 14px; white-space: pre-line; }
.rewards .btn { margin-inline-start: auto; min-width: 180px; justify-content: space-between; }

/* Compteurs */
.counters {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin-top: 16px;
    padding: 18px 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--bg-2);
}
.counter { display: flex; align-items: center; justify-content: center; gap: 16px; padding: 6px 10px; border-inline-start: 1px solid var(--line); }
.counter:first-child { border-inline-start: 0; }
.counter .ico { width: 34px; height: 34px; color: var(--coral); stroke-width: 1.5; }
.counter strong { display: block; font-size: 22px; line-height: 1.1; color: var(--coral); font-variant-numeric: tabular-nums; }
.counter span { font-size: 12px; color: var(--muted); }

/* ---------------------------------------------------------------------
   Pages intérieures
   --------------------------------------------------------------------- */
.page-hero {
    position: relative;
    padding: calc(var(--header-h) + 70px) 0 60px;
    overflow: hidden;
    isolation: isolate;
    border-bottom: 1px solid var(--line);
}
.page-hero::before {
    content: "";
    position: absolute; inset: 0; z-index: -1;
    background:
        radial-gradient(800px 300px at 85% 0%, rgba(var(--accent-rgb), .16), transparent 60%),
        linear-gradient(180deg, var(--bg-2), var(--bg));
}
.page-hero .bg {
    position: absolute; inset: 0; z-index: -2;
    background-size: cover; background-position: center; opacity: .18;
}
.page-hero h1 { font-family: var(--font-display); font-size: clamp(40px, 5vw, 64px); font-weight: 800; text-transform: uppercase; line-height: 1; margin-bottom: 12px; }
html[dir="rtl"] .page-hero h1 { line-height: 1.3; }
.page-hero h1 .accent { color: var(--accent); }
.page-hero p { max-width: 640px; color: var(--text-2); font-size: 16px; margin: 0; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; padding: 0; list-style: none; font-size: 13px; color: var(--muted); }
.breadcrumb li + li::before { content: "/"; margin-inline-end: 8px; opacity: .5; }
.breadcrumb a:hover { color: var(--accent); }

.panel {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel);
    padding: 24px;
}
.panel-title { font-size: 17px; margin-bottom: 18px; display: flex; align-items: center; gap: 10px; }
.panel-title .ico { color: var(--accent); }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.prose h2, .prose h3 { margin-top: 1.6em; }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--text-2); }
.prose a { color: var(--accent); }

/* Formulaires */
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 18px; }
.form-grid .full { grid-column: 1 / -1; }
.form-group { display: flex; flex-direction: column; gap: 7px; }
.form-group label, .form-label { font-size: 13px; font-weight: 600; color: var(--text-2); }
.form-group label .req { color: var(--accent); }
.input, .form-group input:not([type=checkbox]):not([type=radio]):not([type=file]), .form-group select, .form-group textarea {
    width: 100%;
    min-height: 46px;
    padding: 11px 14px;
    border: 1px solid var(--line-2);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, .025);
    color: var(--text);
    font-size: 14px;
    transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.form-group select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%238d9ba1' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-inline-end: 38px; }
html[dir="rtl"] .form-group select { background-position: left 14px center; }
.form-group select option { background: var(--panel); }
.form-group textarea { min-height: 130px; resize: vertical; }
.input:focus, .form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: 0;
    border-color: var(--accent);
    background-color: rgba(var(--accent-rgb), .04);
    box-shadow: 0 0 0 3px rgba(var(--accent-rgb), .14);
}
.form-group.has-error input, .form-group.has-error select, .form-group.has-error textarea { border-color: var(--danger); }
.form-error { font-size: 12.5px; color: var(--danger); }
.form-hint { font-size: 12.5px; color: var(--muted); }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--text-2); cursor: pointer; }
.check input { margin-top: 3px; accent-color: var(--accent); width: 17px; height: 17px; flex-shrink: 0; }
.check a { color: var(--accent); }
.input-icon { position: relative; }
.input-icon .ico { position: absolute; inset-inline-start: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); width: 18px; height: 18px; pointer-events: none; }
.input-icon input { padding-inline-start: 44px !important; }
.input-icon .toggle-pass { position: absolute; inset-inline-end: 8px; top: 50%; transform: translateY(-50%); border: 0; background: none; color: var(--muted); padding: 6px; }
.honeypot { position: absolute !important; inset-inline-start: -9999px; }

.tabs { display: flex; gap: 6px; padding: 5px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255, 255, 255, .02); }
.tabs a, .tabs button { flex: 1; padding: 9px 14px; border: 0; border-radius: 999px; background: none; text-align: center; font-size: 13.5px; font-weight: 600; color: var(--muted); transition: background .25s, color .25s; }
.tabs .is-active { background: var(--accent); color: var(--on-accent); }

/* Messages */
.flash-stack { position: fixed; top: calc(var(--header-h) + 14px); inset-inline-end: 20px; z-index: 300; display: grid; gap: 10px; max-width: min(420px, calc(100vw - 40px)); }
.flash {
    display: flex; align-items: flex-start; gap: 12px;
    padding: 14px 16px; border-radius: 12px;
    border: 1px solid var(--line-2); background: rgba(var(--panel-rgb), .96); backdrop-filter: blur(10px);
    box-shadow: var(--shadow); font-size: 14px;
    animation: slideIn .5s var(--ease) both;
}
.flash .ico { margin-top: 2px; }
.flash-success { border-color: rgba(60, 207, 142, .45); }
.flash-success .ico { color: var(--success); }
.flash-error { border-color: rgba(240, 97, 109, .45); }
.flash-error .ico { color: var(--danger); }
.flash-info .ico { color: var(--accent); }
.flash button { margin-inline-start: auto; border: 0; background: none; color: var(--muted); padding: 0; }
.flash.is-leaving { animation: slideOut .4s var(--ease) forwards; }
.alert { display: flex; gap: 12px; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .03); font-size: 14px; margin-bottom: 18px; }
.alert-error { border-color: rgba(240, 97, 109, .45); background: rgba(240, 97, 109, .07); color: #ffc7cc; }
.alert-success { border-color: rgba(60, 207, 142, .45); background: rgba(60, 207, 142, .07); }
.alert-info { border-color: rgba(var(--accent-rgb), .35); background: var(--accent-soft); }
.alert .ico { flex-shrink: 0; margin-top: 2px; }

/* Authentification */
.auth-page { position: relative; min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; isolation: isolate; }
.auth-visual { position: relative; overflow: hidden; }
.auth-visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: kenburns 18s ease-out infinite alternate; }
.auth-visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(var(--bg-rgb), .2), var(--bg)), linear-gradient(0deg, rgba(var(--bg-rgb), .85), transparent 50%); }
html[dir="rtl"] .auth-visual::after { background: linear-gradient(270deg, rgba(var(--bg-rgb), .2), var(--bg)), linear-gradient(0deg, rgba(var(--bg-rgb), .85), transparent 50%); }
.auth-visual .caption { position: absolute; z-index: 2; inset-inline-start: 48px; bottom: 56px; max-width: 420px; }
.auth-visual .caption h2 { font-family: var(--font-display); font-size: 54px; font-weight: 800; text-transform: uppercase; line-height: .95; }
html[dir="rtl"] .auth-visual .caption h2 { line-height: 1.3; font-size: 44px; }
.auth-visual .caption h2 span { color: var(--accent); }
.auth-form-wrap { display: flex; align-items: center; justify-content: center; padding: calc(var(--header-h) + 30px) 24px 50px; }
.auth-card { width: 100%; max-width: 460px; }
.auth-card.wide { max-width: 640px; }
.auth-card h1 { font-size: 30px; margin-bottom: 8px; }
.auth-card .sub { color: var(--muted); margin-bottom: 26px; }
.auth-card form { display: grid; gap: 16px; }
.auth-foot { margin-top: 22px; text-align: center; font-size: 14px; color: var(--muted); }
.auth-foot a, .link { color: var(--accent); font-weight: 600; }
.link:hover { text-decoration: underline; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.demo-accounts { margin-top: 26px; padding: 14px 16px; border: 1px dashed var(--line-2); border-radius: 12px; font-size: 12.5px; color: var(--muted); }
.demo-accounts code { color: var(--text-2); }
.demo-accounts button { border: 0; background: none; color: var(--accent); padding: 0; font-size: 12.5px; text-decoration: underline; }

/* ---------------------------------------------------------------------
   Pied de page
   --------------------------------------------------------------------- */
.site-footer { position: relative; margin-top: 90px; border-top: 1px solid var(--line); background: linear-gradient(180deg, var(--bg-2), var(--bg-2)); }
.site-footer::before { content: ""; position: absolute; inset-inline: 0; top: -1px; height: 1px; background: linear-gradient(90deg, transparent, var(--accent), transparent); opacity: .5; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 40px; padding-block: 64px 40px; }
.footer-brand img { height: 40px; width: auto; margin-bottom: 18px; }
.footer-brand p { color: var(--muted); font-size: 14px; max-width: 300px; }
.site-footer h3 { font-size: 14px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 18px; color: var(--text); }
html[dir="rtl"] .site-footer h3 { letter-spacing: 0; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-links a { font-size: 14px; color: var(--muted); transition: color .2s, padding .25s var(--ease); }
.footer-links a:hover { color: var(--accent); padding-inline-start: 4px; }
.footer-contact { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; font-size: 14px; color: var(--muted); }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact .ico { color: var(--accent); margin-top: 3px; }
.socials { display: flex; gap: 10px; margin-top: 20px; }
.socials a { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line-2); color: var(--text-2); transition: all .25s var(--ease); }
.socials a:hover { background: var(--accent); border-color: var(--accent); color: var(--on-accent); transform: translateY(-3px); }
.socials .ico { width: 17px; height: 17px; }
.footer-bottom { position: relative; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-block: 22px; font-size: 13px; color: var(--muted); }
/* Séparateur aligné sur le contenu (et non sur la marge intérieure du conteneur) */
.footer-bottom::before { content: ""; position: absolute; top: 0; inset-inline: 24px; height: 1px; background: var(--line); }
.footer-bottom a:hover { color: var(--accent); }
.footer-legal { display: block; margin-top: 4px; font-size: 12px; opacity: .8; }
.site-footer h3 a { color: inherit; }
.site-footer h3 a:hover { color: var(--accent); }
.footer-contact a:hover { color: var(--accent); }
.newsletter { display: flex; gap: 8px; margin-top: 14px; }
.newsletter input { flex: 1; min-width: 0; height: 44px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 999px; background: rgba(255, 255, 255, .03); }
.newsletter input:focus { outline: 0; border-color: var(--accent); }

.to-top {
    position: fixed; inset-inline-end: 22px; bottom: 22px; z-index: 90;
    display: grid; place-items: center; width: 46px; height: 46px; border: 0; border-radius: 50%;
    background: var(--accent); color: var(--on-accent); box-shadow: var(--shadow-accent);
    opacity: 0; visibility: hidden; transform: translateY(16px); transition: all .35s var(--ease);
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { transform: translateY(-4px); }

/* ---------------------------------------------------------------------
   Calendrier (sélection de période)
   --------------------------------------------------------------------- */
.dp {
    position: absolute;
    /* Fermé : placé en haut de la page et masqué, pour ne pas rallonger la page sous le pied de page */
    top: 0;
    left: 0;
    visibility: hidden;
    z-index: 400;
    width: 600px;
    max-width: calc(100vw - 24px);
    padding: 18px;
    border: 1px solid var(--line-2);
    border-radius: 16px;
    background: rgba(var(--panel-rgb), .98);
    backdrop-filter: blur(16px);
    box-shadow: 0 30px 70px -20px rgba(0, 0, 0, .95);
    opacity: 0;
    transform: translateY(-6px) scale(.98);
    transform-origin: top left;
    transition: opacity .2s, transform .25s var(--ease), visibility 0s linear .25s;
    pointer-events: none;
}
.dp.is-open { opacity: 1; transform: none; pointer-events: auto; visibility: visible; transition: opacity .2s, transform .25s var(--ease); }
.dp-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.dp-head button { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 50%; background: none; color: var(--text-2); transition: all .2s; }
.dp-head button:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); }
.dp-head button:disabled { opacity: .3; cursor: default; }
.dp-months { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.dp-month h4 { text-align: center; font-size: 14px; font-weight: 700; text-transform: capitalize; margin: 0 0 10px; }
.dp-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px 0; }
.dp-dow { text-align: center; font-size: 11px; color: var(--muted); padding: 4px 0; text-transform: capitalize; }
.dp-day {
    position: relative;
    height: 36px;
    border: 0;
    background: none;
    font-size: 13px;
    color: var(--text);
    font-variant-numeric: tabular-nums;
}
.dp-day span { position: relative; z-index: 1; display: grid; place-items: center; width: 34px; height: 34px; margin: auto; border-radius: 50%; transition: background .15s, color .15s; }
.dp-day:hover:not(:disabled) span { background: rgba(var(--accent-rgb), .2); }
.dp-day:disabled { color: rgba(255, 255, 255, .2); cursor: default; }
.dp-day.is-today span { box-shadow: inset 0 0 0 1px var(--accent); }
.dp-day.in-range { background: rgba(var(--accent-rgb), .12); }
.dp-day.is-start, .dp-day.is-end { background: linear-gradient(90deg, transparent 50%, rgba(var(--accent-rgb), .12) 50%); }
.dp-day.is-end { background: linear-gradient(90deg, rgba(var(--accent-rgb), .12) 50%, transparent 50%); }
html[dir="rtl"] .dp-day.is-start { background: linear-gradient(270deg, transparent 50%, rgba(var(--accent-rgb), .12) 50%); }
html[dir="rtl"] .dp-day.is-end { background: linear-gradient(270deg, rgba(var(--accent-rgb), .12) 50%, transparent 50%); }
.dp-day.is-start.is-end { background: none; }
.dp-day.is-start span, .dp-day.is-end span { background: var(--accent); color: var(--on-accent); font-weight: 700; }
.dp-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 13px; }
.dp-foot label { display: flex; align-items: center; gap: 8px; color: var(--muted); }
.dp-foot select { height: 34px; padding: 0 10px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--panel); color: var(--text); }
.dp-foot .dp-summary { margin-inline-start: auto; color: var(--text-2); }
.dp-foot .dp-summary strong { color: var(--accent); }
.dp-foot .btn { min-height: 36px; padding: 6px 18px; }

/* ---------------------------------------------------------------------
   Animations
   --------------------------------------------------------------------- */
[data-reveal] { opacity: 0; transform: translateY(36px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--delay, 0s); }
[data-reveal="left"] { transform: translateX(-46px); }
[data-reveal="right"] { transform: translateX(46px); }
[data-reveal="zoom"] { transform: scale(.92); }
html[dir="rtl"] [data-reveal="left"] { transform: translateX(46px); }
html[dir="rtl"] [data-reveal="right"] { transform: translateX(-46px); }
[data-reveal].is-visible { opacity: 1; transform: none; }
.no-js [data-reveal] { opacity: 1; transform: none; }

@keyframes kenburns { from { transform: scale(1.14) translate3d(0, 0, 0); } to { transform: scale(1.02) translate3d(-1.5%, 0, 0); } }
@keyframes lineUp { from { transform: translateY(105%); } to { transform: none; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
@keyframes floaty { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-6px) rotate(-4deg); } }
@keyframes pop { 0% { transform: scale(.6); } 60% { transform: scale(1.25); } 100% { transform: scale(1); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes slideIn { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: none; } }
@keyframes slideOut { to { opacity: 0; transform: translateX(30px); } }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 var(--accent-glow); } 50% { box-shadow: 0 0 0 10px transparent; } }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
    [data-reveal] { opacity: 1; transform: none; }
}

/* ---------------------------------------------------------------------
   Responsive
   --------------------------------------------------------------------- */
@media (max-width: 1100px) {
    .main-nav ul { gap: 22px; }
    .cars-grid { grid-template-columns: repeat(2, 1fr); }
    .hero-bottom { grid-template-columns: 320px 1fr; }
    .feature { padding-inline: 14px; }
    .why { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 960px) {
    :root { --header-h: 66px; }
    .burger { display: grid; }
    .main-nav {
        position: fixed;
        inset: var(--header-h) 0 auto 0;
        display: block;
        padding: 12px 24px 24px;
        background: rgba(var(--bg-rgb), .97);
        backdrop-filter: blur(14px);
        border-bottom: 1px solid var(--line);
        clip-path: inset(0 0 100% 0);
        transition: clip-path .45s var(--ease);
    }
    .main-nav.is-open { clip-path: inset(0 0 0 0); }
    .main-nav ul { flex-direction: column; gap: 0; }
    .main-nav a { padding: 14px 0; font-size: 16px; border-bottom: 1px solid var(--line); }
    .main-nav a::after { display: none; }
    .header-actions .btn-outline, .header-actions .btn-primary { display: none; }
    .hero { min-height: 0; padding-top: calc(var(--header-h) + 40px); }
    .hero-slide img { width: 100%; opacity: .55; }
    .hero::before { background: linear-gradient(0deg, var(--bg) 8%, rgba(var(--bg-rgb), .55) 60%, rgba(var(--bg-rgb), .75)); }
    .hero-dots { top: auto; bottom: auto; position: static; margin: 0 0 24px; }
    .hero-bottom { grid-template-columns: 1fr; gap: 16px; }
    .features-panel, html[dir="rtl"] .features-panel { margin: 0; grid-template-columns: repeat(2, 1fr); gap: 22px 0; padding: 22px 10px; clip-path: none; border: 1px solid var(--line-2); border-radius: var(--radius); }
    .features-panel::before { display: none; }
    .feature:nth-child(3) { border-inline-start: 0; }
    .testimonial { grid-template-columns: 1fr; }
    .testimonial-card { margin: 0 0 -60px; }
    .testimonial-media { min-height: 260px; clip-path: none; }
    .rewards { flex-direction: column; text-align: center; padding: 30px 22px; }
    .rewards .btn { margin: 0; }
    .counters { grid-template-columns: repeat(2, 1fr); gap: 16px 0; }
    .counter:nth-child(3) { border-inline-start: 0; }
    .auth-page { grid-template-columns: 1fr; }
    .auth-visual { display: none; }
    .grid-2, .grid-3 { grid-template-columns: 1fr; }
    .dp-months { grid-template-columns: 1fr; }
    .dp-month + .dp-month { display: none; }
    .dp { width: 340px; }
}

@media (max-width: 600px) {
    .container { padding-inline: 16px; }
    .hero-title { font-size: clamp(34px, 10.5vw, 54px); }
    .hero-lead { font-size: 16px; }
    .hero-bottom > * { min-width: 0; }
    .features-panel { grid-template-columns: 1fr 1fr; }
    .feature { padding-inline: 12px; }
    .section { padding-block: 64px; }
    .cars-grid { grid-template-columns: 1fr; }
    .form-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 30px; padding-top: 48px; }
    .section-head { flex-direction: column; align-items: flex-start; }
    .counter { flex-direction: column; text-align: center; gap: 8px; }
    .header-actions .lang-switch > button span { display: none; }
    .user-chip .nom { display: none; }
    .flash-stack { inset-inline: 12px; max-width: none; }
}

/* ---------- Bandeau de consentement (mesure d'audience) ---------- */
.consent { position: fixed; inset-inline: 16px; bottom: 16px; z-index: 400; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; max-width: 760px; margin-inline: auto; padding: 16px 18px; border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--panel); box-shadow: var(--shadow); font-size: 14px; }
.consent[hidden] { display: none; }
.consent p { flex: 1 1 320px; margin: 0; color: var(--text-2); }
.consent a { color: var(--accent); }
.consent-actions { display: flex; gap: 8px; margin-inline-start: auto; }
