/* style.css - Charte graphique premium de la plateforme Coopro (Accueil et Authentification) */
@import url('../../css/bsp_theme.css');

/* Configuration des variables et thèmes */
:root {
    --bg-color: #ffffff;
    --card-bg: #ffffff;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --primary-color: #2d3280;
    --primary-hover: #1e2260;
    --primary-light: #eef0ff;
    --border-color: #dde1f0;
    --success-color: #10b981;
    --error-color: #ef4444;
    --warning-color: #f59e0b;
    --shadow-sm: 0 1px 2px 0 rgba(45, 50, 128, 0.07);
    --shadow-md: 0 4px 6px -1px rgba(45, 50, 128, 0.12), 0 2px 4px -2px rgba(45, 50, 128, 0.08);
    --shadow-lg: 0 10px 15px -3px rgba(45, 50, 128, 0.15), 0 4px 6px -4px rgba(45, 50, 128, 0.1);
    --font-title: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    --transition-speed: 0.25s;
    --hero-gradient: linear-gradient(135deg, #2d3280 0%, #4f46e5 100%);
    --card-glass-bg: #ffffff;
    --card-glass-border: rgba(221, 225, 240, 0.8);
}

[data-theme="dark"] {
    --bg-color: #0b0f1e;
    --card-bg: #141929;
    --text-primary: #e8eaf6;
    --text-secondary: #8c9ab5;
    --primary-color: #7c83e0;
    --primary-hover: #9da3f0;
    --primary-light: #1a1e42;
    --border-color: #252d4a;
    --success-color: #34d399;
    --error-color: #f87171;
    --warning-color: #fbbf24;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.5);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.35), 0 2px 4px -2px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -4px rgba(0, 0, 0, 0.4);
    --hero-gradient: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%);
    --card-glass-bg: rgba(20, 25, 41, 0.85);
    --card-glass-border: rgba(37, 45, 74, 0.5);
}

/* Collaboration Account Switch Component */
.collab-switch-card {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.08), rgba(5, 150, 105, 0.03));
    border: 1.5px solid rgba(16, 185, 129, 0.35);
    border-radius: 12px;
    padding: 1rem 1.15rem;
    margin: 1.25rem 0 1rem 0;
    transition: all 0.3s ease;
}
.collab-switch-card:hover {
    border-color: rgba(16, 185, 129, 0.55);
    box-shadow: 0 4px 15px -3px rgba(16, 185, 129, 0.18);
}
.collab-switch-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.collab-switch-text {
    flex: 1;
}
.collab-switch-title {
    font-family: var(--font-title, 'Outfit', sans-serif);
    font-weight: 700;
    font-size: 0.92rem;
    color: var(--text-primary, #0f172a);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.2rem;
}
.collab-switch-desc {
    font-size: 0.76rem;
    color: var(--text-secondary, #64748b);
    line-height: 1.35;
}
/* Sliding Toggle Switch (anti misclick) */
.switch-slider-wrap {
    position: relative;
    display: inline-block;
    width: 52px;
    height: 28px;
    flex-shrink: 0;
}
.switch-slider-wrap input {
    opacity: 0;
    width: 0;
    height: 0;
}
.switch-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #cbd5e1;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 34px;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}
.switch-slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}
.switch-slider-wrap input:checked + .switch-slider {
    background-color: #10b981;
}
.switch-slider-wrap input:checked + .switch-slider:before {
    transform: translateX(24px);
}

/* Auth Card & Pro Badge utilities */
.auth-card-header-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.auth-card-header-title {
    margin-bottom: 0;
}

.auth-pro-badge {
    font-size: 0.75rem;
    background: rgba(16, 185, 129, 0.12);
    color: #059669;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 6px;
}

.btn-submit-collab {
    background: linear-gradient(135deg, #059669, #047857) !important;
}

/* Auth Legal Footer */
.auth-legal-footer {
    background: rgba(15, 23, 42, 0.8);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1.25rem;
    text-align: center;
    font-size: 0.8rem;
    color: #94a3b8;
    margin-top: 3rem;
}

.auth-legal-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
}

.auth-legal-link {
    color: #cbd5e1;
    text-decoration: none;
}

.auth-legal-link:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* Choice Space Page Utilities */
.choice-session-badge {
    display: none;
    margin-top: 1rem;
    background: #eef2ff;
    border: 1px solid #c7d2fe;
    border-radius: 12px;
    padding: 0.85rem 1.25rem;
    font-size: 0.9rem;
    color: #3730a3;
    text-align: center;
}

.choice-session-actions {
    margin-top: 0.5rem;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.choice-switch-account-btn {
    background: #ffffff;
    color: #dc2626;
    border: 1px solid #fca5a5;
    padding: 0.4rem 0.85rem;
    font-size: 0.82rem;
    width: auto;
}

.choice-bottom-nav {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

.choice-login-link-btn {
    background: #4f46e5;
    color: white;
    border-radius: 8px;
    padding: 0.65rem 1.25rem;
    font-weight: 700;
    width: auto;
}

.choice-return-home-no-margin {
    margin-top: 0 !important;
}

/* Reset standard */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: var(--font-body);
    transition: background-color var(--transition-speed), border-color var(--transition-speed), color var(--transition-speed);
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

p {
    text-align: justify;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeInUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes pulse-animation {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.pulse-animation {
    animation: pulse-animation 1.5s infinite ease-in-out;
}

/* Delays classes */
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }

/* Effets et Hovers */
.btn-hover {
    transition: all 0.2s ease;
}

.btn-hover:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    filter: brightness(1.08);
}

.btn-hover:active {
    transform: translateY(0);
}

.card-hover {
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color) !important;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 2rem;
    background-color: var(--card-bg);
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    z-index: 100;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-title);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    text-decoration: none;
}

.nav-logo .logo-img,
.logo-img {
    height: 58px;
    max-height: 62px;
    width: auto;
    object-fit: contain;
    border-radius: 4px;
    display: inline-block;
    vertical-align: middle;
    transition: transform 0.2s ease;
}

.nav-logo:hover .logo-img,
.logo-img:hover {
    transform: scale(1.04);
}

.logo-icon {
    font-size: 1.8rem;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.15));
}

.logo-text-accent {
    color: var(--primary-color);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Theme Toggle Button */
#theme-toggle-btn {
    border: none;
    background: none;
    font-size: 1.35rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

/* Page d'accueil - Hero Section */
.hero-section {
    background: var(--hero-gradient);
    color: white;
    padding: 5rem 2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.hero-title {
    font-family: var(--font-title);
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -0.05em;
    max-width: 800px;
    line-height: 1.15;
}

.hero-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.btn-hero-connect {
    border: none;
    background-color: white;
    color: var(--primary-color);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: var(--shadow-md);
}

/* Grille Principale Accueil/Connexion */
.auth-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 3rem;
    max-width: 1200px;
    margin: -3rem auto 4rem auto;
    padding: 0 2rem;
    width: 100%;
    align-items: start;
    z-index: 10;
}

.auth-info-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.info-header {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.info-tagline {
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--primary-color);
    letter-spacing: 1.5px;
}

.info-title {
    font-family: var(--font-title);
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.25;
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.feature-item {
    display: flex;
    gap: 1rem;
    align-items: start;
}

.feature-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background-color: var(--primary-light);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.35rem;
}

.feature-text {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.feature-title {
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-primary);
}

.feature-desc {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.45;
}

/* Modales d'Authentification */
.auth-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
}

.auth-tabs-nav {
    display: flex;
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 0.25rem;
    box-shadow: var(--shadow-sm);
}

.auth-tab-btn {
    flex: 1;
    border: none;
    background: none;
    color: var(--text-primary);
    padding: 0.65rem;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

/* Active tab style */
.auth-tab-btn.active {
    background-color: var(--primary-color);
    color: white;
}

.auth-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.auth-card h3 {
    font-family: var(--font-title);
    font-size: 1.65rem;
    font-weight: 800;
    text-align: center;
    color: var(--text-primary);
}

.auth-card h3.auth-2fa-title {
    color: var(--primary-color);
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-secondary);
}

.form-control,
.auth-input,
.bsp-input,
select.form-control,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="date"],
input[type="search"],
textarea {
    width: 100%;
    border: 1.5px solid #1758c9;
    background-color: #1d6bf3 !important;
    color: #ffffff !important;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    outline: none;
    font-size: 0.92rem;
    font-weight: 600;
    caret-color: #ffffff;
    box-shadow: 0 2px 6px rgba(29, 107, 243, 0.25);
    transition: all var(--transition-speed);
}

.form-control::placeholder,
.auth-input::placeholder,
input::placeholder,
textarea::placeholder {
    color: rgba(255, 255, 255, 0.75) !important;
    font-weight: 400;
}

.form-control:focus,
.auth-input:focus,
input:focus,
select:focus,
textarea:focus {
    border-color: #38bdf8 !important;
    background-color: #1758c9 !important;
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.35) !important;
    color: #ffffff !important;
}

select.form-control,
select {
    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='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: right 0.75rem center !important;
    background-size: 0.85rem 0.85rem !important;
    padding-right: 2.2rem !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    cursor: pointer;
}

select.form-control option,
select option {
    background-color: #0f172a !important;
    color: #ffffff !important;
    font-size: 0.88rem;
    font-weight: 600;
    padding: 8px 12px;
}

.form-control.select-pointer {
    cursor: pointer;
}

.form-control.auth-2fa-input {
    text-align: center;
    font-size: 1.35rem;
    font-family: monospace;
    letter-spacing: 5px;
    font-weight: 700;
}

.form-help {
    font-size: 0.75rem;
    color: var(--text-secondary);
    line-height: 1.3;
}

/* Captcha Block */
.captcha-container {
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 1.1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.captcha-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--error-color);
}

.captcha-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.captcha-checkbox {
    cursor: pointer;
    width: 18px;
    height: 18px;
}

.captcha-label {
    font-size: 0.85rem;
    color: var(--text-primary);
    cursor: pointer;
}

.captcha-math-block {
    flex-direction: column;
    gap: 0.4rem;
}

.captcha-math-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-secondary);
}

/* Submit and Utility Box */
.auth-submit-btn {
    width: 100%;
    border: none;
    background-color: var(--primary-color);
    color: white;
    padding: 0.85rem;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 0.5rem;
    font-size: 0.95rem;
}

.auth-note-box {
    background-color: var(--primary-light);
    border: 1px solid var(--primary-color);
    border-radius: 8px;
    padding: 0.85rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.45;
}

.auth-links-container {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
    margin-top: 0.25rem;
}

.auth-link {
    font-size: 0.85rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.auth-text-info {
    font-size: 0.88rem;
    color: var(--text-secondary);
    text-align: center;
    line-height: 1.5;
}

.auth-text-info-primary {
    font-size: 0.9rem;
    color: var(--text-primary);
    line-height: 1.5;
}

.auth-links-footer {
    text-align: center;
    margin-top: 0.5rem;
}

.auth-links-footer-back {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
}

/* Inscription Specific Styles */
.auth-section-divider {
    border-top: 1px dashed var(--border-color);
    padding-top: 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.auth-section-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-primary);
}

.auth-checkbox-container {
    display: flex;
    gap: 0.5rem;
    align-items: flex-start;
    margin-top: 0.5rem;
}

.auth-checkbox {
    margin-top: 0.25rem;
    cursor: pointer;
    width: 16px;
    height: 16px;
}

.auth-checkbox-label {
    font-size: 0.78rem;
    color: var(--text-secondary);
    line-height: 1.4;
    cursor: pointer;
}

/* Recovery Step Result */
.forgot-result-box {
    display: none;
    flex-direction: column;
    gap: 1.2rem;
    align-items: center;
    text-align: center;
}

.forgot-result-icon {
    font-size: 1.5rem;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.forgot-result-email {
    color: var(--primary-color);
    font-size: 1.05rem;
    font-family: monospace;
}

/* Footer */
.footer {
    margin-top: auto;
    background-color: var(--card-bg);
    border-top: 1px solid var(--border-color);
    padding: 2.5rem;
    text-align: center;
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.footer-gdpr-info {
    font-size: 0.75rem;
    margin-top: 0.5rem;
    opacity: 0.8;
}

/* Utilities */
.text-center {
    text-align: center;
}

.margin-top-md {
    margin-top: 0.5rem;
}

/* Simulated Messagerie floating widget */
#sim-communication-widget {
    position: fixed;
    bottom: 85px;
    right: 20px;
    width: 380px;
    height: 500px;
    background-color: var(--card-bg);
    border: 2px solid var(--primary-color);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    z-index: 999;
    flex-direction: column;
    overflow: hidden;
    transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.comm-widget-header {
    background-color: var(--primary-color);
    color: white;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.comm-widget-header-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.comm-widget-header-title span:first-child {
    font-size: 1.1rem;
}

.comm-widget-header-title span:last-child {
    font-weight: 700;
    font-family: var(--font-title);
    font-size: 0.95rem;
}

.comm-widget-close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
}

.comm-widget-tabs {
    display: flex;
    background-color: var(--bg-color);
    border-bottom: 1px solid var(--border-color);
}

.comm-widget-tab-btn {
    flex: 1;
    border: none;
    background: none;
    padding: 0.75rem;
    font-size: 0.85rem;
    cursor: pointer;
    outline: none;
    color: var(--text-secondary);
    font-weight: 600;
    border-bottom: 3px solid transparent;
}

.comm-widget-tab-btn.active {
    border-bottom-color: var(--primary-color);
    color: var(--primary-color);
    font-weight: 700;
}

.comm-widget-list {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    background-color: var(--bg-color);
}

/* Floating Trigger Button */
.comm-widget-trigger {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 56px;
    height: 56px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    transition: transform 0.2s;
}

.comm-widget-trigger-icon {
    font-size: 1.35rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.comm-widget-trigger-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background-color: var(--error-color);
    color: white;
    font-size: 0.7rem;
    font-weight: 800;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: none;
    align-items: center;
    justify-content: center;
}

.comm-entry-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.75rem;
    font-size: 0.8rem;
    display: flex;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s, box-shadow 0.2s;
}

.comm-entry-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.comm-unread {
    border-left: 4px solid var(--primary-color) !important;
    background-color: var(--primary-light) !important;
}

/* Responsiveness adjustments */
@media (max-width: 900px) {
    .auth-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-top: 1.5rem;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
}

.hidden {
    display: none !important;
}

.logo-img {
    height: 58px;
    max-height: 62px;
    width: auto;
    object-fit: contain;
    border-radius: 4px;
    transition: transform 0.2s ease;
}

.logo-img:hover {
    transform: scale(1.03);
}

/* --- STRUCTURE DE LA MISE EN PAGE DU SIDEBAR (LANDING) --- */
.landing-layout-wrapper {
    display: flex;
    min-height: calc(100vh - 72px);
    width: 100%;
}

.landing-left-sidebar {
    width: 280px;
    border-right: 1px solid var(--border-color);
    background-color: var(--card-bg);
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-shrink: 0;
}

.landing-right-sidebar {
    width: 320px;
    border-left: 1px solid var(--border-color);
    background-color: var(--card-bg);
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-shrink: 0;
}

.landing-center-content {
    flex-grow: 1;
    padding: 3rem 2.5rem;
    overflow-y: auto;
    background-color: var(--bg-color);
}

/* Style de la navigation latérale */
.sidebar-section-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--text-secondary);
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.sidebar-nav-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.sidebar-nav-btn {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 0.85rem 1rem;
    border-radius: 10px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    transition: all var(--transition-speed);
}

.sidebar-nav-btn:hover {
    background-color: var(--primary-light);
    color: var(--primary-color);
}

.sidebar-nav-btn.active {
    background-color: var(--primary-color);
    color: white;
}

.sidebar-footer {
    border-top: 1px dashed var(--border-color);
    padding-top: 1.5rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Sidebar droite / Pubs sponsorisées */
.sponsor-title-text {
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--text-secondary);
    letter-spacing: 1.5px;
    margin-bottom: 1.5rem;
    display: block;
}

.sponsor-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 1.25rem;
    margin-bottom: 1.25rem;
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

.sponsor-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.sponsor-badge {
    background-color: var(--primary-light);
    color: var(--primary-color);
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 0.75rem;
}

.sponsor-card-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.sponsor-card-desc {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 0.75rem;
}

.sponsor-card-link {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}

.sponsor-card-link:hover {
    text-decoration: underline;
}

.sponsor-footer-info {
    font-size: 0.75rem;
    color: var(--text-secondary);
    opacity: 0.8;
    text-align: center;
    line-height: 1.4;
    border-top: 1px dashed var(--border-color);
    padding-top: 1.5rem;
}

/* Zone centrale - Hero & Fonctionnalités */
.hero-pill-badge {
    background-color: var(--primary-light);
    color: var(--primary-color);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    display: inline-block;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-main-title {
    font-family: var(--font-title);
    font-size: 2.75rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.15;
    max-width: 850px;
    margin: 1.5rem auto;
}

.hero-main-desc {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 700px;
    line-height: 1.6;
    margin: 0 auto 2.5rem auto;
}

.hero-cta-group {
    display: flex;
    gap: 1.25rem;
    margin-bottom: 3.5rem;
    width: 100%;
    justify-content: center;
}

.btn-cta-primary {
    background-color: var(--primary-color);
    color: white;
    font-weight: 700;
    padding: 0.9rem 1.8rem;
    border-radius: 12px;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    text-decoration: none;
}

.btn-cta-secondary {
    background-color: var(--card-bg);
    color: var(--text-primary);
    font-weight: 700;
    padding: 0.9rem 1.8rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    font-size: 1rem;
    cursor: pointer;
    text-decoration: none;
}

/* Feature grid */
.feature-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    width: 100%;
    margin-top: 1rem;
}

.feature-card-premium {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.75rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    text-align: left;
}

.feature-card-premium:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.feature-card-icon-box {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background-color: var(--primary-light);
    color: var(--primary-color);
    font-size: 1.35rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.feature-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.feature-card-desc {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Style du simulateur de vote interactif */
.simulator-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2.25rem;
    width: 100%;
    max-width: 800px;
    box-shadow: var(--shadow-md);
    text-align: left;
}

.simulator-result-box {
    background-color: var(--primary-light);
    border: 1px solid rgba(79, 70, 229, 0.2);
    border-radius: 14px;
    padding: 1.5rem;
    margin-top: 1.5rem;
    font-size: 0.95rem;
}

/* Style du guide pratique */
.guide-container {
    width: 100%;
    max-width: 900px;
    text-align: left;
}

.guide-search-wrapper {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    width: 100%;
}

.guide-category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    width: 100%;
}

.guide-article-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 1.5rem;
    cursor: pointer;
    transition: all var(--transition-speed);
}

.guide-article-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

.guide-article-detail {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    margin-top: 1.5rem;
    position: relative;
    overflow: hidden;
    padding: 0;
}

/* ═══ FIL D'ACTUALITÉS « MISE À JOUR DU SITE » ═══ */
.bsp-news-feed {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* Séparateur de date entre les groupes d'actualités */
.bsp-news-date-header {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin: 1.5rem 0 0.35rem 0;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.bsp-news-date-header::after {
    content: "";
    flex: 1;
    height: 1px;
    background-color: var(--border-color);
}

.bsp-news-date-header:first-child {
    margin-top: 0;
}

/* Carte d'actualité */
.bsp-news-card {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1rem 1.15rem;
    cursor: pointer;
    transition: all var(--transition-speed);
}

.bsp-news-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.bsp-news-card.is-open {
    border-color: var(--primary-color);
}

/* Vignette : SVG fourni par l'admin, sinon icône de catégorie */
.bsp-news-thumb {
    flex-shrink: 0;
    width: 74px;
    height: 74px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.9rem;
    background-color: var(--bg-main, #f1f5f9);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.bsp-news-thumb svg {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bsp-news-body {
    flex: 1;
    min-width: 0;
}

.bsp-news-kicker {
    display: block;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 0.2rem;
}

.bsp-news-title {
    margin: 0 0 0.3rem 0;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-main);
}

.bsp-news-summary {
    margin: 0;
    font-size: 0.86rem;
    line-height: 1.5;
    color: var(--text-secondary);
    /* Conserve les retours à la ligne saisis en back-office (le texte est
       échappé puis injecté en HTML, où les \n seraient sinon ignorés). */
    white-space: pre-line;
}

.bsp-news-meta {
    margin-top: 0.55rem;
    font-size: 0.76rem;
    font-weight: 600;
    color: var(--primary-color);
}

/* Contenu déplié de l'actualité */
.bsp-news-detail {
    border: 1px solid var(--primary-color);
    border-top: none;
    border-radius: 0 0 12px 12px;
    background-color: var(--card-bg);
    padding: 0 1.15rem 1.15rem 1.15rem;
    margin-top: -0.75rem;
}

.bsp-news-detail h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-main);
    margin: 1.1rem 0 0.35rem 0;
}

.bsp-news-detail p {
    font-size: 0.88rem;
    line-height: 1.65;
    color: var(--text-secondary);
    text-align: justify;
    margin: 0.25rem 0;
    /* Idem : préserve la mise en forme multiligne des paragraphes (listes à
       tirets, énumérations) telle que saisie dans l'Espace Admin. */
    white-space: pre-line;
}

.bsp-news-biblio {
    margin-top: 1.1rem;
    padding-top: 0.75rem;
    border-top: 1px dashed var(--border-color);
    font-size: 0.78rem;
    color: var(--text-secondary);
}

.bsp-news-empty {
    text-align: center;
    color: var(--text-secondary);
    padding: 3rem 0;
    font-size: 0.95rem;
    font-style: italic;
}

@media (max-width: 600px) {
    .bsp-news-thumb {
        width: 52px;
        height: 52px;
        font-size: 1.4rem;
    }
}

/* Style des cartes d'authentification */
.auth-wrapper-card {
    width: 100%;
    max-width: 480px;
    margin: 2rem auto;
}

/* Responsive collapsing */
@media (max-width: 1100px) {
    .landing-right-sidebar {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .landing-layout-wrapper {
        flex-direction: column;
    }
    
    .landing-left-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        padding: 1rem;
    }
    
    .landing-center-content {
        padding: 1.5rem;
    }
    
    .hero-main-title {
        font-size: 2rem;
    }
    
    .feature-grid-3 {
        grid-template-columns: 1fr;
    }
}

/* --- LINT CORRECTIONS / CLEANUP CLASSES --- */
.nav-logo-icon {
    background-color: var(--primary-color);
    color: white;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 800;
}

.nav-connect-btn {
    background-color: var(--primary-color);
    color: white;
    padding: 0.5rem 1.25rem;
    border-radius: 8px;
    border: none;
    font-weight: 700;
    cursor: pointer;
}

.sidebar-settings-link {
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--text-secondary);
}

.guide-card-icon {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    display: block;
}

.guide-article-content {
    line-height: 1.7;
    font-size: 0.95rem;
    text-align: justify;
}

.sim-table {
    width: 100%;
    margin-top: 0.5rem;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.sim-table-header-row {
    border-bottom: 2px solid var(--border-color);
    text-align: left;
}

.sim-table-cell {
    padding: 0.5rem;
}

.sim-table-row {
    border-bottom: 1px solid var(--border-color);
}

.sim-table-cell-bold {
    padding: 0.5rem;
    font-weight: 600;
}

.sim-table-cell-mono {
    padding: 0.5rem;
    font-family: monospace;
}

.sim-select-compact {
    width: auto;
    padding: 0.2rem 0.5rem;
}

.auth-links-footer-recovery {
    margin-top: 1.5rem !important;
}

.auth-result-info {
    margin-top: 1rem;
}

.forgot-result-email {
    font-size: 1.1rem;
    color: var(--primary-color);
    word-break: break-all;
}

.margin-top-lg {
    margin-top: 1.5rem !important;
}

.form-row-2 {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 1rem !important;
}

/* --- Nouveau Captcha de clic --- */
.captcha-click-block {
    margin-top: 15px;
    padding: 12px;
    background-color: var(--primary-light);
    border-radius: 6px;
    border: 1px solid var(--border-color);
}

.captcha-click-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.captcha-click-btn {
    width: 70px;
    height: 70px;
    background-color: #ef4444;
    color: white;
    cursor: pointer;
    border: none;
    border-radius: 8px;
    font-size: 12px;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    word-break: break-all;
    padding: 0;
    transition: background-color 3s ease, width var(--transition-speed), height var(--transition-speed), padding var(--transition-speed), font-size var(--transition-speed);
}

.captcha-click-btn.orange {
    background-color: #f97316 !important;
    transition: background-color 0s ease !important;
}

.captcha-click-btn:disabled {
    background-color: #94a3b8;
    cursor: not-allowed;
    transition: background-color 0.2s ease !important;
}

.captcha-click-btn.success {
    background-color: #10b981 !important;
    width: auto !important;
    height: 24px !important;
    padding: 0 10px !important;
    font-size: 12px !important;
    word-break: normal !important;
    transition: background-color 0.2s ease, width 0.2s ease, height 0.2s ease, padding 0.2s ease, font-size 0.2s ease !important;
}

.captcha-click-instruction {
    font-size: 13px;
    color: var(--text-primary);
}

.captcha-click-status {
    margin-top: 8px;
    font-size: 12px;
    font-weight: bold;
    color: #ef4444;
}

/* CTA Button Info */
.btn-cta-info {
    background-color: var(--card-bg);
    color: var(--primary-color);
    font-weight: 700;
    padding: 0.9rem 1.8rem;
    border-radius: 12px;
    border: 1px dashed var(--primary-color);
    font-size: 1rem;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
}
.btn-cta-info:hover {
    background-color: var(--primary-light);
    border-style: solid;
}

/* Category Badge Styling */
.category-badge {
    display: inline-block;
    padding: 0.25rem 0.6rem;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 6px;
    margin-bottom: 0.5rem;
    letter-spacing: 0.5px;
}
.category-droit {
    background-color: #e0f2fe;
    color: #0369a1;
}
.category-economie {
    background-color: #dcfce7;
    color: #15803d;
}
.category-informations {
    background-color: #f3e8ff;
    color: #6b21a8;
}
.category-tutoriel {
    background-color: #fef3c7;
    color: #b45309;
}
.category-autre {
    background-color: #f1f5f9;
    color: #475569;
}

/* Modals overlay and cards styling (settings-modal, about-modal) */
.settings-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(15, 23, 42, 0.6);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1050;
    padding: 1.5rem;
}

.settings-modal-card {
    background-color: var(--card-bg, #ffffff);
    border: 1px solid var(--border-color, #dde1f0);
    border-radius: 16px;
    width: 100%;
    max-width: 600px;
    padding: 2rem;
    box-shadow: var(--shadow-lg, 0 10px 25px -5px rgba(0,0,0,0.1));
    display: flex;
    flex-direction: column;
    animation: modalSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    z-index: 1060;
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.btn-close-modal {
    background: none;
    border: none;
    font-size: 1.25rem;
    color: var(--text-secondary, #64748b);
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s ease;
}
.btn-close-modal:hover {
    color: var(--text-primary, #0f172a);
}

/* Custom Pricing Switch Styles */
.switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 24px;
}
.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}
.slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #dde1f0;
    transition: 0.3s ease;
    border-radius: 24px;
}
.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s ease;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(45, 50, 128, 0.15);
}
input:checked + .slider {
    background-color: var(--primary-color, #2d3280);
}
input:checked + .slider:before {
    transform: translateX(24px);
}

/* --- CLEANUP & ACCESS-FIX ADDITIONS --- */
.homepage-section-title {
    margin-top: 3.5rem;
    margin-bottom: 2rem;
    font-family: var(--font-title);
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text-primary);
    text-align: center;
    position: relative;
}

.title-underline-accent {
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--primary-color);
    margin: 0.75rem auto 0 auto;
    border-radius: 2px;
}

.guide-article-svg-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.08;
    pointer-events: none;
}

.guide-article-svg-header {
    width: 100%;
    height: auto;
    min-height: 100px;
    display: block;
    z-index: 2;
    position: relative;
}

.guide-article-detail-content {
    position: relative;
    z-index: 3;
    padding: 1.5rem;
}

.guide-article-category-text {
    text-transform: uppercase;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    display: block;
}

.margin-none {
    margin: 0 !important;
}

.guide-article-summary-box {
    margin-top: 1rem;
    font-weight: 600;
    font-size: 1.05rem;
    line-height: 1.5;
    color: var(--text-primary);
    text-align: justify;
    border-left: 3px solid var(--primary-color);
    padding-left: 0.75rem;
}

.guide-article-biblio-box {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px dashed var(--border-color);
    font-size: 0.82rem;
    color: var(--text-secondary);
}

.guide-article-biblio-title {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.guide-article-biblio-list {
    line-height: 1.5;
}

.tab-content-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    text-align: left;
}

.tab-header-title {
    color: var(--primary-color);
    font-family: var(--font-title);
    font-size: 1.85rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tab-subtitle {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.assistance-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.assistance-card-sub {
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
}

.assistance-card-title {
    margin-top: 0;
    color: var(--text-primary);
    font-size: 1.15rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.assistance-hotline-box {
    background-color: var(--primary-color);
    color: white;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 1rem;
}

.assistance-hotline-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: block;
    opacity: 0.85;
}

.assistance-hotline-number {
    font-size: 1.4rem;
    display: block;
    margin-top: 0.25rem;
}

.assistance-card-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 0;
}

.assistance-card-sub-flex {
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.assistance-card-title-compact {
    margin-top: 0;
    color: var(--text-primary);
    font-size: 1.15rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.assistance-status-ok {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background-color: #e2fbf0;
    color: #0d9488;
    padding: 0.75rem;
    border-radius: 8px;
    border: 1px solid #ccfbf1;
    font-weight: 600;
    font-size: 0.88rem;
    margin-bottom: 1rem;
}

[data-theme="dark"] .assistance-status-ok {
    background-color: rgba(13, 148, 136, 0.15);
    color: #34d399;
    border-color: rgba(52, 211, 153, 0.3);
}

.assistance-card-desc-none {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}

.flex-col-gap-1 {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.assistance-details {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}

.assistance-details-summary {
    padding: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    cursor: pointer;
    -webkit-user-select: none;
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: var(--bg-color);
}

.details-open-indicator {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.assistance-details-content {
    padding: 1.25rem;
    border-top: 1px solid var(--border-color);
}

.assistance-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.grid-2-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group-mb-0 {
    margin-bottom: 0 !important;
}

.form-label-compact {
    font-size: 0.85rem;
    font-weight: 600;
}

.textarea-support {
    height: 100px;
    resize: vertical;
}

.btn-submit-support {
    align-self: flex-start;
    background-color: var(--primary-color);
    border: none;
}

.assistance-details-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 1rem;
}

.btn-submit-retract {
    align-self: flex-start;
    background-color: #e11d48;
    border: none;
}

[data-theme="dark"] .btn-submit-retract {
    background-color: #f43f5e;
}

.textarea-optional {
    height: 80px;
    resize: vertical;
}

.btn-submit-abuse {
    align-self: flex-start;
    background-color: #4b5563;
    border: none;
}

.pricing-cycle-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2.5rem;
    background: var(--bg-color);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    border: 1px solid var(--border-color);
}

.billing-label-monthly {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 0.9rem;
    cursor: pointer;
}

.billing-label-annual {
    font-weight: 500;
    color: var(--text-secondary);
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.badge-savings {
    background-color: #22c55e;
    color: white;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 0.15rem 0.4rem;
    border-radius: 10px;
    text-transform: uppercase;
}

.pricing-plans-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.pricing-card {
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
    background: var(--card-bg);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s, box-shadow 0.2s;
}

.pricing-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.pricing-card-featured {
    border: 2px solid var(--primary-color);
    border-radius: 16px;
    padding: 1.5rem;
    background: var(--card-bg);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: var(--shadow-md);
    position: relative;
    transition: transform 0.2s, box-shadow 0.2s;
}

.pricing-card-featured:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.pricing-badge {
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 800;
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 1rem;
}

.pricing-badge-standard {
    color: #64748b;
    background: #f1f5f9;
}

[data-theme="dark"] .pricing-badge-standard {
    color: #94a3b8;
    background: #1e293b;
}

.pricing-badge-featured {
    color: var(--primary-color);
    background: var(--primary-light);
}

.pricing-badge-pro {
    color: #4f46e5;
    background: #f5f3ff;
}

[data-theme="dark"] .pricing-badge-pro {
    color: #a5b4fc;
    background: #1e1b4b;
}

.pricing-badge-enterprise {
    color: #db2777;
    background: #fdf2f8;
}

[data-theme="dark"] .pricing-badge-enterprise {
    color: #f472b6;
    background: #500730;
}

.pricing-title {
    margin: 0 0 0.5rem 0;
    color: var(--text-primary);
    font-size: 1.35rem;
    font-weight: 800;
}

.pricing-desc {
    color: var(--text-secondary);
    font-size: 0.82rem;
    line-height: 1.4;
    margin-bottom: 1.25rem;
}

.pricing-price-box {
    margin-bottom: 1.5rem;
}

.pricing-price-amount {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text-primary);
}

.pricing-price-term {
    font-size: 0.88rem;
    color: var(--text-secondary);
}

.pricing-features-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    border-top: 1px solid var(--border-color);
    padding-top: 1.25rem;
}

.pricing-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.checkmark-icon {
    color: #22c55e;
}

.pricing-btn {
    width: 100%;
    margin-top: 2rem;
}

.pricing-btn-free {
    border-color: var(--border-color);
    color: var(--text-primary);
}

.pricing-btn-primary {
    background-color: var(--primary-color);
    border: none;
}

.pricing-btn-pro {
    background-color: #4f46e5;
    border: none;
}

[data-theme="dark"] .pricing-btn-pro {
    background-color: #6366f1;
}

.pricing-btn-enterprise {
    background-color: #db2777;
    border: none;
}

[data-theme="dark"] .pricing-btn-enterprise {
    background-color: #ec4899;
}

.popular-tag {
    position: absolute;
    top: -12px;
    right: 20px;
    font-size: 0.7rem;
    text-transform: uppercase;
    font-weight: 800;
    color: white;
    background: var(--primary-color);
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
}

.billing-annual-detail {
    font-size: 0.75rem;
    color: #10b981;
    margin-top: 0.25rem;
    font-weight: 600;
    opacity: 0;
    transition: opacity 0.2s;
}

.storage-addons-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.storage-addon-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.storage-addon-title {
    display: block;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.storage-addon-warning {
    font-size: 0.72rem;
    color: #e11d48;
    font-weight: 600;
}

[data-theme="dark"] .storage-addon-warning {
    color: #f43f5e;
}

.storage-addon-price-box {
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.25rem;
}

.storage-addon-price {
    font-size: 1.15rem;
    color: var(--primary-color);
}

.storage-addon-term {
    font-size: 0.7rem;
    color: var(--text-secondary);
}

.storage-addon-btn {
    padding: 0.2rem 0.5rem;
    font-size: 0.75rem;
    margin-top: 0.25rem;
    border: none;
    background-color: var(--primary-color);
}

.border-bottom-divider {
    border-bottom: 1px solid var(--border-color);
}

.about-modal-body {
    margin-top: 1.5rem;
    color: var(--text-primary);
    line-height: 1.6;
    text-align: justify;
}

.mt-1-rem {
    margin-top: 1rem !important;
}

.about-modal-footer {
    margin-top: 2rem;
    display: flex;
    justify-content: flex-end;
}

@media (max-width: 768px) {
    .assistance-grid, .grid-2-col, .pricing-plans-grid {
        grid-template-columns: 1fr !important;
    }
}

/* --- BOUTONS LIKE & DISLIKE AVEC COMPTEURS (ARTICLE REACTIONS) --- */
.bsp-news-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: 100%;
}

.bsp-news-title-area {
    flex: 1;
}

.bsp-reactions-inline {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-shrink: 0;
}

.bsp-btn-reaction {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.85rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    background-color: var(--card-bg, #ffffff);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    -webkit-user-select: none;
    user-select: none;
}

.bsp-btn-reaction .bsp-count {
    font-family: var(--font-title, sans-serif);
    font-weight: 800;
}

/* Bouton Like (Encadré Vert) */
.bsp-btn-like {
    border: 2px solid #22c55e;
    color: #15803d;
}
.bsp-btn-like:hover {
    background-color: #f0fdf4;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.25);
}
.bsp-btn-like.active {
    background-color: #dcfce7;
    color: #166534;
    border-color: #16a34a;
    box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.35);
}

/* Bouton Dislike (Encadré Rouge) */
.bsp-btn-dislike {
    border: 2px solid #ef4444;
    color: #b91c1c;
}
.bsp-btn-dislike:hover {
    background-color: #fef2f2;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.25);
}
.bsp-btn-dislike.active {
    background-color: #fee2e2;
    color: #991b1b;
    border-color: #dc2626;
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.35);
}

[data-theme="dark"] .bsp-btn-like {
    background-color: rgba(34, 197, 94, 0.1);
    color: #4ade80;
    border-color: #22c55e;
}
[data-theme="dark"] .bsp-btn-like:hover {
    background-color: rgba(34, 197, 94, 0.2);
}
[data-theme="dark"] .bsp-btn-like.active {
    background-color: rgba(34, 197, 94, 0.3);
    color: #86efac;
    border-color: #4ade80;
}

[data-theme="dark"] .bsp-btn-dislike {
    background-color: rgba(239, 68, 68, 0.1);
    color: #fca5a5;
    border-color: #ef4444;
}
[data-theme="dark"] .bsp-btn-dislike:hover {
    background-color: rgba(239, 68, 68, 0.2);
}
[data-theme="dark"] .bsp-btn-dislike.active {
    background-color: rgba(239, 68, 68, 0.3);
    color: #fca5a5;
    border-color: #f87171;
}

/* Bloc d'évaluation en fin d'article */
.bsp-article-reactions-end {
    margin-top: 2rem;
    padding: 1.25rem;
    background-color: var(--bg-color, #f8fafc);
    border: 1px dashed var(--border-color, #cbd5e1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}
.bsp-article-reactions-end-title {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Cleaned Inline Styles for auth card & modals */
.auth-box-title {
    margin-bottom: 0.25rem;
}
.auth-box-subtitle {
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 1.25rem;
}
#auth-error-banner {
    display: none;
    background: #fef2f2;
    border: 1px solid #fca5a5;
    color: #dc2626;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
}
.auth-form-group {
    margin-bottom: 1.25rem;
}
.auth-form-group-pwd {
    margin-bottom: 1.5rem;
}
.auth-form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.4rem;
}
.auth-form-input {
    width: 100%;
    padding: 0.65rem 0.85rem;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    font-size: 0.9rem;
}
.auth-pwd-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.4rem;
}
.auth-pwd-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}
.auth-pwd-toggle-btn {
    background: none;
    border: none;
    font-size: 0.78rem;
    color: #4f46e5;
    cursor: pointer;
    font-weight: 700;
}
.auth-submit-btn-styled {
    cursor: pointer;
    width: 100%;
    font-weight: 700;
    padding: 0.8rem;
    font-size: 0.95rem;
    background: linear-gradient(135deg, #4f46e5, #4338ca);
    color: white;
    border: none;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
    margin-bottom: 0.75rem;
}
.btn-demo-express {
    cursor: pointer;
    width: 100%;
    font-weight: 800;
    padding: 0.75rem;
    font-size: 0.9rem;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border: none;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.demo-express-subtitle {
    font-size: 0.75rem;
    opacity: 0.9;
    font-weight: 600;
}
.auth-note-box {
    margin-top: 1.25rem;
    font-size: 0.8rem;
    background: #fffbe6;
    border: 1px solid #fef08a;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    color: #713f12;
}
.auth-links-container {
    margin-top: 1rem;
    display: flex;
    justify-content: space-between;
    font-size: 0.82rem;
}

/* Footer styles */
.site-legal-footer {
    background: rgba(15, 23, 42, 0.8);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1.25rem;
    text-align: center;
    font-size: 0.8rem;
    color: #94a3b8;
    margin-top: 3rem;
}
.site-legal-footer-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
}
.site-legal-footer-link {
    color: #cbd5e1;
    text-decoration: none;
}

/* Modal suggestion styles */
.suggest-textarea {
    resize: vertical;
    font-family: inherit;
    font-size: 0.85rem;
    padding: 0.5rem;
}
.suggest-submit-btn {
    width: 100%;
    font-weight: 600;
}
.suggest-status-msg {
    display: none;
    font-size: 0.8rem;
    margin-top: 8px;
    font-weight: 500;
    text-align: center;
}
.form-help-info {
    margin-top: 0.25rem;
    display: block;
    font-size: 0.85rem;
    line-height: 1.4;
    background: #f0f9ff;
    padding: 0.85rem;
    border-radius: 8px;
    border-left: 4px solid #0284c7;
    color: #0369a1;
}
.auth-cgu-link {
    color: var(--primary-color, #6366f1);
    text-decoration: underline;
    font-weight: bold;
}
.nav-actions-spacing {
    margin-right: 15px;
}
.auth-warning-icon {
    font-size: 3rem;
}

/* Espace Partenaires & Callouts */
.partner-hero-banner {
    background: linear-gradient(135deg, #0284c7 0%, #1e1b4b 100%);
    padding: 36px 32px;
    border-radius: 16px;
    color: #ffffff;
    text-align: left;
    margin-bottom: 25px;
    box-shadow: 0 10px 25px -5px rgba(2, 132, 199, 0.3);
}

.partner-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.partner-hero-title {
    font-size: 26px;
    font-weight: 800;
    margin: 0 0 10px 0;
    color: #ffffff;
    line-height: 1.25;
}

.partner-hero-desc {
    font-size: 15px;
    color: #e0f2fe;
    margin: 0;
    line-height: 1.6;
    max-width: 780px;
}

.partner-grid {
    margin-bottom: 30px;
}

.partner-card {
    text-align: left;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 22px;
    background: var(--bg-card);
}

.partner-card-icon {
    font-size: 28px;
    margin-bottom: 12px;
}

.partner-card-title {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 8px 0;
    color: var(--text-primary);
}

.partner-card-desc {
    font-size: 13.5px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}

.partner-cta-box {
    background: var(--bg-card);
    border: 2px solid #0284c7;
    border-radius: 16px;
    padding: 32px 24px;
    text-align: center;
    margin-top: 20px;
}

.partner-cta-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0 0 10px 0;
}

.partner-cta-desc {
    font-size: 14.5px;
    color: var(--text-secondary);
    margin: 0 0 24px 0;
    max-width: 620px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
}

.partner-cta-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-partner-primary {
    background: linear-gradient(135deg, #0284c7, #0369a1);
    color: #ffffff;
    font-weight: 800;
    font-size: 15px;
    padding: 14px 28px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(2, 132, 199, 0.4);
}

.btn-partner-secondary {
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-weight: 700;
    font-size: 14px;
    padding: 14px 22px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    cursor: pointer;
}

.partner-auth-callout {
    margin-top: 18px;
    padding: 12px 16px;
    background: rgba(2, 132, 199, 0.08);
    border: 1px dashed #0284c7;
    border-radius: 10px;
    text-align: center;
    font-size: 13px;
    color: var(--text-primary);
}

.partner-auth-callout-link {
    color: #0284c7;
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
    margin-top: 4px;
}

.auth-resend-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 14px;
}

.btn-resend-code {
    background: none;
    border: none;
    color: var(--primary, #2563eb);
    font-size: 0.82rem;
    cursor: pointer;
    font-weight: 700;
    text-decoration: underline;
    font-family: inherit;
    padding: 0;
}

.btn-resend-code:hover {
    color: #1d4ed8;
}

/* ==========================================================================
   UNIFIED DYNAMIC PORTAL STYLES (Choix Espace, Admin, Partenaire, 2FA, Reset)
   ========================================================================== */

/* Choix d'Espace */
.choice-portal-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 0.5rem;
    width: 100%;
}

.choice-header {
    text-align: center;
    max-width: 650px;
    margin-bottom: 2rem;
}

.choice-title {
    font-family: 'Outfit', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-dark, #0f172a);
    margin-bottom: 0.5rem;
}

.choice-subtitle {
    font-size: 1rem;
    color: var(--text-secondary, #64748b);
    line-height: 1.6;
}

.choice-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 1100px;
    width: 100%;
}

@media (max-width: 900px) {
    .choice-cards-grid {
        grid-template-columns: 1fr;
        max-width: 480px;
    }
}

.choice-card {
    background: var(--card-bg, #ffffff);
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: 16px;
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.choice-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: transparent;
    transition: background 0.3s ease;
}

.choice-card-copro::before { background: linear-gradient(90deg, #3b82f6, #6366f1); }
.choice-card-admin::before { background: linear-gradient(90deg, #ef4444, #dc2626); }
.choice-card-partenaire::before { background: linear-gradient(90deg, #10b981, #059669); }

.choice-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 30px -10px rgba(0, 0, 0, 0.12);
}

.choice-icon-circle {
    width: 68px;
    height: 68px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 1.25rem;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.06);
}

.choice-card-copro .choice-icon-circle { background: rgba(59, 130, 246, 0.1); color: #2563eb; }
.choice-card-admin .choice-icon-circle { background: rgba(239, 68, 68, 0.1); color: #dc2626; }
.choice-card-partenaire .choice-icon-circle { background: rgba(16, 185, 129, 0.1); color: #059669; }

.choice-card-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--primary-dark, #0f172a);
    margin-bottom: 0.5rem;
}

.choice-card-desc {
    font-size: 0.88rem;
    color: var(--text-secondary, #64748b);
    line-height: 1.5;
    margin-bottom: 1.75rem;
    flex-grow: 1;
}

.choice-btn {
    width: 100%;
    padding: 0.85rem 1.25rem;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
    box-sizing: border-box;
}

.btn-copro {
    background: linear-gradient(135deg, #2563eb, #4f46e5);
    color: white;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
    font-size: 15px;
    padding: 14px 28px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(2, 132, 199, 0.4);
}

.btn-partner-secondary {
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-weight: 700;
    font-size: 14px;
    padding: 14px 22px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    cursor: pointer;
}

.partner-auth-callout {
    margin-top: 18px;
    padding: 12px 16px;
    background: rgba(2, 132, 199, 0.08);
    border: 1px dashed #0284c7;
    border-radius: 10px;
    text-align: center;
    font-size: 13px;
    color: var(--text-primary);
}

.partner-auth-callout-link {
    color: #0284c7;
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
    margin-top: 4px;
}

.auth-resend-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 14px;
}

.btn-resend-code {
    background: none;
    border: none;
    color: var(--primary, #2563eb);
    font-size: 0.82rem;
    cursor: pointer;
    font-weight: 700;
    text-decoration: underline;
    font-family: inherit;
    padding: 0;
}

.btn-resend-code:hover {
    color: #1d4ed8;
}

/* ==========================================================================
   UNIFIED DYNAMIC PORTAL STYLES (Choix Espace, Admin, Partenaire, 2FA, Reset)
   ========================================================================== */

/* Administration Login Specifics */
.admin-login-card {
    border-top: 5px solid #dc2626 !important;
}

.admin-icon-badge {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1rem;
}

.admin-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-dark, #0f172a);
    margin-bottom: 0.35rem;
    text-align: center;
}

.admin-subtitle {
    font-size: 0.85rem;
    color: var(--text-secondary, #64748b);
    text-align: center;
    margin-bottom: 1.5rem;
}

.btn-admin-submit {
    width: 100%;
    padding: 0.85rem;
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 800;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
    margin-top: 0.5rem;
}

.btn-admin-submit:hover { opacity: 0.92; }
.admin-logo-accent { color: #dc2626; }

/* Choix d'Espace */
.choice-portal-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 0.5rem;
    width: 100%;
}

.choice-header {
    text-align: center;
    max-width: 650px;
    margin-bottom: 2rem;
}

.choice-title {
    font-family: 'Outfit', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-dark, #0f172a);
    margin-bottom: 0.5rem;
}

.choice-subtitle {
    font-size: 1rem;
    color: var(--text-secondary, #64748b);
    line-height: 1.6;
}

.choice-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 1100px;
    width: 100%;
}

@media (max-width: 900px) {
    .choice-cards-grid {
        grid-template-columns: 1fr;
        max-width: 480px;
    }
}

.choice-card {
    background: var(--card-bg, #ffffff);
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: 16px;
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.choice-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: transparent;
    transition: background 0.3s ease;
}

.choice-card-copro::before { background: linear-gradient(90deg, #3b82f6, #6366f1); }
.choice-card-admin::before { background: linear-gradient(90deg, #ef4444, #dc2626); }
.choice-card-partenaire::before { background: linear-gradient(90deg, #10b981, #059669); }

.choice-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 30px -10px rgba(0, 0, 0, 0.12);
}

.choice-icon-circle {
    width: 68px;
    height: 68px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 1.25rem;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.06);
}

.choice-card-copro .choice-icon-circle { background: rgba(59, 130, 246, 0.1); color: #2563eb; }
.choice-card-admin .choice-icon-circle { background: rgba(239, 68, 68, 0.1); color: #dc2626; }
.choice-card-partenaire .choice-icon-circle { background: rgba(16, 185, 129, 0.1); color: #059669; }

.choice-card-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--primary-dark, #0f172a);
    margin-bottom: 0.5rem;
}

.choice-card-desc {
    font-size: 0.88rem;
    color: var(--text-secondary, #64748b);
    line-height: 1.5;
    margin-bottom: 1.75rem;
    flex-grow: 1;
}

.choice-btn {
    width: 100%;
    padding: 0.85rem 1.25rem;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
    box-sizing: border-box;
}

.btn-copro {
    background: linear-gradient(135deg, #2563eb, #4f46e5);
    color: white;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.btn-admin {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    color: white;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.25);
}

.btn-partenaire {
    background: linear-gradient(135deg, #059669, #047857);
    color: white;
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.25);
}

/* Espace Partenaire Login Specifics */
.partenaire-login-card {
    border-top: 5px solid #059669 !important;
}

.partenaire-icon-badge {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1rem;
}

.partenaire-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-dark, #0f172a);
    margin-bottom: 0.35rem;
    text-align: center;
}

.partenaire-subtitle {
    font-size: 0.85rem;
    color: var(--text-secondary, #64748b);
    text-align: center;
    margin-bottom: 1.5rem;
}

.btn-partenaire-submit {
    width: 100%;
    padding: 0.85rem;
    background: linear-gradient(135deg, #059669, #047857);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 800;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
    margin-top: 0.5rem;
}

.btn-partenaire-submit:hover { opacity: 0.92; }

/* Forgot Email & Recovery Extras */
.forgot-result-box {
    padding: 1.5rem;
    background: rgba(37, 99, 235, 0.06);
    border: 1px solid rgba(37, 99, 235, 0.2);
    border-radius: 12px;
    text-align: center;
    margin-top: 1rem;
}

.forgot-result-icon { font-size: 2.2rem; display: block; margin-bottom: 0.5rem; }
.forgot-result-email { color: var(--primary, #2563eb); font-size: 1.1rem; }
.auth-warning-icon { font-size: 2.5rem; display: block; margin-bottom: 0.5rem; }
.auth-text-info-primary { color: var(--text-primary, #0f172a); font-size: 0.95rem; line-height: 1.5; }

.text-emerald { color: #059669 !important; }
.text-emerald-dark { color: #047857 !important; }
.btn-demo-partner-styled { border-color: #059669 !important; color: #059669 !important; margin-top: 0.6rem !important; }
.auth-note-box-spaced { margin-top: 1rem !important; margin-bottom: 0.5rem !important; }
.auth-2fa-input-uppercase { text-transform: uppercase !important; }
.choice-session-badge-box { margin-top: 1rem !important; padding: 0.75rem 1.25rem !important; background: rgba(37, 99, 235, 0.08) !important; border-radius: 10px !important; border: 1px solid rgba(37, 99, 235, 0.2) !important; }
.choice-session-actions-box { margin-top: 0.5rem !important; }
.choice-switch-account-styled { background:#ffffff !important; color:#2563eb !important; border:1px solid #2563eb !important; padding: 0.4rem 0.8rem !important; font-size: 0.82rem !important; cursor:pointer !important; }

/* Redirect Pages Helper Styles */
.redirect-body {
    font-family: var(--font-title, 'Outfit', sans-serif);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    margin: 0;
    background: var(--bg-color, #f8fafc);
    color: var(--text-primary, #1e293b);
}

.redirect-card {
    text-align: center;
    padding: 2rem;
    background: var(--card-bg, #ffffff);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    max-width: 480px;
    width: 90%;
}

.redirect-card-admin {
    border-top: 5px solid #dc2626;
}

.redirect-card-partenaire {
    border-top: 5px solid #059669;
}

.redirect-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 1rem 0;
    color: var(--text-primary, #1e293b);
}

.redirect-link {
    color: #2563eb;
    text-decoration: none;
    font-weight: 700;
    transition: opacity 0.2s ease;
}

.redirect-link:hover {
    text-decoration: underline;
    opacity: 0.9;
}

.redirect-link-admin {
    color: #dc2626;
    text-decoration: none;
    font-weight: 700;
    transition: opacity 0.2s ease;
}

.redirect-link-admin:hover {
    text-decoration: underline;
    opacity: 0.9;
}

.redirect-link-partenaire {
    color: #059669;
    text-decoration: none;
    font-weight: 700;
    transition: opacity 0.2s ease;
}

.redirect-link-partenaire:hover {
    text-decoration: underline;
    opacity: 0.9;
}

.logo-img-sized {
    height: 58px !important;
    width: auto !important;
    object-fit: contain !important;
}

.btn-submit-collab {
    background: linear-gradient(135deg, #059669, #047857) !important;
    color: white !important;
}

.sponsor-card-clickable {
    cursor: pointer !important;
}

.sponsor-card-logo-img {
    max-height: 28px !important;
    width: auto !important;
    object-fit: contain !important;
    margin-bottom: 0.5rem !important;
    display: block !important;
    border-radius: 4px !important;
}

.sponsor-card-link-bold {
    font-weight: 700 !important;
}
