:root {
    /* Palette Antillaise & Confiance */
    --primary: #008CBA; /* Bleu Lagon Profond - Confiance */
    --primary-light: #E0F7FA; /* Bleu très clair - Fond */
    --accent: #FFB74D; /* Orange Solaire - Action */
    --text-main: #2C3E50; /* Gris foncé bleuté - Lisibilité */
    --text-light: #546E7A;
    --white: #FFFFFF;
    --success: #66BB6A;
    --shadow: 0 10px 30px rgba(0, 140, 186, 0.1);
    --card-shadow: 0 5px 20px rgba(0,0,0,0.05);
    --danger: #D32F2F;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-main);
    background-color: #FAFAFA;
    line-height: 1.7;
}

h1, h2, h3 {
    font-family: 'Merriweather', serif;
    color: var(--text-main);
}

/* --- HEADER / NAVIGATION --- */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: -0.5px;
}
.logo span { color: var(--accent); }

.nav-links a {
    text-decoration: none;
    color: var(--text-light);
    margin-left: 30px;
    font-weight: 500;
    transition: 0.3s;
}
.nav-links a:hover { color: var(--primary); }

/* Style pour le lien de navigation actif (Scrollspy) */
.nav-links a.active-link {
    color: var(--accent);
    font-weight: 700;
}
.nav-links a.active-link:hover {
    color: var(--accent);
}

.btn-pro {
    font-size: 0.85rem;
    padding: 8px 15px;
    border: 1px solid var(--text-light);
    border-radius: 5px;
    margin-left: 20px;
}

/* Bouton Mobile */
.menu-toggle {
    display: none; 
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary);
    border: none;
    background: none;
    padding: 0;
}

/* --- SCROLL TO TOP BUTTON --- */
#scrollTopBtn {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 900;
    border: none;
    outline: none;
    background-color: var(--accent);
    color: white;
    cursor: pointer;
    padding: 10px 14px;
    border-radius: 50%;
    font-size: 1.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    transition: opacity 0.3s, transform 0.3s;
    opacity: 0.8;
}

#scrollTopBtn:hover {
    background-color: var(--primary);
    opacity: 1;
    transform: scale(1.05);
}

/* NOUVEAU : BOUTON CONCIERGE FLOTTANT */
#concierge-btn {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 1000; /* Au-dessus de tout sauf les modales */
    background-color: var(--accent);
    color: var(--text-main);
    border: none;
    padding: 15px 20px;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(255, 183, 77, 0.5);
    transition: background-color 0.3s, transform 0.3s;
    display: flex;
    align-items: center;
}

#concierge-btn i {
    font-size: 1.2rem;
    margin-right: 10px;
}

#concierge-btn:hover {
    background-color: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 7px 25px rgba(0, 140, 186, 0.4);
}

/* --- HERO SECTION --- */
header {
    /* Mise à jour avec l'image de fond et un overlay sombre pour la lisibilité du texte blanc */
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.6)), url('https://location-voiture-martinique.fr/images-desktop/baie-pointe-du-bout-trois-ilet-martinique.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Ajout optionnel pour un bel effet */
    padding: 100px 5%; /* Augmentation du padding pour la hauteur */
    text-align: center;
    border-bottom: 5px solid var(--accent);
}

header h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--white); /* Rendre le titre blanc */
    text-shadow: 0 2px 5px rgba(0,0,0,0.8);
}

header h2 { /* NOUVEAU: Pour assurer la couleur blanche du sous-titre */
    color: var(--white);
    font-weight: 300;
    font-size: 1.8rem;
    margin-bottom: 15px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

header p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 40px auto;
    color: var(--white); /* Rendre le texte blanc */
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

/* Mise à jour pour que le bloc de vérification reste lisible */
header > div {
    /* Le style inline définit déjà background: white, nous assurons juste une bonne visibilité */
    box-shadow: 0 5px 30px rgba(255, 255, 255, 0.3) !important;
}

/* --- SECTION COMMUNE --- */
section {
    padding: 80px 10%;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}
.section-title h2 {
    font-size: 2.2rem;
    margin-bottom: 10px;
}
.section-title .divider {
    width: 60px;
    height: 4px;
    background: var(--accent);
    margin: 0 auto;
    border-radius: 2px;
}

/* --- MAP SECTION (CSS FINAL) --- */
#carte-loueurs {
    background-color: #f7f7f7;
    padding: 80px 10%;
}
#mapid {
    height: 450px; 
    width: 100%;
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin-top: 30px;
    z-index: 0; 
}
.leaflet-container {
    z-index: 0; 
}
.custom-div-icon {
    /* Styles pour la nouvelle icône de regroupement */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- POURQUOI UNE VOITURE (GRID) --- */
.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.reason-card {
    background: var(--white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: 0.3s;
    border-left: 4px solid var(--primary);
}

.reason-icon {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.reason-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
}

/* --- BLOG SECTION --- */
#blog {
    background-color: var(--white);
}

.chronicle-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.chronicle-card {
    background: #F8F8F8;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: 0.3s;
    border-top: 5px solid var(--primary);
    display: flex;
    flex-direction: column;
}

.chronicle-card:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 30px rgba(0, 140, 186, 0.1);
}

.chronicle-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    opacity: 0.85;
}

.chronicle-content {
    padding: 20px;
    flex-grow: 1;
}

.chronicle-tag {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
    display: block;
}

.chronicle-content h4 {
    font-family: 'Merriweather', serif;
    font-size: 1.15rem;
    margin-bottom: 15px;
}

.btn-download {
    display: block;
    width: 100%;
    padding: 10px 0;
    margin-top: 15px;
    background: var(--primary);
    color: var(--white);
    text-decoration: none;
    text-align: center;
    border-radius: 5px;
    font-weight: 600;
    transition: background-color 0.3s;
}

.btn-download:hover {
    background: #007799;
}

.btn-download i {
    margin-right: 8px;
}

/* Modale pour la chronique */
.modal-overlay {
    display: none;
    position: fixed;
    z-index: 1001; 
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto; 
    background-color: rgba(0,0,0,0.6); 
    padding-top: 50px;
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto; 
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    width: 90%;
    max-width: 800px;
    position: relative;
}

.modal-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
}

/* Bouton de fermeture de la modale chronique */
#close-modal-btn {
    position: absolute;
    top: 15px;
    right: 25px;
    color: #aaa;
    font-size: 30px;
    font-weight: bold;
    background: none;
    border: none;
    cursor: pointer;
}

#close-modal-btn:hover,
#close-modal-btn:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

/* Style spécifique pour le contenu chargé dynamiquement */
#modal-body h3 {
    color: var(--primary);
    margin-top: 25px;
    border-bottom: 2px solid var(--primary-light);
    padding-bottom: 5px;
}

/* --- PARTENAIRE CTA --- */
.partnership-cta {
    background: var(--primary);
    color: var(--white);
    text-align: center;
    padding: 40px 5%;
    border-top: 5px solid var(--accent);
}
.partnership-cta h3 {
    color: var(--white);
    font-size: 1.8rem;
    margin-bottom: 10px;
}
.partnership-cta p {
    font-size: 1.1rem;
    margin-bottom: 20px;
    opacity: 0.9;
}
.btn-partner {
    display: inline-block;
    padding: 12px 25px;
    background: var(--accent);
    color: var(--text-main);
    text-decoration: none;
    font-weight: 700;
    border-radius: 50px;
    transition: background-color 0.3s, transform 0.3s;
}
.btn-partner:hover {
    background: var(--white);
    transform: translateY(-2px);
}

/* --- BUDGET GUIDE --- */
.bg-blue { 
    background-color: var(--primary-light); 
}

.budget-container {
    display: flex;
    gap: 40px;
    align-items: center;
    flex-wrap: wrap;
}

.budget-text {
    flex: 1;
}

.budget-visual {
    flex: 1;
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.season-bar {
    margin-bottom: 20px;
}

.season-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.progress {
    height: 12px;
    background: #eee;
    border-radius: 6px;
    overflow: hidden;
}

.fill {
    height: 100%;
    border-radius: 6px;
}
.fill.high {
    background: #FF7043; /* Orange Foncé */
    width: 85%;
}
.fill.med {
    background: var(--accent);
    width: 60%;
}
.fill.low {
    background: var(--success);
    width: 40%;
}


/* --- AGENCES & BONS PLANS --- */
.agencies-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    text-align: center;
    margin-bottom: 50px;
}

.agency-type {
    background: var(--white);
    padding: 20px;
    border: 1px solid #eee;
    border-radius: 8px;
}

.agency-type strong {
    display: block;
    color: var(--primary);
    margin-bottom: 5px;
}

.tips-box {
    background: #FFF3E0;
    border-radius: 12px;
    padding: 40px;
    position: relative;
}

.tips-box::before {
    content: '\f0eb';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: -20px;
    left: 30px;
    background: var(--accent);
    color: white;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.5rem;
}

.tips-list {
    list-style: none;
    margin-top: 10px;
}

.tips-list li {
    margin-bottom: 15px;
    padding-left: 30px;
    position: relative;
}
.tips-list li strong {
    color: var(--primary);
    font-weight: 700;
}
.tips-list li::before {
    content: '\f05a'; /* Icone d'information */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--primary);
    position: absolute;
    left: 0;
    top: 0;
}

/* --- FOOTER --- */
footer {
    text-align: center;
    padding: 30px 5%;
    background: var(--text-main);
    color: #BDC3C7;
    font-size: 0.9rem;
}
footer a {
    color: var(--accent);
    text-decoration: none;
    cursor: pointer;
}
footer a:hover {
    text-decoration: underline;
}


/* --- MODALES GÉNÉRALES (LÉGALE, CONTACT, CONCIERGE) --- */
.modal-overlay {
    display: none;
    position: fixed;
    z-index: 1002; /* Au-dessus de la nav et du bouton concierge */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.7);
    padding-top: 50px;
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 30px rgba(0,0,0,0.5);
    width: 90%;
    max-width: 1000px;
    position: relative;
}

/* Bouton de fermeture des modales */
.close-btn {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    top: 10px;
    right: 20px;
    background: none;
    border: none;
    cursor: pointer;
}
.close-btn:hover,
.close-btn:focus {
    color: var(--danger);
    text-decoration: none;
    cursor: pointer;
}

.modal-body {
    max-height: 80vh;
    overflow-y: auto;
    padding: 10px;
}

/* Styles pour la modale des détails d'agence */
#agency-detail-modal .modal-content {
    max-width: 500px;
    margin: 10% auto;
    padding: 30px;
}

/* Styles pour la modale légale/contact */
#legal-contact-modal .modal-content {
    max-width: 800px;
    margin: 5% auto;
}

#legal-contact-content h3 {
    color: var(--primary);
    border-bottom: 2px solid var(--primary-light);
    padding-bottom: 5px;
    margin-top: 20px;
    margin-bottom: 15px;
}

/* Styles du Formulaire de Contact */
#contact-form {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    max-width: 500px;
    margin: 20px auto;
    padding: 20px;
    border: 1px solid #eee;
    border-radius: 8px;
}

/* Styles du Formulaire Concierge (qui partage le même style de base) */
#concierge-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 600px;
    margin: 0 auto;
}

label {
    font-weight: 600;
    color: var(--text-main);
    display: block;
    margin-bottom: 5px;
}

input[type="text"],
input[type="email"],
input[type="number"],
input[type="date"],
select,
textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    box-sizing: border-box;
}

textarea {
    resize: vertical;
    min-height: 100px;
}

button[type="submit"] {
    background-color: var(--accent);
    color: var(--text-main);
    border: none;
    padding: 12px 20px;
    border-radius: 5px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s;
}

button[type="submit"]:hover {
    background-color: #FF9800; /* Un accent plus foncé */
}

.status-success {
    color: var(--success);
    font-weight: 600;
    text-align: center;
    padding: 10px;
    border: 1px solid var(--success);
    border-radius: 5px;
    background-color: #E8F5E9;
}

.status-error {
    color: var(--danger);
    font-weight: 600;
    text-align: center;
    padding: 10px;
    border: 1px solid var(--danger);
    border-radius: 5px;
    background-color: #FFEBEE;
}


/* --- RESPONSIVE MOBILE --- */
@media (max-width: 900px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background: var(--white);
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        border-top: 1px solid var(--primary-light);
        padding: 10px 0;
        z-index: 999;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a, .nav-links .btn-pro {
        margin: 0;
        padding: 10px 5%;
        border-bottom: 1px solid #f5f5f5;
        text-align: left;
        width: 100%;
    }

    .nav-links .btn-pro {
        border: none;
        margin-top: 10px;
        background: var(--primary-light);
        color: var(--primary);
        font-weight: 700;
        border-radius: 0;
    }

    .menu-toggle {
        display: block;
    }

    header {
        padding: 80px 5%;
    }

    header h1 {
        font-size: 2.2rem;
    }
    
    header h2 {
        font-size: 1.5rem;
    }

    header p {
        font-size: 1rem;
    }

    .why-grid {
        grid-template-columns: 1fr;
    }

    .budget-container {
        flex-direction: column;
    }
    
    .agencies-grid, .chronicle-grid {
        grid-template-columns: 1fr;
    }

    section {
        padding: 50px 5%;
    }

    .modal-content {
        margin: 10% auto;
        width: 95%;
    }

    /* Bouton Scroll Top Mobile */
    #scrollTopBtn {
        bottom: 10px;
        right: 10px;
        font-size: 1.2rem;
        padding: 8px 10px;
    }

    /* Bouton Concierge Mobile */
    #concierge-btn {
        bottom: 10px;
        left: 10px;
        padding: 10px 15px;
        font-size: 0.9rem;
    }
    #concierge-btn i {
        margin-right: 5px;
    }
    
    /* Responsive modales */
    #concierge-form div:nth-child(4) { /* Ciblons la grille de dates */
        grid-template-columns: 1fr;
    }
}