/**
 * Bouquinours — Header & Navigation CSS
 * Version 3.5.4
 * Toutes les classes préfixées .bouquinours- pour éviter les conflits de thème
 */

/* ============================================================
   RESET & BASE
   ============================================================ */

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

/* ============================================================
   HEADER — CONTENEUR PRINCIPAL
   ============================================================ */

.bouquinours-header {
    position: sticky;
    top: 0;
    z-index: 9999;
    width: 100%;
    background: #0f172a;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
    font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

.bouquinours-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    height: 64px;
    gap: 16px;
}

/* ============================================================
   LOGO
   ============================================================ */

.bouquinours-logo {
    display: flex;
    align-items: center;
    gap: 7px;
    text-decoration: none;
    flex-shrink: 0;
    color: #fff;
    transition: opacity 0.2s;
}

.bouquinours-logo:hover {
    opacity: 0.85;
    text-decoration: none;
    color: #fff;
}

.bouquinours-logo-bear {
    font-size: 1.4rem;
    line-height: 1;
}

.bouquinours-logo-text {
    font-size: 1.1rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.01em;
    white-space: nowrap;
}

/* ============================================================
   NAVIGATION DESKTOP
   ============================================================ */

.bouquinours-main-nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.bouquinours-nav-list {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.bouquinours-nav-item {
    list-style: none;
}

.bouquinours-nav-link {
    display: block;
    padding: 6px 11px;
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 6px;
    transition: color 0.2s, background 0.2s;
    white-space: nowrap;
}

.bouquinours-nav-link:hover,
.bouquinours-nav-link.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    text-decoration: none;
}

.bouquinours-nav-link.active {
    color: #fff;
    font-weight: 600;
}

/* CTA — Créer mon livre */
.bouquinours-nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 7px 14px;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: #fff !important;
    font-size: 0.875rem;
    font-weight: 700;
    border-radius: 8px;
    text-decoration: none;
    white-space: nowrap;
    transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.4);
    margin-left: 4px;
}

.bouquinours-nav-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(79, 70, 229, 0.5);
    text-decoration: none;
    color: #fff !important;
}

.bouquinours-nav-cta.active {
    opacity: 0.9;
}

/* ============================================================
   ACTIONS DROITE (Mon compte + Panier + Hamburger)
   ============================================================ */

.bouquinours-header-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.bouquinours-account-link,
.bouquinours-cart-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    transition: color 0.2s, background 0.2s;
    position: relative;
}

.bouquinours-account-link:hover,
.bouquinours-cart-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    text-decoration: none;
}

.bouquinours-icon {
    display: block;
}

/* Badge panier */
.bouquinours-cart-link {
    position: relative;
}

.bouquinours-cart-icon {
    display: flex;
    align-items: center;
}

.bouquinours-cart-count {
    position: absolute;
    top: 2px;
    right: 2px;
    background: #ef4444;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    border-radius: 999px;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 0 3px;
    line-height: 1;
    border: 1.5px solid #0f172a;
}

.bouquinours-cart-count.visible {
    display: flex;
}

/* ============================================================
   HAMBURGER BUTTON
   ============================================================ */

.bouquinours-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 38px;
    height: 38px;
    border: none;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    cursor: pointer;
    padding: 0;
    transition: background 0.2s;
    flex-shrink: 0;
}

.bouquinours-hamburger:hover {
    background: rgba(255, 255, 255, 0.15);
}

.bouquinours-hamburger-bar {
    display: block;
    width: 20px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
    transform-origin: center;
}

/* Hamburger animé (ouvert) */
.bouquinours-hamburger.is-open .bouquinours-hamburger-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.bouquinours-hamburger.is-open .bouquinours-hamburger-bar:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.bouquinours-hamburger.is-open .bouquinours-hamburger-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ============================================================
   MENU MOBILE
   ============================================================ */

.bouquinours-mobile-menu {
    display: none;
    position: fixed;
    top: 64px; /* hauteur du header */
    left: 0;
    right: 0;
    bottom: 0;
    background: #0f172a;
    z-index: 9998;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.bouquinours-mobile-menu.is-open {
    transform: translateX(0);
}

.bouquinours-mobile-nav-list {
    list-style: none;
    padding: 16px 0 32px;
    margin: 0;
}

.bouquinours-mobile-nav-list li {
    list-style: none;
}

.bouquinours-mobile-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 24px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: color 0.2s, background 0.2s;
}

.bouquinours-mobile-link:hover,
.bouquinours-mobile-link.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
    text-decoration: none;
}

.bouquinours-mobile-link.active {
    color: #a5b4fc;
    font-weight: 600;
}

/* CTA Mobile — Créer mon livre */
.bouquinours-mobile-cta-item {
    padding: 16px 24px;
}

.bouquinours-mobile-cta-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 12px;
    text-decoration: none;
    text-align: center;
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.4);
    transition: transform 0.2s, box-shadow 0.2s;
}

.bouquinours-mobile-cta-link:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.5);
    color: #fff;
    text-decoration: none;
}

/* Divider mobile */
.bouquinours-mobile-divider {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    margin: 8px 24px;
}

/* Badge panier mobile */
.bouquinours-mobile-cart-count {
    background: #ef4444;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

/* ============================================================
   SCROLL — ombre renforcée
   ============================================================ */

.bouquinours-header.is-scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
    background: rgba(15, 23, 42, 0.98);
    backdrop-filter: blur(8px);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1024px) {
    .bouquinours-nav-link {
        padding: 6px 8px;
        font-size: 0.825rem;
    }
    .bouquinours-nav-cta {
        padding: 7px 11px;
        font-size: 0.825rem;
    }
}

@media (max-width: 768px) {
    /* Cacher la nav desktop */
    .bouquinours-main-nav {
        display: none;
    }

    /* Afficher le hamburger */
    .bouquinours-hamburger {
        display: flex;
    }

    /* Afficher le menu mobile */
    .bouquinours-mobile-menu {
        display: block;
    }

    .bouquinours-header-inner {
        padding: 0 16px;
        height: 58px;
    }
}

@media (max-width: 480px) {
    .bouquinours-logo-text {
        font-size: 1rem;
    }
    .bouquinours-logo-bear {
        font-size: 1.2rem;
    }
}

/* ============================================================
   FOOTER BOUQUINOURS — VERSION COMPACTE
   ============================================================ */

/* Réinitialisation du footer existant (bqf-footer → bouquinours-footer) */
.bqf-footer {
    display: none !important; /* L'ancien est remplacé */
}

.bouquinours-footer {
    background: #0f172a;
    color: #fff;
    font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    font-size: 0.825rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.bouquinours-footer * {
    box-sizing: border-box;
}

/* Grille principale compacte */
.bouquinours-footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1.4fr;
    gap: 24px 32px;
    max-width: 1280px;
    margin: 0 auto;
    padding: 24px 24px 16px;
}

/* Colonne 1 — Marque */
.bouquinours-footer-brand-name {
    font-size: 1rem;
    font-weight: 800;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    margin-bottom: 6px;
}

.bouquinours-footer-brand-name:hover {
    color: #e0e7ff;
    text-decoration: none;
}

.bouquinours-footer-brand-desc {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
    line-height: 1.5;
    margin: 0;
    max-width: 240px;
}

/* Titres colonnes */
.bouquinours-footer-col-title {
    display: block;
    color: #f59e0b;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    font-weight: 700;
    margin-bottom: 8px;
}

/* Listes footer */
.bouquinours-footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.bouquinours-footer-links li {
    margin-bottom: 5px;
}

.bouquinours-footer-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.8rem;
    line-height: 1.4;
    transition: color 0.2s;
    display: inline-block;
}

.bouquinours-footer-links a:hover {
    color: #fff;
    text-decoration: none;
}

/* Newsletter compacte */
.bouquinours-newsletter-desc {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.78rem;
    line-height: 1.4;
    margin-bottom: 8px;
}

.bouquinours-newsletter-row {
    display: flex;
    gap: 6px;
}

.bouquinours-newsletter-input {
    flex: 1;
    padding: 7px 10px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.07);
    color: #fff;
    font-size: 0.78rem;
    font-family: inherit;
    outline: none;
    min-width: 0;
}

.bouquinours-newsletter-input::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.bouquinours-newsletter-input:focus {
    border-color: #f59e0b;
    background: rgba(255, 255, 255, 0.1);
}

.bouquinours-newsletter-btn {
    background: #f59e0b;
    color: #000;
    border: none;
    border-radius: 6px;
    padding: 7px 12px;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    white-space: nowrap;
    transition: background 0.2s;
    flex-shrink: 0;
}

.bouquinours-newsletter-btn:hover {
    background: #d97706;
}

/* Barre copyright compacte */
.bouquinours-footer-copyright {
    max-width: 1280px;
    margin: 0 auto;
    padding: 10px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}

.bouquinours-footer-copyright p {
    color: rgba(255, 255, 255, 0.35);
    font-size: 0.72rem;
    margin: 0;
}

.bouquinours-footer-legal {
    display: flex;
    gap: 14px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.bouquinours-footer-legal a {
    color: rgba(255, 255, 255, 0.35);
    font-size: 0.72rem;
    text-decoration: none;
    transition: color 0.2s;
}

.bouquinours-footer-legal a:hover {
    color: rgba(255, 255, 255, 0.7);
}

/* ============================================================
   RESPONSIVE FOOTER COMPACT
   ============================================================ */

@media (max-width: 900px) {
    .bouquinours-footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 18px 24px;
        padding: 20px 16px 12px;
    }
}

@media (max-width: 600px) {
    .bouquinours-footer-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 16px 16px 10px;
    }

    .bouquinours-newsletter-row {
        flex-direction: column;
    }

    .bouquinours-newsletter-btn {
        width: 100%;
        padding: 9px;
        text-align: center;
    }

    .bouquinours-footer-copyright {
        flex-direction: column;
        text-align: center;
        gap: 6px;
        padding: 10px 16px;
    }

    .bouquinours-footer-legal {
        justify-content: center;
        flex-wrap: wrap;
        gap: 10px;
    }
}

/* ============================================================
   SUPPRESSION FOOTER GRIS / TRANS-* (double couche de sécurité)
   ============================================================ */

/* Masquer les footers de thème connus avec du contenu trans-* */
footer:has([class*="trans-"]) {
    display: none !important;
}

/* Fallback pour navigateurs sans :has() */
.site-footer .trans-menu,
#colophon .trans-menu,
footer .trans-menu,
.site-footer .trans-contacts,
footer .trans-contacts,
.site-footer .trans-newsletter,
footer .trans-newsletter {
    display: none !important;
}

/* Si le footer du thème entier ne contient que des trans-*, il sera masqué via JS */
