/* ============================================================
   LANDING PAGE ESBAACE - DESIGN IMMERSIF & CONVERSION
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;600;700&display=swap');

:root {
    --glass-bg: rgba(255, 255, 255, 0.9);
    --glass-border: rgba(255, 255, 255, 0.3);
}

html, body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: #f0f4f0;
}

/* --- HEADER --- */
header {
    background: #fff;
    padding: 10px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

header h3 img {
    height: 45px;
    width: auto;
}

header .login-link {
    background: var(--primary-color);
    color: #fff;
    padding: 10px 22px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

header .login-link:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

/* --- SECTION CENTRALE (HERO SECTION) --- */
.centre_page {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    padding: 60px 5%;
    min-height: calc(100vh - 140px);
    background: linear-gradient(rgba(0,0,0,0.2), rgba(0,0,0,0.2)), 
                url('/assets/img/login_fond_ecran.png') no-repeat center center;
    background-size: cover;
    background-attachment: fixed;
}

/* --- BLOC TEXTE BIENVENUE --- */
.text_main {
    flex: 1;
    max-width: 600px;
    padding: 40px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.text_main h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--secondary-color);
    margin-bottom: 20px;
    line-height: 1.2;
}

.text_main p {
    font-size: 1.1rem;
    color: #444;
    line-height: 1.6;
}

/* --- STYLE DES PUCES PERSONNALISÉES --- */
.text_main ul {
    margin: 25px 0;
    padding-left: 0;
    list-style: none; /* On enlève les points noirs par défaut */
}

.text_main ul li {
    position: relative;
    padding: 10px 0 10px 35px; /* Espace pour l'icône à gauche */
    display: block;
    font-weight: 600;
    color: var(--text-main);
    line-height: 1.4;
}

.text_main ul li::before {
    content: "\f00c"; /* Code FontAwesome pour la coche */
    font-family: "Font Awesome 6 Free"; /* Doit correspondre exactement à la version chargée */
    font-weight: 900; /* Requis pour les icônes "Solid" */
    color: var(--primary-color);
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.1rem;
    background: var(--primary-glow); /* Petit fond léger derrière l'icône */
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.text_main .metier {
    font-style: italic;
    color: var(--primary-color);
    font-size: 0.9rem;
}

/* --- BLOC DERNIÈRES OFFRES & CONNEXION --- */
.latest-offers, .connexion {
    width: 400px;
    background: #fff;
    border-radius: 30px;
    padding: 30px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.2);
    height: 570px;
    display: flex;
    flex-direction: column;
}

.latest-offers h2 {
    font-size: 1.5rem;
    color: var(--text-main);
    margin-bottom: 20px;
    text-align: center;
}

/* Scrollbar personnalisée pour les offres */
.latest-offers { overflow-y: auto; }
.latest-offers::-webkit-scrollbar { width: 5px; }
.latest-offers::-webkit-scrollbar-thumb { background: var(--primary-color); border-radius: 10px; }

.offer-item {
    background: #f9fbf9;
    border: 1px solid #edf2ed;
    border-radius: 16px;
    padding: 15px;
    margin-bottom: 12px;
    transition: all 0.3s ease;
}

.offer-item h3 {
    font-size: 1.1rem;
    color: var(--secondary-color);
    margin: 0 0 5px 0;
}

.offer-item .type {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
    margin-bottom: 10px;
}

.offer-item .description {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.4;
}

/* --- FORMULAIRE DE CONNEXION --- */
.connexion fieldset {
    border: none !important;
}

.connexion fieldset legend {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--secondary-color);
    margin-bottom: 30px;
}

.form-group input {
    width: 100%;
    padding: 14px;
    background: #f4f7f4;
    border: 2px solid transparent;
    border-radius: 12px;
    font-size: 1rem;
    transition: 0.3s;
}

.form-group input:focus {
    background: #fff;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px var(--primary-glow);
}

.bouton_connect {
    background: var(--primary-color);
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
    padding: 16px;
    border-radius: 12px;
    box-shadow: 0 8px 20px var(--primary-glow);
    margin-top: 20px;
}

/* --- FOOTER --- */
footer {
    background: #fff;
    padding: 40px 5%;
    text-align: center;
    border-top: 1px solid #eee;
}

footer a {
    color: var(--text-muted);
    margin: 0 15px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: 0.3s;
}

footer a:hover { color: var(--primary-color); }

.copyright {
    display: block;
    margin-top: 20px;
    font-size: 0.8rem;
    color: #bbb;
}

/* --- RESPONSIVE MOBILE --- */
@media (max-width: 992px) {
    .centre_page { flex-direction: column; padding: 40px 20px; }
    .text_main, .latest-offers, .connexion { width: 100%; max-width: 100%; height: auto; }
}

@media (max-width: 600px) {
    .text_main h2 { font-size: 1.8rem; }
    .text_main { padding: 25px; }
	.text_main ul li {
        font-size: 0.95rem;
        padding-left: 30px;
    }
    
    .text_main ul li::before {
        width: 20px;
        height: 20px;
        font-size: 0.6rem;
    }
}

/* --- 1. STYLISATION DES LIENS D'ACTION (BOUTONS SECONDAIRES) --- */

.reset-password, .inscription {
    margin-top: 20px;
    text-align: center;
}

/* On transforme les liens en "Text Buttons" modernes */
.reset-password a, .inscription a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: inline-block;
}

.reset-password a:hover, .inscription a:hover {
    background: var(--primary-glow);
    color: var(--hover-color);
}

/* Style spécifique pour "Créez votre compte" pour le faire ressortir */
.inscription {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

.inscription a {
    background: var(--main-bg);
    border: 1px solid var(--border-color);
    width: 100%; /* Prend toute la largeur dans la card */
    box-sizing: border-box;
}

.inscription a:hover {
    border-color: var(--primary-color);
    transform: translateY(-1px);
}

/* --- 2. OPTIMISATION HAUTEUR MOBILE (LATEST-OFFERS) --- */

@media (max-width: 768px) {
    .latest-offers {
        height: auto !important;
        max-height: 400px; /* Hauteur réduite pour éviter trop de scroll */
        padding: 20px;
    }
    
    .latest-offers h2 {
        font-size: 1.3rem;
        margin-bottom: 15px;
    }

    /* On réduit un peu la taille des items pour gagner de la place */
    .offer-item {
        padding: 12px;
    }

    .offer-item h3 {
        font-size: 1rem;
    }
}

/* --- 3. FIX ERREUR (ALIGNEMENT) --- */
.erreur {
    background: #fff5f5;
    color: #e53e3e;
    padding: 10px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    border-left: 4px solid #e53e3e;
    margin-top: 15px;
}