/*
 * Magik Wood Core — briques des deals, espace vendeur.
 * Couleurs : variables du thème Magik Wood, avec des valeurs de repli si un autre thème est actif.
 * Les composants mw-* de repli sont en :where() (spécificité nulle) : le thème garde toujours la main.
 */

/* Repli minimal des composants du design system (sans le thème Magik Wood) */
:where(.mw-btn) { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 24px; border-radius: 8px; border: 2px solid transparent; font-weight: 700; text-decoration: none; cursor: pointer; background: var(--red-ui, #e00000); color: var(--on-red, #fff); }
:where(.mw-btn-secondary) { background: transparent; color: var(--ink, #000); border-color: var(--ink, #000); }
:where(.mw-btn-ghost) { background: transparent; color: var(--ink, #000); }
:where(.mw-badge) { display: inline-flex; align-items: center; gap: 4px; padding: 4px 8px; border-radius: 4px; font-size: 12px; line-height: 16px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; background: var(--red-ui, #e00000); color: var(--on-red, #fff); }
:where(.mw-badge-ink) { background: var(--ink, #000); color: var(--paper, #fff); }
:where(.mw-badge-outline) { background: transparent; color: var(--ink, #000); box-shadow: inset 0 0 0 1px var(--line-strong, #8a8a8a); }
:where(.mw-card) { display: flex; flex-direction: column; background: var(--surface, #fff); border: 1px solid var(--line, #e5e5e5); border-radius: 8px; overflow: hidden; position: relative; }
:where(.mw-card-media) { position: relative; aspect-ratio: 16 / 10; background: var(--logo-black, #000); display: grid; place-items: center; overflow: hidden; }
:where(.mw-card-body) { display: flex; flex-direction: column; gap: 12px; padding: 24px; flex: 1; }
:where(.mw-stock-track) { height: 6px; border-radius: 4px; background: var(--surface-alt, #f5f5f5); overflow: hidden; }
:where(.mw-stock-fill) { height: 100%; background: var(--red-ui, #e00000); }

/* Grille de deals */
.mwc-grid { display: grid; gap: 24px; grid-template-columns: repeat(var(--mwc-cols, 3), minmax(0, 1fr)); }
@media (max-width: 1023px) { .mwc-grid { grid-template-columns: repeat(min(var(--mwc-cols, 3), 2), minmax(0, 1fr)); } }
@media (max-width: 640px) { .mwc-grid { grid-template-columns: minmax(0, 1fr); } }
.mwc-card .mw-card-media img { width: 100%; height: 100%; object-fit: cover; }
.mwc-card .mw-card-badges { position: absolute; top: 12px; left: 12px; z-index: 1; }
.mwc-card .mw-card-foot { display: flex; flex-direction: column; gap: 8px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line, #e5e5e5); }
.mwc-card.mwc-state-ended .mw-card-media, .mwc-card.mwc-state-soldout .mw-card-media { filter: grayscale(.8); opacity: .75; }
.mwc-empty { color: var(--ink-muted, #5c5c5c); padding: 24px 0; }

/* Badges */
.mwc-badges { display: flex; flex-wrap: wrap; gap: 8px; }
.mwc-loop-badges { position: absolute; top: 12px; left: 12px; z-index: 2; }
.woocommerce ul.products li.product { position: relative; }
.mwc-loop-vendor { margin: 0 24px 4px !important; font-size: 14px; color: var(--ink-muted, #5c5c5c); }
.mwc-loop-pitch { margin: 4px 24px 8px !important; font-size: 15px; line-height: 24px; color: var(--ink-muted, #5c5c5c); }
.mwc-loop-extra { padding: 8px 24px 0; display: flex; flex-direction: column; gap: 6px; }

/* Prix */
.mwc-price .mw-price-now small { font-size: .5em; font-weight: 700; margin-right: 4px; color: var(--ink-muted, #5c5c5c); }

/* Compte à rebours */
.mwc-countdown { margin: 16px 0; }
.mwc-countdown-label { margin: 0 0 8px; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-muted, #5c5c5c); }
.mwc-countdown-boxes { display: flex; gap: 8px; font-variant-numeric: tabular-nums; }
.mwc-countdown-boxes > div { min-width: 64px; padding: 8px 10px; text-align: center; border: 1px solid var(--line, #e5e5e5); border-radius: 8px; background: var(--surface, #fff); }
.mwc-countdown-boxes strong { display: block; font-family: var(--font-display, inherit); font-size: 26px; line-height: 30px; color: var(--ink, #000); }
.mwc-countdown-boxes span { font-size: 12px; color: var(--ink-muted, #5c5c5c); }
.mwc-countdown.is-urgent .mwc-countdown-boxes > div { border-color: var(--red-ui, #e00000); }
.mwc-countdown.is-urgent .mwc-countdown-boxes strong { color: var(--red-text, #d40000); }
.mwc-countdown-inline { margin: 0; font-size: 13px; line-height: 20px; color: var(--ink-muted, #5c5c5c); font-variant-numeric: tabular-nums; }
.mwc-countdown-inline.is-urgent span { color: var(--red-text, #d40000); font-weight: 700; }

/* Jauge */
.mwc-stock { display: flex; flex-direction: column; gap: 6px; margin: 8px 0; }
.mwc-stock .mw-stock-row { font-size: 13px; line-height: 20px; color: var(--ink-muted, #5c5c5c); }
.mwc-stock strong { color: var(--red-text, #d40000); }
.mwc-stock.is-low .mw-stock-fill { animation: mwc-low 1.6s ease-in-out infinite; }
@keyframes mwc-low { 50% { opacity: .55; } }

/* Encart d'achat */
.mwc-buybox { display: flex; flex-direction: column; gap: 12px; padding: 24px; margin: 16px 0 24px; border: 1px solid var(--line, #e5e5e5); border-radius: 16px; background: var(--surface, #fff); }
.mwc-buybox .mwc-cart form.cart { margin: 0 !important; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.mwc-buybox .mwc-cart .variations { margin-bottom: 8px; }
.mwc-buybox .mwc-cart .single_add_to_cart_button { flex: 1 1 auto; }
.mwc-buybox .is-disabled { opacity: .5; cursor: not-allowed; width: 100%; }
.mwc-trust { list-style: none; margin: 4px 0 0; padding: 12px 0 0; border-top: 1px solid var(--line, #e5e5e5); display: grid; gap: 6px; font-size: 14px; line-height: 22px; color: var(--ink-muted, #5c5c5c); }
.mwc-trust li { padding-left: 22px; position: relative; }
.mwc-trust li::before { content: ""; position: absolute; left: 2px; top: 7px; width: 10px; height: 6px; border-left: 2px solid var(--success, #15803d); border-bottom: 2px solid var(--success, #15803d); transform: rotate(-45deg); }
.mwc-trial { margin: 0; }
.mwc-trial > .mw-btn, .mwc-trial .ll-dl-main { width: 100%; }
.mwc-trial .ll-downloads { display: flex; flex-direction: column; gap: 6px; }
.mwc-by { margin: 0 0 4px; color: var(--ink-muted, #5c5c5c); }
.mwc-by a { color: inherit; font-weight: 700; }
.mwc-pitch { font-size: 18px; line-height: 28px; color: var(--ink-muted, #5c5c5c); margin: 0 0 12px; }
.mwc-platforms { font-size: 14px; color: var(--ink-muted, #5c5c5c); margin: 0 0 8px; }

/* Liste de souhaits */
.mwc-wish { gap: 8px; padding: 8px 12px; font-size: 14px; }
.mwc-wish.is-on { color: var(--red-text, #d40000); }

/* Avis */
.mwc-rating { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-size: 14px; color: var(--ink-muted, #5c5c5c); }
.mwc-rating strong { color: var(--ink, #000); }
.mwc-rating-empty { font-style: italic; }
.mwc-stars { --pct: calc(var(--rating) / 5 * 100%); display: inline-block; font-size: 18px; line-height: 1; letter-spacing: 2px; background: linear-gradient(90deg, var(--red-text, #d40000) var(--pct), var(--line-strong, #8a8a8a) var(--pct)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.mwc-stars::before { content: "★★★★★"; }

/* Inclus, idéal pour, FAQ */
.mwc-title { margin-top: 0; }
.mwc-features { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 10px; }
.mwc-features li { display: flex; gap: 10px; align-items: flex-start; }
.mwc-features svg { flex: none; margin-top: 4px; color: var(--success, #15803d); }
.mwc-ideal { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.mwc-eyebrow { display: block; margin: 0 0 8px; font-size: 12px; line-height: 16px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--red-text, #d40000); }
.mwc-ideal .mwc-eyebrow { width: 100%; }
.mwc-faq details { border-bottom: 1px solid var(--line, #e5e5e5); padding: 12px 0; }
.mwc-faq summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.mwc-faq summary::-webkit-details-marker { display: none; }
.mwc-faq summary::after { content: "+"; font-size: 20px; line-height: 1; color: var(--red-text, #d40000); }
.mwc-faq details[open] summary::after { content: "−"; }
.mwc-faq p { margin: 8px 0 0; color: var(--ink-muted, #5c5c5c); }

/* Vendeur */
.mwc-vendor-card { display: flex; gap: 16px; align-items: flex-start; padding: 24px; margin: 24px 0; border: 1px solid var(--line, #e5e5e5); border-radius: 16px; background: var(--surface, #fff); }
.mwc-vendor-card h3 { margin: 0 0 6px; }
.mwc-vendor-card p { margin: 0 0 6px; color: var(--ink-muted, #5c5c5c); }
.mwc-vendor-links a { font-weight: 700; color: var(--red-text, #d40000); }
.mwc-vendor-logo { width: 64px; height: 64px; border-radius: 16px; object-fit: cover; flex: none; }
.mwc-vendor-initials { display: grid; place-items: center; background: var(--logo-black, #000); color: var(--red, #f00); font-weight: 800; font-size: 22px; font-family: var(--font-display, inherit); }
.mwc-vendor-head { display: flex; gap: 24px; align-items: center; margin-bottom: 48px; flex-wrap: wrap; }
.mwc-vendor-head .mwc-vendor-logo { width: 96px; height: 96px; font-size: 32px; }
.mwc-vendor-head h1 { margin: 0 0 8px; }
.mwc-vendor-bio { max-width: 65ch; color: var(--ink-muted, #5c5c5c); }
.mwc-vendor-meta { color: var(--ink-muted, #5c5c5c); margin: 0; }
.mwc-mt { margin-top: 48px; }

/* Questions */
.mwc-qa { list-style: none; margin: 0 0 24px; padding: 0; }
.mwc-qa li { padding: 16px 0; border-bottom: 1px solid var(--line, #e5e5e5); }
.mwc-q, .mwc-a { margin: 0 0 6px; }
.mwc-q small { color: var(--ink-muted, #5c5c5c); }
.mwc-a { padding-left: 16px; border-left: 3px solid var(--red-ui, #e00000); color: var(--ink-muted, #5c5c5c); }

/* Formulaires */
.mwc-form { display: flex; flex-direction: column; gap: 10px; max-width: 720px; }
.mwc-form label { font-weight: 700; font-size: 14px; }
.mwc-form textarea, .mwc-form input[type=text], .mwc-form input[type=email], .mwc-form input[type=url], .mwc-form select { width: 100%; }
.mwc-form .mw-btn { align-self: flex-start; }
.mwc-field { margin: 0; display: flex; flex-direction: column; gap: 6px; }
.mwc-check label { font-weight: 400; display: flex; gap: 8px; align-items: flex-start; }
.mwc-hp { position: absolute !important; left: -9999px; }
.mwc-notice { padding: 12px 16px; border-left: 4px solid var(--success, #15803d); background: var(--surface-alt, #f5f5f5); border-radius: 4px; color: var(--ink, #000); }
.mwc-notice-error { border-left-color: var(--danger, #c2410c); }
.mwc-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.mwc-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 1px solid var(--line-strong, #8a8a8a); border-radius: 999px; font-weight: 400 !important; cursor: pointer; }
.mwc-chip:has(input:checked) { border-color: var(--red-ui, #e00000); color: var(--red-text, #d40000); }

/* Deal vedette */
.mwc-hero { margin: 24px 0; }
.mwc-hero-inner { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 32px; padding: 32px; align-items: center; }
@media (max-width: 860px) { .mwc-hero-inner { grid-template-columns: 1fr; padding: 20px; } }
.mwc-hero-media { aspect-ratio: 16 / 10; border-radius: 8px; overflow: hidden; background: var(--logo-black, #000); display: grid; place-items: center; }
.mwc-hero-media img { width: 100%; height: 100%; object-fit: cover; }
.mwc-hero-title { font-size: clamp(28px, 4vw, 40px); line-height: 1.15; margin: 12px 0 8px; }
.mwc-hero-pitch { font-size: 18px; line-height: 28px; color: var(--ink-muted, #5c5c5c); }
.mwc-hero-cta { margin: 16px 0 0; }

/* Espace vendeur */
.mwc-vdash section { margin: 0 0 48px; scroll-margin-top: 96px; }
.mwc-vnav { position: sticky; top: 72px; z-index: 5; display: flex; gap: 4px; flex-wrap: wrap; padding: 8px; margin-bottom: 24px; background: var(--surface-alt, #f5f5f5); border-radius: 8px; }
.admin-bar .mwc-vnav { top: 104px; }
.mwc-vnav a { padding: 6px 12px; border-radius: 4px; font-weight: 700; font-size: 14px; color: var(--ink, #000); text-decoration: none; }
.mwc-vnav a:hover { background: var(--surface, #fff); color: var(--red-text, #d40000); }
.mwc-kpis { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); margin: 16px 0; }
.mwc-kpis > div { padding: 16px; border: 1px solid var(--line, #e5e5e5); border-radius: 8px; background: var(--surface, #fff); }
.mwc-kpis > div > span { display: block; font-size: 13px; color: var(--ink-muted, #5c5c5c); }
.mwc-kpis strong { display: block; font-family: var(--font-display, inherit); font-size: 24px; line-height: 32px; color: var(--ink, #000); font-variant-numeric: tabular-nums; }
.mwc-kpis small { color: var(--ink-muted, #5c5c5c); }
.mwc-table-wrap { overflow-x: auto; position: relative; }
.mwc-table { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.mwc-table th, .mwc-table td { padding: 10px 12px; border-bottom: 1px solid var(--line, #e5e5e5); text-align: left; vertical-align: top; }
.mwc-table th { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-muted, #5c5c5c); }
.mwc-table tr.is-refund td { color: var(--danger, #c2410c); }
.mwc-pill { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--surface-alt, #f5f5f5); color: var(--ink, #000); }
.mwc-pill-live, .mwc-pill-available { background: color-mix(in srgb, var(--success, #15803d) 18%, transparent); color: var(--success, #15803d); }
.mwc-pill-ending { background: var(--red-ui, #e00000); color: var(--on-red, #fff); }
.mwc-pill-paid { background: var(--ink, #000); color: var(--paper, #fff); }
.mwc-pill-reversed, .mwc-pill-ended, .mwc-pill-soldout { color: var(--danger, #c2410c); }
.mwc-card-box { padding: 20px; border: 1px solid var(--line, #e5e5e5); border-radius: 8px; background: var(--surface, #fff); margin-bottom: 12px; max-width: none; }
.mwc-card-box h3 { margin: 0; }
.mwc-mono { font-family: var(--font-mono, monospace); }
.mwc-muted { color: var(--ink-muted, #5c5c5c); }
.mwc-vlogo { display: flex; gap: 16px; align-items: center; }
.mwc-vlogo label { display: flex; flex-direction: column; gap: 6px; }

@media (prefers-reduced-motion: reduce) { .mwc-stock.is-low .mw-stock-fill { animation: none; } }

/* Correctifs d'affichage */
.mwc-badge-dark { background: var(--logo-black, #000) !important; color: #fff !important; box-shadow: inset 0 0 0 1px rgba(255,255,255,.25); }
.mwc-price.mw-price-sm .mw-price-now { font-size: 22px; line-height: 28px; }
.mwc-price .mw-price-now { overflow-wrap: anywhere; }
.mwc-card .mw-card-title, .mwc-card p, .mwc-hero p, .mwc-hero h2, .mwc-buybox p { margin-top: 0; margin-bottom: 0; }
.mwc-card .mw-card-body > * + * , .mwc-card .mw-card-foot > * + * { margin-top: 0; }
.mw-prose .mwc-grid, .mw-prose .mwc-hero, .mw-prose .mwc-vdash { margin-top: 24px; }
.mwc-table .woocommerce-Price-amount, .mwc-kpis .woocommerce-Price-amount { white-space: nowrap; }
.mwc-buybox .stock { display: none; }
.woocommerce ul.products li.product.mwc-state-ended .button,
.woocommerce ul.products li.product.mwc-state-upcoming .button,
.woocommerce ul.products li.product.mwc-state-soldout .button { background: transparent !important; color: var(--ink, #000) !important; border: 2px solid var(--line-strong, #8a8a8a) !important; box-shadow: none !important; transform: none !important; }
.woocommerce ul.products li.product.mwc-state-ended img, .woocommerce ul.products li.product.mwc-state-soldout img { filter: grayscale(.8); opacity: .7; }
.mwc-loop-extra .mw-stock-row span { display: inline; }

/* =====================================================================
   1.1 — Sélecteur de devise
   ===================================================================== */
.mwc-fx { position: relative; display: inline-block; font-size: 14px; }
.mwc-fx summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 10px; border-radius: 8px; font-weight: 700; color: var(--ink, #000); border: 1px solid var(--line, #e5e5e5); font-variant-numeric: tabular-nums; }
.mwc-fx summary::-webkit-details-marker { display: none; }
.mwc-fx summary::after { content: ""; width: 6px; height: 6px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); }
.mwc-fx summary:hover, .mwc-fx[open] summary { border-color: var(--red-ui, #e00000); color: var(--red-text, #d40000); }
.mwc-fx ul { position: absolute; right: 0; top: calc(100% + 6px); z-index: 60; min-width: 240px; max-height: 60vh; overflow: auto; margin: 0; padding: 6px; list-style: none; background: var(--surface, #fff); border: 1px solid var(--line, #e5e5e5); border-radius: 8px; box-shadow: var(--shadow-pop, 0 12px 32px rgba(0,0,0,.18)); }
.mwc-fx a { display: flex; gap: 10px; align-items: baseline; padding: 8px 10px; border-radius: 4px; color: var(--ink, #000); text-decoration: none; }
.mwc-fx a span { color: var(--ink-muted, #5c5c5c); font-size: 13px; }
.mwc-fx a:hover, .mwc-fx a[aria-current] { background: var(--surface-alt, #f5f5f5); }
.mwc-fx a[aria-current] strong { color: var(--red-text, #d40000); }
.mwc-fx-full ul { position: static; box-shadow: none; }
.mwc-fx-note { font-size: 14px; color: var(--ink-muted, #5c5c5c); }

/* =====================================================================
   1.1 — Fiche deal
   ===================================================================== */
.mwc-deal { padding-block: 16px 64px; }
.mwc-deal-layout .mw-main { overflow: visible; }
.mwc-h2 { font-family: var(--font-display, inherit); font-size: clamp(24px, 3vw, 32px); line-height: 1.2; margin: 0 0 20px; letter-spacing: -.01em; }
.mwc-h3 { font-family: var(--font-display, inherit); font-size: 20px; line-height: 28px; margin: 0 0 12px; }
.mwc-crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; color: var(--ink-muted, #5c5c5c); margin: 8px 0 20px; }
.mwc-crumbs a { color: inherit; }
.mwc-crumbs [aria-current] { color: var(--ink, #000); font-weight: 700; }

.mwc-deal-hero { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(320px, 1fr); gap: 40px; align-items: start; }
@media (max-width: 960px) { .mwc-deal-hero { grid-template-columns: minmax(0, 1fr); gap: 24px; } }
.mwc-deal-side { display: flex; flex-direction: column; gap: 12px; }
@media (min-width: 961px) { .mwc-deal-side { position: sticky; top: calc(var(--header-h, 72px) + 16px); } }
.mwc-deal-title { font-family: var(--font-display, inherit); font-size: clamp(30px, 4vw, 44px); line-height: 1.1; letter-spacing: -.02em; margin: 0; }
.mwc-deal-pitch { font-size: 18px; line-height: 28px; color: var(--ink-muted, #5c5c5c); margin: 0; }
.mwc-deal-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; font-size: 14px; }
.mwc-deal-meta .mwc-by { margin: 0; }
.mwc-stars-line { display: inline-flex; align-items: center; gap: 6px; margin: 0; font-size: 14px; color: var(--ink-muted, #5c5c5c); text-decoration: none; }
.mwc-stars-line strong { color: var(--ink, #000); }
a.mwc-stars-line:hover span:last-child { text-decoration: underline; }
.mwc-stars-line .mwc-stars { font-size: 15px; }

/* Galerie */
.mwc-gallery-main { position: relative; aspect-ratio: 16 / 10; border-radius: 16px; overflow: hidden; background: var(--logo-black, #000); display: grid; place-items: center; border: 1px solid var(--line, #e5e5e5); }
.mwc-gallery-main > img, .mwc-gallery-img, .mwc-gallery-frame { width: 100%; height: 100%; object-fit: cover; border: 0; display: block; }
.mwc-gallery-empty .mwc-logo { width: 120px; height: 120px; }
.mwc-gallery-play { all: unset; cursor: pointer; position: absolute; inset: 0; display: grid; place-items: center; }
.mwc-gallery-play img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mwc-gallery-play:focus-visible { outline: 3px solid var(--focus, #2563eb); outline-offset: -3px; }
.mwc-play { position: relative; width: 72px; height: 72px; border-radius: 50%; background: var(--red-ui, #e00000); box-shadow: 0 0 0 8px rgba(224,0,0,.25), var(--glow-red, 0 0 24px rgba(255,0,0,.5)); transition: transform .2s; }
.mwc-play::after { content: ""; position: absolute; left: 29px; top: 22px; border-left: 22px solid #fff; border-top: 14px solid transparent; border-bottom: 14px solid transparent; }
.mwc-gallery-play:hover .mwc-play { transform: scale(1.08); }
.mwc-play-sm { position: absolute; width: 28px; height: 28px; box-shadow: none; }
.mwc-play-sm::after { left: 11px; top: 8px; border-left-width: 9px; border-top-width: 6px; border-bottom-width: 6px; }
.mwc-gallery-thumbs { display: flex; gap: 8px; margin-top: 12px; overflow-x: auto; padding-bottom: 4px; }
.mwc-thumb { all: unset; position: relative; flex: none; width: 88px; aspect-ratio: 16 / 10; border-radius: 8px; overflow: hidden; cursor: pointer; display: grid; place-items: center; background: var(--logo-black, #000); border: 2px solid transparent; opacity: .7; transition: opacity .2s, border-color .2s; }
.mwc-thumb img { width: 100%; height: 100%; object-fit: cover; }
.mwc-thumb:hover, .mwc-thumb.is-active { opacity: 1; border-color: var(--red-ui, #e00000); }
.mwc-thumb:focus-visible { outline: 3px solid var(--focus, #2563eb); outline-offset: 2px; }

/* Logos */
.mwc-logo { width: 56px; height: 56px; border-radius: 12px; object-fit: cover; flex: none; background: var(--logo-black, #000); }
.mwc-logo-initials { display: grid; place-items: center; color: var(--red, #f00); font-family: var(--font-display, inherit); font-weight: 800; font-size: 20px; letter-spacing: -.02em; }

/* Encart d'achat à formules */
.mwc-buy { display: flex; flex-direction: column; gap: 14px; padding: 24px; border: 1px solid var(--line, #e5e5e5); border-radius: 16px; background: var(--surface, #fff); box-shadow: var(--shadow-card, 0 8px 24px rgba(0,0,0,.06)); scroll-margin-top: calc(var(--header-h, 72px) + 80px); }
.mwc-buy > * { margin: 0 !important; }
.mwc-plans-form { display: flex; flex-direction: column; gap: 12px; margin: 0; }
.mwc-plans { border: 0; margin: 0; padding: 0; display: grid; gap: 8px; }
.mwc-plans legend { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-muted, #5c5c5c); padding: 0; margin-bottom: 8px; }
.mwc-plan { position: relative; display: flex; gap: 12px; align-items: center; padding: 14px 16px; border: 2px solid var(--line, #e5e5e5); border-radius: 12px; cursor: pointer; transition: border-color .15s, box-shadow .15s, background .15s; }
.mwc-plan:hover { border-color: var(--line-strong, #8a8a8a); }
.mwc-plan input { accent-color: var(--red-ui, #e00000); width: 18px; height: 18px; margin: 0; flex: none; }
.mwc-plan:has(input:checked) { border-color: var(--red-ui, #e00000); box-shadow: var(--glow-red-soft, 0 0 0 4px rgba(224,0,0,.12)); background: color-mix(in srgb, var(--red-ui, #e00000) 4%, var(--surface, #fff)); }
.mwc-plan:has(input:focus-visible) { outline: 3px solid var(--focus, #2563eb); outline-offset: 2px; }
.mwc-plan.is-disabled { opacity: .5; cursor: not-allowed; }
.mwc-plan-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.mwc-plan-head { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; }
.mwc-plan-head .mw-badge { font-size: 10px; padding: 2px 6px; }
.mwc-plan-desc { font-size: 13px; line-height: 18px; color: var(--ink-muted, #5c5c5c); }
.mwc-plan-price { display: flex; flex-direction: column; align-items: flex-end; text-align: right; font-variant-numeric: tabular-nums; }
.mwc-plan-price strong { font-family: var(--font-display, inherit); font-size: 20px; line-height: 24px; white-space: nowrap; }
.mwc-plan-price del { font-size: 13px; color: var(--ink-muted, #5c5c5c); white-space: nowrap; }
.mwc-plan-price small { font-size: 12px; color: var(--ink-muted, #5c5c5c); white-space: nowrap; }
.mwc-qty { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; font-size: 14px; }
.mwc-qty label { font-weight: 700; }
.mwc-qty input { width: 80px; }
.mwc-buy-btn { width: 100%; }
.mwc-buy .mwc-wish { align-self: center; }
.mwc-buy .mwc-trust { margin: 0; }
.mwc-buy-closed .mw-btn { width: 100%; }

/* L'essentiel + En bref */
.mwc-deal-overview { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(280px, 1fr); gap: 40px; margin-top: 64px; align-items: start; }
@media (max-width: 960px) { .mwc-deal-overview { grid-template-columns: minmax(0, 1fr); gap: 24px; margin-top: 40px; } }
.mwc-tldr .mwc-features { gap: 14px; font-size: 17px; line-height: 26px; }
.mwc-glance { padding: 24px; border-radius: 16px; background: var(--surface-alt, #f5f5f5); border: 1px solid var(--line, #e5e5e5); }
.mwc-glance dl { margin: 0; display: grid; gap: 0; }
.mwc-glance dl > div { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 12px; padding: 10px 0; border-top: 1px solid var(--line, #e5e5e5); }
.mwc-glance dl > div:first-child { border-top: 0; }
.mwc-glance dt { font-size: 13px; font-weight: 700; color: var(--ink-muted, #5c5c5c); }
.mwc-glance dd { margin: 0; font-size: 15px; }
.mwc-glance a { color: var(--red-text, #d40000); font-weight: 700; }

/* Blocs de fonctionnalités alternés */
.mwc-blocks { display: flex; flex-direction: column; gap: 64px; margin-top: 80px; }
.mwc-block { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 48px; align-items: center; }
.mwc-block:nth-child(even) .mwc-block-text { order: 2; }
.mwc-block.is-text { grid-template-columns: minmax(0, 1fr); max-width: 760px; }
@media (max-width: 860px) { .mwc-block { grid-template-columns: minmax(0, 1fr); gap: 24px; } .mwc-block:nth-child(even) .mwc-block-text { order: 0; } .mwc-blocks { gap: 48px; margin-top: 56px; } }
.mwc-block-num { font-family: var(--font-mono, monospace); font-size: 13px; font-weight: 700; color: var(--red-text, #d40000); letter-spacing: .1em; }
.mwc-block h3 { font-family: var(--font-display, inherit); font-size: clamp(22px, 2.6vw, 28px); line-height: 1.2; margin: 8px 0 16px; }
.mwc-block-media { border-radius: 16px; overflow: hidden; border: 1px solid var(--line, #e5e5e5); background: var(--logo-black, #000); }
.mwc-block-media img { display: block; width: 100%; height: auto; }

/* Comparatif */
.mwc-compare { margin-top: 80px; }
.mwc-compare table { width: 100%; min-width: 560px; border-collapse: separate; border-spacing: 0; font-size: 15px; }
.mwc-compare th, .mwc-compare td { padding: 14px 16px; border-bottom: 1px solid var(--line, #e5e5e5); text-align: center; vertical-align: middle; }
.mwc-compare tbody th { text-align: left; font-weight: 400; color: var(--ink, #000); }
.mwc-compare thead th { vertical-align: bottom; padding-top: 20px; }
.mwc-compare thead th strong { display: block; font-family: var(--font-display, inherit); font-size: 16px; }
.mwc-compare thead .mw-badge { margin-bottom: 8px; }
.mwc-compare-price { display: block; font-family: var(--font-display, inherit); font-size: 24px; line-height: 32px; font-weight: 800; color: var(--ink, #000); }
.mwc-compare del { font-size: 13px; color: var(--ink-muted, #5c5c5c); }
.mwc-compare .is-recommended { background: color-mix(in srgb, var(--red-ui, #e00000) 5%, transparent); }
.mwc-compare thead .is-recommended { border-top: 3px solid var(--red-ui, #e00000); border-radius: 12px 12px 0 0; }
.mwc-yes { color: var(--success, #15803d); display: inline-flex; }
.mwc-no { color: var(--line-strong, #8a8a8a); }
.mwc-compare-cta td { border-bottom: 0; }
.mw-btn-sm { padding: 8px 16px; font-size: 14px; }

/* Conditions + éditeur */
.mwc-deal-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 80px; align-items: start; }
@media (max-width: 860px) { .mwc-deal-two { grid-template-columns: minmax(0, 1fr); margin-top: 56px; } }
.mwc-terms details, .mwc-company { padding: 24px; border: 1px solid var(--line, #e5e5e5); border-radius: 16px; background: var(--surface, #fff); }
.mwc-terms summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; margin: 0; }
.mwc-terms summary::-webkit-details-marker { display: none; }
.mwc-terms summary::after { content: "+"; font-size: 24px; color: var(--red-text, #d40000); }
.mwc-terms details[open] summary::after { content: "−"; }
.mwc-terms ul { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 12px; font-size: 15px; line-height: 23px; }
.mwc-terms li { display: flex; gap: 10px; }
.mwc-terms svg { flex: none; margin-top: 3px; color: var(--success, #15803d); }
.mwc-company-head { display: flex; gap: 16px; align-items: center; margin-bottom: 12px; }
.mwc-company-head .mwc-vendor-logo { width: 72px; height: 72px; }
.mwc-company-head .mwc-eyebrow { margin-bottom: 4px; }
.mwc-company-head h2 { margin: 0; }
.mwc-company-about { color: var(--ink-muted, #5c5c5c); margin: 0 0 16px; }
.mwc-company-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 12px; margin: 0 0 16px; }
.mwc-company-facts > div { padding: 12px; border-radius: 8px; background: var(--surface-alt, #f5f5f5); }
.mwc-company-facts dt { font-size: 12px; color: var(--ink-muted, #5c5c5c); }
.mwc-company-facts dd { margin: 2px 0 0; font-weight: 700; }
.mwc-founder { margin: 0 0 12px; }
.mwc-founder a { color: var(--red-text, #d40000); font-weight: 700; }
.mwc-company .mwc-vendor-links { margin: 0; }

/* Description */
.mwc-description { margin-top: 80px; max-width: 820px; }

/* Onglets avis / questions / FAQ */
.mwc-tabs { margin-top: 80px; scroll-margin-top: calc(var(--header-h, 72px) + 80px); }
.mwc-tablist { display: none; gap: 4px; border-bottom: 1px solid var(--line, #e5e5e5); margin-bottom: 24px; overflow-x: auto; }
.mwc-tabs.is-js .mwc-tablist { display: flex; }
.mwc-tabs.is-js .mwc-tabpanel-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.mwc-tabpanel-title { font-family: var(--font-display, inherit); font-size: 24px; margin: 40px 0 16px; }
.mwc-tablist button { all: unset; cursor: pointer; padding: 12px 16px; font-weight: 700; color: var(--ink-muted, #5c5c5c); border-bottom: 3px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.mwc-tablist button[aria-selected="true"] { color: var(--ink, #000); border-bottom-color: var(--red-ui, #e00000); }
.mwc-tablist button:hover { color: var(--ink, #000); }
.mwc-tablist button:focus-visible { outline: 3px solid var(--focus, #2563eb); outline-offset: -3px; border-radius: 4px; }
.mwc-tabpanel { max-width: 900px; }
.mwc-tabpanel #reviews .woocommerce-Reviews-title, .mwc-tabpanel #reviews h2.woocommerce-Reviews-title { display: none; }
.mwc-histo { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 24px; align-items: center; padding: 24px; border-radius: 16px; background: var(--surface-alt, #f5f5f5); margin-bottom: 24px; }
@media (max-width: 600px) { .mwc-histo { grid-template-columns: minmax(0, 1fr); } }
.mwc-histo-score { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.mwc-histo-score strong { font-family: var(--font-display, inherit); font-size: 48px; line-height: 1; }
.mwc-histo ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 13px; }
.mwc-histo li { display: grid; grid-template-columns: 70px minmax(0, 1fr) 32px; gap: 10px; align-items: center; }
.mwc-histo-bar { height: 8px; border-radius: 4px; background: var(--line, #e5e5e5); overflow: hidden; }
.mwc-histo-bar > span { display: block; height: 100%; background: var(--red-ui, #e00000); border-radius: 4px; }

/* Deals similaires */
.mwc-related { margin-top: 80px; }

/* Barre d'achat collante */
.mwc-sticky { position: fixed; left: 0; right: 0; top: 0; z-index: 90; background: var(--surface, #fff); border-bottom: 1px solid var(--line, #e5e5e5); box-shadow: 0 6px 24px rgba(0,0,0,.08); transform: translateY(-110%); transition: transform .25s ease; }
.admin-bar .mwc-sticky { top: 32px; }
.mwc-sticky.is-on { transform: none; }
.mwc-sticky-inner { display: flex; gap: 16px; align-items: center; min-height: 64px; }
.mwc-sticky .mwc-logo { width: 40px; height: 40px; border-radius: 8px; }
.mwc-sticky-name { flex: 1; min-width: 0; display: flex; flex-direction: column; font-size: 13px; }
.mwc-sticky-name strong { font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mwc-sticky .mwc-price { margin: 0; }
@media (max-width: 700px) {
  .mwc-sticky { top: auto; bottom: 0; transform: translateY(110%); border-top: 1px solid var(--line, #e5e5e5); border-bottom: 0; }
  .admin-bar .mwc-sticky { top: auto; }
  .mwc-sticky .mwc-logo, .mwc-sticky-name .mwc-muted { display: none; }
  .mwc-sticky-price .mw-price-was, .mwc-sticky-price .mw-price-save { display: none; }
  .mwc-sticky-inner { gap: 10px; min-height: 60px; padding-block: 8px; }
  .mwc-sticky-name { display: none; }
  .mwc-sticky-price { flex: 1; min-width: 0; }
  .mwc-sticky .mw-btn { padding: 10px 14px; font-size: 14px; white-space: nowrap; }
  .mwc-sticky .mw-price-now { font-size: 18px !important; white-space: nowrap; }
}

/* =====================================================================
   1.1 — Accueil
   ===================================================================== */
.mwc-has-home .mw-page-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.mwc-has-home .mw-page > .mw-section { padding-top: 24px; }
.mwc-home > * + * { margin-top: 72px; }
@media (max-width: 700px) { .mwc-home > * + * { margin-top: 48px; } }
.mwc-home-hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 48px; align-items: center; padding: 24px 0; scroll-margin-top: 96px; }
@media (max-width: 960px) { .mwc-home-hero { grid-template-columns: minmax(0, 1fr); gap: 32px; } }
.mwc-home-title { font-family: var(--font-display, inherit); font-size: clamp(34px, 5vw, 56px); line-height: 1.05; letter-spacing: -.03em; margin: 0 0 16px; }
.mwc-home-sub { font-size: 18px; line-height: 28px; color: var(--ink-muted, #5c5c5c); margin: 0 0 24px; max-width: 56ch; }
.mwc-home-trust { list-style: none; margin: 24px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px 24px; font-size: 14px; font-weight: 700; }
.mwc-home-trust li { display: inline-flex; gap: 8px; align-items: center; }
.mwc-home-trust svg { color: var(--red-text, #d40000); }
.mwc-home-feat .mw-glow-inner { padding: 0; overflow: hidden; }
.mwc-home-feat-media { display: block; aspect-ratio: 16 / 9; background: var(--logo-black, #000); }
.mwc-home-feat-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mwc-home-feat-media .mwc-logo { margin: auto; width: 120px; height: 120px; }
.mwc-home-feat-body { padding: 20px 24px 24px; display: flex; flex-direction: column; gap: 8px; }
.mwc-home-feat-body h2 { font-family: var(--font-display, inherit); font-size: 26px; line-height: 1.2; margin: 0; }
.mwc-home-feat-body h2 a { color: inherit; text-decoration: none; }
.mwc-home-feat-body p { margin: 0; }
.mwc-home-feat-foot { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-top: 4px; }

/* Lettre des deals */
.mwc-nl { position: relative; max-width: 560px; }
.mwc-nl-row { display: flex; gap: 8px; }
.mwc-nl-row input { flex: 1; min-width: 0; min-height: 48px; padding: 0 16px; border-radius: 8px; border: 1px solid var(--line-strong, #8a8a8a); background: var(--surface, #fff); color: var(--ink, #000); font: inherit; }
.mwc-nl-row input:focus { outline: 3px solid var(--focus, #2563eb); outline-offset: 1px; }
.mwc-nl-row .mw-btn { white-space: nowrap; }
@media (max-width: 480px) { .mwc-nl-row { flex-direction: column; } }
.mwc-nl-legal { margin: 8px 0 0; font-size: 13px; color: var(--ink-muted, #5c5c5c); }
.mwc-nl-msg { margin: 12px 0 0; padding: 10px 14px; border-left: 4px solid var(--success, #15803d); background: var(--surface-alt, #f5f5f5); border-radius: 4px; font-size: 14px; }
.mwc-nl-msg.is-error { border-left-color: var(--danger, #c2410c); }

/* Têtes de section */
.mwc-section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 24px; }
.mwc-section-head .mwc-h2 { margin: 0 0 4px; }
.mwc-section-head p { margin: 0; }
.mwc-see-all { font-weight: 700; color: var(--red-text, #d40000); white-space: nowrap; text-decoration: none; }
.mwc-see-all:hover { text-decoration: underline; }

/* Carte compacte */
.mwc-grid-compact { gap: 16px; }
.mwc-cc { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 20px; border: 1px solid var(--line, #e5e5e5); border-radius: 16px; background: var(--surface, #fff); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.mwc-cc:hover { transform: translateY(-3px); border-color: var(--red-ui, #e00000); box-shadow: var(--glow-red-soft, 0 0 0 4px rgba(224,0,0,.12)), var(--shadow-card, 0 8px 24px rgba(0,0,0,.06)); }
.mwc-cc:focus-within { border-color: var(--red-ui, #e00000); }
.mwc-cc-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; margin-bottom: 4px; }
.mwc-cc-cat { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-muted, #5c5c5c); }
.mwc-cc-title { font-family: var(--font-display, inherit); font-size: 19px; line-height: 26px; margin: 0; }
.mwc-cc-title a { color: inherit; text-decoration: none; }
.mwc-cc-title a::after { content: ""; position: absolute; inset: 0; border-radius: 16px; }
.mwc-cc-title a:focus-visible { outline: none; }
.mwc-cc-title a:focus-visible::after { outline: 3px solid var(--focus, #2563eb); outline-offset: 2px; }
.mwc-cc-pitch { margin: 0; font-size: 14px; line-height: 21px; color: var(--ink-muted, #5c5c5c); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mwc-cc .mwc-stars-line { font-size: 13px; }
.mwc-cc-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 8px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line, #e5e5e5); }
.mwc-cc-foot .mwc-price { margin: 0; flex-wrap: wrap; }
.mwc-cc-cta { font-size: 14px; font-weight: 700; color: var(--red-text, #d40000); white-space: nowrap; }
.mwc-cc.mwc-state-ended, .mwc-cc.mwc-state-soldout { opacity: .7; }

/* Liste Nouveautés */
.mwc-rows { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; }
@media (max-width: 860px) { .mwc-rows { grid-template-columns: minmax(0, 1fr); } }
.mwc-row { position: relative; display: flex; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line, #e5e5e5); }
.mwc-row .mwc-logo { width: 48px; height: 48px; border-radius: 10px; }
.mwc-row-main { flex: 1; min-width: 0; }
.mwc-row h3 { font-size: 16px; line-height: 22px; margin: 0; }
.mwc-row h3 a { color: inherit; text-decoration: none; }
.mwc-row h3 a::after { content: ""; position: absolute; inset: 0; }
.mwc-row:hover h3 a { color: var(--red-text, #d40000); }
.mwc-row p { margin: 2px 0 0; font-size: 14px; color: var(--ink-muted, #5c5c5c); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mwc-row-side { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; text-align: right; }
.mwc-row-side .mwc-price { margin: 0; justify-content: flex-end; }
.mwc-row-side .mw-price-sm .mw-price-now { font-size: 18px; }
.mwc-row-side .mw-price-save { display: none; }

/* Dernière chance */
.mwc-home-ending { padding: 32px; border-radius: 24px; background: var(--logo-black, #000); color: #fff; --ink: #fff; --ink-muted: #b5b5b5; --line: #2a2a2a; --surface: #111; --surface-alt: #1a1a1a; --red-text: #ff3b3b; }
@media (max-width: 700px) { .mwc-home-ending { padding: 20px; border-radius: 16px; } }

/* Catégories */
.mwc-cats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.mwc-cat { display: grid; grid-template-columns: 48px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 12px; align-items: center; padding: 16px; border: 1px solid var(--line, #e5e5e5); border-radius: 12px; background: var(--surface, #fff); color: var(--ink, #000); text-decoration: none; transition: border-color .2s, box-shadow .2s; }
.mwc-cat:hover { border-color: var(--red-ui, #e00000); box-shadow: var(--glow-red-soft, 0 0 0 4px rgba(224,0,0,.12)); }
.mwc-cat-icon { grid-row: span 2; width: 48px; height: 48px; border-radius: 12px; background: var(--logo-black, #000); color: var(--red, #f00); display: grid; place-items: center; font-family: var(--font-display, inherit); font-weight: 800; font-size: 20px; overflow: hidden; }
.mwc-cat-icon img { width: 100%; height: 100%; object-fit: cover; }
.mwc-cat-name { font-weight: 700; }
.mwc-cat .mwc-muted { font-size: 13px; }

/* Appel aux vendeurs */
.mwc-cta-inner { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: center; padding: 40px; }
.mwc-cta-inner > div { flex: 1 1 420px; }
.mwc-cta-inner p { margin: 0; color: var(--ink-muted, #5c5c5c); max-width: 62ch; }
.mwc-cta-inner .mwc-h2 { margin-bottom: 8px; }
@media (max-width: 700px) { .mwc-cta-inner { padding: 24px; } .mwc-cta-inner .mw-btn { width: 100%; } }

@media (prefers-reduced-motion: reduce) {
  .mwc-cc, .mwc-sticky, .mwc-play { transition: none; }
  .mwc-cc:hover { transform: none; }
}
