
/* =========================
   TEMPLATE GLOBAL
========================= */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background: linear-gradient(to top, #000000, #17216b);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: 'Segoe UI', sans-serif;
    overflow-x: hidden;
    color: white;
}

/* =========================
   TITRE
========================= */

#titreaccueil {
    text-align: center;
    margin-top: 20px;
    margin-bottom: 60px;
    font-size: 28px;
    letter-spacing: 2px;
}

/* =========================
   MENU
========================= */

.menu-barre {
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    width: 90%;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
    margin-bottom: 40px;
    margin: auto;
}

.menu-barre a {
    position: relative;
    color: white;
    text-decoration: none;
    font-weight: 600;
    padding: 12px 15px;
    border-radius: 8px;
    flex: 1;
    text-align: center;
    transition: all 0.3s ease;
    overflow: hidden;
}

.menu-barre a::after {
    content: "";
    position: absolute;
    width: 0%;
    height: 3px;
    bottom: 5px;
    left: 50%;
    background: white;
    transition: 0.3s ease;
    transform: translateX(-50%);
}

.menu-barre a:hover::after {
    width: 60%;
}

.menu-barre a:hover {
    transform: translateY(-5px);
    background: rgba(255,255,255,0.15);
    box-shadow: 0 8px 20px rgba(0,0,0,0.4);
}

/* =========================
   FOOTER
========================= */

footer {
    margin-top: 60px;
    padding: 25px;
    font-size: 12px;
    text-align: center;
    color: rgba(255,255,255,0.7);
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* =========================
   PAGE ALTERNANCE
========================= */

#mainmonalternance {
    margin-top: 20px;
    padding-bottom: 90px; /* ↓ réduit */
    display: flex;
    flex-direction: column;
    gap: 80px; /* 🔥 espace contrôlé entre blocs */
}

/* =========================
   BLOCS TEXTE
========================= */

#ligne1texte,
#texteCN,
#textealternance {
    width: min(900px, 92%);
    margin: 0 auto; /* 🔥 on gère l’espace avec gap */
    padding: 28px;

    border-radius: 18px;
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.35);

    line-height: 1.7;
    font-size: 15.5px;

    text-align: center;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* =========================
   TITRE EDF BLOCK
========================= */

#ligne1texte {
    margin-top: 40px; /* ↓ énorme réduction */
}

/* =========================
   LOGO EDF
========================= */

#logoedf {
    display: block;
    margin: 40px auto 20px auto; /* ↓ compact */
    transition: transform 0.3s ease;
}

#logoedf:hover {
    transform: scale(1.04);
}

/* =========================
   IMAGE CN + ALTERNANCE
========================= */


#CN,
#moialternance {
    display: block;
    margin: 30px auto;
    border-radius: 18px;
}


/* =========================
   ZONE GRID (plus compacte)
========================= */

.ligne2,
.categories {
    display: grid;
    grid-template-columns: repeat(2, minmax(260px, 1fr));
    gap: 75px; /* 🔥 réduit */

    width: 90%;
    max-width: 1000px;
    margin: 0 auto;
    align-items: center;
}

/* =========================
   BOUTONS
========================= */

.boutons-projets {
    display: flex;
    flex-direction: column;
    gap: clamp(10px, 1.5vw, 20px);
}

.btn-projet {
    text-decoration: none;
    color: white;
    background: rgba(255, 255, 255, 0.12);
    padding: clamp(10px, 1.5vw, 15px);
    border-radius: 12px;
    font-weight: 600;
    font-size: clamp(13px, 1.4vw, 16px);
    transition: all 0.3s ease;
    display: block;
}

.btn-projet:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.25);
}


.docperso {
    text-align: center;
}

/* =========================
   VERSION MOBILE
========================= */

@media (max-width: 900px) {

    .ligne2,
    .categories {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    #logo {
        margin: 10px auto;
    }

    .menu-barre {
        gap: 6px;
        width: 95%;
        flex-wrap: wrap;
    }

    .menu-barre a {
        width: 100%;
    }
}