/* =========================
   Template — version responsive
========================= */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background: linear-gradient(to left, #2e6592, #40585e);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: 'Segoe UI', sans-serif;
    overflow-x: hidden;
}


/* TITRE */

#titreaccueil {
    text-align: center;
    margin-top: clamp(20px, 15vh, 5px);
    margin-bottom: clamp(24px, 4vw, 60px);
    color: white;
    font-size: clamp(18px, 2.5vw, 28px);
    letter-spacing: 2px;
}

/* MENU */

.menu-barre {
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(8px);
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* ✅ CENTRÉ */
    align-items: center;
    padding: clamp(8px, 1.5vw, 15px);
    width: 90%;
    margin: 0 auto clamp(32px, 6vw, 80px);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.menu-barre a {
    position: relative;
    color: white;
    text-decoration: none;
    font-weight: 600;
    padding: clamp(8px, 1.2vw, 12px) clamp(8px, 1.2vw, 15px);
    border-radius: 8px;
    flex: 1;
    min-width: 100px;
    text-align: center;
    transition: all 0.3s ease;
    overflow: hidden;
    font-size: clamp(13px, 1.2vw, 16px);
}

/* Soulignement menu */

.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%;
}

/* Effet élévation */

.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: 50px;
    padding: clamp(14px, 2vw, 25px);
    font-size: clamp(11px, 1vw, 13px);
    text-align: center;
    color: rgba(255,255,255,0.7);
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* ======== CONTENU ======== */

#mainaprojetpersonnel {
    display: flex;
    flex-direction: column; /* ✅ important */
    align-items: center;    /* ✅ centre tout */
    width: 100%;
    margin: 0 auto;
    gap: 20px;
}

/* Sommaire */

#sommaire h2 {
    margin-bottom: clamp(16px, 2.5vw, 30px);
    letter-spacing: 2px;
    font-size: clamp(16px, 1.8vw, 22px);
}

/* Blocs texte */

.texte1 {
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(10px);
    padding: clamp(20px, 3vw, 40px);
    border-radius: 20px;
    width: clamp(260px, 40vw, 550px);
    text-align: center;
    box-shadow: 0 20px 50px rgba(0,0,0,0.4);
    color: white;
    font-size: clamp(13px, 1.2vw, 16px);
}

.texte2 {
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(10px);
    padding: clamp(20px, 3vw, 40px);
    border-radius: 20px;
    width: clamp(280px, 48vw, 650px);
    text-align: center;
    box-shadow: 0 20px 50px rgba(0,0,0,0.4);
    color: white;
    font-size: clamp(13px, 1.2vw, 16px);
}

/* Image */

.categorie2 {
    display: flex;
    justify-content: center; /* ✅ centre image */
}

#campus {
    backdrop-filter: blur(10px);
    padding: clamp(1px, 3vw, 1px);
    box-shadow: 0 20px 30px rgba(0,0,0,0.4);
    border-radius: 40%;
    width: clamp(200px, 40vw, 505px);
}

/* Ligne 2 */

.ligne2 {   
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* ✅ CENTRÉ */
    align-items: center;
    gap: clamp(14px, 2.5vw, 30px);
    width: 100%;
}

/* Séparateur */

.separator-thin {
    position: relative; /* ✅ FIX */
    padding: clamp(20px, 3vw, 40px);
    border-radius: 20px;
    width: 300px;
    margin: 40px auto;
}

.separator-thin::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: clamp(200px, 50vw, 700px);
    height: 4px;
    background-color: #78868d;
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

/* Boutons projets */

.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.2vw, 15px);
    border-radius: 12px;
    font-weight: 600;
    font-size: clamp(13px, 1.2vw, 16px);
    transition: all 0.3s ease;
}

.btn-projet:hover {
    transform: translateY(-5px);
    background: rgba(255,255,255,0.25);
    box-shadow: 0 10px 25px rgba(0,0,0,0.4);
}

/* Présentation */

.presentation {
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(10px);
    padding: clamp(20px, 3vw, 40px);
    border-radius: 20px;
    width: clamp(240px, 30vw, 400px);
    text-align: center;
    box-shadow: 0 20px 50px rgba(0,0,0,0.4);
    color: white;
}

/* ======== RESPONSIVE ======== */

@media (max-width: 768px) {
    #logo {
        position: relative;
        margin: 15px auto 0;
        display: block;
        text-align: center;
    }
    
    .ligne2 {
        flex-direction: column; /* ✅ empile */
    }

    .menu-barre {
        justify-content: center;
    }

    #mainaprojetpersonnel {
        padding: 0 15px;
    }

    img {
        max-width: 100%;
        height: auto;
    }
}