/* =========================
   Template - 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;
    justify-content: space-between;
    align-items: center;
    padding: clamp(10px, 1.5vw, 15px);
    width: 90%;
    margin: auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    flex-wrap: wrap;
    gap: 8px;
}

.menu-barre a {
    position: relative;
    color: white;
    text-decoration: none;
    font-weight: 600;
    padding: clamp(8px, 1.2vw, 12px) clamp(8px, 1.5vw, 15px);
    border-radius: 8px;
    flex: 1;
    min-width: max-content;
    text-align: center;
    font-size: clamp(12px, 1.4vw, 16px);
    transition: all 0.3s ease;
    overflow: hidden;
}

/* 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);
}

/* CONTENU PRINCIPAL */

#mainlivrable1 {
    display: flex;
    justify-content: left;
    margin-left: clamp(20px, 6vw, 65px);
    margin-top: clamp(40px, 7vw, 80px);
    margin-bottom: clamp(40px, 7vw, 80px);
}

#sommaire h2 {
    margin-bottom: clamp(15px, 2.5vw, 30px);
    letter-spacing: 2px;
    font-size: clamp(16px, 2vw, 24px);
}

.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;
}

.btn-projet:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.categories {
    display: flex;
    gap: clamp(15px, 3vw, 30px);
    align-items: flex-start;
    flex-wrap: wrap;
}

.categorie {
    flex: 1;
    min-width: clamp(140px, 30vw, 250px);
}

.oral1 {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    padding: clamp(20px, 4vw, 40px);
    border-radius: 20px;
    width: clamp(260px, 90%, 400px);
    text-align: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    color: white;
}

/* FOOTER */

footer {
    margin-top: auto;
    padding: clamp(15px, 2.5vw, 25px);
    font-size: clamp(10px, 1.2vw, 12px);
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* =========================
   Media Queries
========================= */

/* Tablette (max 1024px) */
@media (max-width: 1024px) {
    #mainlivrable1 {
        margin-left: 30px;
        margin-right: 30px;
    }

    .categories {
        gap: 20px;
    }
}

/* Mobile large (max 768px) */
@media (max-width: 768px) {
    #logo {
        position: relative;
        margin: 15px auto 0;
        display: block;
        text-align: center;
    }

    #titreaccueil {
        margin-top: 30px;
        font-size: 20px;
    }

    .menu-barre {
        gap: 6px;
        width: 95%;
    }

    .menu-barre a {
        width: 100%;
        min-width: unset;
    }


    #mainlivrable1 {
        margin-left: 15px;
        margin-right: 15px;
        margin-top: 40px;
        margin-bottom: 40px;
    }

    .categories {
    
        gap: 15px;
    }

    .categorie {
        min-width: 100%;
    }

    .oral1 {
        width: 100%;
        padding: 25px 15px;
    }
}

/* Mobile petit (max 480px) */
@media (max-width: 480px) {
    #titreaccueil {
        font-size: 17px;
        letter-spacing: 1px;
    }

    .btn-projet {
        font-size: 13px;
        padding: 10px 12px;
    }

    footer {
        font-size: 10px;
        padding: 15px;
    }
}
