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

/* =============== VARIABLES =============== */
:root {
    --primary-color: #4a6bff;
    --secondary-color: #ff6b4a;
    --paris-blue: #1e3a8a;
    --paris-red: #d90429;
    --paris-gold: #ffd700;
    --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 =============== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    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;
}

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

/* Titres de section */
.section-title {
    font-size: 2.25rem;
    text-align: center;
    margin-bottom: 1.5rem;
    position: relative;
    color: var(--dark-color);
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--primary-color);
    margin: 1rem auto;
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    color: var(--gray-color);
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

/* ============================================== */
/* === COMPOSANTS RÉUTILISABLES === */
/* ============================================== */

/* Boutons */
.cta-button {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    text-align: center;
}

.cta-button:hover {
    background-color: #3a5ae8;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(74, 107, 255, 0.2);
}

.cta-button-primary {
    background-color: var(--primary-color);
}

.cta-button-primary:hover {
    background-color: #3a5ae8;
}

.cta-button-secondary {
    background-color: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.cta-button-secondary:hover {
    background-color: var(--primary-color);
    color: white;
}

/* ============================================== */
/* === HEADER & NAVIGATION === */
/* ============================================== */

/* ============================================== */
/* === 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;
}

/* =============== HEADER SECTION =============== */
#header {
    padding: 180px 0 80px;
    background: 
        linear-gradient(135deg, rgba(30, 58, 138, 0.85) 0%, rgba(217, 4, 41, 0.85) 100%),
        url('Image/gare-bg.jpg') no-repeat center center/cover;
    color: white;
    position: relative;
    overflow: hidden;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    margin-top: 70px;
}

#header .card {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px;
    text-align: center;
    position: relative;
    z-index: 2;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

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

.header-subtitle {
    font-size: 1.5rem;
    font-weight: 500;
    opacity: 0.9;
}

/* =============== MAIN CONTENT =============== */
main.container {
    padding: 80px 20px;
}

/* Section Introduction */
.intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
    padding: 0 20px;
}

.intro p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--gray-color);
}

/* Section Pourquoi Choisir Notre Service */
.transfers {
    margin-bottom: 5rem;
}

.transfers h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 3rem;
    color: var(--paris-blue);
    position: relative;
}

.transfers h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--paris-blue), var(--paris-red));
}

.transfers h3 {
    color: var(--paris-blue);
    font-size: 1.5rem;
    margin: 2rem 0 1rem;
    position: relative;
    padding-left: 1.5rem;
}

.transfers h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background-color: var(--paris-red);
    border-radius: 50%;
}

.transfers p {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--box-shadow);
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--paris-blue);
    transition: var(--transition);
}

.transfers p:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.transfers p strong {
    color: var(--paris-blue);
}

/* Section Tableau des Tarifs */
table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    margin: 3rem auto;
}

caption {
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--dark-color);
    font-size: 1.3rem;
    text-align: center;
    padding: 1rem;
}

th, td {
    padding: 1.2rem 1.5rem;
    text-align: left;
    border-bottom: 1px solid var(--light-gray);
}

th {
    background-color: var(--paris-blue);
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

tr:nth-child(even) {
    background-color: rgba(30, 58, 138, 0.05);
}

tr:last-child td {
    border-bottom: none;
}

td {
    color: var(--dark-color);
}

/* Section CTA */
.cta-section {
    text-align: center;
    max-width: 800px;
    margin: 4rem auto;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.05) 0%, rgba(217, 4, 41, 0.05) 100%);
    border-radius: 12px;
    border-left: 4px solid var(--paris-red);
}

.cta-section p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--gray-color);
    margin-bottom: 2rem;
}

/* Bouton de Réservation */
.btn1 {
    display: flex;
    justify-content: center;
    margin: 3rem 0;
}

.reservation1-btn {
    background: linear-gradient(135deg, var(--paris-blue) 0%, var(--paris-red) 100%);
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
    box-shadow: 0 5px 15px rgba(30, 58, 138, 0.3);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.reservation1-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--paris-red) 0%, var(--paris-blue) 100%);
    opacity: 0;
    transition: var(--transition);
    z-index: -1;
}

.reservation1-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(217, 4, 41, 0.4);
}

.reservation1-btn:hover::before {
    opacity: 1;
}

/* =============== FOOTER =============== */
.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);
}

.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) {
    #header {
        padding: 150px 20px 80px;
    }
    
    #header h1 {
        font-size: 2.5rem;
    }
    
    .header-subtitle {
        font-size: 1.3rem;
    }
}

@media (max-width: 768px) {
    .langue {
        margin-left: auto;
        margin-right: 1rem;
        padding: 0.4rem 1.5rem 0.4rem 0.8rem;
        font-size: 0.85rem;
    }

    #header {
        padding: 120px 0 60px;
    }
    
    #header .card {
        padding: 30px 20px;
    }
    
    #header h1 {
        font-size: 2.2rem;
    }
    
    .header-subtitle {
        font-size: 1.1rem;
    }
    
    .transfers p {
        padding: 1.2rem;
    }
    
    th, td {
        padding: 0.8rem;
        font-size: 0.9rem;
    }
    
    .reservation1-btn {
        padding: 14px 28px;
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .logo img {
        height: 40px;
    }
    
    .langue {
        padding: 0.4rem 1.8rem 0.4rem 0.8rem;
        font-size: 0.85rem;
    }
    
    #header h1 {
        font-size: 1.8rem;
    }
    
    .header-subtitle {
        font-size: 1rem;
    }
    
    caption {
        font-size: 1.1rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-column h3::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .contact-item {
        justify-content: center;
    }
}

/* Styles utilitaires */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Animation pour les éléments */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.intro, .transfers, table, .cta-section {
    animation: fadeIn 0.6s ease-out forwards;
}

.transfers h3:nth-child(1) { animation-delay: 0.2s; }
.transfers p:nth-child(2) { animation-delay: 0.4s; }
.transfers h3:nth-child(3) { animation-delay: 0.6s; }
.transfers p:nth-child(4) { animation-delay: 0.8s; }
.transfers h3:nth-child(5) { animation-delay: 1s; }
.transfers p:nth-child(6) { animation-delay: 1.2s; }
table { animation-delay: 1.4s; }
.cta-section { animation-delay: 1.6s; }