/* =========================================================
   SENKYS — LE MAG  ·  Shared stylesheet
   Charte sobre & chaleureuse : crème / indigo / doré
   ========================================================= */

/* ---------- DESIGN TOKENS ---------- */
:root {
  --bg: #f7f3ec;
  --surface: #ffffff;
  --surface-alt: #fbf8f2;
  --border: #e3dccf;
  --border-strong: #c9c0ad;
  --ink: #1c1f23;
  --ink-soft: #41464d;
  --ink-mute: #5f6670;
  --accent: #302b63;
  --accent-soft: #e6e3f1;
  --accent-ink: #413a87;
  --link: #302b63;
  --brass: #b08a4a;
  --brass-soft: #f4ead7;
  --ok: #2f6f4a;
  --ok-soft: #e4f0e9;
  --warn: #a85a18;
  --warn-soft: #fbeede;
  --danger: #a4302a;

  --font-body: "Public Sans", "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
  --font-display: "Public Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --text-xs: 12px;
  --text-sm: 13px;
  --text-base: 15px;
  --text-md: 17px;
  --text-lg: 20px;
  --text-xl: 26px;
  --text-2xl: 32px;
  --text-3xl: 42px;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;

  --radius-sm: 4px;
  --radius: 8px;
  --radius-lg: 12px;

  --shadow-xs: 0 1px 1px rgba(28, 31, 35, 0.04);
  --shadow-sm: 0 1px 2px rgba(28, 31, 35, 0.05), 0 1px 3px rgba(28, 31, 35, 0.04);
  --shadow-md: 0 4px 12px rgba(28, 31, 35, 0.06), 0 2px 4px rgba(28, 31, 35, 0.04);

  --container: 1180px;
  --container-narrow: 900px;
  --header-h: 72px;

  --t-fast: 120ms ease;
  --t: 180ms ease;
}

/* ---------- RESET ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--link); text-decoration: none; }
a:hover { color: var(--accent-ink); }
h1, h2, h3, h4 { font-family: var(--font-display); margin: 0; line-height: 1.18; font-weight: 800; letter-spacing: -0.01em; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }

/* ---------- LAYOUT HELPERS ---------- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--space-6); }
.layout { display: grid; grid-template-columns: minmax(0,1fr) 340px; gap: var(--space-12); align-items: start; }
.main-col { min-width: 0; }
/* Le bloc SEO est rendu en tête du DOM (crawlers) mais affiché en bas du listing. */
.main-col--seo { display: flex; flex-direction: column; }
.main-col--seo .cat-seo-text { order: 100; }

/* Bloc de texte SEO en bas de rubrique */
.cat-seo-text { margin-top: var(--space-12); padding: var(--space-8) var(--space-7); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.cat-seo-text h2 { font-size: var(--text-xl); margin: 0 0 var(--space-3); color: var(--ink); }
.cat-seo-text h2:not(:first-child), .cat-seo-text h3 { margin-top: var(--space-5); }
.cat-seo-text p { color: var(--ink-soft); line-height: 1.7; margin: 0 0 var(--space-3); }
.cat-seo-text ul { margin: 0 0 var(--space-3) var(--space-5); color: var(--ink-soft); line-height: 1.7; }
.cat-seo-text li { margin-bottom: 6px; }
.cat-seo-text > :last-child { margin-bottom: 0; }

/* ============================================================
   HEADER
   ============================================================ */
.topbar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.topbar-inner {
  height: var(--header-h);
  display: flex; align-items: center; gap: var(--space-8);
}
.brand {
  display: flex; align-items: baseline; gap: 10px;
  font-family: var(--font-display);
  letter-spacing: -0.03em;
  line-height: 1;
  text-decoration: none;
}
.brand .brand-mark {
  font-size: 27px; font-weight: 900; color: var(--ink);
}
.brand .brand-mark em { font-style: normal; color: var(--accent); }
.brand .brand-tag {
  font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--brass);
  border-left: 1px solid var(--border-strong); padding-left: 10px;
}
.topbar-spacer { flex: 1; }
.topbar-tools { display: flex; align-items: center; gap: var(--space-4); }
.search {
  display: flex; align-items: center; gap: var(--space-2);
  background: var(--surface-alt); border: 1px solid var(--border);
  border-radius: 999px; padding: 8px 14px; min-width: 220px;
}
.search input { border: 0; background: transparent; outline: none; font-size: var(--text-sm); color: var(--ink); width: 100%; }
.search svg { color: var(--ink-mute); flex: none; }
.socials { display: flex; gap: var(--space-2); }
.socials a {
  width: 32px; height: 32px; border-radius: 999px;
  display: grid; place-items: center; color: var(--ink-soft);
  background: var(--surface-alt); border: 1px solid var(--border);
  transition: var(--t);
}
.socials a:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-account {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent); color: #fff; font-weight: 700;
  font-size: var(--text-sm); padding: 9px 16px; border-radius: 999px;
  border: 0; transition: var(--t); white-space: nowrap;
}
.btn-account:hover { background: var(--accent-ink); color: #fff; }

/* ---------- NAV ---------- */
.nav {
  background: var(--ink);
  position: sticky; top: 0; z-index: 50;
}
.nav-inner { display: flex; align-items: stretch; gap: 2px; }
.nav a {
  color: #d9d4cb; font-size: var(--text-sm); font-weight: 700;
  letter-spacing: 0.04em; text-transform: uppercase;
  padding: 15px 16px; display: flex; align-items: center;
  transition: var(--t); position: relative;
}
.nav a:hover { color: #fff; background: rgba(255,255,255,0.06); }
.nav a.active { color: #fff; }
.nav a.active::after {
  content: ""; position: absolute; left: 16px; right: 16px; bottom: 8px;
  height: 2px; background: var(--brass);
}
.nav .nav-shop { margin-left: auto; color: var(--bg); }
.nav .nav-shop:hover { background: var(--brass); color: #1c1f23; }
.nav-burger { display: none; }

/* ============================================================
   SECTION HEADINGS
   ============================================================ */
.section { margin-top: var(--space-12); }
.section-head {
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 2px solid var(--ink); padding-bottom: var(--space-3);
  margin-bottom: var(--space-6);
}
.section-head h2 {
  font-size: var(--text-xl); text-transform: uppercase; letter-spacing: 0.02em;
}
.section-head .more {
  font-size: var(--text-xs); font-weight: 800; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--accent);
  display: inline-flex; align-items: center; gap: 6px;
}
.section-head .more:hover { gap: 10px; }

/* eyebrow / category tag */
.eyebrow {
  display: inline-block; font-size: var(--text-xs); font-weight: 800;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent);
}
.tag-cat {
  display: inline-block; font-size: 11px; font-weight: 800;
  letter-spacing: 0.09em; text-transform: uppercase;
  background: var(--accent); color: #fff; padding: 4px 9px; border-radius: var(--radius-sm);
}
.tag-cat.brass { background: var(--brass); }
.tag-cat.soft { background: var(--accent-soft); color: var(--accent); }
.meta { font-size: var(--text-xs); color: var(--ink-mute); letter-spacing: 0.03em; }

/* ============================================================
   PLACEHOLDER IMAGES
   ============================================================ */
.ph {
  position: relative; width: 100%; overflow: hidden;
  background-color: var(--surface-alt);
  background-image: repeating-linear-gradient(
    135deg,
    rgba(176,138,74,0.10) 0, rgba(176,138,74,0.10) 1px,
    transparent 1px, transparent 11px
  );
  border: 1px solid var(--border);
  display: grid; place-items: center;
}
.ph::after {
  content: attr(data-label);
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.04em;
  color: var(--ink-mute); background: rgba(255,255,255,0.82);
  padding: 4px 9px; border-radius: 999px; border: 1px solid var(--border);
  max-width: 80%; text-align: center;
}
.ph.dark {
  background-color: #20232a;
  background-image: repeating-linear-gradient(
    135deg, rgba(255,255,255,0.05) 0, rgba(255,255,255,0.05) 1px,
    transparent 1px, transparent 11px);
  border-color: #2c2f37;
}
.ph.dark::after { color: #b9bdc6; background: rgba(28,31,35,0.7); border-color: #3a3e47; }
.ratio-16-9 { aspect-ratio: 16 / 9; }
.ratio-4-3 { aspect-ratio: 4 / 3; }
.ratio-3-2 { aspect-ratio: 3 / 2; }
.ratio-1-1 { aspect-ratio: 1 / 1; }
.ratio-3-4 { aspect-ratio: 3 / 4; }

/* ============================================================
   ARTICLE CARDS
   ============================================================ */
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column; transition: var(--t);
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card .card-media { position: relative; display: block; overflow: hidden; }
/* Harmonise les vignettes : l'image remplit le ratio forcé du conteneur (crop center). */
.card .card-media img,
.card .card-media picture,
.card .card-media picture img { display: block; width: 100%; height: 100%; object-fit: cover; }
.card .card-media > .ph { width: 100%; height: 100%; aspect-ratio: auto; }
.card .card-body { padding: var(--space-4) var(--space-5) var(--space-5); display: flex; flex-direction: column; gap: 8px; }
.card .card-body .top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.card h3 { font-size: var(--text-md); line-height: 1.3; }
.card h3 a { color: var(--ink); }
.card h3 a:hover { color: var(--accent); }
.card .excerpt { font-size: var(--text-sm); color: var(--ink-soft); margin-top: 2px; }

/* grid variants */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-6); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-5); }

/* horizontal compact card */
.card-h { display: grid; grid-template-columns: 116px 1fr; gap: var(--space-4); background: transparent; border: 0; }
.card-h .card-media { border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 1/1; }
.card-h .card-media img, .card-h .card-media picture { display: block; width: 100%; height: 100%; object-fit: cover; }
.card-h h3 { font-size: var(--text-base); line-height: 1.3; }
.card-h h3 a { color: var(--ink); }
.card-h .card-body { padding: 0; gap: 6px; }

/* ============================================================
   HERO
   ============================================================ */
.hero { display: grid; grid-template-columns: 1fr; gap: var(--space-3); }
.hero-main { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 16 / 8.2; }
.hero-main .ph { aspect-ratio: 16 / 8.2; border: 0; }
.hero-main img, .hero-main picture { display: block; width: 100%; height: 100%; object-fit: cover; }
.hero-overlay {
  position: absolute; inset: auto 0 0 0; padding: var(--space-10) var(--space-8) var(--space-6);
  background: linear-gradient(to top, rgba(20,18,40,0.94) 0%, rgba(20,18,40,0.78) 35%, rgba(20,18,40,0.4) 70%, transparent 100%);
  color: #fff;
}
.hero-overlay .tag-cat { background: var(--brass); }
.hero-overlay h2 {
  color: #fff; font-size: var(--text-2xl); max-width: 760px;
  margin-top: var(--space-3); text-wrap: balance; text-shadow: 0 1px 14px rgba(0,0,0,0.45);
}
.hero-overlay .excerpt { color: rgba(255,255,255,0.9); margin-top: 10px; max-width: 620px; font-size: var(--text-base); text-shadow: 0 1px 10px rgba(0,0,0,0.4); }
.hero-overlay .meta { color: rgba(255,255,255,0.78); margin-top: 12px; text-shadow: 0 1px 10px rgba(0,0,0,0.4); }
.hero-thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--space-3); }
.hero-thumbs .thumb { border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--border); cursor: pointer; transition: var(--t); position: relative; aspect-ratio: 16/10; }
.hero-thumbs .thumb .ph { width: 100%; height: 100%; border: 0; }
.hero-thumbs .thumb img,
.hero-thumbs .thumb picture { display: block; width: 100%; height: 100%; object-fit: cover; }
.hero-thumbs .thumb:hover { box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.hero-thumbs .thumb.is-active { outline: 2px solid var(--accent); outline-offset: 0; }

/* ============================================================
   SIDEBAR WIDGETS
   ============================================================ */
.aside { display: flex; flex-direction: column; gap: var(--space-8); position: sticky; top: calc(var(--header-h) + var(--space-6)); }
.widget { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.widget-head {
  background: var(--surface-alt); border-bottom: 1px solid var(--border);
  padding: 12px var(--space-5); font-size: var(--text-xs); font-weight: 800;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft);
}
.widget-body { padding: var(--space-5); }
.widget-body.tight { padding: var(--space-4) var(--space-5); }

/* newsletter */
.newsletter p { font-size: var(--text-sm); color: var(--ink-soft); margin-bottom: var(--space-4); }
.field-row { display: flex; gap: var(--space-2); }
.field-row input {
  flex: 1; min-width: 0; border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 11px 12px; font-size: var(--text-sm); background: var(--surface-alt); outline: none;
}
.field-row input:focus { border-color: var(--accent); background: #fff; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--accent); color: #fff; font-weight: 700; font-size: var(--text-sm);
  border: 0; border-radius: var(--radius-sm); padding: 11px 18px; transition: var(--t); white-space: nowrap;
}
.btn:hover { background: var(--accent-ink); color: #fff; }
.btn-brass { background: var(--brass); color: #fff; }
.btn-brass:hover { background: #9a763c; color: #fff; }
.btn-block { width: 100%; }
.btn-ghost { background: transparent; color: var(--accent); border: 1px solid var(--border-strong); }
.btn-ghost:hover { background: var(--accent-soft); color: var(--accent); }
.btn-lg { padding: 14px 24px; font-size: var(--text-base); border-radius: var(--radius); }

/* most read list */
.rank-list { display: flex; flex-direction: column; }
.rank-item { display: grid; grid-template-columns: 28px 64px 1fr; gap: var(--space-3); align-items: center; padding: var(--space-4) 0; border-bottom: 1px solid var(--border); }
.rank-item:last-child { border-bottom: 0; }
.rank-item .num { font-family: var(--font-display); font-size: var(--text-xl); font-weight: 900; color: var(--border-strong); text-align: center; }
.rank-item .ph { aspect-ratio: 1/1; border-radius: var(--radius-sm); }
.rank-item .card-media { display: block; aspect-ratio: 1/1; border-radius: var(--radius-sm); overflow: hidden; }
.rank-item .card-media img,
.rank-item .card-media picture { display: block; width: 100%; height: 100%; object-fit: cover; }
.rank-item .rk-title { font-size: var(--text-sm); font-weight: 700; line-height: 1.3; color: var(--ink); }
.rank-item .rk-title:hover { color: var(--accent); }
.rank-item .eyebrow { font-size: 10px; }

/* product (boutique) widget */
.shop-promo { padding: var(--space-6) var(--space-5); text-align: center; background: linear-gradient(160deg, var(--accent) 0%, #241f4d 100%); color: #fff; }
.shop-promo .eyebrow { color: var(--brass-soft); }
.shop-promo h3 { color: #fff; font-size: var(--text-lg); margin: 10px 0 6px; }
.shop-promo p { font-size: var(--text-sm); color: rgba(255,255,255,0.78); margin-bottom: var(--space-5); }
.shop-promo .ph { border-radius: var(--radius); margin: var(--space-4) auto var(--space-5); }
.shop-promo .senkys-ad { margin: var(--space-4) 0 var(--space-5); min-height: 90px; }
.senkys-ad { min-height: 90px; }
.senkys-ad:empty::before { content: ""; display: block; min-height: 90px; border-radius: var(--radius-sm); background: repeating-linear-gradient(45deg, var(--border) 0 10px, transparent 10px 20px); opacity: .35; }

/* newsletter — message d'état */
.nl-form .nl-msg { margin: var(--space-3) 0 0; font-size: var(--text-sm); font-weight: 600; }
.nl-form .nl-msg.is-ok { color: #1c7c45; }
.nl-form .nl-msg.is-err { color: #b3261e; }
.product-row { display: grid; grid-template-columns: 70px 1fr; gap: var(--space-4); align-items: center; padding: var(--space-4) 0; border-bottom: 1px solid var(--border); }
.product-row:last-child { border-bottom: 0; }
.product-row .ph { aspect-ratio: 1/1; border-radius: var(--radius-sm); }
.product-row .p-name { font-size: var(--text-sm); font-weight: 700; color: var(--ink); line-height: 1.25; }
.product-row .p-name:hover { color: var(--accent); }
.product-row .p-cat { font-size: 10px; }
.product-row .p-price { font-family: var(--font-mono); font-size: var(--text-sm); font-weight: 700; color: var(--brass); margin-top: 3px; }

/* simple link list */
.link-list li { border-bottom: 1px solid var(--border); }
.link-list li:last-child { border-bottom: 0; }
.link-list a { display: flex; gap: 10px; padding: 12px 0; font-size: var(--text-sm); font-weight: 600; color: var(--ink); align-items: flex-start; }
.link-list a:hover { color: var(--accent); }
.link-list a .dot { color: var(--brass); font-weight: 900; }

/* ============================================================
   FOOTER
   ============================================================ */
.promo-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-6); margin-top: var(--space-16); }
.promo-tile { position: relative; border-radius: var(--radius-lg); overflow: hidden; min-height: 180px; display: flex; align-items: flex-end; color: #fff; }
.promo-tile .ph { position: absolute; inset: 0; border: 0; }
.promo-tile > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.promo-tile .pt-body { position: relative; padding: var(--space-6); background: linear-gradient(to top, rgba(20,18,40,0.9), transparent); width: 100%; }
.promo-tile h3 { color: #fff; font-size: var(--text-lg); display: flex; align-items: center; gap: 8px; }
.promo-tile p { color: rgba(255,255,255,0.82); font-size: var(--text-sm); margin-top: 6px; }

.site-footer { background: var(--ink); color: #c9cbd0; margin-top: var(--space-16); }
.site-footer .container { padding-top: var(--space-16); padding-bottom: var(--space-12); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: var(--space-12); }
.footer-grid h4 { color: #fff; font-size: var(--text-xs); letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: var(--space-5); }
.footer-grid p { font-size: var(--text-sm); color: #9aa0aa; line-height: 1.7; }
.footer-grid .brand .brand-mark { color: #fff; }
.footer-grid .brand .brand-mark em { color: #b9b4e6; }
.footer-grid .brand .brand-tag { color: var(--brass); border-color: #3a3e47; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: #c9cbd0; font-size: var(--text-sm); }
.footer-links a:hover { color: #fff; }
.footer-social { display: flex; gap: var(--space-3); margin-top: var(--space-5); }
.footer-social a { width: 36px; height: 36px; border-radius: 999px; display: grid; place-items: center; background: rgba(255,255,255,0.08); color: #fff; }
.footer-social a:hover { background: var(--accent); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); }
.footer-bottom .container { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-4); justify-content: center; padding: var(--space-5) var(--space-6); }
.footer-bottom a { color: #9aa0aa; font-size: var(--text-xs); letter-spacing: 0.04em; text-transform: uppercase; }
.footer-bottom a:hover { color: #fff; }
.footer-bottom .sep { color: #4b5159; }
/* Sélecteur de langue (footer) */
.footer-lang { flex-basis: 100%; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; padding-bottom: var(--space-3); margin-bottom: var(--space-2); border-bottom: 1px solid rgba(255,255,255,0.08); }
.footer-lang .footer-lang-lbl { font-size: var(--text-xs); letter-spacing: 0.06em; text-transform: uppercase; color: #6b7280; margin-right: 4px; }
.footer-lang a { font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.04em; color: #9aa0aa; border: 1px solid rgba(255,255,255,0.14); border-radius: 999px; padding: 4px 11px; text-transform: uppercase; }
.footer-lang a:hover { color: #fff; border-color: rgba(255,255,255,0.35); }
.footer-lang a.is-active { color: #1c1f23; background: var(--brass); border-color: var(--brass); }

/* age strip */
.age-strip { background: var(--accent); color: #fff; text-align: center; padding: 10px var(--space-6); font-size: var(--text-sm); font-weight: 600; }
.age-strip strong { color: var(--brass-soft); }

/* ============================================================
   CATEGORY PAGE
   ============================================================ */
.cat-header { background: linear-gradient(155deg, var(--accent) 0%, #241f4d 100%); color: #fff; padding: var(--space-12) 0 var(--space-12); }
.cat-header .eyebrow { color: var(--brass-soft); }
.cat-header h1 { color: #fff; font-size: var(--text-3xl); margin: var(--space-3) 0 var(--space-4); }
.cat-header p { color: rgba(255,255,255,0.82); max-width: 620px; font-size: var(--text-md); }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: var(--text-xs); color: var(--ink-mute); letter-spacing: 0.04em; text-transform: uppercase; }
.breadcrumb a { color: var(--ink-mute); font-weight: 700; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep { color: var(--border-strong); }
.cat-header .breadcrumb, .cat-header .breadcrumb a { color: rgba(255,255,255,0.7); }
.cat-header .breadcrumb a:hover { color: #fff; }

.subcats { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-bottom: var(--space-8); }
.chip {
  font-size: var(--text-sm); font-weight: 700; padding: 8px 16px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border); color: var(--ink-soft); transition: var(--t);
}
.chip:hover { border-color: var(--accent); color: var(--accent); }
.chip.is-active { background: var(--accent); color: #fff; border-color: var(--accent); }

/* feature row card (category lead) */
.lead-card { display: grid; grid-template-columns: 1.15fr 1fr; gap: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.lead-card .card-media { height: 100%; }
.lead-card .card-media .ph { height: 100%; min-height: 320px; border: 0; }
.lead-card .card-media img, .lead-card .card-media picture { display: block; width: 100%; height: 100%; min-height: 320px; object-fit: cover; }
.lead-card .lc-body { padding: var(--space-10); display: flex; flex-direction: column; justify-content: center; gap: var(--space-3); }
.lead-card h2 { font-size: var(--text-2xl); line-height: 1.2; }
.lead-card h2 a { color: var(--ink); }
.lead-card h2 a:hover { color: var(--accent); }
.lead-card .excerpt { font-size: var(--text-md); color: var(--ink-soft); }

.pagination { display: flex; justify-content: center; gap: var(--space-2); margin-top: var(--space-12); }
.pagination a, .pagination span {
  min-width: 42px; height: 42px; display: grid; place-items: center; padding: 0 12px;
  border: 1px solid var(--border); border-radius: var(--radius-sm); font-weight: 700; font-size: var(--text-sm);
  color: var(--ink-soft); background: var(--surface); transition: var(--t);
}
.pagination a:hover { border-color: var(--accent); color: var(--accent); }
.pagination .is-active { background: var(--accent); color: #fff; border-color: var(--accent); }
.pagination .dots { border: 0; background: transparent; }

/* ============================================================
   ARTICLE PAGE
   ============================================================ */
.article { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.article-head { padding: var(--space-10) var(--space-12) var(--space-6); }
.article-head h1 { font-size: var(--text-3xl); line-height: 1.12; margin: var(--space-4) 0 var(--space-5); text-wrap: balance; }
.byline { display: flex; align-items: center; gap: var(--space-4); flex-wrap: wrap; }
.byline .author { display: flex; align-items: center; gap: 10px; }
.byline .author .ph,
.byline .author img,
.byline .author picture { width: 40px; height: 40px; border-radius: 999px; }
.byline .author img { object-fit: cover; }
.byline .author .a-name { font-size: var(--text-sm); font-weight: 800; color: var(--ink); }
.byline .author .a-role { font-size: var(--text-xs); color: var(--ink-mute); }
.byline .dot-sep { color: var(--border-strong); }
.read-time { font-size: var(--text-xs); color: var(--ink-mute); display: inline-flex; gap: 6px; align-items: center; }

.share-row { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; padding: var(--space-4) var(--space-12); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--surface-alt); }
.share-row .lbl { font-size: var(--text-xs); font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-mute); margin-right: 4px; }
.share-row a:not(.save) { width: 38px; height: 38px; flex: none; border-radius: var(--radius-sm); display: grid; place-items: center; color: #fff; transition: var(--t); }
.share-row a:not(.save):hover { transform: translateY(-2px); filter: brightness(1.08); }
.sh-fb  { background: #1877f2; }
.sh-tw  { background: #1c1f23; }
.sh-pin { background: #e60023; }
.sh-wa  { background: #25d366; }
.share-row .save { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; white-space: nowrap; }
.share-row .save.is-saved { background: var(--accent); border-color: var(--accent); color: #fff; }
.share-row .save.is-saved svg { fill: currentColor; stroke: currentColor; }

.article-hero .ph { aspect-ratio: 16/9; border: 0; }
.article-hero img, .article-hero picture { display: block; width: 100%; height: auto; aspect-ratio: 16/9; object-fit: cover; border-radius: var(--radius-lg); }
.article-hero figcaption { font-size: var(--text-xs); color: var(--ink-mute); padding: 10px var(--space-12); font-style: italic; }

.prose { padding: var(--space-8) var(--space-12) var(--space-10); font-size: var(--text-md); line-height: 1.78; color: var(--ink-soft); }
.prose > * + * { margin-top: var(--space-5); }
.prose .lead { font-size: var(--text-lg); line-height: 1.6; color: var(--ink); font-weight: 500; }
.prose h2 { font-size: var(--text-xl); color: var(--ink); margin-top: var(--space-10); margin-bottom: 2px; }
.prose h3 { font-size: var(--text-lg); color: var(--ink); margin-top: var(--space-8); }
.prose a { color: var(--accent); font-weight: 600; text-decoration: underline; text-decoration-color: var(--accent-soft); text-underline-offset: 3px; }
.prose a:hover { text-decoration-color: var(--accent); }
.prose strong { color: var(--ink); font-weight: 700; }
.prose figure { margin: var(--space-8) 0; }
.prose figure .ph { border-radius: var(--radius); }
.prose figure figcaption { font-size: var(--text-xs); color: var(--ink-mute); font-style: italic; margin-top: 8px; }
.prose blockquote {
  margin: var(--space-8) 0; padding: var(--space-2) 0 var(--space-2) var(--space-6);
  border-left: 3px solid var(--brass); font-family: var(--font-display);
  font-size: var(--text-xl); line-height: 1.35; font-weight: 700; color: var(--ink); font-style: italic;
}
/* Listes — le reset global retire les puces ; on les restaure dans le contenu.
   S'applique aux listes générées (IA / éditeur) ET à .bullets. */
.prose ul, .prose ul.bullets { margin: var(--space-4) 0; padding-left: 0; list-style: none; }
.prose ul li, .prose ul.bullets li { position: relative; padding-left: 26px; margin-top: 10px; line-height: 1.7; }
.prose ul li::before, .prose ul.bullets li::before { content: ""; position: absolute; left: 4px; top: 11px; width: 8px; height: 8px; border-radius: 2px; background: var(--brass); }
.prose ol { margin: var(--space-4) 0; padding-left: 0; list-style: none; counter-reset: prose-ol; }
.prose ol li { position: relative; padding-left: 34px; margin-top: 10px; line-height: 1.7; counter-increment: prose-ol; }
.prose ol li::before { content: counter(prose-ol); position: absolute; left: 0; top: 0; min-width: 22px; height: 22px; padding: 0 5px; display: inline-flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 800; font-size: 0.82em; color: #fff; background: var(--brass); border-radius: 6px; }
.prose ul ul, .prose ol ol, .prose ul ol, .prose ol ul { margin: 8px 0 0; }
.prose li > strong:first-child { color: var(--ink); }
.prose em { font-style: italic; }
.prose b { font-weight: 700; color: var(--ink); }

/* Page « Mes articles enregistrés » */
.fav-list { display: flex; flex-direction: column; gap: var(--space-3); max-width: 760px; }
.fav-item { display: flex; align-items: center; gap: var(--space-4); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: var(--space-4) var(--space-5); transition: var(--t); }
.fav-item:hover { box-shadow: var(--shadow-sm); border-color: var(--border-strong); }
.fav-main { display: flex; flex-direction: column; gap: 3px; flex: 1; min-width: 0; }
.fav-main .eyebrow { font-size: 10px; }
.fav-title { font-family: var(--font-display); font-weight: 800; font-size: var(--text-md); line-height: 1.25; color: var(--ink); }
.fav-main:hover .fav-title { color: var(--accent); }
.fav-date { font-size: var(--text-xs); color: var(--ink-mute); }
.fav-remove { flex: none; width: 32px; height: 32px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface-alt); color: var(--ink-mute); font-size: 15px; line-height: 1; transition: var(--t); }
.fav-remove:hover { background: var(--danger); border-color: var(--danger); color: #fff; }
.fav-empty { text-align: center; padding: var(--space-12) var(--space-6); color: var(--ink-soft); }
.fav-empty p { margin-bottom: var(--space-5); font-size: var(--text-md); }

/* ===== Pages de contenu statiques ===== */
.page-prose { max-width: 780px; font-size: var(--text-md); line-height: 1.78; color: var(--ink-soft); }
.page-prose .page-lead { font-size: var(--text-lg); line-height: 1.55; color: var(--ink); font-weight: 500; margin-bottom: var(--space-6); }
.page-prose h2 { font-size: var(--text-xl); color: var(--ink); margin: var(--space-8) 0 var(--space-3); }
.page-prose h2:first-child { margin-top: 0; }
.page-prose h3 { font-size: var(--text-lg); color: var(--ink); margin: var(--space-6) 0 var(--space-2); }
.page-prose p { margin: 0 0 var(--space-4); }
.page-prose a { color: var(--accent); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.page-prose ul { list-style: none; margin: 0 0 var(--space-4); padding: 0; }
.page-prose li { position: relative; padding-left: 22px; margin-bottom: 8px; }
.page-prose li::before { content: ""; position: absolute; left: 4px; top: 10px; width: 7px; height: 7px; border-radius: 2px; background: var(--brass); }

/* ===== Rédaction (auteurs) ===== */
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: var(--space-6); }
.team-card { display: grid; grid-template-columns: 110px 1fr; gap: var(--space-5); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--space-6); }
.team-photo { display: block; width: 110px; height: 110px; border-radius: 999px; overflow: hidden; flex: none; }
.team-photo img, .team-photo picture { width: 100%; height: 100%; object-fit: cover; }
.team-photo .ph { width: 100%; height: 100%; aspect-ratio: 1/1; }
.team-body h2 { font-size: var(--text-lg); }
.team-body h2 a { color: var(--ink); }
.team-body h2 a:hover { color: var(--accent); }
.team-role { font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--brass); margin-top: 3px; }
.team-bio { font-size: var(--text-sm); color: var(--ink-soft); margin-top: var(--space-3); }
.team-meta { font-size: var(--text-xs); color: var(--ink-mute); margin-top: var(--space-3); display: flex; align-items: center; gap: 8px; }

/* ===== Formulaire de contact ===== */
.contact-form .field { margin-bottom: var(--space-4); }
.contact-form label { display: block; font-size: var(--text-sm); font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.contact-form input, .contact-form textarea { width: 100%; font-family: inherit; font-size: var(--text-base); color: var(--ink); background: var(--surface-alt); border: 1px solid var(--border-strong); border-radius: var(--radius); padding: 11px 14px; }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--accent); background: #fff; }
.contact-form .form-grid { grid-template-columns: 1fr 1fr; }
.form-banner { padding: var(--space-4) var(--space-5); border-radius: var(--radius); margin-bottom: var(--space-5); font-weight: 600; }
.form-banner.is-ok { background: var(--ok-soft); color: var(--ok); border: 1px solid #bfe0cd; }
.form-banner.is-err { background: var(--danger-soft); color: var(--danger); border: 1px solid #eecaca; }

/* ===== Newsletter (page) ===== */
.nl-page h2 { font-size: var(--text-xl); margin-bottom: var(--space-4); }
.nl-perks { list-style: none; margin: 0 0 var(--space-8); padding: 0; }
.nl-perks li { position: relative; padding-left: 28px; margin-bottom: var(--space-3); font-size: var(--text-md); color: var(--ink-soft); }
.nl-perks li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--brass); font-weight: 900; }
.nl-form--page .field-row { max-width: 460px; }

/* ===== Plan du site ===== */
.sitemap-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: var(--space-8); }
.sitemap-block h2 { font-size: var(--text-md); text-transform: uppercase; letter-spacing: 0.05em; padding-bottom: var(--space-2); border-bottom: 2px solid var(--brass); margin-bottom: var(--space-3); }
.sitemap-block ul, .sitemap-cat ul { list-style: none; margin: 0; padding: 0; }
.sitemap-block li, .sitemap-cat li { margin-bottom: 8px; }
.sitemap-block a, .sitemap-cat a { color: var(--ink-soft); font-size: var(--text-sm); }
.sitemap-block a:hover, .sitemap-cat a:hover { color: var(--accent); }
.sitemap-cats { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--space-8); }
.sitemap-cat h3 { font-size: var(--text-base); margin-bottom: var(--space-3); }
.sitemap-cat h3 a { color: var(--ink); }
@media (max-width: 600px) { .contact-form .form-grid, .team-card { grid-template-columns: 1fr; } .team-photo { width: 84px; height: 84px; } }

/* CTA / boutons d'action insérés dans le contenu (booste le CTR) */
.prose .cta-wrap { text-align: center; margin: var(--space-8) 0; }
.cta-btn {
  --cta-c1: var(--accent); --cta-c2: #4b3fa6;
  display: inline-flex; align-items: center; gap: 10px; position: relative; overflow: hidden;
  padding: 16px 34px; border-radius: 999px; font-family: var(--font-display);
  font-weight: 800; font-size: var(--text-md); letter-spacing: .2px; line-height: 1;
  color: #fff !important; text-decoration: none !important; cursor: pointer;
  background: linear-gradient(120deg, var(--cta-c1), var(--cta-c2));
  box-shadow: 0 10px 24px -8px rgba(48,43,99,.55); transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
.cta-btn:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 16px 32px -8px rgba(48,43,99,.65); filter: brightness(1.06); }
.cta-btn:active { transform: translateY(0) scale(.99); }
/* effet brillance qui traverse le bouton */
.cta-btn::after {
  content: ""; position: absolute; top: 0; left: -120%; width: 60%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.45), transparent);
  transform: skewX(-18deg); transition: left .6s ease;
}
.cta-btn:hover::after { left: 130%; }
/* variantes */
.cta-btn.cta-brass { --cta-c1: var(--brass); --cta-c2: #946f33; box-shadow: 0 10px 24px -8px rgba(176,138,74,.6); }
.cta-btn.cta-hot   { --cta-c1: #e0356b; --cta-c2: #b01e6a; box-shadow: 0 10px 24px -8px rgba(224,53,107,.6); }
.cta-btn.cta-dark  { --cta-c1: #2a2540; --cta-c2: #111018; box-shadow: 0 10px 24px -8px rgba(0,0,0,.5); }
.cta-btn.cta-outline { background: transparent; color: var(--accent) !important; border: 2px solid var(--accent); box-shadow: none; }
.cta-btn.cta-outline:hover { background: var(--accent); color: #fff !important; }
/* pulsation (attire l'oeil) */
.cta-btn.cta-pulse { animation: ctaPulse 1.8s ease-in-out infinite; }
@keyframes ctaPulse { 0%,100% { box-shadow: 0 10px 24px -8px rgba(48,43,99,.55), 0 0 0 0 rgba(48,43,99,.45); } 50% { box-shadow: 0 14px 28px -8px rgba(48,43,99,.6), 0 0 0 12px rgba(48,43,99,0); } }
@media (prefers-reduced-motion: reduce) { .cta-btn, .cta-btn::after, .cta-btn.cta-pulse { animation: none; transition: none; } }

/* in-article product callout */
.product-callout {
  display: grid; grid-template-columns: 130px 1fr auto; gap: var(--space-5); align-items: center;
  background: var(--accent-soft); border: 1px solid #d6d2ea; border-radius: var(--radius-lg);
  padding: var(--space-5); margin: var(--space-8) 0;
}
.product-callout .ph { aspect-ratio: 1/1; border-radius: var(--radius); border-color: #d6d2ea; }
.product-callout .pc-tag { font-size: 10px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.product-callout h4 { font-size: var(--text-md); color: var(--ink); margin: 4px 0 4px; }
.product-callout p { font-size: var(--text-sm); color: var(--ink-soft); }
.product-callout .pc-cta { display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
.product-callout .pc-price { font-family: var(--font-mono); font-weight: 700; color: var(--accent); font-size: var(--text-lg); }

/* tags / author box / related */
.article-foot { padding: 0 var(--space-12) var(--space-10); }
.tag-list { display: flex; flex-wrap: wrap; gap: var(--space-2); padding: var(--space-6) 0; border-top: 1px solid var(--border); }
.tag-list .t {
  font-size: var(--text-sm); font-weight: 700; padding: 6px 14px; border-radius: 999px;
  background: var(--surface-alt); border: 1px solid var(--border); color: var(--ink-soft);
}
.tag-list .t:hover { border-color: var(--accent); color: var(--accent); }

.author-box { display: grid; grid-template-columns: 72px 1fr; gap: var(--space-5); padding: var(--space-6); background: var(--surface-alt); border: 1px solid var(--border); border-radius: var(--radius-lg); align-items: center; }
.author-box .ph,
.author-box img,
.author-box picture { width: 72px; height: 72px; border-radius: 999px; }
.author-box img { object-fit: cover; }
.author-box .ab-name { font-size: var(--text-md); font-weight: 800; color: var(--ink); }
.author-box .ab-role { font-size: var(--text-xs); color: var(--brass); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.author-box p { font-size: var(--text-sm); color: var(--ink-soft); margin-top: 8px; }

.related { margin-top: var(--space-10); }

/* comments */
.comments { margin-top: var(--space-10); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--space-8) var(--space-10); }
.comments h2 { font-size: var(--text-xl); margin-bottom: var(--space-2); }
.comments .sub { font-size: var(--text-sm); color: var(--ink-mute); margin-bottom: var(--space-6); }
.form-grid { display: grid; gap: var(--space-4); }
.form-grid textarea, .form-grid input {
  width: 100%; border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 14px;
  font-size: var(--text-sm); font-family: inherit; background: var(--surface-alt); outline: none; color: var(--ink);
}
.form-grid textarea:focus, .form-grid input:focus { border-color: var(--accent); background: #fff; }
.form-grid .two { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
.comment { display: grid; grid-template-columns: 48px 1fr; gap: var(--space-4); padding: var(--space-5) 0; border-top: 1px solid var(--border); }
.comment .ph { width: 48px; height: 48px; border-radius: 999px; }
.comment .c-name { font-weight: 800; font-size: var(--text-sm); color: var(--ink); }
.comment .c-date { font-size: var(--text-xs); color: var(--ink-mute); }
.comment p { font-size: var(--text-sm); color: var(--ink-soft); margin-top: 6px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
.only-mobile { display: none; }

@media (max-width: 1080px) {
  .layout { grid-template-columns: 1fr; gap: var(--space-12); }
  .aside { position: static; }
}

@media (max-width: 860px) {
  :root { --text-3xl: 32px; --text-2xl: 26px; --text-xl: 22px; }
  .nav-inner { overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .nav-inner::-webkit-scrollbar { display: none; }
  .nav .nav-shop { margin-left: 0; }
  .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
  .hero-thumbs { grid-template-columns: repeat(4, 1fr); }
  .lead-card { grid-template-columns: 1fr; }
  .lead-card .card-media .ph { min-height: 220px; aspect-ratio: 16/9; }
  .lead-card .card-media img, .lead-card .card-media picture { min-height: 0; aspect-ratio: 16/9; }
  .lead-card .lc-body { padding: var(--space-8) var(--space-6); }
  .footer-grid { grid-template-columns: 1fr; gap: var(--space-8); }
  .article-head, .share-row, .article-hero figcaption, .prose, .article-foot { padding-left: var(--space-6); padding-right: var(--space-6); }
  .comments { padding: var(--space-6); }
}

@media (max-width: 600px) {
  .container { padding: 0 var(--space-4); }
  .topbar-inner { gap: var(--space-3); }
  .topbar-tools .search { display: none; }
  .topbar-tools .socials { display: none; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .hero-thumbs { grid-template-columns: repeat(3, 1fr); }
  /* Hero plus haut sur mobile : l'image respire et le titre n'est plus rogné. */
  .hero-main, .hero-main .ph { aspect-ratio: 3 / 4; }
  .hero-overlay { padding: var(--space-12) var(--space-5) var(--space-5); }
  .hero-overlay .excerpt { -webkit-line-clamp: 3; line-clamp: 3; display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }
  .promo-tiles { grid-template-columns: 1fr; }
  .product-callout { grid-template-columns: 1fr; text-align: center; }
  .product-callout .ph { width: 140px; margin: 0 auto; }
  .product-callout .pc-cta { align-items: center; }
  .form-grid .two { grid-template-columns: 1fr; }
  .brand .brand-tag { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  /* Partage : label seul sur sa ligne → les 4 icônes tiennent ensemble sur UNE ligne,
     puis « Enregistrer » en pleine largeur dessous. */
  .share-row { gap: 8px; }
  .share-row .lbl { flex: 1 1 100%; margin: 0 0 2px; }
  .share-row .save { margin-left: 0; flex: 1 1 100%; justify-content: center; }
}

/* ---------- FAQ ACCORDION ---------- */
.faq-block { margin: var(--space-10) 0; }
.faq-block h2 { font-size: var(--text-xl); margin-bottom: var(--space-5); }
.faq-list { display: flex; flex-direction: column; gap: var(--space-3); }
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  transition: border-color var(--t), box-shadow var(--t);
}
.faq-item:has(.faq-trigger[aria-expanded="true"]) {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-sm);
}
.faq-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-5);
  background: none;
  border: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-md);
  line-height: 1.35;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}
.faq-trigger:hover { background: var(--surface-alt); }
.faq-chevron { flex: none; color: var(--accent); transition: transform var(--t); }
.faq-trigger[aria-expanded="true"] .faq-chevron { transform: rotate(180deg); }
.faq-panel {
  padding: var(--space-4) var(--space-5);
  border-top: 1px solid var(--border);
  color: var(--ink-soft);
  line-height: 1.7;
}
.faq-panel > *:first-child { margin-top: 0; }
.faq-panel > *:last-child { margin-bottom: 0; }
.faq-panel p { margin: 0 0 var(--space-3); }

/* ---------- GLOSSAIRE ---------- */
.glsx-index { max-width: 900px; margin: 0 auto; }
.glsx-search { position: relative; margin-bottom: var(--space-6); }
.glsx-search .search { background: var(--surface); border: 1px solid var(--border-strong); padding: var(--space-3) var(--space-4); }
.glsx-results {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 20;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-md); overflow: hidden;
}
.glsx-results a { display: block; padding: 10px var(--space-4); border-bottom: 1px solid var(--border); }
.glsx-results a:last-child { border-bottom: 0; }
.glsx-results a:hover { background: var(--accent-soft); }
.glsx-results a span { display: block; font-size: var(--text-sm); color: var(--ink-mute); }
.glsx-results a em { color: var(--brass); font-style: normal; font-size: var(--text-sm); }
.glsx-empty { padding: 10px var(--space-4); color: var(--ink-mute); }
.glsx-alpha { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: var(--space-8); }
.glsx-alpha a, .glsx-alpha span {
  display: grid; place-items: center; width: 32px; height: 32px; border-radius: var(--radius-sm);
  font-weight: 700; font-size: var(--text-sm);
}
.glsx-alpha a { background: var(--accent-soft); color: var(--accent); }
.glsx-alpha a:hover { background: var(--accent); color: #fff; }
.glsx-alpha span { color: var(--border-strong); }
.glsx-group { margin-bottom: var(--space-8); }
.glsx-letter {
  font-size: var(--text-2xl); color: var(--accent); border-bottom: 2px solid var(--border);
  padding-bottom: var(--space-2); margin-bottom: var(--space-4); scroll-margin-top: 90px;
}
.glsx-list { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); }
.glsx-card {
  display: block; padding: var(--space-4); background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius); transition: var(--t);
}
.glsx-card:hover { border-color: var(--border-strong); box-shadow: var(--shadow-sm); transform: translateY(-1px); }
.glsx-term { display: block; font-weight: 800; color: var(--ink); }
.glsx-def { display: block; font-size: var(--text-sm); color: var(--ink-mute); margin-top: 2px; }

/* Terme : encadré def courte + synonymes */
.glsx-shortdef {
  background: var(--accent-soft); border-left: 3px solid var(--accent);
  padding: var(--space-4) var(--space-5); border-radius: var(--radius); font-size: var(--text-md);
  color: var(--accent-ink); margin-bottom: var(--space-5);
}
.glsx-syn { color: var(--ink-soft); margin-bottom: var(--space-5); }

/* Auto-linking + infobulle */
.glsx-autolink {
  color: var(--accent); border-bottom: 1px dotted var(--brass); text-decoration: none; cursor: help;
}
.glsx-autolink:hover { background: var(--brass-soft); }
.glsx-tooltip {
  position: absolute; z-index: 50; max-width: 280px; background: var(--ink); color: #fff;
  padding: 10px 12px; border-radius: var(--radius); font-size: var(--text-sm); line-height: 1.5;
  box-shadow: var(--shadow-md); pointer-events: none; opacity: 0; transition: opacity var(--t-fast);
}
.glsx-tooltip.show { opacity: 1; }
.glsx-tooltip b { display: block; color: var(--brass-soft); margin-bottom: 2px; }

@media (max-width: 600px) { .glsx-list { grid-template-columns: 1fr; } }

/* ---------- QUIZ ---------- */
.sqsx-quiz { max-width: 680px; margin: 0 auto; --sqsx-primary: var(--accent); }
.sqsx-screen { display: none; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: var(--space-8); text-align: center; box-shadow: var(--shadow-sm); }
.sqsx-screen.is-active { display: block; animation: sqsxIn .25s ease; }
@keyframes sqsxIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.sqsx-cover { width: 100%; max-height: 300px; object-fit: cover; border-radius: var(--radius); margin-bottom: var(--space-5); }
.sqsx-quiz h1 { font-size: var(--text-2xl); }
.sqsx-quiz h2 { font-size: var(--text-xl); }
.sqsx-lead { color: var(--ink-soft); margin: var(--space-3) 0 var(--space-5); }
.sqsx-count { color: var(--ink-mute); font-size: var(--text-sm); margin-bottom: var(--space-5); }
.sqsx-btn { background: var(--sqsx-primary); border-color: var(--sqsx-primary); }
.sqsx-btn:hover { filter: brightness(.92); background: var(--sqsx-primary); color: #fff; }
.sqsx-progress { height: 6px; background: var(--border); border-radius: 999px; overflow: hidden; margin-bottom: var(--space-5); }
.sqsx-progress-bar { display: block; height: 100%; width: 0; background: var(--sqsx-primary); transition: width var(--t); }
.sqsx-qnum { color: var(--sqsx-primary); font-weight: 700; font-size: var(--text-sm); text-transform: uppercase; letter-spacing: .05em; }
.sqsx-qtext { margin: var(--space-3) 0 var(--space-6); }
.sqsx-answers { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); }
.sqsx-answer { display: flex; flex-direction: column; align-items: center; gap: var(--space-2);
  background: var(--surface-alt); border: 1px solid var(--border-strong); border-radius: var(--radius);
  padding: var(--space-4); font-weight: 600; cursor: pointer; transition: var(--t); color: var(--ink); font-family: inherit; }
.sqsx-answer:hover { border-color: var(--sqsx-primary); background: var(--accent-soft); transform: translateY(-1px); }
.sqsx-answer img { width: 100%; height: 120px; object-fit: cover; border-radius: var(--radius-sm); }
.sqsx-form { display: flex; flex-direction: column; gap: var(--space-3); max-width: 360px; margin: var(--space-4) auto 0; }
.sqsx-form input[type=text], .sqsx-form input[type=email] { padding: 12px 14px; border: 1px solid var(--border-strong); border-radius: var(--radius); font-family: inherit; }
.sqsx-optin-check { display: flex; gap: 8px; align-items: flex-start; font-size: var(--text-sm); color: var(--ink-soft); text-align: left; }
.sqsx-skip { color: var(--ink-mute); font-size: var(--text-sm); }
.sqsx-analyzing { margin-top: var(--space-4); color: var(--sqsx-primary); font-weight: 600; }
.sqsx-result-img { width: 100%; max-height: 320px; object-fit: cover; border-radius: var(--radius); margin-bottom: var(--space-4); }
.sqsx-result-desc { color: var(--ink-soft); margin: var(--space-3) 0 var(--space-5); text-align: left; }
.sqsx-product { background: var(--brass-soft); border: 1px solid var(--brass); border-radius: var(--radius); padding: var(--space-6) var(--space-5); margin-bottom: var(--space-5); text-align: center; }
.sqsx-product-label { display: inline-block; font-size: var(--text-sm); text-transform: uppercase; letter-spacing: .05em; color: var(--brass); font-weight: 800; }
.sqsx-product-img { width: 150px; height: auto; object-fit: contain; margin: var(--space-3) auto; display: block; filter: drop-shadow(0 8px 18px rgba(176,138,74,.35)); }
.sqsx-product-cta { margin-top: var(--space-4); }
.sqsx-share { display: flex; gap: var(--space-3); align-items: center; justify-content: center; flex-wrap: wrap; margin-bottom: var(--space-5); }
.sqsx-sh { font-weight: 600; color: var(--accent); cursor: pointer; }
.sqsx-share span { color: var(--ink-mute); font-size: var(--text-sm); }
@media (max-width: 560px) { .sqsx-answers { grid-template-columns: 1fr; } .sqsx-screen { padding: var(--space-5); } }

/* ---------- DISCLAIMER OVERLAY ---------- */
#senkys-overlay {
  position: fixed; inset: 0; z-index: 999999; display: grid; place-items: center;
  background: rgba(28, 31, 35, .72); backdrop-filter: blur(4px); padding: var(--space-5);
}
/* L'attribut hidden doit l'emporter sur le sélecteur ID ci-dessus. */
#senkys-overlay[hidden] { display: none !important; }
#senkys-box {
  background: var(--surface); border-radius: 16px; max-width: 520px; width: 100%;
  padding: var(--space-10) var(--space-8); text-align: center; box-shadow: var(--shadow-md);
}
#senkys-box h2 { font-size: var(--text-xl); margin-bottom: var(--space-3); }
#senkys-box p { color: var(--ink-soft); margin-bottom: var(--space-6); }
.senkys-btns { display: flex; gap: var(--space-3); justify-content: center; flex-wrap: wrap; }
.senkys-btn {
  display: inline-flex; align-items: center; justify-content: center; min-width: 140px;
  padding: 12px 22px; border-radius: var(--radius); font-weight: 700; border: 0; cursor: pointer;
  font-family: inherit; font-size: var(--text-base); color: #fff; text-decoration: none;
}
.senkys-btn-enter { background: #2da44e; }
.senkys-btn-enter:hover { background: #298c43; color: #fff; }
.senkys-btn-exit { background: #cf222e; }
.senkys-btn-exit:hover { background: #b51d28; color: #fff; }

/* ---------- AD BADGE (posts sponsorisés injectés) ---------- */
.senkys-ad-thumb-wrap { position: relative; display: block; }
.senkys-ad-badge {
  position: absolute; top: 8px; left: 8px; background: rgba(0, 0, 0, .62); color: #fff;
  font-size: .68rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 3px; z-index: 2; pointer-events: none;
}

/* ================= HEADER REFONTE ================= */
.topbar-inner { display: flex; align-items: center; gap: var(--space-5); }
.header-search {
  flex: 1; max-width: 480px; position: relative; background: var(--surface-alt);
  border: 1px solid var(--border-strong); border-radius: 999px; padding: 9px 16px; display: flex; align-items: center; gap: 8px;
}
.header-search input { border: 0; background: none; outline: none; width: 100%; font-family: inherit; font-size: var(--text-base); }
.topbar-tools { display: flex; align-items: center; gap: var(--space-3); margin-left: auto; }

/* Dropdown résultats */
.hs-results {
  position: absolute; top: calc(100% + 10px); left: 0; right: 0; z-index: 60; display: none;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md); overflow: hidden; max-height: 60vh; overflow-y: auto;
}
.hs-results.show { display: block; }
.hs-results a { display: flex; align-items: center; gap: 10px; padding: 11px 16px; border-bottom: 1px solid var(--border); font-weight: 600; color: var(--ink); }
.hs-results a:last-child { border-bottom: 0; }
.hs-results a:hover { background: var(--accent-soft); }
.hs-type {
  flex: none; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
  background: var(--accent-soft); color: var(--accent); padding: 2px 8px; border-radius: 999px;
}
.hs-empty { padding: 14px 16px; color: var(--ink-mute); }

/* CTAs */
.cta-livecam { background: var(--accent); display: inline-flex; align-items: center; gap: 7px; }
.cta-livecam:hover { background: var(--accent-ink); color: #fff; }
.cta-message { position: relative; display: inline-flex; align-items: center; gap: 7px; }
.cta-badge {
  position: absolute; top: -7px; right: -7px; min-width: 20px; height: 20px; padding: 0 5px;
  background: #e0245e; color: #fff; border-radius: 999px; font-size: 11px; font-weight: 800;
  display: grid; place-items: center; box-shadow: 0 0 0 2px var(--bg); animation: badgeBlink 1.1s ease-in-out infinite;
}
@keyframes badgeBlink { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .45; transform: scale(.88); } }

/* Boutons mobile (cachés en desktop) */
.hs-icon-btn, .hamburger { display: none; background: none; border: 0; cursor: pointer; color: var(--ink); padding: 6px; }
.hamburger { flex-direction: column; gap: 4px; width: 34px; }
.hamburger span { display: block; height: 2.5px; width: 22px; background: var(--ink); border-radius: 2px; }

/* Bannière promo — se fige en haut au scroll (CTR) */
.header-banner {
  background: var(--accent); color: #fff;
  position: sticky; top: 0; z-index: 70;
  transition: box-shadow var(--t);
}
.header-banner.is-stuck { box-shadow: 0 4px 14px rgba(28,31,35,.18); }
.header-banner-inner { display: flex; align-items: center; justify-content: center; gap: var(--space-4); padding: 9px 0; flex-wrap: wrap; font-weight: 600; }
.header-banner .btn { padding: 6px 14px; }

/* Off-canvas */
.offcanvas { position: fixed; inset: 0; z-index: 100000; background: rgba(28,31,35,.5); display: block; }
.offcanvas[hidden] { display: none; }
.offcanvas-panel {
  position: absolute; top: 0; right: 0; height: 100%; width: min(86vw, 360px); background: var(--surface);
  padding: var(--space-5); overflow-y: auto; box-shadow: -8px 0 24px rgba(0,0,0,.15); animation: ocIn .2s ease;
}
@keyframes ocIn { from { transform: translateX(100%); } to { transform: none; } }
.offcanvas-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--space-5); }
.offcanvas-head .brand-mark { font-weight: 900; font-size: 20px; color: var(--accent); }
.offcanvas-head .brand-mark em { color: var(--brass); font-style: normal; }
.oc-close { background: none; border: 0; font-size: 30px; line-height: 1; cursor: pointer; color: var(--ink-mute); }
.oc-nav { display: flex; flex-direction: column; }
.oc-nav a { display: flex; align-items: center; gap: 14px; padding: 14px 6px; border-bottom: 1px solid var(--border); font-weight: 700; font-size: var(--text-md); color: var(--ink); }
.oc-nav a:hover { color: var(--accent); }
.oc-ico { flex: none; width: 26px; height: 26px; color: var(--accent); }
.oc-ico svg { width: 26px; height: 26px; }

/* Modale recherche */
.search-modal { position: fixed; inset: 0; z-index: 100000; background: rgba(28,31,35,.55); display: block; padding: 14px; }
.search-modal[hidden] { display: none; }
.search-modal-box { background: var(--surface); border-radius: var(--radius-lg); max-width: 560px; margin: 0 auto; padding: var(--space-4); }
.search-modal-head { display: flex; gap: 10px; align-items: center; }
.search-modal .search { background: var(--surface-alt); border: 1px solid var(--border-strong); padding: 10px 14px; }
.hs-results-m { position: static; box-shadow: none; border: 0; margin-top: 10px; display: block; }

/* ----- Bascule responsive du header ----- */
@media (max-width: 900px) {
  .header-search { display: none; }
  .nav { display: none; }
  .cta-txt { display: none; }
  .cta-livecam, .cta-message { padding: 9px 11px; min-width: 0; }
  .cta-badge { top: -6px; right: -6px; }
  .hs-icon-btn, .hamburger { display: inline-flex; }
  .topbar-tools { gap: var(--space-2); }
}
@media (min-width: 901px) {
  .offcanvas, .search-modal { display: none !important; }
}
