/* 1. VARIABLES ET CONFIGURATION */
:root {
    --primary: #366c86; /* Votre couleur de logo */
    --accent: #e1e8ed;
    --text: #2c3e50;
    --light-bg: #f4f7f9;
    --white: #ffffff;
}

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

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text);
    line-height: 1.6;
    background-color: var(--white);
    scroll-behavior: smooth;
}

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

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.site-logo {
    height: 55px;
    width: auto;
}

.logo-text .name {
    font-family: 'Playfair Display', serif;
    font-weight: bold;
    font-size: 1.3rem;
    color: var(--primary);
    display: block;
}

.logo-text .title {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #7f8c8d;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text);
    font-size: 0.85rem;
    font-weight: 500;
    transition: color 0.3s;
    text-transform: uppercase;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--primary);
}

.nav-links a.active {
    border-bottom: 2px solid var(--primary);
}

/* 3. HEADERS (ACCUEIL ET PAGES) */
header {
    height: 60vh;
    background: linear-gradient(rgba(255,255,255,0.2), rgba(255,255,255,0.2)), 
                url('main.png') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.header-small {
    height: 40vh;
    background: linear-gradient(rgba(54, 108, 134, 0.8), rgba(54, 108, 134, 0.8)), 
                url('main.png') center/cover no-repeat;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.header-small h1 { color: white !important; }

.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2.8rem;
    color: #1a3a4a;
}

/* 4. SECTIONS ET GRILLES */
section { padding: 6rem 10%; text-align: center; }

h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    color: var(--primary);
    margin-bottom: 2rem;
}

.content-page { padding: 4rem 10%; max-width: 1200px; margin: 0 auto; }

.grid-benefits {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    text-align: left;
}

.benefit-card {
    padding: 2rem;
    background: var(--light-bg);
    border-left: 4px solid var(--primary);
    border-radius: 0 10px 10px 0;
}

.benefit-card h3 { color: var(--primary); margin-bottom: 1rem; }

/* 5. TARIFS ET ASSURANCES (BADGES) */
.price-highlight { font-size: 1.8rem; color: var(--primary); font-weight: bold; margin: 1rem 0; }

.alert-box {
    background: #fff9f9;
    border-left: 5px solid #c0392b;
    padding: 2rem;
    margin-bottom: 4rem;
    text-align: left;
}

.tags-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 2rem;
}

.tags-container span {
    background-color: var(--accent);
    color: var(--primary);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    transition: 0.3s;
}

.tags-container span:hover {
    background: var(--primary);
    color: white;
}

.badge-main {
    background: var(--primary);
    color: white;
    padding: 10px 25px;
    border-radius: 5px;
    font-weight: bold;
    margin: 0 10px;
}
																							/* Style des badges cliquables */
.agreg-badges {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

.badge-main {
    background: var(--primary);
    color: white !important; /* Force la couleur blanche */
    padding: 10px 25px;
    border-radius: 5px;
    font-weight: bold;
    letter-spacing: 1px;
    text-decoration: none; /* Enlève le soulignement */
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s, background 0.3s;
    display: inline-block;
}

.badge-main:hover {
    background: #2a546a; /* Un bleu un peu plus foncé au survol */
    transform: translateY(-2px);
    color: white !important;
}

/* 6. CARTES ET FOOTER */
.map-container {
    max-width: 1000px;
    margin: 0 auto;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0,0,0,0.1);
}

footer {
    background: var(--light-bg);
    padding: 4rem 10% 2rem;
    border-top: 1px solid #e0e6ed;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-info a { color: var(--primary); text-decoration: none; font-weight: 500; }

.footer-bottom {
    text-align: center;
    border-top: 1px solid #d1d9e0;
    padding-top: 2rem;
    font-size: 0.8rem;
    color: #95a5a6;
}

/* 7. LISTES PERSONNALISÉES (COMPÉTENCES) */
.custom-list { list-style: none; text-align: left; }
.custom-list li { padding: 0.8rem 0; border-bottom: 1px solid var(--accent); }

																											
/* 8. RESPONSIVE (SMARTPHONE) */
@media (max-width: 1024px) {
    nav {
        flex-direction: column;
        padding: 0.8rem 2%; /* Réduction de l'espace interne */
    }

    .logo-container {
        margin-bottom: 0.5rem;
    }

    .site-logo {
        height: 40px; /* Logo plus petit sur mobile */
    }

    .logo-text .name {
        font-size: 1.1rem;
    }

    .nav-links {
        margin-top: 0.5rem;
        flex-wrap: wrap; /* Permet de passer à la ligne proprement */
        justify-content: center;
        gap: 8px 12px; /* Espace réduit entre les liens (Vertical Horizontal) */
        padding-bottom: 0.5rem;
    }

    .nav-links li {
        margin: 0;
    }

    .nav-links a {
        font-size: 0.75rem; /* Police plus petite pour gagner de la place */
        padding: 4px 2px;
        display: inline-block;
    }

    header, .header-small {
        height: 40vh; /* Réduction de la hauteur du bandeau image sur mobile */
    }

    .hero h1 {
        font-size: 1.6rem;
        padding: 0 10px;
    }

    section {
        padding: 3rem 5%; /* Moins d'espace perdu sur les côtés */
    }
}