/* Base styles + charte graphique Biscart B2B */

:root {
    /* Couleurs */
    --c-ivoire: #F4F1EC;
    /* Ivoire */
    --c-or-subtil: #B89A5B;
    /* Or subtil */
    --c-dorado: #645550;
    /* Dorado */
    --c-safre: #1B3E8E;
    /* Safre (corrigé) */
    --c-vert-olive: #688662;
    /* Vert olive */

    /* Typographies */
    --font-heading-serif: "Playfair Display", "Times New Roman", serif;
    /* Titre serif CMU (approche) */
    --font-sans: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    /* Sous-titre sans serif */
}

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

body {
    font-family: var(--font-sans);
    line-height: 1.6;
    color: var(--c-dorado);
    background-color: var(--c-ivoire);
}

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

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header & navbar */

.site-header {
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(100, 85, 80, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 0;
}

.logo a {
    display: inline-flex;
    align-items: center;
}

.logo-img {
    display: block;
    height: 96px;
    width: auto;
}

.main-nav {
    position: relative;
}

.nav-list {
    display: flex;
    gap: 1.5rem;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.nav-list a {
    padding: 0.35rem 0;
    border-bottom: 2px solid transparent;
    color: var(--c-dorado);
}

.nav-list a:hover,
.nav-list a:focus {
    border-bottom-color: var(--c-safre);
    color: var(--c-safre);
}

/* Mobile nav toggle (non activé pour l’instant, mais prêt) */

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 1.5rem;
    height: 1.1rem;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    height: 2px;
    background-color: var(--c-dorado);
}

/* Main content (global) */

.site-main {
    padding: 2.5rem 0 3.5rem;
}

.btn,
.ba-btn,
.bc-cta,
.ba-gcta,
.ba-btn-cta,
.bc-cta span,
.ba-gcta span {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    padding: 1.05rem 2.2rem;
    border-radius: 0;
    font-family: 'DM Sans', var(--font-sans) !important;
    font-size: 0.62rem;
    font-weight: 500;
    letter-spacing: 3.5px;
    text-transform: uppercase;
    text-decoration: none !important;
    cursor: pointer;
    white-space: nowrap;
    line-height: 1;
    border: 1.5px solid transparent;
    transition:
        transform 0.26s cubic-bezier(0.4, 0, 0.2, 1),
        box-shadow 0.26s,
        background-color 0.26s,
        color 0.26s,
        border-color 0.26s;
    overflow: hidden;
}

.btn:active,
.ba-btn:active,
.bc-cta:active,
.ba-gcta:active,
.ba-btn-cta:active {
    transform: translateY(-1px);
}

/* Primary CTA (gold, same esprit que le hero) */
.btn-primary,
.ba-btn-cta {
    background-color: var(--c-or-subtil);
    border-color: var(--c-or-subtil);
    color: #2e2520;
    overflow: hidden;
}

.btn-primary::before,
.ba-btn-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 65%;
    height: 100%;
    background: linear-gradient(108deg, transparent 10%, rgba(255, 255, 255, 0.38) 50%, transparent 90%);
    pointer-events: none;
    transition: left 0.58s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

.btn-primary:hover::before,
.ba-btn-cta:hover::before {
    left: 160%;
}

.btn-primary:hover,
.ba-btn-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 36px rgba(184, 154, 91, 0.35);
    background-color: var(--c-or-subtil);
    border-color: var(--c-or-subtil);
    color: #2e2520;
}

/* Ghost outline variant */
.btn-ghost,
.ba-btn-ghost {
    background-color: rgba(244, 241, 236, 0.1);
    border-color: rgba(244, 241, 236, 0.72);
    color: #fff;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 1rem 1.95rem;
}

.btn-ghost::after,
.ba-btn-ghost::after {
    content: '';
    position: absolute;
    inset: 0;
    background-color: rgba(244, 241, 236, 0.16);
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 0;
}

.btn-ghost:hover::after,
.ba-btn-ghost:hover::after {
    transform: scaleY(1);
}

.btn-ghost:hover,
.ba-btn-ghost:hover {
    border-color: #ffffff;
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.3);
}

.btn-ghost span,
.ba-btn-ghost span,
.btn-ghost em,
.ba-btn-ghost em {
    position: relative;
    z-index: 2;
}


.site-main section h1 {
    font-family: var(--font-heading-serif);
    font-size: 2.1rem;
    margin-bottom: 0.75rem;
    color: var(--c-dorado);
}

/* Styles par page */

.page-accueil {
    border-top: 3px solid var(--c-or-subtil);
}

.page-chocolat {
    border-top: 3px solid var(--c-safre);
}

.page-biscuiterie {
    border-top: 3px solid var(--c-vert-olive);
}

.page-confiserie {
    border-top: 3px solid var(--c-or-subtil);
}

.page-contactez-nous {
    border-top: 3px solid var(--c-dorado);
}

.page-corporate {
    border-top: 3px solid var(--c-vert-olive);
}

/* Footer */

.site-footer {
    background-color: var(--c-safre);
    border-top: none;
    color: var(--c-ivoire);
}

.footer-inner {
    padding: 3rem 0;
    font-size: 0.9rem;
    color: var(--c-ivoire);
    text-align: center;
}

.footer-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.footer-logo {
    height: 80px;
    width: auto;
    filter: brightness(0) invert(1);
    margin-bottom: 1.5rem;
}

/* Basic responsiveness */

@media (max-width: 768px) {
    .header-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .nav-list {
        gap: 0.75rem;
        font-size: 0.8rem;
        flex-wrap: wrap;
    }

    .site-main {
        padding: 1.5rem 0 2.5rem;
    }

    .site-main section h1 {
        font-size: 1.7rem;
    }
}

@media (max-width: 480px) {
    .logo a {
        font-size: 1rem;
    }
}

@media (max-width: 720px) {

    .btn,
    .ba-btn,
    .bc-cta,
    .ba-gcta,
    .ba-btn-cta {
        padding: 0.75rem 1.25rem;
        font-size: 0.58rem;
        letter-spacing: 2.5px;
    }

    .btn-ghost,
    .ba-btn-ghost {
        padding: 0.7rem 1.15rem;
    }
}

@media (max-width: 480px) {

    .btn,
    .ba-btn,
    .bc-cta,
    .ba-gcta,
    .ba-btn-cta {
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
    }

    .site-main section {
        padding: 1rem 0;
    }

    .site-main section h1 {
        font-size: 1.5rem;
    }
}