/* ===================== */
/* RESET DE BASE */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* ===================== */
/* BODY ET CONTENEUR */
body {
    background: linear-gradient(to bottom right, #1e3c72, #2a5298);
    color: #fff;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    justify-content: space-between;
    padding: 0 0px;
}

/* CONTENEUR PRINCIPAL */
.container {
    max-width: 400px;
    margin: auto auto auto auto;
    padding: 40px 30px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
    backdrop-filter: blur(10px);
}

/* LOGO */
.logo {
    width: 100px;
    margin-bottom: 20px;
    border-radius: 50%;
    border: 2px solid #fff;
}

/* TITRES ET PARAGRAPHES */
h1 {
    font-size: 2rem;
    margin-bottom: 15px;
}

p {
    font-size: 1rem;
    margin-bottom: 25px;
    color: #e0e0e0;
}

/* FORMULAIRE */
input[type="text"] {
    width: 80%;
    padding: 12px 15px;
    border-radius: 8px;
    border: none;
    margin-bottom: 15px;
    font-size: 1rem;
}

input[type="text"]:focus {
    outline: none;
    box-shadow: 0 0 10px #fff;
}

/* BOUTON */
button {
    padding: 12px 50px;
    border: none;
    border-radius: 8px;
    background: #ff6f61;
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

button:hover {
    background: #ff4b3e;
    transform: translateY(-2px);
}

/* MESSAGE D’ERREUR */
.error {
    margin-top: 15px;
    color: #ff4b3e;
    font-weight: bold;
}


/* FOOTER */
footer {
    background: rgba(0,0,0,0.3);
    padding: 20px 10px;
    text-align: center;
    font-size: 0.9rem;
    backdrop-filter: blur(5px);
}

footer h3 {
    margin-bottom: 10px;
    font-size: 1.2rem;
}

footer p {
    margin-bottom: 10px;
}

footer .footer-links {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 10px;
}

footer .footer-links a {
    color: #19c6ef;
    text-decoration: none;
    transition: color 0.3s ease;
}

footer .footer-links a:hover {
    color: #ff6f61;
}

footer .copyright {
    color: #ccc;
}

.gif-container {
    text-align: center; /* centre le GIF horizontalement */
    margin: 20px 0;    /* espace au-dessus et en dessous */
}

.gif {
    width: 120px;       /* taille du GIF */
    max-width: 80%;     /* responsive sur mobile */
    border-radius: 10px; /* optionnel */
}

/* ===================== */
/* MEDIA QUERIES MOBILE */
@media screen and (max-width: 600px) {
    /* CONTENEUR */
    .container {
        width: auto;
        max-width: 400px;
        padding: 10px 8px;
        max-height: 90vh;
        overflow-y: auto;
    }

    .logo {
        width: 55px;
        margin-bottom: 6px;
    }

    h1 {
        font-size: 1.5rem;
        margin-bottom: 10px;
    }

    p {
        font-size: 0.95rem;
        margin-bottom: 15px;
    }

    input[type="text"] {
        width: auto;
        padding: 10px;
        font-size: 0.95rem;
        border-radius: 6px;
        margin-bottom: 10px;
    }

    button {
        width: auto;
        padding: 8px 20px;
        font-size: 0.95rem;
        border-radius: 6px;
    }

    /* MESSAGE D’ERREUR */
    .error {
        font-size: 0.95rem;
    }

    /* FOOTER */
    footer {
        padding: 15px 10px;
        font-size: 0.85rem;
    }

    footer h3 {
        font-size: 1.2rem;
    }

    footer p {
        font-size: 0.95rem;
    }

    footer .footer-links {
        gap: 8px;
    }

    .gif {
        width: 80px;    /* plus petit sur mobile */
    }
    
}