/* ========================================
   DESIGN SYSTEM - Base de connaissances
   Version: 2.0
   ======================================== */

@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap");

/* ========================================
   VARIABLES CSS
   ======================================== */

:root {
    /* Palette de couleurs principales */
    --primary-color: #5B4FE6;
    --primary-dark: #4A3FCC;
    --primary-light: #7B6FFF;
    --secondary-color: #1E293B;
    --secondary-light: #334155;

    /* Couleurs d'accent */
    --accent-purple: #8B5CF6;
    --accent-blue: #3B82F6;
    --accent-green: #10B981;
    --accent-orange: #F59E0B;
    --accent-red: #EF4444;

    /* Couleurs de texte */
    --text-primary: #1E293B;
    --text-secondary: #64748B;
    --text-muted: #6b7280; /* Amélioration contraste WCAG AA */
    --text-white: #FFFFFF;

    /* Couleurs de fond */
    --bg-primary: #FFFFFF;
    --bg-secondary: #F8FAFC;
    --bg-tertiary: #F1F5F9;
    --bg-dark: #0F172A;
    --bg-hero: #1a1a2e;

    /* Couleurs Hero & Orbes */
    --orb-blue-1: #4e54c8;
    --orb-blue-2: #8f94fb;
    --gradient-title-start: #fff;
    --gradient-title-end: #b0b5ff;

    /* Couleurs de bordure */
    --border-light: #E2E8F0;
    --border-medium: #CBD5E1;
    --border-dark: #94A3B8;

    /* Ombres */
    --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);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

    /* Espacements */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;

    /* Border radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 400ms cubic-bezier(0.68, -0.55, 0.265, 1.55);

    /* Typographie */
    --font-primary: "Outfit", "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-headings: "Outfit", "Poppins", sans-serif;

    /* Largeurs max conteneur */
    --container-sm: 640px;
    --container-md: 768px;
    --container-lg: 1024px;
    --container-xl: 1280px;
    --container-article: 800px;
}

/* ========================================
   RESET & BASE
   ======================================== */

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Optimisation GPU pour animations */
.orb-1, .orb-2,
.article-card,
.profile-card {
    will-change: transform;
}

/* Optimisation scroll mobile */
body {
    -webkit-overflow-scrolling: touch;
}

body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-primary);
    background: linear-gradient(180deg, #F8FAFC 0%, #EEF2FF 50%, #F8FAFC 100%);
    background-attachment: fixed;
    min-height: 100vh;
}

/* ========================================
   TYPOGRAPHIE
   ======================================== */

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
    margin-top: 2em;
    margin-bottom: 0.75em;
}

h1 {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.025em;
    margin-top: 0;
}

h2 {
    font-size: 2rem;
    font-weight: 600;
    color: var(--primary-color);
    border-left: 4px solid var(--primary-color);
    padding-left: var(--spacing-lg);
    margin-top: 2.5em;
}

h3 {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--accent-purple);
}

h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--secondary-color);
}

h5 {
    font-size: 1.1rem;
    font-weight: 600;
}

h6 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-secondary);
}

p {
    margin-bottom: 1.25em;
    color: var(--text-primary);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

strong {
    font-weight: 600;
    color: var(--text-primary);
}

em {
    font-style: italic;
}

/* ========================================
   HEADER & NAVIGATION
   ======================================== */

.site-header {
    
       position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    padding: 15px 0;
    /* background: rgba(26, 26, 46, 0.7); */
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    /* border-bottom: 1px solid rgba(255, 255, 255, 0.08); */
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s 
ease;
    
}

.site-header * {
    color: var(--primary-color);
}

.header-container {
    max-width: var(--container-xl);
    margin: 0 auto;
    padding: 0 var(--spacing-xl);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--spacing-xl);
    flex-wrap: wrap;
    color: white;
}

.header-container .search-container {
    flex: 1;
    min-width: 250px;
    max-width: 400px;
}

.site-logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.025em;
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.site-logo:hover {
    text-decoration: none;
    opacity: 0.9;
}

.logo-icon {
    height: 32px;
    width: auto;
    display: block;
}

.site-nav {
    display: flex;
    gap: var(--spacing-xl);
    align-items: center;
}

.nav-link {
    font-weight: 500;
    font-size: 0.95rem;
    transition: opacity var(--transition-fast);
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.nav-link:hover {
    opacity: 0.8;
    text-decoration: none;
}

/* ========================================
   BREADCRUMBS
   ======================================== */

.breadcrumbs {
    max-width: var(--container-article);
    margin: var(--spacing-xl) auto;
    padding: 0 var(--spacing-xl);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: 0.875rem;
    color: var(--text-secondary);
    flex-wrap: nowrap; 
    overflow: hidden; 
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 250px; /* Amélioré pour éviter trop de troncature */
    flex-shrink: 0;
}

.breadcrumb-item:last-child {
    flex-shrink: 1;
    max-width: 400px; /* Plus généreux pour le dernier élément */
    color: var(--text-secondary);
}

.breadcrumb-separator {
    color: var(--text-secondary); /* Meilleur contraste */
}

.breadcrumb-link {
    color: var(--text-secondary);
    transition: color var(--transition-fast);
}

.breadcrumb-link:hover {
    color: var(--primary-color);
    text-decoration: none;
}

.breadcrumb-current {
    color: var(--text-primary);
    font-weight: 500;
}

/* ========================================
   CONTAINER & LAYOUT
   ======================================== */

.container {
    max-width: var(--container-xl);
    margin: 0 auto;
    padding: 0 var(--spacing-xl);
}

.article-container {
    max-width: var(--container-article);
    margin: 0 auto;
    padding: var(--spacing-2xl) var(--spacing-xl);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 60px 0 rgba(31, 38, 135, 0.15);
    margin-bottom: var(--spacing-2xl);
    border: 1px solid rgba(255, 255, 255, 0.5);
    animation: fadeInUp 0.6s ease-out;
    padding-top: 30px !important;
}

.article-container header p{
    color: var(--primary-color);
}

/* ========================================
   CARDS
   ======================================== */

.card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
    transition: all var(--transition-base);
    border: 1px solid rgba(255, 255, 255, 0.5);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.card:hover::before {
    left: 100%;
}

.card:hover {
    box-shadow: 0 20px 60px 0 rgba(31, 38, 135, 0.25);
    transform: translateY(-6px) scale(1.02);
    border-color: rgba(102, 126, 234, 0.3);
}

.card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.card-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

.card-icon {
    font-size: 1.5rem;
    color: var(--primary-color);
}

/* ========================================
   GRID LAYOUTS
   ======================================== */

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-xl);
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-xl);
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-lg);
}

@media (max-width: 1024px) {
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

/* ========================================
   COMPOSANTS SPÉCIAUX
   ======================================== */

/* Intro box - Utilisé dans les articles */
.intro {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    background-size: 200% 200%;
    color: var(--text-white);
    padding: var(--spacing-2xl);
    border-radius: var(--radius-xl);
    margin-bottom: var(--spacing-2xl);
    box-shadow: 0 20px 60px 0 rgba(102, 126, 234, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.intro * {
    color: var(--text-white);
    position: relative;
    z-index: 1;
}

.intro h2 {
    border-left: 5px solid var(--text-white);
    color: var(--text-white);
    margin-top: 0;
}

/* CTA sections */
.cta-section {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--secondary-light) 100%);
    color: var(--text-white);
    padding: var(--spacing-2xl);
    border-radius: var(--radius-xl);
    text-align: center;
    margin: var(--spacing-2xl) 0;
}

.cta-section * {
    color: var(--text-white);
}

.cta-section h2 {
    font-size: 2rem;
    margin-top: 0;
    margin-bottom: 1rem;
    border: none;
    padding: 0;
}

/* DEPRECATED - Key takeaway */
/* ⚠️ CLASSE OBSOLÈTE : Utiliser .tldr à la place */
/* Conservée temporairement pour compatibilité, sera supprimée en V2 */
.key-takeaway {
    background-color: #ECFDF5;
    border-left: 5px solid var(--accent-green);
    padding: var(--spacing-xl);
    border-radius: var(--radius-md);
    margin: var(--spacing-xl) 0;
}

.key-takeaway h3 {
    color: var(--accent-green);
    margin-top: 0;
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

/* ========================================
   ENCADRÉS - Design minimaliste unifié
   Fond unique gris clair, seule bordure gauche colorée
   ======================================== */

/* Base commune pour toutes les boxes */
.info-box,
.warning-box,
.success-box,
.legal-risk,
.legal-base,
.tip,
.warning,
.example,
.action-list,
.case-study,
.tldr {
    background-color: #F8F9FA;
    padding: var(--spacing-xl);
    border-radius: var(--radius-md);
    margin: var(--spacing-xl) 0;
    line-height: 1.7;
}

/* Info box (bleu) - Informations générales, définitions */
.info-box,
.tip,
.tldr {
    border-left: 4px solid var(--accent-blue);
}

.info-box h4,
.tip h3,
.tip h4,
.tldr h3 {
    color: var(--accent-blue);
    margin-top: 0;
    margin-bottom: var(--spacing-md);
    font-size: 1.1rem;
}

.tip-icon {
    font-weight: 600;
    color: var(--accent-blue);
    display: block;
    margin-bottom: var(--spacing-sm);
}

/* Warning box (orange) - Avertissements, attention */
.warning-box,
.legal-base,
.warning {
    border-left: 4px solid var(--accent-orange);
}

.warning-box h4,
.legal-base h4,
.warning h4 {
    color: var(--accent-orange);
    margin-top: 0;
    margin-bottom: var(--spacing-md);
    font-size: 1.1rem;
}

.warning-icon {
    font-weight: 600;
    color: var(--accent-orange);
    display: block;
    margin-bottom: var(--spacing-sm);
}

/* Danger box (rouge) - Risques critiques, pièges à éviter */
.legal-risk {
    border-left: 4px solid var(--accent-red);
}

.legal-risk h4 {
    color: var(--accent-red);
    margin-top: 0;
    margin-bottom: var(--spacing-md);
    font-size: 1.1rem;
}

.legal-risk ul {
    margin-bottom: var(--spacing-md);
}

.legal-risk li {
    margin-bottom: var(--spacing-md);
    line-height: 1.6;
}

.legal-risk p:last-child {
    margin-bottom: 0;
}

/* Neutral box - Exemples, cas pratiques */
.example,
.action-list,
.case-study,
.success-box {
    border-left: 4px solid var(--text-secondary);
}

.example {
    font-style: italic;
}

.action-list strong,
.case-study h4 {
    color: var(--text-primary);
    display: block;
    margin-bottom: var(--spacing-md);
    font-size: 1.05rem;
}

.action-list ol,
.action-list ul {
    margin-left: var(--spacing-lg);
    margin-bottom: 0;
}

.action-list li {
    margin-bottom: var(--spacing-sm);
    line-height: 1.6;
}

.tldr h3 {
    color: var(--accent-blue);
    margin-top: 0;
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.tldr ul {
    margin-bottom: 0;
}

.tldr li {
    margin-bottom: var(--spacing-sm);
}

/* Resources box */
.resources {
    background-color: #F0FDF4;
    border-left: 5px solid var(--accent-green);
    padding: var(--spacing-xl);
    border-radius: var(--radius-md);
    margin: var(--spacing-xl) 0;
}

.resources h3 {
    color: var(--accent-green);
    margin-top: 0;
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.resources ul {
    margin-bottom: 0;
}

/* Disclaimer */
.disclaimer {
    background-color: var(--bg-tertiary);
    padding: var(--spacing-lg);
    border-radius: var(--radius-md);
    margin: var(--spacing-xl) 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
    border: 1px solid var(--border-light);
}

.disclaimer strong {
    color: var(--text-primary);
}

.disclaimer p {
    margin-bottom: 0;
}

/* ========================================
   LISTES
   ======================================== */

ul, ol {
    margin-left: var(--spacing-xl);
    margin-bottom: var(--spacing-lg);
}

li {
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
}

/* Checklist */
.checklist {
    background-color: var(--bg-tertiary);
    padding: var(--spacing-xl);
    border-radius: var(--radius-md);
    margin: var(--spacing-xl) 0;
}

.checklist li {
    list-style: none;
    position: relative;
    padding-left: 2rem;
    margin-bottom: var(--spacing-md);
}

.checklist li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent-green);
    font-weight: bold;
    font-size: 1.4em;
    top: -2px;
}

/* ========================================
   TABLEAUX
   ======================================== */

table {
    width: 100%;
    border-collapse: collapse;
    margin: var(--spacing-xl) 0;
    box-shadow: var(--shadow-md);
    border-radius: var(--radius-md);
    overflow: hidden;
}

table th,
table td {
    padding: var(--spacing-md);
    text-align: left;
    border-bottom: 1px solid var(--border-light);
}

table th {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-purple) 100%);
    color: var(--text-white);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
}

table th * {
    color: var(--text-white);
}

table tr:last-child td {
    border-bottom: none;
}

table tr:nth-child(even) {
    background-color: var(--bg-secondary);
}

table tr {
    transition: background-color var(--transition-fast);
}

table tbody tr:hover {
    background-color: var(--bg-tertiary);
}

/* ========================================
   FOOTER
   ======================================== */

.site-footer {
    background-color: var(--secondary-color);
    color: var(--text-white);
    padding: var(--spacing-3xl) 0 var(--spacing-xl);
    margin-top: var(--spacing-3xl);
}

.site-footer * {
    color: var(--text-white);
}

.footer-container {
    max-width: var(--container-xl);
    margin: 0 auto;
    padding: 0 var(--spacing-xl);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--spacing-2xl);
    margin-bottom: var(--spacing-2xl);
}

.footer-section h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: var(--spacing-md);
    color: var(--text-white);
}

.footer-section p {
    color: #cbd5e1; /* Meilleur contraste sur fond sombre */
    font-size: 0.9rem;
    line-height: 1.6;
}

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

.footer-links li {
    margin-bottom: var(--spacing-sm);
}

.footer-links a {
    color: #cbd5e1; /* Meilleur contraste sur fond sombre */
    font-size: 0.9rem;
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--text-white);
    text-decoration: none;
}

.footer-bottom {
    border-top: 1px solid var(--secondary-light);
    padding-top: var(--spacing-lg);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ========================================
   ADDITIONAL CONTENT STYLES
   ======================================== */

/* Contract clauses styling */
.contract-clause {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    margin: var(--spacing-xl) 0;
    border: 1px solid rgba(139, 92, 246, 0.2);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
    font-family: var(--font-secondary);
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--text-primary);
    white-space: pre-wrap;
    transition: all var(--transition-base);
}

.contract-clause:hover {
    border-color: rgba(139, 92, 246, 0.4);
    box-shadow: 0 12px 40px 0 rgba(31, 38, 135, 0.15);
}

.contract-clause strong {
    color: var(--accent-purple);
    font-weight: 700;
    display: block;
    margin-bottom: var(--spacing-md);
    font-size: 1.1rem;
}

/* Responsive tables */
.article-container table {
    width: 100%;
    border-collapse: collapse;
    margin: var(--spacing-xl) 0;
    overflow: hidden;
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

/* Table wrapper for horizontal scroll on mobile */
.article-container table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

@media (max-width: 768px) {
    .article-container table {
        font-size: 0.85rem;
    }

    .article-container table th,
    .article-container table td {
        padding: 0.75rem 0.5rem;
        min-width: 100px;
    }
}

/* Search bar styles */
.search-container {
    position: relative;
    max-width: 500px;
    width: 100%;
}

.search-input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    font-size: 0.95rem;
    color: var(--text-primary);
    transition: all var(--transition-base);
    outline: none;
}

.search-input::placeholder {
    color: rgba(100, 116, 139, 0.7);
}

.search-input:focus {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(139, 92, 246, 0.5);
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.15);
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    font-size: 1.1rem;
    pointer-events: none;
}

.search-results {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    max-height: 400px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.search-result-item {
    padding: 1rem;
    border-bottom: 1px solid rgba(226, 232, 240, 0.5);
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none;
    display: block;
}

.search-result-item:hover {
    background: rgba(139, 92, 246, 0.08);
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-category {
    font-size: 0.75rem;
    color: var(--accent-purple) !important;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
}

.search-result-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary) !important;
}

.search-no-results {
    padding: 2rem;
    text-align: center;
    color: var(--text-secondary) !important;
}


.search-no-results, .search-no-results p, .search-hint{
    color: var(--text-secondary) !important;
}
.search-hint {
    font-size: 0.85rem;
    margin-top: 0.5rem;
    opacity: 0.8;
}

/* Nouveaux \u00e9l\u00e9ments recherche full-text */
.search-result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.4rem;
}

.search-result-score {
    font-size: 1rem;
    opacity: 0.6;
}

.search-result-excerpt {
    font-size: 0.8rem;
    color: var(--text-secondary) !important;
    line-height: 1.4;
    margin-top: 0.4rem;
    font-style: italic;
}

/* Surlignage des matches */
.search-result-item mark {
    background-color: rgba(139, 92, 246, 0.2);
    color: var(--primary-color);
    padding: 2px 4px;
    border-radius: 3px;
    font-weight: 600;
}

/* ========================================
   UTILITIES
   ======================================== */

.text-center {
    text-align: center;
}

.text-muted {
    color: var(--text-muted);
}

.mt-0 { margin-top: 0; }
.mt-sm { margin-top: var(--spacing-sm); }
.mt-md { margin-top: var(--spacing-md); }
.mt-lg { margin-top: var(--spacing-lg); }
.mt-xl { margin-top: var(--spacing-xl); }

.mb-0 { margin-bottom: 0; }
.mb-sm { margin-bottom: var(--spacing-sm); }
.mb-md { margin-bottom: var(--spacing-md); }
.mb-lg { margin-bottom: var(--spacing-lg); }
.mb-xl { margin-bottom: var(--spacing-xl); }

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    :root {
        font-size: 15px;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.6rem;
    }

    .site-header {
        padding: var(--spacing-md) 0;
    }

    .header-container {
        flex-direction: column;
        gap: var(--spacing-md);
    }

    .site-nav {
        flex-wrap: wrap;
        gap: var(--spacing-md);
        justify-content: center;
    }

    .article-container {
        padding: var(--spacing-xl) var(--spacing-md);
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }

    .breadcrumbs {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .container,
    .header-container,
    .footer-container {
        padding: 0 var(--spacing-md);
    }

    .article-container {
        border-radius: 0;
        padding: var(--spacing-lg) var(--spacing-md);
    }
    .container{
    display: flex;
    flex-direction: column;
    align-items: center;
    }
}

/* ========================================
   RESPONSIVE AMÉLIORÉ - NOUVEAUX COMPOSANTS
   ======================================== */

/* Tablet - 1024px */
@media (max-width: 1024px) {
    .hero h1 {
        font-size: 2.8rem;
    }

    .hero-stats {
        grid-template-columns: 1fr !important;
        /* max-width: 400px; */
        margin: 2rem auto 0;
    }

    .stat-card {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 15px 20px;
    }

    .stat-number {
        font-size: 1.8rem;
        margin-bottom: 0;
        margin-right: 15px;
    }

    .categories-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }

    .profile-hero h1 {
        font-size: 2rem;
    }

    .orb-1, .orb-2 {
        filter: blur(60px);
    }

    .orb-1 {
        width: 300px;
        height: 300px;
    }

    .orb-2 {
        width: 400px;
        height: 400px;
    }
}

/* Mobile - 768px */
@media (max-width: 768px) {
    .hero {
        min-height: auto;
        padding: var(--spacing-3xl) 0;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 1.05rem;
    }

    .hero-search {
        margin: 0 auto 2rem;
    }

    .hero-search-input {
        padding: 1rem 1rem 1rem 3rem;
        font-size: 1rem;
    }

    .hero-search-icon {
        left: 1rem;
        font-size: 1rem;
    }

    .hero-badge {
        font-size: 0.75rem;
        padding: 4px 12px;
    }

    .profile-hero {
        padding: var(--spacing-3xl) 0;
    }

    .profile-hero h1 {
        font-size: 1.8rem;
    }

    .profile-hero-icon {
        font-size: 3rem;
    }

    .profile-hero-description {
        font-size: 1rem;
    }

    .category-group-title {
        font-size: 1.3rem;
    }

    .articles-list {
        grid-template-columns: 1fr;
    }

    .article-card {
        padding: 1.25rem;
    }

    /* Orbes plus discrètes sur mobile pour meilleures performances */
    .orb-1, .orb-2 {
        opacity: 0.25;
        filter: blur(40px);
    }

    .orb-1 {
        width: 200px;
        height: 200px;
    }

    .orb-2 {
        width: 250px;
        height: 250px;
    }

    /* Hero responsive */
    .hero h1 {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 1.05rem;
    }

    .hero-badge {
        font-size: 0.75rem;
        padding: 4px 12px;
    }

    /* Categories grid responsive */
    .categories-grid {
        grid-template-columns: 1fr;
    }

    /* Header responsive amélioré */
    .header-search-container {
        width: 100%;
        max-width: 100%;
    }

    .site-nav {
        width: 100%;
    }

    .nav-link {
        font-size: 0.9rem;
    }

    /* Intro articles responsive - pas de marges négatives pour éviter overflow */
    .article-container header {
        padding: var(--spacing-lg) var(--spacing-md);
        margin: 0 0 var(--spacing-md) 0;
        border-radius: var(--radius-lg);
    }

    .article-container header h1 {
        font-size: 1.6rem;
    }

    .article-container header .intro {
        font-size: 1rem;
    }

     .hero-stats {
        grid-template-columns: 1fr !important;
       
    }
}

/* Small Mobile - 480px */
@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
    }

    .hero-search-input {
        padding: 0.875rem 0.875rem 0.875rem 2.75rem;
        font-size: 0.9rem;
    }

    .hero-search-input::placeholder {
        font-size: 0.85rem;
    }

    .profile-hero h1 {
        font-size: 1.5rem;
    }

    .profile-hero-icon {
        font-size: 2.5rem;
    }

    .profile-hero-description {
        font-size: 0.9rem;
    }

    .category-group-title {
        font-size: 1.2rem;
    }

    .article-title {
        font-size: 1rem;
    }

    .article-category-badge {
        font-size: 0.65rem;
        padding: 0.2rem 0.6rem;
    }

    /* Orbes cachées sur très petits écrans */
    .orb-1, .orb-2 {
        opacity: 0.2;
    }
}

/* ========================================
   ACCESSIBILITÉ WCAG 2.1 AA
   ======================================== */

/* Focus visible pour navigation clavier */
*:focus-visible {
    outline: 3px solid var(--accent-purple);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

/* Focus spécifique pour les liens */
a:focus-visible {
    outline: 3px solid var(--accent-purple);
    outline-offset: 3px;
}

/* Focus pour boutons et inputs */
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 3px solid var(--accent-purple);
    outline-offset: 2px;
}

/* Skip link pour navigation clavier */
.skip-link {
    position: absolute;
    top: -100px;
    left: 0;
    background: var(--bg-hero);
    color: white;
    padding: var(--spacing-md) var(--spacing-lg);
    text-decoration: none;
    z-index: 9999;
    border-radius: 0 0 var(--radius-md) 0;
    font-weight: 600;
}

.skip-link:focus {
    top: 0;
}

/* Réduction de mouvement (prefers-reduced-motion) */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .orb-1, .orb-2 {
        animation: none;
    }
}

/* Mode sombre forcé (prefers-color-scheme) */
@media (prefers-color-scheme: dark) {
    /* Le site utilise déjà des fonds sombres, pas de changement nécessaire */
}

/* Amélioration des contrastes pour textes - Déjà géré via variable */

/* États hover accessibles */
.article-card:hover,
.profile-card:hover {
    outline: 2px solid transparent;
}

.article-card:focus-within,
.profile-card:focus-within {
    outline: 3px solid var(--accent-purple);
    outline-offset: 2px;
}

/* Liens dans le contenu - accessibilité */
.article-container a {
    text-decoration: underline;
    text-underline-offset: 3px;
    color: var(--accent-blue);
}

.article-container a:hover {
    color: var(--accent-purple);
}

/* Tables accessibles */
.article-container table th {
    font-weight: 700;
    text-align: left;
}

.article-container table caption {
    font-weight: 700;
    text-align: left;
    padding: var(--spacing-md);
    caption-side: top;
}

/* SR-only (screen reader only) utility class */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* ========================================
   ANIMATIONS
   ======================================== */

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

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes gradient-shift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}

.fade-in {
    animation: fadeIn var(--transition-base) ease-out;
}

/* Scroll reveal animations */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   HERO SECTION MODERNE AVEC ORBES
   ======================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: var(--bg-hero);
    padding: 4rem 0;
    margin-bottom: 0;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    padding: 0 20px;
}

.hero-badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: var(--radius-full);
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    font-size: 0.85rem;
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #cfd1ff;
    font-weight: 600;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    background: linear-gradient(to right, var(--gradient-title-start), var(--gradient-title-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255,255,255,0.8);
    margin: 0 auto 50px;
    max-width: 634px;
    font-weight: 300;
    line-height: 1.6;
}

/* Stats en cartes de verre */
.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 2rem;
}

.stat-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 25px;
    transition: transform var(--transition-base), background var(--transition-base);
}

.stat-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255,255,255,0.25);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.2);
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.6);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

/* Hero Search Bar */
.hero-search {
    position: relative;
    max-width: 600px;
    margin: 0 auto 3rem;
}

.hero-search-input {
    width: 100%;
    padding: 1.25rem 1.5rem 1.25rem 3.5rem;
    font-size: 1.1rem;
    border: 2px solid rgba(255, 255, 255, 0.25);
    border-radius: var(--radius-full);
    background: rgba(30, 30, 50, 0.6);
    color: var(--text-white);
    font-family: var(--font-primary);
    transition: all var(--transition-base);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.hero-search-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.hero-search-input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(30, 30, 50, 0.8);
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.3);
}

.hero-search-icon {
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.25rem;
    pointer-events: none;
}

.hero-search-results {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    max-height: 400px;
    overflow-y: auto;
    z-index: 100;
    display: none;
}

.hero-search-results.active {
    display: block;
}

.hero-search-results .search-result-item {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-primary);
    text-decoration: none;
    display: block;
    transition: background var(--transition-fast);
}

.hero-search-results .search-result-item:hover {
    background: var(--bg-secondary);
}

.hero-search-results .search-result-item:last-child {
    border-bottom: none;
}

/* ========================================
   SECTIONS CONTENU PAGE D'ACCUEIL
   ======================================== */
.section-title {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--secondary-color);
    margin-top: 4rem;
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Bento Grid Layout */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto;
    gap: 1.5rem;
    margin-bottom: 4rem;
}

/* Featured card - spans 2 columns */
.category-card.featured {
    grid-column: span 2;
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 1.5rem;
}

.category-card.featured .category-icon {
    font-size: 3.5rem;
    margin-bottom: 0;
}

.category-card.featured .category-content {
    text-align: left;
}

/* Last card spans 2 columns to fill the row */
.category-card.full-width {
    grid-column: span 2;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 1.5rem;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

.category-card.full-width .category-icon {
    font-size: 2.5rem;
    margin-bottom: 0;
}

.category-card.full-width .category-description {
    margin-bottom: 0;
}

.category-card.full-width .category-count {
    margin-top: 0;
}

/* Responsive bento */
@media (max-width: 900px) {
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .category-card.featured,
    .category-card.full-width {
        grid-column: span 2;
    }
}

@media (max-width: 600px) {
    .categories-grid {
        grid-template-columns: 1fr;
    }

    .category-card.featured,
    .category-card.full-width {
        grid-column: span 1;
        display: block;
    }

    .category-card.featured .category-icon,
    .category-card.full-width .category-icon {
        margin-bottom: 1rem;
    }

    .category-card.featured .category-content,
    .category-card.full-width .category-content {
        text-align: left;
    }
}

.category-card {
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    padding: var(--spacing-2xl);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    border: 1px solid var(--border-light);
    display: block;
    text-decoration: none;
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(91, 79, 230, 0.15);
    border-color: var(--primary-color);
    text-decoration: none;
}

.category-card:active {
    transform: translateY(-4px);
    transition: transform 0.1s ease;
}

.category-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
    transition: transform var(--transition-base);
}

.category-card:hover .category-icon {
    transform: scale(1.1);
}

.category-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.category-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.category-count {
    display: inline-block;
    background-color: #EEF2FF;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    color: var(--primary-color);
    font-weight: 600;
}

/* Profils section */
.profiles-section {
    background-color: var(--bg-tertiary);
    padding: 4rem 0;
    border-radius: 2rem;
    margin-bottom: 5rem;
}

.profile-card {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-purple) 100%);
    color: var(--text-white);
    border-radius: var(--radius-xl);
    padding: var(--spacing-2xl);
    text-align: center;
    box-shadow: 0 10px 30px rgba(91, 79, 230, 0.2);
    transition: transform var(--transition-base);
    cursor: pointer;
    text-decoration: none;
    display: block;
}

.profile-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(91, 79, 230, 0.3);
    text-decoration: none;
}

.profile-card:active {
    transform: translateY(-4px) scale(1.01);
    transition: transform 0.1s ease;
}

.profile-icon {
    transition: transform var(--transition-base);
}

.profile-card:hover .profile-icon {
    transform: scale(1.15);
}

.profile-card * {
    color: var(--text-white);
}

.profile-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.profile-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.profile-subtitle {
    font-size: 0.95rem;
    opacity: 0.9;
}

.profile-count {
    margin-top: 1rem;
    font-weight: 600;
    font-size: 1rem;
    opacity: 0.95;
}

/* CTA Wrapper */
.cta-wrapper {
    padding: 0 2rem;
    margin-bottom: 4rem;
    display: flex;
    justify-content: center;
}

/* ========================================
   PROFILE HERO (pages profils)
   ======================================== */
.profile-hero {
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: var(--bg-hero);
    padding: 4rem 0;
    margin-bottom: 0;
    text-align: center;
}

.profile-hero .container {
    position: relative;
    z-index: 2;
}

.profile-hero-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    display: block;
}

.profile-hero h1 {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1rem;
    background: linear-gradient(to right, var(--gradient-title-start), var(--gradient-title-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.profile-hero-description {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.8);
    margin: 0 auto;
    max-width: 600px;
    font-weight: 300;
    line-height: 1.6;
}

.profile-hero * {
    color: white;
}

.profile-hero-stats {
    margin-top: 2rem;
    font-weight: 600;
    font-size: 1.1rem;
    color: rgba(255,255,255,0.9);
}

/* ========================================
   CATEGORY HERO (pages de catégories)
   ======================================== */
.category-hero {
    background: var(--bg-hero);
    background-size: 200% 200%;
    animation: gradient-shift 10s ease infinite;
    color: white;
    padding: 3rem 0;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
}

.category-hero * {
    color: white;
    position: relative;
    z-index: 1;
}

.category-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.category-hero-description {
    font-size: 1.2rem;
    opacity: 0.95;
    max-width: 700px;
    margin: 1rem auto 0;
}

.category-hero-description a {
    color: white;
    text-decoration: underline;
}

/* Articles Grid pour pages catégories */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.article-profile {
    display: inline-block;
    background-color: var(--accent-purple);
    color: white !important;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.article-excerpt {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* ========================================
   COMPOSANTS UTILITAIRES
   ======================================== */

/* Bouton "Signaler une erreur" */
.report-error-container {
    text-align: center;
    margin: var(--spacing-2xl) 0;
    padding: var(--spacing-lg) 0;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

.report-error-button {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md) var(--spacing-xl);
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s var(--transition-base);
}

.report-error-button:hover {
    background-color: #FEF2F2;
    border-color: var(--accent-red);
    color: var(--accent-red);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.report-error-icon {
    font-size: 1.1rem;
}

.report-error-text {
    font-family: var(--font-body);
}

/* ========================================
   CATEGORY GROUPS & ARTICLES LIST
   ======================================== */
.category-group {
    margin-bottom: 4rem;
}

.category-group-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    border-left: 5px solid var(--primary-color);
    padding-left: var(--spacing-lg);
}

.articles-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: var(--spacing-lg);
}

.article-card {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    border: 1px solid var(--border-light);
    display: block;
    text-decoration: none;
}

.article-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
    text-decoration: none;
}

.article-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
    line-height: 1.4;
    margin-top: 0;
}

.article-category-badge {
    display: inline-block;
    background-color: #EEF2FF;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    color: var(--primary-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ========================================
   STYLES COMMUNS - HARMONISATION 2025
   ======================================== */

/* Header Glassmorphism - Utilisé partout */
.site-header {
    background: rgba(26, 26, 46, 0.7) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.site-header * {
    color: white;
}

.header-search-container {
    flex: 1;
    min-width: 250px;
    max-width: 400px;
    position: relative;
}

.header-search-container .search-input {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: white;
}

.header-search-container .search-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.header-search-container .search-icon {
    color: rgba(255, 255, 255, 0.8);
}

.nav-link:hover {
    text-shadow: 0 0 10px rgba(255,255,255,0.5);
}

/* Orbes animées - Style Hero */
.orb-1, .orb-2 {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 1;
    opacity: 0.6;
    animation: floatOrb 10s infinite ease-in-out;
    pointer-events: none;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: var(--orb-blue-1);
    top: -100px;
    left: -100px;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: var(--orb-blue-2);
    bottom: -100px;
    right: -100px;
    animation-delay: -5s;
}

@keyframes floatOrb {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(30px, 50px); }
}

/* Intro Articles - Style élégant bleu */
.article-container header {
    background-color: var(--bg-hero);
    color: white;
    padding: var(--spacing-2xl) var(--spacing-xl);
    margin: calc(var(--spacing-xl) * -1) calc(var(--spacing-xl) * -1) var(--spacing-xl) calc(var(--spacing-xl) * -1);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    position: relative;
    overflow: hidden;
}

.article-container header h1 {
    background: linear-gradient(to right, var(--gradient-title-start), var(--gradient-title-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.article-container header .intro {
    font-size: 1.1rem;
    line-height: 1.8;
    opacity: 0.95;
    color: rgba(255, 255, 255, 0.95);
    margin: 0;
    font-style: normal;
    font-weight: 300;
    background: none;
    border: none;
    padding: 0;
    box-shadow: none;
    border-radius: 0;
}

/* ========================================
   PRINT STYLES
   ======================================== */

@media print {
    .site-header,
    .site-footer,
    .breadcrumbs,
    .site-nav {
        display: none;
    }

    body {
        background-color: white;
    }

    .article-container {
        box-shadow: none;
        max-width: 100%;
    }
}

/* ========================================
   GLOSSAIRE TOOLTIPS
   ======================================== */

/* Terme surligné avec tooltip */
.glossary-term-highlight {
    position: relative;
    background: linear-gradient(120deg, rgba(91, 79, 230, 0.1) 0%, rgba(91, 79, 230, 0.15) 100%);
    border-bottom: 2px dotted var(--primary-color);
    cursor: help;
    padding: 2px 4px;
    border-radius: 3px;
    transition: all 0.2s ease;
    font-weight: 500;
}

.glossary-term-highlight:hover {
    background: linear-gradient(120deg, rgba(91, 79, 230, 0.15) 0%, rgba(91, 79, 230, 0.2) 100%);
    border-bottom-color: var(--primary-dark);
}

/* Tooltip conteneur */
.glossary-tooltip {
    position: fixed;
    z-index: 10000;
    background: white;
    border: 2px solid var(--primary-color);
    border-radius: 12px;
    padding: 16px 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(91, 79, 230, 0.1);
    max-width: 400px;
    min-width: 280px;
    font-size: 14px;
    line-height: 1.6;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.2s ease-out, transform 0.2s ease-out;
    pointer-events: auto;
}

.glossary-tooltip.show {
    opacity: 1;
    transform: translateY(0);
}

/* Header du tooltip */
.glossary-tooltip-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-light);
}

.glossary-tooltip-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.glossary-tooltip-header strong {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 15px;
}

.glossary-tooltip-header small {
    color: var(--text-muted);
    font-size: 12px;
    margin-left: 4px;
}

/* Définition */
.glossary-tooltip-definition {
    color: var(--text-primary);
    margin: 0 0 12px 0;
    font-size: 14px;
    line-height: 1.5;
}

/* Détails supplémentaires */
.glossary-tooltip-details {
    background: var(--bg-secondary);
    padding: 10px 12px;
    border-radius: 6px;
    margin-top: 10px;
    font-size: 13px;
}

.glossary-tooltip-details dt {
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 6px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.glossary-tooltip-details dt:first-child {
    margin-top: 0;
}

.glossary-tooltip-details dd {
    margin: 4px 0 0 0;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* Liens dans le tooltip */
.glossary-tooltip-links {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.glossary-tooltip-links a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: color 0.2s ease;
}

.glossary-tooltip-links a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.glossary-tooltip-links a::before {
    content: "→";
    font-weight: bold;
}

/* Responsive */
@media (max-width: 768px) {
    .glossary-tooltip {
        max-width: calc(100vw - 40px);
        min-width: 260px;
        font-size: 13px;
    }

    .glossary-tooltip-header strong {
        font-size: 14px;
    }

    .glossary-tooltip-definition {
        font-size: 13px;
    }
}

/* ==========================================================================
   FAQ DROPDOWN (details/summary)
   ========================================================================== */

details.faq-item {
    margin-bottom: 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.2s ease;
}

details.faq-item:hover {
    border-color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(91, 79, 230, 0.1);
}

summary.faq-question {
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    font-weight: 600;
    font-size: 1.05rem;
    cursor: pointer;
    user-select: none;
    display: flex;
    align-items: center;
    transition: all 0.2s ease;
    position: relative;
}

summary.faq-question::before {
    content: "Q";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    margin-right: 12px;
    font-size: 0.85rem;
    font-weight: 700;
    flex-shrink: 0;
}

summary.faq-question::after {
    content: "▼";
    position: absolute;
    right: 1.25rem;
    font-size: 0.75rem;
    color: var(--primary-color);
    transition: transform 0.2s ease;
}

details.faq-item[open] summary.faq-question::after {
    transform: rotate(180deg);
}

details.faq-item[open] summary.faq-question {
    background: linear-gradient(135deg, var(--primary-color) 0%, #6d5fd8 100%);
    color: white;
    border-bottom: 1px solid #e0e0e0;
}

details.faq-item[open] summary.faq-question::before {
    background: white;
    color: var(--primary-color);
}

details.faq-item[open] summary.faq-question::after {
    color: white;
}

summary.faq-question:hover {
    background: linear-gradient(135deg, var(--primary-color) 0%, #6d5fd8 100%);
    color: white;
}

summary.faq-question:hover::before {
    background: white;
    color: var(--primary-color);
}

summary.faq-question:hover::after {
    color: white;
}

/* Masquer le marqueur par défaut */
summary.faq-question::-webkit-details-marker {
    display: none;
}

summary.faq-question::marker {
    display: none;
}

.faq-answer {
    padding: 1.25rem;
    background: #fafbfc;
    animation: fadeIn 0.3s ease-out;
}

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

.faq-answer p {
    margin: 0;
    line-height: 1.7;
    color: var(--text-primary);
}

.faq-answer strong {
    color: var(--primary-color);
}

.faq-answer a {
    color: var(--primary-color);
    text-decoration: underline;
}

.faq-answer a:hover {
    color: #6d5fd8;
}

/* Mobile responsive */
@media (max-width: 768px) {
    summary.faq-question {
        font-size: 1rem;
        padding: 0.875rem 1rem;
        padding-right: 2.5rem;
    }

    summary.faq-question::before {
        width: 20px;
        height: 20px;
        font-size: 0.75rem;
        margin-right: 10px;
    }

    summary.faq-question::after {
        right: 1rem;
    }

    .faq-answer {
        padding: 1rem;
    }
}
/* ==========================================================================
   ARTICLE ENHANCEMENTS - UX POUR LECTURE
   ========================================================================== */

/* ========================================
   1. BARRE DE PROGRESSION
   ======================================== */

.reading-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: rgba(91, 79, 230, 0.1);
    z-index: 9999;
}

.reading-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--accent-purple) 100%);
    transition: width 0.1s ease-out;
    width: 0%;
}

/* ========================================
   2. BOUTON RETOUR EN HAUT
   ======================================== */

.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(91, 79, 230, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(91, 79, 230, 0.4);
}

.back-to-top:active {
    transform: translateY(-1px);
}

@media (max-width: 768px) {
    .back-to-top {
        bottom: 1rem;
        right: 1rem;
        width: 44px;
        height: 44px;
        font-size: 1.3rem;
    }
}

/* ========================================
   3. TABLE DES MATIÈRES STICKY
   ======================================== */

.toc-sticky-wrapper {
    position: relative;
    margin: 2rem 0;
}

.article-toc {
    background: #F8F9FA;
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin: 2rem 0;
}

.article-toc h3 {
    margin: 0 0 1rem 0;
    font-size: 1.1rem;
    color: var(--text-primary);
    font-weight: 600;
}

.article-toc ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.article-toc li {
    margin-bottom: 0.5rem;
}

.article-toc a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    line-height: 1.6;
    display: block;
    padding: 0.4rem 0.8rem;
    border-left: 2px solid transparent;
    transition: all 0.2s ease;
    border-radius: 4px;
}

.article-toc a:hover {
    color: var(--primary-color);
    background: rgba(91, 79, 230, 0.05);
    border-left-color: var(--primary-color);
}

.article-toc a.active {
    color: var(--primary-color);
    background: rgba(91, 79, 230, 0.08);
    border-left-color: var(--primary-color);
    font-weight: 600;
}

/* Sticky behavior sur desktop */
@media (min-width: 1024px) {
    .article-toc.toc-sticky {
        position: sticky;
        top: 100px; /* En dessous du header fixe */
        max-height: calc(100vh - 150px);
        overflow-y: auto;
        overflow-x: hidden;
    }

    /* Scrollbar custom pour TOC */
    .article-toc.toc-sticky::-webkit-scrollbar {
        width: 4px;
    }

    .article-toc.toc-sticky::-webkit-scrollbar-track {
        background: transparent;
    }

    .article-toc.toc-sticky::-webkit-scrollbar-thumb {
        background: rgba(91, 79, 230, 0.2);
        border-radius: 2px;
    }

    .article-toc.toc-sticky::-webkit-scrollbar-thumb:hover {
        background: rgba(91, 79, 230, 0.4);
    }
}

/* TOC collapsible sur mobile */
@media (max-width: 1023px) {
    .article-toc.toc-collapsible h3 {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .article-toc.toc-collapsible .toc-toggle {
        font-size: 0.9rem;
        transition: transform 0.3s ease;
    }

    .article-toc.toc-collapsible.toc-collapsed .toc-toggle {
        transform: rotate(0deg);
    }

    .article-toc.toc-collapsible:not(.toc-collapsed) .toc-toggle {
        transform: rotate(180deg);
    }
}

/* ========================================
   4. UTILITY CLASSES
   ======================================== */

/* Code blocks */
.code-block {
    font-family: 'Courier New', Consolas, monospace;
    background-color: #F5F5F5;
    padding: var(--spacing-md);
    border-radius: var(--radius-sm);
    font-size: 0.9em;
    line-height: 1.6;
    overflow-x: auto;
}

/* Footer logo */
.footer-logo {
    width: 180px;
    margin-bottom: 1rem;
}

/* Footer legal text */
.footer-legal {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 0.5rem;
}

/* ========================================
   5. SMOOTH SCROLL (comportement global)
   ======================================== */

html {
    scroll-behavior: smooth;
}

/* Désactiver smooth scroll si préférence utilisateur (accessibilité) */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .back-to-top,
    .article-toc a {
        transition: none;
    }
}

/* ========================================
   DATE DE MISE À JOUR ARTICLE
   ======================================== */

.article-meta-date {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 1rem;
    padding: 0.4rem 0.8rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    backdrop-filter: blur(4px);
}

.article-meta-date::before {
    content: "📅";
    font-size: 0.9rem;
}

/* ========================================
   ACCORDÉON RED FLAGS
   ======================================== */

.red-flags-accordion {
    border: 2px solid var(--accent-red);
    border-radius: var(--radius-lg);
    margin: var(--spacing-lg) 0;
    overflow: hidden;
    background: linear-gradient(135deg, #fef2f2 0%, #fff5f5 100%);
}

.red-flags-accordion-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    background: linear-gradient(90deg, #fecaca 0%, #fde8e8 100%);
    cursor: pointer;
    transition: background var(--transition-fast);
    border: none;
    width: 100%;
    text-align: left;
    font-family: inherit;
}

.red-flags-accordion-header:hover {
    background: linear-gradient(90deg, #fca5a5 0%, #fecaca 100%);
}

.red-flags-accordion-header h2,
.red-flags-accordion-header h3 {
    margin: 0;
    font-size: 1.15rem;
    color: #b91c1c;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.red-flags-accordion-icon {
    font-size: 1.2rem;
    transition: transform var(--transition-base);
    color: #b91c1c;
}

.red-flags-accordion.open .red-flags-accordion-icon {
    transform: rotate(180deg);
}

.red-flags-accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
}

.red-flags-accordion.open .red-flags-accordion-content {
    max-height: 5000px;
    transition: max-height 0.6s ease-in;
}

.red-flags-accordion-inner {
    padding: 1.25rem;
}

.red-flags-accordion-inner .legal-risk {
    margin-top: 0;
}

/* ========================================
   HEADER MOBILE COMPACT & HIDE/SHOW
   ======================================== */

@media (max-width: 768px) {
    .site-header {
        position: fixed !important;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1000;
        transition: top 0.3s ease, padding 0.3s ease;
    }

    .site-header.header-hidden {
        top: -120px;
    }

    .site-header.compact {
        padding: 0.4rem 0;
    }

    /* Cacher seulement la barre de recherche, garder logo normal */
    .site-header.compact .header-search-container {
        display: none;
    }

    .site-header.compact .site-nav {
        font-size: 0.8rem;
        gap: 0.5rem;
    }

    .site-header.compact .nav-link {
        padding: 0.25rem 0.4rem;
    }

}

/* ========================================
   FIX SCROLL HORIZONTAL MOBILE
   ======================================== */

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

main {
    overflow-x: hidden;
}
main#main-content{
    padding-top: 20px;
}

@media (max-width: 768px) {
    .article-container {
        overflow-x: hidden;
        max-width: 100%;
        width: 100%;
    }

    /* Empêcher les tableaux de déborder */
    table {
        display: block;
        overflow-x: auto;
        max-width: 100%;
    }

    /* Empêcher les pre/code de déborder */
    pre, code {
        overflow-x: auto;
        max-width: 100%;
        word-break: break-word;
    }

    /* Empêcher les images de déborder */
    img {
        max-width: 100%;
        height: auto;
    }

    /* Fix conteneurs qui débordent */
    .legal-base,
    .warning,
    .tip,
    .tldr,
    .disclaimer,
    .legal-risk,
    .red-flags-accordion {
        max-width: 100%;
        overflow-x: hidden;
        box-sizing: border-box;
    }
}

/* ========================================
   BUY ME A COFFEE - Masquer sur mobile
   ======================================== */
@media (max-width: 768px) {
    #bmc-wbtn,
    .bmc-btn,
    .bmc-btn-container,
    .bmc-widget,
    [data-name="BMC-Widget"],
    [id^="bmc-"],
    [class^="bmc-"],
    iframe[src*="buymeacoffee"],
    img[src*="buymeacoffee"],
    div[style*="buymeacoffee"] {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
        width: 0 !important;
        height: 0 !important;
        overflow: hidden !important;
    }
}

/* ========================================
   HEADER MOBILE - Burger menu + hide on scroll
   ======================================== */
@media (max-width: 768px) {
    .site-header {
        padding: 12px 0 !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 1000 !important;
        transition: top 0.3s ease, padding 0.3s ease;
        background: #1a1a2e !important;
    }

    .site-header.header-hidden {
        top: -80px !important;
    }

    .header-container {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        justify-content: space-between !important;
        align-items: center !important;
        gap: 8px !important;
        padding: 0 12px !important;
        max-width: 100% !important;
    }

    .site-logo {
        flex: 0 0 auto !important;
    }

    .site-logo .logo-icon {
        height: 32px !important;
        width: auto !important;
    }

    /* Recherche visible dans le header mobile */
    .header-search-container {
        display: flex !important;
        flex: 1 1 auto !important;
        min-width: 0 !important;
        max-width: none !important;
        margin: 0 8px !important;
        position: relative !important;
    }

    /* Hero colle au header sur index */
    .hero {
        margin-top: -36px !important;
    }

    .header-search-container .search-input {
        padding: 8px 12px 8px 32px;
        font-size: 0.85rem;
        border-radius: 20px;
        background: rgba(255,255,255,0.15);
        border: 1px solid rgba(255,255,255,0.2);
        color: white;
    }

    .header-search-container .search-input::placeholder {
        color: rgba(255,255,255,0.6);
    }

    .header-search-container .search-icon {
        display: block !important;
        position: absolute !important;
        left: 10px !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        font-size: 0.85rem !important;
        color: rgba(255,255,255,0.7) !important;
        z-index: 1 !important;
    }

    .header-search-container .search-results {
        position: fixed;
        top: 60px;
        left: 10px;
        right: 10px;
        max-width: none;
        width: auto;
        border-radius: 12px;
        max-height: 60vh;
    }

    /* Masquer le bouton search mobile (on utilise la barre directement) */
    .mobile-search-btn {
        display: none !important;
    }

    /* ========================================
       ESPACEMENTS PAR TYPE DE PAGE (Mobile)
       ======================================== */

    /* Home - hero plein écran, colle au header */
    .hero {
        margin-top: -36px !important;
        padding-top: 130px !important;
    }

    /* Pages avec breadcrumbs - marges égales haut/bas */
    .breadcrumbs {
        margin-top: 70px !important;
        margin-bottom: 15px !important;
        padding: 12px 15px !important;
        background: var(--bg-secondary, #F8FAFC);
    }

    /* Pages catégories - hero suit les breadcrumbs naturellement */
    .category-hero {
        margin-top: 0 !important;
    }

    /* Pages articles */
    .article-container {
        margin-top: 0 !important;
    }

    /* Glossaire */
    .glossary-container {
        margin-top: 65px !important;
        padding-top: 20px !important;
    }

    /* Pages profils et autres conteneurs directs */
    body > main.container:first-of-type {
        margin-top: 65px !important;
    }

    /* ========================================
       BURGER MENU
       ======================================== */

    /* Burger menu button - style moderne */
    .burger-menu {
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        width: 42px !important;
        height: 42px !important;
        min-width: 42px !important;
        background: rgba(255,255,255,0.1) !important;
        border: none !important;
        border-radius: 10px !important;
        cursor: pointer !important;
        padding: 0 !important;
        z-index: 1001 !important;
        gap: 5px !important;
        transition: background 0.2s ease;
        flex: 0 0 auto !important;
    }

    .burger-menu:hover {
        background: rgba(255,255,255,0.2);
    }

    .burger-menu span {
        display: block;
        width: 22px;
        height: 2.5px;
        background: #ffffff !important;
        border-radius: 2px;
        transition: all 0.3s ease;
    }

    .burger-menu.active {
        background: rgba(255,255,255,0.15);
    }

    .burger-menu.active span {
        background: #ffffff !important;
    }

    .burger-menu.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }

    .burger-menu.active span:nth-child(2) {
        opacity: 0;
        transform: translateX(-10px);
    }

    .burger-menu.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }

    /* Nav mobile - menu déroulant moderne */
    .site-nav {
        position: fixed !important;
        top: 0 !important;
        right: -100% !important;
        bottom: 0 !important;
        left: auto !important;
        width: 75% !important;
        max-width: 300px !important;
        height: 100% !important;
        min-height: 100vh !important;
        min-height: 100dvh !important;
        background: linear-gradient(180deg, #1a1a2e 0%, #16213e 100%) !important;
        flex-direction: column !important;
        padding: 100px 24px 40px !important;
        gap: 0 !important;
        box-shadow: -10px 0 40px rgba(0,0,0,0.3);
        transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 999 !important;
        display: flex !important;
        overflow-y: auto !important;
    }

    .site-nav.nav-open {
        right: 0 !important;
    }

    .site-nav .nav-link {
        color: rgba(255,255,255,0.9) !important;
        font-family: 'Poppins', sans-serif !important;
        font-size: 1.1rem !important;
        font-weight: 500 !important;
        padding: 18px 16px !important;
        margin-bottom: 4px;
        border-radius: 12px;
        border-bottom: none;
        text-decoration: none;
        transition: all 0.2s ease;
        background: transparent;
    }

    .site-nav .nav-link:hover,
    .site-nav .nav-link:active {
        color: #fff !important;
        background: rgba(91, 79, 230, 0.3) !important;
        padding-left: 20px !important;
    }

    /* Overlay quand menu ouvert */
    .nav-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0,0,0,0.6);
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
        z-index: 998;
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .nav-overlay.active {
        display: block;
        opacity: 1;
    }

    /* Burger menu visible par défaut sur mobile */
    .burger-menu {
        display: flex !important;
    }
}

/* Burger menu caché par défaut sur desktop */
.burger-menu {
    display: none;
}

.nav-overlay {
    display: none;
    position: fixed;
}

.mobile-search-btn {
    display: none;
}

/* Search overlay mobile */
.search-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.98);
    z-index: 1002;
    padding: 20px;
    flex-direction: column;
}

.search-overlay.active {
    display: flex;
}

.search-overlay-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.search-overlay-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: #1E293B;
}

.search-overlay-close {
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    padding: 5px;
    color: #1E293B;
}

.search-overlay-input {
    width: 100%;
    padding: 16px 20px;
    font-size: 1.1rem;
    border: 2px solid #E2E8F0;
    border-radius: 12px;
    outline: none;
    font-family: 'Poppins', sans-serif;
    box-sizing: border-box;
}

.search-overlay-input:focus {
    border-color: #5B4FE6;
}

.search-overlay-results {
    margin-top: 20px;
    flex: 1;
    overflow-y: auto;
}

@media (max-width: 768px) {
    .mobile-search-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        background: transparent;
        border: none;
        font-size: 1.2rem;
        cursor: pointer;
        padding: 8px;
    }
}

/* ========================================
   BOUTON SIGNALER UNE ERREUR
   ======================================== */

.report-error-box {
    margin-top: 3rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    text-align: center;
}

.report-error-box p {
    margin: 0 0 1rem 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.report-error-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-medium);
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.report-error-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-1px);
}

.report-error-btn svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
}
