@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Fraunces:opsz,wght@9..144,700&display=swap');

:root {
    /* Color Palette */
    --primary-color: #4f46e5; /* Indigo 600 */
    --primary-hover-color: #4338ca; /* Indigo 700 */
    --primary-inverse-color: #ffffff;
    
    --accent-color: #f59e0b; /* Amber 500 */
    
    /* Backgrounds */
    --body-bg-color: #f8fafc; /* Slate 50 */
    --surface-color: #ffffff;
    --surface-hover: #f1f5f9; /* Slate 100 */
    
    /* Text */
    --text-main: #1e293b; /* Slate 800 */
    --text-secondary: #475569; /* Slate 600 */
    --text-muted: #94a3b8; /* Slate 400 */
    
    /* Borders & Shadows */
    --border-color: #e2e8f0; /* Slate 200 */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    
    /* Semantic Colors */
    --success-color: #10b981;
    --success-bg: #d1fae5;
    --danger-color: #ef4444;
    --danger-bg: #fee2e2;
    --warning-color: #f59e0b;
    --warning-bg: #fef3c7;
    --info-color: #3b82f6;
    --info-bg: #dbeafe;
    
    /* Layout */
    --border-radius-sm: 6px;
    --border-radius-md: 10px;
    --border-radius-lg: 16px;
}

/* ==========================================================================
   Global Reset & Base
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    max-width: 100%;
    overflow-x: hidden;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--text-main);
    background-color: var(--body-bg-color);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    margin-top: 0;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.2;
}

h1 { font-size: 2.5rem; font-family: 'Fraunces', serif; }
h2 { font-size: 2rem; font-family: 'Fraunces', serif; }
h3 { font-size: 1.5rem; }

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--primary-hover-color);
}

/* ==========================================================================
   Layout Containers
   ========================================================================== */
.container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.main-content {
    padding: 2rem 0;
}

/* ==========================================================================
   Components: Cards
   ========================================================================== */
.fcb-card {
    background-color: var(--surface-color);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    transition: box-shadow 0.3s ease;
}

.fcb-card:hover {
    box-shadow: var(--shadow-md);
}

.fcb-card-header {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
}

.fcb-card-title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
}

/* ==========================================================================
   Components: Buttons
   ========================================================================== */
.fcb-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--border-radius-md);
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.fcb-btn-primary {
    background-color: var(--primary-color);
    color: var(--primary-inverse-color);
    box-shadow: 0 2px 4px rgba(79, 70, 229, 0.2);
}

.fcb-btn-primary:hover {
    background-color: var(--primary-hover-color);
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(79, 70, 229, 0.3);
}

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

.fcb-btn-secondary {
    background-color: var(--surface-color);
    color: var(--text-main);
    border: 1px solid var(--border-color);
}

.fcb-btn-secondary:hover {
    background-color: var(--surface-hover);
}

.fcb-btn-danger {
    background-color: var(--danger-color);
    color: #fff;
}

.fcb-btn-danger:hover {
    background-color: #dc2626;
}

.fcb-btn-block {
    width: 100%;
}

.fcb-btn:disabled,
.fcb-btn.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ==========================================================================
   Components: Forms
   ========================================================================== */
.fcb-form-group {
    margin-bottom: 1.5rem;
}

.fcb-form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.fcb-form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    background-color: var(--surface-color);
    color: var(--text-main);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.fcb-form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}

/* ==========================================================================
   Components: Alerts & Badges
   ========================================================================== */
.fcb-alert {
    padding: 1rem;
    border-radius: var(--border-radius-md);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.fcb-alert-info { background-color: var(--info-bg); color: var(--info-color); border: 1px solid #bfdbfe; }
.fcb-alert-success { background-color: var(--success-bg); color: var(--success-color); border: 1px solid #a7f3d0; }
.fcb-alert-warning { background-color: var(--warning-bg); color: var(--warning-color); border: 1px solid #fde68a; }
.fcb-alert-danger { background-color: var(--danger-bg); color: var(--danger-color); border: 1px solid #fecaca; }

.fcb-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 9999px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.fcb-badge-primary { background-color: var(--info-bg); color: var(--info-color); }
.fcb-badge-success { background-color: var(--success-bg); color: #065f46; }

/* ==========================================================================
   Grid & Utilities
   ========================================================================== */
.fcb-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

@media (max-width: 768px) {
    .fcb-grid-2 { grid-template-columns: 1fr; }
}

.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }

/* ==========================================================================
   Global Layout (Header, Main, Footer)
   ========================================================================== */
#container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    position: relative;
}

#header {
    background-color: var(--surface-color);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

#header_content {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 1.5rem;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

#siteName {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary-color);
    font-family: 'Inter', sans-serif;
    letter-spacing: -0.05em;
}

.brand-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.nav-wrapper {
    display: flex;
    align-items: center;
}

#navigation {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

#navigation a {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    text-decoration: none;
}

#navigation a:hover {
    color: var(--primary-color);
}

.nav-auth-links {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.login-link {
    background-color: var(--primary-color);
    color: white !important;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius-sm);
    font-weight: 600 !important;
}

.login-link:hover {
    background-color: var(--primary-hover-color);
}

.register-link {
    font-weight: 600 !important;
}

.nav-toggle {
    display: none;
}

#mobile_menu {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--text-main);
}

@media (max-width: 768px) {
    #mobile_menu { display: block; }
    .header-links {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--surface-color);
        border-bottom: 1px solid var(--border-color);
        padding: 1rem;
    }
    .nav-toggle:checked ~ .header-links {
        display: block;
    }
    #navigation {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
}

#body {
    flex: 1;
}

#body-page {
    max-width: 1600px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

#footer {
    background-color: var(--surface-color);
    border-top: 1px solid var(--border-color);
    padding: 3.5rem 0 2rem;
    margin-top: auto;
}

/* Masquer la ligne de crédits par défaut */
#footer-credits,
.footer-credits {
    display: none !important;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2.5rem;
    text-align: left;
}

@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

@media (max-width: 576px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

.footer-col-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-brand-name {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary-color);
    text-decoration: none;
}

.footer-brand-desc {
    color: var(--text-secondary);
    font-size: 0.88rem;
    margin: 0.75rem 0 1.2rem;
    max-width: 320px;
    line-height: 1.5;
}

.footer-copyright {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.6rem;
}

.footer-links a,
.footer-nav a {
    color: var(--text-secondary);
    font-size: 0.88rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.2s ease, transform 0.2s ease;
}

.footer-links a:hover,
.footer-nav a:hover {
    color: var(--primary-color);
    transform: translateX(3px);
}

.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

/* ==========================================================================
   Landing Page Styles (Extracted from landing_saas.tpl)
   ========================================================================== */
/* HERO OVERLAP EFFECT */
.landing-scope .hero h1 {
    line-height: 0.95;
    position: relative;
    display: block;
}

.landing-scope .hero h1 .hero-accent {
    font-family: 'Fraunces', serif !important;
    font-style: italic;
    font-weight: 300;
    color: var(--primary);
    text-shadow: 0 4px 20px rgba(0,0,0,0.08);
    white-space: nowrap;
}

/* BENTO V3 STYLE (3 Columns) */
.landing-scope .bento-v3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}
@media (max-width: 1024px) { .landing-scope .bento-v3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .landing-scope .bento-v3 { grid-template-columns: 1fr; } }

/* Policy Box */
.free-policy {
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(20, 54, 46, 0.1);
    border-radius: 20px;
    padding: 2.5rem;
    margin-top: 4rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}

.security-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 5rem; align-items: start; }
@media (max-width: 1024px) {
    .security-grid { grid-template-columns: 1fr; gap: 2rem; }
    .security-grid h2 { font-size: 2.5rem !important; }
    .landing-scope .section-title { margin-bottom: 3rem; text-align: center; }
}
.btn-migration { background: #D4A373 !important; color: #14362E !important; border: none !important; }
.theme-light .btn-migration { background: #14362E !important; color: #FFFFFF !important; }

/* --- LANDING SAAS CUSTOM CLASSES (iOS Light Glassmorphism) --- */
.hero-actions { display: flex; gap: 1.5rem; justify-content: center; flex-wrap: wrap; position: relative; z-index: 10; }
.btn-large { padding: 1.25rem 3.5rem; font-size: 1.15rem; box-shadow: 0 4px 15px rgba(0,0,0,0.05); transition: all 0.3s ease; }

/* Hero Buttons Glassmorphism */
.hero-actions .btn-primary {
    background: rgba(79, 70, 229, 0.3); /* Deep glass effect matching the outline */
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border: 1px solid rgba(79, 70, 229, 0.5);
    color: var(--primary-color);
}
.hero-actions .btn-primary:hover {
    background: rgba(79, 70, 229, 0.45);
    border-color: rgba(79, 70, 229, 0.8);
    box-shadow: 0 8px 25px rgba(79, 70, 229, 0.2);
    transform: translateY(-2px);
    color: var(--primary-color);
}

.hero-actions .btn-outline {
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.6);
    color: var(--text-main);
}
.hero-actions .btn-outline:hover {
    background: rgba(255, 255, 255, 0.5);
    border-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
    color: var(--text-main);
}

.hero-meta { margin-top: 2rem; font-size: 0.9rem; color: var(--text-muted); position: relative; z-index: 10; }
.highlight-free { color: var(--primary-color); font-weight: 600; }

/* Global Glass Utilities */
.glass-panel {
    background: rgba(255, 255, 255, 0.25) !important;
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.5) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.04) !important;
}
.glass-panel-hover {
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease, background 0.4s ease;
}
.glass-panel-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08) !important;
    background: rgba(255, 255, 255, 0.45) !important;
    border-color: rgba(255, 255, 255, 0.8) !important;
}

#header {
    background: rgba(255, 255, 255, 0.25) !important;
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.4) !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05) !important;
}

/* Make sections transparent so background orbs are visible throughout */
.section-features, .section-security, .section-migration, .section-pricing { 
    padding: 80px 5%; 
    background-color: transparent !important; 
    position: relative; 
    z-index: 5;
}
body {
    background-color: #f8fafc;
    background-image: url('img/bg_glass.png');
    background-size: cover;
    background-position: center top;
    background-attachment: fixed;
    background-repeat: no-repeat;
}
.landing-scope {
    position: relative;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}
.landing-scope main {
    position: relative;
    overflow: hidden;
    width: 100%;
}

/* Layout Constraints */
.landing-container { 
    max-width: 1600px; 
    margin: 0 auto; 
    width: 100%; 
    padding: 0 20px; 
}
.hero { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; min-height: 85vh; padding: 6rem 20px; position: relative; z-index: 10; width: 100%; }
.hero-chip { background: rgba(255,255,255,0.85); color: var(--primary-color); border: 1px solid rgba(255,255,255,0.9); padding: 0.4rem 1rem; border-radius: 100px; font-weight: 700; margin: 0 auto 2rem auto; box-shadow: 0 4px 15px rgba(0,0,0,0.05); backdrop-filter: blur(10px); display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; }
.hero p.parallax { font-size: 1.3rem; color: var(--text-secondary); max-width: 700px; margin: 1.5rem auto 2.5rem; line-height: 1.6; }

/* Orbs Enhancement for better glass effect */
.landing-scope .orb {
    filter: blur(80px);
    opacity: 0.7;
    position: absolute;
    z-index: 0;
    pointer-events: none;
}
.landing-scope .orb-1 { background: radial-gradient(circle, rgba(99,102,241,0.4) 0%, rgba(99,102,241,0) 70%); width: 500px; height: 500px; top: -50px; left: 0; }
.landing-scope .orb-2 { background: radial-gradient(circle, rgba(244,63,94,0.3) 0%, rgba(244,63,94,0) 70%); width: 500px; height: 500px; top: 40%; right: 0; }

.section-title-large { max-width: 900px; margin: 0 auto 4rem; text-align: center; display: flex; flex-direction: column; align-items: center; }
.eyebrow-pro { background: rgba(255,255,255,0.8); color: var(--info-color); border: 1px solid rgba(255,255,255,0.9); padding: 0.5rem 1rem; display: inline-flex; align-items: center; gap: 0.6rem; border-radius: var(--border-radius-md); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; font-size: 0.8rem; box-shadow: 0 2px 10px rgba(0,0,0,0.02); backdrop-filter: blur(10px); }
.icon-small { font-size: 0.65rem; }
.title-light { color: var(--text-main); font-size: clamp(2.5rem, 5vw, 4rem); line-height: 1.1; margin-top: 1.5rem; text-align: center; }
.alt-gold { font-weight: 400; font-family: 'Fraunces'; font-style: italic; color: var(--primary-color); position: relative; }
.alt-underline { position: absolute; bottom: 5px; left: 0; width: 100%; height: 2px; background: linear-gradient(90deg, var(--primary-color) 0%, transparent 100%); opacity: 0.4; }
.subtitle-light { color: var(--text-secondary); font-size: 1.2rem; margin: 1.5rem auto 0; max-width: 700px; line-height: 1.6; text-align: center; }

.bento-v3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 2rem; width: 100%; }
.bento-dark { border-radius: var(--border-radius-lg); padding: 2.5rem; cursor: pointer; }
.tag-light { background: rgba(255,255,255,0.8); color: var(--text-main); padding: 0.4rem 1rem; border-radius: var(--border-radius-sm); font-size: 0.8rem; font-weight: 700; display: inline-block; margin-bottom: 1.5rem; transition: background 0.3s ease; box-shadow: 0 2px 5px rgba(0,0,0,0.02); }
.bento-dark:hover .tag-light { background: var(--info-color); color: white; }
.icon-gold { color: var(--primary-color); transition: transform 0.4s ease; }
.bento-dark:hover .icon-gold { transform: scale(1.15) rotate(5deg); }
.text-white { color: var(--text-main); margin-bottom: 1rem; font-size: 1.4rem; font-weight: 700; }
.text-dim-light { color: var(--text-secondary); line-height: 1.6; font-size: 1rem; }

.security-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
@media (max-width: 900px) { .security-grid { grid-template-columns: 1fr; gap: 2rem; } }
.eyebrow-dark { background: rgba(255,255,255,0.8); color: var(--text-secondary); border: 1px solid rgba(255,255,255,0.9); padding: 0.5rem 1rem; display: inline-flex; align-items: center; gap: 0.6rem; border-radius: var(--border-radius-md); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; font-size: 0.8rem; box-shadow: 0 2px 10px rgba(0,0,0,0.02); backdrop-filter: blur(10px); }
.title-dark { font-size: 3rem; line-height: 1.2; color: var(--text-main); margin-top: 1.5rem; }
.alt-dark { font-style: italic; font-weight: 400; font-family: 'Fraunces'; color: var(--primary-color); }
.subtitle-dark { margin-top: 1.5rem; font-size: 1.1rem; color: var(--text-main); line-height: 1.6; }
.sec-list { display: flex; flex-direction: column; gap: 1.5rem; }
.bento-light { border-radius: var(--border-radius-lg); padding: 2rem; margin-bottom: 1rem; cursor: pointer; }
.bento-light:hover { transform: translateX(8px); box-shadow: -5px 15px 30px rgba(0,0,0,0.05); }
.sec-item-header { display: flex; gap: 1.5rem; align-items: flex-start; }
.sec-num { width: 40px; height: 40px; border-radius: var(--border-radius-md); background: rgba(255,255,255,0.8); display: flex; align-items: center; justify-content: center; font-weight: 700; color: var(--primary-color); font-family: 'Fraunces'; border: 1px solid rgba(255,255,255,0.9); box-shadow: 0 2px 5px rgba(0,0,0,0.02); flex-shrink: 0; }
.sec-title { font-size: 1.25rem; margin-bottom: 0.5rem; color: var(--text-main); font-weight: 600; }
.sec-desc { font-size: 0.95rem; line-height: 1.6; color: var(--text-secondary); }
.sec-badge { margin-top: 1rem; display: inline-block; background: var(--primary-color); color: white; font-size: 0.75rem; font-weight: 600; padding: 0.3rem 0.8rem; border-radius: var(--border-radius-sm); text-transform: uppercase; box-shadow: 0 4px 10px rgba(79,70,229,0.2); }

.google-section { border-radius: var(--border-radius-lg); padding: 3rem; display: flex; align-items: center; gap: 3rem; flex-wrap: wrap; }
.google-content { flex: 1; min-width: 300px; }
.eyebrow-light { background: rgba(255,255,255,0.8); color: var(--primary-color); border: 1px solid rgba(255,255,255,0.9); padding: 0.5rem 1rem; display: inline-flex; align-items: center; gap: 0.6rem; border-radius: var(--border-radius-md); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; font-size: 0.8rem; margin-bottom: 1rem; box-shadow: 0 2px 10px rgba(0,0,0,0.02); backdrop-filter: blur(10px); }
.title-responsive { font-size: clamp(2rem, 4vw, 3rem); color: var(--text-main); margin-bottom: 1rem; }
.subtitle-light-alt { font-size: 1.1rem; color: var(--text-secondary); margin-bottom: 2rem; line-height: 1.6; }
.icon-gold-large { color: var(--primary-color); font-size: 1.8rem; margin-right: 1.2rem; width: 40px; text-align: center; }
.g-feat { font-size: 1.1rem; font-weight: 600; color: var(--text-main); display: flex; align-items: center; margin-bottom: 1rem; }
.btn-migration { background: var(--primary-color) !important; color: white !important; border: none !important; font-weight: 600; padding: 1rem 2rem; border-radius: var(--border-radius-md); display: inline-block; text-decoration: none; box-shadow: 0 8px 20px rgba(79,70,229,0.3); transition: transform 0.3s ease, box-shadow 0.3s ease; }
.btn-migration:hover { transform: translateY(-3px); box-shadow: 0 12px 25px rgba(79,70,229,0.4); }

.section-title { display: flex; flex-direction: column; align-items: center; text-align: center; margin-bottom: 4rem; }
.subtitle-dark-alt { color: var(--text-secondary); margin-top: 1.5rem; text-align: center; font-size: 1.2rem; }
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 2.5rem; width: 100%; }
.p-card { border-radius: var(--border-radius-lg); padding: 2.5rem; text-align: center; position: relative; }
.p-card.featured { border: 1px solid rgba(79,70,229,0.3) !important; box-shadow: 0 15px 35px rgba(79, 70, 229, 0.1) !important; transform: translateY(-5px); background: rgba(255,255,255,0.85) !important; }
.p-card.featured:hover { transform: translateY(-12px); box-shadow: 0 25px 50px rgba(79, 70, 229, 0.2) !important; background: rgba(255,255,255,0.95) !important; }
.p-badge-featured { position: absolute; top: -15px; left: 50%; transform: translateX(-50%); background: linear-gradient(135deg, var(--primary-color) 0%, #818cf8 100%); color: white; padding: 0.4rem 1.2rem; border-radius: var(--border-radius-md); font-size: 0.8rem; font-weight: 700; text-transform: uppercase; box-shadow: 0 4px 15px rgba(79, 70, 229, 0.4); }
.p-name { font-weight: 700; text-transform: uppercase; font-size: 1rem; letter-spacing: 0.05em; color: var(--text-main); margin-bottom: 1rem; transition: color 0.3s ease; }
.p-card:hover .p-name { color: var(--primary-color); }
.p-price { color: var(--text-main); font-size: 3.5rem; font-weight: 800; margin-bottom: 1rem; letter-spacing: -0.02em; }
.p-price-month { font-size: 1.1rem; font-weight: 500; color: var(--text-secondary); }
.p-storage { font-weight: 700; background: rgba(255,255,255,0.8); display: inline-block; padding: 0.5rem 1.2rem; border-radius: var(--border-radius-sm); color: var(--text-main); margin-bottom: 2.5rem; transition: background 0.3s ease; box-shadow: 0 2px 5px rgba(0,0,0,0.02); }
.p-card:hover .p-storage { background: var(--primary-color); color: white; }
.p-features { text-align: left; list-style: none; padding: 0; margin-bottom: 2.5rem; }
.p-features li { display: flex; gap: 0.8rem; align-items: flex-start; margin-bottom: 1.2rem; font-size: 0.95rem; color: var(--text-secondary); }
.p-features li i { margin-top: 0.2rem; color: var(--primary-color); }
.btn-full { display: block; width: 100%; text-align: center; padding: 1.2rem; font-weight: 700; border-radius: var(--border-radius-md); transition: all 0.3s ease; }
.btn-full:hover { transform: translateY(-2px); box-shadow: 0 10px 20px rgba(0,0,0,0.1); }
.btn-disabled { cursor: not-allowed; border-color: rgba(255,255,255,0.5); color: var(--text-muted); background: rgba(255,255,255,0.4); }
.btn-disabled:hover { transform: none; box-shadow: none; }
.btn-outline-dark { border: 2px solid rgba(0,0,0,0.1); color: var(--text-main); background: rgba(255,255,255,0.5); }
.btn-outline-dark:hover { border-color: var(--primary-color); color: var(--primary-color); background: white; }
.free-policy { max-width: 600px; margin: 4rem auto 0; border-radius: var(--border-radius-lg); padding: 2.5rem; }
.policy-title { font-size: 1.2rem; font-weight: 600; margin-bottom: 1.5rem; color: var(--text-main); text-align: center; }
.policy-step { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.2rem; }
.policy-day { padding: 0.4rem 1rem; border-radius: var(--border-radius-sm); font-weight: 600; font-size: 0.9rem; flex-shrink: 0; min-width: 80px; text-align: center; }
.day-active { background: rgba(16,185,129,0.15); color: #059669; border: 1px solid rgba(16,185,129,0.2); }
.day-inactive { background: rgba(245,158,11,0.15); color: #d97706; border: 1px solid rgba(245,158,11,0.2); }
.policy-step p { font-size: 0.95rem; color: var(--text-secondary); margin: 0; }
.policy-note { margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--border-color); font-size: 0.85rem; color: var(--text-muted); font-style: italic; text-align: center; }


/* --- 2. AVATAR DROPDOWN MENU --- */
.nav-user-avatar-menu {
    position: relative;
    display: inline-block;
    padding-bottom: 10px; /* Bridge the gap so hover doesn't break */
}
.nav-user-avatar-menu ul {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 220px;
    background-color: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    padding: 0.5rem 0;
    margin-top: -5px; /* Pull it slightly up to ensure overlap */
    list-style: none;
    display: none;
    flex-direction: column;
    z-index: 1000;
}
.nav-user-avatar-menu:hover ul, .nav-user-avatar-menu:focus-within ul {
    display: flex;
}
.nav-user-avatar-menu ul::before {
    content: '';
    position: absolute;
    top: -15px;
    left: 0;
    right: 0;
    height: 15px;
    background: transparent;
}
.nav-user-avatar-menu ul li a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    color: var(--text-base);
    text-decoration: none;
    font-size: 0.95rem;
    transition: background-color 0.2s;
}
.nav-user-avatar-menu ul li a:hover {
    background-color: var(--surface-hover);
    color: var(--primary);
}
.avatar-menu-separator hr {
    margin: 0.5rem 0;
    border: 0;
    border-top: 1px solid var(--border);
}
.avatar-menu-item-logout {
    color: #e53e3e !important;
}

/* --- 3. FLEXDOCS SIDEBAR (Doublon fix) --- */
#modulesSidebar {
    width: 300px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
#body-page {
    display: flex;
    gap: 2rem;
    max-width: 1600px;
    margin: 0 auto;
    padding: 2rem 5%;
}
@media (max-width: 900px) {
    #body-page {
        flex-direction: column;
    }
    #modulesSidebar {
        width: 100%;
    }
}
.sidebarModule {
    background-color: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
}
.sidebarModuleTitle {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-base);
}
.sidebarModuleContent ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.sidebarModuleContent ul li {
    margin-bottom: 0.5rem;
}
.sidebarModuleContent ul li a {
    color: var(--text-dim);
    text-decoration: none;
    transition: color 0.2s;
}
.sidebarModuleContent ul li a:hover {
    color: var(--primary);
}

/* --- 4. CGU / LEGAL PAGES --- */
.page-legal-content {
    max-width: 800px;
    margin: 3rem auto;
    background-color: var(--surface);
    border-radius: 20px;
    padding: 3rem;
    border: 1px solid var(--border);
    color: var(--text-base);
    line-height: 1.6;
}
.page-legal-content h1 {
    font-family: 'Fraunces', serif;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--heading);
    text-align: center;
}
.page-legal-content h2 {
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--heading);
}
.page-legal-content p {
    margin-bottom: 1rem;
}
.page-legal-content ul {
    padding-left: 2rem;
    margin-bottom: 1.5rem;
}

/* Smooth Scrolling */
html { scroll-behavior: smooth; }

/* Anchor Menu (Floating Pill) */
.l-nav.anchor-menu {
    position: sticky;
    top: 90px;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 100px;
    padding: 0.5rem 1rem;
    display: flex;
    justify-content: center;
    max-width: fit-content;
    margin: 20px auto 0 auto;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05);
}
.l-nav.anchor-menu .nav-links {
    display: flex;
    gap: 1rem;
    list-style: none;
    margin: 0;
    padding: 0;
}
.l-nav.anchor-menu a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
}
.l-nav.anchor-menu a:hover {
    background: rgba(255, 255, 255, 0.5);
    transform: translateY(-1px);
}

/* ==========================================================================
   Marquee Strip Animation
   ========================================================================== */
.landing-scope .strip {
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-left: none;
    border-right: none;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.04);
    color: var(--text-main);
    overflow: hidden;
    padding: 1.5rem 0;
    white-space: nowrap;
    margin: 4rem 0;
    width: 100%;
    max-width: 100%;
    position: relative;
}
.landing-scope .strip-track {
    display: flex;
    align-items: center;
    width: max-content;
    animation: marquee 30s linear infinite;
}
@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.landing-scope .strip-pill {
    padding: 0 2rem;
    font-weight: 700;
    font-size: 1.1rem;
    opacity: 0.8;
}

/* ==========================================================================
   Radical Reset for Landing Page (removes the default glass panel card)
   ========================================================================== */
.landing-scope-active #alert-msg,
.landing-scope-active #banner,
.landing-scope-active #pageTitle,
.landing-scope-active .brand-meta {
    display: none !important;
}

.landing-scope-active #body,
.landing-scope-active #container,
.landing-scope-active #body-page,
.landing-scope-active #content {
    margin: 0 !important;
    padding: 0 !important;
    max-width: none !important;
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: none !important;
    border: none !important;
    width: 100% !important;
    min-height: auto !important;
}
