/* =======================
   RESET DE BASE
======================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background: #ffffff;
    color: #111;
}



/* =======================
      HEADER + LOGO
======================= */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background: #ffffff;
}

.logo {
    height: 90px;
}

.site-title {
    color: #0090ff;
    margin-left: 10px;
    font-size: 38px;
    font-weight: 900;
}

.logo-container {
    display: flex;
    align-items: center;
}



/* =======================
       MENU NAVIGATION
======================= */
nav .menu {
    list-style: none;
    display: flex;
    gap: 30px;
}

nav a {
    text-decoration: none;
    color: #00529e;
    font-weight: 600;
    position: relative;
    padding-bottom: 5px;
}

/* Effet hover (ligne + couleur) */
nav a:hover {
    color: #D4AF37;
}

nav a::after {
    content: "";
    position: absolute;
    height: 3px;
    width: 0;
    background: #D4AF37;
    left: 0;
    bottom: 0;
    transition: 0.3s;
}

nav a:hover::after {
    width: 100%;
}


/* =======================
   PAGE ACTIVE (MENU)
======================= */
nav a.active {
    color: #D4AF37;
}

nav a.active::after {
    width: 100%;
}




/* =======================
        SOUS-MENU
======================= */
.dropdown {
    position: relative;
}

.submenu {
    position: absolute;
    background: white;
    color: #00529e;
    list-style: none;
    padding: 10px;
    border-radius: 6px;
    box-shadow: 0 0 10px #0003;
    display: none;
}

.dropdown:hover .submenu {
    display: block;
}

.submenu li a {
    color: #003B73;
    display: block;
    padding: 8px;
}

.submenu li a:hover {
    background: #D4AF37;
    color: white;
}



/* =======================
        SECTION HERO
======================= */
.hero {
    background: linear-gradient(to right, #003B73, #0057A3);
    padding: 120px 40px;
    text-align: center;
    color: white;
}

.hero h2 {
    font-size: 38px;
}

.hero p {
    font-size: 20px;
    margin-top: 15px;
}


/* =======================
        SECTION HEROS
======================= */
.heros {
    background: linear-gradient(to right, #003B73, #0057A3);
    padding: 80px 40px;
    text-align: center;
    color: white;
}

.heros h2 {
    font-size: 38px;
}



/* =======================
   HERO IMAGE (GÉNÉRIQUE)
======================= */
.hero-image {
    position: relative;
    height: 500px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Teinte bleutée */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 59, 115, 0.8); /* bleu INEFE */
}

/* Texte du hero */
.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    padding: 40px;
}

.hero-content h2 {
    font-size: 42px;
    margin-bottom: 10px;
}

.hero-content p {
    font-size: 22px;
}

/* =======================
   HERO SPÉCIFIQUE CONTACT
======================= */
.hero-contact {
    background-image: url("images/contact-hero.jpeg");
}
.hero-apropos {
    background-image: url("images/étudiants.jpeg");
}
.hero-actus {
    background-image: url("images/actu5.jpg");
}

/* =========================
   NOTRE HISTOIRE
========================= */
.about-history {
    max-width: 1000px;
    margin: 60px auto;
    padding: 0 20px;
}

.about-history h2 {
    color: #003B73;
    margin-bottom: 20px;
}

.about-history p {
    line-height: 1.8;
    margin-bottom: 15px;
    color: #222;
}

/* =========================
VISION - MISSION - OBJECTIFS
========================= */
.vm-objectives {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    padding: 60px 20px;
    max-width: 1100px;
    margin: auto;
}

.vm-card {
    padding: 30px;
    border-radius: 6px;
}

.vm-card h3 {
    margin-bottom: 15px;
}

.vm-card p {
    line-height: 1.7;
}

/* Cartes bleues */
.vm-card.blue {
    background: linear-gradient(135deg, #004b8d, #0066b3);
    color: #fff;
}

/* Carte blanche */
.vm-card.white {
    background: #fff;
    color: #004b8d;
;
    border: 1px solid #ddd;
}

/* Icônes */
.vm-icon {
    font-size: 28px;
    margin-bottom: 15px;
}

.vm-card.blue .vm-icon {
    color: #fff;
}

.blue-icon {
    color: #004b8d;
}











/* =======================
        SLIDER ACCUEIL
======================= */
.slider {
    position: relative;
    width: 100%;
    height: 520px;
    overflow: hidden;
}

.slides {
    width: 100%;
    height: 100%;
    position: relative;
    padding-top: 20px;
}

.slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease;
}

.slide.active {
    opacity: 1;
}

/* Filtre sombre pour lisibilité */
.slider::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1;
}

/* Texte par-dessus */
.slider-overlay {
    position: absolute;
    z-index: 2;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    width: min(900px, 92%);
}

.slider-overlay h2 {
    font-size: 40px;
    margin-bottom: 12px;
    margin-top: -160px;
}

.slider-overlay p {
    font-size: 20px;
    margin-bottom: 25px;
}

/* Boutons */
.slider-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    transform: translateY(180px);
}

.btn-primary {
    background: #D4AF37;
    color: #111;
    padding: 12px 18px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    transition: 0.3s;
}

.btn-primary:hover {
    background: #fff;
    color: #003B73;
}

.btn-outline {
    border: 2px solid #D4AF37;
    color: #fff;
    padding: 12px 18px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    transition: 0.3s;
}

.btn-outline:hover {
    background: #D4AF37;
    color: #111;
}

/* Flèches */
.slider-btn {
    position: absolute;
    z-index: 3;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    transition: 0.3s;
}

.slider-btn:hover {
    background: rgba(212, 175, 55, 0.85);
    color: #111;
}

.slider-btn.prev { left: 20px; }
.slider-btn.next { right: 20px; }







/* =======================
  SECTION FONDATRICE 
======================= */

.founder-section {
    display: flex;
    justify-content: center;
    margin: 80px 20px;
}

.founder-card {
    max-width: 400px;
    text-align: center;
    padding: 30px;
    border: 1px solid #ddd;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.founder-card img {
    width: 240px;
    height: 310px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid #804A00;
    margin-bottom: 20px;
}

.founder-card h3 {
    color: #003B73;
    margin-bottom: 10px;
}

.founder-card p {
    font-size: 15px;
    line-height: 1.6;
}

.calendar-section {
    margin: 60px auto;
    max-width: 400px;
    text-align: center;
}

.section-title {
    color: #002f5e;
}

.calendar-box {
    padding: 20px;
    background: #ebebeb;
    border-radius: 10px;
    font-weight: bold;
}





/* ==============================================
  SECTION ÉTABLISSEMENTS_ BLOC DE PRESENTATION
============================================== */
.etabs {
    padding: 70px 40px;
}

.etabs h2 {
    color: #003B73;
    margin-bottom: 40px;
}

.etab-image {
    width: 100%;
    height: 100%;
    position: relative;
    padding-top: 10px;
}

.etab-ground {
    background-position: center;
    padding: 44px 0px;
}

.etabs {
    padding: 60px 20px;
    background: linear-gradient(to right, #ffffff, #ffffff);
}

.etabs h2 {
    text-align: center;
    margin-bottom: 40px;
}

.cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 par ligne */
    gap: 30px;
    max-width: 1000px;
    margin: auto;
}

/* Effet vitré moderne */
.card {
    padding: 25px;
    border-radius: 12px;
    color: #002f5e;
    transition: 0.3s;

    background: rgba(255, 255, 255, 0.15); /* transparence */
    backdrop-filter: blur(10px); /* effet flou */
    -webkit-backdrop-filter: blur(10px);

    border: 1px solid rgba(0, 47, 94, 0.4);

}

/* Hover (tu gardes ton effet stylé) */
.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

/* Titre */
.card h3 {
    color: #003B73;
}

.card p {
    color: #000000;
}

/* Responsive mobile */
@media (max-width: 768px) {
    .cards {
        grid-template-columns: 1fr; /* 1 colonne sur téléphone */
    }
}





.school-block {
    width: 100%;
    padding: 60px 0;
    background: #f5f9ff;
}

.school-block.alt {
    background: #eaf3ff;
}

.school-content {
    max-width: 1100px;
    margin: auto;
    display: flex;
    align-items: center;
    gap: 40px;
    padding: 0 20px;
}

/* IMAGE */
.school-content img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 10px;
    transition: 0.4s;
}

.school-content img:hover {
    transform: scale(1.05);
}

/* TEXTE */
.text {
    width: 50%;
}

.text h3 a {
    color: #003B73;
    text-decoration: none;
}

/* BOUTON */
.btn {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 20px;
    background: #003B73;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: 0.3s;
}

.btn:hover {
    background: #0056a6;
}

/* ALTERNANCE */
.school-block.alt .school-content {
    flex-direction: row-reverse;
}

/* MOBILE */
@media (max-width: 768px) {
    .school-content {
        flex-direction: column;
    }

    .school-content img,
    .text {
        width: 100%;
    }
}



/* ==============================
  SECTION PROMO ECOLE DE SANTE
=============================== */
.promo-section {
    padding: 60px 20px;
    background: #f5f9ff;
    text-align: center;
}

/* TITRE */
.promo-section h2 {
    color: #003B73;
    margin-bottom: 20px;
}

/* TEXTE INTRO */
.promo-section .intro {
    max-width: 800px;
    margin: auto;
    line-height: 1.7;
    color: #333;
    margin-bottom: 40px;
}

/* IMAGE PRINCIPALE */
.highlight img {
    width: 90%;
    max-width: 800px;
    border-radius: 10px;
    margin-bottom: 40px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
    border: 2px solid #D4AF37;
}

/* GALERIE */
.gallery {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding: 10px;
}

/* IMAGES GALERIE */
.gallery img {
    height: 180px;
    border-radius: 8px;
    transition: 0.3s;
    cursor: pointer;
}

/* HOVER */
.gallery img:hover {
    transform: scale(1.05);
}




/* =======================
     SECTION ACTUALITES
======================= */

.actus-list {
    padding: 50px 40px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.actu-item {
    border: 1px solid #eee;
    border-radius: 10px;
    overflow: hidden;
    background: white;
    box-shadow: 0 8px 25px rgba(0,0,0,0.06);
}

.actu-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.actu-item h3 {
    padding: 15px 15px 0 15px;
    color: #003B73;
}

.actu-item p {
    padding: 10px 15px 20px 15px;
}



.actus {
    padding: 70px 40px;
}
.actus h2 {
    color: #003B73;
}

.about-section h3 {
    padding: 10px 40px;
    color:#003B73;
}

.about-section p {
    padding: 10px 40px;
}

.about-section ul {
    padding: 10px 40px;
}



/* =========================
   ACCORDÉON ACTUALITÉS
========================= */
.accordion-section {
    max-width: 1000px;
    margin: 60px auto;
    padding: 0 20px;
}

.page-title {
    color: #003B73;
    margin-bottom: 40px;
    text-align: center;
}

.accordion-item {
    border-bottom: 1px solid #ddd;
    margin-bottom: 20px;
}

.accordion-header {
    width: 100%;
    background: #f5f5f5;
    border: none;
    border-radius: 50px;
    text-align: left;
    font-size: 18px;
    font-weight: 600;
    padding: 15px 15px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #003B73;
}

.accordion-header:hover {
    color: #0066cc;
}

.arrow {
    transition: transform 0.3s ease;
}

.accordion-item.active .arrow {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.accordion-content p {
    margin: 15px 0;
    line-height: 1.7;
}

/* Galerie photos */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.gallery img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 6px;
}

.section-separator {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 60px 0;
    gap: 15px;
}

.section-separator span {
    flex: 1;
    height: 2px;
    background: linear-gradient(to right, transparent, #C9A24D, transparent);
}

.section-separator i {
    color: #003B73;
    font-size: 20px;
}

.accordion-header {
    color: #003B73; /* Bleu institutionnel */
}

.accordion-header:hover {
    color: #C9A24D; /* Doré */
}

/* ===== MODAL IMAGE ===== */
.image-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    justify-content: center;
    align-items: center;
}

.image-modal img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(255,255,255,0.3);
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: #fff;
    cursor: pointer;
}







/* =======================
    BLOCS ÉTABLISSEMENTS + IMAGES
======================= */
.etab-image img {
    width: 100%;
    height: 100%;
    position: relative;
    transform: translateY(-65px);
}

.school-block {
    display: flex;
    gap: 25px;
    align-items: center;
    padding: 40px;
    border-bottom: 1px solid #eee;
}

.school-text {
    flex: 1;
}

.school-text h3 {
    color: #003B73;
    margin-bottom: 10px;
}

.school-image {
    width: 380px;
    max-width: 100%;
}

.school-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}





/* =======================
      CALENDRIER
======================= */
.calendar {
    padding: 60px 40px;
    margin-bottom: 40px;
}

#calendar-container {
    margin-top: 20px;
}

.calendar h2 {
    color: #003B73;
}



/* =======================
        FOOTER
======================= */
footer {
    background: #111;
    color: white;
    text-align: center;
    padding: 30px 10px;
    margin-top: 60px;
}






.faq-answer {
    display: none;
    padding: 10px;
}

.faq-answer.opened {
    display: block;
}







@media (max-width: 768px) {

    header {
        flex-direction: column;
        text-align: center;
    }

    nav .menu {
        flex-direction: column;
        gap: 15px;
    }

    .cards {
        flex-direction: column;
        width: 100%;
    }

    .card {
        width: 100%;
    }

    .school-block {
        padding: 20px;
    }

    .contact-section {
        flex-direction: column;
    }
}









/*======================
    BOUTON EMAIL
======================*/


.email-btn {
    display: inline-block;
    background: #d4af37; /* doré */
    color: white;
    padding: 5px 15px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
}

.email-btn:hover {
    background: #b8962e;
    transform: translateY(-2px);
}









/*=========================
    CORRECTION BUGS
==========================*/

/* NAVBAR */
nav {
    position: relative;
    z-index: 1000;
}

/* MENU */
.nav-menu {
    position: relative;
}

/* DROPDOWN */
.dropdown {
    position: relative;
}

/* CONTENU DÉROULANT */
.submenu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 150px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    border-radius: 8px;
    z-index: 9999; /* TRÈS IMPORTANT */
    display: none;
}

/* AFFICHAGE AU HOVER */
.dropdown:hover .submenu {
    display: block;
}





section, .hero {
    position: relative;
    z-index: 1;
}





@media (max-width: 768px) {

    .nav-menu {
        display: flex;
        flex-direction: column;
        background: white;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        z-index: 1000;
    }

    .dropdown {
        position: relative;
    }

    .dropdown .submenu {
        position: absolute; /* IMPORTANT */
        top: 100%;
        left: 0;
        width: 100%;
        background: #f1f1f1;
        border-radius: 10px;
        box-shadow: 0 8px 20px rgba(0,0,0,0.2);
        z-index: 9999;
        display: none;
    }

    .dropdown.active .submenu {
        display: block;
    }

}

