/* Chargé par boutique.css et produit.css — copie des règles header/nav/footer de home.css.
   Duplication volontaire plutôt que découpage de home.css (voir plan catalogue produits) :
   home.css reste la seule feuille de la page d'accueil, déjà couverte par des tests,
   pour zéro risque de régression visuelle dessus. */

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

:root {
    --font-heading: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Manrope', Arial, sans-serif;
    --color-bg: #fff;
    --primary-bg: #4D0012;
    --primary-light: #F2EBEC;
    --color-text: #313131;
    --color-accent: #CEC0A5;
    --color-overlay-bg: #0f0f0f;
    --color-overlay-text: #f5f5f5;
    --nav-height: 64px;
    --promo-height: 37px;
    --transition-speed: 0.45s;
    --transition-ease: cubic-bezier(0.77, 0, 0.18, 1);
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg);
    color: var(--color-text);
}

.section__cta {
    display: inline-block;
    background-color: var(--color-accent);
    color: var(--primary-bg);
    text-decoration: none;
    border: 1px solid var(--color-accent);
    padding: 12px 26px;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    white-space: nowrap;
    transition:
        background-color 0.25s ease,
        color 0.25s ease;
}

.section__cta:hover {
    background-color: transparent;
    color: var(--color-accent);
}

/* ─── STICKY WRAPPER / PROMO BANNER ─── */
.site-header {
    position: sticky;
    top: 0;
    z-index: 4;
}

.site-header--no-promo {
    --promo-height: 0px;
}

.promo-banner {
    background-color: var(--primary-bg);
    color: var(--color-accent);
    text-align: center;
    padding: 8px 16px;
    font-size: 0.85rem;
    letter-spacing: 0.04em;
    border-bottom: 1px solid var(--color-accent);
}

/* ─── HEADER ─── */
.header {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--nav-height);
    padding: 0 24px;
    background-color: var(--primary-bg);
}

nav {
    display: flex;
}

.burger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 36px;
    height: 36px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px;
    position: relative;
}

.burger__line {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--color-accent);
    border-radius: 2px;
    transform-origin: center;
    transition:
        transform var(--transition-speed) var(--transition-ease),
        opacity var(--transition-speed) var(--transition-ease),
        background-color var(--transition-speed) ease;
}
.burger:hover .burger__line {
    background-color: var(--color-overlay-text);
}
.burger.is-open .burger__line--top {
    transform: translateY(8px) rotate(45deg);
    background-color: var(--color-overlay-text);
}

.burger.is-open .burger__line--mid {
    opacity: 0;
    transform: scaleX(0);
}

.burger.is-open .burger__line--bot {
    transform: translateY(-8px) rotate(-45deg);
    background-color: var(--color-overlay-text);
}

/* ─── FULLSCREEN OVERLAY MENU ─── */
.nav-overlay {
    position: fixed;
    inset: 0;
    z-index: 3;
    background-color: var(--primary-bg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 0 10vw;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-16px);
    transition:
        opacity var(--transition-speed) var(--transition-ease),
        transform var(--transition-speed) var(--transition-ease),
        visibility 0s linear var(--transition-speed);
}

.nav-overlay.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
    transition:
        opacity var(--transition-speed) var(--transition-ease),
        transform var(--transition-speed) var(--transition-ease),
        visibility 0s linear 0s;
}

.nav-overlay__list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-top: 30px;
}

.nav-overlay__item {
    overflow: hidden;
}

.nav-overlay__link {
    display: inline-block;
    color: var(--color-accent);
    text-decoration: none;
    font-size: clamp(2.2rem, 6vw, 4rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.1;

    transform: translateY(100%);
    opacity: 0;
    transition:
        color 0.2s ease,
        transform var(--transition-speed) var(--transition-ease),
        opacity var(--transition-speed) var(--transition-ease);
}

.nav-overlay__link::after {
    content: '';
    display: block;
    width: 0;
    height: 2px;
    background-color: var(--color-overlay-text);
    transition: width 0.3s ease;
}

.nav-overlay__link:hover::after {
    width: 100%;
}

.nav-overlay__link:hover {
    color: var(--color-overlay-text);
}

.nav-overlay.is-open .nav-overlay__link {
    transform: translateY(0);
    opacity: 1;
}

.nav-overlay__item:nth-child(1) .nav-overlay__link { transition-delay: 0.05s; }
.nav-overlay__item:nth-child(2) .nav-overlay__link { transition-delay: 0.10s; }
.nav-overlay__item:nth-child(3) .nav-overlay__link { transition-delay: 0.15s; }
.nav-overlay__item:nth-child(4) .nav-overlay__link { transition-delay: 0.20s; }
.nav-overlay__item:nth-child(5) .nav-overlay__link { transition-delay: 0.25s; }

.nav-overlay:not(.is-open) .nav-overlay__link {
    transition-delay: 0s;
}

/* ─── LOGO ─── */
.logo-wrap {
    position: absolute;
    margin: 0;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    color: var(--color-accent);
}

.logo__img {
    width: 60px;
    max-height: 60px;
    display: block;
    object-fit: contain;
}

/* ─── HEADER ACTIONS ─── */
.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-actions__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: var(--color-accent);
    text-decoration: none;
    transition: color 0.2s ease;
}

.header-actions__btn svg {
    display: block;
}

.header-actions__btn:hover {
    color: var(--color-overlay-text);
}

/* ─── FOOTER ─── */
.footer {
    background-color: var(--primary-bg);
    margin-top: 40px;
}

.footer__newsletter {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
    padding: 96px 24px;
    border-bottom: 1px solid var(--color-accent);
}

.footer__newsletter-title {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    font-weight: 400;
    color: var(--color-accent);
    text-align: center;
}

.footer__newsletter-form {
    display: flex;
    width: 100%;
    max-width: 420px;
}

.footer__newsletter-input {
    flex: 1;
    padding: 14px 18px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(206, 192, 165, 0.25);
    border-right: none;
    color: var(--color-accent);
    font-family: var(--font-body);
    font-size: 0.85rem;
    outline: none;
    transition: border-color 0.2s ease;
}

.footer__newsletter-input::placeholder {
    color: rgba(206, 192, 165, 0.4);
}

.footer__newsletter-input:focus {
    border-color: rgba(206, 192, 165, 0.6);
}

.footer__newsletter-btn {
    padding: 14px 24px;
    background-color: var(--color-accent);
    color: var(--primary-bg);
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid var(--color-accent);
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.footer__newsletter-btn:hover {
    background-color: transparent;
    color: var(--color-accent);
}

.footer__main {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 20px 45px;
    border-bottom: 1px solid var(--color-accent);
}

.footer__logo-img {
    width: 150px;
    max-height: 80px;
    display: block;
    object-fit: contain;
}

.footer__right {
    display: flex;
    align-items: flex-start;
    gap: 56px;
}

.footer__col {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer__col-heading {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--color-overlay-text);
}

.footer__col-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.footer__link {
    display: inline-block;
    color: rgba(206, 192, 165, 0.65);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s ease;
}

.footer__link::after {
    content: '';
    display: block;
    width: 0;
    height: 1px;
    background-color: var(--color-overlay-text);
    transition: width 0.3s ease;
}

.footer__link:hover::after {
    width: 100%;
}

.footer__link:hover {
    color: var(--color-overlay-text);
}

.footer__social {
    display: flex;
    align-items: center;
    gap: 20px;
}

.footer__social-link {
    color: var(--color-overlay-text);
    display: flex;
    align-items: center;
    transition: color 0.2s ease;
}

.footer__social-link:hover {
    color: var(--color-accent);
}

.footer__social-link svg {
    height: 26px;
    width: auto;
}

.footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 48px;
}

.footer__copyright {
    font-size: 0.75rem;
    color: rgba(206, 192, 165, 0.45);
}

.footer__legal {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer__legal-link {
    font-size: 0.75rem;
    color: rgba(206, 192, 165, 0.45);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer__legal-link:hover {
    color: var(--color-accent);
}

.footer__legal-sep {
    font-size: 0.75rem;
    color: rgba(206, 192, 165, 0.25);
}

@media screen and (max-width: 768px) {
    .header {
        padding: 0 10px;
    }
    .header-actions {
        gap: 5px;
    }
    .footer__newsletter {
        padding: 35px 24px;
        border-bottom: none;
    }
    .footer__main {
        flex-direction: column;
        align-items: center;
        padding: 10px 0px;
        gap: 10px;
    }
    .footer__logo-img {
        width: 120px;
    }
    .footer__right {
        width: 100%;
        flex-wrap: wrap;
        gap: 40px;
        padding: 24px;
        border-top: 1px solid var(--color-accent);
    }
    .footer__bottom {
        padding: 16px 24px;
    }
}
