/* Définition des variables de couleurs utilisées partout (Facultatif, mais très propre) */
:root {
    --primary: #0d6efd; /* Bleu principal */
    --accent: #00bcd4; /* Cyan pour les boutons (ex: Soumission) */
    --text-dark: #212529;
    --text-gray: #6c757d;
}

/* ------------------------------------------------------------------- */
/* 1. CORRECTION GLOBALE DE LA NAVBAR & DU FOND */
/* ------------------------------------------------------------------- */
.navbar {
    background-color: white !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    /* Ajoutez ici d'autres styles globaux de la navbar (position: fixed, width: 100%) */
}
.nav-link { color: var(--text-dark) !important; }
.nav-link:hover { color: var(--primary) !important; }
.logo-box { background: var(--primary) !important; color: white !important; }
.logo-text h1 { color: var(--primary) !important; }
.logo-text span { color: var(--text-gray) !important; }
.btn-login { color: var(--primary) !important; border-color: rgba(14, 76, 146, 0.2) !important; }
.btn-register { background: var(--primary) !important; color: white !important; }
.bar { background-color: var(--text-dark) !important; }

/* ------------------------------------------------------------------- */
/* 2. STYLE GLOBAL DES PAGES D'AUTHENTIFICATION */
/* ------------------------------------------------------------------- */

.auth-page-wrapper {
    /* Fond esthétique */
    background-image: url('https://images.unsplash.com/photo-1576091160399-112dec8d17cc?q=80&w=1974&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    background-blend-mode: lighten;
    background-color: rgba(240, 242, 245, 0.9);
    min-height: 100vh;
    width: 100%;
    /* Ajout de la marge pour TOUTES les pages d'auth/public */
    padding-top: 80px; /* Laisse de l'espace pour la Navbar fixe */
}

.register-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 15px;
}

/* [Le reste des styles du formulaire va ici : .register-card, .form-control-custom, etc.] */
/* ... Collez ici tous les styles de formulaire que vous aviez dans le bloc <style> ... */

/* Voici un extrait crucial : */
.register-card { /* La carte de login/register */
    background: white; max-width: 500px; border-radius: 15px; box-shadow: 0 15px 35px rgba(0,0,0,0.25); overflow: hidden;
}
.card-header-custom { /* L'entête bleu */
    background: linear-gradient(135deg, var(--primary) 0%, #0043a8 100%); color: white; text-align: center; padding: 30px 20px;
}

/* ... [ETC. Collez tous les styles du formulaire ici] ... */
