/* ============================================== */
/* === IMPORT FONTS & VARIABLES === */
/* ============================================== */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&family=Poppins:wght@400;500;600&display=swap');

:root {
    --primary-color: #4a6bff;
    --secondary-color: #ff6b4a;
    --dark-color: #222;
    --light-color: #f8f8f8;
    --gray-color: #777;
    --light-gray: #eee;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --font-primary: 'Montserrat', sans-serif;
    --font-secondary: 'Poppins', sans-serif;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

/* ============================================== */
/* === BASE STYLES (conservés de styles_disneypage.css) === */
/* ============================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-secondary);
    line-height: 1.6;
    color: var(--dark-color);
    background-color: #fff;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1.25rem;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

a:hover {
    color: var(--secondary-color);
}

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

ul {
    list-style: none;
}

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

/* ============================================== */
/* === NAVBAR (styles conservés) === */
/* ============================================== */
/* ============================================== */
/* === HEADER & NAVIGATION (VERSION DESKTOP) === */
/* ============================================== */

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 2rem;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    background-color: #ffffff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Effet au défilement de la page */
.navbar.scrolled {
    padding: 0.8rem 2rem;
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
}

.logo img {
    height: 50px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo:hover img {
    transform: scale(1.02);
}

.nav-links {
    margin-left: auto;
    margin-right: 1.5rem;
}

.nav-links ul {
    display: flex;
    align-items: center;
    gap: 1.8rem;
}

.nav-links > ul > li {
    position: relative;
}

.nav-links > ul > li > a {
    color: var(--dark-color);
    font-weight: 500;
    font-family: var(--font-primary);
    font-size: 0.95rem;
    padding: 1rem 0;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: color 0.3s ease;
}

.nav-links > ul > li > a:hover {
    color: var(--primary-color);
}

/* Petite flèche pour indiquer la présence d'un sous-menu */
.arrow {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    margin-bottom: 3px;
    transition: transform 0.3s ease;
}

/* Ligne d'animation sous les liens au survol (écrans larges uniquement) */
@media (min-width: 993px) {
    .nav-links > ul > li:not(.nav-cta) > a::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 0;
        height: 2px;
        background-color: var(--primary-color);
        transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .nav-links > ul > li:not(.nav-cta):hover > a::after {
        width: 100%;
    }
    
    .nav-links > ul > li.has-mega:hover .arrow {
        transform: rotate(-135deg) translateY(-2px);
    }
}

/* Bouton Réservation (Mise en valeur dans la navbar) */
.nav-cta .cta-navbar-btn {
    background-color: var(--primary-color);
    color: #ffffff !important;
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(74, 107, 255, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-cta .cta-navbar-btn:hover {
    background-color: var(--secondary-color);
    box-shadow: 0 6px 20px rgba(255, 107, 74, 0.3);
    transform: translateY(-2px);
}

/* Sélecteur de langue */
.langue {
    padding: 0.5rem 0.8rem;
    border-radius: 6px;
    border: 1px solid var(--light-gray);
    background-color: #ffffff;
    font-family: var(--font-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: border-color 0.3s;
    margin-right: 1rem;
}

.langue:hover {
    border-color: var(--primary-color);
}

/* ============================================== */
/* === MEGA MENU (TOTALEMENT DYNAMIQUE) === */
/* ============================================== */

@media (min-width: 993px) {
    .has-mega {
        position: initial !important; /* Permet au méga menu de s'ouvrir sur toute la largeur disponible */
    }

    .mega-menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #ffffff;
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
        border-top: 1px solid var(--light-gray);
        border-bottom: 3px solid var(--primary-color);
        padding: 2.5rem 0;
        opacity: 0;
        visibility: hidden;
        transform: translateY(15px);
        transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1), 
                    transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), 
                    visibility 0.35s;
        z-index: 999;
    }

    /* Distribution automatique en colonnes (Maximum 2 catégories empilées par colonne) */
    .mega-menu-container {
        display: grid;
        grid-auto-flow: column;
        grid-template-rows: repeat(2, auto);
        grid-auto-columns: 1fr;
        gap: 2rem 3rem;
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 2rem;
    }

    .has-mega:hover .mega-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .mega-category h4 {
        font-family: var(--font-primary);
        color: var(--dark-color);
        font-size: 0.95rem;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        margin-bottom: 1rem;
        padding-bottom: 0.5rem;
        border-bottom: 2px solid var(--light-gray);
        position: relative;
    }

    .mega-category h4::after {
        content: '';
        position: absolute;
        bottom: -2px;
        left: 0;
        width: 35px;
        height: 2px;
        background-color: var(--primary-color);
    }

    .mega-category ul {
        display: flex;
        flex-direction: column;
        gap: 0.6rem;
    }

    .mega-category ul li a {
        color: var(--gray-color);
        font-size: 0.9rem;
        font-weight: 400;
        display: inline-block;
        padding: 0;
        transition: all 0.25s ease;
    }

    .mega-category ul li a::after {
        display: none !important; /* Désactive la barre de soulignement générale pour le méga-menu */
    }

    .mega-category ul li a:hover {
        color: var(--primary-color);
        transform: translateX(4px);
    }
}

/* ============================================== */
/* === VERSION MOBILE & BUTTON HAMBURGER === */
/* ============================================== */

/* Zone bouton Hamburger cliquable */
.menu-hamburger {
    display: none; /* Masqué sur PC */
    cursor: pointer;
    background: none;
    border: none;
    width: 30px;
    height: 22px;
    position: relative;
    z-index: 1005; /* Assure de passer au-dessus du menu mobile */
    padding: 0;
}

/* Lignes horizontales composant l'icône */
.menu-hamburger span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--dark-color);
    position: absolute;
    left: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 3px;
}

/* Répartition initiale équilibrée */
.menu-hamburger span:nth-child(1) { top: 0; }
.menu-hamburger span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.menu-hamburger span:nth-child(3) { bottom: 0; }

/* Transformation en croix parfaite sans décalage */
.menu-hamburger.active span:nth-child(1) {
    transform: rotate(45deg);
    top: 10px;
    background-color: var(--primary-color);
}

.menu-hamburger.active span:nth-child(2) {
    opacity: 0;
    width: 0;
}

.menu-hamburger.active span:nth-child(3) {
    transform: rotate(-45deg);
    bottom: 9px;
    background-color: var(--primary-color);
}


/* Rideau latéral mobile */
@media (max-width: 992px) {
    .menu-hamburger {
        display: block; /* Devient visible sur mobile */
    }

    .langue {
        margin-left: auto;
        margin-right: 1.5rem;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%; /* Sort de l'écran par la droite par défaut */
        width: 85%;
        max-width: 380px;
        height: 100vh;
        background-color: #ffffff;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.05);
        padding: 6rem 2rem 3rem;
        overflow-y: auto;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1004;
        margin: 0;
    }

    .nav-links.active {
        right: 0; /* Entre sur l'écran */
    }

    /* Arrière-plan opale et flouté (Overlay) */
    .navbar-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: rgba(0, 0, 0, 0.4);
        backdrop-filter: blur(4px);
        z-index: 1003;
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s ease;
    }

    .navbar-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    .nav-links ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        width: 100%;
    }

    .nav-links > ul > li {
        width: 100%;
        border-bottom: 1px solid var(--light-gray);
    }

    .nav-links > ul > li > a {
        padding: 1.1rem 0;
        width: 100%;
        justify-content: space-between;
        font-size: 1.05rem;
    }

    /* Version Mobile : Accordéon pliable */
    .mega-menu {
        max-height: 0;
        overflow: hidden;
        background-color: var(--light-color);
        border-radius: 8px;
        transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        padding: 0;
    }

    /* Classe déclenchée par JS pour déplier le volet */
    .mega-menu.open {
        max-height: 1200px;
        margin-bottom: 1rem;
        padding: 1.2rem;
    }

    .mega-menu-container {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
        padding: 0;
    }

    .mega-category h4 {
        font-size: 0.9rem;
        color: var(--primary-color);
        margin-bottom: 0.6rem;
    }

    .mega-category ul {
        gap: 0.5rem;
        padding-left: 0.5rem;
    }

    .mega-category ul li a {
        padding: 0.3rem 0;
        display: block;
        color: var(--dark-color);
    }

    /* Pivotement de l'icône de flèche en mode ouvert mobile */
    .nav-links > ul > li.has-mega a.open .arrow {
        transform: rotate(-135deg) translateY(-2px);
        color: var(--primary-color);
    }

    /* Adaptation du bouton d'action principal en mobile */
    .nav-links > ul > li.nav-cta {
        border-bottom: none;
        padding-top: 2rem;
        width: 100%;
    }

    .nav-links > ul > li.nav-cta .cta-navbar-btn {
        display: block;
        text-align: center;
        padding: 12px;
    }
}

/* Performance et fluidité des transitions */
.mega-menu, .nav-links, .menu-hamburger span {
    will-change: transform, opacity, max-height;
}
/* ============================================== */
/* === BLOG HEADER (style conservé du hero) === */
/* ============================================== */
.blog-header {
    padding: 180px 0 80px;
    background: linear-gradient(135deg, rgba(0, 57, 115, 0.85) 0%, rgba(229, 0, 126, 0.85) 100%),
                url('Image/photo_famille_vtc.webp') no-repeat center center/cover;
    color: white;
    text-align: center;
    margin-top: 80px;
    position: relative;
    overflow: hidden;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.blog-header .container {
    position: relative;
    z-index: 2;
}

.blog-header h1 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    color: white;
    line-height: 1.2;
}

.blog-header .subtitle {
    font-size: 1.4rem;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto;
}

/* ============================================== */
/* === BLOG GRID STYLES (nouveaux styles) === */
/* ============================================== */
.blog-container {
    padding: 60px 0;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.blog-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.blog-image-link {
    display: block;
    position: relative;
    height: 200px;
    overflow: hidden;
}

.blog-image-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-image-link img {
    transform: scale(1.05);
}

.read-time {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
}

.blog-content {
    padding: 25px;
}

.blog-content time {
    color: var(--gray-color);
    font-size: 0.9rem;
    display: block;
    margin-bottom: 10px;
}

.blog-content h2 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    line-height: 1.4;
}

.blog-content h2 a {
    color: var(--dark-color);
}

.blog-content h2 a:hover {
    color: var(--primary-color);
}

.blog-content p {
    color: var(--gray-color);
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.read-more {
    color: var(--primary-color);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.read-more::after {
    content: "→";
    transition: transform 0.3s ease;
}

.read-more:hover::after {
    transform: translateX(3px);
}



/* ============================================== */
/* === PAGINATION (nouveaux styles) === */
/* ============================================== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 50px 0 30px;
}

.pagination a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--light-color);
    color: var(--dark-color);
    transition: var(--transition);
}

.pagination a:hover, .pagination a.active {
    background: var(--primary-color);
    color: white;
}

.pagination a:last-child {
    width: auto;
    padding: 0 20px;
    border-radius: 20px;
}

/* ============================================== */
/* === FOOTER (styles conservés) === */
/* ============================================== */
.footer-section {
    background-color: var(--dark-color);
    color: white;
    padding: 80px 0 0;
}

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

.footer-column h3 {
    color: white;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 10px;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-column ul li {
    margin-bottom: 0.8rem;
}

.footer-column a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.footer-column a:hover {
    color: white;
    padding-left: 5px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-item svg {
    min-width: 20px;
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--primary-color);
    color: white;
}

.footer-badge {
    margin-top: 2rem;
}

.footer-bottom {
    padding: 2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
}

.footer-bottom p {
    margin-bottom: 0.5rem;
}

.legal-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.legal-links a {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
}

.legal-links a:hover {
    color: white;
}

/* ============================================== */
/* === MEDIA QUERIES === */
/* ============================================== */
@media (max-width: 992px) {
    .blog-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .blog-header {
        padding: 150px 0 60px;
        margin-top: 70px;
    }
    
    .blog-header h1 {
        font-size: 2.2rem;
    }
    
    .blog-header .subtitle {
        font-size: 1.1rem;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .blog-header h1 {
        font-size: 2rem;
    }
    
    .blog-header .subtitle {
        font-size: 1rem;
    }
    
    .blog-content {
        padding: 20px;
    }
    
    .pagination a {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    
    .pagination a:last-child {
        padding: 0 15px;
    }
}