/* ============================================================
   SIHATI.DZ - STYLE "PUREMENT MÉDICAL" (SANS IMAGES)
   ============================================================ */

:root {
    --primary: #0077b6;         /* Bleu Médical */
    --secondary: #00b386;       /* Vert Santé */
    --accent-light: #e6fffa;    /* Nuance de vert pour le wow */
    --text-dark: #2c3e50;
    --text-soft: #7f8c8d;
    --bg-body: #f8fafc;
    --white: #ffffff;
}

* {
    margin: 0; padding: 0; box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: var(--bg-body);
    color: var(--text-dark);
}

/* ===================== SELECTEUR DE TYPE (PROFESSION) ===================== */
.type-user {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 30px 0;
}

.type-user label {
    background: var(--white);
    padding: 15px 25px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 700;
    transition: all 0.4s ease;
    border: 2px solid #edf2f7;
    color: var(--text-soft);
    display: flex;
    align-items: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}

/* Effet quand on coche le type de user */
.type-user label:has(input:checked) {
    background: var(--secondary);
    color: white;
    border-color: var(--secondary);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 179, 134, 0.2);
}

.type-user input { margin-right: 10px; accent-color: var(--secondary); }

/* ===================== CONTENEUR PRINCIPAL ===================== */
.box {
    max-width: 1000px;
    margin: 0 auto 50px;
    padding: 20px;
}

.remplir {
    text-align: center;
    margin-bottom: 30px;
}

.remplir P {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -1px;
}

/* ===================== LE FORMULAIRE (ESP) ===================== */
.esp {
    background: var(--white);
    border-radius: 40px;
    padding: 50px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.04);
    display: flex;
    flex-direction: column;
    /* CHANGE ICI : On utilise stretch pour que les inputs occupent toute la largeur */
    align-items: stretch; 
}

.form {
    width: 100%;
    max-width: 700px; /* Plus centré et élégant */
}

.P {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 20px 0 10px 5px;
}

.nom {
    width: 100%;
    height: 60px;
    background: #f1f5f9;
    border: 2px solid transparent;
    border-radius: 18px; /* Bordure douce */
    padding: 0 20px;
    font-size: 1rem;
    color: var(--text-dark);
    transition: all 0.3s ease;
}

.nom:focus {
    outline: none;
    border-color: var(--secondary);
    background: var(--white);
    box-shadow: 0 10px 20px rgba(0, 179, 134, 0.05);
}

/* ===================== EFFET WOW SUR LA CARTE ===================== */
/* On ajoute une nuance de fond juste derrière la carte */
.form > .P:nth-of-type(6) {
    background: var(--accent-light);
    display: inline-block;
    padding: 5px 15px;
    border-radius: 10px;
    color: var(--secondary);
    margin-top: 30px;
}

#mapInscriptionPharma, #mapInscriptionMedecin, #mapInscriptionInfirmier {
    width: 100% !important;
    height: 350px !important;
    border-radius: 25px !important; /* Wow : très arrondi */
    border: 4px solid var(--white);
    box-shadow: 0 15px 35px rgba(0, 179, 134, 0.15); /* Ombre verte pour le wow */
    margin: 15px 0 30px;
    transition: transform 0.3s ease;
}

#mapInscriptionPharma:hover {
    transform: scale(1.01);
}

/* ===================== FICHIERS & BOUTON ===================== */
.registre, .image {
    width: 100%;
    padding: 15px;
    background: #f8fafc;
    border: 2px dashed #cbd5e1;
    border-radius: 15px;
    margin-bottom: 10px;
}

.btn {
    width: 100%;
    height: 65px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    border-radius: 20px;
    font-size: 1.2rem;
    font-weight: 800;
    cursor: pointer;
    margin-top: 30px;
    transition: all 0.4s ease;
    box-shadow: 0 10px 20px rgba(0, 119, 182, 0.2);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0, 179, 134, 0.3);
}

/* Alert Info */
.info-alert {
    background-color: #fff9eb;
    border: 1px solid #fbd38d;
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 30px;
}

/* Cacher l'ancienne box2 qui contenait les images */
.box2 {
    display: none;
}

/* ============================================================
   OPTIMISATION MOBILE (PHARMA & PRO REGISTRATION)
   ============================================================ */

@media (max-width: 768px) {
    .box {
        padding: 10px; /* Plus d'espace sur les bords de l'écran */
    }

    .remplir P {
        font-size: 1.5rem; /* Titre plus court */
    }

    .esp {
        padding: 25px 15px; /* On respire sur les côtés */
        border-radius: 25px;
    }

    /* Type de user : On garde des boutons compacts */
    .type-user {
        gap: 10px;
    }

    .type-user label {
        padding: 12px 15px;
        font-size: 0.9rem;
        justify-content: center;
    }

    /* La Carte : On réduit la hauteur pour laisser l'utilisateur scroller */
    #mapInscriptionPharma, 
    #mapInscriptionMedecin, 
    #mapInscriptionInfirmier,
    .map-style {
        height: 250px !important; 
        border-radius: 15px !important;
    }

    .btn {
        height: 55px;
        font-size: 1rem;
    }

    .info-alert {
        padding: 15px;
        font-size: 0.85rem;
    }
}
/* Effet Wow pour la carte */
.wow-map-section {
    background: #f0fdfa;
    padding: 20px;
    border-radius: 30px;
    margin: 20px 0;
    border: 1px solid #ccfbf1;
}

.map-style {
    width: 100%;
    height: 350px;
    border-radius: 20px;
    border: 4px solid white;
    box-shadow: 0 10px 30px rgba(0, 179, 134, 0.1);
}

.P_wow {
    color: #0d9488;
    font-weight: bold;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

/* Alerte info soft */
.info-alert {
    display: flex;
    align-items: center;
    gap: 15px;
    background: #fffbeb;
    color: #92400e;
    padding: 20px;
    border-radius: 20px;
    border: 1px solid #fde68a;
    margin-bottom: 30px;
}
.form {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
/* Quand la direction est RTL (Arabe) */
    [dir="rtl"] .esp {
    align-items: stretch; /* Pour que les inputs prennent toute la largeur */
}

[dir="rtl"] .type-user input {
    margin-right: 0;
    margin-left: 10px; /* On inverse la marge du bouton radio */
}

[dir="rtl"] .info-alert {
    flex-direction: row-reverse;
    text-align: right;
}

[dir="rtl"] .registre, [dir="rtl"] .image {
    text-align: right;
}
.zone-preview img {
    max-width: 120px;
    height: auto;
    border: 2px solid #2ecc71;
    border-radius: 5px;
    margin-top: 10px;
    display: block;
}

[id^="prev_"] {
    min-height: 5px; /* Évite les sauts de page brusques */
}

/* Style pour le bouton de géolocalisation */
.leaflet-control-custom {
    background-color: white;
    border: 2px solid rgba(0,0,0,0.2);
    border-radius: 4px;
    box-shadow: none;
    cursor: pointer;
}

.leaflet-control-custom:hover {
    background-color: #f4f4f4;
}

/* Ajustement de la barre de recherche pour mobile */
.leaflet-control-geocoder {
    border-radius: 4px;
    box-shadow: 0 1px 5px rgba(0,0,0,0.4) !important;
}

/* Éviter que la carte ne dépasse sur les petits écrans */
@media (max-width: 600px) {
    .leaflet-control-geocoder-form input {
        width: 150px !important; /* Réduit la largeur pour ne pas masquer toute la carte */
    }
}

/* Pour que l'icône de recherche soit bien centrée */
/* ============================================================
   AJUSTEMENTS MULTI-STEPS PRO
   ============================================================ */

.step-container { 
    width: 100%; 
    max-width: 500px; /* Plus compact pour le focus */
    margin: 0 auto 50px; 
}

.step-bar { 
    display: flex; 
    justify-content: space-between; 
    position: relative; 
    margin-bottom: 15px; 
    z-index: 1;
}

/* La ligne de fond */
.step-bar::before { 
    content: ""; 
    background: #e2e8f0; 
    height: 4px; 
    width: 100%;
    position: absolute; 
    top: 50%; 
    transform: translateY(-50%); 
    z-index: -1;
}

.step-progress { 
    background: var(--primary); 
    height: 4px; 
    width: 0%; /* Piloté par le JS */
    position: absolute; 
    top: 50%; 
    transform: translateY(-50%); 
    z-index: -1;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.step-circle {
    width: 45px; 
    height: 45px; 
    background: var(--white); 
    border: 3px solid #e2e8f0;
    border-radius: 50%; 
    display: flex; 
    align-items: center; 
    justify-content: center;
    font-weight: 700; 
    transition: all 0.4s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.step-circle.active { 
    border-color: var(--primary); 
    color: var(--primary); 
    transform: scale(1.15); 
    background: var(--white);
    box-shadow: 0 0 15px rgba(0, 119, 182, 0.2);
}

.step-circle.finish { 
    background: var(--primary); 
    border-color: var(--primary); 
    color: white; 
}

.step-labels { 
    display: flex; 
    justify-content: space-between; 
    padding: 0 5px;
}

.step-labels span {
    font-size: 0.8rem; 
    color: var(--text-soft);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    width: 80px; /* Aligne le texte sous les cercles */
    text-align: center;
}

/* Animation de transition entre les étapes */
.step-content { 
    display: none; 
    width: 100%; 
}

.step-content.active { 
    display: block; 
    animation: stepFadeIn 0.5s ease forwards; 
}

@keyframes stepFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
/* Pour que les groupes Nom/Prénom ne flottent pas au milieu */
.step-content .flex-row {
    display: flex !important;
    flex-direction: row !important;
    gap: 15px !important;
    width: 100%;
    margin-bottom: 0;
}

.step-content .flex-row > div {
    flex: 1; /* Force les deux colonnes à avoir la même largeur */
}
/* Style des boutons de navigation (Suivant / Précédent) */
.step-buttons {
    display: flex;
    gap: 15px;
    margin-top: 40px;
    width: 100%;
}

.btn-prev {
    background: #f1f5f9;
    color: var(--text-dark);
    border: 1px solid #e2e8f0;
    flex: 1;
}

.btn-prev:hover {
    background: #e2e8f0;
    transform: translateY(-2px);
}

.btn-next {
    flex: 2; /* Le bouton suivant est plus large/important */
}

/* Support RTL pour la barre de progression */
[dir="rtl"] .step-progress {
    right: 0;
    left: auto;
}

/* Optimisation mobile pour la barre */
@media (max-width: 480px) {
    .step-circle {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    .step-labels span {
        font-size: 0.7rem;
        width: 60px;
    }
}
.password-container {
    position: relative;
    width: 100%;
}

.password-container input {
    width: 100%;
    padding-right: 40px; /* Espace pour l'icône */
}

.toggle-password {
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    cursor: pointer;
    color: #666;
    z-index: 10;
}

/* Ajustement pour le mode RTL (Arabe) */
[dir="rtl"] .toggle-password {
    right: auto;
    left: 15px;
}
/* 1. Aligner les champs Nom/Prénom sur une seule ligne */
.step-content div[style*="display: flex"] {
    gap: 15px !important; /* Espace entre les deux champs */
    margin-bottom: 10px;
}

/* 2. Style pour le sélecteur de Sexe (Médecin/Infirmier) */
.gender-container {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    background: #f9f9f9;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid #eee;
    justify-content: space-around;
}

.gender-container label {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    color: #555;
    transition: color 0.3s;
}

.gender-container input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: #009688; /* Couleur verte pour correspondre à ton thème */
    cursor: pointer;
}

.gender-container label:hover {
    color: #009688;
}

/* 3. Ajustement pour Mobile (Empiler les noms sur petit écran) */
@media (max-width: 600px) {
    .step-content div[style*="display: flex"] {
        flex-direction: column !important;
        gap: 0 !important;
    }
    
    .gender-container {
        flex-direction: row; /* On garde le sexe côte à côte même sur mobile */
    }
}

/* 4. Harmonisation des labels de fichiers */
.file-upload-wrapper {
    margin-bottom: 15px;
}

.zone-preview img {
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    border: 1px solid #ddd;
}
.trust-footer {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #edf2f7;
    text-align: center;
    width: 100%;
}

.trust-footer p {
    color: var(--text-soft);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.trust-footer p i {
    color: var(--secondary); /* Ton vert santé */
    font-size: 1rem;
}
/* Adaptation pour le mode Arabe */
[dir="rtl"] .trust-footer p {
    flex-direction: row-reverse;
}
/* ============================================================
   SIHATI.DZ - AMÉLIORATIONS "ELITE MEDICAL" (STYLE DOCTOLIB)
   ============================================================ */

/* 1. Élevation subtile du conteneur (Glassmorphism léger) */
.esp {
    border: 1px solid rgba(226, 232, 240, 0.6);
    box-shadow: 0 10px 40px rgba(44, 62, 80, 0.05);
    background: linear-gradient(to bottom, #ffffff, #fcfdfe);
}

/* 2. Modernisation des inputs (Focus Pro) */
.nom {
    border: 2px solid #e2e8f0;
    background: #ffffff;
    font-size: 0.95rem;
}

.nom:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(0, 119, 182, 0.08);
}

/* 3. Sélecteurs de profession interactifs */
.type-user label {
    border: 2px solid #f1f5f9;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.type-user label:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: #fff;
}

.type-user label:has(input:checked) {
    background: var(--primary); /* Switch vers bleu pour un look plus institutionnel */
    border-color: var(--primary);
    box-shadow: 0 8px 20px rgba(0, 119, 182, 0.2);
}

/* 4. Bouton d'action avec effet "Glint" (Reflet) */
.btn {
    position: relative;
    overflow: hidden;
    letter-spacing: 0.5px;
    background: linear-gradient(135deg, var(--primary) 0%, #005a8d 100%);
    box-shadow: 0 4px 15px rgba(0, 119, 182, 0.25);
}

.btn::after {
    content: '';
    position: absolute;
    top: -50%; left: -60%;
    width: 20%; height: 200%;
    background: rgba(255, 255, 255, 0.15);
    transform: rotate(30deg);
    transition: 0.5s;
}

.btn:hover::after {
    left: 120%;
}

/* 5. Harmonisation des Cartes Leaflet */
[id^="mapInscription"] {
    border: 1px solid #e2e8f0 !important;
    filter: drop-shadow(0 5px 15px rgba(0,0,0,0.03));
    transition: all 0.3s ease;
}

/* 6. Barre de progression "Fluid-Design" */
.step-circle {
    border-width: 2px;
}

.step-circle.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    box-shadow: 0 0 0 5px rgba(0, 119, 182, 0.1);
}

.step-progress {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
}

/* 7. Design des Alertes Trust */
.info-alert {
    border: none;
    border-left: 4px solid #f6ad55;
    background: #fffaf0;
    font-weight: 500;
}

/* 8. Micro-interactions sur les uploads */
.registre:hover, .image:hover {
    border-color: var(--secondary);
    background: #f0fdfa;
    cursor: pointer;
}

/* 9. Correction d'espacement pour les formulaires Kiné/Para */
.form {
    padding-bottom: 20px;
}

/* Animation de transition de page */
.step-content.active {
    animation: slideInCustom 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

@keyframes slideInCustom {
    0% { transform: translateY(15px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

/* 10. Pied de page (Trust Footer) raffiné */
.trust-footer {
    opacity: 0.8;
}

.trust-footer p {
    font-weight: 500;
}
/* Conteneur avec effet de verre et flou */
#otp_section {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px dashed rgba(0, 150, 136, 0.5);
    border-radius: 15px;
    padding: 20px;
    margin-top: 15px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
    animation: fadeInSlide 0.5s ease-out;
}

#otp_section label {
    font-size: 0.85rem;
    color: #00796b;
    font-weight: 600;
    margin-bottom: 12px;
    text-transform: uppercase;
}

/* Input style "Banque" avec chiffres espacés */
#otp_input {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 28px;
    font-weight: bold;
    letter-spacing: 15px; /* Espacement pro pour les 6 chiffres */
    text-align: center;
    color: #2874ce;
    height: 65px;
    width: 100%;
    transition: all 0.3s ease;
}

#otp_input:focus {
    border-color: #009688;
    box-shadow: 0 0 15px rgba(0, 150, 136, 0.2);
    outline: none;
}

/* Adaptabilité Mobile (Algérie/Smartphone) */
@media (max-width: 480px) {
    #otp_input {
        font-size: 22px;
        letter-spacing: 8px;
        height: 55px;
    }
}

/* Animations */
@keyframes fadeInSlide {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.otp-pulse { animation: borderPulse 2s infinite; }
@keyframes borderPulse {
    0%, 100% { border-color: rgba(0, 150, 136, 0.5); }
    50% { border-color: #2874ce; }
}
/* =======================================================
   OTP PREMIUM — EMAIL VERIFICATION WIDGET
   Design médical élite, support LTR + RTL
======================================================= */

/* ---- CONTENEUR PRINCIPAL OTP ---- */
.otp-glass-box {
    position: relative;
    background: linear-gradient(135deg,
        rgba(255,255,255,0.95) 0%,
        rgba(240,253,250,0.98) 100%
    );
    border: 1.5px solid rgba(0,179,134,0.25);
    border-radius: 20px;
    padding: 28px 28px 24px;
    margin-top: 18px;
    box-shadow:
        0 4px 6px rgba(0,0,0,0.02),
        0 20px 40px rgba(0,179,134,0.08),
        inset 0 1px 0 rgba(255,255,255,0.9);
    animation: otpSlideIn 0.45s cubic-bezier(0.34,1.56,0.64,1) both;
    overflow: hidden;
}

/* Bande couleur sur le côté */
.otp-glass-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #0077b6, #00b386);
    border-radius: 4px 0 0 4px;
}

[dir="rtl"] .otp-glass-box::before {
    left: auto;
    right: 0;
    border-radius: 0 4px 4px 0;
}

@keyframes otpSlideIn {
    from { opacity: 0; transform: translateY(-12px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ---- EN-TÊTE OTP ---- */
.otp-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}

[dir="rtl"] .otp-header {
    flex-direction: row-reverse;
}

.otp-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.88rem;
    font-weight: 700;
    color: #0077b6;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.otp-label i {
    font-size: 1rem;
    color: #00b386;
}

/* ---- TIMER ---- */
.otp-timer {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.88rem;
    font-weight: 700;
    padding: 5px 14px;
    border-radius: 50px;
    background: rgba(239,68,68,0.08);
    color: #ef4444;
    border: 1px solid rgba(239,68,68,0.2);
    transition: all 0.3s ease;
    white-space: nowrap;
}

.otp-timer.safe {
    background: rgba(0,179,134,0.08);
    color: #00b386;
    border-color: rgba(0,179,134,0.2);
}

.otp-timer i { font-size: 0.8rem; }

/* ---- INPUT 6 CHIFFRES ---- */
.otp-input-wrap {
    position: relative;
    margin-bottom: 16px;
}

.otp-code-input {
    width: 100% !important;
    height: 72px !important;
    font-size: 36px !important;
    font-weight: 900 !important;
    letter-spacing: 20px !important;
    text-align: center !important;
    color: #0077b6 !important;
    background: #f8fafc !important;
    border: 2px solid #e2e8f0 !important;
    border-radius: 16px !important;
    padding: 0 20px !important;
    transition: all 0.3s ease !important;
    font-family: 'Courier New', monospace !important;
    caret-color: #00b386;
    -webkit-text-security: none;
}

.otp-code-input:focus {
    border-color: #00b386 !important;
    background: #ffffff !important;
    box-shadow:
        0 0 0 4px rgba(0,179,134,0.12),
        0 8px 24px rgba(0,119,182,0.08) !important;
    outline: none !important;
}

.otp-code-input.error {
    border-color: #ef4444 !important;
    animation: otpShake 0.4s ease;
    box-shadow: 0 0 0 4px rgba(239,68,68,0.1) !important;
}

.otp-code-input.success {
    border-color: #00b386 !important;
    background: #f0fdf9 !important;
    box-shadow: 0 0 0 4px rgba(0,179,134,0.12) !important;
}

@keyframes otpShake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-8px); }
    40% { transform: translateX(8px); }
    60% { transform: translateX(-5px); }
    80% { transform: translateX(5px); }
}

/* Indicateur de saisie (6 points) */
.otp-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
}

.otp-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #e2e8f0;
    transition: all 0.2s ease;
}

.otp-dot.filled {
    background: #0077b6;
    transform: scale(1.2);
}

/* ---- SPAM NOTICE (dans le form) ---- */
.otp-spam-notice {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 14px;
}

[dir="rtl"] .otp-spam-notice {
    flex-direction: row-reverse;
    text-align: right;
}

.otp-spam-notice i {
    font-size: 1rem;
    color: #f59e0b;
    margin-top: 2px;
    flex-shrink: 0;
}

.otp-spam-notice span {
    font-size: 0.82rem;
    color: #92400e;
    line-height: 1.5;
    font-weight: 500;
}

.otp-spam-notice strong {
    color: #78350f;
    display: block;
    margin-bottom: 2px;
}

/* ---- BOUTON RENVOYER ---- */
.otp-resend-area {
    text-align: center;
    margin-top: 12px;
}

.btn-resend {
    background: none;
    border: none;
    color: #0077b6;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    padding: 6px 14px;
    border-radius: 8px;
    transition: all 0.2s ease;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.btn-resend:hover {
    background: rgba(0,119,182,0.06);
    text-decoration: none;
}

.btn-resend:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* ---- EMAIL VÉRIFIÉ (état succès) ---- */
.otp-verified-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
    border: 1.5px solid #86efac;
    border-radius: 14px;
    padding: 14px 20px;
    margin-top: 14px;
    animation: otpSlideIn 0.4s ease;
}

[dir="rtl"] .otp-verified-badge {
    flex-direction: row-reverse;
}

.otp-verified-badge i {
    font-size: 1.3rem;
    color: #16a34a;
}

.otp-verified-badge span {
    font-size: 0.9rem;
    font-weight: 700;
    color: #15803d;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 480px) {
    .otp-glass-box {
        padding: 20px 16px 18px;
    }

    .otp-code-input {
        height: 62px !important;
        font-size: 28px !important;
        letter-spacing: 14px !important;
    }

    .otp-header {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 8px !important;
    }

    [dir="rtl"] .otp-header {
        align-items: flex-end !important;
    }

    .otp-timer {
        align-self: flex-start;
    }
}

/* ---- ANIMATION PULSE SUR LE BOUTON SUIVANT QUAND PRÊT ---- */
.next-btn.email-ready {
    animation: readyPulse 2s ease-in-out infinite;
}

@keyframes readyPulse {
    0%, 100% { box-shadow: 0 4px 15px rgba(0,119,182,0.2); }
    50% { box-shadow: 0 8px 30px rgba(0,179,134,0.4); }
}
/* ============================================================
   FIX GLOBAL RESPONSIVE (RADIOS + FORMULAIRE + MOBILE)
   À COLLER À LA FIN DU CSS
============================================================ */

/* Empêche les débordements */
* {
    max-width: 100%;
}

/* Sécurité inputs dans flex */
.form {
    width: 100%;
    max-width: 100%;
}

.nom {
    width: 100%;
    min-width: 0;
}

/* ===================== RADIO (TYPE USER) ===================== */
@media (max-width: 768px) {

    .type-user {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

    .type-user label {
        flex: 1 1 45%;
        max-width: 45%;
        text-align: center;
        justify-content: center;
        padding: 12px;
        font-size: 0.85rem;
        border-radius: 15px;
    }

    .type-user input {
        transform: scale(1.1);
    }

    /* Form padding ajusté */
    .esp {
        padding: 20px 12px;
    }

    /* Inputs plus compacts */
    .nom {
        height: 50px;
        font-size: 0.9rem;
    }

    /* Bouton */
    .btn {
        height: 55px;
        font-size: 1rem;
    }

    /* FLEX ROW → colonne */
    .step-content .flex-row {
        flex-direction: column !important;
        gap: 10px !important;
    }
}

/* ===================== ULTRA MOBILE ===================== */
@media (max-width: 480px) {

    .type-user label {
        flex: 1 1 100%;
        max-width: 100%;
    }

    .remplir P {
        font-size: 1.3rem;
    }

    .esp {
        border-radius: 20px;
    }
}

/* Petit effet pro */
.type-user label:active {
    transform: scale(0.97);
}