/* --- VARIABLES --- */
:root {
    --primary-orange: #ff6600;
    --primary-hover: #e65c00;
    --text-dark: #333;
    --text-grey: #666;
    --bg-light: #f9f9f9;
    --input-bg-dark: #2c2c2c; /* COULEUR FONCÉE EXACTE DES CHAMPS */
    --input-text: #ffffff;    /* Texte blanc dans les champs */
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #ffffff;
    color: var(--text-dark);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }

/* --- HEADER & LOGO --- */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    background: white;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    display: flex;
    align-items: center;
}

/* 🚀 CORRECTION : Taille du logo ajustée pour ressembler à la photo 🚀 */
.logo-img {
    height: 30px; /* Réduit la hauteur pour correspondre à l'aperçu */
    width: auto;
    display: block;
}

.nav-buttons .btn-login {
    margin-right: 15px;
    font-weight: 600;
    color: #555;
    padding: 8px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.nav-buttons .btn-register {
    background-color: var(--primary-orange);
    color: white;
    padding: 9px 20px;
    border-radius: 4px;
    font-weight: 600;
}

/* --- STYLE DU TEXTE GRAS ORANGE (Pour "WeBuy" dans le paragraphe) --- */
.highlight-webuy {
    color: var(--primary-orange);
    font-weight: 800; /* Très gras */
}

/* --- PAGE D'ACCUEIL (HERO & CONTENU) --- */
main { flex: 1; }

.hero {
    text-align: center;
    padding: 60px 20px 40px 20px;
    max-width: 900px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3rem;
    color: #444;
    line-height: 1.2;
    margin-bottom: 20px;
    font-weight: 800;
}
.hero h1 span { color: var(--primary-orange); }

.hero p {
    color: var(--text-grey);
    font-size: 1.1rem;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    background-color: var(--primary-orange);
    color: white;
    padding: 12px 30px;
    font-size: 1rem;
    border-radius: 5px;
    font-weight: bold;
    display: inline-block;
}

/* Sections Avantages et Comment ça marche */
.section-title {
    text-align: center;
    font-size: 1.6rem;
    color: #333;
    font-weight: 700;
    margin: 50px 0 30px 0;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto 60px auto;
    padding: 0 20px;
}

.advantage-item {
    background: #fff;
    padding: 25px 15px;
    border: 1px dashed #ccc;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.2s;
}
.advantage-item:hover { border-color: var(--primary-orange); transform: translateY(-5px); }
.advantage-item img { height: 50px; margin-bottom: 15px; object-fit: contain; }
.advantage-title { font-size: 1rem; font-weight: 700; margin-bottom: 10px; }
.advantage-text { font-size: 0.85rem; color: #666; }

.how-it-works-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto 60px auto;
    padding: 0 20px;
    text-align: center;
}
.step-item img { height: 60px; margin-bottom: 15px; }
.step-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 10px; }
.step-text { font-size: 0.9rem; color: #666; }

.ready-section { text-align: center; padding: 40px 20px; margin-bottom: 40px; }
.ready-title { font-size: 1.4rem; font-weight: 700; margin-bottom: 15px; }
.ready-text { max-width: 600px; margin: 0 auto 30px auto; color: #777; }
.ready-cta-btn { color: #555; text-decoration: underline; font-weight: 600; }

/* --- FOOTER --- */
.footer-note {
    text-align: center;
    padding: 20px;
    border-top: 1px solid #eee;
    color: #999;
    font-size: 0.8rem;
    margin-top: auto;
}

/* =========================================
   CORRECTION LOGIN / REGISTER (Style Figma)
   ========================================= */

/* 1. Le conteneur principal pour centrer le tout */
.auth-container {
    display: flex;
    justify-content: center; /* Centre horizontalement */
    padding-top: 60px;       /* Espace depuis le haut */
    padding-bottom: 60px;
    width: 100%;
    background-color: #f9f9f9; /* Fond général gris clair */
    flex-grow: 1;
}

/* 2. La Carte Blanche Compacte */
.auth-card {
    background: white;
    width: 100%;
    max-width: 360px; /* Largeur COMPACTE comme sur la photo */
    padding: 35px 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08); /* Ombre légère */
    text-align: center;
    border: 1px solid #eee;
}

.auth-header h2 { color: #333; margin-bottom: 5px; font-size: 1.5rem; font-weight: 800; }
.auth-header p { color: #888; font-size: 0.9rem; margin-bottom: 25px; }

/* 3. Groupes de formulaire */
.form-group {
    margin-bottom: 15px;
    text-align: left;
}

.form-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: #555;
    margin-bottom: 6px;
    margin-left: 2px;
}

.input-wrapper { position: relative; }

/* 4. LES CHAMPS NOIRS (Comme sur la photo 4.jpg) */
.input-wrapper input {
    width: 100%;
    padding: 12px 15px 12px 40px; /* Espace à gauche pour l'icône */
    /* C'EST ICI : FOND GRIS FONCÉ/NOIR */
    background-color: var(--input-bg-dark); 
    color: var(--input-text); /* Texte BLANC */
    border: 1px solid transparent;
    border-radius: 8px;
    font-size: 0.9rem;
    outline: none;
    transition: border 0.3s;
}

.input-wrapper input::placeholder {
    color: #888; /* Placeholder gris clair */
}

.input-wrapper input:focus {
    border: 1px solid var(--primary-orange); /* Bordure orange au clic */
}

/* Icônes dans les champs (Gris clair sur fond noir) */
.input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #aaa; 
    font-size: 0.9rem;
}

.password-toggle {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #aaa;
    cursor: pointer;
}

/* Bouton Orange Large */
.btn-submit {
    width: 100%;
    padding: 12px;
    background-color: var(--primary-orange);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    margin-top: 15px;
    box-shadow: 0 4px 10px rgba(255, 102, 0, 0.2);
}
.btn-submit:hover { background-color: var(--primary-hover); }

.auth-footer { margin-top: 20px; font-size: 0.85rem; color: #666; }
.auth-footer a { color: var(--primary-orange); font-weight: bold; }
.terms { font-size: 0.7rem; color: #999; margin-top: 20px; line-height: 1.3; }
.terms a { color: var(--primary-orange); text-decoration: none; }

/* --- RESPONSIVE (MOBILE) --- */
@media (max-width: 768px) {
    .hero h1 { font-size: 2rem; }
    
    /* Grilles en 1 colonne sur mobile */
    .advantages-grid, .how-it-works-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .header { padding: 15px; }
    
    /* 🚀 MODIFICATION 1 : ESPACEMENT ET POSITIONNEMENT DES BOUTONS DU HEADER 🚀 */
    header { 
        padding-left: 15px;
        padding-right: 15px; 
    }
    
    .nav-buttons {
        /* Pousse les boutons à droite */
        margin-left: auto;
    }
    
    .nav-buttons .btn-login {
        /* Ajoute un espacement entre les deux boutons sur mobile */
        margin-right: 10px;
        padding: 7px 12px;
    }

    .nav-buttons .btn-register {
        /* Ajustement de la taille du bouton d'inscription sur mobile */
        padding: 7px 12px;
    }
    
    /* Ajustement Connexion Mobile */
    .auth-container { padding-top: 30px; align-items: flex-start; }
    .auth-card {
        max-width: 90%; /* Un peu plus large sur mobile */
        margin: 0 auto;
        padding: 25px 20px;
    }
}