/* --- VARIABLES ET RESET --- */
:root {
    --color-dark-blue: #2c3e50;
    --color-primary-blue: #3498db;
    --color-light-grey: #f8f9fa;
    --color-dark-grey: #34495e;
    --font-primary: 'Poppins', sans-serif;
}

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

body {
    font-family: var(--font-primary);
    background-color: #fff;
}

/* --- EN-TÊTE --- */
.site-header {
    position: relative;
    z-index: 1000;
}

/* Barre supérieure */
.top-bar {
    background-color: var(--color-light-grey);
    border-bottom: 1px solid #e7e7e7;
    padding: 0.5rem 5%;
    font-size: 0.8rem;
    color: var(--color-dark-grey);
}
.top-bar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}
.contact-info {
    display: flex;
    gap: 1.5rem;
}
.contact-info i {
    color: var(--color-primary-blue);
    margin-right: 0.5rem;
}
.user-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.user-actions a {
    text-decoration: none;
    color: var(--color-dark-grey);
    transition: color 0.3s ease;
}
.user-actions a:hover {
    color: var(--color-primary-blue);
}
.login-link i {
    margin-right: 0.3rem;
}
.apply-button {
    background-color: var(--color-dark-blue);
    color: #fff !important;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-weight: 600;
}

/* Navigation principale */
.main-nav {
    background-color: #fff;
    padding: 1rem 5%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.main-nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}
.logo img {
    height: 60px;
}
.desktop-nav ul {
    list-style: none;
    display: flex;
    gap: 2.5rem;
}
.desktop-nav a {
    text-decoration: none;
    color: var(--color-dark-grey);
    font-weight: 600;
    font-size: 1rem;
    transition: color 0.3s ease;
}
.desktop-nav a:hover {
    color: var(--color-primary-blue);
}
.desktop-nav .fa-chevron-down {
    font-size: 0.7rem;
    margin-left: 0.3rem;
}

/* --- SECTION HERO --- */
.hero-section {
    height: 90vh;
    background: url('assets/Diplomes-Ecole-de-Commerce-de-Lyon.jpeg') no-repeat center center/cover;
    position: relative;
    display: flex;
    align-items: center;
    padding: 0 8%;
    color: #fff;
}
/* Superposition sombre */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(44, 62, 80, 0.8) 0%, rgba(44, 62, 80, 0.3) 100%);
    z-index: 1;
}
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 650px;
}
.tagline {
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}
.hero-content h1 {
    font-size: 4rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}
.description {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 2rem;
}
.hero-cta {
    background-color: var(--color-dark-blue);
    color: #fff;
    padding: 0.8rem 1.8rem;
    text-decoration: none;
    font-weight: 600;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}
.hero-cta:hover {
    background-color: #3e5771;
}

/* Flèches du slider */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    background-color: rgba(255, 255, 255, 0.2);
    border: 1px solid #fff;
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.slider-arrow:hover {
    background-color: rgba(255, 255, 255, 0.4);
}
.prev { left: 3%; }
.next { right: 3%; }

/* --- BANNIÈRE DE FONCTIONNALITÉS --- */
.feature-banner {
    padding: 0 8%;
    margin-top: -80px; /* **TRÈS IMPORTANT : pour la superposition** */
    position: relative;
    z-index: 100;
}
.feature-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    background-color: #fff;
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.feature-card {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}
.feature-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background-color: #eaf4fc;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--color-primary-blue);
    font-size: 1.8rem;
}
.feature-text h4 {
    font-size: 1.2rem;
    color: var(--color-dark-blue);
    margin-bottom: 0.5rem;
}
.feature-text p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #555;
    margin-bottom: 1rem;
}
.feature-text a {
    text-decoration: none;
    color: var(--color-primary-blue);
    font-weight: 600;
}

/* --- RESPONSIVITÉ --- */
.hamburger-menu { display: none; }

@media (max-width: 1024px) {
    .desktop-nav { display: none; }
    .hamburger-menu {
        display: block;
        background: none;
        border: none;
        font-size: 1.8rem;
        color: var(--color-dark-blue);
        cursor: pointer;
    }
    .desktop-nav.active {
        display: block;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #fff;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    }
    .desktop-nav.active ul {
        flex-direction: column;
        padding: 1rem 0;
    }
    .desktop-nav.active li {
        text-align: center;
        padding: 1rem;
        border-bottom: 1px solid #f0f0f0;
    }
    .feature-container {
        grid-template-columns: 1fr;
    }
    .hero-content h1 { font-size: 3rem; }
}

@media (max-width: 768px) {
    .top-bar-container {
        flex-direction: column;
        gap: 0.5rem;
    }
    .contact-info {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }
    .hero-content h1 { font-size: 2.5rem; }
    .hero-content { padding: 0 5%; text-align: center; max-width: 100%;}
    .hero-section { align-items: center; justify-content: center; }
    .hero-section::before {
        background: rgba(44, 62, 80, 0.7); /* Overlay plus uniforme sur mobile */
    }
    .slider-arrow { display: none; }
    .feature-banner { padding: 0 5%; }
}

/* --- Section "À Propos" avec compteurs --- */
.about-us-section {
    padding: 100px 5% 0; /* Padding en haut, mais pas en bas à cause de la bannière */
    background-color: #fff;
    overflow: hidden; /* Empêche les cercles de déborder */
}

.about-us-container {
    display: flex;
    align-items: center;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Colonne de gauche : Image */
.about-image-column {
    flex: 1;
    position: relative; /* Indispensable pour les cercles décoratifs */
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-image-column img {
    max-width: 100%;
    position: relative;
    z-index: 2; /* L'image est au-dessus des cercles */
}

/* Cercles décoratifs */
.about-image-column::before,
.about-image-column::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    z-index: 1; /* Les cercles sont derrière l'image */
}
.about-image-column::before {
    width: 450px;
    height: 450px;
    border: 2px solid #ff6b6b; /* Rouge */
    top: 50%;
    left: 50%;
    transform: translate(-45%, -50%);
}
.about-image-column::after {
    width: 300px;
    height: 300px;
    border: 2px solid #4ade80; /* Vert */
    top: 50%;
    left: 50%;
    transform: translate(-60%, -55%);
}

/* Colonne de droite : Contenu */
.about-content-column {
    flex: 1.2; /* Donne un peu plus d'espace au texte */
}

.campus-tag {
    color: var(--color-primary-blue);
    font-weight: 600;
    margin-bottom: 1rem;
    display: block;
}
.decorative-icon {
    width: 50px;
    height: 50px;
    border: 2px solid #4ade80;
    border-radius: 50%;
    border-left-color: transparent; /* Crée l'effet de cercle incomplet */
    margin-bottom: 1.5rem;
    transform: rotate(45deg);
}

.about-content-column h2 {
    font-size: 3rem;
    color: var(--color-dark-blue);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}
.about-content-column p {
    color: #555;
    line-height: 1.7;
    margin-bottom: 2rem;
}
.features-list {
    list-style: none;
    margin-bottom: 2.5rem;
}
.features-list li {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1rem;
    color: var(--color-dark-grey);
    font-weight: 600;
}
.features-list .fa-check-circle {
    color: #4ade80;
    background-color: #e8fcec;
    border-radius: 50%;
    padding: 3px;
    font-size: 1.2rem;
}
.btn-primary {
    background-color: var(--color-primary-blue);
    color: #fff;
    padding: 1rem 2rem;
    text-decoration: none;
    font-weight: 600;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}
.btn-primary:hover {
    background-color: #2980b9;
}

/* Bannière de statistiques */
.stats-banner {
    display: flex;
    justify-content: space-around;
    background-color: var(--color-light-grey);
    margin: 100px -10% 0; /* Marge négative pour déborder de la section parente */
    padding: 3rem 2rem;
}
.stat-item {
    text-align: center;
    padding: 0 1rem;
    position: relative;
}
.stat-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 60%;
    background-color: #ddd;
}
.stat-item i {
    font-size: 2.5rem;
    color: var(--color-primary-blue);
    margin-bottom: 1rem;
}
.stat-number {
    display: block;
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--color-dark-blue);
}
.stat-item p {
    color: #555;
    font-size: 0.9rem;
}

/* --- RESPONSIVITÉ pour cette section --- */
@media (max-width: 992px) {
    .about-us-container {
        flex-direction: column;
    }
    .about-image-column {
        order: -1; /* Place l'image en premier sur mobile */
        margin-bottom: 2rem;
    }
    .stats-banner {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
        margin: 60px 0 0;
    }
    .stat-item:nth-child(2)::after {
        display: none; /* Supprime la bordure inutile en mode grille */
    }
}

@media (max-width: 576px) {
    .about-content-column h2 { font-size: 2.2rem; }
    .about-image-column::before { width: 350px; height: 350px; }
    .about-image-column::after { width: 250px; height: 250px; }
    .stats-banner {
        grid-template-columns: 1fr;
    }
    .stat-item::after { display: none; } /* Supprime toutes les bordures en colonne */
}

/* --- Section Carte des Campus --- */
.campus-map-section {
    padding: 100px 5%;
    background-color: #f6f7fb; /* Couleur lavande très claire */
    text-align: center;
}

.campus-map-container h2 {
    font-size: 3rem;
    color: var(--color-dark-blue);
    font-weight: 700;
    margin-bottom: 1rem;
}
.subtitle-map {
    color: #555;
    max-width: 500px;
    margin: 0 auto 3rem;
}

.map-wrapper {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    min-height: 500px; /* Donne de l'espace pour la carte */
    background: url('assets/campus-World-Map-Infographic-1024x514.png') no-repeat center center;
    background-size: contain;
}

/* Style de base pour un point sur la carte */
.campus-point {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.point-label {
    font-weight: 700;
    color: var(--color-dark-blue);
    font-size: 0.9rem;
    text-transform: uppercase;
    margin-bottom: 8px;
}
.point-line {
    width: 2px;
    height: 70px;
}
.point-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 3px solid;
    background-color: #fff;
}

/* Positionnement et couleur de chaque point */
/* (Ces valeurs sont des estimations, ajustez si nécessaire) */

#etats-unis { top: 35%; left: 21%; }
#etats-unis .point-line { background-color: #e74c3c; }
#etats-unis .point-dot { border-color: #e74c3c; }

#senegal { top: 48%; left: 34%; }
#senegal .point-line { background-color: #2ecc71; }
#senegal .point-dot { border-color: #2ecc71; }

#irlande { top: 20%; left: 44%; }
#irlande .point-line { background-color: #f1c40f; }
#irlande .point-dot { border-color: #f1c40f; }

#dubai { top: 40%; left: 59%; }
#dubai .point-line { background-color: #3498db; }
#dubai .point-dot { border-color: #3498db; }

#inde { top: 45%; left: 68%; }
#inde .point-line { background-color: #e91e63; }
#inde .point-dot { border-color: #e91e63; }

#vietnam { top: 50%; left: 78%; }
#vietnam .point-line { background-color: #9b59b6; }
#vietnam .point-dot { border-color: #9b59b6; }

/* Liste pour mobile (cachée par défaut) */
.campus-list-mobile {
    display: none;
    list-style: none;
    padding: 0;
    margin-top: 2rem;
}
.campus-list-mobile li {
    padding: 1rem;
    font-weight: 600;
    color: var(--color-dark-blue);
    border-bottom: 1px solid #e0e2e8;
}
.campus-list-mobile li:last-child {
    border-bottom: none;
}


/* --- RESPONSIVITÉ pour la carte --- */
@media (max-width: 768px) {
    .campus-map-section {
        padding: 60px 5%;
    }
    .campus-map-container h2 {
        font-size: 2rem;
    }
    /* On cache la carte sur mobile car elle devient trop petite */
    .map-wrapper {
        display: none;
    }
    /* On affiche la liste simple à la place */
    .campus-list-mobile {
        display: block;
    }
}

/* --- Section Filières Détaillées --- */
.detailed-filiere-section {
    padding: 100px 5%;
    background-color: var(--color-light-grey);
}

.cycle-block {
    background-color: #fff;
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.07);
}

.cycle-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
}
.cycle-header i {
    font-size: 2.5rem;
    color: var(--color-primary-blue);
}
.cycle-header h3 {
    font-size: 2rem;
    color: var(--color-dark-blue);
}

.cycle-description {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.7;
    max-width: 800px;
    margin-bottom: 3rem;
}

/* Timeline pour Licence */
.timeline {
    position: relative;
    padding-left: 50px;
    margin-bottom: 3rem;
}
.timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 10px;
    bottom: 10px;
    width: 3px;
    background-color: #e0e6f1;
}
.timeline-item {
    position: relative;
    margin-bottom: 2.5rem;
}
.timeline-item:last-child {
    margin-bottom: 0;
}
.timeline-dot {
    position: absolute;
    left: -31px;
    top: 5px;
    width: 25px;
    height: 25px;
    background-color: #fff;
    border: 3px solid var(--color-primary-blue);
    border-radius: 50%;
}
.timeline-year {
    display: inline-block;
    background-color: var(--color-primary-blue);
    color: #fff;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
}
.timeline-content h4 {
    font-size: 1.3rem;
    color: var(--color-dark-blue);
    margin-bottom: 0.5rem;
}
.timeline-content p {
    color: #555;
    line-height: 1.6;
}

/* Showcase des Spécialisations Licence */
.specializations-showcase {
    background-color: var(--color-light-grey);
    padding: 2rem;
    border-radius: 8px;
    margin-top: 2rem;
}
.specializations-showcase h4 {
    font-size: 1.2rem;
    color: var(--color-dark-blue);
    margin-bottom: 1rem;
    text-align: center;
}
.tags-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}
.tags-container span {
    padding: 0.5rem 1rem;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-weight: 600;
    color: #444;
}

/* Séparateur de section */
.section-divider {
    border: none;
    height: 1px;
    background-color: #ddd;
    margin: 4rem auto;
}

/* Grille des Spécialisations Master */
.specialization-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
}
.specialization-card {
    background-color: #fff;
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid #e0e6f1;
    border-top: 5px solid var(--color-primary-blue);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.specialization-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}
.specialization-card i {
    font-size: 2.2rem;
    color: var(--color-primary-blue);
    margin-bottom: 1.5rem;
}
.specialization-card h4 {
    font-size: 1.3rem;
    color: var(--color-dark-blue);
    margin-bottom: 1rem;
}
.specialization-card p {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.7;
}


/* --- RESPONSIVITÉ pour cette section --- */
@media (max-width: 768px) {
    .detailed-filiere-section { padding: 60px 5%; }
    .cycle-header { flex-direction: column; align-items: flex-start; text-align: left;}
    .timeline { padding-left: 30px; }
    .timeline::before { left: 10px; }
    .timeline-dot { left: -3px; }
}

@media (max-width: 576px) {
    .cycle-block { padding: 1.5rem; }
    .filiere-container h2 { font-size: 2.2rem; }
    .cycle-header h3 { font-size: 1.6rem; }
}

/* --- Footer Final --- */
.site-footer-final {
    background-color: #f8f9fa; /* Gris très clair */
    padding: 80px 5% 0;
    color: var(--color-dark-blue);
}

.footer-main-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    /* Grille de 3 colonnes : la 1ère est 1.5x plus grande */
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 3rem;
    padding-bottom: 3rem;
}

.footer-column h4 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.footer-about-school h4 {
    line-height: 1.4;
}

.footer-about-school img {
    max-width: 150px;
    margin-bottom: 1.5rem;
}

.footer-about-school p {
    font-size: 0.9rem;
    color: #555;
    margin-top: 0.5rem;
}

.footer-list {
    list-style: none;
    padding: 0;
}

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

.footer-list a {
    text-decoration: none;
    color: #555;
    transition: color 0.3s ease;
}

.footer-list a:hover {
    color: var(--color-primary-blue);
}

.footer-widget {
    margin-bottom: 2rem;
}
.footer-widget:last-child {
    margin-bottom: 0;
}

.footer-copyright {
    text-align: center;
    padding: 1.5rem 0;
    border-top: 1px solid #e7e7e7;
}

.footer-copyright p {
    font-size: 0.85rem;
    color: #777;
}


/* --- RESPONSIVITÉ pour le Footer --- */
@media (max-width: 992px) {
    .footer-main-content {
        /* Passe en 2 colonnes sur tablette */
        grid-template-columns: 1fr 1fr;
    }
    .footer-about-school {
        grid-column: 1 / -1; /* La colonne "À propos" prend toute la largeur */
        text-align: center;
    }
    .footer-about-school img {
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 576px) {
    .site-footer-final {
        padding-top: 60px;
    }
    .footer-main-content {
        /* Passe en 1 colonne sur mobile */
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-list {
        text-align: center;
    }
}

/* Bouton WhatsApp flottant */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    background-color: #25d366;
    color: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    transition: background 0.3s, transform 0.2s;
    cursor: pointer;
    text-decoration: none;
}
.whatsapp-float:hover {
    background: #1ebe57;
    transform: scale(1.08);
}
.whatsapp-float i {
    margin: 0;
    color: #fff;
}
@media (max-width: 576px) {
    .whatsapp-float {
        width: 48px;
        height: 48px;
        font-size: 1.5rem;
        bottom: 18px;
        right: 18px;
    }
}