/* ============================================
   L'AGENCE UTILITAIRE — VITRINE
   Aesthetic: Warm editorial, refined utility
   ============================================ */

:root {
    --ink: #1a1714;
    --text: #3d3830;
    --text-light: #7a7062;
    --text-lighter: #a69d90;
    --cream: #faf9f7;
    --cream-dark: #f0ede8;
    --white: #ffffff;
    --accent: #c45a2d;
    --accent-hover: #a84820;
    --accent-light: #fdf0eb;
    --accent-glow: rgba(196, 90, 45, 0.12);
    --green: #2d8a54;
    --green-light: #e8f5ee;
    --border: #e6e0d8;
    --border-light: #f0ebe4;
    --shadow-sm: 0 1px 3px rgba(26,23,20,0.06);
    --shadow-md: 0 4px 16px rgba(26,23,20,0.08);
    --shadow-lg: 0 8px 32px rgba(26,23,20,0.10);
    --shadow-xl: 0 16px 48px rgba(26,23,20,0.12);
    --radius: 12px;
    --radius-lg: 20px;
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'DM Sans', -apple-system, sans-serif;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---- RESET ---- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.65;
    color: var(--text);
    background: var(--cream);
    -webkit-font-smoothing: antialiased;
    padding-top: 80px; /* Compensation navbar fixe — toutes les pages */
}

/* Pages avec hero : pas de padding-top (le hero gère son propre espacement) */
body:has(.hero),
body.has-hero {
    padding-top: 0;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-hover); }

/* ---- CONTAINER ---- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ---- UTILITIES ---- */
.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }

/* ---- REVEAL ANIMATION ---- */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ---- ALERTS ---- */
.alert { padding: 1rem 1.25rem; border-radius: var(--radius); margin-bottom: 1rem; font-size: 0.95rem; }
.alert-success { background: var(--green-light); color: #1a5e35; border-left: 4px solid var(--green); }
.alert-error { background: #fde8e8; color: #922; border-left: 4px solid #d44; }


/* ============================================
   NAVIGATION
   ============================================ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 18px 0;
    transition: all var(--transition);
}
.nav--scrolled {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(12px);
    padding: 12px 0;
    box-shadow: var(--shadow-sm);
}
.nav__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.nav__logo {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color var(--transition);
}
.nav--scrolled .nav__logo { color: var(--ink); }
.nav__logo-icon { color: var(--accent); font-size: 0.9em; }

.nav__links {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
}
.nav__links a {
    color: rgba(255,255,255,0.85);
    font-size: 0.9rem;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: 8px;
    transition: all var(--transition);
}
.nav--scrolled .nav__links a { color: var(--text); }
.nav__links a:hover { color: var(--white); background: rgba(255,255,255,0.12); }
.nav--scrolled .nav__links a:hover { color: var(--accent); background: var(--accent-light); }

.nav__cta {
    background: var(--accent) !important;
    color: var(--white) !important;
    font-weight: 600 !important;
    padding: 8px 20px !important;
    border-radius: 8px !important;
}
.nav__cta:hover { background: var(--accent-hover) !important; transform: translateY(-1px); }

/* Mobile toggle */
.nav__toggle { display: none; background: none; border: none; cursor: pointer; padding: 6px; }
.nav__toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    margin: 5px 0;
    transition: all var(--transition);
    border-radius: 2px;
}
.nav--scrolled .nav__toggle span { background: var(--ink); }

@media (max-width: 900px) {
    .nav__toggle { display: block; }
    .nav__links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        align-items: stretch;
        padding: 80px 24px 24px;
        gap: 4px;
        box-shadow: var(--shadow-xl);
        transition: right var(--transition);
    }
    .nav__links--open { right: 0; }
    .nav__links a { color: var(--text) !important; padding: 12px 16px !important; border-radius: 8px; }
    .nav__links a:hover { background: var(--cream) !important; color: var(--accent) !important; }
    .nav__toggle--active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
    .nav__toggle--active span:nth-child(2) { opacity: 0; }
    .nav__toggle--active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
}


/* ============================================
   HERO
   ============================================ */
.hero {
    position: relative;
    background: var(--ink);
    padding: 140px 0 100px;
    overflow: hidden;
    min-height: 90vh;
    display: flex;
    align-items: center;
}
.hero__bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(196,90,45,0.15) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(196,90,45,0.08) 0%, transparent 50%),
        linear-gradient(160deg, #1a1714 0%, #2a2520 40%, #1f1c18 100%);
}
.hero__bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero__content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 60px;
    align-items: center;
}
.hero__text { color: var(--white); }
.hero__badge {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 20px;
    padding: 6px 16px;
    background: rgba(196,90,45,0.12);
    border-radius: 100px;
    border: 1px solid rgba(196,90,45,0.2);
}
.hero__title {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 4.5vw, 3.4rem);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 20px;
}
.hero__title em {
    font-style: italic;
    color: var(--accent);
}
.hero__subtitle {
    font-size: 1.1rem;
    line-height: 1.7;
    color: rgba(255,255,255,0.7);
    max-width: 480px;
    margin-bottom: 28px;
}
.hero__features {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;
}
.hero__features span {
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255,255,255,0.8);
}

/* Hero reservation form */
.hero__form {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 36px 32px;
    box-shadow: var(--shadow-xl);
}
.hero__form-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 4px;
}
.hero__form-sub {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 24px;
}

/* Hero wave */
.hero__wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    line-height: 0;
}
.hero__wave svg { width: 100%; height: 80px; }

@media (max-width: 900px) {
    .hero { padding: 120px 0 80px; min-height: auto; }
    .hero__content { grid-template-columns: 1fr; gap: 40px; }
    .hero__form { max-width: 500px; }
}


/* ============================================
   FORMS
   ============================================ */
.form-group { margin-bottom: 16px; }
.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
}
.form-control {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid var(--border);
    border-radius: 10px;
    font-size: 0.95rem;
    font-family: var(--font-body);
    color: var(--text);
    background: var(--white);
    transition: border-color var(--transition), box-shadow var(--transition);
}
.form-control:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
@media (max-width: 500px) {
    .form-row { grid-template-columns: 1fr; }
}


/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    font-family: var(--font-body);
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
}
.btn-primary {
    background: var(--accent);
    color: var(--white);
}
.btn-primary:hover {
    background: var(--accent-hover);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(196,90,45,0.25);
}
.btn-outline {
    background: transparent;
    color: var(--accent);
    border: 2px solid var(--accent);
}
.btn-outline:hover {
    background: var(--accent);
    color: var(--white);
    transform: translateY(-2px);
}
.btn-block { width: 100%; }
.btn-sm { padding: 10px 20px; font-size: 0.9rem; }
.btn-lg { padding: 16px 36px; font-size: 1.05rem; }


/* ============================================
   SECTIONS
   ============================================ */
.section { padding: 100px 0; }
.section--alt { background: var(--white); }

.section__header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 56px;
}
.section__tag {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 12px;
}
.section__title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 16px;
}
.section__desc {
    font-size: 1.05rem;
    color: var(--text-light);
    line-height: 1.7;
}


/* ============================================
   VEHICLE CARDS
   ============================================ */
.vehicles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 28px;
}
.vcard {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 32px 28px 24px;
    position: relative;
    transition: all var(--transition);
}
.section--alt .vcard { background: var(--cream); }
.vcard:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}
.vcard__badge {
    position: absolute;
    top: -14px;
    right: 24px;
    width: 44px;
    height: 44px;
    background: var(--accent-light);
    border: 2px solid var(--white);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    box-shadow: var(--shadow-sm);
}
.vcard__header { margin-bottom: 12px; }
.vcard__name {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--ink);
}
.vcard__cat {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.vcard__desc {
    font-size: 0.92rem;
    color: var(--text-light);
    margin-bottom: 16px;
    line-height: 1.6;
}
.vcard__specs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}
.vcard__spec {
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text);
    background: var(--cream-dark);
    padding: 4px 10px;
    border-radius: 6px;
}
.vcard__features {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 20px;
}
.vcard__feat {
    font-size: 0.78rem;
    color: var(--green);
    background: var(--green-light);
    padding: 3px 9px;
    border-radius: 5px;
    font-weight: 500;
}
.vcard__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 18px;
    border-top: 1px solid var(--border-light);
}
.vcard__amount {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--ink);
}
.vcard__per {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-left: 4px;
}


/* ============================================
   OPTIONS CARDS
   ============================================ */
.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 20px;
}
.ocard {
    background: var(--cream);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 24px;
    transition: all var(--transition);
}
.ocard:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: transparent;
}
.ocard__icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 12px;
}
.ocard__name {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 8px;
}
.ocard__desc {
    font-size: 0.88rem;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 14px;
}
.ocard__pricing {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 16px;
    padding-top: 12px;
    border-top: 1px solid var(--border-light);
}
.ocard__price {
    font-weight: 700;
    color: var(--accent);
    font-size: 0.95rem;
}
.ocard__deposit {
    font-size: 0.82rem;
    color: var(--text-lighter);
}


/* ============================================
   PACKS (ASSURANCE & KM)
   ============================================ */
.packs-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}
@media (max-width: 768px) {
    .packs-row { grid-template-columns: 1fr; }
}
.packs-col__title {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--accent);
    display: inline-block;
}
.packs-list { display: flex; flex-direction: column; gap: 12px; }

.pack {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 20px;
    transition: all var(--transition);
}
.pack:hover {
    box-shadow: var(--shadow-sm);
    border-color: var(--border);
}
.pack--default {
    border-color: var(--accent);
    background: var(--accent-light);
}
.pack__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}
.pack__name {
    font-weight: 700;
    font-size: 1rem;
    color: var(--ink);
}
.pack__badge {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--accent);
    background: var(--white);
    padding: 3px 10px;
    border-radius: 100px;
    border: 1px solid var(--accent);
}
.pack__price {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--accent);
}
.pack__desc {
    font-size: 0.88rem;
    color: var(--text-light);
    line-height: 1.6;
}
.pack__franchise {
    font-size: 0.85rem;
    color: var(--text);
    margin-top: 6px;
}
.pack__km {
    font-size: 0.9rem;
    color: var(--green);
    margin-top: 6px;
}
.packs-note {
    font-size: 0.82rem;
    color: var(--text-lighter);
    margin-top: 16px;
    padding: 12px;
    background: var(--cream-dark);
    border-radius: 8px;
    line-height: 1.5;
}


/* ============================================
   STEPS (Comment ça marche)
   ============================================ */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
    margin-bottom: 60px;
}
@media (max-width: 900px) {
    .steps-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 500px) {
    .steps-grid { grid-template-columns: 1fr; }
}
.step {
    text-align: center;
    padding: 32px 20px;
    background: var(--cream);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    transition: all var(--transition);
}
.step:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}
.step__num {
    width: 52px;
    height: 52px;
    background: var(--accent);
    color: var(--white);
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    margin: 0 auto 16px;
}
.step__title {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 10px;
}
.step__desc {
    font-size: 0.88rem;
    color: var(--text-light);
    line-height: 1.6;
}


/* ============================================
   INFO CARDS (frais généraux)
   ============================================ */
.info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
}
.info-card {
    padding: 20px;
    background: var(--cream);
    border-radius: var(--radius);
    border: 1px solid var(--border-light);
}
.info-card h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 6px;
}
.info-card p {
    font-size: 0.88rem;
    color: var(--text-light);
    line-height: 1.6;
}


/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
    padding: 80px 0;
    background: var(--cream);
}
.cta-box {
    text-align: center;
    background: var(--ink);
    border-radius: var(--radius-lg);
    padding: 64px 40px;
    position: relative;
    overflow: hidden;
}
.cta-box::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 30% 50%, rgba(196,90,45,0.18) 0%, transparent 60%),
        radial-gradient(ellipse at 70% 30%, rgba(196,90,45,0.1) 0%, transparent 50%);
}
.cta-box > * { position: relative; z-index: 1; }
.cta-box__title {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 700;
    color: var(--white);
    margin-bottom: 12px;
}
.cta-box__desc {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.7);
    max-width: 520px;
    margin: 0 auto 28px;
    line-height: 1.7;
}


/* ============================================
   EMPTY STATE
   ============================================ */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}
.empty-state__icon { font-size: 3rem; display: block; margin-bottom: 16px; }
.empty-state h3 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    color: var(--ink);
    margin-bottom: 10px;
}
.empty-state p {
    color: var(--text-light);
    margin-bottom: 24px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}


/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--ink);
    color: rgba(255,255,255,0.7);
    padding: 80px 0 0;
}
.footer__grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
@media (max-width: 768px) {
    .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 500px) {
    .footer__grid { grid-template-columns: 1fr; }
}
.footer__logo {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.footer__logo-icon { color: var(--accent); }
.footer__brand p {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 16px;
}
.footer__social {
    display: flex;
    gap: 10px;
}
.footer__social a {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.08);
    border-radius: 8px;
    color: var(--white);
    font-size: 1rem;
    font-weight: 700;
    transition: all var(--transition);
}
.footer__social a:hover {
    background: var(--accent);
    transform: translateY(-2px);
}
.footer__col h4 {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--white);
    margin-bottom: 16px;
}
.footer__col ul { list-style: none; }
.footer__col ul li { margin-bottom: 8px; }
.footer__col ul a {
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
    transition: color var(--transition);
}
.footer__col ul a:hover { color: var(--accent); }
.footer__col p {
    font-size: 0.9rem;
    line-height: 1.7;
}
.footer__col a { color: var(--accent); }

.footer__bottom {
    padding: 24px 0;
    text-align: center;
}
.footer__bottom p {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.4);
}
.footer__payment {
    margin-top: 6px;
}
