/* ═══════════════════════════════════════════════════════
   Maison Guillemot — Preview v4 (overrides spécifiques)
   Inspiration : Crowd Cow + ButcherBox
   Charge APRÈS style.css → écrase quelques variables
═══════════════════════════════════════════════════════ */

:root {
    /* Accent principal : rouge bordeaux ButcherBox au lieu d'or discret PH */
    --gold:       #A0322B;
    --gold-l:     #C84F2E;
    --gold-d:     #7A2118;

    /* Terra plus saturée pour boucherie */
    --terra:      #C0392B;
    --terra-d:    #962718;

    /* Fond légèrement plus chaud */
    --bg:         #FAF6EE;
    --bg-2:       #F1E9DA;
    --bg-warm:    #E8DDC9;
}

/* Bandeau promo : fond rouge bordeaux + animation message rotatif */
.promo-bar {
    background: linear-gradient(90deg, #7A2118 0%, #A0322B 50%, #7A2118 100%);
}
.promo-inner {
    position: relative;
    height: var(--promo-h);
    overflow: hidden;
}
.promo-msg {
    position: absolute;
    inset: 0;
    display: flex; align-items: center; justify-content: center;
    gap: 8px;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.promo-msg.is-active {
    opacity: 1;
    transform: translateY(0);
}

/* CTA primary rouge ButcherBox */
.link-discover {
    border-bottom-color: var(--gold);
}
.link-discover:hover { color: var(--gold-l); border-color: var(--gold-l); }
.btn-primary { background: var(--gold); }
.btn-primary:hover { background: var(--gold-d); }

/* Bouton prod-add (cards catégorie) rouge */
.prod-add { background: var(--gold); }
.prod-add:hover { background: var(--gold-d); }

/* Eyebrow rouge plus saturé */
.sec-over, .hero-collection { color: var(--gold); }
.sec-title em { color: var(--gold); }

/* Cards cat : accent border-top rouge */
.cat-card--gold  .cat-body { border-top-color: var(--gold); }

/* Marquage Preview v4 dans le tag footer */
.preview-tag {
    background: var(--gold);
}

/* ═══════════ NOUVEAU : SECTION TRAÇABILITÉ ANGÉLIQUE ═══════════ */
.tracability {
    padding: var(--s-10) 0;
    background:
        radial-gradient(ellipse at top left, rgba(192,57,43,.04), transparent 70%),
        var(--bg-2);
}
.tracability-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: var(--s-9);
    align-items: center;
}
@media (max-width: 900px) { .tracability-grid { grid-template-columns: 1fr; gap: var(--s-7); } }

.tracability-video {
    position: relative;
    aspect-ratio: 16/9;
    border-radius: var(--r-md);
    overflow: hidden;
    box-shadow: var(--sh-3);
    background: var(--ink);
}
.tracability-video iframe {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    border: 0;
}
.tracability-text .sec-over { color: var(--gold); display: inline-block; margin-bottom: var(--s-3); }
.tracability-text .sec-title { text-align: left; margin-bottom: var(--s-4); }
.tracability-text p {
    color: var(--ink-2);
    font-size: 1rem;
    line-height: 1.75;
    margin-bottom: var(--s-3);
}
.tracability-text p strong { color: var(--ink); font-weight: 500; }
.tracability-facts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--s-4);
    margin-top: var(--s-5);
    padding-top: var(--s-5);
    border-top: 1px solid var(--line-2);
}
.tracability-fact {
    text-align: center;
}
.tracability-fact-num {
    font-family: var(--f-serif);
    font-size: 2.4rem;
    font-weight: 500;
    color: var(--gold);
    line-height: 1;
    display: block;
    margin-bottom: 4px;
}
.tracability-fact-label {
    font-size: .8rem;
    color: var(--ink-2);
    line-height: 1.4;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-weight: 500;
}

/* Filtres chips Crowd Cow (pour future intégration cat_page) */
.cat-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: var(--s-4) 0;
    margin-bottom: var(--s-5);
    border-bottom: 1px solid var(--line);
}
.cat-chip {
    padding: 8px 16px;
    border: 1px solid var(--line-2);
    border-radius: 999px;
    font-size: .82rem;
    font-weight: 500;
    color: var(--ink-2);
    background: var(--bg);
    cursor: pointer;
    transition: all var(--tr);
}
.cat-chip:hover { border-color: var(--gold); color: var(--gold); }
.cat-chip.is-active {
    background: var(--gold);
    color: white;
    border-color: var(--gold);
}

/* ═══════════ HERO SLIDESHOW 3 IMAGES ═══════════ */
.hero-slider {
    position: absolute; inset: 0;
    overflow: hidden;
}
.hero-slide {
    position: absolute; inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1.04);
    transition: opacity 1.4s ease-in-out, transform 8s ease-out;
}
.hero-slide.is-active {
    opacity: 1;
    transform: scale(1);
}

/* ═══════════════════════════════════════════════════════
   Fix z-index : le widget Oki doit passer AU-DESSUS du
   header sticky .nav (z-index 100) et de la promo-bar.
   Avant : 95 → le panneau ouvert était partiellement
   masqué par la barre de navigation lors du scroll.
═══════════════════════════════════════════════════════ */
.oki-widget { z-index: 300 !important; }

/* -- Variantes : formats en pleine largeur, compteur a droite + reduit (2026-06-05) -- */
.prod-variants--v { display: flex; flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 7px; width: 100%; }
.prod-fmt { display: flex; align-items: center; gap: 8px; width: 100%; box-sizing: border-box; }
.prod-fmt-name  { flex: 1 1 auto; min-width: 0; font-size: .84rem; line-height: 1.2; color: var(--ink); }
.prod-fmt-price { flex: 0 0 auto; font-size: .82rem; font-weight: 500; color: var(--ink-2); white-space: nowrap; }
.prod-fmt .prod-qty--sm { flex: 0 0 auto; margin-left: auto; }
/* Compteur reduit (vs 30x32 / champ 48 par defaut) */
.prod-qty--sm .prod-qty-btn   { width: 22px; height: 24px; }
.prod-qty--sm .prod-qty-btn svg { width: 11px; height: 11px; }
.prod-qty--sm .prod-qty-input { width: 30px; height: 24px; font-size: .78rem; }

/* Lisibilité “Gault & Millau” sur fond rouge */
.promo-inner em, .promo-msg em { color: #F2D9B8; }
