/* ==========================================================================
   TAIBA STATIONERY — AUTH.CSS (CONNEXION, INSCRIPTION, COMPTE & ACTIVATION)
   Support : FR (LTR) + AR (RTL) + Responsive + Autofill Fix
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. VARIABLES LOCALES & RESET D'AUTOFILL
   -------------------------------------------------------------------------- */
:root {
    --auth-primary: #7b1113; 
    --auth-primary-hover: #d32f2f;
    --auth-bg-light: #f8fafc;
    --accent-color: #d99b26;
    --accent-light: #fef3c7;
    --auth-card-bg: #ffffff;
    --auth-text-dark: #1e293b;
    --auth-text-muted: #64748b;
    --auth-border-color: #e2e8f0;
    --auth-radius: 12px;
    --auth-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
}

/* Correction de la couleur jaune d'autofill Chrome/Edge/Safari */
input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus, 
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px #ffffff inset !important;
    -webkit-text-fill-color: var(--auth-text-dark) !important;
    transition: background-color 5000s ease-in-out 0s;
}


/* --------------------------------------------------------------------------
   2. STRUCTURE ET LAYOUT GLOBAL
   -------------------------------------------------------------------------- */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 25px;
    align-items: start;
}

.form-container,
.social-card,
.avantages-card {
    background: var(--auth-card-bg);
    border-radius: var(--auth-radius);
    padding: 32px;
    box-shadow: var(--auth-shadow);
    border: 1px solid var(--auth-border-color);
}


/* --------------------------------------------------------------------------
   3. ÉLÉMENTS COMMUNS (En-têtes & Alertes)
   -------------------------------------------------------------------------- */
.login-header, 
.inscription-header { 
    text-align: center; 
    margin-bottom: 25px; 
}

.login-icon { 
    font-size: 2.8rem; 
    color: var(--auth-primary); 
    margin-bottom: 10px; 
}

.login-header h2, 
.inscription-header h2 { 
    font-size: 1.35rem; 
    font-weight: 800; 
    color: var(--auth-text-dark); 
    margin-bottom: 6px; 
}

.login-header p, 
.inscription-header p { 
    color: var(--auth-text-muted); 
    font-size: 0.88rem; 
    margin: 0; 
}

/* Alertes */
.alert {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.88rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert ul { 
    margin: 0; 
}

[dir="rtl"] .alert ul { 
    padding-left: 0; 
}

[dir="rtl"] .fa-arrow-right { 
    transform: rotate(180deg); 
}

.alert-success { background-color: #d1e7dd; color: #0f5132; border: 1px solid #badbcc; }
.alert-danger { background-color: #f8d7da; color: #842029; border: 1px solid #f5c2c7; }
.alert-info { background-color: #cff4fc; color: #055160; border: 1px solid #b6effb; }


/* --------------------------------------------------------------------------
   4. COMPOSANTS DE FORMULAIRE & BOUTONS
   -------------------------------------------------------------------------- */
.form-row { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 16px; 
}

.form-group { 
    margin-bottom: 20px; 
}

.form-group label { 
    display: flex; 
    align-items: center; 
    gap: 8px; 
    font-size: 0.88rem; 
    font-weight: 700; 
    color: var(--auth-text-dark); 
    margin-bottom: 8px; 
}

.form-group label i { 
    color: var(--auth-primary); 
}

.required { 
    color: var(--auth-primary-hover); 
    margin-left: 2px; 
}

[dir="rtl"] .required { 
    margin-left: 0; 
    margin-right: 2px; 
}

/* Inputs généraux */
.form-control {
    width: 100%; 
    height: 46px; 
    padding: 10px 14px !important; 
    font-size: 0.95rem;
    border: 1px solid var(--auth-border-color); 
    border-radius: 8px;
    background-color: #ffffff; 
    color: var(--auth-text-dark);
    transition: all 0.2s ease; 
    box-sizing: border-box;
}

.form-control:focus { 
    outline: none; 
    border-color: var(--auth-primary); 
    box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.12); 
}

/* Select & Textarea */
select.form-control {
    appearance: none; 
    -webkit-appearance: none; 
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2064748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat; 
    background-position: right 14px center; 
    background-size: 16px;
    padding-right: 40px; 
    cursor: pointer;
}

[dir="rtl"] select.form-control { 
    background-position: left 14px center; 
    padding-right: 16px; 
    padding-left: 40px; 
}

select.form-control:disabled { 
    background-color: var(--auth-bg-light); 
    color: #94a3b8; 
    cursor: not-allowed; 
    border-color: var(--auth-border-color); 
}

textarea.form-control { 
    height: auto; 
    resize: vertical; 
    min-height: 80px; 
}

/* Texte d'aide sous les champs */
.form-text {
    font-size: 0.8rem;
    color: var(--auth-text-muted);
    margin-top: 5px;
    display: block;
    font-style: normal;
}

/* Mot de passe et Toggle */
.password-wrapper { 
    position: relative; 
    display: flex; 
    align-items: center; 
    width: 100%; 
}

.password-wrapper .form-control { 
    padding-right: 45px; 
}

[dir="rtl"] .password-wrapper .form-control { 
    padding-right: 16px; 
    padding-left: 45px; 
}

.toggle-password { 
    position: absolute; 
    right: 12px; 
    background: none; 
    border: none; 
    color: var(--auth-text-muted); 
    cursor: pointer; 
    padding: 8px; 
    font-size: 1rem; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    transition: color 0.2s ease; 
}

.toggle-password:hover { 
    color: var(--auth-text-dark); 
}

[dir="rtl"] .toggle-password { 
    right: auto; 
    left: 12px; 
}

/* Barre de force du mot de passe */
.password-strength { 
    margin-top: -10px; 
    margin-bottom: 15px; 
    display: flex; 
    flex-direction: column; 
    gap: 8px; 
}

.strength-bar { 
    height: 6px; 
    background-color: var(--auth-border-color); 
    border-radius: 4px; 
    overflow: hidden; 
    width: 100%; 
}

.strength-bar-fill { 
    height: 100%; 
    width: 0%; 
    transition: all 0.3s ease-in-out; 
    border-radius: 4px; 
    background-color: transparent; 
}

.strength-text { 
    font-size: 0.8rem; 
    font-weight: 700; 
    color: var(--auth-text-muted); 
    text-align: right; 
    transition: color 0.3s ease; 
}

[dir="rtl"] .strength-text { 
    text-align: left; 
}

/* Options (Se souvenir / Oublié) */
.form-options { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    margin-bottom: 25px; 
    font-size: 0.88rem; 
}

.form-check { 
    display: flex; 
    align-items: center; 
    gap: 8px; 
    cursor: pointer; 
}

.form-check-input { 
    width: 17px; 
    height: 17px; 
    cursor: pointer; 
    accent-color: var(--auth-primary); 
    border-radius: 4px; 
}

.form-check-label { 
    cursor: pointer; 
    color: var(--auth-text-dark); 
    font-weight: 500; 
}

.forgot-password-link { 
    color: var(--auth-primary); 
    text-decoration: none; 
    font-weight: 600; 
    transition: color 0.2s ease; 
}

.forgot-password-link:hover { 
    color: var(--auth-primary-hover); 
    text-decoration: underline; 
}

/* Boutons d'action */
.btn-submit-login, 
.btn-submit-reset {
    width: 100% !important; 
    height: 48px !important; 
    background-color: var(--auth-primary) !important;
    color: #ffffff !important; 
    border: none !important; 
    border-radius: 8px !important;
    font-size: 1rem !important; 
    font-weight: 700 !important; 
    cursor: pointer !important;
    display: flex !important; 
    align-items: center !important; 
    justify-content: center !important;
    gap: 10px !important; 
    box-shadow: 0 4px 12px rgba(211, 47, 47, 0.25) !important;
    transition: all 0.2s ease !important; 
    opacity: 1 !important; 
    visibility: visible !important;
}

.btn-submit-reset { 
    margin-top: 25px; 
}

.btn-submit-login:hover, 
.btn-submit-reset:hover { 
    background-color: var(--auth-primary-hover) !important; 
    box-shadow: 0 6px 15px rgba(183, 28, 28, 0.35) !important; 
}

.btn-submit-login:active, 
.btn-submit-reset:active { 
    transform: scale(0.99); 
}

/* Pied de formulaire */
.form-footer { 
    text-align: center; 
    margin-top: 20px; 
    font-size: 0.9rem; 
    color: var(--auth-text-muted); 
}

.form-footer a { 
    color: var(--auth-primary); 
    font-weight: 700; 
    text-decoration: none; 
}

.form-footer a:hover { 
    text-decoration: underline; 
}


/* --------------------------------------------------------------------------
   5. SIDEBARS (SOCIAUX & AVANTAGES)
   -------------------------------------------------------------------------- */
.social-card { 
    text-align: center; 
}

.social-card h3 { 
    font-size: 1.15rem; 
    font-weight: 800; 
    color: var(--auth-text-dark); 
    margin-bottom: 6px; 
}

.social-card p { 
    font-size: 0.85rem; 
    color: var(--auth-text-muted); 
    margin-bottom: 20px; 
}

.btn-social {
    display: flex; 
    align-items: center; 
    justify-content: center; 
    gap: 12px; 
    width: 100%; 
    height: 46px;
    border-radius: 8px; 
    border: 1px solid var(--auth-border-color); 
    background: #ffffff; 
    color: var(--auth-text-dark);
    text-decoration: none; 
    font-weight: 600; 
    font-size: 0.92rem; 
    transition: all 0.2s ease;
}

.btn-social:hover { 
    background-color: var(--auth-bg-light); 
    border-color: #cbd5e1; 
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05); 
}

.btn-social.google .social-icon { 
    display: flex; 
    align-items: center; 
}

/* Avantages Sidebar */
.avantages-card h3 { 
    font-size: 1.15rem; 
    font-weight: 800; 
    color: var(--auth-text-dark); 
    margin-bottom: 20px; 
    padding-bottom: 12px; 
    border-bottom: 2px solid var(--auth-bg-light); 
}

.avantage-item { 
    display: flex; 
    align-items: flex-start; 
    gap: 15px; 
    margin-bottom: 20px; 
}

.avantage-item:last-child { 
    margin-bottom: 0; 
}

.avantage-icon { 
    width: 42px; 
    height: 42px; 
    min-width: 42px; 
    background-color: rgba(123, 17, 19, 0.08); 
    border-radius: 10px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    color: var(--auth-primary); 
    font-size: 1.1rem; 
}

.avantage-content h4 { 
    font-size: 0.95rem; 
    font-weight: 700; 
    color: var(--auth-text-dark); 
    margin: 0 0 3px 0; 
}

.avantage-content p { 
    font-size: 0.82rem; 
    color: var(--auth-text-muted); 
    margin: 0; 
    line-height: 1.4; 
}


/* --------------------------------------------------------------------------
   6. PAGES SPÉCIFIQUES & ESPACE COMPTE
   -------------------------------------------------------------------------- */

/* A. PAGE VÉRIFICATION D'EMAIL */
.verification-email-section { padding: 40px 0; display: flex; justify-content: center; align-items: center; min-height: 80vh; }
.verification-content { max-width: 650px; margin: 0 auto; background: var(--auth-card-bg); padding: 40px 30px; border-radius: var(--auth-radius); box-shadow: var(--auth-shadow); border: 1px solid var(--auth-border-color); text-align: center; }
.verification-icon { position: relative; width: 80px; height: 80px; margin: 0 auto 24px; }
.verification-icon .icon-circle { width: 100%; height: 100%; background-color: rgba(123, 17, 19, 0.08); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 2.2rem; color: var(--auth-primary); }
.icon-check { position: absolute; bottom: -2px; right: -2px; width: 28px; height: 28px; background-color: #10b981; color: #ffffff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.85rem; border: 3px solid var(--auth-card-bg); }
[dir="rtl"] .icon-check { right: auto; left: -2px; }
.verification-title { font-size: 1.5rem; font-weight: 800; color: var(--auth-text-dark); margin-bottom: 12px; }
.verification-description { color: var(--auth-text-muted); font-size: 0.95rem; margin-bottom: 15px; }
.verification-email-box { display: inline-flex; align-items: center; gap: 10px; background-color: var(--auth-bg-light); border: 1px dashed var(--auth-border-color); padding: 10px 20px; border-radius: 8px; color: var(--auth-primary); font-size: 1rem; margin-bottom: 25px; word-break: break-all; }
.verification-steps { display: flex; align-items: center; justify-content: space-between; margin: 30px 0; padding: 20px 10px; background: var(--auth-bg-light); border-radius: 10px; }
.step-item { flex: 1; display: flex; flex-direction: column; align-items: center; text-align: center; }
.step-number { width: 44px; height: 44px; background: #ffffff; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--auth-primary); font-size: 1.1rem; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06); margin-bottom: 10px; }
.step-item h4 { font-size: 0.88rem; font-weight: 700; color: var(--auth-text-dark); margin: 0 0 4px 0; }
.step-item p { font-size: 0.78rem; color: var(--auth-text-muted); margin: 0; line-height: 1.3; }
.step-arrow { color: var(--auth-border-color); font-size: 1rem; padding: 0 5px; }
.verification-info { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 0.85rem; color: #b45309; background-color: #fef3c7; padding: 10px 16px; border-radius: 6px; margin-bottom: 30px; }
.verification-info p { margin: 0; }
.verification-actions { border-top: 1px solid var(--auth-border-color); padding-top: 25px; }
.resend-text { font-size: 0.9rem; color: var(--auth-text-muted); margin-bottom: 12px; }
.btn-resend { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background-color: transparent; color: var(--auth-primary); border: 2px solid var(--auth-primary); padding: 10px 22px; border-radius: var(--auth-radius); font-weight: 600; font-size: 0.9rem; cursor: pointer; transition: all 0.25s ease; }
.btn-resend:hover { background-color: var(--auth-primary); color: #ffffff; }

/* B. PAGE ACTIVATION DE COMPTE */
.activation-section { padding: 50px 0; display: flex; justify-content: center; align-items: center; min-height: 75vh; }
.activation-content { max-width: 680px; margin: 0 auto; background: var(--auth-card-bg); padding: 40px 32px; border-radius: var(--auth-radius); box-shadow: var(--auth-shadow); border: 1px solid var(--auth-border-color); text-align: center; }
.activation-icon.success { position: relative; width: 80px; height: 80px; margin: 0 auto 24px; }
.activation-icon.success .icon-circle { width: 100%; height: 100%; background-color: #ecfdf5; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 2.8rem; color: #10b981; box-shadow: 0 0 0 8px rgba(16, 185, 129, 0.1); }
.activation-title { font-size: 1.6rem; font-weight: 800; color: var(--auth-text-dark); margin-bottom: 12px; }
.activation-description { color: var(--auth-text-muted); font-size: 0.98rem; line-height: 1.6; margin-bottom: 25px; }
.activation-description strong { color: var(--auth-primary); }
.account-info-box { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; background-color: var(--auth-bg-light); border: 1px solid var(--auth-border-color); padding: 16px 20px; border-radius: 10px; margin-bottom: 32px; }
.info-item { display: flex; align-items: center; gap: 8px; font-size: 0.88rem; color: var(--auth-text-dark); font-weight: 600; }
.info-item i { color: var(--auth-primary); font-size: 0.95rem; }
.next-steps { margin-bottom: 32px; text-align: left; }
[dir="rtl"] .next-steps { text-align: right; }
.next-steps h3 { font-size: 1.05rem; font-weight: 700; color: var(--auth-text-dark); margin-bottom: 18px; text-align: center; }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.next-step-card { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 20px 14px; background: #ffffff; border: 1px solid var(--auth-border-color); border-radius: 10px; text-decoration: none; transition: all 0.25s ease; }
.next-step-card:hover { border-color: var(--auth-primary); transform: translateY(-3px); box-shadow: 0 8px 18px rgba(0, 0, 0, 0.06); }
.step-icon { width: 44px; height: 44px; background-color: rgba(123, 17, 19, 0.08); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--auth-primary); font-size: 1.15rem; margin-bottom: 12px; transition: all 0.25s ease; }
.next-step-card:hover .step-icon { background-color: var(--auth-primary); color: #ffffff; }
.next-step-card h4 { font-size: 0.88rem; font-weight: 700; color: var(--auth-text-dark); margin: 0 0 6px 0; }
.next-step-card p { font-size: 0.78rem; color: var(--auth-text-muted); margin: 0; line-height: 1.35; }
.activation-actions { border-top: 1px solid var(--auth-border-color); padding-top: 25px; }
.btn-continue { display: inline-flex; align-items: center; justify-content: center; gap: 10px; background-color: var(--auth-primary); color: #ffffff; padding: 12px 30px; border-radius: var(--auth-radius); font-weight: 700; font-size: 0.95rem; text-decoration: none; transition: all 0.25s ease; box-shadow: 0 4px 12px rgba(123, 17, 19, 0.2); }
.btn-continue:hover { background-color: var(--auth-primary-hover); color: #ffffff; transform: translateY(-1px); box-shadow: 0 6px 16px rgba(123, 17, 19, 0.3); }
[dir="rtl"] .btn-continue i { transform: rotate(180deg); }

/* C. PAGE MOT DE PASSE OUBLIÉ & RÉINITIALISATION */
.forgot-password-wrapper, 
.reset-password-wrapper { 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    padding: 0px 0 40px; 
}

.forgot-password-content, 
.reset-password-content { 
    max-width: 550px; 
    width: 100%; 
    margin: 0 auto; 
    background: var(--auth-card-bg); 
    padding: 40px 32px; 
    border-radius: var(--auth-radius); 
    box-shadow: var(--auth-shadow); 
    border: 1px solid var(--auth-border-color); 
    text-align: center; 
}

.forgot-icon, 
.reset-icon { 
    position: relative; 
    width: 80px; 
    height: 80px; 
    margin: 0 auto 24px; 
}

.forgot-icon .icon-circle, 
.reset-icon .icon-circle { 
    width: 100%; 
    height: 100%; 
    background-color: rgba(123, 17, 19, 0.08); 
    border-radius: 50%; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    font-size: 2.2rem; 
    color: var(--auth-primary); 
}

.forgot-password-content h2, 
.reset-password-content h2 { 
    font-size: 1.5rem; 
    font-weight: 800; 
    color: var(--auth-text-dark); 
    margin-bottom: 12px; 
}

.forgot-description, 
.reset-description { 
    color: var(--auth-text-muted); 
    font-size: 0.95rem; 
    margin-bottom: 30px; 
    line-height: 1.5; 
}

.reset-password-form { 
    text-align: left; 
}

[dir="rtl"] .reset-password-form { 
    text-align: right; 
}

.forgot-links { 
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    margin-top: 25px; 
    padding-top: 20px; 
    border-top: 1px solid var(--auth-border-color); 
    font-size: 0.9rem; 
}

.forgot-links a { 
    color: var(--auth-text-dark); 
    text-decoration: none; 
    font-weight: 600; 
    display: inline-flex; 
    align-items: center; 
    gap: 8px; 
    transition: color 0.2s ease; 
}

.forgot-links a:hover { 
    color: var(--auth-primary); 
}

.forgot-links .divider { 
    width: 1px; 
    height: 15px; 
    background-color: #cbd5e1; 
    margin: 0 10px; 
}

/* D. ESPACE PROFIL & ONGLETS DE COMPTE */
.profil-tab {
    display: none;
}

.profil-tab.active {
    display: block;
}

.profil-tab .login-header {
    text-align: left;
    margin-bottom: 20px;
}

[dir="rtl"] .profil-tab .login-header {
    text-align: right;
}

.profil-tab .btn-submit-login {
    width: 100% !important; 
    height: 48px !important; 
    background-color: var(--auth-primary) !important;
    color: #ffffff !important; 
    border: none !important; 
    border-radius: 8px !important;
    font-size: 1rem !important; 
    font-weight: 700 !important; 
    cursor: pointer !important;
    display: flex !important; 
    align-items: center !important; 
    justify-content: center !important;
    gap: 10px !important; 
    box-shadow: 0 4px 12px rgba(211, 47, 47, 0.25) !important;
    transition: all 0.2s ease !important;
}

.profil-tab .btn-submit-login:hover {
    background-color: var(--auth-primary-hover) !important;
}

/* Sidebar du Profil */
.info-sidebar .social-card {
    margin-bottom: 20px;
    text-align: center;
}

.info-sidebar .social-card .profile-avatar-icon {
    font-size: 2.5rem;
    color: var(--auth-primary);
    margin-bottom: 10px;
}

.info-sidebar .social-card h3 {
    margin-bottom: 4px;
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--auth-text-dark);
}

.info-sidebar .social-card p {
    font-size: 0.85rem;
    color: var(--auth-text-muted);
    margin: 0;
}

.info-sidebar .avantages-card .nav-links-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.info-sidebar .btn-social {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    height: 44px;
    border-radius: 8px;
    border: 1px solid var(--auth-border-color);
    background: #ffffff;
    color: var(--auth-text-dark);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    padding: 0 15px;
    box-sizing: border-box;
    justify-content: flex-start;
}

.info-sidebar .btn-social i {
    color: var(--auth-primary);
    width: 20px;
    text-align: center;
}

.info-sidebar .btn-social:hover,
.info-sidebar .btn-social.active {
    background-color: var(--auth-bg-light);
    border-color: var(--auth-primary);
    color: var(--auth-primary);
}

.info-sidebar .logout-form {
    margin-top: 20px;
}

.info-sidebar .logout-form .btn-submit-login {
    background-color: var(--accent-color) !important;
    height: 40px !important;
    font-size: 0.9rem !important;
    box-shadow: none !important;
}

.info-sidebar .logout-form .btn-submit-login:hover {
    background-color: var(--accent-light) !important;
    color: var(--auth-text-dark) !important;
}

/* Gestion de l'onglet Adresses */
.adresses-header-action {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.adresses-header-action h2 {
    margin: 0;
}

.adresses-header-action .btn-add-address {
    width: auto !important;
    padding: 0 15px;
    height: 38px !important;
    font-size: 0.85rem !important;
}

#add-address-form {
    display: none;
    margin-bottom: 20px;
    padding: 20px;
    background: var(--auth-bg-light);
    border-radius: 8px;
    border: 1px solid var(--auth-border-color);
}

#add-address-form h3 {
    font-size: 1rem;
    margin-bottom: 15px;
    font-weight: 700;
    color: var(--auth-text-dark);
}

#add-address-form .btn-submit-login {
    height: 40px !important;
}

.addresses-list .address-card {
    background: #fff;
    border: 1px solid var(--auth-border-color);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.addresses-list .address-info p:first-child {
    margin: 0 0 5px 0;
    font-weight: 600;
    color: var(--auth-text-dark);
}

.addresses-list .address-info p:nth-child(2) {
    margin: 0;
    font-size: 0.85rem;
    color: var(--auth-text-muted);
}

.addresses-list .address-badge {
    display: inline-block;
    margin-top: 5px;
    font-size: 0.75rem;
    background: #d1e7dd;
    color: #0f5132;
    padding: 2px 8px;
    border-radius: 4px;
}

.addresses-list .address-actions {
    display: flex;
    gap: 8px;
}

.addresses-list .address-action-btn {
    background: none;
    border: 1px solid var(--auth-border-color);
    padding: 5px 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.addresses-list .address-action-btn:hover {
    background-color: var(--auth-bg-light);
}


/* --------------------------------------------------------------------------
   7. MEDIA QUERIES (RESPONSIVE DESIGN)
   -------------------------------------------------------------------------- */

/* Tablettes et écrans moyens (≤ 992px) 
   => Ordre inversé : La sidebar (boutons de section/profil) passe au-dessus du formulaire */
@media (max-width: 992px) {
    .contact-wrapper { 
        grid-template-columns: 1fr; 
    }
    .info-sidebar { 
        order: 1; 
    }
    .form-container { 
        order: 2; 
    }
}

/* Tablettes / Téléphones larges (≤ 768px) */
@media (max-width: 768px) {
    .form-row { 
        grid-template-columns: 1fr; 
        gap: 0; 
    }
}

/* Mobile (≤ 640px) */
@media (max-width: 640px) {
    .verification-steps { flex-direction: column; gap: 15px; }
    .step-arrow { transform: rotate(90deg); margin: 5px 0; }
    [dir="rtl"] .step-arrow { transform: rotate(-90deg); }
    .verification-content { padding: 25px 18px; }
    .steps-grid { grid-template-columns: 1fr; gap: 12px; }
    .account-info-box { flex-direction: column; align-items: flex-start; gap: 10px; }
    [dir="rtl"] .account-info-box { align-items: flex-end; }
    .activation-content { padding: 28px 18px; }
}

/* Petits écrans mobiles (≤ 576px) */
@media (max-width: 576px) {
    .form-container,
    .social-card,
    .avantages-card { 
        padding: 22px 18px; 
    }
    
    .form-options { 
        flex-direction: column; 
        align-items: flex-start; 
        gap: 12px; 
    }
    
    .page-title-card { 
        flex-direction: column !important; 
        align-items: flex-start !important; 
        gap: 6px; 
    }
    
    [dir="rtl"] .page-title-card { 
        align-items: flex-start !important; 
    }
    
    .forgot-password-content,
    .reset-password-content { 
        padding: 30px 20px; 
    }
    
    .forgot-links { 
        flex-direction: column; 
        gap: 15px; 
    }
    
    .forgot-links .divider { 
        display: none; 
    }
}