@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,600;0,700;1,400&family=Roboto:wght@300;400;500;700&display=swap');

:root {
    /* Couleurs de base de l'association */
    --primary-color: #63c74d; 
    --secondary-color: #8b5cf6; 
    
    /* Couleurs institutionnelles (Slate/Navy profond) */
    --text-dark: #1e293b;
    --text-light: #475569;
    --bg-main: #ffffff;
    --bg-alt: #f1f5f9;
    --border-color: #cbd5e1;
    
    --font-heading: 'Lora', serif;
    --font-body: 'Roboto', sans-serif;
    
    /* Pas d'arrondi pour le style strict */
    --radius: 0px; 
}

:root[data-theme="dark"] {
    --text-dark: #f8fafc;
    --text-light: #94a3b8;
    --bg-main: #0f172a;
    --bg-alt: #1e293b;
    --border-color: #334155;
}

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

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--bg-main);
    font-weight: 400;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-weight: 700;
    line-height: 1.3;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease-in-out;
}

/* Header & Nav */
header {
    background: var(--bg-main);
    border-bottom: 2px solid var(--text-dark);
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* Bandeau de séparation stricte aux deux couleurs 50/50 */
header::before {
    content: '';
    display: block;
    height: 6px;
    width: 100%;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--primary-color) 50%, var(--secondary-color) 50%, var(--secondary-color) 100%);
}

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

.logo img {
    height: 80px;
    object-fit: contain;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
    list-style: none;
}

.nav-links a {
    font-weight: 500;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding-bottom: 5px;
}

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

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--text-dark);
    transition: width 0.2s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.lang-switcher {
    display: flex;
    gap: 0;
    border: 1px solid var(--border-color);
}

.lang-btn {
    background: var(--bg-main);
    border: none;
    padding: 0.5rem 0.8rem;
    cursor: pointer;
    font-weight: 600;
    color: var(--text-light);
    font-family: var(--font-body);
    font-size: 0.85rem;
    text-transform: uppercase;
}

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

.theme-switcher {
    margin-left: 1rem;
    padding: 0.5rem 1rem;
    border: 1px solid var(--text-dark);
    background: var(--bg-main);
    color: var(--text-dark);
    cursor: pointer;
    text-transform: uppercase;
    font-weight: 500;
    font-size: 0.85rem;
}

.theme-switcher:hover {
    background: var(--text-dark);
    color: var(--bg-main);
}

/* Institutional Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: var(--radius); /* 0px */
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 1rem;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
}

/* Utilisation égale du Vert et Violet pour les actions */
.btn-primary {
    background: var(--primary-color);
    color: #ffffff;
    border: 2px solid var(--primary-color);
}

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

.btn-secondary {
    background: var(--secondary-color);
    color: #ffffff;
    border: 2px solid var(--secondary-color);
}

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

/* Hero Section */
.hero {
    padding: 8rem 2rem;
    text-align: center;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border-color);
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
}

/* Bloc visuel équilibré Vert/Violet en bas du Hero */
.hero::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 8px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--primary-color) 50%, var(--secondary-color) 50%, var(--secondary-color) 100%);
}

.hero h1 {
    font-size: 4rem;
    font-weight: 700;
    max-width: 900px;
    margin: 0 auto 1.5rem auto;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto 3rem auto;
    font-family: var(--font-heading);
    font-style: italic;
}

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

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

/* Grid & Cards (Flat Design Strict) */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 0; /* Pas de gap, on utilise des bordures partagées */
    margin-top: 3rem;
    border: 1px solid var(--border-color);
}

.card {
    background: var(--bg-main);
    border-right: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 4rem 3rem;
    text-align: center;
    transition: background 0.2s ease;
}

/* Retire la bordure droite du dernier élément de chaque ligne */
.card:nth-child(3n) {
    border-right: none;
}

.card:hover {
    background: var(--bg-alt);
}

/* Alternance Vert/Violet sur les icônes */
.card:nth-child(odd) .card-icon {
    color: var(--primary-color);
}
.card:nth-child(even) .card-icon {
    color: var(--secondary-color);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.card h3 {
    font-size: 1.4rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Page headers */
.page-header {
    background: var(--bg-alt);
    padding: 6rem 2rem 4rem 2rem;
    text-align: center;
    border-bottom: 4px solid var(--text-dark);
}

.page-header h1 {
    font-size: 3rem;
    font-weight: 700;
}

.content-section {
    background: var(--bg-main);
    padding: 4rem;
    border: 1px solid var(--border-color);
}

/* Footer */
footer {
    background: var(--text-dark);
    color: var(--bg-main);
    text-align: center;
    padding: 5rem 2rem;
    margin-top: 6rem;
    border-top: 8px solid;
    border-image: linear-gradient(90deg, var(--primary-color) 50%, var(--secondary-color) 50%) 1;
}

footer p {
    margin-bottom: 0.5rem;
    color: #94a3b8;
}

/* Sidebar Layout */
.page-layout {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 4rem;
    align-items: start;
}

.sidebar {
    position: sticky;
    top: 120px;
    background: var(--bg-alt);
    border: 1px solid var(--border-color);
    padding: 2.5rem;
}

.sidebar h3 {
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--text-dark);
    padding-bottom: 0.5rem;
}

.report-list {
    list-style: none;
    padding: 0;
}

.report-list li {
    margin-bottom: 0;
    border-bottom: 1px solid var(--border-color);
}

.report-list a {
    display: block;
    padding: 1.5rem 1rem;
    font-weight: 500;
    color: var(--text-light);
    transition: all 0.2s ease;
    border-left: 4px solid transparent;
}

.report-list a:hover {
    background: var(--bg-main);
    color: var(--text-dark);
}

/* Active states for sidebar links alternating green/purple */
.report-list li:nth-child(odd) a.active {
    border-left-color: var(--primary-color);
    background: var(--bg-main);
    color: var(--text-dark);
    font-weight: 700;
}

.report-list li:nth-child(even) a.active {
    border-left-color: var(--secondary-color);
    background: var(--bg-main);
    color: var(--text-dark);
    font-weight: 700;
}

.report-date {
    display: block;
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
    font-family: var(--font-body);
}

@media (max-width: 900px) {
    .page-layout {
        grid-template-columns: 1fr;
    }
}


/* Flag switcher */
.lang-flag { width: 24px; height: 18px; object-fit: contain; border-radius: 2px; vertical-align: middle; transition: filter 0.3s ease; }
.lang-btn:not(.active) .lang-flag { filter: grayscale(100%) opacity(50%); }
.lang-btn.active .lang-flag, .lang-btn:hover .lang-flag { filter: grayscale(0%) opacity(100%); }
.lang-switcher { display: flex; align-items: center; gap: 0.5rem; }


/* Partner Marquee Carousel */
.marquee-wrapper { overflow: hidden; padding: 2rem 0; margin: 3rem 0; background: var(--bg-alt); border-radius: var(--radius-card); box-shadow: inset var(--shadow-soft); position: relative; border: 2px solid var(--border-color); }
.marquee-container { display: flex; width: fit-content; animation: marquee 25s linear infinite; }
.marquee-container:hover { animation-play-state: paused; }
.marquee-content { display: flex; align-items: center; gap: 4rem; padding-right: 4rem; }
.partner-logo { height: 100px; object-fit: contain; transition: transform 0.3s ease; }
.partner-logo:hover { transform: scale(1.08); }
.partner-fallback { font-family: var(--font-heading); font-weight: 700; font-size: 1.2rem; color: var(--primary-color); border: 3px solid var(--primary-color); padding: 0.8rem 1.5rem; border-radius: var(--radius-btn); white-space: nowrap; transition: all 0.3s ease; }
.partner-fallback:hover { background-color: var(--primary-color); color: var(--white); transform: scale(1.05); }
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

