/* JaayAll — surcharge Bootstrap 5.3 */
:root {
    --z-teal: #0f5663;
    --z-teal-dark: #0a3f4a;
    --z-yellow: #ffd500;
    --z-yellow-dark: #e6bf00;
    --z-red: #e3262e;

    --bs-primary: var(--z-teal);
    --bs-primary-rgb: 15, 86, 99;
    --bs-link-color: var(--z-teal);
    --bs-link-color-rgb: 15, 86, 99;
    --bs-link-hover-color: var(--z-teal-dark);
    --bs-body-bg: #f7f8fa;
    --bs-body-font-family: 'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
    --bs-body-color: #1f2a30;
}

.btn-primary {
    --bs-btn-bg: var(--z-teal);
    --bs-btn-border-color: var(--z-teal);
    --bs-btn-hover-bg: var(--z-teal-dark);
    --bs-btn-hover-border-color: var(--z-teal-dark);
    --bs-btn-active-bg: var(--z-teal-dark);
    --bs-btn-active-border-color: var(--z-teal-dark);
}
.btn-outline-primary {
    --bs-btn-color: var(--z-teal);
    --bs-btn-border-color: var(--z-teal);
    --bs-btn-hover-bg: var(--z-teal);
    --bs-btn-hover-border-color: var(--z-teal);
    --bs-btn-active-bg: var(--z-teal);
}
.btn-warning {
    --bs-btn-color: var(--z-teal-dark);
    --bs-btn-bg: var(--z-yellow);
    --bs-btn-border-color: var(--z-yellow);
    --bs-btn-hover-color: var(--z-teal-dark);
    --bs-btn-hover-bg: var(--z-yellow-dark);
    --bs-btn-hover-border-color: var(--z-yellow-dark);
    --bs-btn-active-color: var(--z-teal-dark);
    --bs-btn-active-bg: var(--z-yellow-dark);
    --bs-btn-active-border-color: var(--z-yellow-dark);
    font-weight: 600;
}
.page-item.active .page-link { background: var(--z-teal); border-color: var(--z-teal); }
.page-link { color: var(--z-teal); }

/* Barre supérieure + en-tête */
.topbar { background: var(--z-teal); color: #fff; padding: .45rem 0; }
.site-header { box-shadow: 0 1px 0 rgba(0, 0, 0, .06); z-index: 1020; }
.logo { height: 44px; width: auto; }
.search-form { display: flex; max-width: 640px; border: 1px solid #dfe3e6; border-radius: .6rem; background: #fff; }
.search-form .form-control { border: 0; box-shadow: none; border-radius: .6rem 0 0 .6rem; }
.search-form .btn { border-radius: 0 .6rem .6rem 0; padding-inline: 1.1rem; }
.header-action { display: flex; align-items: center; gap: .4rem; color: var(--bs-body-color); font-size: .9rem; }
.header-action[title] { cursor: not-allowed; opacity: .7; }
.cart-badge { position: absolute; top: -8px; right: -10px; background: var(--z-yellow); color: var(--z-teal-dark); font-size: .65rem; }
.main-nav a { color: var(--bs-body-color); text-decoration: none; font-size: .9rem; font-weight: 500; padding-bottom: .35rem; border-bottom: 3px solid transparent; }
.main-nav a:hover, .main-nav a.active { color: var(--z-teal); border-bottom-color: var(--z-yellow); }
.main-nav .dropdown-toggle::after { vertical-align: .15em; }

/* Hero */
.hero { position: relative; overflow: hidden; border-radius: 1rem; background: var(--z-teal); color: #fff; min-height: 340px; padding: 2.5rem; }
.hero-shape { position: absolute; top: 0; bottom: 0; }
.hero-shape-yellow { right: 0; width: 52%; background: var(--z-yellow); clip-path: polygon(30% 0, 100% 0, 100% 100%, 0 100%); }
.hero-shape-red { right: 38%; width: 14%; background: var(--z-red); clip-path: polygon(45% 0, 100% 0, 35% 100%, 0 100%); }
.hero-text { position: relative; z-index: 2; }
.hero-kicker { color: var(--z-yellow); font-weight: 700; letter-spacing: .05em; font-size: .85rem; }
.hero h1 { font-weight: 800; font-size: clamp(1.7rem, 4vw, 2.8rem); margin: .6rem 0 1rem; line-height: 1.15; }
.hero h1 span { color: var(--z-yellow); }
.hero p { opacity: .95; }
.hero-cta { border-radius: 2rem; }
.hero-visual { position: relative; z-index: 2; justify-content: center; align-items: flex-end; gap: 1rem; min-height: 240px; color: var(--z-teal-dark); }
.hero-visual .bi-phone { font-size: 7rem; color: #1f3b5c; }
.hero-visual .bi-headphones { font-size: 9rem; color: #111; }
.hero-visual .bi-cup-hot { font-size: 7rem; color: #222; }
.hero-slogan { position: absolute; top: 0; right: 1rem; transform: rotate(-8deg); font-style: italic; font-weight: 600; text-align: right; line-height: 1.25; color: var(--z-teal-dark); }

/* Catégories */
.category-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: .25rem; background: #fff; border-radius: .9rem; padding: .75rem; box-shadow: 0 2px 10px rgba(15, 86, 99, .06); }
.category-tile { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .4rem; padding: .75rem .4rem; border-radius: .6rem; color: var(--z-teal); text-decoration: none; font-size: .8rem; font-weight: 500; transition: background .15s; }
.category-tile i { font-size: 2rem; color: var(--z-teal); }
.category-tile span { color: var(--bs-body-color); }
.category-tile:hover { background: #f1f7f8; }

/* Titres de section */
.section-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 1rem; }
.section-head h2, .page-title { color: var(--z-teal); font-weight: 700; font-size: 1.5rem; margin: 0; }
.section-head a { color: var(--z-teal); font-weight: 600; text-decoration: none; font-size: .9rem; }

/* Cartes produit */
.product-card { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid #edf0f2; border-radius: .9rem; padding: 1rem; transition: box-shadow .2s, transform .2s; }
.product-card:hover { box-shadow: 0 8px 24px rgba(15, 86, 99, .12); transform: translateY(-2px); }
.badge-discount { position: absolute; top: .75rem; left: .75rem; z-index: 2; background: var(--z-red); font-size: .75rem; border-radius: 2rem; padding: .35em .7em; }
.wish { background: none; border: 0; position: absolute; top: .75rem; right: .85rem; z-index: 2; color: #6b7780; cursor: pointer; }
.wish:hover { color: var(--z-red); }
.product-visual { display: flex; align-items: center; justify-content: center; height: 170px; margin-bottom: .75rem; border-radius: .7rem; background: linear-gradient(135deg, #eef6f7 0%, #fff8cc 100%); }
.product-visual i { font-size: 4.5rem; color: var(--z-teal); }
.product-visual img { max-height: 100%; max-width: 100%; object-fit: contain; }
.product-visual-lg { height: 360px; }
.product-visual-lg i { font-size: 9rem; }
.product-name { font-size: .92rem; font-weight: 600; color: var(--bs-body-color); margin: 0 0 .1rem; min-height: 2.4em; }
.product-brand { font-size: .78rem; color: #8a959c; }
.rating { color: #f5a623; font-size: .75rem; margin: .2rem 0; }
.rating .text-muted { font-size: .72rem; }
.product-price { margin: .3rem 0 .7rem; }
.product-price strong { color: var(--z-red); font-size: 1.05rem; }
.product-price s { color: #9aa5ab; font-size: .78rem; margin-left: .4rem; white-space: nowrap; }
.product-price-lg strong { font-size: 1.8rem; }
.btn-add { font-size: .85rem; border-radius: .5rem; }

/* Bandeau de confiance */
.trust-banner { background: var(--z-teal); color: #fff; border-radius: .9rem; padding: 1.25rem 1.5rem; border-right: 14px solid var(--z-yellow); }
.trust-banner i { font-size: 2.2rem; color: var(--z-yellow); }
.trust-banner small { opacity: .85; }

/* Filtres */
.chips { display: flex; gap: .5rem; overflow-x: auto; padding-bottom: .25rem; }
.chip { white-space: nowrap; padding: .4rem .9rem; border-radius: 2rem; background: #fff; border: 1px solid #dfe3e6; color: var(--bs-body-color); text-decoration: none; font-size: .85rem; }
.chip:hover { border-color: var(--z-teal); }
.chip.active { background: var(--z-teal); border-color: var(--z-teal); color: #fff; }
.qty-input { width: 80px; }

/* Panier */
.cart-line { display: flex; gap: 1rem; align-items: flex-start; background: #fff; border: 1px solid #edf0f2; border-radius: .9rem; padding: 1rem; margin-bottom: .75rem; }
.cart-thumb { width: 72px; height: 72px; flex: none; display: flex; align-items: center; justify-content: center; border-radius: .6rem; background: linear-gradient(135deg, #eef6f7, #fff8cc); font-size: 2rem; color: var(--z-teal); }
.cart-summary { background: #fff; border: 1px solid #edf0f2; border-radius: .9rem; padding: 1.25rem; position: sticky; top: 130px; }

/* Pied de page */
.site-footer { background: var(--z-teal-dark); color: #fff; }
.site-footer a { color: rgba(255, 255, 255, .75); text-decoration: none; }
.site-footer a:hover { color: var(--z-yellow); }
.site-footer .logo { background: #fff; border-radius: .5rem; padding: .25rem .5rem; }

/* Navigation mobile fixe */
.mobile-nav { position: fixed; bottom: 0; left: 0; right: 0; z-index: 1030; display: flex; justify-content: space-around; background: #fff; border-top: 1px solid #e3e6e8; padding: .4rem 0 .5rem; }
.mobile-nav a, .mobile-nav span { display: flex; flex-direction: column; align-items: center; font-size: .68rem; color: #6b7780; text-decoration: none; gap: .1rem; }
.mobile-nav i { font-size: 1.25rem; }
.mobile-nav a.active { color: #d98e00; }
.mobile-nav .disabled { opacity: .5; }
.mobile-nav .cart-badge { top: -4px; right: 2px; }

@media (max-width: 991.98px) {
    body { padding-bottom: 64px; }
    .logo { height: 38px; }
    .hero { padding: 1.5rem; min-height: 0; }
    .hero-shape-yellow { top: auto; right: 0; width: 100%; height: 30%; clip-path: polygon(0 55%, 100% 0, 100% 100%, 0 100%); }
    .hero-shape-red { display: none; }
    .hero-text { padding-bottom: 2.5rem; }
    .product-visual-lg { height: 240px; }
    .cart-summary { position: static; }
}

/* Authentification */
.auth-body { background: linear-gradient(180deg, #eef6f7 0%, var(--bs-body-bg) 60%); min-height: 100vh; }
.auth-card { max-width: 440px; background: #fff; border-radius: 1rem; padding: 2rem; box-shadow: 0 8px 30px rgba(15, 86, 99, .1); }

/* Administration */
.admin-body { background: #f1f4f6; }
.admin-sidebar { background: var(--z-teal-dark); min-height: 100vh; width: 240px; flex: none; }
.admin-sidebar a { display: flex; align-items: center; gap: .6rem; color: rgba(255, 255, 255, .8); padding: .65rem 1.25rem; text-decoration: none; font-size: .92rem; }
.admin-sidebar a:hover, .admin-sidebar a.active { background: rgba(255, 255, 255, .08); color: var(--z-yellow); }
.admin-thumb { width: 44px; height: 44px; border-radius: .5rem; background: linear-gradient(135deg, #eef6f7, #fff8cc); display: inline-flex; align-items: center; justify-content: center; color: var(--z-teal); overflow: hidden; }
.admin-thumb img { width: 100%; height: 100%; object-fit: cover; }
.stat-card { background: #fff; border-radius: .9rem; padding: 1.1rem 1.25rem; box-shadow: 0 2px 10px rgba(15, 86, 99, .06); }
.stat-card .value { font-size: 1.6rem; font-weight: 700; color: var(--z-teal); }
@media (max-width: 991.98px) { .admin-sidebar { width: 100%; min-height: 0; } }

/* Stock, flash, galerie, avis */
.sold-out { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, .75); color: var(--z-red); font-weight: 700; letter-spacing: .05em; border-radius: .7rem; }
.product-visual { position: relative; }
.flash-chip { display: inline-block; background: var(--z-red); color: #fff; border-radius: 2rem; padding: .35rem .9rem; font-size: .85rem; font-weight: 600; }
.countdown { font-variant-numeric: tabular-nums; font-weight: 700; }
.gallery-thumbs { display: flex; gap: .5rem; flex-wrap: wrap; }
.gallery-thumb { width: 64px; height: 64px; padding: 2px; border: 2px solid #dfe3e6; border-radius: .5rem; background: #fff; }
.gallery-thumb.active, .gallery-thumb:hover { border-color: var(--z-teal); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: .35rem; }
.review { background: #fff; border: 1px solid #edf0f2; border-radius: .7rem; padding: .9rem 1rem; margin-bottom: .6rem; }
.star-input { display: inline-flex; flex-direction: row-reverse; gap: .15rem; }
.star-input input { display: none; }
.star-input label { font-size: 1.6rem; color: #d0d5d8; cursor: pointer; }
.star-input input:checked ~ label, .star-input label:hover, .star-input label:hover ~ label { color: #f5a623; }

/* Bandeaux flash / événements / marques */
.flash-banner { background: linear-gradient(120deg, var(--z-red), #b3121a); color: #fff; border-radius: 1rem; padding: 1.1rem 1.4rem; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .75rem; }
.flash-banner h2 { color: #fff; font-size: 1.35rem; margin: 0; }
.flash-banner .countdown { background: #fff; color: var(--z-red); border-radius: .5rem; padding: .25rem .6rem; }
.event-banner { border-radius: 1rem; padding: 1.5rem; color: #fff; display: flex; align-items: center; gap: 1rem; text-decoration: none; }
.event-banner i { font-size: 2.5rem; }
.event-banner.theme-teal { background: var(--z-teal); }
.event-banner.theme-dark { background: #1b2a30; }
.event-banner.theme-red { background: var(--z-red); }
.event-banner.theme-yellow { background: var(--z-yellow); color: var(--z-teal-dark); }
.brand-strip { display: flex; gap: .75rem; overflow-x: auto; padding-bottom: .25rem; }
.brand-pill { flex: none; background: #fff; border: 1px solid #edf0f2; border-radius: 2rem; padding: .45rem 1rem; text-decoration: none; color: var(--bs-body-color); font-weight: 600; font-size: .85rem; }
.brand-pill:hover { border-color: var(--z-teal); color: var(--z-teal); }
.filter-card { background: #fff; border: 1px solid #edf0f2; border-radius: .9rem; padding: 1rem; }

/* Suivi de commande */
.timeline { list-style: none; margin: 0; padding: 0 0 0 .5rem; }
.timeline li { position: relative; padding: 0 0 1.1rem 1.6rem; border-left: 2px solid #dfe3e6; }
.timeline li:last-child { border-left-color: transparent; padding-bottom: 0; }
.timeline li::before { content: ''; position: absolute; left: -7px; top: 2px; width: 12px; height: 12px; border-radius: 50%; background: #c5ccd0; }
.timeline li.current::before { background: var(--z-teal); box-shadow: 0 0 0 4px rgba(15, 86, 99, .2); }
.timeline li.done::before { background: #2e9e5b; }

/* WhatsApp + cookies */
.whatsapp-fab { position: fixed; right: 1rem; bottom: 5rem; z-index: 1035; width: 54px; height: 54px; border-radius: 50%; background: #25d366; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.7rem; box-shadow: 0 4px 14px rgba(0, 0, 0, .25); text-decoration: none; }
.whatsapp-fab:hover { color: #fff; filter: brightness(.95); }
@media (min-width: 992px) { .whatsapp-fab { bottom: 1.5rem; } }
.cookie-banner { position: fixed; left: 1rem; right: 1rem; bottom: 5rem; z-index: 1045; background: #1b2a30; color: #fff; border-radius: .8rem; padding: 1rem 1.25rem; display: none; box-shadow: 0 8px 30px rgba(0, 0, 0, .3); }
.cookie-banner.show { display: block; }
.cookie-banner a { color: var(--z-yellow); }
@media (min-width: 992px) { .cookie-banner { left: 1.5rem; right: auto; bottom: 1.5rem; max-width: 460px; } }
.product-visual:has(> img) { background: #fff; }

/* Dropzone */
.dropzone { position: relative; border: 2px dashed #b9c4c9; border-radius: .8rem; background: #fafcfc; padding: 1rem; text-align: center; cursor: pointer; transition: border-color .15s, background .15s; }
.dropzone:hover, .dropzone.dz-over { border-color: var(--z-teal); background: #eef6f7; }
.dropzone.is-invalid { border-color: var(--bs-danger); }
.dropzone .dz-input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.dropzone .dz-message i { font-size: 2rem; color: var(--z-teal); }
.dz-previews { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; margin-top: .75rem; }
.dz-previews:empty { display: none; }
.dz-thumb { position: relative; width: 88px; height: 88px; border-radius: .5rem; overflow: hidden; border: 1px solid #dfe3e6; background: #fff; }
.dz-thumb img { width: 100%; height: 100%; object-fit: cover; }
.dz-thumb .dz-remove { position: absolute; top: 2px; right: 2px; width: 22px; height: 22px; border: 0; border-radius: 50%; background: rgba(0, 0, 0, .65); color: #fff; line-height: 1; font-size: .8rem; cursor: pointer; }
.existing-media { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: .75rem; }
.existing-media label { text-align: center; font-size: .75rem; cursor: pointer; }
.existing-media img { display: block; width: 88px; height: 88px; object-fit: cover; border-radius: .5rem; border: 1px solid #dfe3e6; margin-bottom: .2rem; }

/* Carrousel de bannières */
.banner-carousel { border-radius: 1rem; overflow: hidden; position: relative; background: var(--z-teal-dark); }
.banner-carousel img { width: 100%; height: clamp(150px, 28vw, 340px); object-fit: cover; display: block; }
.banner-caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.25rem 1.5rem; color: #fff; background: linear-gradient(0deg, rgba(0, 0, 0, .65), transparent); }
.banner-caption h1, .banner-caption h2 { margin: 0; font-size: 1.5rem; }

/* Logos, photos, boutiques */
.brand-logo { height: 72px; width: auto; max-width: 150px; object-fit: contain; border-radius: .6rem; background: #fff; border: 1px solid #edf0f2; padding: .35rem; }
.brand-logo.avatar-fallback { width: 72px; border-radius: 50%; padding: 0; }
.brand-logo-sm { height: 28px; width: auto; max-width: 70px; object-fit: contain; border-radius: .3rem; margin-right: .4rem; vertical-align: middle; }
.category-photo { width: 56px; height: 56px; object-fit: cover; border-radius: 50%; }
.shop-card { display: flex; flex-direction: column; background: #fff; border: 1px solid #edf0f2; border-radius: .9rem; overflow: hidden; text-decoration: none; color: inherit; height: 100%; transition: box-shadow .2s, transform .2s; }
.shop-card:hover { box-shadow: 0 8px 24px rgba(15, 86, 99, .12); transform: translateY(-2px); color: inherit; }
.shop-card .cover { height: 110px; background: linear-gradient(135deg, var(--z-teal), var(--z-teal-dark)); }
.shop-card .cover img { width: 100%; height: 100%; object-fit: cover; }
.shop-card .avatar { width: 64px; height: 64px; margin: -32px 0 0 1rem; border-radius: 50%; border: 3px solid #fff; background: #fff; object-fit: cover; }
.shop-avatar-lg { width: 96px; height: 96px; border-radius: 50%; border: 4px solid #fff; object-fit: cover; background: #fff; margin-top: -48px; margin-left: 1.25rem; position: relative; }
.avatar-fallback { display: flex; align-items: center; justify-content: center; background: var(--z-teal); color: var(--z-yellow); font-weight: 700; }

.hero-carousel .carousel-item a { display: block; color: inherit; text-decoration: none; }
.hero-carousel img { height: clamp(170px, 32vw, 400px); }
.notification-unread { background: #eef6f7; }
.notif-badge { font-size: .65rem; }

/* 5 produits par ligne (Bootstrap n'a pas de colonne à 20 %) */
@media (min-width: 992px) { .col-lg-5th { flex: 0 0 auto; width: 20%; } }
@media (min-width: 1200px) { .col-xl-5th { flex: 0 0 auto; width: 20%; } }
.cart-thumb { overflow: hidden; background: #fff; border: 1px solid #edf0f2; text-decoration: none; }
.cart-thumb img { width: 100%; height: 100%; object-fit: contain; }

/* Graphiques du tableau de bord (CSS pur) */
.chart-bars { display: flex; align-items: flex-end; gap: 2px; height: 180px; padding-bottom: 1.4rem; position: relative; }
.chart-col { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; position: relative; min-width: 0; }
.chart-bar { width: 100%; background: var(--z-teal); border-radius: 3px 3px 0 0; min-height: 0; transition: opacity .15s; }
.chart-col:hover .chart-bar { opacity: .75; }
.chart-label { position: absolute; bottom: -1.4rem; font-size: .65rem; color: #6b7a80; white-space: nowrap; }
.hbar { height: 8px; background: #eef2f3; border-radius: 4px; overflow: hidden; }
.hbar > div { height: 100%; background: var(--z-yellow); border-radius: 4px; }

/* Pages d'erreur */
.error-body { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: #f4f8f9; }
.error-page { padding: 2rem 1rem; max-width: 640px; }
.error-logo { height: 44px; margin-bottom: 1.5rem; }
.error-icon { font-size: 3rem; color: var(--z-teal); line-height: 1; }
.error-code { font-size: clamp(4rem, 14vw, 7rem); font-weight: 800; line-height: 1; color: var(--z-yellow); text-shadow: 0 3px 0 var(--z-teal); margin: .25rem 0 .5rem; }

.code-input { letter-spacing: .6rem; font-weight: 700; font-variant-numeric: tabular-nums; }

/* Suggestions de recherche */
.search-form { position: relative; }
.suggest-box { position: absolute; top: calc(100% + 4px); left: 0; right: 0; z-index: 1050; background: #fff; border: 1px solid #dfe3e6; border-radius: .7rem; box-shadow: 0 10px 30px rgba(0, 0, 0, .12); overflow: hidden; max-height: 70vh; overflow-y: auto; }
.suggest-box[hidden] { display: none; }
.suggest-box a { display: flex; align-items: center; gap: .6rem; padding: .5rem .8rem; color: var(--bs-body-color); text-decoration: none; font-size: .9rem; }
.suggest-box a:hover, .suggest-box a:focus { background: #eef6f7; }
.suggest-box img { width: 36px; height: 36px; object-fit: contain; border-radius: .3rem; background: #fff; }
.suggest-box .suggest-title { padding: .4rem .8rem .1rem; font-size: .7rem; text-transform: uppercase; letter-spacing: .05em; color: #6b7a80; }
.suggest-box .suggest-price { margin-left: auto; font-weight: 600; color: var(--z-teal); white-space: nowrap; }
.suggest-box .suggest-fix { padding: .4rem .8rem; font-size: .8rem; background: #fff8cc; }

/* Comparateur */
.product-card .compare-btn { position: absolute; top: .55rem; right: 2.2rem; z-index: 2; }
.compare-table th { width: 160px; background: #f6fafb; font-weight: 600; font-size: .85rem; vertical-align: top; }
.compare-table td { min-width: 190px; vertical-align: top; }
.compare-table img { width: 100%; max-height: 140px; object-fit: contain; }
.compare-table .best { background: #eaf7ee; font-weight: 700; }

/* FAQ : réponses Markdown + éditeur */
.faq-answer > :last-child { margin-bottom: 0; }
.faq-answer img, .faq-answer video { max-width: 100%; height: auto; }
.faq-answer blockquote { border-left: 4px solid var(--z-yellow); padding-left: .8rem; color: #566; }
.faq-answer code { background: #f1f4f5; padding: .1rem .3rem; border-radius: .25rem; }
.md-editor .md-toolbar { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: .5rem; }
.md-editor .md-input { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .9rem; }
.md-editor .md-preview { min-height: 12rem; border: 1px solid #dfe3e6; border-radius: .5rem; padding: .75rem 1rem; background: #fff; }
.md-editor.is-invalid .md-input { border-color: var(--bs-danger); }
.md-pick-thumb { width: 48px; height: 48px; object-fit: cover; border-radius: .4rem; }
.md-pick-icon { font-size: 2rem; width: 48px; text-align: center; color: var(--z-teal); }

/* Galerie admin */
.gallery-thumb-box { display: flex; align-items: center; justify-content: center; height: 140px; background: #f4f8f9; border-radius: .75rem .75rem 0 0; overflow: hidden; }
.gallery-thumb-box img, .gallery-thumb-box video { max-width: 100%; max-height: 100%; object-fit: contain; }
.gallery-thumb-box i { font-size: 3rem; color: var(--z-teal); }
.gallery-thumb-lg { height: 260px; border-radius: .75rem; }
.dz-file { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100%; height: 100%; padding: .25rem; font-size: .65rem; line-height: 1.1; word-break: break-all; overflow: hidden; }
.dz-file i { font-size: 1.6rem; color: var(--z-teal); }

/* FAQ publique : groupes */
.faq-group-photo { width: 56px; height: 56px; object-fit: cover; border-radius: .75rem; flex-shrink: 0; }
.faq-group-fallback { display: inline-flex; align-items: center; justify-content: center; background: #eef6f7; color: var(--z-teal); font-size: 1.6rem; }

/* Modal de l'accueil */
.home-popup .modal-content { border: 0; border-radius: 1rem; }
.home-popup .home-popup-close { position: absolute; top: .75rem; right: .75rem; z-index: 2; background-color: rgba(255, 255, 255, .85); border-radius: 50%; padding: .5rem; }
.home-popup .home-popup-image { width: 100%; max-height: 320px; object-fit: cover; }

/* Variantes */
.variant-options { display: flex; flex-wrap: wrap; gap: .5rem; }

/* Blog */
.blog-card { display: block; background: #fff; border: 1px solid #e3e9eb; border-radius: .9rem; overflow: hidden; height: 100%; transition: box-shadow .15s, transform .15s; }
.blog-card:hover { box-shadow: 0 8px 24px rgba(15, 86, 99, .12); transform: translateY(-2px); }
.blog-cover { height: 170px; background: #eef6f7; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.blog-cover img { width: 100%; height: 100%; object-fit: cover; }
.blog-cover i { font-size: 3rem; color: var(--z-teal); }
.article-body { font-size: 1.05rem; line-height: 1.75; }
.article-body h2 { margin-top: 1.8rem; font-size: 1.4rem; }

/* Bandeau d'annonces défilantes */
.announce-bar { position: relative; height: 38px; overflow: hidden; font-size: .88rem; z-index: 1030; }
.announce-items { position: relative; height: 100%; }
.announce-item { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 0 2.5rem; text-align: center; opacity: 0; visibility: hidden; transition: opacity .5s; }
.announce-item.is-active { opacity: 1; visibility: visible; }
.announce-item a { color: inherit; text-decoration: none; font-weight: 600; }
.announce-item a:hover { text-decoration: underline; }
.announce-close { position: absolute; top: 0; right: .25rem; height: 100%; width: 2.2rem; border: 0; background: transparent; color: inherit; opacity: .7; z-index: 2; }
.announce-close:hover { opacity: 1; }
.announce-info { background: #0b6e99; color: #fff; }
.announce-success { background: #2e7d6b; color: #fff; }
.announce-warning { background: #ffc83d; color: #1b2a30; }
.announce-danger { background: #c62828; color: #fff; }
.announce-dark { background: #1b2a30; color: #fff; }
.announce-bar:has(.announce-info.is-active) .announce-close { color: #fff; }
.announce-bar:has(.announce-warning.is-active) .announce-close { color: #1b2a30; }
.announce-sample { display: inline-block; padding: .25rem .75rem; border-radius: .4rem; font-size: .85rem; }

/* Menu d'administration : groupes dépliables */
.admin-sidebar .menu-group { display: flex; align-items: center; gap: .6rem; width: 100%; border: 0; background: transparent; color: rgba(255, 255, 255, .85); padding: .65rem 1.25rem; font-size: .92rem; font-weight: 600; }
.admin-sidebar .menu-group:hover { background: rgba(255, 255, 255, .06); }
.admin-sidebar .menu-group.is-open { color: var(--z-yellow); }
.admin-sidebar .menu-group[aria-expanded="true"] .menu-chevron { transform: rotate(180deg); }
.admin-sidebar .menu-chevron { font-size: .7rem; transition: transform .2s; }
.admin-sidebar .menu-sub { background: rgba(0, 0, 0, .18); }
.admin-sidebar .menu-sub a { padding: .5rem 1.25rem .5rem 2.4rem; font-size: .88rem; }
@media (max-width: 991.98px) { .admin-sidebar { min-height: 0; } }

/* Barres de défilement : fines, aux couleurs du site (Firefox : scrollbar-*, Chrome/Edge/Safari : ::-webkit-scrollbar) */
* { scrollbar-width: thin; scrollbar-color: #9bb6bc transparent; }
html { scrollbar-color: var(--z-teal) #e8eff1; }
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-track { background: transparent; border-radius: 10px; }
*::-webkit-scrollbar-thumb { background-color: #9bb6bc; border-radius: 10px; border: 2px solid transparent; background-clip: content-box; }
*::-webkit-scrollbar-thumb:hover { background-color: var(--z-teal); }
*::-webkit-scrollbar-corner { background: transparent; }
html::-webkit-scrollbar { width: 12px; }
html::-webkit-scrollbar-track { background: #e8eff1; border-radius: 0; }
html::-webkit-scrollbar-thumb { background-color: var(--z-teal); border: 3px solid #e8eff1; border-radius: 10px; background-clip: border-box; }
html::-webkit-scrollbar-thumb:hover { background-color: var(--z-teal-dark); }

/* Menu d'administration et fenêtres sombres : barre claire sur fond sombre */
.admin-sidebar, .cookie-banner { scrollbar-color: rgba(255, 255, 255, .35) transparent; }
.admin-sidebar::-webkit-scrollbar-thumb, .cookie-banner::-webkit-scrollbar-thumb { background-color: rgba(255, 255, 255, .3); }
.admin-sidebar::-webkit-scrollbar-thumb:hover, .cookie-banner::-webkit-scrollbar-thumb:hover { background-color: var(--z-yellow); }
.admin-sidebar { overflow-y: auto; }

/* Zones de défilement internes (suggestions, tableaux, listes, modales) */
.suggest-box, .table-responsive, .modal-dialog-scrollable .modal-body, .category-strip { scrollbar-width: thin; }
@media (min-width: 992px) { .admin-sidebar { position: sticky; top: 0; height: 100vh; align-self: flex-start; } }

/* Loupe sur la photo principale du produit : zoom qui suit le curseur (souris) ou le doigt (tactile, un toucher active/désactive) */
.product-visual-lg { overflow: hidden; }
.product-visual-lg #gallery-main { transition: transform .12s ease-out; cursor: zoom-in; will-change: transform; touch-action: pan-y; }
.product-visual-lg.is-zoomed #gallery-main { transform: scale(2.4); cursor: zoom-out; transition: transform .08s linear; }
.product-visual-lg.is-zoomed .badge-discount, .product-visual-lg.is-zoomed .sold-out { opacity: 0; }
.product-visual .zoom-hint i { font-size: inherit; color: inherit; }
.zoom-hint { position: absolute; right: .6rem; bottom: .6rem; z-index: 2; background: rgba(0, 0, 0, .55); color: #fff; font-size: .75rem; padding: .2rem .6rem; border-radius: 2rem; pointer-events: none; transition: opacity .2s; }
.product-visual-lg.is-zoomed .zoom-hint { opacity: 0; }
