/* ------------------- */
/* -- Base du style -- */
/* ------------------- */

* {
    box-sizing: border-box; /* Important pour que le padding ne casse pas la largeur */
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
}

body {
    font-family: 'Poppins', sans-serif; /* Police plus moderne */
    background-image: url('../images/background.png');
    background-size: cover; /* L'image couvre tout l'écran */
    background-position: center;
    background-attachment: fixed;
    min-height: 100vh; /* Prend toute la hauteur de l'écran */
}

/* --- Login Container (Centrage) --- */
.content_login {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100vh; /* Utilise 100% de la hauteur de la fenêtre */
}

/* --- La Carte du Formulaire --- */
.login-card {
    display: flex;
    flex-direction: column;
    /* Ta couleur préférée avec un peu de flou pour l'effet moderne */
    background-color: rgba(0, 0, 0, 0.6); 
    backdrop-filter: blur(10px); /* Effet verre dépoli (optionnel mais joli) */
    
    padding: 40px;
    border-radius: 30px; /* 80px c'est souvent trop, 30px est plus standard */
    box-shadow: 0 15px 25px rgba(0,0,0,0.5); /* Ombre portée pour le relief */
    
    width: 90%; /* Sur mobile, prend 90% de la largeur */
    max-width: 400px; /* Sur PC, ne dépasse pas 400px */
    gap: 20px; /* Espace entre les éléments */
}

/* --- Typographie --- */
.login-card h1 {
    color: white;
    text-align: center;
    margin-bottom: 20px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.input-group label {
    display: block;
    color: #fff;
    font-size: 16px;
    margin-bottom: 8px;
    font-weight: 500;
}

/* --- Inputs (Champs de texte) --- */
.login-card input[type="text"],
.login-card input[type="password"] {
    width: 100%;
    padding: 15px;
    border: none;
    outline: none;
    background: rgba(255, 255, 255, 0.1); /* Fond légèrement blanc transparent */
    border-radius: 10px;
    color: white;
    font-size: 16px;
    transition: 0.3s;
    border: 1px solid rgba(255,255,255,0.2);
}

/* Effet au clic sur l'input */
.login-card input:focus {
    background: rgba(255, 255, 255, 0.2);
    border-color: #fff;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

/* --- Bouton --- */
.btn-login {
    padding: 15px;
    margin-top: 10px;
    background-color: white; /* Ou une couleur vive de ton site */
    color: black;
    border: none;
    border-radius: 50px; /* Bouton bien arrondi */
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.3s;
}

.btn-login:hover {
    transform: scale(1.02); /* Léger grossissement au survol */
    background-color: #f0f0f0;
}

/* --- Liens (Override ton global css si besoin) --- */
a {
    font-size: 14px;
    text-align: center;
    color: #ccc;
    margin-top: 10px;
    text-decoration: none;
}

form {
    transition: transform 0.3s, box-shadow 0.3s;
}

form:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.menu_bar {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 50px;
    margin-bottom: 50px;
}

.content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    align-items: center;
    width: 100%;
    /* J'ai changé height: 900px en min-height pour éviter de couper sur petits écrans */
    min-height: 900px; 
}

.box {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background-color: rgba(0, 0, 0, 0.5);
    width: 40%;
    height: 300px; /* J'ai mis une hauteur fixe en px pour stabiliser l'affichage au lieu de % */
    border-radius: 80px;
    margin-bottom: 30px; /* Espace entre les lignes de box */
    transition: transform 0.3s, box-shadow 0.3s;
    transition: width 0.5s ease, height 0.5s ease, top 0.5s ease, left 0.5s ease, transform 0.5s ease;
    left: auto;
    top: auto;
    transform-origin: center;
}

.box.expanded {
    width: 90vw;
    height: 80vh;
    top: 20%;
    left:5%;
    position: fixed;
    z-index: 1000;
}

.box:hover{
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.left_box{
    display:flex;
    height: 80%;
    width: 25%;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

.right_box{
    height: 80%;
    width: 65%;
}

p{
    font-size: 14px;
    text-align: center;
    color: #ccc;
}

@media (max-width: 768px) {
    .box {
        width: 80%; /* pour les écrans plus petits*/
    }
    h1 {
        font-size: 18px;
    }
}

.logo_box {
    width: 60%;
    height: auto;
}