/* Early Brief — Styles communs
   ========================================== */

:root {
    --bg: #F5F2EB;
    --bg2: #FFFFFF;
    --card: #F9F8F6;
    --card-hover: #F5F4F2;
    
    /* Palette verte harmonisée */
    --accent: #2D5A3D;
    --accent-light: #3D6A4D;
    --accent-bg: rgba(45,90,61,0.08);
    
    /* Tags statuts - dégradé vert */
    --tag-live: #2D5A3D;
    --tag-wip: #5A7A5A;
    --tag-soon: #9A9A8A;
    
    /* Warning / critical */
    --critical: #9A6A1A;
    --critical-bg: rgba(154,106,26,0.1);
    
    /* Texte tons chauds */
    --text: #1F2A23;
    --text2: #4A5A4A;
    --text3: #6A7A6A;
    --text-muted: #8A8A8A;
    
    --border: rgba(0,0,0,0.06);
    
    /* Spacing scale */
    --space-xs: 0.75rem;
    --space-sm: 1.5rem;
    --space-md: 2.5rem;
    --space-lg: 4rem;
    --space-xl: 6rem;
    --space-2xl: 10rem;
}

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

/* Accessibilité — focus visible */
:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

button:focus-visible,
.btn:focus-visible,
a:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* Skip to content */
.skip-link {
    position: absolute;
    top: -100px;
    left: 0;
    background: var(--accent);
    color: #fff;
    padding: 0.5rem 1rem;
    z-index: 1000;
    font-size: 0.85rem;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    letter-spacing: -0.01em;
}

/* Header Navigation
   ------------------------------------------ */
header {
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent);
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: var(--text3);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--text);
}

/* Container & Section
   ------------------------------------------ */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2.5rem;
}

.section {
    padding: var(--space-xl) 0;
}

.section-title {
    font-family: 'Inter', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.section-subtitle {
    color: var(--text3);
    margin-bottom: var(--space-md);
    font-size: 1rem;
    line-height: 1.6;
}

/* Hero Section
   ------------------------------------------ */
.hero {
    max-width: 750px;
    margin: 0 auto;
    padding: var(--space-xl) 2.5rem 5rem;
    text-align: center;
}

.hero h1 {
    font-family: 'Inter', sans-serif;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--text);
    margin-bottom: 1.75rem;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.hero p {
    font-size: 1.1rem;
    color: var(--text2);
    margin-bottom: 1.5rem;
    max-width: 580px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

/* Page Header (pour pages intérieures)
   ------------------------------------------ */
.page-header {
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem 2rem 2rem;
}

.page-header h1 {
    font-family: 'Inter', sans-serif;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--text);
    margin-bottom: 1rem;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

.page-header .lead {
    font-size: 1.05rem;
    color: var(--text2);
    max-width: 650px;
}

.breadcrumb {
    font-size: 0.75rem;
    color: var(--text3);
    margin-bottom: 1rem;
}

.breadcrumb a {
    color: var(--accent);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* Buttons
   ------------------------------------------ */
.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 0.875rem 1.75rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s;
    display: inline-block;
}

.btn-primary {
    background: var(--accent);
    color: white;
}

.btn-primary:hover {
    background: var(--accent-light);
}

.btn-secondary {
    background: var(--accent-bg);
    color: var(--accent);
    border: none;
}

.btn-secondary:hover {
    background: rgba(45,90,61,0.15);
}

/* Cards
   ------------------------------------------ */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
}

.cards-grid-4 {
    grid-template-columns: repeat(2, 1fr);
}

.card {
    background: var(--card);
    border: none;
    border-radius: 12px;
    padding: 1.75rem;
    transition: all 0.2s ease;
    text-decoration: none;
    color: inherit;
    display: block;
}

.card-static {
    cursor: default;
}

.card:not(.card-static):hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}

.card-tag {
    display: inline-block;
    font-size: 0.6rem;
    font-weight: 700;
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    margin-bottom: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* Tags statuts harmonisés */
.tag-live {
    background: var(--tag-live);
    color: #fff;
}

.tag-wip {
    background: var(--tag-wip);
    color: #fff;
}

.tag-soon {
    background: var(--tag-soon);
    color: #fff;
}

.card-tag-highlight {
    background: var(--accent-bg);
    color: var(--accent);
}

.card-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.5rem;
    line-height: 1.35;
}

.card-description {
    font-size: 0.9rem;
    color: var(--text2);
    line-height: 1.6;
}

/* Content Sections
   ------------------------------------------ */
.early-brief-section {
    background: var(--bg2);
}

.early-brief-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.recent-posts {
    list-style: none;
}

.recent-posts li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
}

.recent-posts li:last-child {
    border-bottom: none;
}

.recent-posts a {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
}

.recent-posts a:hover {
    color: var(--accent);
}

/* Expertise Section
   ------------------------------------------ */
.expertise {
    background: var(--accent-bg);
    padding: var(--space-lg);
    border-radius: 14px;
    border-left: 4px solid var(--accent);
}

.expertise-list {
    list-style: none;
    display: grid;
    gap: 1rem;
    margin-top: var(--space-md);
}

.expertise-list li {
    padding-left: 1.75rem;
    position: relative;
    color: var(--text2);
    line-height: 1.6;
}

.expertise-list li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: bold;
}

/* Contact Section
   ------------------------------------------ */
.contact-section {
    text-align: center;
    background: var(--card);
    padding: var(--space-xl) var(--space-lg);
    border-radius: 14px;
    border: 2px solid var(--accent);
}

.contact-section h2 {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.75rem;
    color: var(--accent);
    margin-bottom: 1.25rem;
}

.contact-email {
    font-size: 1.15rem;
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    margin: 1.25rem 0;
}

.contact-email:hover {
    text-decoration: underline;
}

/* Content (pour pages de contenu)
   ------------------------------------------ */
.content {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

.content h2 {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--accent);
    margin: 2.5rem 0 1rem;
}

.content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text);
    margin: 2rem 0 0.75rem;
}

.content p {
    margin-bottom: 1rem;
    color: var(--text2);
}

.content ul, .content ol {
    margin: 1rem 0 1rem 1.5rem;
    color: var(--text2);
}

.content li {
    margin-bottom: 0.5rem;
}

.content a {
    color: var(--accent);
    text-decoration: underline;
}

.content a:hover {
    color: var(--accent-light);
}

/* Info boxes
   ------------------------------------------ */
.info-box {
    background: var(--accent-bg);
    border-left: 4px solid var(--accent);
    padding: var(--space-md);
    border-radius: 0 12px 12px 0;
    margin: var(--space-md) 0;
}

.info-box.warning {
    background: var(--critical-bg);
    border-left-color: var(--critical);
}

.coming-soon {
    background: var(--card);
    border: 2px dashed var(--border);
    padding: var(--space-xl) var(--space-lg);
    text-align: center;
    border-radius: 14px;
    margin: var(--space-lg) 0;
}

.coming-soon h3 {
    color: var(--text3);
    margin-bottom: 0.75rem;
}

.coming-soon p {
    color: var(--text3);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Footer
   ------------------------------------------ */
footer {
    background: var(--bg);
    border-top: 1px solid var(--border);
    padding: var(--space-lg) 0;
    margin-top: var(--space-lg);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-logo {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    font-size: 1rem;
    color: var(--accent);
}

.footer-tagline {
    font-size: 0.85rem;
    color: var(--text3);
    margin-top: 0.25rem;
}

.footer-links {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.footer-links a {
    color: var(--text3);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.2s;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    color: var(--text3);
    font-size: 0.8rem;
}

/* Utility classes
   ------------------------------------------ */
.text-muted { color: var(--text2); }
.text-light { color: var(--text3); }
.mb-sm { margin-bottom: 0.5rem; }
.mb-md { margin-bottom: 1.5rem; }
.mb-lg { margin-bottom: 2.5rem; }
.mt-sm { margin-top: 0.5rem; }
.mt-md { margin-top: 1.5rem; }
.mt-lg { margin-top: 2.5rem; }

.subsection-title {
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text);
}

.footer-logo {
    margin-bottom: 1rem;
}

.footer-tagline {
    color: var(--text2);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* Responsive
   ------------------------------------------ */

/* Page Hero (pour pages intérieures)
   ------------------------------------------ */
/* Page Hero — Harmonisé avec homepage
   ------------------------------------------ */
.page-hero {
    max-width: 750px;
    margin: 0 auto;
    padding: var(--space-xl) 2.5rem 3rem;
    text-align: center;
}

.page-hero h1 {
    font-family: 'Inter', sans-serif;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--text);
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

.page-hero .lead {
    font-size: 1.1rem;
    color: var(--text2);
    line-height: 1.7;
    max-width: 600px;
    margin: 0 auto 1.5rem;
}

.page-hero .badges {
    justify-content: center;
    margin-bottom: 1.5rem;
}

.page-hero .meta {
    justify-content: center;
    margin-top: 0;
    font-size: 0.85rem;
}

/* Meta info
   ------------------------------------------ */
.meta {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    font-size: 0.9rem;
    color: var(--text2);
    margin-top: 1.5rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.meta-label {
    font-weight: 600;
    color: var(--accent);
}

/* Tables
   ------------------------------------------ */
.table-container {
    background: var(--card);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

thead {
    background: var(--accent);
    color: white;
}

th {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 600;
    text-align: left;
    padding: 1.25rem 1rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

td {
    padding: 1.25rem 1rem;
    border-bottom: 1px solid var(--border);
    vertical-align: top;
    line-height: 1.6;
}

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

tr:hover {
    background: rgba(61,79,79,0.02);
}

/* Tags
   ------------------------------------------ */
.tag {
    display: inline-block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    text-transform: uppercase;
}

.tag-acpr {
    background: rgba(61,79,79,0.1);
    color: var(--accent);
}

.tag-amf {
    background: rgba(59,130,246,0.1);
    color: #2563eb;
}

.tag-control {
    background: rgba(154,106,26,0.1);
    color: #9A6A1A;
    font-size: 0.6rem;
}

/* Main content (articles)
   ------------------------------------------ */
.main-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 4rem 3rem 6rem;
}

.main-content.wide {
    max-width: 1200px;
}

.main-content.extra-wide {
    max-width: 1400px;
}

/* Content sections
   ------------------------------------------ */
.content-section {
    background: var(--card);
    border-radius: 16px;
    padding: 2.5rem;
    margin-bottom: 2.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.content-section h2 {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--border);
}

.content-section h3 {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text);
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.content-section p {
    margin-bottom: 1rem;
    color: var(--text2);
    line-height: 1.7;
}

.content-section ul, .content-section ol {
    margin: 1rem 0 1.5rem 1.5rem;
    color: var(--text2);
}

.content-section li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

/* CTA Box
   ------------------------------------------ */
.cta-box {
    background: var(--card);
    border: 2px solid var(--accent);
    border-radius: 16px;
    padding: 3rem;
    text-align: center;
    margin-top: 4rem;
}

.cta-box h3 {
    font-family: 'JetBrains Mono', monospace;
    color: var(--accent);
    margin-bottom: 1rem;
}

.cta-box p {
    color: var(--text2);
    margin-bottom: 1.5rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* Nav cards
   ------------------------------------------ */
.nav-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 4rem;
    padding-top: 4rem;
    border-top: 1px solid var(--border);
}

.nav-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s;
}

.nav-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.nav-card h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.nav-card p {
    font-size: 0.9rem;
    color: var(--text2);
}

/* Category sections
   ------------------------------------------ */
.category-section {
    margin-bottom: 4rem;
}

.category-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.category-header h2 {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent);
}

.category-count {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    background: var(--accent-bg);
    color: var(--accent);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
}

/* Stats
   ------------------------------------------ */
.stats {
    display: flex;
    gap: 3rem;
    margin-bottom: 3rem;
}

.stat {
    font-family: 'JetBrains Mono', monospace;
}

.stat-num {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent);
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text3);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Forms
   ------------------------------------------ */
.form-section {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2.5rem;
}

.form-section h2 {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.875rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    background: var(--bg);
    color: var(--text);
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.btn-submit {
    background: var(--accent);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    width: 100%;
}

.btn-submit:hover {
    background: var(--accent-light);
    transform: translateY(-2px);
}

.response-time {
    background: var(--accent-bg);
    border-left: 4px solid var(--accent);
    padding: 1rem 1.5rem;
    margin-top: 1.5rem;
    border-radius: 0 8px 8px 0;
    font-size: 0.95rem;
    color: var(--text2);
}

/* Contact cards
   ------------------------------------------ */
.contact-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.contact-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
}

.contact-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 1rem;
}

.contact-card a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
}

.contact-card a:hover {
    text-decoration: underline;
}

.contact-card p {
    color: var(--text2);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

/* Responsive additions
   ------------------------------------------ */
@media (max-width: 768px) {
    nav {
        flex-direction: column;
        gap: 1.25rem;
        padding: 1.5rem;
    }

    .nav-links {
        gap: 1.25rem;
    }

    .hero {
        padding: var(--space-xl) 1.5rem var(--space-lg);
    }

    .page-hero {
        padding: 3rem 0 2rem;
    }

    .page-header {
        padding: var(--space-lg) 1.5rem var(--space-md);
    }

    .section {
        padding: var(--space-lg) 0;
    }

    .cards-grid {
        grid-template-columns: 1fr;
    }

    .early-brief-content {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
    }

    .content {
        padding: 1.5rem;
    }
    
    .container {
        padding: 0 1.5rem;
    }

    .main-content {
        padding: 2rem 1.5rem 4rem;
    }

    .table-container {
        overflow-x: auto;
    }

    table {
        min-width: 600px;
    }

    .stats {
        flex-direction: column;
        gap: 1.5rem;
    }

    .contact-methods {
        grid-template-columns: 1fr;
    }

    .nav-cards {
        grid-template-columns: 1fr;
    }
}

/* ==========================================
   BADGES — Statut / Scope / Zone
   ========================================== */

/* Container pour les badges */
.badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.35rem 0.65rem;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

/* Badges Statut — Fond clair + texte foncé */
.badge-obligation {
    background: rgba(61, 90, 128, 0.12);
    color: #3D5A80;
}

.badge-doctrine {
    background: rgba(74, 95, 95, 0.12);
    color: #3D4F4F;
}

.badge-supervision {
    background: rgba(107, 91, 61, 0.12);
    color: #5A4A2D;
}

.badge-estimation {
    background: rgba(0, 0, 0, 0.06);
    color: #4A4A4A;
}

/* Badges Scope — Fond clair + texte foncé */
.badge-banque {
    background: rgba(45, 90, 61, 0.12);
    color: #2D5A3D;
}

.badge-psp {
    background: rgba(91, 74, 140, 0.12);
    color: #5B4A8C;
}

.badge-eme {
    background: rgba(140, 74, 107, 0.12);
    color: #8C4A6B;
}

.badge-casp {
    background: rgba(212, 116, 12, 0.12);
    color: #B5620A;
}

.badge-sgp {
    background: rgba(26, 95, 122, 0.12);
    color: #1A5F7A;
}

.badge-tous {
    background: rgba(61, 79, 79, 0.12);
    color: #3D4F4F;
}

/* Badges Zone — Fond clair + texte foncé */
.badge-ue {
    background: rgba(0, 51, 153, 0.12);
    color: #003399;
}

.badge-france {
    background: rgba(0, 38, 84, 0.12);
    color: #1E3A5F;
}

.badge-us {
    background: rgba(60, 59, 110, 0.12);
    color: #3C3B6E;
}

.badge-global {
    background: rgba(45, 74, 61, 0.12);
    color: #2D4A3D;
}

/* Légende des badges */
.badges-legend {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.5rem;
    margin: 2rem 0;
}

.badges-legend h4 {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text2);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.badges-legend-group {
    margin-bottom: 1rem;
}

.badges-legend-group:last-child {
    margin-bottom: 0;
}

.badges-legend-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text2);
    margin-bottom: 0.5rem;
}

/* Mise à jour */
.last-updated {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: var(--text3);
    padding: 0.5rem 0;
    border-top: 1px solid var(--border);
    margin-top: 2rem;
}

/* Structure article */
.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
    margin-bottom: 2rem;
}

.interpretation-box {
    background: linear-gradient(135deg, rgba(61,79,79,0.08) 0%, rgba(61,79,79,0.04) 100%);
    border-left: 3px solid var(--accent);
    padding: 1.25rem 1.5rem;
    margin: 1.5rem 0;
    border-radius: 0 8px 8px 0;
}

.interpretation-box h4 {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
}

.interpretation-box p,
.interpretation-box ul {
    font-size: 0.95rem;
    color: var(--text2);
}

/* Source officielle vs interprétation */
.source-box {
    background: var(--card);
    border: 1px solid var(--border);
    padding: 1.25rem 1.5rem;
    margin: 1.5rem 0;
    border-radius: 8px;
}

.source-box h4 {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text3);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
}

/* Catégories ressources */
.resource-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.resource-category {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.5rem;
}

.resource-category h3 {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 0.5rem;
}

.resource-category p {
    font-size: 0.9rem;
    color: var(--text3);
    margin-bottom: 1rem;
}

.resource-category ul {
    list-style: none;
}

.resource-category li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border);
}

.resource-category li:last-child {
    border-bottom: none;
}

.resource-category a {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
}

.resource-category a:hover {
    color: var(--accent);
}

/* Home — Ultra-épuré + dense
   ------------------------------------------ */
body.home .hero {
    max-width: 700px;
    padding: 4.5rem 2rem 4rem;
}

body.home .hero h1 {
    font-size: clamp(2rem, 5vw, 2.5rem);
    margin-bottom: 1rem;
    letter-spacing: -0.03em;
    line-height: 1.15;
}

body.home .hero p {
    font-size: 1.05rem;
    margin-bottom: 2rem;
    line-height: 1.6;
    color: var(--text2);
}

body.home .section {
    padding: 3.5rem 0;
    background: var(--bg2);
}

body.home .section:first-of-type {
    padding-top: 3rem;
}

body.home .section-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 0.75rem;
}

body.home .section-title {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin-bottom: 0;
    color: var(--text);
}

body.home .section-topics {
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 0.02em;
}

body.home .section-subtitle {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    color: var(--text3);
}

body.home .card {
    padding: 1.25rem;
    border-radius: 8px;
    border: 1px solid rgba(0,0,0,0.06);
    background: var(--card);
    box-shadow: 0 1px 2px rgba(0,0,0,0.02);
}

body.home .card:hover {
    border-color: rgba(0,0,0,0.1);
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

body.home .card-tag {
    margin-bottom: 0.6rem;
    padding: 0.15rem 0.4rem;
    font-size: 0.55rem;
    border-radius: 3px;
}

body.home .card-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
    color: var(--text);
}

body.home .card-description {
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--text2);
}

body.home .cards-grid {
    gap: 1rem;
}

body.home .cards-grid-4 {
    grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 600px) {
    body.home .cards-grid-4 {
        grid-template-columns: 1fr;
    }
    
    body.home .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
}

body.home .cta-buttons {
    gap: 0.75rem;
}

body.home .btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
    min-width: 180px;
    text-align: center;
}

body.home .early-brief-section {
    padding: 3.5rem 0;
    background: var(--bg);
}

body.home .early-brief-content {
    gap: 3rem;
}

body.home .recent-posts li {
    padding: 0.4rem 0;
    font-size: 0.85rem;
}

/* Expertise — plus sobre */
body.home .expertise {
    background: transparent;
    padding: 0;
    border-radius: 0;
    border-left: none;
}

body.home .expertise .section-title {
    margin-bottom: 1rem;
}

body.home .expertise-list {
    margin-top: 0;
    gap: 0.5rem;
}

body.home .expertise-list li {
    padding-left: 1.25rem;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Contact — aligné, sobre */
body.home .contact-section {
    background: transparent;
    padding: 0;
    border-radius: 0;
    text-align: left;
    border: none;
    box-shadow: none;
}

body.home .contact-section .section-title {
    margin-bottom: 0.5rem;
}

body.home .contact-email {
    font-size: 1rem;
    margin: 0;
}

/* ==========================================
   RESSOURCES PAGE — Harmonisé avec homepage
   ========================================== */

.resources-section {
    padding: 3rem 0;
}

.resources-section:first-of-type {
    padding-top: 2rem;
}

.resources-section .section-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.resources-section .section-title {
    font-family: 'Inter', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0;
}

.resources-section .section-topics {
    font-size: 0.8rem;
    color: var(--text-muted);
    letter-spacing: 0.01em;
}

.subsection-title {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--accent);
    margin: 2.5rem 0 1rem;
}

.subsection-title:first-of-type {
    margin-top: 0;
}

/* Hero meta link (méthodologie) */
.hero-meta {
    font-size: 0.9rem;
    color: var(--text3);
    margin-top: 0.5rem;
}

.hero-meta a {
    color: var(--accent);
    text-decoration: none;
}

.hero-meta a:hover {
    text-decoration: underline;
}

/* Badges dans cards - ajustement spacing */
.resources-section .card .badges {
    margin: 0 0 0.75rem 0;
}

.resources-section .card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1.5rem;
    transition: all 0.2s ease;
}

.resources-section .card:hover {
    border-color: rgba(0,0,0,0.12);
    box-shadow: 0 4px 12px rgba(0,0,0,0.04);
    transform: translateY(-1px);
}

.resources-section .card-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.4rem;
    line-height: 1.35;
}

.resources-section .card-description {
    font-size: 0.875rem;
    color: var(--text2);
    line-height: 1.55;
}

/* Responsive */
@media (max-width: 768px) {
    .resources-section .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
    
    .subsection-title {
        margin-top: 2rem;
    }
}
