﻿:root {
    --bg: #ffffff;
    --surface: #f5f7ee;
    --surface-strong: #e7ecd7;
    --primary: rgb(65, 121, 48);
    --secondary: rgb(143, 197, 33);
    --accent: rgb(119, 134, 30);
    --text: #1c2a1c;
    --muted: #5a6a4d;
    --border: #d8dfc6;
    --shadow: rgba(65, 121, 48, 0.15);
    --container: 1180px;
    --header-height: 73px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

img {
    max-width: 100%;
    display: block;
    border-radius: 12px;
}

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

button {
    font: inherit;
    cursor: pointer;
}

.container {
    width: min(100%, var(--container));
    margin: 0 auto;
    padding: 0 1.5rem;
}

.page-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 2px solid var(--primary);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.5rem;
}

.brand {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.brand-logo {
    width: 200px;
    height: auto;
    max-height: 44px;
    object-fit: contain;
}


.main-nav {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-link,
.nav-cta {
    position: relative;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.main-nav a::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 6px;
    width: 0;
    height: 8px;
    border-radius: 999px;
    background: rgba(65, 121, 48, 0.95);
    transform: translateX(-50%) scaleX(0);
    transition: width 0.3s ease, transform 0.3s ease, background 0.3s ease;
}

.nav-link {
    color: var(--muted);
}

.main-nav a:hover::after,
.main-nav a:focus::after,
.main-nav a.active::after {
    width: 28px;
    transform: translateX(-50%) scaleX(1);
    background: rgba(143, 197, 33, 0.95);
}

.nav-link:hover,
.nav-link.active {
    color: var(--text);
    background: var(--surface);
}

.main-nav a::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 8px;
    width: 0;
    height: 8px;
    border-radius: 999px;
    background: rgba(143, 197, 33, 0.95);
    transform: translateX(-50%) scaleX(0);
    transition: width 0.3s ease, transform 0.3s ease, background 0.3s ease;
}

.main-nav a:hover::after,
.main-nav a:focus::after,
.main-nav a.active::after {
    width: 28px;
    transform: translateX(-50%) scaleX(1);
}

.nav-cta {
    background: var(--primary);
    color: #fff;
    font-weight: 700;
}

.nav-cta:hover {
    background: var(--accent);
}

.main-nav .nav-cta[href="admin.php"],
.mobile-menu .mobile-cta[href="admin.php"] {
    display: none !important;
}

.lang-switch {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-left: 0.25rem;
    padding: 0.2rem;
    border-radius: 999px;
    background: var(--surface);
    border: 1px solid var(--border);
}

.lang-link {
    position: relative;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--muted);
    letter-spacing: 0.02em;
}

/* Neutralise la barre de soulignement héritée de .main-nav a::after (et de ses
   variantes :hover/:focus/.active, plus spécifiques que .lang-link::after seul) :
   ce pill utilise un fond plein pour l'état actif, pas un soulignement. */
.main-nav .lang-switch a::after,
.mobile-lang-switch a::after {
    content: none;
    display: none;
}

.lang-link:hover {
    color: var(--text);
}

.lang-link.active {
    background: var(--primary);
    color: #fff;
}

.mobile-lang-switch {
    justify-content: center;
    width: 100%;
    margin-top: 0.5rem;
}

.mobile-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--border);
    background: transparent;
    border-radius: 12px;
    cursor: pointer;
    position: relative;
}

.mobile-toggle span {
    position: absolute;
    left: 12px;
    right: 12px;
    height: 3px;
    background: var(--text);
    border-radius: 999px;
}

.mobile-toggle span:nth-child(1) { top: 13px; }
.mobile-toggle span:nth-child(2) { top: 19px; }
.mobile-toggle span:nth-child(3) { top: 25px; }

.mobile-menu {
    display: none;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1rem 1.5rem 1.5rem;
    background: #fff;
    border-bottom: 1px solid var(--border);
}

.mobile-menu .nav-link,
.mobile-menu .mobile-cta {
    width: 100%;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.contact-card,
.admin-card,
.admin-panel,
.admin-table-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 2rem;
    box-shadow: 0 18px 40px rgba(65, 121, 48, 0.08);
}

.contact-card h3,
.admin-panel h2 {
    margin-bottom: 1rem;
}

.contact-card a {
    color: var(--primary);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 2rem;
    background: var(--surface);
    box-shadow: 0 18px 40px rgba(65, 121, 48, 0.08);
}

.contact-form label {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    font-weight: 600;
    color: var(--text);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1rem;
    background: #fff;
    color: var(--text);
    outline: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--primary);
}

.admin-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.admin-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.admin-card span {
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.82rem;
}

.admin-card strong {
    font-size: 2.2rem;
    color: var(--text);
}

.admin-grid-2 {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.progress-block {
    margin-top: 1.25rem;
    display: grid;
    gap: 0.75rem;
}

.admin-panel ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.85rem;
}

.admin-panel li {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 0.95rem 1rem;
    color: var(--muted);
}

.progress-bar {
    width: 100%;
    height: 14px;
    background: var(--surface-strong);
    border-radius: 999px;
    overflow: hidden;
    border: 1px solid var(--border);
}

.progress-bar div {
    height: 100%;
    background: var(--secondary);
    border-radius: 999px;
}

.admin-table-card h2 {
    margin-bottom: 1.25rem;
}

.admin-table-card table {
    width: 100%;
    border-collapse: collapse;
    overflow: hidden;
    border-radius: 20px;
}

.admin-table-card th,
.admin-table-card td {
    text-align: left;
    padding: 1rem 1.15rem;
    border-bottom: 1px solid var(--border);
}

.admin-table-card th {
    background: var(--surface-strong);
    color: var(--text);
}

.admin-table-card td {
    color: var(--muted);
}

.status {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
}

.status-green {
    background: rgba(143, 197, 33, 0.18);
    color: var(--primary);
}

.status-yellow {
    background: rgba(255, 189, 69, 0.18);
    color: #8d6b12;
}

.status-red {
    background: rgba(255, 111, 89, 0.18);
    color: #b02a1a;
}

.hero-section {
    padding: 5rem 1.5rem 3rem;
    background: radial-gradient(circle at top left, rgba(143,197,33,0.15), transparent 35%),
                radial-gradient(circle at bottom right, rgba(65,121,48,0.2), transparent 30%);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 2.5rem;
    align-items: center;
}

.hero-text {
    max-width: 34rem;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    color: var(--primary);
    font-size: 0.95rem;
    font-weight: 700;
}

.hero-text h1 {
    font-size: clamp(2.8rem, 4.5vw, 4.5rem);
    line-height: 1.05;
    margin-bottom: 1.5rem;
}

.hero-text p {
    color: var(--muted);
    font-size: 1.05rem;
    margin-bottom: 2rem;
    max-width: 40rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.95rem 1.6rem;
    border-radius: 999px;
    font-weight: 700;
    transition: transform 0.2s ease, background 0.2s ease;
}

.button-primary {
    background: var(--primary);
    color: #fff;
}

.button-secondary {
    background: var(--surface);
    color: var(--text);
}

.button:hover {
    transform: translateY(-2px);
}

.hero-image-card {
    position: relative;
    overflow: hidden;
    border-radius: 32px;
    box-shadow: 0 30px 70px rgba(65,121,48,0.12);
}

.hero-image-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 420px;
}

.hero-card {
    position: absolute;
    bottom: 1.5rem;
    left: 1.5rem;
    right: 1.5rem;
    padding: 1.5rem;
    background: rgba(255,255,255,0.9);
    border-radius: 24px;
    box-shadow: 0 14px 40px rgba(0,0,0,0.08);
    color: var(--text);
}

.section {
    padding: 4rem 1.5rem;
}

.section-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.section-header h2 {
    font-size: clamp(2.2rem, 4vw, 3rem);
    margin: 0.75rem 0 1rem;
}

.section-header p {
    max-width: 740px;
    color: var(--muted);
    margin: 0 auto;
    line-height: 1.8;
}

.cards-grid,
.products-grid {
    display: grid;
    gap: 1.5rem;
}

.cards-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card,
.product-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 2rem;
    box-shadow: 0 20px 45px rgba(65,121,48,0.08);
    transition: all 0.3s ease;
}

.card:hover,
.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 35px 70px rgba(65,121,48,0.15);
    border-color: var(--primary);
}

.card h3,
.product-card h3 {
    margin-bottom: 0.85rem;
    color: var(--text);
}

.card p,
.product-card p {
    color: var(--muted);
    line-height: 1.8;
}

.product-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 18px;
    margin-bottom: 1.15rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.gallery-grid img {
    height: 240px;
    object-fit: cover;
    border-radius: 24px;
}

.site-footer {
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding: 2.5rem 1.5rem;
}

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

.footer-grid h3,
.footer-grid h4 {
    margin-bottom: 1rem;
}

.footer-grid p {
    color: var(--muted);
    line-height: 1.8;
}

.footer-newsletter {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: rgba(65, 121, 48, 0.08);
    border-radius: 24px;
    border: 1px solid rgba(65, 121, 48, 0.14);
}

.footer-newsletter h4 {
    margin-bottom: 0.75rem;
}

.footer-newsletter p {
    margin-bottom: 1rem;
    color: var(--text);
}

.footer-newsletter form {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) auto;
    gap: 0.75rem;
    align-items: center;
}

.footer-newsletter input {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 0.95rem 1rem;
    background: #fff;
    color: var(--text);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.footer-newsletter input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(65, 121, 48, 0.08);
}

.footer-newsletter button {
    border: none;
    border-radius: 14px;
    background: var(--primary);
    color: #fff;
    padding: 0.95rem 1.3rem;
    cursor: pointer;
    transition: background 0.25s ease, transform 0.25s ease;
}

.footer-newsletter button:hover {
    background: var(--accent);
    transform: translateY(-1px);
}

.donate-section {
    background: rgba(143, 197, 33, 0.09);
    border: 1px solid rgba(143, 197, 33, 0.18);
    border-radius: 26px;
    padding: 2rem 1.5rem;
    margin: 2rem 0;
}

.donate-section h2 {
    margin-bottom: 0.75rem;
}

.donate-section p {
    margin-bottom: 1.5rem;
    color: var(--text);
    max-width: 780px;
}

.donate-section .button-primary {
    padding: 1rem 1.5rem;
    font-weight: 700;
}

.donate-section .donate-list {
    display: grid;
    gap: 1rem;
    margin-top: 1rem;
}

.donate-section .donate-list li {
    color: var(--text);
    padding-left: 1.35rem;
    position: relative;
}

.donate-section .donate-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary);
}

@media (max-width: 760px) {
    .hero-grid,
    .cards-grid,
    .products-grid,
    .footer-grid,
    .contact-grid,
    .admin-grid,
    .admin-grid-2 {
        grid-template-columns: 1fr;
    }

    .hero-image-card {
        min-height: 360px;
    }

    .admin-table-card {
        overflow-x: auto;
    }
}

@media (max-width: 760px) {
    .nav-container {
        padding: 0.95rem 1rem;
    }

    .main-nav {
        display: none;
    }

    .mobile-toggle {
        display: inline-flex;
    }

    .mobile-menu {
        display: none;
    }

    .mobile-menu.active {
        display: flex;
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        z-index: 60;
        max-height: calc(100vh - var(--header-height));
        overflow-y: auto;
        box-shadow: 0 18px 40px rgba(15, 23, 42, 0.14);
    }
}

@media (max-width: 640px) {
    .hero-text h1 {
        font-size: 2.7rem;
    }

    .gallery-grid img {
        height: 180px;
    }
}

.donate-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: 1.3fr 0.9fr;
    align-items: start;
}
.donate-info-card {
    background: rgba(255,255,255,0.95);
    border-radius: 26px;
    border: 1px solid rgba(65,121,48,0.14);
    padding: 2rem;
    box-shadow: 0 22px 55px rgba(15,23,42,0.08);
}
.donate-list {
    list-style: disc inside;
    margin: 1.5rem 0 0 0;
    padding-left: 1rem;
    line-height: 1.9;
}
.donate-list li {
    margin-bottom: 1rem;
}
.donate-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1.75rem;
}
.donate-note {
    color: var(--muted);
    margin-top: 1.25rem;
}
@media (max-width: 860px) {
    .donate-grid {
        grid-template-columns: 1fr;
    }
}

.news-hero {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(90deg, rgba(2, 33, 25, 0.94) 0%, rgba(2, 33, 25, 0.76) 48%, rgba(2, 33, 25, 0.18) 100%),
        /* Nom neutre : "banner.jpg" se fait bloquer par les bloqueurs de pubs
           (intégré par défaut dans Opera), ce qui casse le hero. */
        url('../images/actualites-hero.jpg') center/cover no-repeat;
    color: #fff;
}

.news-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(6, 45, 33, 0.08);
    z-index: 1;
}

.news-hero-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(300px, 1.1fr);
    min-height: 320px;
    align-items: center;
}

.news-hero-copy {
    padding: 4.5rem 0;
    max-width: 640px;
}

.news-hero-copy .eyebrow {
    color: var(--secondary);
}

.news-hero-copy h1 {
    font-size: clamp(2.7rem, 5vw, 4.6rem);
    line-height: 1;
    margin-bottom: 1.25rem;
}

.news-hero-copy h1 span {
    color: var(--secondary);
}

.news-hero-copy p {
    max-width: 620px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.08rem;
}

.news-main-section {
    background: #fff;
}

.news-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 2.25rem;
    align-items: start;
}

.news-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 1.6rem;
}

.news-toolbar h2 {
    font-size: clamp(1.8rem, 3vw, 2.3rem);
}

.news-sort {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--muted);
    font-size: 0.92rem;
}

.news-sort strong {
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0.65rem 0.85rem;
    background: #fff;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.05);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.45rem;
}

.news-card {
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(65, 121, 48, 0.14);
    border-radius: 16px;
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.news-card:hover {
    transform: translateY(-4px);
    border-color: rgba(65, 121, 48, 0.32);
    box-shadow: 0 28px 60px rgba(15, 23, 42, 0.12);
}

.news-card img {
    width: 100%;
    height: 178px;
    object-fit: cover;
    border-radius: 0;
}

.news-card-body {
    position: relative;
    display: grid;
    gap: 0.7rem;
    padding: 1.25rem;
}

.news-tag {
    justify-self: start;
    margin-top: -2.35rem;
    border-radius: 999px;
    background: var(--primary);
    color: #fff;
    padding: 0.35rem 0.75rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
}

.news-card time {
    color: var(--muted);
    font-size: 0.86rem;
}

.news-card h3 {
    font-size: 1.16rem;
    line-height: 1.32;
    color: var(--text);
}

.news-card p {
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

.news-card a {
    color: var(--primary);
    font-weight: 700;
    font-size: 0.92rem;
}

.news-card a::after {
    content: ' ->';
}

.news-sidebar {
    display: grid;
    gap: 1.3rem;
    position: sticky;
    top: 98px;
}

.sidebar-panel,
.sidebar-donation {
    border: 1px solid rgba(65, 121, 48, 0.12);
    border-radius: 16px;
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
}

.sidebar-panel {
    background: #fff;
    padding: 1.45rem;
}

.sidebar-panel h2,
.sidebar-donation h2 {
    font-size: 1.28rem;
    margin-bottom: 1rem;
}

.category-list {
    display: grid;
    gap: 0.65rem;
    list-style: none;
}

.category-list a {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    color: var(--muted);
    font-size: 0.93rem;
}

.category-list a::before {
    content: '+';
    color: var(--primary);
    font-weight: 700;
}

.category-list span {
    color: var(--primary);
    font-weight: 700;
    margin-left: auto;
}

.sidebar-newsletter {
    background: var(--surface);
}

.sidebar-newsletter p {
    color: var(--muted);
    margin-bottom: 1rem;
}

.sidebar-newsletter form {
    display: grid;
    gap: 0.8rem;
}

.sidebar-newsletter input {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0.95rem 1rem;
    background: #fff;
    outline: none;
}

.sidebar-newsletter button {
    border: none;
    border-radius: 12px;
    background: var(--primary);
    color: #fff;
    padding: 0.95rem 1rem;
    font-weight: 700;
}

.sidebar-donation {
    overflow: hidden;
    min-height: 205px;
    padding: 1.45rem;
    background:
        linear-gradient(135deg, rgba(6, 45, 33, 0.92), rgba(65, 121, 48, 0.58)),
        url('../images/IMG-20250923-WA0059.jpg') center/cover;
    color: #fff;
}

.sidebar-donation p {
    color: rgba(255, 255, 255, 0.88);
    margin-bottom: 1.15rem;
}

.sidebar-donation a {
    display: inline-flex;
    border-radius: 12px;
    background: #fff;
    color: var(--primary);
    padding: 0.8rem 1rem;
    font-weight: 700;
}

.news-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.news-pagination a,
.news-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text);
    background: #fff;
}

.news-pagination a.active {
    border-color: var(--primary);
    background: var(--primary);
    color: #fff;
}

.news-pagination .next {
    min-width: 94px;
}

.news-values {
    padding: 0 1.5rem 4rem;
    background: #fff;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    border: 1px solid rgba(65, 121, 48, 0.12);
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(245, 247, 238, 0.96), rgba(255, 255, 255, 0.98));
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.06);
    padding: 1.6rem;
}

.values-grid article {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 0.9rem;
    align-items: start;
}

.values-grid span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(143, 197, 33, 0.2);
    color: var(--primary);
    font-weight: 700;
}

.values-grid h3 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.values-grid p {
    grid-column: 2;
    color: var(--muted);
    font-size: 0.92rem;
}

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

    .news-sidebar {
        position: static;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .news-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .news-hero-grid {
        grid-template-columns: 1fr;
        min-height: 420px;
    }

    .news-hero-copy {
        padding: 4rem 0;
    }

    .news-toolbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .news-grid,
    .news-sidebar,
    .values-grid {
        grid-template-columns: 1fr;
    }
}

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

    .footer-newsletter button {
        width: 100%;
    }

    .news-card img {
        height: 210px;
    }

    .news-sort {
        width: 100%;
        justify-content: space-between;
    }

    .values-grid {
        padding: 1.2rem;
    }
}

/* ===================================================================
   Article détail — pages Kavumu (kavumu-article.php)
   Réutilise les tokens --primary/--secondary/--surface/--border déjà
   définis en tête de fichier pour rester cohérent avec le reste du site.
   =================================================================== */

.article-page {
    padding-bottom: 4rem;
    background: #fff;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    padding: 1.6rem 0 0.4rem;
    font-size: 0.88rem;
    color: var(--muted);
}

.breadcrumb a {
    color: var(--muted);
}

.breadcrumb a:hover {
    color: var(--primary);
}

.breadcrumb [aria-current="page"] {
    color: var(--text);
    font-weight: 600;
    max-width: 32ch;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.article-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 2.75rem;
    align-items: start;
    padding-top: 1.5rem;
}

.article-main {
    min-width: 0;
}

.article-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    background: rgba(143, 197, 33, 0.18);
    color: var(--primary);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 0.4rem 0.9rem;
    margin-bottom: 1rem;
}

.article-main h1 {
    font-size: clamp(1.9rem, 3.6vw, 2.7rem);
    line-height: 1.18;
    margin-bottom: 1.1rem;
}

.article-meta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.4rem;
    padding-bottom: 1.5rem;
    margin-bottom: 1.75rem;
    border-bottom: 1px solid var(--border);
    color: var(--muted);
    font-size: 0.9rem;
}

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

.meta-item svg {
    width: 17px;
    height: 17px;
    color: var(--primary);
    flex-shrink: 0;
}

.share-row {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    margin-left: auto;
}

.share-row > span {
    color: var(--muted);
    font-size: 0.85rem;
    margin-right: 0.15rem;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--surface);
    color: var(--primary);
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.share-btn svg {
    width: 16px;
    height: 16px;
}

.share-btn:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-2px);
}

.article-cover {
    margin-bottom: 1.75rem;
}

.article-cover img {
    width: 100%;
    aspect-ratio: 1200 / 650;
    object-fit: cover;
    border-radius: 20px;
}

.article-cover figcaption {
    margin-top: 0.75rem;
    color: var(--muted);
    font-size: 0.88rem;
    font-style: italic;
    text-align: center;
}

.media-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    width: 100%;
    border-radius: 20px;
    border: 1.5px dashed rgba(65, 121, 48, 0.35);
    background: var(--surface);
    color: var(--muted);
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
    padding: 1rem;
}

.media-placeholder svg {
    width: 34px;
    height: 34px;
    color: var(--primary);
    opacity: 0.55;
}

.media-placeholder--cover {
    aspect-ratio: 1200 / 650;
    border-radius: 20px;
}

.media-placeholder--thumb {
    aspect-ratio: 3 / 2;
    border-radius: 14px;
    font-size: 0.78rem;
}

.media-placeholder--thumb svg {
    width: 26px;
    height: 26px;
}

.media-placeholder--avatar {
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    width: 72px;
    padding: 0.4rem;
}

.article-lead {
    font-size: 1.15rem;
    font-weight: 600;
    line-height: 1.7;
    color: var(--text);
    margin-bottom: 2rem;
}

.article-body {
    display: grid;
    gap: 1.75rem;
    margin-bottom: 2.25rem;
}

.article-section h2 {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    font-size: 1.3rem;
    margin-bottom: 0.7rem;
}

.section-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(143, 197, 33, 0.18);
    color: var(--primary);
    flex-shrink: 0;
}

.section-icon svg {
    width: 18px;
    height: 18px;
}

.article-section p {
    color: var(--muted);
    line-height: 1.85;
    font-size: 1.02rem;
}

.testimonial-block {
    position: relative;
    overflow: hidden;
    background: var(--surface);
    border-left: 4px solid var(--primary);
    border-radius: 4px 18px 18px 4px;
    padding: 2rem 2rem 1.75rem;
    margin: 2.25rem 0;
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.06);
}

.testimonial-quote-icon {
    position: absolute;
    top: 0.9rem;
    right: 1.3rem;
    color: rgba(65, 121, 48, 0.14);
}

.testimonial-quote-icon svg {
    width: 56px;
    height: 56px;
}

.testimonial-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
}

.testimonial-text {
    position: relative;
    z-index: 1;
    font-size: 1.15rem;
    font-style: italic;
    line-height: 1.7;
    color: var(--text);
    margin-bottom: 1rem;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    font-style: normal;
}

.testimonial-author strong {
    color: var(--primary);
}

.testimonial-author span {
    color: var(--muted);
    font-size: 0.88rem;
}

.video-block {
    margin: 2.25rem 0;
}

.video-block h2 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.video-block > p {
    color: var(--muted);
    margin-bottom: 1rem;
}

.video-embed {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.1);
}

.video-embed iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 0;
}

.gallery-block {
    margin: 2.5rem 0;
}

.gallery-heading {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.1rem;
}

.gallery-heading h2 {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1.3rem;
}

.gallery-heading h2 svg {
    width: 20px;
    height: 20px;
    color: var(--primary);
}

.gallery-cta {
    border: 1px solid var(--primary);
    background: #fff;
    color: var(--primary);
    font-weight: 700;
    font-size: 0.85rem;
    border-radius: 999px;
    padding: 0.6rem 1.1rem;
}

.gallery-cta:hover {
    background: var(--primary);
    color: #fff;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.gallery-item figcaption {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: var(--muted);
}

.gallery-item-trigger {
    display: block;
    width: 100%;
    border: 0;
    background: none;
    padding: 0;
    border-radius: 14px;
    overflow: hidden;
    cursor: zoom-in;
}

.gallery-item-trigger img {
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    border-radius: 14px;
    transition: transform 0.3s ease;
}

.gallery-item-trigger:hover img {
    transform: scale(1.04);
}

.tags-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem;
    margin: 2.25rem 0;
}

.tags-label {
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 600;
}

.tag-chip {
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: 999px;
    padding: 0.4rem 0.9rem;
    font-size: 0.82rem;
}

.article-pager {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin: 2rem 0;
}

.pager-link {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.1rem 1.25rem;
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.pager-link:hover {
    border-color: var(--primary);
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.08);
    transform: translateY(-2px);
}

.pager-next {
    text-align: right;
    align-items: flex-end;
}

.pager-label {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.pager-label svg {
    width: 15px;
    height: 15px;
    color: var(--primary);
}

.pager-link strong {
    color: var(--text);
    font-size: 0.98rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-cta {
    margin-top: 2.5rem;
    padding: 2.5rem 2rem;
    border-radius: 22px;
    text-align: center;
    color: #fff;
    background: linear-gradient(135deg, rgba(6, 45, 33, 0.96), rgba(65, 121, 48, 0.92));
}

.article-cta h2 {
    font-size: 1.5rem;
    margin-bottom: 0.6rem;
}

.article-cta p {
    max-width: 46rem;
    margin: 0 auto 1.5rem;
    color: rgba(255, 255, 255, 0.88);
}

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

.article-cta .button-secondary {
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
}

/* Sidebar (article) --------------------------------------------------- */

.sidebar-author-body {
    display: flex;
    gap: 0.9rem;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.sidebar-author-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--surface);
    color: var(--primary);
    flex-shrink: 0;
}

.sidebar-author-avatar svg {
    width: 26px;
    height: 26px;
}

.sidebar-author-body strong {
    display: block;
    margin-bottom: 0.3rem;
}

.sidebar-author-body p {
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.6;
}

.sidebar-author-link {
    color: var(--primary);
    font-weight: 700;
    font-size: 0.9rem;
}

.sidebar-newsletter-dark {
    background: linear-gradient(150deg, rgba(6, 45, 33, 0.97), rgba(65, 121, 48, 0.92));
    color: #fff;
}

.sidebar-newsletter-dark p {
    color: rgba(255, 255, 255, 0.82);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.sidebar-newsletter-dark form {
    display: grid;
    gap: 0.7rem;
}

.sidebar-newsletter-dark input {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 12px;
    padding: 0.85rem 1rem;
    background: rgba(255, 255, 255, 0.95);
    outline: none;
}

.sidebar-newsletter-dark button {
    border: none;
    border-radius: 12px;
    background: var(--secondary);
    color: #06291f;
    padding: 0.85rem 1rem;
    font-weight: 700;
}

.recent-list {
    display: grid;
    gap: 0.9rem;
    list-style: none;
    margin-bottom: 1rem;
}

.recent-list a {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.recent-thumb {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: var(--surface);
    color: var(--primary);
    overflow: hidden;
    flex-shrink: 0;
}

.recent-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
}

.recent-thumb svg {
    width: 22px;
    height: 22px;
}

.recent-info {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
}

.recent-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.recent-date {
    font-size: 0.78rem;
    color: var(--muted);
}

/* Lightbox galerie ------------------------------------------------------ */

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.lightbox[hidden] {
    display: none;
}

.lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(6, 20, 14, 0.86);
}

.lightbox-dialog {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
    max-width: 900px;
}

.lightbox-body {
    flex: 1;
    min-width: 0;
}

.lightbox-media {
    border-radius: 16px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.06);
}

.lightbox-media img {
    width: 100%;
    max-height: 72vh;
    object-fit: contain;
    border-radius: 16px;
    background: #0d1f16;
}

.lightbox-media .media-placeholder {
    aspect-ratio: 3 / 2;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.85);
}

.lightbox-media .media-placeholder svg {
    color: #fff;
    opacity: 0.7;
}

.lightbox-caption {
    color: rgba(255, 255, 255, 0.85);
    text-align: center;
    margin-top: 0.85rem;
    font-size: 0.92rem;
}

.lightbox-close {
    position: absolute;
    top: -3rem;
    right: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.lightbox-close svg {
    width: 18px;
    height: 18px;
}

.lightbox-nav {
    flex-shrink: 0;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.lightbox-nav svg {
    width: 20px;
    height: 20px;
}

.lightbox-nav:hover,
.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.24);
}

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

    .article-sidebar {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.3rem;
    }
}

@media (max-width: 760px) {
    .article-meta-row {
        gap: 0.9rem;
    }

    .share-row {
        margin-left: 0;
        width: 100%;
    }

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

    .article-pager {
        grid-template-columns: 1fr;
    }

    .pager-next {
        text-align: left;
        align-items: flex-start;
    }

    .article-sidebar {
        grid-template-columns: 1fr;
    }

    .lightbox-dialog {
        flex-direction: column;
    }

    .lightbox-nav {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
    }

    .lightbox-prev {
        left: -0.5rem;
    }

    .lightbox-next {
        right: -0.5rem;
    }
}

@media (max-width: 520px) {
    .article-cta {
        padding: 2rem 1.25rem;
    }

    .testimonial-block {
        padding: 1.5rem 1.25rem;
    }
}

.news-card-placeholder {
    height: 178px;
    border-radius: 0;
    border-width: 0 0 1px;
    border-style: solid;
    border-color: rgba(65, 121, 48, 0.14);
}
