/* ═══════════════════════════════════════════════════════════════════════════════
   DjerbaBooking — Design System Premium v2.0
   Palette: Méditerranée · Djerba · Luxe · Tourisme Haut de Gamme
   Inspiré de Booking.com · Airbnb · Expedia · standards premium
═══════════════════════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

/* ═══ 1. DESIGN TOKENS ════════════════════════════════════════════════════════ */
:root {
    /* ── Palette principale ── */
    --primary:        #1252A3;   /* Bleu océan profond */
    --primary-light:  #2878D4;   /* Bleu méditerranéen */
    --sky:            #0EA5E9;   /* Ciel de Djerba */
    --teal:           #0D9488;   /* Turquoise méditerranéen */
    --navy:           #0A2342;   /* Marine profond */

    /* ── Accents premium ── */
    --secondary:      #F59E0B;   /* Or sablé */
    --secondary-dark: #D97706;
    --coral:          #F97316;   /* Coucher de soleil */
    --whatsapp:       #25D366;
    --success:        #10B981;
    --danger:         #EF4444;
    --accent:         #0D9488;

    /* ── Textes ── */
    --text:           #0F172A;   /* Quasi-noir premium */
    --text-muted:     #64748B;   /* Gris bleuté */
    --text-light:     #94A3B8;   /* Très doux */

    /* ── Surfaces ── */
    --bg:             #FFFFFF;
    --bg-alt:         #F8FAFC;   /* Blanc bleuté très léger */
    --bg-blue:        #EFF6FF;
    --bg-dark:        #0A2342;
    --surface:        #FFFFFF;
    --border:         #E2E8F0;
    --border-light:   #F1F5F9;

    /* ── Ombres multi-couches ── */
    --shadow-xs:      0 1px 2px rgba(10,35,66,0.05);
    --shadow-sm:      0 1px 3px rgba(10,35,66,0.06), 0 4px 8px rgba(10,35,66,0.04);
    --shadow:         0 4px 12px rgba(10,35,66,0.08), 0 12px 32px rgba(10,35,66,0.05);
    --shadow-hover:   0 8px 24px rgba(10,35,66,0.12), 0 24px 48px rgba(10,35,66,0.08);
    --shadow-card:    0 2px 6px rgba(10,35,66,0.06), 0 8px 24px rgba(10,35,66,0.04);
    --shadow-card-hover: 0 12px 40px rgba(10,35,66,0.14), 0 4px 12px rgba(10,35,66,0.06);
    --shadow-header:  0 1px 0 rgba(0,0,0,0.04), 0 4px 24px rgba(10,35,66,0.07);
    --shadow-btn:     0 4px 14px rgba(18,82,163,0.35);
    --shadow-btn-hover: 0 8px 24px rgba(18,82,163,0.5);

    /* ── Géométrie ── */
    --radius-xs:      6px;
    --radius:         12px;
    --radius-lg:      20px;
    --radius-xl:      28px;
    --radius-full:    9999px;

    /* ── Animations ── */
    --transition:     0.2s ease;
    --transition-md:  0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --spring:         0.45s cubic-bezier(0.34, 1.56, 0.64, 1);

    /* ── Layout ── */
    --container:      1240px;
    --header-h:       74px;

    /* ── Gradients nommés ── */
    --grad-primary:   linear-gradient(135deg, #1252A3 0%, #2878D4 50%, #0EA5E9 100%);
    --grad-hero:      linear-gradient(155deg, #0A2342 0%, #1252A3 50%, #0D9488 100%);
    --grad-gold:      linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
    --grad-coral:     linear-gradient(135deg, #F97316 0%, #EF4444 100%);
    --grad-wa:        linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    --grad-surface:   linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 100%);
}

/* ═══ 2. RESET + BASE ═════════════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    font-size: 15px;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
input, button, select, textarea { font-family: inherit; }
ul, ol { list-style: none; }

/* ═══ 3. CONTAINER ════════════════════════════════════════════════════════════ */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

/* ═══ 4. BOUTONS PREMIUM ══════════════════════════════════════════════════════ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius);
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all var(--transition-md);
    border: 2px solid transparent;
    text-align: center;
    letter-spacing: 0.01em;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0);
    transition: background var(--transition);
}
.btn:hover::before { background: rgba(255,255,255,0.08); }

/* Bouton principal — gradient bleu océan */
.btn-primary {
    background: var(--grad-primary);
    color: #fff;
    box-shadow: var(--shadow-btn);
    border-color: transparent;
}
.btn-primary:hover {
    box-shadow: var(--shadow-btn-hover);
    transform: translateY(-2px);
    color: #fff;
}
.btn-primary:active { transform: translateY(0); }

/* WhatsApp */
.btn-whatsapp {
    background: var(--grad-wa);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 14px rgba(37,211,102,0.35);
}
.btn-whatsapp:hover {
    box-shadow: 0 8px 24px rgba(37,211,102,0.5);
    transform: translateY(-2px);
    color: #fff;
}

/* Outline */
.btn-outline {
    background: transparent;
    border-color: var(--primary);
    color: var(--primary);
}
.btn-outline:hover {
    background: var(--primary);
    color: #fff;
    box-shadow: var(--shadow-btn);
}

/* Outline blanc (sur fond sombre) */
.btn-outline-white {
    background: rgba(255,255,255,0.12);
    border-color: rgba(255,255,255,0.5);
    color: #fff;
    backdrop-filter: blur(8px);
}
.btn-outline-white:hover {
    background: rgba(255,255,255,0.22);
    border-color: rgba(255,255,255,0.8);
    color: #fff;
    transform: translateY(-2px);
}

/* Ghost */
.btn-ghost {
    background: transparent;
    border-color: var(--border);
    color: var(--text-muted);
}
.btn-ghost:hover {
    background: var(--bg-alt);
    border-color: var(--primary-light);
    color: var(--primary);
}

/* Tailles */
.btn-sm   { padding: 8px 16px; font-size: 13px; border-radius: var(--radius-xs); }
.btn-lg   { padding: 15px 32px; font-size: 16px; border-radius: var(--radius); }
.btn-xl   { padding: 18px 40px; font-size: 17px; border-radius: var(--radius); }
.mt-2     { margin-top: 8px; }

/* ═══ 5. HEADER PREMIUM ═══════════════════════════════════════════════════════ */

/* Barre d'info supérieure */
.topbar {
    background: var(--navy);
    color: rgba(255,255,255,0.75);
    font-size: 12.5px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.topbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}
.topbar-contact {
    display: flex;
    gap: 20px;
}
.topbar-contact a {
    color: rgba(255,255,255,0.75);
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color var(--transition);
}
.topbar-contact a:hover { color: var(--secondary); }
.topbar-trust {
    display: flex;
    gap: 16px;
    font-size: 12px;
    color: rgba(255,255,255,0.55);
}

/* Header principal */
.site-header {
    position: sticky;
    top: 0;
    z-index: 500;
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border-bottom: 1px solid rgba(226,232,240,0.7);
    box-shadow: var(--shadow-header);
    height: var(--header-h);
    transition: box-shadow var(--transition-md);
}

.site-header.scrolled {
    box-shadow: 0 4px 32px rgba(10,35,66,0.12);
}

.header-inner {
    height: 100%;
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Logo */
.site-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    text-decoration: none;
}

.logo-icon {
    font-size: 28px;
    filter: drop-shadow(0 2px 6px rgba(18,82,163,0.3));
    transition: transform var(--spring);
}
.site-logo:hover .logo-icon { transform: scale(1.1) rotate(-5deg); }

.logo-text {
    font-size: 20px;
    font-weight: 900;
    background: var(--grad-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

/* Navigation principale */
.main-nav {
    display: flex;
    align-items: center;
    gap: 2px;
    flex: 1;
}

.nav-link {
    position: relative;
    padding: 8px 15px;
    border-radius: var(--radius-xs);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    transition: color var(--transition), background var(--transition);
}

/* Soulignement animé au hover */
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 3px;
    left: 15px;
    right: 15px;
    height: 2px;
    background: var(--grad-primary);
    border-radius: var(--radius-full);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
}

.nav-link:hover {
    color: var(--primary);
    background: rgba(18,82,163,0.05);
}
.nav-link:hover::after { transform: scaleX(1); }
.nav-link.active {
    color: var(--primary);
    font-weight: 700;
    background: rgba(18,82,163,0.07);
}
.nav-link.active::after { transform: scaleX(1); }

/* Actions header */
.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.lang-switcher {
    display: flex;
    align-items: center;
    gap: 1px;
    background: var(--bg-alt);
    border-radius: var(--radius-xs);
    padding: 3px;
    border: 1px solid var(--border-light);
}

.lang-btn {
    padding: 4px 6px;
    border-radius: 5px;
    font-size: 16px;
    line-height: 1;
    opacity: 0.45;
    transition: all var(--transition);
}
.lang-btn:hover { opacity: 0.8; }
.lang-btn.active {
    opacity: 1;
    background: #fff;
    box-shadow: var(--shadow-xs);
}

/* Hamburger */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: var(--radius-xs);
    transition: background var(--transition);
}
.nav-toggle:hover { background: var(--bg-alt); }

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all 0.3s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ═══ 6. HERO IMMERSIF ════════════════════════════════════════════════════════ */
.hero {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--navy);
}

/* Fond animé — dégradé méditerranéen */
.hero-bg {
    position: absolute;
    inset: 0;
    background: var(--grad-hero);
    background-size: 200% 200%;
    animation: heroShift 12s ease infinite;
}

@keyframes heroShift {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Éléments décoratifs flottants */
.hero-bg::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(14,165,233,0.25) 0%, transparent 70%);
    animation: float1 8s ease-in-out infinite;
}
.hero-bg::after {
    content: '';
    position: absolute;
    bottom: -80px;
    left: -80px;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(13,148,136,0.2) 0%, transparent 70%);
    animation: float2 10s ease-in-out infinite;
}
@keyframes float1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50%       { transform: translate(-30px, 20px) scale(1.05); }
}
@keyframes float2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50%       { transform: translate(20px, -30px) scale(1.08); }
}

/* Vague SVG de transition */
.hero-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    line-height: 0;
    pointer-events: none;
}
.hero-wave svg { display: block; width: 100%; }

/* Contenu hero */
.hero-content {
    position: relative;
    z-index: 2;
    padding: 80px 20px 120px;
    text-align: center;
    max-width: 760px;
    margin: 0 auto;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 700;
    color: var(--secondary);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 20px;
    padding: 6px 16px;
    background: rgba(245,158,11,0.12);
    border: 1px solid rgba(245,158,11,0.25);
    border-radius: var(--radius-full);
}

.hero-title {
    font-size: clamp(30px, 5.5vw, 58px);
    font-weight: 900;
    color: #fff;
    line-height: 1.08;
    letter-spacing: -1.5px;
    margin-bottom: 20px;
}

.hero-title span {
    background: linear-gradient(135deg, #F59E0B, #0EA5E9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 18px;
    color: rgba(255,255,255,0.78);
    max-width: 520px;
    margin: 0 auto 36px;
    font-weight: 400;
    line-height: 1.7;
}

/* Boutons modules */
.hero-modules {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 32px;
}

.hero-module-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1.5px solid rgba(255,255,255,0.25);
    border-radius: var(--radius-full);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    transition: all 0.25s ease;
    letter-spacing: 0.01em;
}
.hero-module-btn:hover {
    background: rgba(255,255,255,0.22);
    border-color: rgba(255,255,255,0.6);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

/* ─── Statistiques hero ─── */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid rgba(255,255,255,0.12);
}
.hero-stat-num {
    font-size: 28px;
    font-weight: 900;
    color: #fff;
    line-height: 1;
}
.hero-stat-lbl {
    font-size: 12px;
    color: rgba(255,255,255,0.55);
    margin-top: 4px;
}

/* ═══ 7. BANDE DE CONFIANCE ═══════════════════════════════════════════════════ */
.trust-strip {
    background: #fff;
    border-bottom: 1px solid var(--border-light);
    padding: 14px 0;
    box-shadow: 0 2px 12px rgba(10,35,66,0.04);
}
.trust-items {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
    flex-wrap: wrap;
}
.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    padding: 6px 24px;
    border-right: 1px solid var(--border-light);
}
.trust-item:last-child { border-right: none; }
.trust-item-icon { font-size: 18px; }

/* ═══ 8. SECTIONS ════════════════════════════════════════════════════════════ */
.section {
    padding: 80px 0;
    position: relative;
}

.section + .section { padding-top: 0; }

.bg-alt { background: var(--bg-alt); }
.bg-blue { background: var(--bg-blue); }

/* Séparateur décoratif de section */
.section-divider {
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--border), transparent);
    margin: 0;
}

.section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 40px;
    gap: 16px;
}

/* Accroche (petite ligne colorée au-dessus du titre) */
.section-eyebrow {
    font-size: 12px;
    font-weight: 700;
    color: var(--primary-light);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.section-eyebrow::before {
    content: '';
    display: block;
    width: 24px;
    height: 2px;
    background: var(--grad-primary);
    border-radius: 2px;
}

.section-header h2 {
    font-size: clamp(22px, 3vw, 32px);
    font-weight: 900;
    color: var(--text);
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.section-header p {
    color: var(--text-muted);
    font-size: 15px;
    margin-top: 6px;
}

.section-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 700;
    color: var(--primary);
    white-space: nowrap;
    flex-shrink: 0;
    padding: 8px 16px;
    border: 1.5px solid rgba(18,82,163,0.2);
    border-radius: var(--radius-full);
    transition: all var(--transition);
}
.section-link:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    transform: translateY(-1px);
    box-shadow: var(--shadow-btn);
}

/* ═══ 9. CARTES SERVICES ════════════════════════════════════════════════════ */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
}

.service-card {
    background: #fff;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    text-align: center;
    transition: all var(--transition-md);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 3px;
    background: var(--grad-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.service-card:hover {
    border-color: rgba(18,82,163,0.2);
    box-shadow: var(--shadow-card);
    transform: translateY(-4px);
}
.service-card:hover::before { transform: scaleX(1); }

.service-icon {
    font-size: 40px;
    margin-bottom: 16px;
    display: block;
    transition: transform var(--spring);
}
.service-card:hover .service-icon { transform: scale(1.15); }

.service-card h3 {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    line-height: 1.3;
}

/* ═══ 10. CARTES PROPRIÉTÉS PREMIUM ═════════════════════════════════════════ */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 28px;
}

.property-card {
    background: #fff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: transform var(--spring), box-shadow var(--transition-md);
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(226,232,240,0.7);
    position: relative;
}

.property-card:hover {
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-8px) scale(1.005);
    border-color: rgba(18,82,163,0.12);
}

/* Image */
.card-img {
    position: relative;
    padding-top: 63%;
    overflow: hidden;
    background: var(--bg-alt);
    flex-shrink: 0;
}

.card-img img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.property-card:hover .card-img img { transform: scale(1.08); }

/* Overlay gradient sur l'image */
.card-img::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 45%;
    background: linear-gradient(transparent, rgba(10,35,66,0.35));
    pointer-events: none;
}

.card-img-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 56px;
    background: linear-gradient(135deg, #EFF6FF, #F0FDF4);
}

/* Badges */
.card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    padding: 5px 12px;
    border-radius: var(--radius-full);
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.badge-pool {
    background: linear-gradient(135deg, #0EA5E9, #0D9488);
    color: #fff;
}

.badge-featured {
    background: var(--grad-gold);
    color: #fff;
    box-shadow: 0 2px 8px rgba(245,158,11,0.4);
}

/* Wishlist/favori (coin supérieur droit) */
.card-wish {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255,255,255,0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.2s ease;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}
.property-card:hover .card-wish {
    opacity: 1;
    transform: scale(1);
}

/* Corps de la carte */
.card-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.card-body h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Localisation */
.card-location {
    font-size: 12.5px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Évaluation */
.card-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
}
.card-rating-stars { color: var(--secondary); font-size: 12px; }
.card-rating-num { font-weight: 700; color: var(--text); }
.card-rating-count { color: var(--text-muted); }

.card-features {
    display: flex;
    gap: 14px;
    font-size: 13px;
    color: var(--text-muted);
    flex-wrap: wrap;
}

/* Prix — en bas de la carte */
.card-price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid var(--border-light);
}

.card-price {
    font-size: 20px;
    font-weight: 900;
    color: var(--primary);
    line-height: 1;
}
.card-price small {
    font-size: 13px;
    font-weight: 400;
    color: var(--text-muted);
}

/* ═══ 11. SECTION "POURQUOI NOUS" ═════════════════════════════════════════ */
.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
    counter-reset: why;
}

.why-card {
    padding: 28px 24px;
    background: #fff;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    position: relative;
    transition: all var(--transition-md);
    box-shadow: var(--shadow-xs);
}

.why-card:hover {
    border-color: rgba(18,82,163,0.15);
    box-shadow: var(--shadow-card);
    transform: translateY(-3px);
}

.why-num {
    font-size: 48px;
    font-weight: 900;
    background: var(--grad-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 12px;
    opacity: 0.12;
    font-variant-numeric: tabular-nums;
}

.why-icon {
    font-size: 32px;
    margin-bottom: 14px;
    display: block;
}

.why-card h3 {
    font-size: 16px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 8px;
}

.why-card p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.65;
}

/* ═══ 12. CTA SECTION ════════════════════════════════════════════════════════ */
.cta-section {
    background: var(--grad-hero);
    color: #fff;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -200px; right: -200px;
    width: 600px; height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(14,165,233,0.2) 0%, transparent 70%);
    pointer-events: none;
}

.cta-section::after {
    content: '';
    position: absolute;
    bottom: -100px; left: -100px;
    width: 400px; height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(13,148,136,0.15) 0%, transparent 70%);
    pointer-events: none;
}

.cta-content {
    text-align: center;
    position: relative;
    z-index: 1;
}
.cta-content h2 {
    font-size: clamp(26px, 4vw, 40px);
    font-weight: 900;
    margin-bottom: 14px;
    letter-spacing: -0.5px;
}
.cta-content p {
    font-size: 17px;
    opacity: 0.82;
    margin-bottom: 32px;
}
.cta-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
}

/* ═══ 13. FOOTER PREMIUM ═════════════════════════════════════════════════════ */
.site-footer {
    background: var(--bg-dark);
    color: rgba(255,255,255,0.65);
    padding-top: 72px;
    position: relative;
    overflow: hidden;
}

/* Halos décoratifs */
.site-footer::before {
    content: '';
    position: absolute;
    top: -300px; right: -200px;
    width: 700px; height: 700px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(18,82,163,0.12) 0%, transparent 70%);
    pointer-events: none;
}
.site-footer::after {
    content: '';
    position: absolute;
    bottom: 0; left: -150px;
    width: 500px; height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(13,148,136,0.08) 0%, transparent 70%);
    pointer-events: none;
}

.footer-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 56px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 21px;
    font-weight: 900;
    color: #fff;
    margin-bottom: 16px;
}

.footer-logo-text {
    background: var(--grad-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-desc {
    font-size: 14px;
    line-height: 1.75;
    margin-bottom: 24px;
    color: rgba(255,255,255,0.55);
}

/* Réseaux sociaux */
.social-links {
    display: flex;
    gap: 10px;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: var(--radius);
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all var(--transition-md);
}
.social-link:hover {
    background: rgba(255,255,255,0.14);
    border-color: rgba(255,255,255,0.25);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
/* Fallback pour l'ancien sélecteur */
.social-links a {
    width: 40px;
    height: 40px;
    border-radius: var(--radius);
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all var(--transition-md);
    opacity: 1;
    text-decoration: none;
}
.social-links a:hover {
    background: rgba(255,255,255,0.14);
    border-color: rgba(255,255,255,0.25);
    transform: translateY(-2px);
    opacity: 1;
}

.footer-col { position: relative; z-index: 1; }

.footer-col h4 {
    font-size: 11px;
    font-weight: 700;
    color: rgba(255,255,255,0.4);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.footer-col ul { list-style: none; }

.footer-col ul li { margin-bottom: 12px; }

.footer-col ul li a {
    font-size: 14px;
    color: rgba(255,255,255,0.6);
    transition: color var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.footer-col ul li a:hover { color: #fff; }

/* Séparateur footer */
.footer-bottom {
    position: relative;
    z-index: 1;
    border-top: 1px solid rgba(255,255,255,0.07);
    padding: 20px 0;
}

.footer-bottom .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    gap: 16px;
    flex-wrap: wrap;
    color: rgba(255,255,255,0.4);
}

.footer-bottom a {
    color: rgba(255,255,255,0.4);
    transition: color var(--transition);
}
.footer-bottom a:hover { color: var(--secondary); }

/* ═══ 14. STICKY CONTACT MOBILE ══════════════════════════════════════════════ */
.sticky-contact {
    display: none;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 400;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--border);
    padding: 10px 16px;
    gap: 10px;
    box-shadow: 0 -8px 32px rgba(10,35,66,0.12);
}

.sticky-btn {
    flex: 1;
    padding: 13px;
    border-radius: var(--radius);
    text-align: center;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.01em;
    transition: all var(--transition);
}

.sticky-btn.whatsapp {
    background: var(--grad-wa);
    color: #fff;
    box-shadow: 0 4px 12px rgba(37,211,102,0.3);
}
.sticky-btn.phone {
    background: var(--grad-primary);
    color: #fff;
    box-shadow: var(--shadow-btn);
}

/* ═══ 15. UTILITAIRES ════════════════════════════════════════════════════════ */
.mt-2  { margin-top: 8px; }
.mt-4  { margin-top: 16px; }
.mb-4  { margin-bottom: 24px; }
.text-center { text-align: center; }
.text-muted  { color: var(--text-muted); }

/* Focus visible accessible */
:focus-visible {
    outline: 2px solid var(--primary-light);
    outline-offset: 3px;
    border-radius: 4px;
}

/* Apparition progressive (pour les sections) */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(28px); }
    to   { opacity: 1; transform: translateY(0); }
}

.anim-up {
    animation: fadeInUp 0.6s ease backwards;
}
.anim-up:nth-child(2) { animation-delay: 0.1s; }
.anim-up:nth-child(3) { animation-delay: 0.2s; }
.anim-up:nth-child(4) { animation-delay: 0.3s; }

/* Erreur 404 */
.error-page { padding: 80px 20px; }
.error-content { text-align: center; max-width: 500px; margin: 0 auto; }
.error-code { font-size: 120px; font-weight: 900; color: var(--primary); line-height: 1; opacity: 0.1; }
.error-content h1 { font-size: 32px; font-weight: 800; margin-bottom: 12px; margin-top: -30px; }
.error-content p { color: var(--text-muted); margin-bottom: 28px; }
.error-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }

/* ═══ 16. RESPONSIVE ═════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
    .topbar-trust { display: none; }
}

@media (max-width: 768px) {
    .topbar { display: none; }

    .main-nav {
        display: none;
        position: fixed;
        top: var(--header-h);
        left: 0; right: 0;
        background: rgba(255,255,255,0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 16px;
        border-bottom: 1px solid var(--border);
        box-shadow: 0 16px 40px rgba(10,35,66,0.12);
        z-index: 450;
        gap: 4px;
    }
    .main-nav.open { display: flex; animation: slideDown 0.25s ease; }

    @keyframes slideDown {
        from { opacity: 0; transform: translateY(-12px); }
        to   { opacity: 1; transform: translateY(0); }
    }

    .nav-link { width: 100%; padding: 12px 16px; border-radius: var(--radius); }
    .nav-link::after { display: none; }
    .nav-toggle { display: flex; }

    .hero { min-height: 480px; }
    .hero-content { padding: 56px 20px 80px; }
    .hero-stats { gap: 20px; }
    .hero-stat-num { font-size: 22px; }

    .trust-item { padding: 6px 12px; font-size: 12px; }

    .section { padding: 56px 0; }
    .section-header { flex-direction: column; align-items: flex-start; }
    .cards-grid { grid-template-columns: 1fr; gap: 20px; }

    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .sticky-contact { display: flex; }
    main { padding-bottom: 68px; }
    .lang-switcher { display: none; }

    .btn.btn-sm.d-none-mobile { display: none; }
    .cta-content h2 { font-size: 24px; }
}

@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .hero-stats { display: none; }
    .hero-modules { gap: 8px; }
    .hero-module-btn { font-size: 13px; padding: 10px 18px; }
    .cards-grid { gap: 16px; }
}

/* ═══ 17. MODULE MAISONS — PHASE 2 (amélioré) ════════════════════════════════ */

/* Bannière listing */
.page-banner {
    background: var(--grad-hero);
    background-size: 200% 200%;
    animation: heroShift 12s ease infinite;
    color: #fff;
    padding: 48px 0 40px;
    position: relative;
    overflow: hidden;
}
.page-banner::before {
    content: '';
    position: absolute;
    top: -80px; right: -80px;
    width: 300px; height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(14,165,233,0.2) 0%, transparent 70%);
}
.page-banner h1 {
    font-size: clamp(22px, 4vw, 36px);
    font-weight: 900;
    margin: 10px 0 8px;
    color: #fff;
    letter-spacing: -0.5px;
}
.page-banner p { font-size: 14px; opacity: 0.75; }

/* Fil d'Ariane */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    flex-wrap: wrap;
}
.page-banner .breadcrumb a    { color: rgba(255,255,255,0.65); }
.page-banner .breadcrumb span { color: rgba(255,255,255,0.4); }

.breadcrumb-bar {
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border-light);
    padding: 12px 0;
}
.breadcrumb-bar .breadcrumb a    { color: var(--primary); font-weight: 600; }
.breadcrumb-bar .breadcrumb span { color: var(--text-light); font-size: 11px; }

/* Barre de filtres */
.filter-strip {
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-light);
    padding: 14px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 16px rgba(10,35,66,0.07);
}
.filter-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

.filter-strip .filter-select {
    padding: 10px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    font-size: 13px;
    font-weight: 500;
    color: var(--text);
    background: #fff;
    cursor: pointer;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-shadow: var(--shadow-xs);
}
.filter-strip .filter-select:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(18,82,163,0.1);
}

.filter-search-wrap {
    display: flex;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    flex: 1;
    min-width: 160px;
    max-width: 280px;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #fff;
    box-shadow: var(--shadow-xs);
}
.filter-search-wrap:focus-within {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(18,82,163,0.1);
}
.filter-search-input {
    flex: 1;
    padding: 10px 12px;
    border: none;
    outline: none;
    font-size: 13px;
    background: transparent;
    min-width: 0;
}
.filter-search-btn {
    padding: 0 14px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    color: var(--text-muted);
    transition: color 0.2s;
}
.filter-search-btn:hover { color: var(--primary); }

.filter-reset {
    font-size: 12px;
    color: var(--text-muted);
    white-space: nowrap;
    padding: 6px 12px;
    border-radius: var(--radius-full);
    transition: all 0.2s;
    border: 1px solid transparent;
}
.filter-reset:hover {
    background: rgba(239,68,68,0.07);
    color: var(--danger);
    border-color: rgba(239,68,68,0.2);
}

/* Pagination front */
.front-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 48px;
    flex-wrap: wrap;
}
.front-page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    background: #fff;
    border: 1.5px solid var(--border);
    transition: all 0.2s;
    box-shadow: var(--shadow-xs);
}
.front-page-link:hover {
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: var(--shadow-sm);
}
.front-page-link.active {
    background: var(--grad-primary);
    color: #fff;
    border-color: transparent;
    box-shadow: var(--shadow-btn);
}
.front-page-ellipsis { font-size: 14px; color: var(--text-light); padding: 0 4px; }

/* Layout détail maison */
.detail-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 36px;
    padding-top: 32px;
    padding-bottom: 56px;
    align-items: start;
}
.detail-main { min-width: 0; }
.detail-section {
    margin-top: 36px;
    padding-top: 32px;
    border-top: 1px solid var(--border-light);
}
.detail-section:first-child { margin-top: 0; padding-top: 0; border-top: none; }
.detail-section h2 {
    font-size: 21px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 16px;
    letter-spacing: -0.3px;
}
.detail-desc {
    font-size: 15px;
    line-height: 1.78;
    color: var(--text-muted);
    white-space: pre-line;
}

/* ─── Box carte (localisation) ─────────────────────────────────────── */
.map-box {
    margin-top: 16px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    background: var(--bg-alt);
}
.map-box-header {
    display: flex;
    justify-content: flex-end;
    padding: 12px 14px;
    background: var(--bg-alt);
    border-bottom: 1.5px solid var(--border);
}
.map-box-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 8;
}
.map-box-frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}
@media (max-width: 640px) {
    .map-box-frame { aspect-ratio: 4 / 3; }
}
.detail-title-mobile { display: none; margin-bottom: 20px; }
.detail-title-mobile h1 { font-size: 23px; font-weight: 900; margin-bottom: 8px; letter-spacing: -0.3px; }
.detail-meta { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

/* Galerie */
.house-gallery { border-radius: var(--radius-xl); overflow: hidden; }
.gallery-hero {
    aspect-ratio: 16/9;
    overflow: hidden;
    background: var(--bg-alt);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
}
.gallery-hero img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s cubic-bezier(0.4,0,0.2,1);
    cursor: zoom-in;
}
.gallery-hero:hover img { transform: scale(1.03); }

.gallery-thumbs {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    overflow-x: auto;
    scrollbar-width: thin;
    padding-bottom: 4px;
}
.gallery-thumb {
    flex-shrink: 0;
    width: 84px; height: 64px;
    border-radius: var(--radius);
    overflow: hidden;
    border: 2.5px solid transparent;
    cursor: pointer;
    padding: 0;
    transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.gallery-thumb:hover {
    transform: scale(1.06);
    box-shadow: var(--shadow-sm);
}
.gallery-thumb.active {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(18,82,163,0.15);
}
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Équipements */
.equip-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
    gap: 10px;
}
.equip-item {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 11px 14px;
    background: var(--bg-alt);
    border-radius: var(--radius);
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    border: 1px solid var(--border-light);
    transition: all 0.2s;
}
.equip-item:hover {
    background: var(--bg-blue);
    border-color: rgba(18,82,163,0.15);
}
.equip-icon { font-size: 18px; flex-shrink: 0; }
.equip-pool {
    background: rgba(14,165,233,0.07);
    border-color: rgba(14,165,233,0.2);
}

/* Sidebar détail */
.detail-sidebar { position: sticky; top: 88px; }
.sidebar-card {
    background: #fff;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 28px;
    box-shadow: var(--shadow-card);
}
.sidebar-title {
    font-size: 20px;
    font-weight: 900;
    color: var(--text);
    margin-bottom: 6px;
    line-height: 1.3;
    letter-spacing: -0.3px;
}
.sidebar-location { font-size: 13px; color: var(--text-muted); margin-bottom: 14px; }
.sidebar-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }

.tag-type, .tag-pool {
    font-size: 12px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: var(--radius-full);
    background: rgba(18,82,163,0.08);
    color: var(--primary);
    border: 1px solid rgba(18,82,163,0.15);
}
.tag-pool {
    background: rgba(14,165,233,0.08);
    color: var(--sky);
    border-color: rgba(14,165,233,0.2);
}

.key-facts {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
    gap: 10px;
    margin-bottom: 22px;
    padding: 16px;
    background: var(--bg-alt);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
}
.key-fact { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.key-fact-val {
    font-size: 24px;
    font-weight: 900;
    background: var(--grad-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}
.key-fact-lbl { font-size: 11px; color: var(--text-muted); text-align: center; line-height: 1.2; }

.sidebar-prices {
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
    padding: 16px 0;
    margin-bottom: 20px;
}
.price-row { display: flex; align-items: baseline; gap: 6px; }
.price-row + .price-row { margin-top: 8px; }
.price-amount { font-size: 26px; font-weight: 900; color: var(--primary); }
.price-unit   { font-size: 13px; color: var(--text-muted); }
.price-week .price-amount { font-size: 20px; color: var(--text); }
.sidebar-cta { display: flex; flex-direction: column; gap: 10px; }

@media (max-width: 960px) {
    .detail-layout { grid-template-columns: 1fr; }
    .detail-sidebar { position: static; order: -1; }
    .sidebar-title    { display: none; }
    .sidebar-location { display: none; }
    .detail-title-mobile { display: block; }
}
@media (max-width: 640px) {
    .filter-row { gap: 8px; }
    .filter-strip .filter-select { flex: 1; min-width: 0; }
    .filter-search-wrap { max-width: 100%; width: 100%; flex-basis: 100%; }
    .equip-grid { grid-template-columns: 1fr 1fr; }
    .key-facts  { grid-template-columns: repeat(2, 1fr); }
    .gallery-hero { aspect-ratio: 4/3; }
}


/* ═══ FLASH MESSAGES ═════════════════════════════════════════════════════════ */
.flash-container {
    position: relative;
    z-index: 200;
}

.flash {
    padding: 14px 20px;
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--radius);
    margin: 12px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: fadeInUp 0.4s ease;
    border-left: 4px solid transparent;
}

.flash-success {
    background: rgba(16,185,129,0.08);
    color: #065F46;
    border-left-color: var(--success);
}

.flash-error {
    background: rgba(239,68,68,0.08);
    color: #991B1B;
    border-left-color: var(--danger);
}

/* ═══ SECTION "POURQUOI" — styles manquants ══════════════════════════════════ */
.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
}

.why-card {
    padding: 32px 24px;
    background: #fff;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    position: relative;
    transition: all var(--transition-md);
    box-shadow: var(--shadow-xs);
}
.why-card:hover {
    border-color: rgba(18,82,163,0.2);
    box-shadow: var(--shadow-card);
    transform: translateY(-4px);
}
.why-icon {
    font-size: 36px;
    margin-bottom: 16px;
    display: block;
    transition: transform var(--spring);
}
.why-card:hover .why-icon { transform: scale(1.15); }
.why-card h3 { font-size: 17px; font-weight: 800; color: var(--text); margin-bottom: 10px; }
.why-card p  { font-size: 14px; color: var(--text-muted); line-height: 1.7; }


/* ═══ MODULE VOITURES — PHASE 3 ════════════════════════════════════════════════ */

/* ─── Badges carburant (sur l'image, coin supérieur gauche) ──────────────────── */
.badge-fuel-essence {
    background: linear-gradient(135deg, #F97316, #EA580C);
    color: #fff;
}
.badge-fuel-diesel {
    background: linear-gradient(135deg, #64748B, #475569);
    color: #fff;
}
.badge-fuel-hybride {
    background: linear-gradient(135deg, #0D9488, #0F766E);
    color: #fff;
}
.badge-fuel-electrique {
    background: linear-gradient(135deg, #0EA5E9, #0284C7);
    color: #fff;
}

/* ─── Tags carburant (sidebar / mobile meta) ──────────────────────────────────── */
.tag-fuel-essence, .tag-fuel-diesel, .tag-fuel-hybride, .tag-fuel-electrique {
    font-size: 12px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: var(--radius-full);
    border: 1px solid transparent;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.tag-fuel-essence {
    background: rgba(249,115,22,0.08);
    color: var(--coral);
    border-color: rgba(249,115,22,0.2);
}
.tag-fuel-diesel {
    background: rgba(100,116,139,0.08);
    color: var(--text-muted);
    border-color: rgba(100,116,139,0.2);
}
.tag-fuel-hybride {
    background: rgba(13,148,136,0.08);
    color: var(--teal);
    border-color: rgba(13,148,136,0.2);
}
.tag-fuel-electrique {
    background: rgba(14,165,233,0.08);
    color: var(--sky);
    border-color: rgba(14,165,233,0.2);
}

/* ─── Grille de spécifications techniques ─────────────────────────────────────── */
.spec-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
}

.spec-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: var(--bg-alt);
    border-radius: var(--radius);
    border: 1px solid var(--border-light);
    transition: all var(--transition-md);
}
.spec-item:hover {
    background: var(--bg-blue);
    border-color: rgba(18,82,163,0.15);
    transform: translateY(-2px);
}

.spec-icon {
    font-size: 20px;
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow-xs);
}

.spec-label {
    font-size: 10.5px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.6px;
    font-weight: 700;
    line-height: 1.4;
}

.spec-value {
    font-size: 15px;
    color: var(--text);
    font-weight: 800;
    line-height: 1.3;
    margin-top: 1px;
}

@media (max-width: 640px) {
    .spec-grid { grid-template-columns: 1fr 1fr; }
}

/* ═══ FORMULAIRE DE CONTACT (sidebar des pages détail) ══════════════════════ */

/* ── Section conteneur ──────────────────────────────────────────────────── */
.cform-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-light);
}

/* ── Bouton toggle ──────────────────────────────────────────────────────── */
.cform-toggle {
    width: 100%;
    padding: 12px 20px;
    background: var(--bg-alt);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    color: var(--primary);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s;
    font-family: inherit;
}
.cform-toggle:hover {
    background: var(--bg-blue);
    border-color: var(--primary-light);
}

/* ── Wrapper collapsible ───────────────────────────────────────────────── */
.cform-wrap {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.3s ease, padding-top 0.3s;
    opacity: 0;
}
.cform-wrap.open {
    max-height: 1000px;
    opacity: 1;
    padding-top: 18px;
}

/* ── Champs du formulaire ──────────────────────────────────────────────── */
.cform-field {
    margin-bottom: 12px;
}
.cform-field label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 5px;
}
.cform-field input,
.cform-field select,
.cform-field textarea {
    width: 100%;
    padding: 9px 12px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    font-size: 13px;
    color: var(--text);
    background: #fff;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}
.cform-field input:focus,
.cform-field select:focus,
.cform-field textarea:focus {
    outline: none;
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(18,82,163,0.08);
}
.cform-field textarea {
    resize: vertical;
    min-height: 72px;
}

/* ── Grille 2 colonnes ──────────────────────────────────────────────────── */
.cform-row2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

/* ── Erreurs inline ─────────────────────────────────────────────────────── */
.cform-errors {
    background: rgba(239,68,68,0.07);
    border: 1px solid rgba(239,68,68,0.25);
    border-radius: var(--radius);
    padding: 10px 14px;
    margin-bottom: 12px;
    color: #991B1B;
    font-size: 13px;
    line-height: 1.6;
}
.cform-errors p { margin: 0 0 4px; }
.cform-errors p:last-child { margin-bottom: 0; }

/* ── Message de succès ──────────────────────────────────────────────────── */
.cform-success {
    text-align: center;
    padding: 24px 16px;
    background: rgba(16,185,129,0.06);
    border: 1px solid rgba(16,185,129,0.2);
    border-radius: var(--radius-lg);
}
.cform-success-icon { font-size: 36px; margin-bottom: 10px; }
.cform-success h3   { color: #065F46; font-size: 16px; margin-bottom: 6px; }
.cform-success p    { color: var(--text-muted); font-size: 13px; }

/* ── Flash info/warning (complète les types success/error existants) ─────── */
.flash-warning {
    background: rgba(245,158,11,0.08);
    color: #78350F;
    border-left-color: var(--secondary);
}
.flash-info {
    background: rgba(14,165,233,0.08);
    color: #0C4A6E;
    border-left-color: var(--sky);
}

/* ═══ PUBLICITÉS (slots front) ═══════════════════════════════════════════════ */

.ad-slot {
    position: relative;
    margin: 20px 0;
    text-align: center;
}
.ad-slot img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius);
    display: block;
    margin: 0 auto;
}
.ad-slot-label {
    position: absolute;
    top: 6px;
    right: 6px;
    background: rgba(15, 23, 42, 0.55);
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    padding: 2px 8px;
    border-radius: 99px;
    pointer-events: none;
}

/* En-tête : bannière pleine largeur, contenue */
.ad-slot-header {
    margin: 0;
    padding: 10px 0;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border-light);
}
.ad-slot-header img { max-height: 120px; width: auto; }

/* Sidebar (haut/bas) : s'intègre dans la largeur de la colonne droite */
.ad-slot-sidebar_top,
.ad-slot-sidebar_bottom {
    margin: 16px 0;
}
.ad-slot-sidebar_bottom { margin-top: 0; }

/* Entre les annonces : occupe toute la largeur de la grille de cartes */
.ad-slot-between_listings {
    grid-column: 1 / -1;
    margin: 4px 0 16px;
    padding: 16px;
    background: var(--bg-alt);
    border-radius: var(--radius-lg);
    border: 1px dashed var(--border);
}

/* Pied de page : sur fond sombre (footer), label adapté */
.site-footer .ad-slot-footer {
    margin: 0 0 24px;
}
.site-footer .ad-slot-label {
    background: rgba(255, 255, 255, 0.15);
}

@media (max-width: 768px) {
    .ad-slot-header img { max-height: 80px; }
}
