:root {
    --bg-sand: #FBF9F4;
    --bg-white-glass: rgba(255, 255, 255, 0.82);
    --border-glass: rgba(255, 255, 255, 0.6);
    --border-subtle: rgba(44, 74, 62, 0.08);
    
    --primary-bocage: #203A2F;      /* Vert bocage */
    --primary-hover: #315847;
    --accent-terracotta: #B66D49;   /* Cuivre / argile */
    --accent-sand: #D6A874;
    --text-dark: #1E211E;
    --text-muted: #6B706B;

    --sidebar-width: 310px;
    --shadow-soft: 0 16px 40px -10px rgba(22, 38, 30, 0.07);
    --shadow-sidebar: 10px 0 35px rgba(20, 36, 29, 0.05);
    
    --radius-xl: 28px;
    --radius-lg: 18px;
    --radius-md: 10px;
    --radius-pill: 9999px;

    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-text: 'Plus Jakarta Sans', system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background-color: var(--bg-sand);
    color: var(--text-dark);
    font-family: var(--font-text);
    font-size: 16px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; transition: all 0.25s ease; }
img { max-width: 100%; height: auto; display: block; }

.glass-panel {
    background: var(--bg-white-glass);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid var(--border-glass);
}

/* Structure Décalée pour la Colonne Latérale */
@media (min-width: 1181px) {
    body.has-sidebar-layout {
        padding-left: var(--sidebar-width);
    }
}

/* =======================================================
   COLONNE LATÉRALE (SIDEBAR) DESKTOP
   ======================================================= */
.sidebar-nav {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: var(--sidebar-width);
    z-index: 1000;
    box-shadow: var(--shadow-sidebar);
    border-right: 1px solid rgba(0, 0, 0, 0.06);
    overflow-y: auto;
}

.sidebar-inner {
    padding: 38px 30px;
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

.sidebar-brand-box {
    margin-bottom: 36px;
    text-align: center;
}

.sidebar-logo {
    max-height: 72px;
    margin: 0 auto 10px;
    object-fit: contain;
}

.brand-tagline {
    display: block;
    font-size: 0.72rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent-terracotta);
    font-weight: 600;
}

.sidebar-menu {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex-grow: 1;
}

.side-link {
    font-size: 1rem;
    font-weight: 500;
    padding: 10px 16px;
    border-radius: var(--radius-md);
    color: var(--text-dark);
    display: block;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.side-link:hover, .side-link.active {
    background: rgba(32, 58, 47, 0.08);
    color: var(--primary-bocage);
    font-weight: 600;
}

.side-group {
    display: flex;
    flex-direction: column;
}

.side-sub-menu {
    display: flex;
    flex-direction: column;
    padding-left: 18px;
    margin-top: 2px;
    margin-bottom: 6px;
    border-left: 2px solid rgba(32, 58, 47, 0.1);
    margin-left: 14px;
}

.side-sub-link {
    font-size: 0.88rem;
    padding: 6px 12px;
    color: var(--text-muted);
    border-radius: var(--radius-sm);
}

.side-sub-link:hover, .side-sub-link.active {
    color: var(--accent-terracotta);
}

.sidebar-footer {
    margin-top: 30px;
    padding-top: 22px;
    border-top: 1px solid var(--border-subtle);
}

.sidebar-cta-btn {
    display: block;
    text-align: center;
    background: var(--primary-bocage);
    color: #FFF !important;
    padding: 12px 20px;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: 0 8px 20px rgba(32, 58, 47, 0.2);
    margin-bottom: 16px;
}

.sidebar-cta-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
}

.sidebar-contact-mini {
    text-align: center;
    font-size: 0.78rem;
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    line-height: 1.4;
}

/* =======================================================
   RESPONSIVE MOBILE / TABLETTE (< 1180px)
   ======================================================= */
.mobile-topbar { display: none; }
.nav-backdrop { display: none; }

@media (max-width: 1180px) {
    .mobile-topbar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        height: 72px;
        padding: 0 24px;
        z-index: 990;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    }

    .mobile-logo-img {
        max-height: 44px;
        width: auto;
    }

    /* Le Bouton Burger ⇄ Croix */
    .nav-toggle-btn {
        width: 44px;
        height: 44px;
        position: relative;
        background: rgba(32, 58, 47, 0.06);
        border: none;
        border-radius: 50%;
        cursor: pointer;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 0;
        z-index: 1050;
        transition: background 0.3s ease;
    }

    .nav-toggle-btn .bar {
        width: 20px;
        height: 2px;
        background-color: var(--primary-bocage);
        border-radius: 2px;
        transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
        position: absolute;
    }

    .nav-toggle-btn .bar-top { transform: translateY(-6px); }
    .nav-toggle-btn .bar-mid { transform: translateY(0); }
    .nav-toggle-btn .bar-bot { transform: translateY(6px); }

    /* État CROIX quand actif */
    .nav-toggle-btn.is-active .bar-top {
        transform: rotate(45deg);
    }
    .nav-toggle-btn.is-active .bar-mid {
        opacity: 0;
        transform: scale(0);
    }
    .nav-toggle-btn.is-active .bar-bot {
        transform: rotate(-45deg);
    }

    /* Sidebar basculée en tiroir latéral */
    .sidebar-nav {
        transform: translateX(-100%);
        transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        width: 320px;
        max-width: 85vw;
        z-index: 1020;
    }

    .sidebar-nav.is-open {
        transform: translateX(0);
    }

    /* Voile de fond flouté lors de l'ouverture */
    .nav-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(20, 36, 29, 0.4);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        z-index: 1010;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.35s ease, visibility 0.35s ease;
    }

    .nav-backdrop.is-visible {
        opacity: 1;
        visibility: visible;
    }

    /* Padding de compensation pour la topbar mobile */
    .hero-wrapper {
        padding-top: 80px;
    }
}