/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}

/* HEADER */
.
.header {
    height: 180px;
}

.logo {
    height: 100%;
    background-image: url("images/banniere_f.png");
    background-size: cover;
    background-position: center;
}


.connexion a {
    padding: 10px 18px;
    border: 2px solid #7fd3ff;
    border-radius: 8px;
    text-decoration: none;
    color: #00bcd4;
    font-weight: bold;
}
.connexion {
    margin-left: 20px;
    flex-shrink: 0;
}

/* BURGER */
.burger {
    display: none;
    font-size: 30px;
    cursor: pointer;
}

/* NAVBAR */
.navbar {
    background-color: #fff;
    border-bottom: 2px solid #f5c400;
    transition: max-height 0.4s ease;
}

.menu {
    list-style: none;
    display: flex;
    justify-content: center;
}

/* LIENS */
.menu > li {
    position: relative;
}
/* Séparateurs verticaux entre les menus */
.menu > li:not(:last-child)::after {
    content: "|";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    color: #f5c400;   /* jaune comme la charte */
    font-weight: bold;
}

.menu > li > a {
    display: block;
    padding: 15px 20px;
    text-decoration: none;
    font-weight: bold;
    color: #000;
    transition: background-color 0.3s;
}

.menu > li > a:hover {
    background-color: #f5c400;
}

/* SOUS-MENU (animation) */
.submenu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #b3e5ff;
    list-style: none;
    min-width: 230px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.submenu li a {
    padding: 12px;
    display: block;
    text-decoration: none;
    color: #000;
    border-bottom: 1px solid #fff;
}

.submenu li a:hover {
    background-color: #90d4ff;
}

/* Affichage sous-menu */
.dropdown:hover .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* BANDEAU JAUNE */
.banner-title {
    background-color: #f5c400;
    padding: 40px 20px;
    text-align: center;
}

.banner-title h1 {
    font-size: 32px;
}

/* ======================= */
/* RESPONSIVE */
/* ======================= */
@media (max-width: 900px) {

    .burger {
        display: block;
    }

    .navbar {
        max-height: 0;
        overflow: hidden;
    }

    .navbar.active {
        max-height: 1000px;
    }

    .menu {
        flex-direction: column;
        text-align: center;
    }

    .menu > li {
        border-bottom: 1px solid #f5c400;
    }

    .submenu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
    }

    .dropdown:hover .submenu {
        display: block;
    }
}
/* ===================== */
/* Cartes “Seconde MELEC” */
/* ===================== */

.cards-section {
    max-width: 1200px;
    margin: 40px auto;
    display: grid;
    gap: 30px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    padding: 0 20px;
}

.card {
    border: 3px solid #00bcd4;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    background-color: #fff;
    transition: 0.3s ease;
    cursor: pointer;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

.card h3 {
    font-size: 22px;
    color: #007bb5;
    margin-bottom: 10px;
}

.card p {
    color: #444;
    font-size: 16px;
}
/* =============================== */
/* PAGE CONTENU (Première Préparation) */
/* =============================== */

.page-content {
    max-width: 1100px;
    margin: 40px auto;
    padding: 0 20px;
}

.page-title {
    font-size: 34px;
    color: #007bb5;
    text-align: center;
    margin-bottom: 10px;
}

.page-subtitle {
    font-size: 20px;
    text-align: center;
    color: #444;
    margin-bottom: 40px;
}

/* Sections */
.content-section {
    margin-bottom: 50px;
}

.content-section h3 {
    font-size: 24px;
    color: #00bcd4;
    margin-bottom: 15px;
}

/* Image */
.content-image {
    width: 400px;
    height: 300px;
    object-fit: cover;
    border: 3px solid #00bcd4;
    border-radius: 10px;
}

/* Vidéo responsive */
.video-container {
    position: relative;
    width: 100%;
    max-width: 700px;
    aspect-ratio: 16 / 9;
    margin: 0 auto;   /* 👈 C’EST ÇA QUI CENTRE */
}

.video-container iframe {
    width: 100%;
    height: 100%;
    border-radius: 10px;
    border: 3px solid #00bcd4;
}




/* PDF */
.pdf-list {
    list-style: none;
    padding-left: 0;
}

.pdf-list li {
    margin-bottom: 12px;
}

.pdf-list a {
    text-decoration: none;
    font-weight: bold;
    color: #007bb5;
}

.pdf-list a:hover {
    text-decoration: underline;
}
/* Menu actif (page en cours) */
.active-menu > a {
    background-color: #FFB343; /* orange/jaune */
    color: #000;
}

/* Optionnel : sous-menu aussi en évidence */
.active-menu .submenu {
    border-top: 3px solid #f5c400;
}
/* ===== QCM ===== */
.qcm-container {
    max-width: 900px;
    margin: 40px auto;
}

.question {
    margin-bottom: 25px;
    padding: 15px;
    border: 2px solid #00bcd4;
    border-radius: 10px;
}

.reponse {
    display: block;
    margin: 8px 0;
    cursor: pointer;
}

.reponse input {
    margin-right: 8px;
}

button.qcm-btn {
    padding: 12px 25px;
    font-size: 16px;
    background: #00bcd4;
    color: white;
    border-radius: 8px;
}
.video-presentation {
    text-align: center;
    margin: 40px 0;
}

.video-presentation iframe {
    width: 90%;
    max-width: 560px;
    height: 315px;
    margin: 0 auto;
    display: block;
    border: 0;
}

