/* --- RESET & POLICE --- */
* { 
    box-sizing: border-box; 
    margin: 0; 
    padding: 0; 
}

body { 
    font-family: 'Montserrat', sans-serif; 
    background: #0b0d17; 
    color: white; 
    overflow-x: hidden;
}

/* --- HEADER --- */
.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    position: absolute;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.logo { 
    font-weight: 900; 
    font-size: 1.6rem; 
    letter-spacing: 2px; 
}

.logo span { color: #d90429; }

nav ul { 
    display: flex; 
    list-style: none; 
    gap: 30px; 
}

nav a { 
    text-decoration: none; 
    color: white; 
    font-weight: 600; 
    font-size: 0.85rem; 
    text-transform: uppercase; 
    transition: 0.3s;
}

nav a:hover { color: #d90429; }

.btn-login {
    border: 2px solid #d90429;
    padding: 10px 25px;
    border-radius: 5px;
    color: white;
    text-decoration: none;
    font-weight: 800;
    text-transform: uppercase;
    transition: 0.3s;
}

.btn-login:hover { background: #d90429; }

/* --- HERO SECTION --- */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 800px;
    display: flex;
    align-items: center;
    background: url('https://images.unsplash.com/photo-1516541196182-6bdb0516ed27?q=80&w=2000') center/cover no-repeat;
}

.overlay {
    position: absolute;
    inset: 0;
    /* Dégradé plus sombre pour garantir la lisibilité du texte blanc */
    background: linear-gradient(90deg, rgba(11, 13, 23, 0.95) 20%, rgba(11, 13, 23, 0.4) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 50px;
}

/* TEXTE GAUCHE */
.hero-text { flex: 1; }

.hero-text h1 { 
    font-size: 3.8rem; 
    font-weight: 900; 
    line-height: 1.1; 
    text-transform: uppercase;
    text-shadow: 0 4px 15px rgba(0,0,0,0.5);
}

.hero-text h1 span { color: #d90429; display: block; }

.hero-text p { 
    font-size: 1.1rem; 
    color: #ced4da; 
    margin: 25px 0; 
    max-width: 520px; 
    line-height: 1.6; 
}

.hero-stats { display: flex; gap: 40px; margin-top: 40px; }

.hero-stats span { font-size: 0.8rem; color: #888; text-transform: uppercase; font-weight: bold; }

.hero-stats strong { 
    display: block; 
    font-size: 1.8rem; 
    color: white; 
}

/* FORMULAIRE DROITE (GLASS FORM) */
.glass-form {
    background: rgba(15, 17, 26, 0.7); /* Plus sombre pour la lisibilité */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
    max-width: 460px; /* Taille optimale pour éviter le débordement */
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.glass-form h3 { 
    text-align: center; 
    margin-bottom: 30px; 
    font-weight: 900; 
    letter-spacing: 1px;
    color: white;
}

/* Gestion des inputs */
.input-row { 
    display: flex; 
    gap: 12px; 
    margin-bottom: 15px;
}

/* Force les inputs Nom et Prénom à rester côte à côte proprement */
.input-row input { 
    flex: 1; 
    min-width: 0; 
}

input {
    width: 100%;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 14px 18px;
    color: white;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.95rem;
    transition: 0.3s;
}

input:focus {
    outline: none;
    border-color: #d90429;
    background: rgba(0, 0, 0, 0.7);
}

.btn-submit {
    background: #d90429;
    color: white;
    border: none;
    padding: 18px;
    width: 100%;
    border-radius: 8px;
    font-weight: 900;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: 0.3s;
    margin-top: 10px;
}

.btn-submit:hover { 
    background: #ef233c; 
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(217, 4, 41, 0.3);
}

/* --- FOOTER --- */
.main-footer {
    background: #06070a;
    padding: 70px 5% 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 50px;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-col h4 { font-weight: 900; margin-bottom: 20px; }
.footer-col h4 span { color: #d90429; }
.footer-col h5 { text-transform: uppercase; margin-bottom: 20px; font-size: 0.9rem; color: #fff; }
.footer-col p { color: #666; line-height: 1.5; font-size: 0.9rem; }

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 12px; }
.footer-col a { text-decoration: none; color: #666; transition: 0.3s; font-size: 0.85rem; }
.footer-col a:hover { color: #d90429; }

.footer-bottom {
    text-align: center;
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: #444;
    font-size: 0.8rem;
}






/* --- STYLE PAGE CONNEXION --- */
.auth-hero {
    background: url('https://images.unsplash.com/photo-1582281227203-21966579601d?q=80&w=2000') center/cover no-repeat !important;
}

.auth-content {
    justify-content: center !important; /* Centre le formulaire au milieu */
}

.login-box h3 span {
    color: #d90429;
}

.input-group {
    margin-bottom: 20px;
    text-align: left;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #adb5bd;
    text-transform: uppercase;
}

.auth-footer {
    margin-top: 25px;
    text-align: center;
    font-size: 0.9rem;
}

.auth-footer a {
    color: #d90429;
    text-decoration: none;
    font-weight: bold;
}

.auth-footer a:hover {
    text-decoration: underline;
}