/* =============================================================================
 * PLATEFORME MASSACRES.CD — Page d'accueil publique
 * Ministère de la Justice et Garde des Sceaux — RDC
 *
 * Charte graphique institutionnelle :
 *   Primaire    #0a1628  (bleu nuit profond — autorité)
 *   Secondaire  #1a365d  (bleu marine — gouvernemental)
 *   Accent      #c53030  (rouge sombre — gravité du sujet)
 *   Or          #c9a227  (dorure institutionnelle — officiel)
 *   Succès      #1a7a4c  (vert Congo — espoir / ODD16)
 *   Texte       #1a202c / #4a5568 / #a0aec0
 *   Fond        #f8f9fb
 *
 * Typographie :
 *   Display     Cormorant Garamond — classique, autoritaire
 *   Corps       Source Sans 3 — lisible, professionnelle
 *
 * @version  1.0.0
 * ============================================================================= */

/* 0. RESET & VARIABLES ---------------------------------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --c-bg: #f8f9fb;
    --c-surface: #ffffff;
    --c-primary: #0a1628;
    --c-secondary: #1a365d;
    --c-accent: #c53030;
    --c-gold: #c9a227;
    --c-gold-light: #f5ecd0;
    --c-green: #1a7a4c;
    --c-text: #1a202c;
    --c-text-mid: #4a5568;
    --c-text-light: #718096;
    --c-text-inv: #ffffff;
    --c-border: #e2e8f0;

    --ff-display: 'Cormorant Garamond', 'Georgia', serif;
    --ff-body: 'Source Sans 3', 'Segoe UI', sans-serif;

    --fs-xs: 0.75rem;
    --fs-sm: 0.875rem;
    --fs-base: 1rem;
    --fs-lg: 1.125rem;
    --fs-xl: 1.25rem;
    --fs-2xl: 1.5rem;
    --fs-3xl: 2rem;
    --fs-4xl: 2.5rem;
    --fs-hero: clamp(2rem, 4vw, 3.5rem);

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --shadow-card: 0 2px 12px rgba(0,0,0,.06);
    --shadow-md: 0 4px 16px rgba(0,0,0,.08);
    --shadow-lg: 0 8px 32px rgba(0,0,0,.12);

    --transition: 0.25s ease;
    --max-w: 1200px;
    --section-pad: 5rem 0;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--ff-body);
    font-size: var(--fs-base);
    line-height: 1.7;
    color: var(--c-text);
    background: var(--c-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--c-secondary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--c-accent); }

:focus-visible { outline: 2px solid var(--c-gold); outline-offset: 2px; }

.container { width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem; }

/* Section headings */
.section-overline {
    font-family: var(--ff-body);
    font-size: var(--fs-xs);
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--c-gold);
    margin-bottom: 0.75rem;
}

.section-title {
    font-family: var(--ff-display);
    font-size: var(--fs-3xl);
    font-weight: 600;
    line-height: 1.2;
    color: var(--c-primary);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: var(--fs-lg);
    color: var(--c-text-mid);
    max-width: 680px;
    line-height: 1.7;
}

/* 1. BANDEAU GOUVERNEMENTAL ----------------------------------------------- */
.gov-banner {
    background: var(--c-primary);
    color: var(--c-text-inv);
    border-bottom: 3px solid var(--c-gold);
}

.gov-banner-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.625rem 1.5rem;
    max-width: var(--max-w);
    margin: 0 auto;
}

.gov-banner-identity {
    display: flex;
    align-items: center;
    gap: 0.875rem;
}

.gov-banner-emblem {
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,.12);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
    border: 1.5px solid rgba(255,255,255,.2);
}

.gov-banner-text { display: flex; flex-direction: column; }
.gov-banner-country { font-size: var(--fs-xs); font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; opacity: 0.8; line-height: 1.2; }
.gov-banner-ministry { font-size: var(--fs-sm); font-weight: 600; line-height: 1.3; }
.gov-banner-platform { font-size: var(--fs-xs); opacity: 0.6; line-height: 1.2; }

.gov-nav { display: flex; align-items: center; gap: 0.25rem; }
.gov-nav a { color: rgba(255,255,255,.8); padding: 0.5rem 0.875rem; border-radius: var(--radius-sm); font-size: var(--fs-sm); font-weight: 500; transition: all var(--transition); }
.gov-nav a:hover, .gov-nav a.active { color: #fff; background: rgba(255,255,255,.12); }
.gov-nav-cta { background: var(--c-accent); color: #fff; font-weight: 600; }
.gov-nav-cta:hover { background: #9b2c2c; }

.flag-strip { height: 3px; background: linear-gradient(90deg, #007FFF 0%, #007FFF 33%, #F7D618 33%, #F7D618 50%, #CE1126 50%, #CE1126 100%); }

/* 2. HERO ----------------------------------------------------------------- */
.hero {
    position: relative;
    background: linear-gradient(160deg, #0a1628 0%, #162a4a 50%, #1a365d 100%);
    color: var(--c-text-inv);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 80%, rgba(201,162,39,.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(197,48,48,.06) 0%, transparent 50%),
        url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.hero-inner {
    position: relative;
    z-index: 1;
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 5rem 1.5rem 4.5rem;
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 4rem;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(201,162,39,.15);
    border: 1px solid rgba(201,162,39,.3);
    padding: 0.375rem 1rem;
    border-radius: 20px;
    font-size: var(--fs-xs);
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--c-gold);
    width: fit-content;
    margin-bottom: 1.5rem;
}

.hero-badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--c-gold);
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

.hero-title {
    font-family: var(--ff-display);
    font-size: var(--fs-hero);
    font-weight: 600;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    letter-spacing: -0.01em;
}

.hero-title em { font-style: normal; color: var(--c-gold); }

.hero-lead {
    font-size: var(--fs-lg);
    line-height: 1.7;
    opacity: 0.85;
    margin-bottom: 2.5rem;
    max-width: 560px;
}

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    border-radius: var(--radius-sm);
    font-family: var(--ff-body);
    font-size: var(--fs-sm);
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition);
    cursor: pointer;
    border: none;
    line-height: 1;
}

.btn-gold { background: var(--c-gold); color: var(--c-primary); }
.btn-gold:hover { background: #b8911f; color: var(--c-primary); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(201,162,39,.3); }
.btn-outline { background: transparent; color: var(--c-text-inv); border: 1.5px solid rgba(255,255,255,.3); }
.btn-outline:hover { border-color: rgba(255,255,255,.6); color: #fff; background: rgba(255,255,255,.08); }

.hero-aside { display: flex; flex-direction: column; gap: 1rem; }

.hero-kpi {
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: var(--radius-md);
    padding: 1.25rem 1.5rem;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.hero-kpi-value { font-family: var(--ff-display); font-size: var(--fs-4xl); font-weight: 700; line-height: 1.1; margin-bottom: 0.25rem; }
.hero-kpi-value.gold { color: var(--c-gold); }
.hero-kpi-value.red { color: #e57373; }
.hero-kpi-label { font-size: var(--fs-sm); opacity: 0.7; line-height: 1.4; }
.hero-kpi-sub { font-size: var(--fs-xs); opacity: 0.5; margin-top: 0.375rem; }

/* 3. SECTION MISSION ------------------------------------------------------ */
.section-mission { padding: var(--section-pad); background: var(--c-bg); }

.mission-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
    align-items: start;
    margin-top: 2.5rem;
}

.mission-text { font-size: var(--fs-lg); color: var(--c-text-mid); line-height: 1.8; }
.mission-text p + p { margin-top: 1.25rem; }

.mission-pillars { display: flex; flex-direction: column; gap: 1.25rem; }

.pillar-card {
    display: flex;
    gap: 1.125rem;
    padding: 1.25rem 1.5rem;
    background: var(--c-surface);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    border-left: 3px solid var(--c-border);
    transition: all var(--transition);
}

.pillar-card:hover { box-shadow: var(--shadow-md); transform: translateX(4px); }
.pillar-card.pillar-memoire { border-left-color: var(--c-secondary); }
.pillar-card.pillar-justice { border-left-color: var(--c-accent); }
.pillar-card.pillar-prevention { border-left-color: var(--c-green); }
.pillar-card.pillar-verite { border-left-color: var(--c-gold); }

.pillar-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.pillar-memoire .pillar-icon { background: rgba(26,54,93,.08); }
.pillar-justice .pillar-icon { background: rgba(197,48,48,.08); }
.pillar-prevention .pillar-icon { background: rgba(26,122,76,.08); }
.pillar-verite .pillar-icon { background: rgba(201,162,39,.1); }

.pillar-content h3 { font-size: var(--fs-base); font-weight: 600; color: var(--c-text); margin-bottom: 0.25rem; }
.pillar-content p { font-size: var(--fs-sm); color: var(--c-text-light); line-height: 1.6; }

/* 4. BANDEAU CHIFFRES ----------------------------------------------------- */
.stats-band {
    background: var(--c-primary);
    color: var(--c-text-inv);
    padding: 3rem 0;
    border-top: 3px solid var(--c-gold);
}

.stats-band-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; text-align: center; }
.stats-band-value { font-family: var(--ff-display); font-size: var(--fs-4xl); font-weight: 700; line-height: 1.1; color: var(--c-gold); }
.stats-band-label { font-size: var(--fs-sm); opacity: 0.75; margin-top: 0.5rem; line-height: 1.4; }

/* 5. SECTION EXPLORER ----------------------------------------------------- */
.section-explore { padding: var(--section-pad); background: var(--c-bg); }
.explore-header { text-align: center; margin-bottom: 3rem; }
.explore-header .section-subtitle { margin: 0 auto; }

.explore-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }

.explore-card {
    background: var(--c-surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: var(--c-text);
    border: 1px solid transparent;
}

.explore-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); border-color: var(--c-gold); color: var(--c-text); }

.explore-card-visual {
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.75rem;
}

.explore-card-visual.v-carte { background: linear-gradient(135deg, #1a365d, #2c5282); color: rgba(255,255,255,.9); }
.explore-card-visual.v-stats { background: linear-gradient(135deg, #1a7a4c, #38a169); color: rgba(255,255,255,.9); }
.explore-card-visual.v-chrono { background: linear-gradient(135deg, #744210, #c9a227); color: rgba(255,255,255,.9); }
.explore-card-visual.v-methodo { background: linear-gradient(135deg, #553c9a, #805ad5); color: rgba(255,255,255,.9); }
.explore-card-visual.v-donnees { background: linear-gradient(135deg, #2d3748, #4a5568); color: rgba(255,255,255,.9); }
.explore-card-visual.v-droit { background: linear-gradient(135deg, #9b2c2c, #c53030); color: rgba(255,255,255,.9); }

.explore-card-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.explore-card-body h3 { font-size: var(--fs-lg); font-weight: 600; margin-bottom: 0.5rem; }
.explore-card-body p { font-size: var(--fs-sm); color: var(--c-text-mid); line-height: 1.6; flex: 1; }

.explore-card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: var(--fs-sm);
    font-weight: 600;
    color: var(--c-secondary);
    margin-top: 1rem;
    transition: gap var(--transition);
}

.explore-card:hover .explore-card-link { gap: 0.625rem; color: var(--c-gold); }

/* 6. SECTION CADRE JURIDIQUE ---------------------------------------------- */
.section-legal {
    padding: var(--section-pad);
    background: var(--c-surface);
    border-top: 1px solid var(--c-border);
    border-bottom: 1px solid var(--c-border);
}

.legal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; margin-top: 2.5rem; }

.legal-list { list-style: none; display: flex; flex-direction: column; gap: 1rem; }
.legal-list li { display: flex; gap: 0.875rem; font-size: var(--fs-sm); color: var(--c-text-mid); line-height: 1.7; }
.legal-list-icon { width: 28px; height: 28px; border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: 0.875rem; flex-shrink: 0; background: rgba(26,54,93,.06); margin-top: 2px; }

.legal-quote {
    background: var(--c-bg);
    border-radius: var(--radius-md);
    padding: 2rem;
    border-left: 4px solid var(--c-gold);
}

.legal-quote blockquote { font-family: var(--ff-display); font-size: var(--fs-xl); font-style: italic; line-height: 1.6; color: var(--c-secondary); margin-bottom: 1rem; }
.legal-quote cite { font-family: var(--ff-body); font-style: normal; font-size: var(--fs-sm); color: var(--c-text-light); }

/* 7. FOOTER --------------------------------------------------------------- */
.site-footer { background: var(--c-primary); color: var(--c-text-inv); padding: 3rem 0 0; }

.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3rem; padding-bottom: 2.5rem; }
.footer-brand h3 { font-family: var(--ff-display); font-size: var(--fs-2xl); font-weight: 600; margin-bottom: 0.75rem; }
.footer-brand p { font-size: var(--fs-sm); opacity: 0.7; line-height: 1.7; max-width: 380px; }

.footer-links h4 { font-size: var(--fs-sm); font-weight: 600; text-transform: uppercase; letter-spacing: 1px; opacity: 0.5; margin-bottom: 1rem; }
.footer-links ul { list-style: none; display: flex; flex-direction: column; gap: 0.625rem; }
.footer-links a { font-size: var(--fs-sm); color: rgba(255,255,255,.7); transition: color var(--transition); }
.footer-links a:hover { color: var(--c-gold); }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.1);
    padding: 1.25rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-copyright { font-size: var(--fs-xs); opacity: 0.5; }

.footer-powered { display: flex; align-items: center; gap: 0.5rem; font-size: var(--fs-xs); opacity: 0.7; }
.footer-powered-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.12);
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.odd16-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    background: rgba(26,122,76,.15);
    border: 1px solid rgba(26,122,76,.2);
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: var(--fs-xs);
    font-weight: 600;
    color: #68d391;
}

/* 8. RESPONSIVE ----------------------------------------------------------- */
@media (max-width: 1024px) {
    .hero-inner { grid-template-columns: 1fr; padding: 3.5rem 1.5rem 3rem; }
    .hero-aside { flex-direction: row; flex-wrap: wrap; }
    .hero-kpi { flex: 1; min-width: 140px; }
    .mission-grid { grid-template-columns: 1fr; gap: 2.5rem; }
    .explore-grid { grid-template-columns: repeat(2, 1fr); }
    .legal-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    :root { --section-pad: 3rem 0; }
    .gov-banner-inner { flex-direction: column; gap: 0.75rem; padding: 0.75rem 1rem; }
    .gov-nav { flex-wrap: wrap; justify-content: center; }
    .hero-title { font-size: var(--fs-3xl); }
    .hero-aside { flex-direction: column; }
    .stats-band-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
    .explore-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
    .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
    .gov-nav a { padding: 0.375rem 0.625rem; font-size: var(--fs-xs); }
    .hero-actions { flex-direction: column; }
    .btn { justify-content: center; }
    .section-title { font-size: var(--fs-2xl); }
}

/* 9. ANIMATIONS ----------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
    .fade-in { opacity: 0; transform: translateY(16px); animation: fadeInUp 0.6s ease forwards; }
    .fade-in.d1 { animation-delay: 0.1s; }
    .fade-in.d2 { animation-delay: 0.2s; }
    .fade-in.d3 { animation-delay: 0.3s; }
    .fade-in.d4 { animation-delay: 0.4s; }
    .fade-in.d5 { animation-delay: 0.5s; }
    .fade-in.d6 { animation-delay: 0.6s; }
    @keyframes fadeInUp { to { opacity: 1; transform: translateY(0); } }
}

/* 10. PRINT --------------------------------------------------------------- */
@media print {
    .gov-nav, .hero-actions, .explore-card-visual { display: none; }
    .hero { background: #fff; color: #000; }
    body { background: #fff; color: #000; }
}