:root {
    /* Light Theme Variables */
    --bg-main: #f8fafc;
    --bg-nav: rgba(255, 255, 255, 0.8);
    --bg-card: #ffffff;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --card-shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    
    /* Brand Colors */
    --primary: #4f46e5;
    --primary-hover: #4338ca;
    
    /* Icon Colors */
    --color-indigo: #6366f1;
    --color-rose: #f43f5e;
    --color-emerald: #10b981;
    --color-blue: #3b82f6;
    --color-orange: #f97316;
    --color-green: #22c55e;
    --color-violet: #8b5cf6;
    --color-yellow: #eab308;
    --color-red: #ef4444;
    --color-cyan: #06b6d4;

    /* Spacing & Border */
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-full: 9999px;
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark Theme Variables */
[data-theme="dark"] {
    --bg-main: #0f172a;
    --bg-nav: rgba(15, 23, 42, 0.8);
    --bg-card: #1e293b;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --border-color: #334155;
    --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2);
    --card-shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.3), 0 0 15px rgba(79, 70, 229, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.5;
    transition: background-color var(--transition-smooth), color var(--transition-smooth);
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Navbar */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: var(--bg-nav);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    transition: background-color var(--transition-smooth), border-color var(--transition-smooth);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.logo i {
    font-size: 1.8rem;
}

.nav-menu {
    display: flex;
    align-items: center;
    flex: 1;
    justify-content: space-between;
}

.nav-links {
    display: flex;
    gap: 2rem;
    margin-left: 2rem;
}

.nav-link {
    font-weight: 500;
    color: var(--text-muted);
    transition: color var(--transition-fast);
}

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.icon-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: color var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-btn:hover {
    color: var(--primary);
}

.btn-text {
    font-weight: 600;
    color: var(--text-main);
    transition: color var(--transition-fast);
}

.btn-text:hover {
    color: var(--primary);
}

.btn-primary {
    background-color: var(--primary);
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    transition: background-color var(--transition-fast), transform var(--transition-fast);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    color: white;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 6rem 2rem 1rem;
    max-width: 1000px;
    margin: 0 auto;
}

.badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background-color: rgba(79, 70, 229, 0.1);
    color: var(--primary);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

[data-theme="dark"] .badge {
    background-color: rgba(79, 70, 229, 0.2);
    color: #818cf8;
}

.hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero p {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem 4rem;
}

/* Filters */
.filters-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 3rem;
}

.filter-btn {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 0.6rem 1.5rem;
    border-radius: var(--radius-full);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
    font-family: inherit;
}

.filter-btn:hover {
    border-color: var(--text-muted);
    color: var(--text-main);
}

.filter-btn.active {
    background-color: var(--text-main);
    color: var(--bg-main);
    border-color: var(--text-main);
}

/* Tools Grid */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.tool-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    transition: all var(--transition-smooth);
    box-shadow: var(--card-shadow);
}

.tool-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: var(--card-shadow-hover);
    border-color: var(--primary);
}

.tool-icon {
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem;
    border-radius: var(--radius-md);
    background-color: rgba(0,0,0,0.03);
}

[data-theme="dark"] .tool-icon {
    background-color: rgba(255,255,255,0.05);
}

/* Icon Colors */
.color-indigo { color: var(--color-indigo); }
.color-rose { color: var(--color-rose); }
.color-emerald { color: var(--color-emerald); }
.color-blue { color: var(--color-blue); }
.color-orange { color: var(--color-orange); }
.color-green { color: var(--color-green); }
.color-violet { color: var(--color-violet); }
.color-yellow { color: var(--color-yellow); }
.color-red { color: var(--color-red); }
.color-cyan { color: var(--color-cyan); }

.tool-content h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.tool-content p {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* Trust Section */
.trust-section {
    text-align: center;
    margin-top: 6rem;
    padding: 4rem 2rem;
    background-color: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
}

.trust-section h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.trust-section p {
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 2rem;
}

.trust-badges {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.badge-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--text-main);
}

.badge-item i {
    font-size: 1.5rem;
    color: var(--primary);
}

/* Footer */
.footer {
    background-color: var(--bg-card);
    border-top: 1px solid var(--border-color);
    padding: 4rem 2rem 2rem;
    margin-top: 4rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-col h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.footer-col a {
    display: block;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
    transition: color var(--transition-fast);
}

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

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    font-size: 1.25rem;
    color: var(--text-muted);
    transition: color var(--transition-fast);
}

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

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.tool-card {
    animation: fadeIn 0.4s ease forwards;
}

/* Responsive */
@media (max-width: 768px) {
    .mobile-only { display: flex !important; }
    
    .nav-container { padding: 1rem; position: relative; }
    .nav-menu {
        display: none; /* Hidden by default on mobile, toggled via JS */
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--bg-nav);
        backdrop-filter: blur(12px);
        border-bottom: 1px solid var(--border-color);
        padding: 1rem;
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    }
    .nav-menu.active {
        display: flex;
        animation: slideDown 0.3s ease forwards;
    }
    .nav-links {
        flex-direction: column;
        gap: 1rem;
        margin-bottom: 1.5rem;
        width: 100%;
    }
    .nav-actions {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
    }
    .btn-primary { text-align: center; width: 100%; }
    
    .hero { padding: 4rem 1rem 1rem; }
    .hero h1 { font-size: 2rem; }
    .container { padding: 0 1rem 3rem; }
    
    .tools-grid { grid-template-columns: 1fr; }
    .footer-container { grid-template-columns: 1fr; gap: 2rem; }
    .footer-bottom { flex-direction: column; text-align: center; }
    
    .filters-container { gap: 0.5rem; margin-bottom: 2rem; }
    .filter-btn { padding: 0.5rem 1rem; font-size: 0.85rem; }
    
    .auth-container, .account-container, .page-content { margin: 2rem 1rem; padding: 1.5rem; }
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- Badges pour outils en cours de développement --- */
.tool-card.coming-soon { opacity: 0.6; cursor: not-allowed; pointer-events: none; position: relative; filter: grayscale(50%); }
.tool-card.coming-soon::after { content: attr(data-badge); position: absolute; top: 10px; right: 10px; background: var(--text-muted); color: white; padding: 2px 8px; border-radius: 10px; font-size: 0.7rem; font-weight: bold; }


/* --- GLOBALS FOR ARTICLES AND LEGAL PAGES --- */
.page-header { text-align: center; padding: 5rem 2rem 3rem; background: var(--bg-card); border-bottom: 1px solid var(--border-color); }
.page-header h1 { font-size: 2.8rem; margin-bottom: 1rem; color: var(--primary); font-weight: 700; letter-spacing: -0.02em; max-width: 900px; margin-left: auto; margin-right: auto; line-height: 1.2; }
.page-header p { font-size: 1.25rem; color: var(--text-muted); max-width: 600px; margin: 0 auto; }
.page-content { max-width: 800px; margin: 4rem auto; padding: 3rem; background: var(--bg-card); border-radius: var(--radius-lg); border: 1px solid var(--border-color); line-height: 1.8; box-shadow: var(--card-shadow); font-size: 1.1rem; }
.page-content h2 { font-size: 2rem; margin-top: 3rem; margin-bottom: 1.5rem; color: var(--text-main); font-weight: 600; border-bottom: 2px solid var(--border-color); padding-bottom: 0.5rem; }
.page-content h2:first-child { margin-top: 0; }
.page-content h3 { font-size: 1.4rem; margin-top: 2rem; margin-bottom: 1rem; color: var(--text-main); font-weight: 500; }
.page-content p { margin-bottom: 1.5rem; color: var(--text-muted); }
.page-content strong { color: var(--text-main); font-weight: 600; }
.page-content ul, .page-content ol { margin-bottom: 2rem; padding-left: 2rem; color: var(--text-muted); }
.page-content li { margin-bottom: 0.5rem; }
.btn-return { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--primary); font-weight: 600; margin-bottom: 2rem; transition: 0.2s; }
.btn-return:hover { transform: translateX(-5px); color: var(--primary-hover); }
.article-meta { display: flex; align-items: center; justify-content: center; gap: 1rem; color: var(--text-muted); font-size: 0.9rem; margin-top: 2rem; }
.cta-box { background: rgba(79, 70, 229, 0.05); border: 2px dashed var(--primary); padding: 2rem; text-align: center; border-radius: var(--radius-md); margin: 3rem 0; }
.cta-btn { display: inline-block; background: var(--primary); color: white; padding: 1rem 2rem; border-radius: var(--radius-full); font-weight: 600; margin-top: 1rem; transition: 0.2s; }
.cta-btn:hover { background: var(--primary-hover); transform: translateY(-2px); color: white; }
.faq-box { background: var(--bg-main); padding: 1.5rem; border-radius: var(--radius-md); margin-bottom: 1rem; border: 1px solid var(--border-color); }
.faq-box h4 { margin: 0 0 0.5rem 0; color: var(--text-main); font-size: 1.1rem; }
.faq-box p { margin: 0; font-size: 1rem; }
.legal-footer { margin-top: 4rem; padding-top: 2rem; border-top: 1px dashed var(--border-color); font-size: 0.9rem; color: var(--text-muted); text-align: center; }
