/*
Theme Name: Biocell
Theme URI: https://la-micro-station.com
Description: Thème landing page pour la micro-station Biocell® — Distribué par Breizho Europe
Author: Breizho Europe
Version: 1.0.0
Text Domain: biocell
*/

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background: #fff;
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

/* ═══════════ TOPBAR ═══════════ */
.topbar {
    background: #0b1d1a;
    font-size: 0.82em;
}
.topbar-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #7da89e;
}
.topbar a { color: #7da89e; transition: color 0.2s; }
.topbar a:hover { color: #fff; }
.topbar-right { display: flex; gap: 28px; }
.topbar-right span { display: flex; align-items: center; gap: 6px; }

/* ═══════════ HEADER ═══════════ */
.site-header {
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 0 #e0e8e6;
    transition: box-shadow 0.3s;
}
.site-header:hover { box-shadow: 0 4px 20px rgba(11,29,26,0.06); }
.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 76px;
}
.logo { display: flex; align-items: center; gap: 14px; }
.logo-mark {
    width: 46px;
    height: 46px;
    background: linear-gradient(145deg, #1a3a2a, #2d6a4f);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.15em;
    box-shadow: 0 2px 8px rgba(45,106,79,0.25);
}
.logo-text {
    font-family: 'Outfit', sans-serif;
    font-size: 1.35em;
    font-weight: 700;
    color: #0b1d1a;
    letter-spacing: -0.03em;
}
.logo-text span { color: #2d6a4f; font-weight: 500; }

/* HAMBURGER */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}
.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: #0b1d1a;
    margin: 5px 0;
    transition: all 0.3s;
}

/* NAV */
.main-nav { display: flex; gap: 4px; align-items: center; list-style: none !important; margin: 0 !important; padding: 0 !important; }
.main-nav li { list-style: none; margin: 0; padding: 0; }
.main-nav a {
    display: block;
    color: #4a5e58;
    font-size: 0.92em;
    font-weight: 500;
    padding: 10px 18px;
    border-radius: 8px;
    transition: all 0.25s;
    position: relative;
}
.main-nav a::before {
    content: '';
    position: absolute;
    bottom: 6px;
    left: 18px;
    right: 18px;
    height: 2px;
    background: #2d6a4f;
    transform: scaleX(0);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.main-nav a:hover { color: #0b1d1a; background: #edf5f0; }
.main-nav a:hover::before { transform: scaleX(1); }
.main-nav li.current-menu-item a,
.main-nav li.current_page_item a { color: #0b1d1a; background: #edf5f0; }
.main-nav li.current-menu-item a::before,
.main-nav li.current_page_item a::before { transform: scaleX(1); }

/* Last menu item = CTA button */
.main-nav li:last-child a {
    background: linear-gradient(135deg, #1a3a2a, #2d6a4f) !important;
    color: #fff !important;
    padding: 10px 22px;
    border-radius: 8px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(45,106,79,0.2);
    transition: all 0.3s;
}
.main-nav li:last-child a::before { display: none; }
.main-nav li:last-child a:hover {
    background: linear-gradient(135deg, #0b1d1a, #1a3a2a) !important;
    box-shadow: 0 6px 20px rgba(45,106,79,0.3);
    transform: translateY(-1px);
}

/* ═══════════ HERO ═══════════ */
.hero {
    position: relative;
    height: 500px;
    overflow: hidden;
}
.hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #0b1d1a 0%, #1a3a2a 50%, #2d6a4f 100%);
}
.hero-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, rgba(11,29,26,0.92) 0%, rgba(11,29,26,0.7) 50%, rgba(11,29,26,0.4) 100%);
}
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.hero-kicker {
    color: #6dbc8e;
    font-size: 0.85em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.hero-kicker::before { content: ''; width: 36px; height: 2px; background: #6dbc8e; }
.hero h1 {
    font-family: 'Outfit', sans-serif;
    color: #fff;
    font-size: 2.8em;
    font-weight: 700;
    line-height: 1.12;
    max-width: 600px;
    letter-spacing: -0.025em;
    margin-bottom: 20px;
}
.hero p {
    color: #a8cebb;
    font-size: 1.1em;
    line-height: 1.65;
    max-width: 500px;
    margin-bottom: 32px;
}
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }

/* ═══════════ BUTTONS ═══════════ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 15px 30px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95em;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn-white { background: #fff; color: #0b1d1a; box-shadow: 0 2px 10px rgba(0,0,0,0.1); }
.btn-white:hover { background: #edf5f0; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.15); color: #0b1d1a; }
.btn-ghost { background: rgba(255,255,255,0.08); color: #fff; border: 2px solid rgba(255,255,255,0.3); }
.btn-ghost:hover { background: rgba(255,255,255,0.15); border-color: rgba(255,255,255,0.6); transform: translateY(-2px); color: #fff; }
.btn-green { background: linear-gradient(135deg, #1a3a2a, #2d6a4f); color: #fff; box-shadow: 0 2px 10px rgba(45,106,79,0.25); }
.btn-green:hover { box-shadow: 0 8px 28px rgba(45,106,79,0.35); transform: translateY(-2px); color: #fff; }

/* ═══════════ SECTIONS ═══════════ */
.section { padding: 80px 0; }
.section-gray { background: #f5f9f7; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 32px; }

/* ═══════════ PAGE CONTENT ═══════════ */
.page-hero {
    background: linear-gradient(135deg, #0b1d1a, #1a3a2a);
    padding: 56px 0;
    text-align: center;
}
.page-hero h1 { font-family: 'Outfit', sans-serif; color: #fff; font-size: 2.2em; font-weight: 700; }
.page-content { max-width: 900px; margin: 0 auto; padding: 56px 32px; }
.page-content h2 { font-family: 'Outfit', sans-serif; font-size: 1.5em; color: #0b1d1a; margin: 2em 0 0.8em; font-weight: 600; }
.page-content p { margin-bottom: 1.2em; line-height: 1.75; color: #444; }
.page-content a { color: #2d6a4f; font-weight: 500; }
.page-content a:hover { text-decoration: underline; }
.page-content img { border-radius: 10px; margin: 1.5em 0; }

/* ═══════════ CTA ═══════════ */
.cta-box {
    background: linear-gradient(135deg, #0b1d1a 0%, #1a3a2a 50%, #2d6a4f 100%);
    border-radius: 16px;
    padding: 64px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.cta-box::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(109,188,142,0.12) 0%, transparent 70%);
    border-radius: 50%;
}
.cta-box h2 { font-family: 'Outfit', sans-serif; color: #fff; font-size: 2em; margin-bottom: 14px; position: relative; }
.cta-box p { color: #8cb8a4; font-size: 1.08em; max-width: 500px; margin: 0 auto 28px; line-height: 1.65; position: relative; }

/* ═══════════ FOOTER ═══════════ */
.site-footer { background: #071210; color: #6b8a80; padding: 50px 0 24px; }
.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
}
.site-footer h5 { font-family: 'Outfit', sans-serif; color: #fff; font-size: 1.1em; margin-bottom: 12px; }
.site-footer h6 { color: #7da89e; font-size: 0.78em; text-transform: uppercase; letter-spacing: 0.1em; font-weight: 600; margin-bottom: 12px; }
.site-footer p { font-size: 0.9em; line-height: 1.7; }
.site-footer ul { list-style: none !important; margin: 0 !important; padding: 0 !important; }
.site-footer li { margin-bottom: 8px; }
.site-footer li a { color: #6b8a80; font-size: 0.9em; transition: color 0.2s; }
.site-footer li a:hover { color: #6dbc8e; }
.footer-bottom {
    max-width: 1200px;
    margin: 32px auto 0;
    padding: 16px 32px 0;
    border-top: 1px solid #162a25;
    display: flex;
    justify-content: space-between;
    font-size: 0.84em;
}
.footer-bottom a { color: #6b8a80; }
.footer-bottom a:hover { color: #6dbc8e; }

/* ═══════════ RESPONSIVE ═══════════ */
@media (max-width: 960px) {
    .hero h1 { font-size: 2.2em; }
    .hero { height: 420px; }
    .footer-inner { grid-template-columns: 1fr; }
    .main-nav { display: none; }
    .menu-toggle { display: block; }
    .main-nav.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 76px;
        left: 0;
        right: 0;
        background: #fff;
        padding: 16px;
        box-shadow: 0 8px 24px rgba(0,0,0,0.1);
        gap: 4px;
    }
}
@media (max-width: 640px) {
    .hero h1 { font-size: 1.7em; }
    .hero { height: 380px; }
    .topbar { display: none; }
    .footer-inner { grid-template-columns: 1fr; }
}

/* ═══════════ FIX MENU COMPLET ═══════════ */
.site-header ul.main-nav {
    display: flex !important;
    gap: 4px;
    align-items: center;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}
.site-header ul.main-nav li {
    list-style: none !important;
    margin: 0;
    padding: 0;
}
.site-header ul.main-nav li a {
    display: block;
    color: #4a5e58;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.92em;
    font-weight: 500;
    padding: 10px 18px;
    border-radius: 8px;
    transition: all 0.25s;
    text-decoration: none;
    position: relative;
}
.site-header ul.main-nav li a::after {
    content: '';
    position: absolute;
    bottom: 6px;
    left: 18px;
    right: 18px;
    height: 2px;
    background: #2d6a4f;
    transform: scaleX(0);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.site-header ul.main-nav li a:hover {
    color: #0b1d1a;
    background: #edf5f0;
}
.site-header ul.main-nav li a:hover::after {
    transform: scaleX(1);
}
.site-header ul.main-nav li.current-menu-item a,
.site-header ul.main-nav li.current_page_item a {
    color: #0b1d1a;
    background: #edf5f0;
}
.site-header ul.main-nav li.current-menu-item a::after,
.site-header ul.main-nav li.current_page_item a::after {
    transform: scaleX(1);
}
/* Dernier item = bouton CTA vert */
.site-header ul.main-nav li:last-child a {
    background: linear-gradient(135deg, #1a3a2a, #2d6a4f) !important;
    color: #fff !important;
    padding: 10px 22px;
    border-radius: 8px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(45,106,79,0.2);
    transition: all 0.3s;
}
.site-header ul.main-nav li:last-child a::after { display: none; }
.site-header ul.main-nav li:last-child a:hover {
    background: linear-gradient(135deg, #0b1d1a, #1a3a2a) !important;
    box-shadow: 0 6px 20px rgba(45,106,79,0.3);
    transform: translateY(-1px);
}

/* ═══════════ FIX FOOTER ═══════════ */
.site-footer ul {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}
.site-footer ul li {
    list-style: none !important;
}

/* ═══════════ RESPONSIVE MENU ═══════════ */
@media (max-width: 960px) {
    .site-header ul.main-nav {
        display: none !important;
    }
    .site-header ul.main-nav.open {
        display: flex !important;
        flex-direction: column;
        position: absolute;
        top: 76px;
        left: 0;
        right: 0;
        background: #fff;
        padding: 16px;
        box-shadow: 0 8px 24px rgba(0,0,0,0.1);
        gap: 4px;
    }
}
