:root {
    --green-dark: #075c3a;
    --green: #087443;
    --green-light: #eaf5ef;

    --gold: #c7982b;

    --white: #ffffff;

    --text: #18231d;
    --muted: #66706a;

    --border: #e4e8e5;

    --background: #f7f9f7;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family:
        Arial,
        Helvetica,
        sans-serif;

    background: var(--background);

    color: var(--text);

    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: min(1180px, 92%);
    margin: 0 auto;
}


/* =========================
   TOP BAR
========================= */

.topbar {
    background: var(--green-dark);
    color: white;

    font-size: 13px;
}

.topbar-inner {
    min-height: 34px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;
}

.topbar-links {
    display: flex;
    gap: 16px;
}

.topbar-links a:hover {
    text-decoration: underline;
}


/* =========================
   MAIN NAVIGATION
========================= */

.main-nav {
    background: white;

    border-bottom:
        1px solid var(--border);
}

.navbar {
    min-height: 74px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 30px;
}

.brand {
    display: flex;
    align-items: center;

    gap: 12px;
}

.brand-logo {
    width: 52px;
    height: 52px;

    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    background: var(--green-dark);

    color: white;

    font-size: 22px;
    font-weight: 700;
}

.brand-text strong {
    display: block;

    font-size: 28px;

    color: var(--green-dark);

    font-family: Georgia, serif;

    line-height: 1;
}

.brand-text span {
    display: block;

    margin-top: 4px;

    font-size: 13px;

    color: var(--muted);
}

.nav-links {
    display: flex;
    align-items: center;

    gap: 20px;

    font-size: 14px;
}

.nav-links a {
    transition: 0.2s ease;
}

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

.admin-button {
    padding: 11px 16px;

    border-radius: 6px;

    background: var(--gold);

    color: white !important;

    font-weight: 700;
}


/* =========================
   FOOTER
========================= */

.site-footer {
    margin-top: 60px;

    background: #06442d;

    color: rgba(255,255,255,0.85);
}

.footer-grid {
    padding: 48px 0;

    display: grid;

    grid-template-columns:
        2fr
        1fr
        1fr
        1fr;

    gap: 40px;
}

.footer-grid h3,
.footer-grid h4 {
    color: white;

    margin-bottom: 12px;
}

.footer-grid h3 {
    font-family: Georgia, serif;

    font-size: 28px;
}

.footer-grid a {
    display: block;

    margin-bottom: 8px;
}

.footer-tagline {
    margin-top: 8px;

    font-weight: 600;
}

.footer-bottom {
    border-top:
        1px solid
        rgba(255,255,255,0.15);
}

.footer-bottom-inner {
    min-height: 58px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    font-size: 13px;
}


/* =========================
   RESPONSIVE
========================= */

@media (max-width: 1000px) {

    .nav-links {
        display: none;
    }

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


@media (max-width: 650px) {

    .topbar-links {
        display: none;
    }

    .brand-text strong {
        font-size: 22px;
    }

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

    .footer-bottom-inner {
        flex-direction: column;

        justify-content: center;

        padding: 14px 0;
    }
}
/* =========================
   HOME PAGE
========================= */

.hero-home {
    min-height: 680px;

    display: flex;
    align-items: center;

    color: white;

    background:
        linear-gradient(
            90deg,
            rgba(2, 69, 41, 0.88) 0%,
            rgba(2, 69, 41, 0.60) 45%,
            rgba(2, 69, 41, 0.20) 100%
        ),
        url('/assets/images/kobouo-accueil.jpg')
        center / cover
        no-repeat;
}

.hero-home-content {
    width: 100%;
}

.hero-home-text {
    max-width: 700px;
}

.hero-kicker {
    text-transform: uppercase;
    letter-spacing: 5px;
    font-weight: 700;
    margin-bottom: 10px;
}

.hero-home h1 {
    font-family: Georgia, serif;
    font-size: clamp(72px, 10vw, 120px);
    line-height: .9;
    margin-bottom: 24px;
}

.hero-home h2 {
    font-size: clamp(24px, 4vw, 38px);
    margin-bottom: 16px;
}

.hero-description {
    font-size: 19px;
    max-width: 620px;
    margin-bottom: 30px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}


/* BUTTONS */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 13px 20px;

    border-radius: 6px;

    font-weight: 700;

    transition: .2s ease;
}

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

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

.btn-outline {
    border: 1px solid white;
    color: white;
}

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


/* QUICK SERVICES */

.quick-services {
    margin-top: -55px;
    position: relative;
    z-index: 10;
}

.quick-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);

    background: white;

    border-radius: 12px;

    box-shadow:
        0 15px 45px rgba(0,0,0,.10);

    overflow: hidden;
}

.quick-card {
    padding: 28px 20px;

    text-align: center;

    border-right: 1px solid var(--border);

    transition: .2s ease;
}

.quick-card:last-child {
    border-right: none;
}

.quick-card:hover {
    background: var(--green-light);
}

.quick-icon {
    font-size: 32px;
    margin-bottom: 10px;
}

.quick-card h3 {
    color: var(--green-dark);
    margin-bottom: 6px;
}

.quick-card p {
    font-size: 13px;
    color: var(--muted);
}


/* SECTIONS */

.section {
    padding: 90px 0;
}

.section-light {
    background: white;
}

.section-grid {
    display: grid;
    gap: 60px;
    align-items: center;
}

.section-grid-2 {
    grid-template-columns: 1fr 1fr;
}

.section-image img {
    border-radius: 16px;
    min-height: 420px;
    object-fit: cover;
}

.section-label {
    display: inline-block;

    color: var(--green);

    font-size: 13px;
    font-weight: 700;

    letter-spacing: 2px;
    text-transform: uppercase;

    margin-bottom: 10px;
}

.section-label-light {
    color: rgba(255,255,255,.75);
}

.section-title {
    font-family: Georgia, serif;

    font-size: clamp(32px, 5vw, 48px);

    color: var(--green-dark);

    line-height: 1.1;

    margin-bottom: 18px;
}

.section-text {
    color: var(--muted);
    margin-bottom: 16px;
}

.section-header {
    display: flex;
    align-items: end;
    justify-content: space-between;

    gap: 30px;

    margin-bottom: 40px;
}

.text-link {
    color: var(--green);
    font-weight: 700;
}


/* NEWS */

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);

    gap: 24px;
}

.news-card {
    background: var(--background);

    border-radius: 12px;

    padding: 28px;

    border: 1px solid var(--border);
}

.news-date {
    color: var(--gold);

    font-size: 12px;
    font-weight: 700;

    letter-spacing: 1px;

    margin-bottom: 12px;
}

.news-card h3 {
    color: var(--green-dark);
    margin-bottom: 12px;
}

.news-card p {
    color: var(--muted);
    margin-bottom: 16px;
}


/* PROJECTS */

.project-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);

    gap: 24px;
}

.project-card {
    background: white;

    border-radius: 14px;

    border: 1px solid var(--border);

    padding: 30px;
}

.project-icon {
    font-size: 36px;
    margin-bottom: 16px;
}

.project-card h3 {
    color: var(--green-dark);
    margin-bottom: 10px;
}

.project-card p {
    color: var(--muted);
}


/* OPPORTUNITIES */

.opportunities-section {
    background: #f0f5f2;
}

.opportunity-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);

    gap: 16px;
}

.opportunity-card {
    display: flex;
    align-items: center;
    justify-content: space-between;

    background: white;

    padding: 22px;

    border-radius: 10px;

    border: 1px solid var(--border);

    font-size: 17px;
    font-weight: 700;

    color: var(--green-dark);
}

.opportunity-card:hover {
    border-color: var(--green);
}


/* STATS */

.stats-section {
    background: var(--green-dark);

    color: white;

    padding: 55px 0;
}

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

.stat-item {
    text-align: center;

    border-right:
        1px solid
        rgba(255,255,255,.15);
}

.stat-item:last-child {
    border-right: none;
}

.stat-item strong {
    display: block;

    font-family: Georgia, serif;

    font-size: 42px;
}

.stat-item span {
    color: rgba(255,255,255,.72);
}


/* CTA */

.community-cta {
    padding: 70px 0;

    background: #0a6a45;

    color: white;
}

.community-cta-inner {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 40px;
}

.community-cta h2 {
    font-family: Georgia, serif;

    font-size: clamp(32px, 5vw, 48px);

    margin-bottom: 12px;
}

.community-cta p {
    max-width: 700px;

    color: rgba(255,255,255,.8);
}


/* RESPONSIVE HOME */

@media (max-width: 1050px) {

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

    .quick-card {
        border-bottom:
            1px solid var(--border);
    }

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

}


@media (max-width: 800px) {

    .hero-home {
        min-height: 600px;
    }

    .quick-services {
        margin-top: 0;
    }

    .section-grid-2 {
        grid-template-columns: 1fr;
    }

    .news-grid,
    .project-grid,
    .opportunity-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns:
            1fr 1fr;

        gap: 30px;
    }

    .stat-item {
        border-right: none;
    }

    .section-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .community-cta-inner {
        align-items: flex-start;
        flex-direction: column;
    }

}


@media (max-width: 600px) {

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

    .hero-home h1 {
        font-size: 64px;
    }

    .section {
        padding: 65px 0;
    }

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

}
/* ========================================
   NAVIGATION DÉFINITIVE
======================================== */

.site-header {
    position: relative;
    z-index: 1000;
}

.main-nav {
    background: #fff;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 5px;

    padding: 27px 10px;

    border: none;
    background: transparent;

    font-family: inherit;
    font-size: 14px;
    font-weight: 600;

    color: var(--text);

    cursor: pointer;
}

.nav-item:hover {
    color: var(--green);
}


/* DROPDOWNS */

.nav-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;

    top: calc(100% - 8px);
    left: 0;

    min-width: 235px;

    padding: 9px;

    background: #fff;

    border: 1px solid var(--border);
    border-radius: 9px;

    box-shadow:
        0 15px 35px rgba(0,0,0,.12);

    opacity: 0;
    visibility: hidden;

    transform: translateY(8px);

    transition:
        opacity .18s ease,
        transform .18s ease,
        visibility .18s ease;
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu {
    opacity: 1;
    visibility: visible;

    transform: translateY(0);
}

.dropdown-menu a {
    display: block;

    padding: 10px 12px;

    border-radius: 6px;

    font-size: 14px;

    color: #39423d;
}

.dropdown-menu a:hover {
    background: var(--green-light);

    color: var(--green-dark);
}


/* ESPACE DE GESTION */

.admin-button {
    margin-left: 8px;

    padding: 11px 15px;

    background: var(--gold);

    border-radius: 6px;

    color: #fff !important;

    font-size: 13px;
    font-weight: 700;

    white-space: nowrap;
}

.admin-button:hover {
    filter: brightness(.95);
}


/* BOUTON HAMBURGER */

.mobile-menu-button {
    display: none;

    width: 44px;
    height: 44px;

    border: 1px solid var(--border);
    border-radius: 7px;

    background: #fff;

    align-items: center;
    justify-content: center;
    flex-direction: column;

    gap: 5px;

    cursor: pointer;
}

.mobile-menu-button span {
    width: 22px;
    height: 2px;

    background: var(--green-dark);

    transition: .2s;
}


/* MOBILE NAV */

.mobile-nav {
    display: none;

    background: #fff;

    border-top: 1px solid var(--border);

    box-shadow:
        0 12px 25px rgba(0,0,0,.08);
}

.mobile-nav.open {
    display: block;
}

.mobile-nav-inner {
    padding-top: 12px;
    padding-bottom: 20px;
}

.mobile-nav-inner > a,
.mobile-nav summary {
    display: block;

    padding: 13px 5px;

    border-bottom: 1px solid var(--border);

    font-weight: 600;

    cursor: pointer;
}

.mobile-nav details a {
    display: block;

    padding: 10px 20px;

    color: var(--muted);

    font-size: 14px;
}

.mobile-nav details a:hover {
    color: var(--green);
}

.mobile-nav summary {
    list-style: none;
}

.mobile-nav summary::-webkit-details-marker {
    display: none;
}

.mobile-nav summary::after {
    content: '+';

    float: right;

    color: var(--green);
}

.mobile-nav details[open] summary::after {
    content: '−';
}

.mobile-admin-button {
    margin-top: 15px;

    text-align: center;

    background: var(--gold);

    color: white !important;

    border-radius: 6px;

    border-bottom: none !important;
}


/* TABLETTE / MOBILE */

@media (max-width: 1180px) {

    .desktop-nav {
        display: none;
    }

    .mobile-menu-button {
        display: flex;
    }

}


@media (max-width: 650px) {

    .navbar {
        min-height: 68px;
    }

    .brand-logo {
        width: 45px;
        height: 45px;
    }

    .brand-text strong {
        font-size: 23px;
    }

    .brand-text span {
        font-size: 11px;
    }

}
/* =========================================================
   MENU MOBILE
========================================================= */

.mobile-menu-button {
    display: none;
    width: 44px;
    height: 44px;
    padding: 9px;
    border: 0;
    background: transparent;
    cursor: pointer;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    border-radius: 10px;
    transition: background .2s ease;
}

.mobile-menu-button:hover {
    background: rgba(0, 0, 0, .05);
}

.mobile-menu-button span {
    display: block;
    width: 24px;
    height: 2px;
    background: #123d2b;
    border-radius: 99px;
    transition:
        transform .25s ease,
        opacity .25s ease;
}


/* animation hamburger -> X */

.mobile-menu-button.is-open span:nth-child(1) {
    transform:
        translateY(7px)
        rotate(45deg);
}

.mobile-menu-button.is-open span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-button.is-open span:nth-child(3) {
    transform:
        translateY(-7px)
        rotate(-45deg);
}


/* menu mobile fermé */

.mobile-nav {
    display: none;
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    box-shadow: 0 10px 30px rgba(0,0,0,.08);
}


/* menu mobile ouvert */

.mobile-nav.is-open {
    display: block;
}


/* contenu */

.mobile-nav-inner {
    padding-top: 12px;
    padding-bottom: 20px;
}

.mobile-nav-inner > a,
.mobile-nav summary {
    display: flex;
    align-items: center;
    justify-content: space-between;

    width: 100%;

    padding: 14px 4px;

    color: #1f2937;

    font-size: 15px;
    font-weight: 650;

    border-bottom: 1px solid #eef0f2;

    cursor: pointer;
}

.mobile-nav details {
    border-bottom: 1px solid #eef0f2;
}

.mobile-nav details summary {
    border-bottom: 0;
    list-style: none;
}

.mobile-nav details summary::-webkit-details-marker {
    display: none;
}

.mobile-nav details summary::after {
    content: "⌄";

    color: #1f6b46;

    font-size: 18px;

    transition: transform .2s ease;
}

.mobile-nav details[open] summary::after {
    transform: rotate(180deg);
}


/* sous-menu */

.mobile-nav details a {
    display: block;

    padding:
        11px
        18px;

    color: #5f6c66;

    background: #f8faf9;

    font-size: 14px;

    border-top: 1px solid #eef0f2;
}

.mobile-nav details a:hover {
    color: #175d3d;
    background: #edf7f1;
}


/* bouton admin */

.mobile-admin-button {
    display: flex !important;

    align-items: center;
    justify-content: center !important;

    margin-top: 16px;

    padding: 14px 18px !important;

    color: #ffffff !important;

    background:
        linear-gradient(
            135deg,
            #123d2b,
            #1f6b46
        );

    border: 0 !important;
    border-radius: 10px;

    font-weight: 750 !important;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 980px) {

    .desktop-nav {
        display: none;
    }

    .mobile-menu-button {
        display: flex;
    }

}


@media (min-width: 981px) {

    .mobile-nav {
        display: none !important;
    }

}