/* ============================================================
   DESIGN SYSTEM - DIGITAL LEARNING (Version Finale)
   ============================================================ */

:root {
    --primary-blue: #00acee;    /* Bleu du logo et bouton */
    --soft-bg: #f0fdfa;       /* Fond menthe très clair du site */
    --text-dark: #1e293b;     /* Couleur de texte lisible */
    --border-gray: #cbd5e1;
}

/* Base */
body {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--soft-bg);
    margin: 0;
    padding: 10px;
    display: flex;
    justify-content: center;
    color: var(--text-dark);
}

.container {
    background: white;
    width: 100%;
    max-width: 480px;
    padding: 25px;
    border-radius: 24px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    box-sizing: border-box;
}

/* Header & Logo */
.header {
    text-align: center;
    margin-bottom: 20px;
}

.logo {
    max-width: 180px;
    height: auto;
}

.step-title {
    text-align: center;
    font-weight: 700;
    color: #64748b;
    margin-bottom: 20px;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Grille du Formulaire */
.form-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.question-block {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dark);
}

/* Inputs et Selects - Correction fond BLANC */
input, select {
    height: 42px;
    padding: 0 12px;
    border: 1px solid var(--border-gray);
    border-radius: 10px;
    font-size: 0.95rem;
    background-color: #ffffff !important; /* Force le fond blanc */
    color: var(--text-dark);
    width: 100%;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

input:focus, select:focus {
    border-color: var(--primary-blue);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 172, 238, 0.1);
}

/* Style spécifique Téléphone (Image 1) */
.iti { width: 100%; }
.iti input {
    width: 100% !important;
    padding-left: 90px !important; /* Espace pour le drapeau */
    border: 2px solid var(--primary-blue) !important; /* Bordure bleue distinctive */
    background-color: #ffffff !important;
}

/* Zone Légale */
.legal-section {
    margin-top: 15px;
    padding: 15px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

/* Correction Clic Case à Cocher */
.checkbox-line {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
    cursor: pointer;
    position: relative;
}

.checkbox-line input[type="checkbox"] {
    width: 22px !important;
    height: 22px !important;
    min-width: 22px;
    margin: 0;
    cursor: pointer;
    z-index: 2; /* S'assure que la case est cliquable */
}

.checkbox-line label {
    cursor: pointer;
    font-size: 0.85rem;
    line-height: 1.3;
    font-weight: 700;
    color: #0f172a;
}

/* Texte Juridique complet */
.legal-text {
    font-size: 0.72rem;
    color: #64748b;
    line-height: 1.4;
}

.legal-text p {
    margin: 0 0 8px 0;
}

/* ReCAPTCHA */
.captcha-flex {
    display: flex;
    justify-content: center;
    margin: 15px 0;
    transform: scale(0.85); /* Compact pour gagner de la place */
}

/* Bouton Suivant */
.btn-next {
    width: 100%;
    background-color: var(--primary-blue);
    color: white;
    border: none;
    padding: 14px;
    border-radius: 50px;
    font-size: 1.05rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
    box-shadow: 0 4px 12px rgba(0, 172, 238, 0.2);
}

.btn-next:hover {
    background-color: #0096d1;
    transform: translateY(-1px);
}

.btn-next:active {
    transform: translateY(0);
}

.btn-next:disabled {
    background-color: #cbd5e1;
    cursor: not-allowed;
}

/* Responsive Mobile */
@media (max-width: 400px) {
    .container {
        padding: 15px;
    }
    .captcha-flex {
        transform: scale(0.75);
    }
}