/* ==========================================================================
   ACF COMPUTER — Nouvelles fonctions dans le design d'origine
   (favoris, comparateur, filtres avancés, recherche instantanée, fiche produit,
   suivi de commande, guides, application installable)

   Créé le 21 oct. 2026 à partir des styles des fonctions du design « Atelier » (abandonné) ;
   désormais modifié directement ici. Repères :
   toutes les couleurs passent par les variables --fx-* ci-dessous, calées sur la
   palette d'origine (bleu nuit #030f1e, or #ffb300, textes ardoise, fonds clairs).
   Les classes génériques (.card, .field, .status-badge...) ne s'appliquent qu'aux
   nouvelles pages (body.fx-page) pour ne jamais toucher aux styles d'origine.
   ========================================================================== */
:root {
    --fx-navy: #030f1e;
    --fx-navy-2: #0b1a2e;
    --fx-paper: #f8fafc;
    --fx-paper-2: #f1f5f9;
    --fx-surface: #ffffff;
    --fx-ink: #0f172a;
    --fx-ink-2: #334155;
    --fx-muted: #64748b;
    --fx-line: #e2e8f0;
    --fx-line-strong: #cbd5e1;
    --fx-cobalt: #0091ea;
    --fx-cobalt-ink: #0369a1;
    --fx-cobalt-soft: #e0f2fe;
    --fx-amber: #ffb300;
    --fx-amber-hover: #ffc633;
    --fx-ok: #16a34a;
    --fx-ok-soft: #dcfce7;
    --fx-danger: #dc2626;
    --fx-danger-soft: #fef2f2;
    --fx-wa: #25d366;
    --fx-f-sans: 'Inter', 'Segoe UI', sans-serif;
    --fx-f-serif: 'Outfit', 'Segoe UI', sans-serif;
    --fx-f-mono: 'Inter', 'Segoe UI', sans-serif;
    --fx-r-sm: 8px;
    --fx-r-md: 12px;
    --fx-r-lg: 18px;
    --fx-r-xl: 24px;
    --fx-gutter: 20px;
    --fx-maxw: 1200px;
    --fx-nav-h: 64px;
    --fx-shadow-1: 0 1px 3px rgba(15, 23, 42, 0.08);
    --fx-shadow-2: 0 12px 28px -12px rgba(15, 23, 42, 0.18);
    --fx-shadow-3: 0 24px 60px -20px rgba(15, 23, 42, 0.3);
}
[hidden] { display: none !important; }

/* ==========================================================================
   BOUTONS
   ========================================================================== */
/* ---------- Boutons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    min-height: 48px; padding: 0 22px; border-radius: 999px;
    font-size: 15px; font-weight: 500; letter-spacing: -0.01em; white-space: nowrap;
    border: 1px solid transparent; cursor: pointer;
    transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.btn i { font-size: 13px; transition: transform .35s var(--ease); }
.btn:hover i.fa-arrow-right, .btn:hover i.fa-arrow-right-long { transform: translateX(4px); }
.btn-ink { background: var(--fx-ink); color: var(--fx-paper); }
.btn-ink:hover { background: var(--fx-cobalt); }
.btn-cobalt { background: var(--fx-cobalt); color: #fff; }
.btn-cobalt:hover { background: var(--fx-cobalt-ink); }
.btn-ghost { background: transparent; color: var(--fx-ink); border-color: var(--fx-line-strong); }
.btn-ghost:hover { border-color: var(--fx-ink); background: var(--fx-surface); }
.btn-light { background: rgba(255, 255, 255, 0.82); color: var(--fx-ink); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.btn-light:hover { background: #fff; }
.btn-wa { background: var(--fx-wa); color: #06331a; }
.btn-wa:hover { background: #1fbe5b; }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
.btn-block { width: 100%; }
.btn[disabled], .btn.disabled { opacity: .45; pointer-events: none; }



/* ==========================================================================
   ÉTIQUETTES
   ========================================================================== */
.eyebrow {
    display: inline-flex; align-items: center; gap: 10px;
    font-family: var(--fx-f-mono); font-size: 12px; font-weight: 500;
    letter-spacing: 0.08em; text-transform: uppercase; color: var(--fx-muted);
}
.eyebrow::before {
    content: ""; width: 7px; height: 7px; border-radius: 50%;
    background: var(--fx-amber); box-shadow: 0 0 0 3px rgba(255, 179, 0, 0.2);
}
.eyebrow.no-dot::before { display: none; }
.mono { font-family: var(--fx-f-mono); }


/* ==========================================================================
   FORMULAIRES
   ========================================================================== */
.fx-page .field { display: grid; gap: 8px; }
.fx-page .field label, .form-label { font-size: 13.5px; font-weight: 500; color: var(--fx-ink-2); }
.fx-page .input, .fx-page .field input, .fx-page .field select, .fx-page .field textarea {
    width: 100%; min-height: 48px; padding: 12px 16px;
    border-radius: 12px; border: 1px solid var(--fx-line-strong); background: var(--fx-surface);
    font-size: 15px; transition: border-color .2s ease, box-shadow .2s ease;
}
.fx-page .field textarea { min-height: 120px; resize: vertical; }
.fx-page .input:focus, .fx-page .field input:focus, .fx-page .field select:focus, .fx-page .field textarea:focus {
    outline: none; border-color: var(--fx-ink); box-shadow: 0 0 0 4px rgba(15, 23, 42, 0.07);
}



/* ==========================================================================
   COMPOSANTS DES PAGES
   ========================================================================== */
/* Carte / panneau */
.fx-page .card {
    background: var(--fx-surface); border: 1px solid var(--fx-line);
    border-radius: var(--fx-r-lg); padding: clamp(20px, 3vw, 32px);
}
.fx-page .card-title {
    display: flex; align-items: center; gap: 10px;
    font-size: 18px; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 20px;
}
.fx-page .card-title i { font-size: 14px; color: var(--fx-muted); }

/* Onglets segmentés */
.segmented {
    display: inline-flex; gap: 4px; padding: 4px;
    border-radius: 999px; background: var(--fx-paper-2);
}
.segmented > * {
    display: inline-flex; align-items: center; gap: 8px;
    height: 38px; padding: 0 18px; border-radius: 999px;
    font-size: 14px; font-weight: 500; color: var(--fx-muted); cursor: pointer;
    transition: background-color .25s var(--ease), color .25s var(--ease), box-shadow .25s var(--ease);
}
.segmented > *:hover { color: var(--fx-ink); }
.segmented > .active, .segmented > .is-active { background: var(--fx-surface); color: var(--fx-ink); box-shadow: var(--fx-shadow-1); }

/* Messages de retour (succès / erreur) */
.fx-page .notice {
    display: flex; gap: 10px; align-items: flex-start;
    padding: 12px 16px; border-radius: 12px; font-size: 14px; line-height: 1.5;
    background: var(--fx-paper-2); color: var(--fx-ink-2);
}
.fx-page .notice i { margin-top: 3px; }
.fx-page .notice.info { background: var(--fx-cobalt-soft); color: var(--fx-cobalt-ink); }
.fx-page .notice.success { background: var(--fx-ok-soft); color: var(--fx-ok); }
.fx-page .notice.error { background: var(--fx-danger-soft); color: var(--fx-danger); }

/* État vide (certains scripts le forcent en display:block : mise en page par marges) */
.empty-state {
    text-align: center;
    padding: clamp(40px, 8vw, 80px) 20px;
    border: 1px dashed var(--fx-line-strong); border-radius: var(--fx-r-lg);
}
.empty-state > * + * { margin-top: 12px; }
.empty-state > i {
    width: 56px; height: 56px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--fx-paper-2); font-size: 20px; color: var(--fx-ink-2);
}
.empty-state h3 { font-size: 22px; letter-spacing: -0.03em; }
.empty-state p { color: var(--fx-muted); max-width: 44ch; margin-inline: auto; }
.empty-state .btn { margin-top: 20px; }

/* Badges de statut de commande */
.fx-page .status-badge, .fx-page .recent-order-badge {
    display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px;
    font-family: var(--fx-f-mono); font-size: 11px; font-weight: 500; letter-spacing: 0.03em; text-transform: uppercase;
    background: var(--fx-paper-2); color: var(--fx-ink-2); white-space: nowrap;
}
.fx-page .status-badge::before, .fx-page .recent-order-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.fx-page .status-en_attente, .fx-page .recent-order-badge.en_attente { background: #fbf1d9; color: #8a5a00; }
.fx-page .status-confirmee, .fx-page .recent-order-badge.confirmee { background: var(--fx-cobalt-soft); color: var(--fx-cobalt-ink); }
.fx-page .status-livree, .fx-page .recent-order-badge.livree { background: var(--fx-ok-soft); color: var(--fx-ok); }
.fx-page .status-annulee, .fx-page .recent-order-badge.annulee { background: var(--fx-danger-soft); color: var(--fx-danger); }



/* ==========================================================================
   ACTIONS RAPIDES SUR LES CARTES, FAVORIS, COMPARATEUR, RECHERCHE, APPLICATION
   ========================================================================== */
.product-card .card-actions {
    position: absolute; top: 10px; right: 10px; z-index: 5;
    display: flex; flex-direction: column; gap: 6px;
}
.card-action {
    width: 36px; height: 36px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    background: rgba(255, 255, 255, 0.92); color: var(--fx-ink); font-size: 15px;
    box-shadow: var(--fx-shadow-1); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    transition: transform .35s var(--ease), background-color .2s ease, color .2s ease;
}
.card-action:hover { transform: scale(1.08); }
.card-action.card-wa { color: #128c4a; }
.card-action.card-wa:hover { background: var(--fx-wa); color: #fff; }
@media (max-width: 480px) {
    .product-card .card-actions { top: 8px; right: 8px; gap: 5px; }
    .card-action { width: 32px; height: 32px; font-size: 13.5px; }
}

/* L'attribut hidden l'emporte toujours, même sur un composant en display:flex */
[hidden] { display: none !important; }

/* ==========================================================================
   FAVORIS ET COMPARATEUR (selections.js)
   ========================================================================== */
/* Lien favoris dans la navigation */
.nav-icons .fav-link { position: relative; }
.fav-badge {
    position: absolute; top: 3px; right: 1px;
    min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px;
    display: none; align-items: center; justify-content: center;
    background: #d94a6a; color: #fff; font-family: var(--fx-f-mono); font-size: 10.5px; font-weight: 600; line-height: 1;
    border: 2px solid var(--fx-paper);
}

/* Cœur et comparateur sur les cartes */
.card-action.card-fav.is-on { color: #d94a6a; }
.card-action.card-fav.is-on:hover { background: #d94a6a; color: #fff; }
.card-action.card-cmp.is-on { background: var(--fx-ink); color: var(--fx-paper); }
.card-action.is-popping { animation: favPop .5s var(--ease); }
@keyframes favPop { 0% { transform: scale(.6); } 60% { transform: scale(1.18); } 100% { transform: scale(1); } }
.fav-burst {
    position: fixed; z-index: 30001; width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; border-radius: 50%;
    background: #d94a6a; pointer-events: none;
}

/* Fiche produit : favoris / comparer */
.produit-secondary-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.produit-mini-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 42px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--fx-line);
    background: var(--fx-paper); font-size: 13px; font-weight: 500; color: var(--fx-ink-2);
    transition: border-color .2s ease, background-color .2s ease, color .2s ease;
}
.produit-mini-btn:hover { border-color: var(--fx-ink); color: var(--fx-ink); }
.produit-mini-btn.is-on { background: var(--fx-ink); border-color: var(--fx-ink); color: var(--fx-paper); }
@media (max-width: 420px) { .produit-mini-btn { padding: 0 8px; gap: 6px; font-size: 12.5px; white-space: nowrap; letter-spacing: -0.01em; } }
#produitFavBtn.is-on { background: #fbe9ee; border-color: transparent; color: #b8304f; }
#produitFavBtn.is-on i { color: #d94a6a; }

/* Barre flottante du comparateur */
.compare-bar {
    position: fixed; left: 50%; bottom: 16px; z-index: 850;
    display: flex; align-items: center; gap: 14px;
    padding: 8px 8px 8px 10px; border-radius: 999px;
    background: var(--fx-ink); color: var(--fx-paper); box-shadow: var(--fx-shadow-3);
    transform: translate(-50%, 140%); opacity: 0;
    transition: transform .6s var(--ease), opacity .4s ease;
    max-width: calc(100vw - 24px);
}
.compare-bar.show { transform: translate(-50%, 0); opacity: 1; }
.cb-slots { display: flex; gap: 6px; }
.cb-slot {
    position: relative; width: 44px; height: 44px; border-radius: 50%; overflow: visible;
    background: rgba(248, 250, 252, .1); display: inline-flex; align-items: center; justify-content: center;
}
.cb-slot img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 2px solid var(--fx-paper); }
.cb-empty { border: 1.5px dashed rgba(248, 250, 252, .3); background: transparent; color: rgba(248, 250, 252, .4); font-size: 11px; }
.cb-remove {
    position: absolute; top: -4px; right: -4px; width: 18px; height: 18px; border-radius: 50%;
    background: var(--fx-paper); color: var(--fx-ink); font-size: 13px; line-height: 1; display: inline-flex; align-items: center; justify-content: center;
}
.cb-text { font-size: 13.5px; white-space: nowrap; }
.cb-text strong { font-family: var(--fx-f-mono); font-weight: 600; }
.cb-text span { color: rgba(248, 250, 252, .65); }
.cb-clear { color: rgba(248, 250, 252, .6); font-size: 13px; padding: 0 4px; }
.cb-clear:hover { color: var(--fx-paper); }
.cb-go { background: var(--fx-paper); color: var(--fx-ink); }
.cb-go:hover { background: var(--fx-amber); color: var(--fx-ink); }
.cb-go[aria-disabled="true"] { opacity: .45; pointer-events: none; }
body.has-compare-bar #whatsapp-widget, body.has-compare-bar .whatsapp-float { bottom: 88px; }
@media (max-width: 560px) {
    .compare-bar { left: 12px; right: 12px; transform: translateY(140%); border-radius: 22px; gap: 10px; }
    .compare-bar.show { transform: none; }
    .cb-text span { display: none; }
    .cb-slot { width: 38px; height: 38px; }
    .cb-go { margin-left: auto; }
}

/* Message éphémère */
.acf-toast {
    position: fixed; left: 50%; top: calc(var(--fx-nav-h) + 12px); z-index: 30000;
    max-width: min(420px, calc(100vw - 32px)); padding: 12px 18px; border-radius: 14px;
    background: var(--fx-ink); color: var(--fx-paper); font-size: 14px; line-height: 1.4; box-shadow: var(--fx-shadow-2);
    transform: translate(-50%, -12px); opacity: 0; pointer-events: none;
    transition: transform .45s var(--ease), opacity .3s ease;
}
.acf-toast.show { transform: translate(-50%, 0); opacity: 1; }
@media (prefers-reduced-motion: reduce) { .compare-bar, .acf-toast { transition: none; } }


/* ==========================================================================
   RECHERCHE INSTANTANÉE (recherche.js)
   ========================================================================== */
.search-overlay {
    position: fixed; inset: 0; z-index: 5000; overflow-y: auto; overscroll-behavior: contain;
    background: var(--fx-paper); color: var(--fx-ink);
}
html.search-locked, html.search-locked body { overflow: hidden; }
.so-inner { width: min(1080px, 100% - 32px); margin: 0 auto; padding: 22px 0 64px; }
.so-head { display: flex; align-items: center; justify-content: space-between; min-height: 44px; }
.so-close {
    display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 6px 0 14px; border-radius: 999px;
    border: 1px solid var(--fx-line-strong); font-size: 13px; color: var(--fx-muted); transition: border-color .2s ease, color .2s ease;
}
.so-close:hover { border-color: var(--fx-ink); color: var(--fx-ink); }
.so-close kbd { font-family: var(--fx-f-mono); font-size: 11px; letter-spacing: .04em; }
.so-close span { width: 32px; height: 32px; border-radius: 50%; background: var(--fx-ink); color: var(--fx-paper); display: inline-flex; align-items: center; justify-content: center; font-size: 20px; line-height: 1; }

.so-field { position: relative; display: flex; align-items: center; gap: 16px; margin: clamp(28px, 7vh, 72px) 0 28px; border-bottom: 2px solid var(--fx-ink); }
.so-field > i { font-size: clamp(20px, 3vw, 30px); color: var(--fx-muted); }
.so-field input {
    flex: 1; min-width: 0; height: clamp(64px, 10vw, 104px); border: 0; outline: 0; background: transparent; color: var(--fx-ink);
    font-family: var(--fx-f-sans); font-size: clamp(30px, 6vw, 64px); font-weight: 400; letter-spacing: -0.045em;
    -webkit-appearance: none; appearance: none;
}
.so-field input::placeholder { color: var(--fx-line-strong); }
.so-field input::-webkit-search-cancel-button { -webkit-appearance: none; }
.so-field::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--fx-cobalt);
    transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease);
}
.so-field:focus-within::after { transform: scaleX(1); }

.so-label { font-family: var(--fx-f-mono); font-size: 11px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--fx-muted); margin: 0 0 12px; }
.so-popular { margin-bottom: 30px; }
.so-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.so-chip {
    display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 999px;
    border: 1px solid var(--fx-line-strong); background: var(--fx-surface); font-size: 14px; color: var(--fx-ink);
    transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.so-chip span { font-size: 11px; color: var(--fx-muted); }
.so-chip:hover, .so-chip:focus-visible { background: var(--fx-ink); border-color: var(--fx-ink); color: var(--fx-paper); }
.so-chip:hover span, .so-chip:focus-visible span { color: rgba(248, 250, 252, .6); }
.search-overlay.has-query .so-popular { display: none; }

.so-results-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.so-status { margin: 0 0 12px; font-size: 13px; color: var(--fx-muted); }
.so-results { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--fx-line); }
.so-row { border-bottom: 1px solid var(--fx-line); }
.so-row a {
    display: grid; grid-template-columns: 72px minmax(0, 1fr) auto 20px; align-items: center; gap: 18px;
    padding: 12px 12px 12px 8px; margin: 0 -8px; border-radius: 14px; color: inherit; text-decoration: none;
    transition: background-color .25s ease;
}
.so-thumb { width: 72px; height: 56px; border-radius: 10px; background: var(--fx-surface); overflow: hidden; display: flex; align-items: center; justify-content: center; }
.so-thumb img { width: 100%; height: 100%; object-fit: contain; transition: transform .5s var(--ease); }
.so-main { display: grid; gap: 4px; min-width: 0; }
.so-name { font-size: 16px; font-weight: 500; letter-spacing: -0.015em; line-height: 1.3; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.so-name mark { background: linear-gradient(transparent 58%, rgba(255, 179, 0, .55) 58%); color: inherit; padding: 0 1px; }
.so-meta { font-size: 11.5px; color: var(--fx-muted); }
.so-out { font-style: normal; color: var(--fx-danger); margin-left: 6px; }
.so-price { display: grid; justify-items: end; text-align: right; white-space: nowrap; font-weight: 500; }
.so-price .acf-price-old { font-size: 12px; font-weight: 400; color: var(--fx-muted); }
.so-go { font-size: 13px; color: var(--fx-muted); opacity: 0; transform: translateX(-8px); transition: opacity .25s ease, transform .35s var(--ease); }
.so-row.is-active a, .so-row a:hover { background: var(--fx-surface); }
.so-row.is-active .so-go, .so-row a:hover .so-go { opacity: 1; transform: none; color: var(--fx-ink); }
.so-row.is-active .so-thumb img, .so-row a:hover .so-thumb img { transform: scale(1.06); }
.so-empty { padding: 22px 0; font-size: 15px; color: var(--fx-muted); max-width: 60ch; }
.so-empty a { color: var(--fx-ink); text-decoration: underline; text-underline-offset: 3px; }

.so-all {
    display: inline-flex; align-items: center; gap: 8px; margin-top: 24px; height: 48px; padding: 0 22px; border-radius: 999px;
    background: var(--fx-ink); color: var(--fx-paper); font-size: 15px; font-weight: 500; text-decoration: none;
}
.so-all b { font-family: var(--fx-f-mono); font-weight: 400; font-size: 12px; opacity: .7; }
.so-all i { transition: transform .35s var(--ease); }
.so-all:hover i { transform: translateX(4px); }

@media (max-width: 639px) {
    .so-inner { padding-top: 14px; }
    .so-field { gap: 12px; margin: 24px 0 22px; }
    .so-row a { grid-template-columns: 56px minmax(0, 1fr) auto; gap: 12px; padding: 10px 6px; margin: 0 -6px; }
    .so-thumb { width: 56px; height: 46px; }
    .so-name { font-size: 14.5px; }
    .so-price { font-size: 13.5px; }
    .so-go { display: none; }
    .so-close kbd { display: none; }
    .so-close { padding: 0 6px; border: 0; }
    .so-all { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
    .so-field::after, .so-thumb img, .so-go { transition: none; }
}

/* ==========================================================================
   APPLICATION INSTALLABLE (pwa.js)
   ========================================================================== */
.pwa-install {
    display: inline-flex; align-items: center; gap: 8px; padding: 0; background: none; border: 0;
    font: inherit; font-size: inherit; color: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px;
}
.pwa-install i { font-size: .9em; }
.footer-legal .pwa-install:hover { color: var(--fx-paper); }
.sidebar-foot .pwa-install { justify-self: start; margin-top: 8px; height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid rgba(248, 250, 252, .25); color: var(--fx-paper); text-decoration: none; }
.pwa-update {
    position: fixed; left: 50%; top: calc(var(--fx-nav-h) + 12px); z-index: 30000; display: flex; align-items: center; gap: 14px;
    width: max-content; max-width: calc(100vw - 32px); padding: 8px 8px 8px 18px; border-radius: 999px;
    background: var(--fx-ink); color: var(--fx-paper); font-size: 13.5px; box-shadow: var(--fx-shadow-3);
    transform: translate(-50%, -16px); opacity: 0; transition: transform .5s var(--ease), opacity .3s ease;
}
.pwa-update.show { transform: translate(-50%, 0); opacity: 1; }
.pwa-update .btn { background: var(--fx-paper); color: var(--fx-ink); border-color: var(--fx-paper); }
@media (prefers-reduced-motion: reduce) { .pwa-update { transition: none; } }


/* ==========================================================================
   PAGES FAVORIS, COMPARATEUR, SUIVI DE COMMANDE
   ========================================================================== */
.sel-toolbar {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
    padding: 10px 10px 10px 18px; margin-bottom: 20px;
    border-radius: 999px; background: var(--fx-surface); border: 1px solid var(--fx-line);
}
.sel-toolbar-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.sel-count { font-size: 12px; letter-spacing: .04em; color: var(--fx-muted); }
@media (max-width: 640px) { .sel-toolbar { border-radius: var(--fx-r-md); padding: 12px; } }
main.wrap { padding-bottom: clamp(48px, 8vw, 96px); }
.fav-empty .far.fa-heart { color: #d94a6a; }

/* ---------- Comparateur ---------- */
.cmp-diff-toggle { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; cursor: pointer; }
.cmp-diff-toggle input { width: 18px; height: 18px; accent-color: var(--fx-ink); }
.cmp-scroll {
    overflow-x: auto; border-radius: var(--fx-r-lg); background: var(--fx-surface); border: 1px solid var(--fx-line);
    scrollbar-width: thin;
}
.cmp-table { width: 100%; min-width: calc(150px + var(--cols, 3) * 210px); border-collapse: collapse; table-layout: fixed; }
.cmp-table th, .cmp-table td { padding: 16px 18px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--fx-line); }
.cmp-table tbody th {
    width: 150px; font-family: var(--fx-f-mono); font-size: 11px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--fx-muted);
    position: sticky; left: 0; background: var(--fx-surface); z-index: 1;
}
.cmp-table thead th { vertical-align: bottom; border-bottom: 1px solid var(--fx-line-strong); }
.cmp-corner { width: 150px; position: sticky; left: 0; background: var(--fx-surface); z-index: 2; }
.cmp-corner .mono { font-size: 11px; color: var(--fx-muted); letter-spacing: .05em; }
.cmp-col { position: relative; }
.cmp-img { display: block; aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden; background: var(--fx-paper-2); margin-bottom: 12px; }
.cmp-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.cmp-img:hover img { transform: scale(1.04); }
.cmp-name { font-size: 14.5px; font-weight: 500; line-height: 1.35; letter-spacing: -0.01em; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.cmp-name:hover { color: var(--fx-cobalt); }
.cmp-remove {
    position: absolute; top: 24px; right: 26px; z-index: 1; width: 30px; height: 30px; border-radius: 50%;
    background: rgba(255, 255, 255, .92); color: var(--fx-ink); font-size: 18px; line-height: 1;
    display: inline-flex; align-items: center; justify-content: center; box-shadow: var(--fx-shadow-1);
}
.cmp-remove:hover { background: var(--fx-ink); color: var(--fx-paper); }
.cmp-table td { font-size: 15px; }
.cmp-price .current-price, .cmp-price .price-value { font-family: var(--fx-f-mono); font-weight: 600; font-size: 16px; }
.cmp-price .acf-price-old { display: block; }
/* Lignes qui diffèrent : fond ambré léger */
.cmp-table tr.is-diff td { background: #fdf8ec; }
.cmp-diff-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--fx-amber); margin-left: 6px; vertical-align: middle; }
.cmp-table.only-diff tr.is-same { display: none; }
.cmp-best { box-shadow: inset 0 0 0 2px var(--fx-ok); }
.cmp-best-tag { display: block; margin-top: 6px; font-size: 10px; letter-spacing: .06em; text-transform: uppercase; color: var(--fx-ok); }
.cmp-stock { display: inline-flex; align-items: center; gap: 6px; font-family: var(--fx-f-mono); font-size: 11px; letter-spacing: .04em; text-transform: uppercase; }
.cmp-stock::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.cmp-stock.in { color: var(--fx-ok); }
.cmp-stock.out { color: var(--fx-danger); }
.cmp-actions td { display: table-cell; }
.cmp-actions td .btn + .btn { margin-top: 8px; }
.cmp-actions td, .cmp-actions th { border-bottom: 0; }
@media (max-width: 640px) {
    .cmp-table { min-width: calc(110px + var(--cols, 3) * 180px); }
    .cmp-table tbody th, .cmp-corner { width: 110px; padding: 14px 10px; }
    .cmp-table th, .cmp-table td { padding: 14px 12px; }
    .cmp-remove { top: 20px; right: 18px; }
}

/* ==========================================================================
   SUIVI DE COMMANDE (suivi-commande.html)
   ========================================================================== */
.suivi-layout { display: grid; gap: 28px; align-items: start; padding-bottom: clamp(48px, 8vw, 96px); }
@media (min-width: 900px) { .suivi-layout { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 56px; } }
.suivi-form { display: grid; gap: 20px; }
.field-hint { font-size: 12px; color: var(--fx-muted); }
.suivi-form #suiviNumero { text-transform: uppercase; letter-spacing: .04em; }
.suivi-error {
    margin: 0; padding: 12px 14px; border-radius: 12px; background: var(--fx-danger-soft); color: var(--fx-danger);
    font-size: 13.5px; line-height: 1.5;
}
.suivi-error a { color: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
#suiviBtn.is-loading { opacity: .7; cursor: progress; }
#suiviBtn.is-loading i { animation: suiviNudge .9s ease-in-out infinite; }
@keyframes suiviNudge { 50% { transform: translateX(4px); } }
.suivi-privacy { margin: 0; font-size: 12px; color: var(--fx-muted); display: flex; gap: 8px; align-items: baseline; }

.suivi-aside h2 { font-size: 20px; letter-spacing: -0.03em; margin-bottom: 18px; }
.suivi-legend { list-style: none; margin: 0 0 24px; padding: 0; counter-reset: etape; display: grid; gap: 16px; }
.suivi-legend li { counter-increment: etape; display: grid; grid-template-columns: 34px 1fr; gap: 2px 14px; }
.suivi-legend li::before {
    content: counter(etape, decimal-leading-zero); grid-row: span 2; font-family: var(--fx-f-mono); font-size: 12px;
    width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--fx-line-strong); display: flex; align-items: center; justify-content: center;
}
.suivi-legend b { font-weight: 500; }
.suivi-legend span { font-size: 13.5px; color: var(--fx-muted); }
.suivi-help { font-size: 14px; color: var(--fx-muted); border-top: 1px solid var(--fx-line); padding-top: 18px; margin: 0; }
.suivi-help a { color: var(--fx-ink); text-decoration: underline; text-underline-offset: 3px; }

/* Résultat */
.suivi-result { padding-bottom: clamp(48px, 8vw, 96px); scroll-margin-top: calc(var(--fx-nav-h) + 16px); }
.suivi-result-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; padding-bottom: 22px; border-bottom: 1px solid var(--fx-line); }
.suivi-result-head h2 { font-size: clamp(26px, 4.4vw, 44px); letter-spacing: -0.02em; margin-top: 6px; }
.suivi-res-date { margin: 6px 0 0; font-size: 13.5px; color: var(--fx-muted); }
.suivi-result-head .status-badge { height: 32px; padding: 0 14px; font-size: 12px; }
.fx-page .status-annulee { background: var(--fx-danger-soft); color: var(--fx-danger); }

.suivi-cancel { display: flex; gap: 14px; align-items: flex-start; margin-top: 22px; padding: 16px 18px; border-radius: 16px; background: var(--fx-danger-soft); color: var(--fx-danger); font-size: 14px; line-height: 1.5; }
.suivi-cancel i { font-size: 20px; margin-top: 1px; }
.suivi-cancel b { font-weight: 600; }

.suivi-steps { position: relative; list-style: none; margin: 36px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.suivi-step { position: relative; z-index: 1; display: grid; justify-items: center; text-align: center; gap: 6px; }
.suivi-dot {
    width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    background: var(--fx-paper); border: 2px solid var(--fx-line-strong); color: transparent; font-size: 16px; margin-bottom: 6px;
    transition: background-color .4s ease, border-color .4s ease, color .4s ease;
}
.suivi-step b { font-size: 15px; font-weight: 500; }
.suivi-step small { font-size: 12px; color: var(--fx-muted); min-height: 1.4em; }
.suivi-step.is-done .suivi-dot { background: var(--fx-ink); border-color: var(--fx-ink); color: var(--fx-paper); }
.suivi-step.is-current .suivi-dot { border-color: var(--fx-cobalt); border-style: dashed; animation: suiviPulse 2.2s ease-in-out infinite; }
.suivi-step.is-current b { color: var(--fx-cobalt); }
.suivi-step.is-current small::before { content: "En cours"; color: var(--fx-cobalt); }
@keyframes suiviPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(0, 145, 234, .25); } 50% { box-shadow: 0 0 0 10px rgba(0, 145, 234, 0); } }
.suivi-track { position: absolute; top: 23px; left: calc(100% / 6); right: calc(100% / 6); height: 2px; background: var(--fx-line-strong); z-index: 0; }
.suivi-fill { position: absolute; inset: 0; background: var(--fx-ink); transform-origin: left center; transform: scaleX(var(--p, 0)); }
.suivi-steps.is-cancelled { opacity: .45; }
.suivi-next { margin: 26px auto 0; max-width: 56ch; text-align: center; font-size: 15px; color: var(--fx-ink-2); }

@media (max-width: 639px) {
    .suivi-steps { grid-template-columns: 1fr; gap: 22px; margin-top: 28px; }
    .suivi-step { grid-template-columns: 48px 1fr; justify-items: start; text-align: left; gap: 0 14px; align-items: center; }
    .suivi-dot { grid-row: span 2; margin: 0; }
    .suivi-step b { align-self: end; }
    .suivi-step small { align-self: start; }
    .suivi-track { top: 24px; bottom: 24px; left: 23px; right: auto; width: 2px; height: auto; }
    .suivi-fill { transform-origin: center top; transform: scaleY(var(--p, 0)); }
    .suivi-next { text-align: left; }
}

.suivi-details { display: grid; gap: 20px; margin-top: 36px; }
@media (min-width: 900px) { .suivi-details { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); } }
.suivi-details h3 { font-family: var(--fx-f-mono); font-size: 11px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--fx-muted); margin-bottom: 14px; }
.suivi-items ul { list-style: none; margin: 0; padding: 0; }
.suivi-items li { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--fx-line); }
.suivi-item-thumb { width: 52px; height: 42px; border-radius: 10px; background: var(--fx-paper); display: flex; align-items: center; justify-content: center; color: var(--fx-muted); overflow: hidden; }
.suivi-item-thumb img { width: 100%; height: 100%; object-fit: contain; }
.suivi-item-name { font-size: 14.5px; line-height: 1.35; }
.suivi-item-name em { font-style: normal; font-size: 12px; color: var(--fx-muted); white-space: nowrap; }
.suivi-item-price { font-size: 13px; white-space: nowrap; }
.suivi-item-none { color: var(--fx-muted); font-size: 14px; }
.suivi-total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 14px; font-size: 15px; }
.suivi-total strong { font-size: 20px; letter-spacing: -0.02em; }
.suivi-mode { display: grid; gap: 12px; align-content: start; }
.suivi-mode p { margin: 0 0 6px; font-weight: 500; line-height: 1.5; }
.suivi-mode p i { margin-right: 6px; }
.suivi-mode p span { font-weight: 400; font-size: 13.5px; color: var(--fx-muted); }
@media (prefers-reduced-motion: reduce) {
    .suivi-step.is-current .suivi-dot, #suiviBtn.is-loading i { animation: none; }
}


/* ==========================================================================
   FILTRES AVANCÉS DE LA BOUTIQUE
   ========================================================================== */
.shop-layout { display: grid; gap: 28px; align-items: start; }
@media (min-width: 1000px) { .shop-layout { grid-template-columns: 250px minmax(0, 1fr); } }
.shop-results { min-width: 0; }
.results-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-bottom: 18px; }
.results-bar .results-counter { margin-bottom: 0; }

/* Bouton d'ouverture (mobile) */
.filters-open-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; flex-shrink: 0;
    height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--fx-ink);
    background: var(--fx-ink); color: var(--fx-paper); font-size: 14px; font-weight: 500;
}
.filters-open-btn i { font-size: 13px; }
.filters-open-count {
    min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center;
    background: var(--fx-amber); color: var(--fx-ink); font-family: var(--fx-f-mono); font-size: 11px; font-weight: 600;
}
@media (min-width: 1000px) { .filters-open-btn { display: none; } }
@media (max-width: 639px) {
    .filter-controls-row { flex-direction: row; flex-wrap: wrap; }
    .filter-controls-row .category-tabs { flex: 1 1 100%; }
    .sort-wrapper { flex: 1 1 auto; }
    .sort-wrapper select { width: 100%; }
}

/* Panneau */
.filters-panel { display: flex; flex-direction: column; }
.filters-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.filters-head h2 { font-size: 20px; letter-spacing: -0.03em; }
.filters-close {
    display: none; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--fx-line-strong);
    font-size: 22px; line-height: 1; align-items: center; justify-content: center;
}
.filters-body { display: grid; gap: 4px; }
.filters-wait { font-size: 12px; color: var(--fx-muted); padding: 12px 0; }
.filters-foot { display: flex; gap: 8px; padding-top: 16px; }
.filters-foot .btn { flex: 1; }
@media (min-width: 1000px) {
    .filters-panel {
        position: sticky; top: calc(var(--fx-nav-h) + 96px);
        max-height: calc(100svh - var(--fx-nav-h) - 116px); overflow-y: auto; scrollbar-width: thin;
        padding-right: 6px;
    }
    .nav-hidden .filters-panel { top: 96px; max-height: calc(100svh - 116px); }
    #filtersApplyBtn { display: none; }
    .filters-overlay { display: none !important; }
}
@media (max-width: 999px) {
    .filters-panel {
        position: fixed; top: 8px; right: 8px; bottom: 8px; z-index: 1002;
        width: min(380px, calc(100vw - 16px)); padding: 18px 20px 16px;
        border-radius: var(--fx-r-lg); background: var(--fx-paper); box-shadow: var(--fx-shadow-3);
        transform: translateX(calc(100% + 16px)); transition: transform .55s var(--ease);
    }
    .filters-panel.open { transform: none; }
    .filters-body { flex: 1; overflow-y: auto; margin: 8px -4px 0; padding: 0 4px; }
    .filters-close { display: inline-flex; }
    .filters-foot { border-top: 1px solid var(--fx-line); margin-top: 8px; }
    .filters-overlay { position: fixed; inset: 0; z-index: 1001; background: rgba(15, 23, 42, .35); }
    html.filters-locked, html.filters-locked body { overflow: hidden; }
}

/* Groupes */
.fgroup { border: 0; border-top: 1px solid var(--fx-line); padding: 16px 0 14px; margin: 0; }
.fgroup legend {
    float: left; width: 100%; margin-bottom: 12px; padding: 0;
    font-family: var(--fx-f-mono); font-size: 11px; font-weight: 500; letter-spacing: .07em; text-transform: uppercase; color: var(--fx-muted);
}
.fopts { clear: both; }
.fopts-list { display: grid; gap: 2px; }
.fopts-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.fopt { display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: 14px; }
.fopts-list .fopt { padding: 7px 8px; margin-inline: -8px; border-radius: 10px; transition: background-color .2s ease; }
.fopts-list .fopt:hover { background: var(--fx-paper-2); }
.fopts-list .fopt input { width: 18px; height: 18px; accent-color: var(--fx-ink); flex-shrink: 0; }
.fopts-list .fopt-label { flex: 1; }
.fopt-count { font-size: 11px; color: var(--fx-muted); }
.fopt.is-empty { opacity: .4; }
/* RAM / stockage : pastilles cliquables */
.fopts-chips .fopt { position: relative; height: 36px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--fx-line-strong); background: var(--fx-surface); gap: 6px; transition: background-color .2s ease, border-color .2s ease, color .2s ease; }
.fopts-chips .fopt input { position: absolute; opacity: 0; pointer-events: none; }
.fopts-chips .fopt:hover { border-color: var(--fx-ink); }
.fopts-chips .fopt:has(input:checked) { background: var(--fx-ink); border-color: var(--fx-ink); color: var(--fx-paper); }
.fopts-chips .fopt:has(input:checked) .fopt-count { color: rgba(248, 250, 252, .6); }
.fopts-chips .fopt:has(input:focus-visible) { outline: 2px solid var(--fx-cobalt); outline-offset: 2px; }

/* Curseur double */
.price-values { clear: both; display: flex; justify-content: space-between; font-size: 12.5px; margin-bottom: 14px; }
.dual-range { position: relative; height: 24px; }
.dual-track { position: absolute; left: 0; right: 0; top: 50%; height: 4px; margin-top: -2px; border-radius: 4px; background: var(--fx-paper-2); }
.dual-fill { position: absolute; top: 0; bottom: 0; background: var(--fx-ink); border-radius: 4px; }
.dual-range input[type=range] {
    position: absolute; left: 0; right: 0; top: 0; width: 100%; height: 24px; margin: 0;
    background: transparent; pointer-events: none; -webkit-appearance: none; appearance: none; z-index: 3;
}
.dual-range input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none; pointer-events: auto; width: 22px; height: 22px; border-radius: 50%;
    background: var(--fx-surface); border: 2px solid var(--fx-ink); box-shadow: var(--fx-shadow-1); cursor: grab;
}
.dual-range input[type=range]::-moz-range-thumb {
    pointer-events: auto; width: 20px; height: 20px; border-radius: 50%;
    background: var(--fx-surface); border: 2px solid var(--fx-ink); cursor: grab;
}
.dual-range input[type=range]::-webkit-slider-runnable-track { background: transparent; }
.dual-range input[type=range]::-moz-range-track { background: transparent; }
.dual-range input[type=range]:focus-visible::-webkit-slider-thumb { outline: 2px solid var(--fx-cobalt); outline-offset: 2px; }

/* Puces des filtres actifs */
.active-filters { display: flex; flex-wrap: wrap; gap: 6px; }
.fchip {
    display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 999px;
    background: var(--fx-surface); border: 1px solid var(--fx-line-strong); font-size: 13px; color: var(--fx-ink);
    transition: border-color .2s ease, background-color .2s ease;
    animation: chipIn .4s var(--ease) both;
}
.fchip span { font-size: 15px; line-height: 1; color: var(--fx-muted); }
.fchip:hover { border-color: var(--fx-danger); }
.fchip:hover span { color: var(--fx-danger); }
.fchip-reset { height: 32px; padding: 0 8px; font-size: 13px; font-weight: 500; color: var(--fx-muted); text-decoration: underline; text-underline-offset: 3px; }
.fchip-reset:hover { color: var(--fx-ink); }
@keyframes chipIn { from { opacity: 0; transform: scale(.9); } to { opacity: 1; transform: none; } }
#empty-results .btn { margin-top: 16px; }
@media (prefers-reduced-motion: reduce) { .fchip { animation: none; } .filters-panel { transition: none; } }


/* ==========================================================================
   FICHE PRODUIT : FIL D'ARIANE, WHATSAPP, SIMILAIRES, PRÉVENEZ-MOI
   ========================================================================== */
/* ---------- Fil d'Ariane ---------- */
.produit-topline { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 20px; margin-bottom: 20px; }
.produit-topline .produit-back-link { margin-bottom: 0; }
.produit-crumbs { display: flex; align-items: center; gap: 10px; font-family: var(--fx-f-mono); font-size: 11.5px; letter-spacing: .05em; text-transform: uppercase; color: var(--fx-muted); }
.produit-crumbs a:hover { color: var(--fx-ink); }
.produit-crumbs span { opacity: .5; }

/* ---------- Commander sur WhatsApp ---------- */
.produit-wa-btn { min-height: 52px; }
.produit-wa-btn[hidden] { display: none; }

/* ---------- Vous aimerez aussi ---------- */
.similar-section { margin-top: clamp(56px, 8vw, 96px); padding-top: clamp(32px, 5vw, 56px); border-top: 1px solid var(--fx-line); }
.similar-section[hidden] { display: none; }
.similar-section .section-head { margin-bottom: 24px; }
.similar-section .eyebrow { margin-bottom: 12px; }
/* Mobile et tablette : rangée qui défile à l'horizontale, cartes aimantées */
@media (max-width: 1119px) {
    .similar-grid {
        display: grid; grid-auto-flow: column; grid-template-columns: none;
        grid-auto-columns: minmax(200px, 46%); gap: 12px;
        overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
        margin-inline: calc(var(--fx-gutter) * -1); padding: 4px var(--fx-gutter) 12px;
        scroll-padding-inline: var(--fx-gutter);
    }
    .similar-grid::-webkit-scrollbar { display: none; }
    .similar-grid .product-card { scroll-snap-align: start; }
}
@media (min-width: 640px) and (max-width: 1119px) { .similar-grid { grid-auto-columns: minmax(220px, 31%); } }

/* ---------- Rupture : « Prévenez-moi » (produit-plus.js) ---------- */
.produit-actions { grid-template-columns: minmax(0, 1fr); }
.stock-alert { min-width: 0; border: 1px solid var(--fx-line-strong); border-radius: 20px; padding: 18px; background: var(--fx-surface); display: grid; gap: 16px; }
.sa-head { display: flex; gap: 14px; align-items: flex-start; }
.sa-head b { display: block; font-size: 16px; font-weight: 500; letter-spacing: -0.015em; }
.sa-head span:not(.sa-bell) { display: block; font-size: 13px; color: var(--fx-muted); margin-top: 2px; }
.sa-bell { flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%; background: #fbf1d9; color: #8a5a00; display: flex; align-items: center; justify-content: center; font-size: 16px; animation: saRing 3.2s ease-in-out 1s infinite; transform-origin: 50% 20%; }
@keyframes saRing { 0%, 86%, 100% { transform: none; } 88% { transform: rotate(14deg); } 91% { transform: rotate(-12deg); } 94% { transform: rotate(8deg); } 97% { transform: rotate(-4deg); } }
.sa-body { display: grid; gap: 14px; }
.sa-canal { width: 100%; min-width: 0; }
.sa-body input { width: 100%; min-width: 0; }
.sa-canal > * { flex: 1; justify-content: center; }
.sa-consent { display: flex; gap: 10px; align-items: flex-start; font-size: 12.5px; line-height: 1.5; color: var(--fx-ink-2); cursor: pointer; }
.sa-consent input { width: 18px; height: 18px; margin-top: 1px; accent-color: var(--fx-ink); flex-shrink: 0; }
.sa-consent a { color: var(--fx-ink); text-decoration: underline; text-underline-offset: 3px; }
.sa-msg { margin: 0; padding: 10px 12px; border-radius: 12px; background: var(--fx-danger-soft); color: var(--fx-danger); font-size: 13px; line-height: 1.5; }
.sa-msg a { color: inherit; font-weight: 600; text-decoration: underline; }
.sa-done { display: flex; gap: 14px; align-items: center; }
.sa-done p { margin: 0; font-size: 14px; line-height: 1.5; }
.sa-check { flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%; background: var(--fx-ok); color: #fff; display: flex; align-items: center; justify-content: center; }
.stock-alert.is-done .sa-bell { animation: none; }
@media (prefers-reduced-motion: reduce) { .sa-bell { animation: none; } }


/* ==========================================================================
   GUIDES D'ACHAT
   ========================================================================== */
.guide-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 22px; font-family: var(--fx-f-mono); font-size: 12px; color: var(--fx-muted); text-transform: uppercase; letter-spacing: .05em; }

/* Index */
.guides-list { display: grid; gap: 18px; padding-bottom: clamp(56px, 9vw, 112px); }
@media (min-width: 900px) { .guides-list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.guide-card {
    position: relative; display: flex; flex-direction: column; gap: 14px; min-height: 300px;
    padding: clamp(22px, 3vw, 30px); border-radius: var(--fx-r-lg); border: 1px solid var(--fx-line);
    background: var(--fx-surface); color: inherit; text-decoration: none; overflow: hidden;
    transition: border-color .3s ease, transform .5s var(--ease), box-shadow .5s var(--ease);
}
.guide-card:hover { border-color: var(--fx-ink); transform: translateY(-4px); box-shadow: var(--fx-shadow-2, 0 18px 40px -24px rgba(15, 23, 42, .35)); }
.guide-card .guide-num { font-family: var(--fx-f-mono); font-size: 12px; color: var(--fx-muted); }
.guide-card h2 { font-size: clamp(22px, 2.4vw, 28px); letter-spacing: -0.035em; line-height: 1.1; }
.guide-card h2 em { font-family: var(--fx-f-serif); font-style: italic; font-weight: 400; color: var(--fx-cobalt); letter-spacing: -0.01em; }
.guide-card p { margin: 0; color: var(--fx-muted); font-size: 14.5px; line-height: 1.55; }
.guide-card .guide-go { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; }
.guide-card .guide-go i { transition: transform .35s var(--ease); }
.guide-card:hover .guide-go i { transform: translateX(4px); }
.guide-card::after {
    content: ""; position: absolute; right: -40px; top: -40px; width: 140px; height: 140px; border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 145, 234, .12), transparent 70%); transition: transform .6s var(--ease);
}
.guide-card:hover::after { transform: scale(1.6); }

/* Article */
.guide-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; padding-bottom: clamp(56px, 9vw, 112px); }
.guide-layout > * { min-width: 0; }
@media (min-width: 1000px) { .guide-layout { grid-template-columns: 220px minmax(0, 1fr); gap: 72px; } }
.guide-toc { font-size: 13.5px; }
.guide-toc p { font-family: var(--fx-f-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--fx-muted); margin: 0 0 12px; }
.guide-toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; counter-reset: toc; }
.guide-toc li { counter-increment: toc; }
.guide-toc a { display: grid; grid-template-columns: 26px 1fr; padding: 6px 0; color: var(--fx-muted); transition: color .2s ease; }
.guide-toc a::before { content: counter(toc, decimal-leading-zero); font-family: var(--fx-f-mono); font-size: 11px; padding-top: 2px; }
.guide-toc a:hover, .guide-toc a.is-active { color: var(--fx-ink); }
@media (min-width: 1000px) { .guide-toc { position: sticky; top: calc(var(--fx-nav-h) + 32px); align-self: start; } }
@media (max-width: 999px) { .guide-toc { border: 1px solid var(--fx-line); border-radius: 18px; padding: 16px 18px; background: var(--fx-surface); } }

.guide-body { max-width: 70ch; font-size: 17px; line-height: 1.7; color: var(--fx-ink-2); }
.guide-body > p:first-child { font-size: 19px; color: var(--fx-ink); }
.guide-body h2 { margin: 56px 0 16px; font-size: clamp(24px, 3vw, 32px); letter-spacing: -0.035em; line-height: 1.15; color: var(--fx-ink); scroll-margin-top: calc(var(--fx-nav-h) + 24px); }
.guide-body h2:first-of-type { margin-top: 40px; }
.guide-body h3 { margin: 30px 0 8px; font-size: 18px; letter-spacing: -0.02em; color: var(--fx-ink); }
.guide-body p { margin: 0 0 16px; }
.guide-body ul, .guide-body ol { margin: 0 0 18px; padding-left: 1.2em; }
.guide-body li { margin-bottom: 8px; }
.guide-body li::marker { color: var(--fx-muted); }
.guide-body strong { color: var(--fx-ink); font-weight: 600; }
.guide-body a:not(.btn) { color: var(--fx-cobalt); text-decoration: underline; text-underline-offset: 3px; }
.guide-body code { font-family: var(--fx-f-mono); font-size: .85em; background: var(--fx-paper-2); padding: 2px 6px; border-radius: 6px; }

.guide-tip { margin: 26px 0; padding: 18px 20px; border-radius: 18px; background: var(--fx-surface); border: 1px solid var(--fx-line); font-size: 15.5px; }
.guide-tip b { display: block; margin-bottom: 4px; font-family: var(--fx-f-mono); font-size: 11px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--fx-cobalt); }
.guide-tip p:last-child { margin: 0; }

.guide-table-wrap { overflow-x: auto; margin: 22px 0 26px; border: 1px solid var(--fx-line); border-radius: 18px; background: var(--fx-surface); }
.guide-table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 14.5px; line-height: 1.45; }
.guide-table th, .guide-table td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--fx-line); vertical-align: top; }
.guide-table thead th { font-family: var(--fx-f-mono); font-size: 11px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--fx-muted); }
.guide-table tbody tr:last-child td { border-bottom: 0; }
.guide-table td:first-child { color: var(--fx-ink); font-weight: 500; }

.guide-shop { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 8px; }
.guide-shop a {
    display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px; border-radius: 999px;
    border: 1px solid var(--fx-line-strong); background: var(--fx-surface); color: var(--fx-ink) !important; text-decoration: none !important; font-size: 14px;
    transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.guide-shop a:hover { background: var(--fx-ink); border-color: var(--fx-ink); color: var(--fx-paper) !important; }
.guide-shop a i { font-size: 12px; }

.guide-end { margin-top: 56px; padding: clamp(22px, 4vw, 36px); border-radius: var(--fx-r-lg); background: var(--fx-ink); color: var(--fx-paper); }
.guide-end h2 { margin: 0 0 10px; color: var(--fx-paper); font-size: clamp(22px, 3vw, 30px); letter-spacing: -0.035em; }
.guide-end h2 em { font-family: var(--fx-f-serif); font-style: italic; font-weight: 400; color: var(--fx-amber); }
.guide-end p { color: rgba(248, 250, 252, .7); margin: 0 0 20px; font-size: 15.5px; }
.guide-end .btn-row { display: flex; flex-wrap: wrap; gap: 10px; }
.guide-end .btn-ghost { color: var(--fx-paper); border-color: rgba(248, 250, 252, .3); }

.guide-next { display: grid; gap: 12px; margin-top: 40px; }
@media (min-width: 700px) { .guide-next { grid-template-columns: 1fr 1fr; } }
.guide-next a { display: grid; gap: 6px; padding: 18px 20px; border-radius: 18px; border: 1px solid var(--fx-line); background: var(--fx-surface); color: var(--fx-ink) !important; text-decoration: none !important; transition: border-color .2s ease; }
.guide-next a:hover { border-color: var(--fx-ink); }
.guide-next span { font-family: var(--fx-f-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--fx-muted); }
@media (prefers-reduced-motion: reduce) { .guide-card, .guide-card::after { transition: none; } }

/* ==========================================================================
   AJUSTEMENTS AU DESIGN D'ORIGINE
   ========================================================================== */
/* Boutons : bleu nuit pour les actions, or pour l'action principale */
.btn, .btn:hover, .btn:focus { font-family: var(--fx-f-sans); font-weight: 600; text-decoration: none; }
a.btn-wa, a.btn-wa:hover { color: #06331a; }
a.btn-ink, a.btn-ink:hover { color: #fff; }

/* Boutique : grille à côté du panneau de filtres */
@media (min-width: 1000px) { .shop-layout .product-grid { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 22px; } }
.shop-layout .results-counter { margin-bottom: 0; }

/* Cartes : « Ajouter au panier » en jaune ACF (demande du 20 oct.) ; le design d'origine
   impose le bleu nuit avec !important, d'où la même priorité ici. Survol : bleu nuit. */
.product-card .add-to-cart-btn:not(:disabled):not(.disabled) { background-color: var(--fx-amber) !important; color: #1a1200 !important; }
.product-card .add-to-cart-btn:not(:disabled):not(.disabled):hover { background-color: var(--fx-navy) !important; color: #fff !important; }

/* Cartes dessinées par vitrine.js (favoris, similaires) : même rendu que celles de la boutique */
.product-card .product-brand { display: block; font-size: 11.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #64748b; margin-bottom: 4px; }
.product-card .current-price { font-family: var(--font-display, 'Outfit', sans-serif); font-size: var(--text-lg, 18.4px); font-weight: 700; color: var(--text-main, #0f172a); }

/* Barre du comparateur et tableau : boutons et liens sans styles par défaut */
.compare-bar .cb-clear { background: transparent !important; border: 0 !important; color: rgba(248, 250, 252, .7) !important; text-decoration: underline; padding: 0 4px; }
.compare-bar .cb-clear:hover { color: #fff !important; }
.cmp-name, .cmp-img { text-decoration: none; color: var(--fx-ink); }
.cmp-name:hover { color: var(--fx-cobalt-ink); }

/* Barre de navigation d'origine sur téléphone : recherche et favoris passent par le menu latéral */
@media (max-width: 640px) { .nav-actions .fx-nav-icon, .nav-icons .fx-fav-link { display: none !important; } }

/* Fiche produit : champ du formulaire « Prévenez-moi » (hors des nouvelles pages) */
.produit-content > *, .produit-buybox, .produit-info { min-width: 0; }
.stock-alert { min-width: 0; max-width: 100%; }
.stock-alert .sa-canal { display: flex; width: 100%; }
.stock-alert .sa-canal > * { flex: 1 1 0; min-width: 0; justify-content: center; }
.stock-alert .field { display: grid; gap: 6px; }
.stock-alert .field label { font-size: 13.5px; font-weight: 600; color: var(--fx-ink-2); }
.stock-alert .field input { width: 100%; min-height: 46px; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--fx-line-strong); background: #fff; font-size: 15px; font-family: var(--fx-f-sans); }
.stock-alert .field input:focus { outline: none; border-color: var(--fx-navy); box-shadow: 0 0 0 4px rgba(15, 23, 42, .08); }

/* Guides : sommaire et bandeau */
.guide-toc a { text-decoration: none; }
.fx-page .about-hero .back-link { display: inline-flex; margin-right: 0; text-decoration: none; }
.fx-page .about-hero .back-link + .tag { display: table; margin: 14px auto 16px; }
.fx-page .about-hero .hero-meta span + span::before { content: " · "; }
.guide-next a span, .guide-card .guide-num { font-family: var(--fx-f-sans); }

/* Fiche produit : « Vous aimerez aussi » sous la fiche d'origine */
.fx-similar { margin-top: 48px; padding-top: 40px; border-top: 1px solid var(--fx-line); }
.fx-section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 20px; margin-bottom: 22px; }
.fx-section-head h2 { font-family: var(--fx-f-serif); font-size: 26px; color: var(--fx-ink); }
.fx-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; color: var(--fx-ink); text-decoration: none; border-bottom: 2px solid var(--fx-amber); padding-bottom: 2px; }
.fx-link:hover { color: var(--fx-ink); gap: 12px; }

/* Bandeau d'origine des nouvelles pages : mot accentué en or */
.about-hero h1 em { font-style: normal; color: var(--fx-amber); }

/* Mes commandes : lien vers le suivi */
.order-track-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; font-size: 13.5px; font-weight: 600; color: #0f172a; text-decoration: none; border-bottom: 2px solid var(--fx-amber); padding-bottom: 2px; }

/* Accueil : lien favoris dans la barre d'origine (.nav-icons) */
.nav-icons .fx-fav-link { position: relative; }
.nav-icons .fav-badge { position: absolute; top: -8px; right: -10px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--fx-amber); color: #1a1200; font-size: 10.5px; font-weight: 700; display: none; align-items: center; justify-content: center; line-height: 1; }
.btn-ink { background: var(--fx-navy); color: #fff; }
.btn-ink:hover { background: var(--fx-navy-2); color: #fff; }
.btn-gold { background: var(--fx-amber); color: #1a1200; }
.btn-gold:hover { background: var(--fx-amber-hover); }
.btn-ghost { color: var(--fx-ink); }

/* Pas d'italique « éditorial » dans le design d'origine : accents en or */
.fx-page em, .search-overlay em, .guide-card h2 em, .guide-end h2 em { font-style: normal; }
.guide-card h2 em { color: var(--fx-cobalt-ink); }
.guide-end h2 em { color: var(--fx-amber); }
.eyebrow::before { background: var(--fx-amber); }

/* Nouvelles pages : contenu sous le bandeau d'origine (.about-hero) */
.fx-page { background: var(--fx-paper); color: var(--fx-ink); font-family: var(--fx-f-sans); }
.fx-page h1, .fx-page h2, .fx-page h3 { font-family: var(--fx-f-serif); }
.fx-main { width: 100%; max-width: var(--fx-maxw); margin: 0 auto; padding: 40px var(--fx-gutter) 72px; }
.fx-page .about-hero .back-link { color: #cbd5e1; margin-bottom: 14px; }
.fx-page .about-hero .back-link:hover { color: #fff; }
.fx-page .about-hero .hero-meta { margin-top: 14px; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: #94a3b8; }

/* Icônes ajoutées dans la barre de navigation d'origine (recherche, favoris) */
.nav-actions .fx-nav-icon { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; margin-right: 6px; color: #fff; font-size: 19px; border-radius: 50%; transition: background-color .2s ease, color .2s ease; }
.nav-actions .fx-nav-icon:hover { color: var(--fx-amber); background: rgba(255, 255, 255, .06); }
.nav-actions .fav-badge { position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--fx-amber); color: #1a1200; font-size: 10.5px; font-weight: 700; display: none; align-items: center; justify-content: center; line-height: 1; }
@media (max-width: 480px) { .nav-actions .fx-nav-icon { width: 34px; height: 34px; margin-right: 2px; font-size: 17px; } }

/* Liens ajoutés au pied de page d'origine */
.fx-footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; margin-bottom: 12px; font-size: 13.5px; }
.fx-footer-links a, .fx-footer-links button { color: #cbd5e1; text-decoration: none; background: none; border: 0; font: inherit; cursor: pointer; }
.fx-footer-links a:hover, .fx-footer-links button:hover { color: var(--fx-amber); }
.fx-footer-links i { margin-right: 6px; color: var(--fx-amber); }

/* Bouton « Installer l'application » dans le menu latéral d'origine */
.sidebar .pwa-install { margin: 18px 20px 0; padding: 10px 16px; border-radius: 999px; border: 1px solid rgba(255, 179, 0, .5); color: var(--fx-amber); background: transparent; font-weight: 600; cursor: pointer; display: inline-flex; gap: 8px; align-items: center; text-decoration: none; }
