@import url("global.css");
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap'); /* Police appliquée */

/* 🌟 STYLE GÉNÉRAL 🌟 */
.projets {
    display: flex;
    flex-grow: 1;
    font-family: "Poppins", sans-serif;
    background: linear-gradient(120deg, #ff6699, #ff85a2, #569ee0);
    padding: 60px 40px 40px;
    color: white;
}

/* 🌟 TITRE PRINCIPAL 🌟 */
.projets h2 {
    font-size: 2.8em;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 30px;
    margin-top: 50px; /* Ajustement sous le header */
}

/* 🌟 Ajustement du contenu 🌟 */
.projets p {
    margin-bottom: 20px;
}

/* 🌟 MENU LATÉRAL 🌟 */
.menu-lateral {
    width: 250px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    padding: 20px;
    border-radius: 12px;
    position: relative;
    top: 50px; /* Ajuste la position */
    height: fit-content;
}

.menu-lateral h3 {
    text-align: center;
    font-size: 1.5em;
    margin-bottom: 15px;
}

/* 🌟 Boutons du menu latéral 🌟 */
.menu-lateral ul {
    list-style: none;
    padding: 0;
}

.menu-lateral ul li {
    margin: 10px 0;
}

.menu-lateral ul li a {
    text-decoration: none;
    color: white;
    font-weight: bold;
    font-size: 1.2em;
    display: block;
    padding: 12px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    transition: all 0.3s ease-in-out;
    text-align: center;
}

.menu-lateral ul li a:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: scale(1.05);
}

/* 🌟 LISTE DES PROJETS 🌟 */
.projets-list {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
}

/* 🌟 CARTES DES PROJETS 🌟 */
.projets-list article {
    background: rgba(255, 255, 255, 0.12);
    padding: 20px;
    width: 80%;
    max-width: 350px;
    border-radius: 12px;
    text-align: center;
    font-size: 1.1em;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    font-weight: 400;
}

/* 🌟 Effet de survol sur les cartes 🌟 */
.projets-list article:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

/* 🌟 BOUTON "AJOUTER UN PROJET" 🌟 */
.add-project-btn {
    display: inline-block;
    background: white;
    color: #ff477e;
    padding: 14px 28px;
    font-size: 1.2em;
    font-weight: 600;
    text-decoration: none;
    border-radius: 10px;
    margin-top: 30px;
    transition: background 0.3s ease-in-out, color 0.3s ease-in-out, transform 0.2s ease-in-out;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
}

.add-project-btn:hover {
    background: #ff477e;
    color: white;
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.25);
}

/* ✅ Empêche le débordement horizontal */
body {
    overflow-x: hidden;
}

/* ✅ Assure que tout reste bien dans la page */
.container, .fiches-pedagogiques, .tutoriels, .projets-college {
    max-width: 100%;
    width: 100%;
    overflow-x: hidden; /* 🌟 Évite le scroll horizontal */
    margin: 0 auto;
    padding: 0 10px; /* 🔥 Ajoute un léger padding pour éviter un débordement */
}

/* ✅ Évite les bandes blanches et s'assure que le contenu est bien centré */
@media (max-width: 768px) {
    .container, .fiches-pedagogiques, .tutoriels, .projets-college {
        max-width: 100%;
        width: calc(100vw - 20px); /* 🔥 Empêche le dépassement */
        margin: 0 auto;
    }
}
