:root {
    /* --- COULEURS --- */
    --primary: #F0642C;
    --primary-dark: #d6501c;
    --navy: #0B1B2B;
    --navy-light: #162a40;
    --accent-green: #22C55E;

    /* --- FONDS & TEXTES --- */
    --bg-body: #F8FAFC;
    --text-main: #0B1B2B;
    --text-muted: #64748B;
    --white: #ffffff;

    /* --- FORMES & OMBRES --- */
    --radius-btn: 50px;
    --radius-card: 24px;
    --shadow-soft: 0 10px 40px -10px rgba(11, 27, 43, 0.08);
    --shadow-hover: 0 20px 40px -10px rgba(11, 27, 43, 0.15);
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-body);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    transition: 0.3s;
}

/* --- NAVBAR --- */
.custom-navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.brand-logo {
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--navy);
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-logo .dot {
    color: var(--primary);
}

.logo-img {
    height: 40px;
    width: auto;
}

.nav-link {
    font-weight: 500;
    color: var(--text-muted) !important;
    padding: 8px 16px !important;
}

.nav-link:hover {
    color: var(--primary) !important;
}

.nav-link.active {
    color: var(--navy) !important;
    font-weight: 600;
}

/* --- HERO SECTION --- */
.hero-section {
    padding: 60px 0 80px;
    position: relative;
    overflow: visible;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.1;
    color: var(--navy);
    margin-bottom: 1.5rem;
}

.highlight {
    color: var(--primary);
}

.hero-desc {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 500px;
}

/* BOUTONS */
.custom-btn {
    border-radius: var(--radius-btn);
    padding: 12px 30px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(240, 100, 44, 0.2);
}

.btn-primary {
    background-color: var(--primary) !important;
    border-color: var(--primary) !important;
    color: white !important;
}

.btn-primary:hover {
    background-color: var(--primary-dark) !important;
    border-color: var(--primary-dark) !important;
    transform: translateY(-2px);
}

.btn-outline-secondary {
    border: 2px solid var(--text-muted);
    color: var(--text-muted);
}

.btn-outline-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: transparent;
}

/* TRUST BADGES */
.trust-badges {
    margin-top: 40px;
    display: flex;
    gap: 20px;
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 600;
}

.badge-item {
    background: #fff;
    padding: 8px 16px;
    border-radius: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

/* --- MOCKUP TELEPHONE --- */
.phone-wrapper {
    position: relative;
    text-align: center;
    z-index: 1;
    margin-top: 20px;
}

.phone-mockup-img {
    max-height: 550px;
    width: auto;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.2));
    animation: floatPhone 6s ease-in-out infinite;
}

/* CARTES FLOTTANTES (HERO) */
.floating-card {
    position: absolute;
    background: white;
    padding: 12px 20px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 2;
    min-width: 160px;
}

.card-price {
    top: 15%;
    right: 0;
    animation: float 5s ease-in-out infinite;
}

.card-location {
    bottom: 20%;
    left: 0;
    animation: float 7s ease-in-out infinite;
    animation-delay: 1s;
}

.icon-circle {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: white;
}

.bg-green {
    background: var(--accent-green);
}

.bg-orange {
    background: var(--primary);
}

.floating-card .lbl {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
}

.floating-card .val {
    display: block;
    font-size: 1.1rem;
    color: var(--navy);
    font-weight: 800;
}

/* --- FEATURES --- */
.features-section {
    padding: 80px 0;
    background: #fff;
}

.section-header h2 {
    font-weight: 800;
    color: var(--navy);
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.feature-box {
    padding: 40px 30px;
    background: var(--bg-body);
    border-radius: var(--radius-card);
    transition: 0.3s;
    height: 100%;
    border: 1px solid #f1f5f9;
}

.feature-box:hover {
    background: #fff;
    box-shadow: var(--shadow-hover);
    transform: translateY(-5px);
}

.icon-box {
    width: 60px;
    height: 60px;
    background: rgba(240, 100, 44, 0.1);
    color: var(--primary);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 25px;
}

.feature-box h3 {
    font-weight: 700;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

/* --- APP CTA --- */
.app-cta-section {
    padding: 80px 0;
}

.cta-box {
    background: linear-gradient(135deg, var(--navy), #1a3b5c);
    border-radius: 30px;
    padding: 60px;
    color: white;
    box-shadow: 0 20px 50px rgba(11, 27, 43, 0.3);
}

.cta-box h2 {
    font-weight: 800;
    margin-bottom: 20px;
    color: white;
}

.cta-box p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 30px;
    color: #cbd5e1;
}

/* --- FOOTER --- */
.footer-custom {
    background: var(--navy);
    color: white;
    padding: 70px 0 20px;
    margin-top: auto;
}

.footer-title {
    font-weight: 800;
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: white;
}

.footer-title .dot {
    color: var(--primary);
}

.footer-links a {
    color: #94a3b8;
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-bottom {
    margin-top: 60px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* --- SECTION CARTE (LE CODE IMPORTANT) --- */
.map-section {
    position: relative;
    padding: 40px 0;
}

.map-mock {
    position: relative;
    height: 500px;
    width: 100%;
    background-color: #e5e7eb;
    /* Gris si pas d'image */
    background-image: url('/images/map-bg.jpg');
    /* VOTRE IMAGE ICI */
    background-size: cover;
    background-position: center;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.map-toolbar {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    padding: 8px 12px;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.map-filter {
    background: transparent;
    border: 1px solid #e2e8f0;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-main);
    cursor: pointer;
}

.map-price {
    position: absolute;
    background: var(--navy);
    color: white;
    padding: 8px 16px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    /* Les prix sont placés ici pour l'exemple */
}

.map-price:after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid var(--navy);
}

.map-price.is-green {
    background: var(--accent-green);
    z-index: 5;
    transform: scale(1.1);
}

.map-price.is-green:after {
    border-top-color: var(--accent-green);
}

/* Positions des prix */
.price-1 {
    top: 30%;
    left: 20%;
}

.price-2 {
    top: 55%;
    left: 65%;
}

/* Carte blanche en bas */
.map-card {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: white;
    padding: 20px;
    border-radius: 20px;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
    z-index: 20;
    max-width: 400px;
    margin: 0 auto;
}

/* --- ANIMATIONS --- */
@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes floatPhone {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

/* --- MOBILE RESPONSIVE --- */
@media (max-width: 991px) {
    .hero-title {
        font-size: 2.5rem;
        text-align: center;
    }

    .hero-desc {
        text-align: center;
        margin: 0 auto 30px;
    }

    .hero-btns {
        justify-content: center;
    }

    .floating-card {
        display: none;
    }

    .map-mock {
        height: 400px;
    }

    .map-card {
        left: 10px;
        right: 10px;
        bottom: 10px;
        padding: 15px;
    }
}

/* --- APP SECTION & CHECKLIST --- */
.app-section {
    padding: 100px 0;
    overflow: hidden;
    /* Pour éviter que les images dépassent */
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--navy);
}

.app-checklist {
    list-style: none;
    padding: 0;
    margin: 30px 0;
}

.app-checklist li {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--text-main);
}

.check-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    margin-right: 15px;
    color: var(--primary);
    /* Orange */
    font-weight: bold;
    font-size: 1.2rem;
}

/* --- BOUTONS STORES --- */
.store-row {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-store-black,
.btn-store-grey {
    display: flex;
    align-items: center;
    padding: 8px 20px;
    border-radius: 12px;
    text-decoration: none;
    transition: 0.3s;
    min-width: 160px;
}

/* Google Play (Noir) */
.btn-store-black {
    background: #000;
    color: #fff;
    border: 1px solid #000;
}

.btn-store-black:hover {
    background: #333;
    color: #fff;
    transform: translateY(-2px);
}

/* App Store (Gris/Désactivé) */
.btn-store-grey {
    background: #E5E7EB;
    color: #9CA3AF;
    position: relative;
    cursor: default;
}

.btn-store-black i,
.btn-store-grey i {
    font-size: 1.8rem;
    margin-right: 10px;
}

.store-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.store-text span {
    font-size: 0.65rem;
    text-transform: uppercase;
}

.store-text strong {
    font-size: 1rem;
    font-weight: 600;
}

.badge-soon {
    position: absolute;
    top: -10px;
    right: -10px;
    background: #fff;
    color: var(--text-muted);
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 10px;
    border: 1px solid #E5E7EB;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

/* --- COMPOSITION VISUELLE (LES 3 TÉLÉPHONES RÉALISTES) --- */
.app-composition {
    position: relative;
    height: 650px;
    /* Un peu plus haut pour l'effet */
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Le flou coloré derrière */
.glow-effect {
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(240, 100, 44, 0.2) 0%, rgba(34, 197, 94, 0.15) 70%, transparent 100%);
    filter: blur(80px);
    z-index: 0;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
}

/* LE CADRE DU TÉLÉPHONE (iPhone Style) */
.phone-frame {
    position: absolute;
    width: 280px;
    /* Largeur réaliste */
    height: 580px;
    /* Hauteur réaliste */
    background: #000000;
    /* Couleur du châssis */
    border-radius: 45px;
    /* Arrondis marqués */
    box-shadow:
        inset 0 0 0 2px #333,
        /* Bord fin intérieur */
        inset 0 0 0 6px #000,
        /* Épaisseur du cadre */
        0 20px 40px rgba(0, 0, 0, 0.3);
    /* Ombre portée */
    padding: 12px;
    /* Espace entre le cadre noir et l'écran */
    box-sizing: border-box;
    overflow: hidden;
    transition: 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* L'ENCOCHE (NOTCH) */
.phone-notch {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 30px;
    background: #000;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
    z-index: 20;
}

.phone-notch::before {
    /* Petit point caméra */
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 50px;
    height: 6px;
    background: #1a1a1a;
    border-radius: 10px;
    transform: translate(-50%, -50%);
}

/* L'ÉCRAN (Là où va votre image) */
.phone-screen {
    width: 300px;
    /* Plus large ? Essaie 320px */
    height: 600px;
    /* Plus haut ? Essaie 650px */
    background: #fff;
    border-radius: 35px;
    /* Arrondi de l'écran allumé */
    overflow: hidden;
    position: relative;
}

.phone-screen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Remplit tout l'écran sans déformer */
    object-position: top center;
    /* Cale l'image en haut */
}

/* --- POSITIONNEMENT EN ÉVENTAIL --- */

/* Centre (Devant) */
.frame-center {
    z-index: 10;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.frame-center:hover {
    transform: translate(-50%, -52%) scale(1.02);
    /* Petit effet au survol */
}

/* Gauche (Derrière) */
.frame-left {
    z-index: 5;
    top: 50%;
    left: 50%;
    transform: translate(-85%, -50%) scale(0.85) rotate(-10deg);
    opacity: 0.8;
}

/* Droite (Derrière) */
.frame-right {
    z-index: 5;
    top: 50%;
    left: 50%;
    transform: translate(-15%, -50%) scale(0.85) rotate(10deg);
    opacity: 0.8;
}

/* --- RESPONSIVE MOBILE --- */
@media (max-width: 991px) {
    .app-composition {
        height: 550px;
        margin-top: 40px;
    }

    .frame-left,
    .frame-right {
        display: none;
    }

    /* On cache les côtés */
    .frame-center {
        width: 260px;
        height: 540px;
        /* Un peu plus petit sur mobile */
    }

    .section-title {
        font-size: 2rem;
    }
}

/* --- PAGE RECHERCHE & LISTING (CORRIGÉ) --- */

/* Conteneur principal pour aérer */
.listing-container {
    max-width: 1000px;
    margin: 0 auto;
    padding-bottom: 60px;
}

.page-header {
    text-align: center;
    margin-bottom: 40px;
    padding-top: 40px;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 10px;
}

/* --- BARRE DE RECHERCHE (PILULE) --- */
.search-wrapper {
    background: white;
    padding: 10px;
    border-radius: 50px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    max-width: 850px;
    margin: 0 auto 50px;
    display: flex;
    /* Force l'alignement horizontal */
    align-items: center;
    gap: 10px;
    position: relative;
    z-index: 20;
}

/* Les champs de saisie */
.search-input-group {
    flex: 1;
    /* Prend toute la place disponible */
    position: relative;
}

.custom-input,
.custom-select {
    border: none !important;
    background: transparent !important;
    padding: 12px 20px;
    font-size: 1rem;
    color: var(--text-main);
    font-weight: 500;
    width: 100%;
    outline: none !important;
    box-shadow: none !important;
}

/* Le séparateur vertical */
.divider-vertical {
    width: 1px;
    height: 30px;
    background-color: #e2e8f0;
}

/* Le bouton rechercher */
.btn-search {
    border-radius: 40px !important;
    padding: 12px 30px !important;
    font-weight: 700 !important;
    white-space: nowrap;
    /* Empêche le texte de passer à la ligne */
}

/* --- CARTES STATIONS (GRID) --- */
/* On force une grille propre */
.station-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.station-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

.station-card {
    background: white;
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
    border: 1px solid #f1f5f9;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.station-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: rgba(240, 100, 44, 0.3);
}

/* --- HAUT DE CARTE (LOGO + INFO) --- */
.card-top {
    display: flex;
    align-items: flex-start;
    /* Aligner en haut */
    gap: 15px;
    margin-bottom: 20px;
}

/* LE CADRE DU LOGO (Taille Fixe Obligatoire) */
.station-logo-wrapper {
    width: 60px !important;
    height: 60px !important;
    min-width: 60px !important;
    /* Empêche l'écrasement */
    background: #ffffff;
    border-radius: 16px;
    padding: 5px;
    border: 1px solid #f1f5f9;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    /* Coupe ce qui dépasse */
}

/* L'IMAGE DU LOGO */
.station-logo-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    /* L'image s'adapte sans être coupée */
}

.station-info {
    flex: 1;
}

.station-info h5 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--navy);
    margin: 0 0 5px 0;
    line-height: 1.3;
}

.station-address {
    font-size: 0.85rem;
    color: #94a3b8;
    display: flex;
    gap: 6px;
    line-height: 1.4;
}

/* --- BAS DE CARTE (PRIX) --- */
.card-price-area {
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid #f8fafc;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.fuel-badge {
    background: rgba(34, 197, 94, 0.1);
    /* Fond vert très clair */
    color: var(--accent-green);
    padding: 6px 12px;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
}

.price-box {
    text-align: right;
}

.price-value {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--navy);
    line-height: 1;
}

.price-unit {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 600;
}

.update-time {
    display: block;
    font-size: 0.75rem;
    color: #cbd5e1;
    margin-top: 5px;
}

/* Responsive Mobile */
@media (max-width: 768px) {
    .search-wrapper {
        flex-direction: column;
        border-radius: 24px;
        padding: 15px;
        gap: 0;
    }

    .divider-vertical {
        display: none;
    }

    .search-input-group {
        width: 100%;
        border-bottom: 1px solid #f1f5f9;
        margin-bottom: 10px;
    }

    .btn-search {
        width: 100%;
        margin-top: 10px;
    }

    .station-grid {
        grid-template-columns: 1fr;
        /* 1 colonne sur mobile */
    }
}

/* --- PAGE DÉTAILS STATION (CORRIGÉ & BLINDÉ) --- */

.detail-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 20px 80px;
}

/* 1. L'EN-TÊTE (Header blanc) */
.station-header-wrapper {
    background: white;
    border-radius: 24px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    margin-bottom: 40px;
    display: flex; /* Force l'alignement horizontal */
    align-items: center;
    gap: 30px;
    position: relative;
    border: 1px solid #f1f5f9;
}

/* LE LOGO (Zone de sécurité) */
.detail-logo-box {
    width: 100px !important;      /* Largeur forcée */
    height: 100px !important;     /* Hauteur forcée */
    min-width: 100px !important;  /* Empêche l'écrasement */
    max-width: 100px !important;  /* Empêche l'agrandissement */
    background: white;
    border-radius: 20px;
    padding: 10px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden; /* Coupe tout ce qui dépasse */
}

.detail-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* L'image s'adapte à la boite */
}

/* LES INFOS */
.detail-info {
    flex: 1;
}

.detail-info h1 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--navy);
    margin: 0 0 10px 0;
    line-height: 1.1;
}

.detail-address {
    font-size: 1.1rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* 2. PRIX & SERVICES */
.section-title-sm {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.prices-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.price-item {
    background: white;
    padding: 15px 20px;
    border-radius: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid #f1f5f9;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
    transition: 0.2s;
}

.price-item:hover {
    border-color: var(--primary);
    transform: translateX(5px);
}

.fuel-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--navy);
    display: flex;
    align-items: center;
    gap: 12px;
}

.fuel-icon {
    width: 40px; height: 40px;
    background: rgba(240, 100, 44, 0.1);
    color: var(--primary);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
}

.fuel-price-big {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--navy);
}

/* SERVICES TAGS */
.services-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.service-tag {
    background: white;
    border: 1px solid #e2e8f0;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.9rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* 3. CARTE (MAP) */
.detail-map-box {
    border-radius: 24px;
    overflow: hidden;
    height: 500px; /* Hauteur forcée indispensable */
    width: 100%;
    box-shadow: var(--shadow-soft);
    border: 4px solid white;
    background: #e2e8f0;
    position: relative;
}

/* Responsive Mobile */
@media (max-width: 768px) {
    .station-header-wrapper {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
    .detail-logo-box {
        margin: 0 auto; /* Centre le logo sur mobile */
    }
    .detail-address {
        justify-content: center;
        font-size: 0.9rem;
    }
}

/* --- BLOCS PUBLICITAIRES (INTEGRÉS) --- */
.ad-container {
    background: transparent;
    margin-top: 20px;
    text-align: center;
}

.ad-label {
    font-size: 0.7rem;
    color: #cbd5e1; /* Gris très clair, discret */
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
    text-align: center;
}

/* Style de la boite qui contient la pub */
.ad-placeholder-rect, .ad-placeholder-banner {
    background: #f8fafc; /* Fond gris très léger pour ne pas faire "vide" si la pub charge mal */
    border-radius: 16px; /* Même arrondi que vos cartes de prix */
    overflow: hidden;
    min-height: 250px; /* Hauteur min pour éviter le saut de page */
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px dashed #e2e8f0; /* Bordure discrète */
}

.ad-placeholder-banner {
    min-height: 90px; /* Plus petit pour la bannière sous la carte */
}

/* Enlever la bordure dashed quand il y a une vraie pub (Optionnel via JS ou laisser tel quel) */