@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap'); /* Police d'écriture */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Roboto", sans-serif;
}
body {
    background-color: #f5f5f5;
    overflow-x: hidden;
    overflow: hidden;
    font-family: 'Roboto', sans-serif;
    font-style: italic;
    background-size: cover;
}

ul {
    list-style: none;
}


header {
    background: linear-gradient(to right, #ef3333, #d61f1f);
    padding: 20px 10%;
    color: white;
    font-weight: bold;
    letter-spacing: 2px;
}

.home {
    min-height: 90vh;
    margin-top: 130px;

    background: linear-gradient(rgba(10, 31, 68, 0.25), rgba(10, 31, 68, 0.6)), url("images/ecole2.jpg");
    background-position: center;
    background-size: cover;
}

/* ===== HEADER GLOBAL ===== */
.menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 130px;

    display: flex;
    align-items: center;

    background: rgba(239, 51, 51, 1);
    padding: 0 20px;

    z-index: 1000;
}

.title {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);

    color: white;
    font-size: 24px;
    font-weight: bold;
    letter-spacing: 2px;
}

.logo {
    font-size: 24px;
    line-height: 1.2;
    font-weight: 600;
    color: white;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 10px;
}
.logo img {
    height: 70px; /* taille parfaite */
    width: auto;
    display: block;
}


.links {
    display: flex;
}


.links li {
    margin: 10px;
}


.logo, .links li a {
    color: white;
    text-decoration: none;
}


.logo span {
    font-size: 40px;
}


/* Formulaire amélioré */
.form-container {
    position: absolute;
    top: 55%;
    left: 50%;
    transform: translate(-50%, -50%);
    
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    
    padding: 40px;
    border-radius: 16px;
    
    width: 320px;
    text-align: center;
    
    color: white;
    z-index: 2;
    
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

/* Titre */
.form-container h2 {
    margin-bottom: 20px;
    font-size: 24px;
    font-weight: 600;
}

/* Inputs */
.form-container input {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    
    border-radius: 8px;
    border: none;
    
    background: rgba(255,255,255,0.9);
    font-size: 14px;
}

/* Bouton */
.form-container button {
    margin-top: 15px;
    width: 100%;
    padding: 12px;
    
    background: linear-gradient(135deg, #ef3333, #c81e1e);
    border: none;
    border-radius: 8px;
    
    color: white;
    font-weight: bold;
    font-size: 15px;
    
    cursor: pointer;
    transition: 0.3s;
}



/* Hover bouton */
@media screen and (max-width:1024px) {

    /* ===== HEADER ===== */

    .menu {
        height: 70px;
        padding: 0 15px;
    }

    .logo {
        gap: 8px;
    }

    .logo img {
        height: 60px;
    }

    .logo span {
        font-size: 16px;
        line-height: 1.2;
    }

    /* ===== HOME IMAGE ===== */

    .home {
        min-height: 100vh;
        margin-top: 70px; /* adapte au header */
        background-position: center;

    }

    /* ===== FORMULAIRE ===== */

    .form-container {
        width: 90%;
        max-width: 320px;
        padding: 25px;
    }

    .form-container h2 {
        font-size: 20px;
    }

    .form-container input {
        font-size: 14px;
        padding: 10px;
    }

    .form-container button {
        font-size: 14px;
        padding: 10px;
    }
}






