/* ==========================================================================
   DSXRent — feuille de style du site public
   Écrite à la main, sans framework : la charte reprend l'identité des documents
   DSXRent (encre profonde + or/ambre) déjà utilisée sur les contrats.
   ========================================================================== */

:root {
    /* Encre & neutres */
    --ink: #0f172a;
    --ink-soft: #1e293b;
    --slate-700: #334155;
    --slate-500: #64748b;
    --slate-400: #94a3b8;
    --slate-200: #e2e8f0;
    --slate-100: #f1f5f9;
    --slate-50: #f8fafc;
    --white: #ffffff;

    /* Accent or & ambre */
    --gold: #b45309;
    --amber: #f59e0b;
    --amber-soft: #fef3c7;
    --amber-line: #fde68a;

    /* États */
    --green: #16a34a;
    --green-soft: #f0fdf4;
    --red: #dc2626;

    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 18px;
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06);
    --shadow: 0 4px 16px rgba(15, 23, 42, .08);
    --shadow-lg: 0 18px 45px rgba(15, 23, 42, .16);

    --container: 1180px;
    --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

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

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

body {
    margin: 0;
    font-family: var(--font);
    color: var(--ink);
    background: var(--white);
    line-height: 1.55;
}

h1, h2, h3 { margin: 0; line-height: 1.2; font-weight: 700; letter-spacing: -.02em; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.page { display: flex; flex-direction: column; min-height: 100vh; }
main { flex: 1; }

.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: 24px;
}

/* ── En-tête ─────────────────────────────────────────────────────────────── */
.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--slate-200);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    height: 68px;
}

.brand { display: inline-flex; align-items: center; gap: 10px; }

.brand-mark {
    width: 38px; height: 38px;
    display: grid; place-items: center;
    background: var(--ink);
    border-radius: 10px;
}

.brand-mark svg { width: 22px; fill: var(--amber); }

.brand-text { font-size: 20px; font-weight: 800; letter-spacing: -.03em; }
.brand-text span { color: var(--gold); }

.header-nav { display: flex; gap: 26px; font-size: 14px; color: var(--slate-500); font-weight: 500; }
.header-nav a:hover { color: var(--ink); }

/* ── Héros ───────────────────────────────────────────────────────────────── */
.hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(160deg, #0b1220 0%, #17233b 55%, #1f2d4a 100%);
    color: var(--white);
    padding: 76px 0 96px;
}

.hero-bg { position: absolute; inset: 0; pointer-events: none; }

.hero-glow {
    position: absolute;
    top: -180px; right: -120px;
    width: 620px; height: 620px;
    background: radial-gradient(circle, rgba(245, 158, 11, .22) 0%, rgba(245, 158, 11, 0) 68%);
}

.hero-road { position: absolute; bottom: 0; left: 0; width: 100%; height: 200px; opacity: .5; }
.hero-road rect { fill: rgba(255, 255, 255, .12); }
.hero-road .road-dashes rect { fill: rgba(245, 158, 11, .55); }

.hero-inner { position: relative; text-align: center; }

.hero-eyebrow {
    display: inline-block;
    padding: 6px 14px;
    margin-bottom: 20px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--amber-line);
    background: rgba(245, 158, 11, .14);
    border: 1px solid rgba(245, 158, 11, .3);
    border-radius: 999px;
}

.hero h1 { font-size: clamp(32px, 5vw, 52px); margin-bottom: 18px; }
.hero h1 span { color: var(--amber); }

.hero-lead {
    max-width: 620px;
    margin: 0 auto 38px;
    font-size: 17px;
    color: rgba(255, 255, 255, .78);
}

.hero-trust {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 28px;
    margin-top: 28px;
    font-size: 13.5px;
    color: rgba(255, 255, 255, .72);
}

.hero-trust li { display: flex; align-items: center; gap: 8px; }

.hero-trust li::before {
    content: "";
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--amber);
}

/* ── Carte de recherche ──────────────────────────────────────────────────── */
.search-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 22px;
    text-align: left;
}

.search-bar {
    background: var(--slate-50);
    border-bottom: 1px solid var(--slate-200);
    padding: 22px 0;
}

.search-bar .search-form {
    background: var(--white);
    border: 1px solid var(--slate-200);
    border-radius: var(--radius);
    padding: 18px;
    box-shadow: var(--shadow-sm);
}

.search-grid {
    display: grid;
    grid-template-columns: 1.25fr 1.25fr .85fr .85fr 1fr auto;
    gap: 14px;
    align-items: end;
}

.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }

.field label {
    font-size: 11.5px;
    font-weight: 600;
    color: var(--slate-500);
    text-transform: uppercase;
    letter-spacing: .04em;
}

.field .optional {
    text-transform: none;
    letter-spacing: 0;
    font-weight: 400;
    color: var(--slate-400);
}

.field input,
.field select {
    width: 100%;
    height: 46px;
    padding: 0 12px;
    font-family: inherit;
    font-size: 14px;
    color: var(--ink);
    background: var(--white);
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-sm);
    outline: none;
    transition: border-color .15s, box-shadow .15s;
}

.field input:hover,
.field select:hover { border-color: var(--slate-400); }

.field input:focus,
.field select:focus {
    border-color: var(--amber);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, .18);
}

.field select:disabled { background: var(--slate-100); color: var(--slate-400); cursor: not-allowed; }

.select-wrap { position: relative; }

.select-wrap select { appearance: none; padding-right: 34px; }

.select-wrap::after {
    content: "";
    position: absolute;
    right: 14px; top: 50%;
    width: 8px; height: 8px;
    border-right: 2px solid var(--slate-500);
    border-bottom: 2px solid var(--slate-500);
    transform: translateY(-70%) rotate(45deg);
    pointer-events: none;
}

.field-submit { justify-content: flex-end; }

/* ── Boutons ─────────────────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 46px;
    padding: 0 22px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    border: 0;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: opacity .15s, transform .05s;
}

.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--ink); color: var(--white); }
.btn-primary:hover { opacity: .9; }

.btn-search { background: linear-gradient(135deg, var(--gold), var(--amber)); }

.btn-search .icon {
    width: 17px; height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
}

.btn:disabled { opacity: .45; cursor: not-allowed; }

/* ── Sections ────────────────────────────────────────────────────────────── */
.section { padding: 72px 0; }
.section-alt { background: var(--slate-50); border-block: 1px solid var(--slate-200); }

.section-title { font-size: clamp(24px, 3vw, 32px); margin-bottom: 10px; }
.section-lead { color: var(--slate-500); max-width: 660px; margin-bottom: 34px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }

.step {
    position: relative;
    padding: 28px 24px;
    background: var(--white);
    border: 1px solid var(--slate-200);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.step-number {
    display: grid;
    place-items: center;
    width: 38px; height: 38px;
    margin-bottom: 16px;
    font-weight: 700;
    color: var(--gold);
    background: var(--amber-soft);
    border: 1px solid var(--amber-line);
    border-radius: 10px;
}

.step h3 { font-size: 16px; margin-bottom: 8px; }
.step p { font-size: 14px; color: var(--slate-500); }

.agency-points { margin-top: 20px; display: grid; gap: 10px; font-size: 14.5px; color: var(--slate-700); }

.agency-points li { display: flex; gap: 10px; align-items: flex-start; }

.agency-points li::before {
    content: "✓";
    color: var(--green);
    font-weight: 700;
}

/* ── Résultats ───────────────────────────────────────────────────────────── */
.results { padding-top: 40px; }

.results-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}

.results-head h1 { font-size: clamp(22px, 3vw, 30px); }
.results-meta { margin-top: 6px; font-size: 14px; color: var(--slate-500); }
.results-count { font-size: 14px; color: var(--slate-500); }
.results-count strong { color: var(--ink); font-size: 18px; }

.group-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 17px;
    margin: 34px 0 16px;
}

.group-title:first-of-type { margin-top: 0; }

.group-count {
    display: grid;
    place-items: center;
    min-width: 26px; height: 24px;
    padding: 0 8px;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--gold);
    background: var(--amber-soft);
    border-radius: 999px;
}

.vehicle-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(285px, 1fr));
    gap: 20px;
}

/* ── Carte véhicule ──────────────────────────────────────────────────────── */
.vehicle-card {
    display: flex;
    flex-direction: column;
    background: var(--white);
    border: 1px solid var(--slate-200);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: box-shadow .18s, transform .18s, border-color .18s;
}

.vehicle-card:hover {
    box-shadow: var(--shadow);
    border-color: var(--slate-400);
    transform: translateY(-2px);
}

.vehicle-photo {
    position: relative;
    aspect-ratio: 16 / 10;
    background: var(--slate-100);
}

.vehicle-photo img { width: 100%; height: 100%; object-fit: cover; }

.photo-placeholder { display: grid; place-items: center; height: 100%; }
.photo-placeholder svg { width: 45%; fill: var(--slate-200); }

.chip {
    position: absolute;
    top: 12px;
    padding: 4px 10px;
    font-size: 11.5px;
    font-weight: 600;
    border-radius: 999px;
    backdrop-filter: blur(4px);
}

.chip-type { left: 12px; color: var(--white); background: rgba(15, 23, 42, .78); }

.chip-match {
    right: 12px;
    color: var(--gold);
    background: rgba(254, 243, 199, .95);
    border: 1px solid var(--amber-line);
}

.vehicle-body { flex: 1; padding: 16px 16px 12px; }

.vehicle-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.vehicle-head h3 { font-size: 16.5px; }
.vehicle-year { font-size: 13px; color: var(--slate-400); }

.vehicle-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 12px 0;
}

.vehicle-specs li {
    padding: 3px 9px;
    font-size: 12px;
    color: var(--slate-700);
    background: var(--slate-100);
    border-radius: 6px;
}

.vehicle-agency {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding-top: 12px;
    border-top: 1px solid var(--slate-100);
}

.agency-name { font-size: 13.5px; font-weight: 600; }
.agency-place { font-size: 12.5px; color: var(--slate-500); }

.notice {
    margin-top: 10px;
    padding: 6px 10px;
    font-size: 12px;
    border-radius: 6px;
}

.notice-warn { color: var(--gold); background: var(--amber-soft); border: 1px solid var(--amber-line); }

.vehicle-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    background: var(--slate-50);
    border-top: 1px solid var(--slate-200);
}

.price { display: flex; flex-direction: column; }
.price-day { font-size: 17px; font-weight: 700; }
.price-day small { font-size: 12px; font-weight: 500; color: var(--slate-500); }
.price-total { font-size: 12px; color: var(--slate-500); }

.btn-book { height: 38px; padding: 0 16px; font-size: 13px; }

/* ── État vide ───────────────────────────────────────────────────────────── */
.empty-state {
    max-width: 560px;
    margin: 48px auto;
    padding: 44px 32px;
    text-align: center;
    background: var(--slate-50);
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-lg);
}

.empty-state h1, .empty-state h2 { font-size: 22px; margin-bottom: 10px; }
.empty-state p { color: var(--slate-500); margin-bottom: 20px; }

/* ── Pied de page ────────────────────────────────────────────────────────── */
.site-footer {
    background: var(--ink);
    color: rgba(255, 255, 255, .72);
    padding: 46px 0 30px;
}

.footer-inner {
    display: grid;
    grid-template-columns: 1.2fr 1fr auto;
    gap: 34px;
    align-items: start;
}

.footer-brand { font-size: 20px; font-weight: 800; color: var(--white); }
.footer-brand span { color: var(--amber); }
.footer-tagline { margin-top: 8px; font-size: 14px; }

.footer-heading { display: block; font-size: 13px; font-weight: 600; color: var(--white); margin-bottom: 8px; }
.footer-links p { font-size: 13.5px; }
.footer-legal { font-size: 13px; color: var(--slate-400); }

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 1080px) {
    .search-grid { grid-template-columns: repeat(2, 1fr); }
    .field-submit { grid-column: 1 / -1; }
    .btn-search { width: 100%; }
}

@media (max-width: 860px) {
    .steps { grid-template-columns: 1fr; }
    .footer-inner { grid-template-columns: 1fr; }
    .header-nav { display: none; }
    .hero { padding: 54px 0 70px; }
}

@media (max-width: 560px) {
    .search-grid { grid-template-columns: 1fr; }
    .container { padding-inline: 18px; }
    .search-card { padding: 16px; }
}

/* ==========================================================================
   Demande de réservation
   ========================================================================== */

.request-section { padding-top: 40px; }

.request-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 28px;
    align-items: start;
}

.request-summary {
    position: sticky;
    top: 88px;
    background: var(--white);
    border: 1px solid var(--slate-200);
    border-radius: var(--radius);
    padding: 18px;
    box-shadow: var(--shadow-sm);
}

.request-photo {
    aspect-ratio: 16 / 10;
    border-radius: var(--radius-sm);
    overflow: hidden;
    margin-bottom: 14px;
}

.request-photo img { width: 100%; height: 100%; object-fit: cover; }

.request-summary h2 { font-size: 18px; margin-bottom: 4px; }
.request-agency { font-size: 13px; color: var(--slate-500); margin-bottom: 16px; }

.request-facts {
    display: grid;
    gap: 8px;
    padding: 14px 0;
    margin: 0 0 14px;
    border-block: 1px solid var(--slate-100);
}

.request-facts > div { display: flex; justify-content: space-between; font-size: 13.5px; }
.request-facts dt { color: var(--slate-500); }
.request-facts dd { margin: 0; font-weight: 600; color: var(--ink); }

.request-price { display: flex; flex-direction: column; gap: 2px; margin-bottom: 6px; }

.request-form-card {
    background: var(--white);
    border: 1px solid var(--slate-200);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow-sm);
}

.request-form-card h1 { font-size: 22px; margin-bottom: 8px; }
.request-lead { font-size: 14px; color: var(--slate-500); margin-bottom: 22px; }

.form-error {
    padding: 12px 14px;
    margin-bottom: 18px;
    font-size: 13.5px;
    color: #991b1b;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: var(--radius-sm);
}

.request-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 22px;
}

.field-wide { grid-column: 1 / -1; }

.request-grid textarea {
    width: 100%;
    padding: 10px 12px;
    font-family: inherit;
    font-size: 14px;
    color: var(--ink);
    background: var(--white);
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-sm);
    outline: none;
    resize: vertical;
}

.request-grid textarea:focus {
    border-color: var(--amber);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, .18);
}

.request-grid input[type="file"] {
    height: auto;
    padding: 8px 10px;
    font-size: 13px;
}

.btn-submit-request { width: 100%; height: 50px; font-size: 15px; }

.request-disclaimer {
    margin-top: 14px;
    font-size: 12px;
    color: var(--slate-400);
    text-align: center;
}

.thanks-state { padding: 56px 32px; }
.thanks-icon {
    display: grid;
    place-items: center;
    width: 56px; height: 56px;
    margin: 0 auto 18px;
    font-size: 26px;
    color: var(--white);
    background: var(--green);
    border-radius: 50%;
}

@media (max-width: 860px) {
    .request-layout { grid-template-columns: 1fr; }
    .request-summary { position: static; }
}

@media (max-width: 560px) {
    .request-grid { grid-template-columns: 1fr; }
    .request-form-card { padding: 20px; }
}
