/* ═══════════════════════════════════════════════════════
   Climate Invest — Feuille de style optimisée & responsive
   ═══════════════════════════════════════════════════════ */

/* ── Variables ───────────────────────────────────────────── */
:root {
    --dark-green:    #1a2e0e;
    --brand-green:   #84bd00;
    --text-gray:     #333;
    --light-gray:    #f4f4f4;
    --white:         #ffffff;
    --shadow-sm:     0 4px 15px rgba(0,0,0,.06);
    --shadow-md:     0 20px 40px rgba(0,0,0,.10);
    --shadow-lg:     0 30px 60px rgba(0,0,0,.14);
    --radius-sm:     8px;
    --radius-md:     15px;
    --radius-lg:     20px;
    --transition:    0.3s ease;
    --nav-height:    72px;
}

/* ── Reset & base ────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Roboto', sans-serif;
    color: var(--text-gray);
    line-height: 1.65;
    overflow-x: hidden;
}

h1, h2, h3, h4, .logo, .logo-footer {
    font-family: 'Roboto Slab', serif;
}

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

/* ── Layout ──────────────────────────────────────────────── */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 60px 24px;
}

/* ══════════════════════════════════════════════════════════
   NAVBAR
══════════════════════════════════════════════════════════ */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    height: var(--nav-height);
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(26, 46, 14, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(132, 189, 0, 0.2);
    transition: box-shadow var(--transition);
}

.navbar.scrolled {
    box-shadow: 0 4px 24px rgba(0,0,0,.35);
}

/* Logo */
.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: .5px;
    flex-shrink: 0;
}
.logo span { color: var(--brand-green); }

/* Nav links */
.nav-links {
    display: flex;
    list-style: none;
    gap: 28px;
    align-items: center;
}

.nav-links a {
    color: rgba(255,255,255,.88);
    text-decoration: none;
    font-size: .875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .8px;
    transition: color var(--transition);
    white-space: nowrap;
}

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

/* Burger */
.menu-burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 38px;
    height: 38px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    flex-shrink: 0;
}

.menu-burger span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: transform .35s ease, opacity .25s ease;
    transform-origin: center;
}

.menu-burger.toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-burger.toggle span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.menu-burger.toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ══════════════════════════════════════════════════════════
   HERO
══════════════════════════════════════════════════════════ */
.hero {
    background:
        linear-gradient(rgba(0,0,0,.58), rgba(0,0,0,.58)),
        url('assets/images/hero-bj.jpeg') center / cover no-repeat;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-top: var(--nav-height);
}

.hero-overlay {
    margin: auto;
    text-align: center;
    max-width: 820px;
    padding: 40px 24px;
    color: var(--white);
}

.hero-overlay h1 {
    font-size: clamp(2rem, 6vw, 4rem);
    letter-spacing: 1px;
    margin-bottom: 18px;
    line-height: 1.15;
}

.hero-overlay p {
    font-size: clamp(.9rem, 2vw, 1.1rem);
    letter-spacing: 1px;
    opacity: .9;
    margin-bottom: 36px;
}

.hero-btns {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
}

/* ── Boutons globaux ────────────────────────────────────── */
.btn {
    text-decoration: none;
    padding: 13px 32px;
    font-weight: 700;
    font-size: .95rem;
    border-radius: var(--radius-sm);
    display: inline-block;
    letter-spacing: .5px;
    transition: all var(--transition);
}

.btn-green {
    background: var(--brand-green);
    color: var(--white);
}
.btn-green:hover { background: #70a800; transform: translateY(-2px); }

.btn-outline {
    border: 2px solid var(--white);
    color: var(--white);
}
.btn-outline:hover { background: var(--white); color: var(--dark-green); transform: translateY(-2px); }

/* ══════════════════════════════════════════════════════════
   SECTION HELPERS
══════════════════════════════════════════════════════════ */
.white-bg  { background: #fff; }
.gray-bg   { background: #f8fcf3; }

.title-accent {
    color: var(--brand-green);
    font-family: 'Roboto Slab', serif;
    font-size: clamp(1.8rem, 5vw, 3.2rem);
    font-weight: 800;
    margin-bottom: 24px;
}

.title-accent.no-wrap {
    white-space: nowrap;
    display: inline-block;
    width: 100%;
    text-align: center;
    font-size: clamp(1.5rem, 5.5vw, 3.5rem);
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.title-light {
    color: var(--brand-green);
    font-size: clamp(2rem, 6vw, 3rem);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 12px;
    text-shadow: 2px 2px 6px rgba(0,0,0,.4);
}

.subtitle {
    opacity: .85;
    font-size: 1.05rem;
    margin-bottom: 32px;
}

/* ══════════════════════════════════════════════════════════
   SECTION WAKATI BOX
══════════════════════════════════════════════════════════ */
#wakati {
    background: linear-gradient(to bottom, #fff, #f9fbf7);
}

.product-flex-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    margin-bottom: 72px;
}

.product-flex-row.reverse { flex-direction: row-reverse; }

.product-text-col,
.product-image-col { flex: 1; min-width: 0; }

.main-desc {
    font-size: 1.05rem;
    margin-bottom: 16px;
    color: #444;
}

.target-tag-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
}

.tag {
    background: #f0f5e9;
    color: var(--dark-green);
    padding: 5px 16px;
    border-radius: 50px;
    font-size: .875rem;
    font-weight: 700;
    border: 1px solid #dcebc5;
}

.price-badge-interactive {
    display: inline-flex;
    align-items: center;
    background: var(--dark-green);
    color: var(--white);
    padding: 14px 36px;
    border-radius: var(--radius-sm);
    border-left: 6px solid var(--brand-green);
    margin-top: 28px;
    cursor: pointer;
    transition: all var(--transition);
}

.price-badge-interactive:hover {
    transform: translateX(8px);
    background: var(--brand-green);
}

.price-badge-interactive .price {
    font-size: 1.35rem;
    font-weight: 700;
}

/* Detail card */
.detail-card {
    background: var(--white);
    padding: 36px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    border-bottom: 4px solid var(--brand-green);
}

.detail-card h3 {
    color: var(--dark-green);
    margin-bottom: 16px;
    font-size: 1.15rem;
}

.interactive-list {
    list-style: none;
}

.interactive-list li {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    transition: transform .2s ease;
}

.interactive-list li:last-child { border-bottom: none; }

.interactive-list li:hover {
    transform: translateX(6px);
    color: var(--brand-green);
}

.interactive-list .icon {
    font-size: 1.1rem;
    background: #f4f9e8;
    padding: 8px;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}

/* Images */
.img-frame {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.img-main {
    width: 100%;
    transition: transform .5s ease;
}

.img-frame:hover .img-main { transform: scale(1.04); }

/* ══════════════════════════════════════════════════════════
   SECTION AKAN ECOLO (dark + parallaxe)
══════════════════════════════════════════════════════════ */
.section-dark {
    background: var(--dark-green);
    color: var(--white);
    text-align: center;
}

#akan {
    background-image:
        linear-gradient(rgba(25,46,14,.48), rgba(26,46,14,.48)),
        url('assets/images/akan.jpeg');
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    padding: 0;
}

#akan .title-light {
    font-size: clamp(2rem, 6vw, 2.8rem);
}

.grid-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin-top: 32px;
}

.card {
    border: 1px solid var(--brand-green);
    padding: 28px;
    border-radius: var(--radius-sm);
    background: rgba(255,255,255,.05);
    backdrop-filter: blur(6px);
    transition: transform var(--transition), background var(--transition);
}

.card:hover {
    transform: translateY(-8px);
    background: rgba(132,189,0,.1);
}

.card h3 {
    color: var(--brand-green);
    margin-bottom: 12px;
    font-size: 1.1rem;
    letter-spacing: 1px;
}

/* ══════════════════════════════════════════════════════════
   SECTION FERTISOL AFRICA
══════════════════════════════════════════════════════════ */
#fertisol {
    background: #fff;
    text-align: center;
}

.centered-layout {
    max-width: 1000px;
    margin: 0 auto;
}

.van-display {
    position: relative;
    margin-bottom: 48px;
    display: inline-block;
}

.glow-effect {
    position: absolute;
    inset: 10%;
    background: radial-gradient(circle, rgba(132,189,0,.2) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    filter: blur(20px);
}


.grid-info-fun {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 28px;
}

.info-card {
    background: var(--white);
    padding: 36px 28px;
    border-radius: var(--radius-md);
    border: 1px solid #eee;
    transition: all .4s cubic-bezier(.175,.885,.32,1.275);
}

.info-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-md);
    border-color: var(--brand-green);
}

.info-card h3 {
    color: var(--dark-green);
    font-family: 'Roboto Slab', serif;
    font-size: 1.1rem;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.cta-container {
    margin-top: 48px;
}

.btn-modern {
    display: inline-block;
    padding: 16px 40px;
    background: var(--dark-green);
    color: var(--white);
    text-decoration: none;
    font-weight: 700;
    font-size: .95rem;
    border-radius: 50px;
    transition: all var(--transition);
    letter-spacing: .5px;
}

.btn-modern:hover {
    background: var(--brand-green);
    transform: scale(1.05);
    box-shadow: 0 10px 24px rgba(132,189,0,.32);
}

/* ══════════════════════════════════════════════════════════
   SECTION FOREST OWO (dark + parallaxe)
══════════════════════════════════════════════════════════ */
#forest.section-dark {
    background-image:
        linear-gradient(rgba(20,40,10,.8), rgba(20,40,10,.8)),
        url('assets/images/forest.jpeg');
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    padding: 0;
}

#forest .title-light {
    font-size: clamp(2rem, 8vw, 4rem);
}

.forest-grid-overlay {
    display: flex;
    justify-content: center;
    gap: 28px;
    flex-wrap: wrap;
    margin-top: 36px;
}

.card-glass {
    background: rgba(255,255,255,.04);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(132,189,0,.3);
    padding: 40px;
    border-radius: var(--radius-md);
    flex: 1;
    min-width: 280px;
    max-width: 480px;
    transition: all var(--transition);
}

.card-glass:hover {
    transform: translateY(-8px);
    background: rgba(132,189,0,.06);
    border-color: var(--brand-green);
}

.card-glass h4 {
    color: var(--brand-green);
    font-size: 1.4rem;
    margin: 14px 0 10px;
    letter-spacing: 2px;
}

.card-glass p {
    font-size: 1.05rem;
    line-height: 1.6;
    opacity: .9;
}

.icon-circle { font-size: 2rem; }

.cta-forest {
    margin-top: 56px;
    display: flex;
    justify-content: center;
}

.btn-talk {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    background: var(--brand-green);
    color: var(--white);
    text-decoration: none;
    padding: 17px 44px;
    font-weight: 800;
    font-size: 1.05rem;
    border-radius: 50px;
    transition: all .4s cubic-bezier(.175,.885,.32,1.275);
    box-shadow: 0 10px 22px rgba(0,0,0,.22);
    letter-spacing: .8px;
}

.btn-talk:hover {
    transform: scale(1.05) translateY(-4px);
    background: var(--white);
    color: var(--dark-green);
    box-shadow: 0 16px 32px rgba(132,189,0,.4);
}

.btn-icon {
    font-size: 1.25rem;
    transition: transform var(--transition);
}

.btn-talk:hover .btn-icon { transform: translateX(7px); }

/* ══════════════════════════════════════════════════════════
   SECTION BYC LAB
══════════════════════════════════════════════════════════ */
.section-byc { padding: 0; }

.header-center {
    text-align: center;
    margin-bottom: 56px;
}

.lab-subtitle {
    font-size: 1.15rem;
    color: #555;
    max-width: 640px;
    margin: 10px auto 0;
}

.byc-layout {
    display: flex;
    align-items: center;
    gap: 56px;
}

.byc-visual { flex: 1; position: relative; }
.byc-content { flex: 1.2; }

.image-stack {
    position: relative;
    padding: 15px;
}

.image-stack::before {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 80%; height: 80%;
    border: 8px solid var(--brand-green);
    z-index: 0;
    border-radius: var(--radius-md);
}

.img-pro {
    width: 100%;
    border-radius: 10px;
    position: relative;
    z-index: 1;
    box-shadow: 20px 20px 60px rgba(0,0,0,.1);
}

.impact-cards {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.impact-item {
    display: flex;
    align-items: center;
    gap: 20px;
    background: var(--white);
    padding: 20px;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
    border-left: 0 solid var(--brand-green);
    transition: all var(--transition);
}

.impact-item:hover {
    transform: translateX(12px);
    box-shadow: 0 10px 30px rgba(132,189,0,.15);
    border-left-width: 5px;
}

.impact-icon {
    font-size: 1.8rem;
    background: #f4f9e8;
    width: 58px;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
}

.impact-info h4 {
    color: var(--dark-green);
    margin: 0;
    font-size: .95rem;
    letter-spacing: 1px;
}

.impact-info p {
    margin: 4px 0 0;
    font-size: .92rem;
    color: #666;
}

/* ══════════════════════════════════════════════════════════
   SECTION AUTRES SERVICES
══════════════════════════════════════════════════════════ */
.section-others { padding: 0; }

.accordion-container {
    max-width: 860px;
    margin: 32px auto 0;
}

.accordion-item {
    background: var(--white);
    margin-bottom: 14px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid #edf2e9;
}

.accordion-header {
    width: 100%;
    padding: 22px 28px;
    display: flex;
    align-items: center;
    background: none;
    border: none;
    cursor: pointer;
    outline: none;
    transition: background var(--transition);
    gap: 18px;
}

.accordion-header:hover,
.accordion-header:focus-visible { background: #f4f9e8; }

.service-icon { font-size: 1.4rem; flex-shrink: 0; }

.service-title {
    flex: 1;
    text-align: left;
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--dark-green);
    font-family: 'Roboto Slab', serif;
    letter-spacing: .5px;
}

.plus-icon {
    font-size: 1.8rem;
    color: var(--brand-green);
    transition: transform var(--transition);
    flex-shrink: 0;
}

.accordion-item.active .plus-icon { transform: rotate(45deg); }

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height .4s ease, padding var(--transition);
    padding: 0 28px;
}

.accordion-item.active .accordion-content {
    max-height: 200px;
    padding: 4px 28px 24px 66px;
}

.accordion-content p {
    color: #555;
    line-height: 1.65;
    font-size: 1rem;
}

/* ══════════════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════════════ */
.footer {
    background: var(--dark-green);
    color: var(--white);
}

.footer .container { padding-bottom: 0; }

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 36px;
    padding-bottom: 40px;
}

.logo-footer {
    font-size: 1.5rem;
    font-weight: 700;
}
.logo-footer span { color: var(--brand-green); }

.contact-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.footer-icon {
    font-size: 1.3rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.contact-detail strong {
    display: block;
    color: var(--brand-green);
    font-size: .78rem;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.contact-detail p,
.contact-detail a {
    color: rgba(255,255,255,.85);
    text-decoration: none;
    font-size: .92rem;
    transition: color var(--transition);
}

.contact-detail a:hover { color: var(--brand-green); }

.footer-divider {
    border: 0;
    border-top: 1px solid rgba(255,255,255,.12);
}

.footer-bottom {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 18px 0 20px;
    font-size: .88rem;
    opacity: .65;
    text-align: center;
}

/* ══════════════════════════════════════════════════════════
   RESPONSIVE — TABLET  (≤ 1024px)
══════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
    .nav-links { gap: 18px; }
    .nav-links a { font-size: .82rem; }

    .product-flex-row { gap: 36px; }
}

/* ══════════════════════════════════════════════════════════
   RESPONSIVE — TABLET PORTRAIT  (≤ 860px)
══════════════════════════════════════════════════════════ */
@media (max-width: 860px) {
    :root { --nav-height: 64px; }

    /* Burger visible */
    .menu-burger { display: flex; }

    /* Nav overlay */
    .nav-links {
        position: fixed;
        top: var(--nav-height);
        left: 0;
        width: 100%;
        background: rgba(26,46,14,.98);
        backdrop-filter: blur(12px);
        flex-direction: column;
        align-items: center;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height .4s ease;
        z-index: 999;
    }

    .nav-links.nav-active {
        max-height: 420px;
        border-bottom: 2px solid rgba(132,189,0,.3);
    }

    .nav-links li { width: 100%; }

    .nav-links a {
        display: block;
        padding: 16px 32px;
        font-size: .95rem;
        border-bottom: 1px solid rgba(255,255,255,.06);
    }

    /* Sections */
    .product-flex-row,
    .product-flex-row.reverse {
        flex-direction: column;
        gap: 32px;
        text-align: center;
        margin-bottom: 48px;
    }

    .price-badge-interactive { margin: 24px auto 0; }
    .target-tag-container { justify-content: center; }
    .interactive-list li { text-align: left; }

    .byc-layout { flex-direction: column; gap: 32px; }
    .image-stack::before { display: none; }
    .impact-item:hover { transform: translateY(-4px); }

    .forest-grid-overlay { flex-direction: column; align-items: center; }
    .card-glass { max-width: 100%; }

    /* Parallaxe → scroll sur mobile (performance) */
    #akan, #forest.section-dark {
        background-attachment: scroll;
    }
}

/* ══════════════════════════════════════════════════════════
   RESPONSIVE — MOBILE  (≤ 520px)
══════════════════════════════════════════════════════════ */
@media (max-width: 520px) {
    .hero-overlay h1 { letter-spacing: 0; }

    .container { padding: 44px 16px; }

    .detail-card { padding: 24px 20px; }

    .btn-talk {
        width: 100%;
        justify-content: center;
        padding: 15px 28px;
    }

    .footer-grid { grid-template-columns: 1fr; gap: 24px; }
    .footer { text-align: center; }
    .contact-item { justify-content: center; flex-direction: column; align-items: center; }

    .title-accent.no-wrap {
        white-space: normal;
        letter-spacing: 0;
    }
}

/* ══════════════════════════════════════════════════════════
   ACCESSIBILITÉ — focus visible
══════════════════════════════════════════════════════════ */
:focus-visible {
    outline: 2px solid var(--brand-green);
    outline-offset: 3px;
    border-radius: 3px;
}