@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700&family=Quicksand:wght@500;600;700&display=swap');

:root {
    /* Couleurs de base légèrement adoucies pour l'aspect organique */
    --primary-color: #70c85c;
    --secondary-color: #966eea;
    
    /* Palette chaleureuse "Terre & Nature" */
    --bg-main: #fcfbf8; /* Crème très clair */
    --bg-alt: #f3eee5; /* Beige doux */
    --text-dark: #4a3f35; /* Brun-Gris doux (pas de noir pur) */
    --text-light: #82756a; /* Brun clair */
    --border-color: #e5dacd;
    
    --font-heading: 'Quicksand', sans-serif;
    --font-body: 'Nunito', sans-serif;
    
    /* Rondeur maximale pour l'effet galet / amical */
    --radius-btn: 50px;
    --radius-card: 35px;
    --shadow-soft: 0 12px 35px rgba(74, 63, 53, 0.05);
}

:root[data-theme="dark"] {
    /* Palette sombre "Nuit chaude" */
    --bg-main: #2a2623;
    --bg-alt: #36302c;
    --text-dark: #fcfbf8;
    --text-light: #b0a59a;
    --border-color: #4a423d;
    --shadow-soft: 0 12px 35px rgba(0, 0, 0, 0.2);
}

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

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    line-height: 1.7;
    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.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

.logo img {
    height: 80px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.logo img:hover {
    transform: scale(1.05) rotate(-2deg);
}

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

.nav-links a {
    font-weight: 600;
    font-size: 1rem;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-btn);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.nav-links a:hover {
    background-color: var(--bg-alt);
    color: var(--primary-color);
}

.lang-switcher {
    display: flex;
    gap: 0.5rem;
    background: var(--bg-alt);
    padding: 0.3rem;
    border-radius: var(--radius-btn);
}

.lang-btn {
    background: transparent;
    border: none;
    padding: 0.4rem 0.8rem;
    border-radius: var(--radius-btn);
    cursor: pointer;
    font-weight: 700;
    color: var(--text-light);
    font-family: var(--font-body);
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.lang-btn.active {
    background: var(--bg-main);
    color: var(--primary-color);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.theme-switcher {
    margin-left: 1rem;
    padding: 0.6rem;
    border-radius: 50%;
    border: none;
    background: var(--bg-alt);
    color: var(--text-dark);
    cursor: pointer;
    transition: transform 0.3s;
}

.theme-switcher:hover {
    transform: scale(1.1) rotate(15deg);
    background: var(--border-color);
}

/* Organic Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: var(--radius-btn);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--primary-color);
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(112, 200, 92, 0.3);
}

.btn-primary:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 15px 25px rgba(112, 200, 92, 0.4);
}

.btn-secondary {
    background: var(--bg-alt);
    color: var(--text-dark);
    border: 2px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--secondary-color);
    color: #ffffff;
    border-color: var(--secondary-color);
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 8px 20px rgba(150, 110, 234, 0.3);
}

/* Hero Section */
.hero {
    padding: 8rem 2rem;
    text-align: center;
    background: var(--bg-alt);
    /* Forme organique au bas du header */
    border-bottom-left-radius: 50px;
    border-bottom-right-radius: 50px;
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 700;
    max-width: 900px;
    margin: 0 auto 1.5rem auto;
    color: var(--text-dark);
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto 3rem auto;
    font-weight: 600;
}

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

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

/* Grid & Cards (Organic design) */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-top: 4rem;
}

.card {
    background: var(--bg-main);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-card);
    padding: 3.5rem 2.5rem;
    text-align: center;
    box-shadow: var(--shadow-soft);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    background: var(--bg-alt);
}

/* Alternance Vert/Violet sur les icônes */
.card:nth-child(odd) .card-icon {
    color: var(--primary-color);
    background: rgba(112, 200, 92, 0.1);
}
.card:nth-child(even) .card-icon {
    color: var(--secondary-color);
    background: rgba(150, 110, 234, 0.1);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    border-radius: 50%;
}

.card h3 {
    font-size: 1.5rem;
}

/* Page headers */
.page-header {
    background: var(--bg-alt);
    padding: 7rem 2rem 5rem 2rem;
    text-align: center;
    border-bottom-left-radius: 50px;
    border-bottom-right-radius: 50px;
    margin-bottom: 4rem;
}

.page-header h1 {
    font-size: 3.5rem;
}

.content-section {
    background: var(--bg-main);
    padding: 4rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-soft);
}

/* Footer */
footer {
    background: var(--bg-alt);
    color: var(--text-light);
    text-align: center;
    padding: 5rem 2rem;
    margin-top: 6rem;
    border-top-left-radius: 50px;
    border-top-right-radius: 50px;
}

footer p {
    margin-bottom: 0.5rem;
}

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

.sidebar {
    position: sticky;
    top: 120px;
    background: var(--bg-main);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-card);
    padding: 2.5rem;
    box-shadow: var(--shadow-soft);
}

.sidebar h3 {
    font-size: 1.4rem;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

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

.report-list li {
    margin-bottom: 1rem;
}

.report-list a {
    display: block;
    padding: 1rem 1.5rem;
    border-radius: 20px;
    font-weight: 600;
    color: var(--text-light);
    background: var(--bg-alt);
    transition: all 0.3s ease;
}

.report-list a:hover {
    background: rgba(112, 200, 92, 0.1);
    color: var(--primary-color);
    transform: translateX(5px);
}

.report-list a.active {
    background: var(--primary-color);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(112, 200, 92, 0.3);
}

.report-list a.active .report-date {
    color: rgba(255,255,255,0.8);
}

.report-date {
    display: block;
    font-size: 0.85rem;
    margin-bottom: 0.2rem;
    color: var(--text-light);
    font-weight: 700;
    text-transform: uppercase;
}

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

/* 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; /* match gap */
}
.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%); }
}


/* 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; }

