/* =========================================================
   Vocarz — Feuille de style du site public
   Thème : bleu vif + vert (couleurs du logo Vocarz)
   ========================================================= */

:root {
    --blue-900: #0B1F3A;
    --blue-800: #1a73e8;
    --blue-700: #0d6efd;
    --blue-100: #e8f1fd;
    --green-500: #7ed321;
    --green-600: #66b01a;
    --gray-50: #f6f7f9;
    --gray-100: #eef0f3;
    --gray-300: #d5dae1;
    --gray-500: #7c8896;
    --gray-700: #445164;
    --white: #ffffff;
    --success: #4c9a12;
    --danger: #d7373f;
    --radius: 10px;
    --shadow: 0 4px 16px rgba(11, 31, 58, 0.10);
    --shadow-lg: 0 12px 32px rgba(11, 31, 58, 0.16);
    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font);
    color: var(--blue-900);
    background: var(--white);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

ul { list-style: none; margin: 0; padding: 0; }

h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 0.5em; font-weight: 700; }
p { margin: 0 0 1em; color: var(--gray-700); }

.container {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ---------- Boutons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 26px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.95rem;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn-primary { background: var(--green-500); color: var(--white); }
.btn-primary:hover { background: var(--green-600); box-shadow: var(--shadow); }
.btn-outline { background: transparent; border-color: var(--blue-800); color: var(--blue-800); }
.btn-outline:hover { background: var(--blue-800); color: var(--white); }
.btn-outline-light { background: transparent; border-color: rgba(255,255,255,0.6); color: var(--white); }
.btn-outline-light:hover { background: var(--white); color: var(--blue-900); }
.btn-block { width: 100%; }
.btn-sm { padding: 9px 18px; font-size: 0.85rem; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ---------- Header ---------- */
.site-header {
    background: var(--blue-900);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.12);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}
.logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--white);
    letter-spacing: -0.02em;
}
.logo span { color: var(--green-500); }
.logo-img { height: 44px; width: auto; display: block; }

.main-nav { display: flex; gap: 28px; }
.main-nav a {
    color: rgba(255,255,255,0.82);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 8px 0;
    border-bottom: 2px solid transparent;
    transition: color 0.15s ease, border-color 0.15s ease;
}
.main-nav a:hover, .main-nav a.active { color: var(--white); border-color: var(--green-500); }

.header-actions { display: flex; align-items: center; gap: 18px; }

.lang-switcher {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 999px;
    padding: 4px 10px;
}
.lang-option {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    color: rgba(255,255,255,0.7);
    font-weight: 600;
    font-size: 0.82rem;
    padding: 4px 6px;
    cursor: pointer;
    border-radius: 999px;
}
.lang-option.active { color: var(--white); background: var(--green-500); padding: 4px 10px; }
.lang-sep { color: rgba(255,255,255,0.4); font-size: 0.8rem; }

.lang-flag {
    display: inline-flex;
    flex-shrink: 0;
    border-radius: 3px;
    overflow: hidden;
    box-shadow: 0 0 0 1px rgba(255,255,255,0.35);
}
.lang-flag svg { display: block; }

/* ---------- Bandeau d'arguments ---------- */
.perks-band {
    background: var(--blue-100);
    padding: 14px 0;
    border-bottom: 1px solid var(--gray-100);
}
.perks-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px 10px;
}
.perks-grid li {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--white);
    border: 1px solid var(--gray-100);
    border-radius: 999px;
    padding: 6px 14px 6px 6px;
    font-size: 0.76rem;
    font-weight: 600;
    color: var(--blue-900);
    box-shadow: var(--shadow);
    line-height: 1.2;
}
.perk-icon-wrap {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--gray-50);
    /* Vert du logo, légèrement assombri pour rester lisible sur fond clair (contraste >= 3:1) */
    color: var(--success);
    display: flex;
    align-items: center;
    justify-content: center;
}
.perk-icon-wrap svg { width: 16px; height: 16px; }

/* ---------- Sections ---------- */
.section { padding: 70px 0; }
.section-alt { background: var(--gray-50); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.section-head .eyebrow {
    color: var(--green-600);
    text-transform: uppercase;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}
.section-head h2 { font-size: 2rem; margin-top: 8px; }

.empty-state { text-align: center; padding: 60px 20px; color: var(--gray-500); }

/* ---------- Liste de voitures (cartes empilées) ---------- */
.car-list-section { padding-top: 44px; }
.car-list { display: flex; flex-direction: column; gap: 30px; }
.car-row {
    display: grid;
    grid-template-columns: minmax(0, 46%) 1fr;
    align-items: center;
    background: var(--white);
    border: 1px solid var(--gray-100);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.car-row-photo { position: relative; }
.car-row-photo img { border-radius: var(--radius); }
.car-gallery { position: relative; aspect-ratio: 16 / 9; background: var(--gray-100); overflow: hidden; }
.car-gallery-track {
    display: flex;
    height: 100%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}
.car-gallery-track::-webkit-scrollbar { display: none; }
.car-gallery-track img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: cover; object-position: center; scroll-snap-align: start; }

.car-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    background: var(--blue-900);
    color: var(--white);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.car-badge.unavailable { background: var(--danger); }

.car-gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(11,31,58,0.55);
    color: var(--white);
    font-size: 1.3rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.car-gallery-nav:hover { background: rgba(11,31,58,0.8); }
.car-gallery-prev { left: 10px; }
.car-gallery-next { right: 10px; }

.car-gallery-dots { position: absolute; bottom: 10px; left: 0; right: 0; z-index: 2; display: flex; justify-content: center; gap: 6px; }
.car-gallery-dots span { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,0.6); }
.car-gallery-dots span.active { background: var(--white); }

.car-row-body { padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.car-row-body h2 { font-size: 1.5rem; margin: 0; }

.car-badges { display: flex; flex-wrap: wrap; gap: 8px; }
.car-badges span {
    background: var(--blue-100);
    color: var(--blue-900);
    font-weight: 600;
    font-size: 0.8rem;
    padding: 6px 12px;
    border-radius: 999px;
}

.car-feature-list { display: flex; flex-direction: column; gap: 8px; }
.car-feature-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.92rem;
    color: var(--gray-700);
}
.car-feature-list li::before {
    content: "✓";
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #eaf7d9;
    color: var(--success);
    font-weight: 700;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.car-actions { display: flex; gap: 12px; margin-top: auto; flex-wrap: wrap; }
.btn-whatsapp { background: #25d366; color: var(--white); }
.btn-whatsapp:hover { background: #1ebe5b; }
.btn-whatsapp svg { flex-shrink: 0; }

.results-counter { text-align: center; color: var(--gray-500); font-size: 0.9rem; margin-top: 36px; }

/* ---------- Avis clients (widget Elfsight) ---------- */
.reviews-section {
    background: var(--gray-50);
    border-top: 1px solid var(--gray-100);
    padding: 56px 0;
}
.reviews-title {
    text-align: center;
    font-size: 1.7rem;
    margin-bottom: 28px;
    color: var(--blue-900);
}
.reviews-section .container { max-width: 1180px; width: 100%; overflow-x: hidden; }

/* ---------- Footer ---------- */
.site-footer { background: var(--blue-900); margin-top: 60px; color: rgba(255,255,255,0.8); }
.footer-inner {
    display: grid;
    grid-template-columns: 1fr 1.6fr 1fr 1fr;
    gap: 32px;
    padding: 48px 0 32px;
    align-items: start;
}
.footer-col h3 { font-size: 0.95rem; margin-bottom: 14px; color: var(--white); }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col li { font-size: 0.88rem; color: rgba(255,255,255,0.75); line-height: 1.5; }
.footer-col a { color: rgba(255,255,255,0.8); font-size: 0.92rem; }
.footer-col a:hover { color: var(--green-500); }

.footer-agencies li { display: flex; align-items: flex-start; gap: 8px; }
.footer-pin { flex-shrink: 0; color: var(--green-500); margin-top: 2px; }

.footer-social { display: flex; gap: 10px; }
.footer-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.18);
    color: var(--white);
    transition: background 0.15s ease, border-color 0.15s ease;
}
.footer-social-link:hover { background: var(--green-500); border-color: var(--green-500); }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.14);
    padding: 18px 0;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.6);
    text-align: center;
}

.whatsapp-float {
    position: fixed;
    bottom: 22px;
    right: 22px;
    background: #25d366;
    color: var(--white);
    width: 54px;
    height: 54px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 18px rgba(0,0,0,0.2);
    z-index: 90;
}
.whatsapp-float svg { width: 26px; height: 26px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .car-row { grid-template-columns: 1fr; }
    .footer-inner { grid-template-columns: 1fr 1fr; }
    .perks-grid { grid-template-columns: repeat(3, 1fr); }
}

.perks-marquee { display: none; }

@media (max-width: 900px) {
    .perks-grid { display: none !important; }
    .perks-marquee {
        display: block;
        overflow: hidden;
        padding: 10px 0;
    }
    .perks-marquee-row {
        display: flex;
        gap: 8px;
        width: max-content;
        margin-bottom: 8px;
        animation: perksScrollLeft 30s linear infinite;
    }
    .perks-marquee-row-2 {
        animation: perksScrollRight 30s linear infinite;
    }
    .perks-marquee li {
        display: flex;
        align-items: center;
        gap: 8px;
        background: var(--white);
        border: 1px solid var(--gray-100);
        border-radius: 999px;
        padding: 6px 14px 6px 6px;
        font-size: 0.76rem;
        font-weight: 600;
        color: var(--blue-900);
        box-shadow: var(--shadow);
        line-height: 1.2;
        white-space: nowrap;
        flex: 0 0 auto;
    }
    @keyframes perksScrollLeft {
        0% { transform: translateX(0); }
        100% { transform: translateX(-50%); }
    }
    @keyframes perksScrollRight {
        0% { transform: translateX(-50%); }
        100% { transform: translateX(0); }
    }
}

@media (max-width: 720px) {
    .logo-img { height: 36px; }
    .car-row-body { padding: 20px; }
    .car-row-body h2 { font-size: 1.3rem; }
    .footer-inner { grid-template-columns: 1fr; padding: 40px 0 24px; gap: 28px; }
    .site-footer .container { padding: 0 28px; }
    .site-footer .logo-img { margin-top: 16px; }
    .reviews-section { padding: 36px 0; }
    .reviews-title { font-size: 1.3rem; margin-bottom: 20px; }

    /* Carrousel horizontal scrollable au lieu d'un empilement vertical */
    .perks-band { padding: 10px 0; }
    .perks-grid {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 8px;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 2px;
    }
    .perks-grid::-webkit-scrollbar { display: none; }
    .perks-grid li {
        flex: 0 0 auto;
        scroll-snap-align: start;
        white-space: nowrap;
    }
}

/* ---------- Badges avantages sur chaque carte voiture ---------- */
.car-perks-inline {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    margin: 0;
    padding: 16px 28px 28px;
    list-style: none;
}
.car-perks-inline li {
    justify-content: center;
    text-align: center;
}

@media (max-width: 900px) {
    .car-perks-inline { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 560px) {
    .car-perks-inline { grid-template-columns: repeat(2, 1fr); }
}
.car-perks-inline li {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--blue-100);
    border: 1px solid var(--gray-100);
    border-radius: 999px;
    padding: 6px 12px 6px 6px;
    font-size: 0.74rem;
    font-weight: 600;
    color: var(--blue-900);
    line-height: 1.2;
}
.car-perks-inline .perk-icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
}
.car-perks-inline .perk-icon-wrap svg {
    width: 100%;
    height: 100%;
}

@media (max-width: 720px) {
    .car-perks-inline li {
        font-size: 0.7rem;
        padding: 5px 10px 5px 5px;
    }
}
