/*
Theme Name: Zvoon v2
Theme URI: https://zvoon.net
Description: Thème magazine Numerama × Frandroid (dark, violet/rose) pour zvoon.net. JS vanilla, 1 CSS, fonts self-hosted.
Author: Digicalys
Version: 1.2.9
License: GPL-2.0-or-later
Text Domain: zvoon
*/

/* ============ TOKENS ============ */
:root {
  --bg: #121319;
  --bg-elev: #171923;
  --surface: #1a1c26;
  --surface-2: #22242f;
  --border: #2a2d3d;
  --border-soft: #232633;
  --text: #eceef4;
  --muted: #9a9db1;
  --faint: #6b6e82;
  --accent: #7c5cff;
  --accent-2: #ff3d71;
  --grad: linear-gradient(135deg, #7c5cff 0%, #ff3d71 100%);
  --grad-soft: linear-gradient(135deg, rgba(124, 92, 255, .16), rgba(255, 61, 113, .16));
  --ok: #2fd18c;
  --warn: #ffb020;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(0, 0, 0, .35);
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --container: 1200px;
  --header-h: 64px;
}

/* ============ RESET ============ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  font-weight: 400;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
p { margin: 0 0 1.1em; }
ul, ol { margin: 0 0 1.1em; padding-left: 1.3em; }
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; font-size: 15px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--accent); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; color: #fff; }

/* ============ LAYOUT ============ */
.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.site-main { padding: 28px 0 56px; }

/* ============ HEADER ============ */
.topbar {
  background: #0d0e14; border-bottom: 1px solid var(--border-soft);
  font-size: 12.5px; color: var(--muted);
}
.topbar .container { display: flex; align-items: center; gap: 18px; height: 34px; }
.topbar a { color: var(--muted); }
.topbar a:hover { color: #fff; }
.topbar-brand { font-family: var(--font-display); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; font-size: 11px; color: #fff; }
.topbar-spacer { flex: 1; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(18, 19, 25, .92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-soft);
  transition: box-shadow .2s;
}
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(0, 0, 0, .4); }
.header-inner { display: flex; align-items: center; gap: 22px; height: var(--header-h); }
.logo { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo svg { display: block; }
.logo-word { font-family: var(--font-display); font-weight: 700; font-size: 26px; letter-spacing: -.02em; }
.logo-word em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

.main-nav { flex: 1; min-width: 0; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.main-nav li { position: relative; }
.main-nav a {
  display: inline-block; padding: 9px 13px; border-radius: 9px;
  font-family: var(--font-display); font-weight: 500; font-size: 14.5px; color: var(--muted);
  white-space: nowrap;
}
.main-nav a:hover { color: #fff; background: var(--surface-2); }
/* Item actif : texte dégradé + trait de scan (charte — signature graphique n°2). */
.main-nav .current-menu-item > a, .main-nav .current-cat > a {
  color: #b9a8ff; background: none; position: relative;
}
.main-nav .current-menu-item > a::after, .main-nav .current-cat > a::after {
  content: ""; position: absolute; left: 13px; right: 13px; bottom: 3px;
  height: 2px; border-radius: 2px; background: var(--grad);
}
.main-nav .menu-item-has-children > a::after { content: "▾"; margin-left: 5px; font-size: 11px; opacity: .7; }
.main-nav .sub-menu {
  position: absolute; top: 100%; left: 0; min-width: 210px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  padding: 6px; margin: 0; display: none; flex-direction: column; gap: 0; box-shadow: var(--shadow);
}
.main-nav li:hover > .sub-menu, .main-nav li:focus-within > .sub-menu { display: flex; }
.main-nav .sub-menu a { display: block; font-size: 14px; padding: 8px 12px; }

.header-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text); transition: border-color .15s, background .15s;
}
.icon-btn:hover { border-color: var(--accent); background: var(--surface-2); }
.icon-btn svg { width: 19px; height: 19px; }
.btn-grad {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--grad); color: #fff !important; border: 0; border-radius: 10px;
  font-family: var(--font-display); font-weight: 600; font-size: 14px;
  padding: 10px 18px; transition: filter .15s, transform .15s;
}
.btn-grad > * + * { margin-left: 8px; }
.btn-grad svg { flex: 0 0 auto; }
.btn-grad:hover { filter: brightness(1.12); transform: translateY(-1px); }
.nav-toggle { display: none; }

/* Search overlay */
.search-overlay {
  position: fixed; inset: 0; z-index: 100; display: none;
  background: rgba(10, 11, 16, .82); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.search-overlay.is-open { display: flex; align-items: flex-start; justify-content: center; padding: 14vh 20px 0; }
.search-panel { width: 100%; max-width: 640px; }
.search-panel form { display: flex; gap: 10px; }
.search-panel input[type="search"] {
  flex: 1; background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  color: var(--text); padding: 15px 18px; font-size: 17px; outline: none;
}
.search-panel input[type="search"]:focus { border-color: var(--accent); }
.search-close { margin-top: 18px; background: none; border: 0; color: var(--muted); font-size: 14px; }
.search-close:hover { color: #fff; }

/* ============ SECTION TITLES ============ */
.section { margin-bottom: 44px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.section-title {
  font-size: 24px; margin: 0; display: inline-flex; align-items: center; gap: 12px;
}
.section-title::before { content: ""; width: 26px; height: 4px; border-radius: 2px; background: var(--grad); flex-shrink: 0; }
.section-link { font-size: 14px; font-weight: 600; color: var(--accent); }
.section-link:hover { color: var(--accent-2); }

/* ============ BADGES / META ============ */
.badge {
  display: inline-block; font-family: var(--font-display); font-weight: 600; font-size: 11.5px;
  letter-spacing: .06em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px;
  background: var(--grad-soft); color: #cdbdff; border: 1px solid rgba(124, 92, 255, .35);
}
.badge.cat-couleur { border: 0; color: #fff; }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; color: var(--faint); }
.post-meta time { color: var(--muted); }
.post-meta .dot::before { content: "·"; margin-right: 8px; }
.reading-time::before { content: "◷"; margin-right: 5px; }

/* ============ CARDS ============ */
.grid { display: grid; gap: 22px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius);
  overflow: hidden; transition: transform .18s, border-color .18s, box-shadow .18s;
}
.card:hover { transform: translateY(-4px); border-color: rgba(124, 92, 255, .5); box-shadow: var(--shadow); }
.card-media { position: relative; aspect-ratio: 16/10; overflow: hidden; background: var(--surface-2); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.card:hover .card-media img { transform: scale(1.04); }
.card-media .badge { position: absolute; top: 12px; left: 12px; z-index: 2; }
.card-media .no-thumb {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  background: var(--grad-soft); color: var(--faint); font-family: var(--font-display); font-size: 28px; font-weight: 700;
}
.card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-title { font-size: 17px; margin: 0; line-height: 1.35; }
.card-title a::after { content: ""; position: absolute; inset: 0; }
.card:hover .card-title a { color: #fff; }
.card .post-meta { margin-top: auto; }

/* Hero (Numerama) */
.hero { display: grid; grid-template-columns: 1.7fr 1fr; gap: 22px; margin-bottom: 44px; }
.hero-main {
  position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border-soft);
  min-height: 420px; display: flex; align-items: flex-end;
}
.hero-main .hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-main::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(18, 19, 25, .05) 30%, rgba(18, 19, 25, .92) 88%);
}
.hero-content { position: relative; z-index: 2; padding: 26px; }
.hero-content .badge { margin-bottom: 12px; }
.hero-title { font-size: clamp(26px, 3.4vw, 38px); margin: 0 0 12px; }
.hero-title a::after { content: ""; position: absolute; inset: 0; }
.hero-excerpt { color: #cfd2e0; max-width: 640px; margin: 0 0 10px; font-size: 15.5px; }
.hero-side { display: flex; flex-direction: column; gap: 14px; }
.hero-item {
  display: flex; gap: 14px; background: var(--surface); border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm); padding: 12px; flex: 1; transition: border-color .15s;
}
.hero-item:hover { border-color: rgba(124, 92, 255, .5); }
.hero-item img { width: 108px; height: 76px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
.hero-item h3 { font-size: 15px; margin: 0; line-height: 1.35; }
.hero-item a::after { content: ""; position: absolute; inset: 0; }
.hero-item { position: relative; }
.hero-item .post-meta { font-size: 12px; margin-top: 4px; }

/* ============ ACCUEIL : MISE EN AVANT + LISTES ============ */
.section-feature { margin-bottom: 36px; }
.feature { display: grid; grid-template-columns: minmax(0, 1.85fr) minmax(0, 1fr); gap: 28px; }
.feature-lead { position: relative; display: flex; flex-direction: column; min-width: 0; }
.feature-media {
  position: relative; display: block; aspect-ratio: 16/9; overflow: hidden;
  border-radius: var(--radius); border: 1px solid var(--border-soft); background: var(--surface-2);
  margin-bottom: 16px;
}
.feature-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.feature-lead:hover .feature-media img { transform: scale(1.03); }
.feature-media .no-thumb {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  background: var(--grad-soft); color: var(--faint); font-family: var(--font-display); font-size: 44px; font-weight: 700;
}
.feature-badge { position: absolute; top: 14px; left: 14px; z-index: 2; }
.feature-title { font-size: 26px; line-height: 1.22; margin: 0 0 10px; }
.feature-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.feature-excerpt { color: var(--muted); font-size: 15.5px; line-height: 1.55; margin: 0 0 12px; max-width: 660px; }
.feature-lead .post-meta { margin-top: auto; }
.feature-rail { display: flex; flex-direction: column; min-width: 0; }
.rail-item {
  position: relative; display: flex; gap: 14px; align-items: flex-start;
  padding: 13px 0; border-bottom: 1px solid var(--border-soft); flex: 1;
}
.rail-item:first-child { padding-top: 2px; }
.rail-item:last-child { border-bottom: 0; }
.rail-thumb { flex-shrink: 0; display: block; }
.rail-thumb img, .rail-thumb .no-thumb { width: 118px; height: 74px; object-fit: cover; border-radius: 8px; }
.rail-thumb .no-thumb {
  display: flex; align-items: center; justify-content: center;
  background: var(--grad-soft); color: var(--faint); font-family: var(--font-display); font-weight: 700; font-size: 20px;
}
.rail-title { font-size: 15.5px; line-height: 1.35; margin: 0 0 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rail-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.rail-item .post-meta { font-size: 12px; margin: 0; }
.rail-item:hover .rail-title a, .feature-lead:hover .feature-title a { color: #fff; }

.list-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 34px; row-gap: 4px; }
.section-list { margin-bottom: 16px; min-width: 0; }
.section-list .section-head { margin-bottom: 4px; }
.list-item { position: relative; display: flex; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--border-soft); }
.list-item:last-child { border-bottom: 0; }
.list-thumb { flex-shrink: 0; display: block; }
.list-thumb img, .list-thumb .no-thumb { width: 104px; height: 65px; object-fit: cover; border-radius: 8px; }
.list-thumb .no-thumb {
  display: flex; align-items: center; justify-content: center;
  background: var(--grad-soft); color: var(--faint); font-family: var(--font-display); font-weight: 700; font-size: 20px;
}
.list-body { min-width: 0; }
.list-title { font-size: 15.5px; line-height: 1.35; margin: 0 0 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.list-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.list-item .post-meta { font-size: 12px; margin: 0; }
.list-item:hover .list-title a { color: #fff; }

/* CTA Transparence */
.cta-transparence {
  position: relative; overflow: hidden; border-radius: var(--radius);
  background: linear-gradient(120deg, #1c1836, #2a1633);
  border: 1px solid rgba(124, 92, 255, .4);
  padding: 30px 28px; display: flex; align-items: center; justify-content: space-between; gap: 24px;
  margin-bottom: 44px;
}
.cta-transparence::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(600px 200px at 12% 0%, rgba(124, 92, 255, .25), transparent 60%),
              radial-gradient(600px 200px at 88% 100%, rgba(255, 61, 113, .22), transparent 60%);
}
.cta-transparence > * { position: relative; z-index: 1; }
.cta-transparence h2 { font-size: 22px; margin: 0 0 6px; }
.cta-transparence p { margin: 0; color: var(--muted); max-width: 560px; }
.cta-actions { display: flex; gap: 10px; flex-shrink: 0; flex-wrap: wrap; }
.btn-ghost {
  display: inline-flex; align-items: center; padding: 10px 18px; border-radius: 10px;
  border: 1px solid var(--border); color: var(--text); font-family: var(--font-display); font-weight: 600; font-size: 14px;
  background: var(--surface);
}
.btn-ghost:hover { border-color: var(--accent); color: #fff; }

/* Layout article + sidebar */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 34px; align-items: start; }
.sidebar { position: sticky; top: calc(var(--header-h) + 20px); display: flex; flex-direction: column; gap: 26px; }
.widget {
  background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius); padding: 20px;
}
.widget-title { font-size: 15px; text-transform: uppercase; letter-spacing: .08em; margin: 0 0 14px; color: var(--muted); }
.widget ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.widget li { border-bottom: 1px solid var(--border-soft); }
.widget li:last-child { border-bottom: 0; }
.widget li a { display: block; padding: 9px 2px; font-size: 14.5px; color: var(--muted); }
.widget li a:hover { color: #fff; }

/* Recherche (widget + partout) */
.zv-search { position: relative; display: flex; }
.zv-search input[type="search"] {
  width: 100%; background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 10px; color: var(--text); padding: 11px 46px 11px 14px; font-size: 14px;
  transition: border-color .15s;
}
.zv-search input[type="search"]:focus { outline: none; border-color: var(--accent); }
.zv-search button {
  position: absolute; right: 5px; top: 5px; bottom: 5px; width: 36px;
  display: flex; align-items: center; justify-content: center;
  background: var(--grad); border: 0; border-radius: 7px; color: #fff;
}
.zv-search button:hover { filter: brightness(1.12); }
.zv-search svg { width: 17px; height: 17px; }

/* Sélecteurs de widget (catégories dropdown) */
.widget select {
  width: 100%; appearance: none; -webkit-appearance: none;
  background: var(--surface-2) url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%239a9db1' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center;
  border: 1px solid var(--border); border-radius: 10px; color: var(--text);
  padding: 11px 36px 11px 14px; font-size: 14px; cursor: pointer;
  transition: border-color .15s;
}
.widget select:hover, .widget select:focus { border-color: var(--accent); outline: none; }

/* Nuage d'étiquettes en chips */
.tagcloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tagcloud a {
  display: inline-block; padding: 6px 13px; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--border-soft);
  color: var(--muted) !important; font-size: 13px !important; line-height: 1.4;
  transition: border-color .15s, color .15s, transform .15s;
}
.tagcloud a:hover { color: #fff !important; border-color: var(--accent); transform: translateY(-1px); }

/* Bannière de catégorie (colonne droite de l'en-tête d'archive) */
.archive-banner {
  margin: 0; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border-soft); align-self: stretch; min-height: 220px;
}
.archive-banner img { width: 100%; height: 100%; object-fit: cover; }

/* En-tête d'archive : texte + image à droite, ou texte pleine largeur */
.archive-head.has-image .archive-head-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
  gap: 34px; align-items: center;
}
.archive-head .archive-desc { max-width: none; }

/* Texte 2 de catégorie */
.archive-desc2 {
  margin-top: 46px; padding-top: 34px; border-top: 1px solid var(--border);
}
.archive-desc2-content { max-width: 760px; }

/* ============ SINGLE ============ */
.breadcrumb { font-size: 13px; color: var(--faint); margin-bottom: 14px; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: #fff; }
.breadcrumb .sep { margin: 0 7px; color: var(--faint); }

.single-head { max-width: 820px; margin-bottom: 22px; }
.single-head h1 { font-size: clamp(28px, 4vw, 42px); margin: 14px 0 16px; }
.single-lead { font-size: 18px; color: var(--muted); line-height: 1.6; }
.single-hero { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border-soft); margin-bottom: 30px; }
.single-hero img { width: 100%; }

.entry-content { font-size: 17px; line-height: 1.75; color: #d8dae4; }
.entry-content > * { max-width: 760px; }

/* Pages statiques : contenu sur toute la largeur du conteneur. */
body.page .single-head,
body.page .entry-content > * { max-width: none; }

/* Titres de contenu */
.entry-content h2 {
  font-size: 26px; margin: 1.7em 0 .7em; padding-bottom: .35em; position: relative;
  color: #fff; scroll-margin-top: 90px;
}
.entry-content h2::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 52px; height: 3px; border-radius: 2px; background: var(--grad);
}
.entry-content h3 { font-size: 21px; margin: 1.5em 0 .5em; color: #fff; scroll-margin-top: 90px; }
.entry-content h3::before {
  content: ""; display: inline-block; width: 14px; height: 14px; margin-right: 10px;
  border-radius: 4px; background: var(--grad); opacity: .85;
}
.entry-content h4 { font-size: 17.5px; margin: 1.3em 0 .4em; color: #e8e9ef; text-transform: none; }
.entry-content h5, .entry-content h6 { font-size: 16px; margin: 1.2em 0 .4em; color: var(--muted); }

/* Liens */
.entry-content a { color: #b7a6ff; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(124, 92, 255, .45); text-decoration-thickness: 1px; transition: color .15s, text-decoration-color .15s; }
.entry-content a:hover { color: #fff; text-decoration-color: var(--accent-2); }

/* Listes */
.entry-content ul li, .entry-content ol li { margin-bottom: .45em; }
.entry-content ul li::marker { color: var(--accent); }
.entry-content ol li::marker { color: var(--accent-2); font-weight: 600; }
.entry-content li > ul, .entry-content li > ol { margin: .4em 0 .4em; }

/* Citations */
.entry-content blockquote {
  margin: 1.6em 0; padding: 18px 24px 18px 22px; position: relative;
  border-left: 3px solid var(--accent);
  background: var(--surface); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--muted); font-style: italic;
}
.entry-content blockquote p:last-child { margin-bottom: 0; }
.entry-content blockquote cite { display: block; margin-top: .6em; font-size: 13.5px; color: var(--faint); font-style: normal; }

/* Tableaux */
.entry-content table {
  width: 100%; border-collapse: collapse; font-size: 15px; margin: 1.4em 0;
  background: var(--surface); border-radius: var(--radius-sm); overflow: hidden;
  box-shadow: 0 0 0 1px var(--border);
}
.entry-content th, .entry-content td { border: 0; border-bottom: 1px solid var(--border-soft); padding: 11px 14px; text-align: left; vertical-align: top; }
.entry-content thead th { background: var(--surface-2); font-family: var(--font-display); font-weight: 600; font-size: 13.5px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.entry-content tbody tr:nth-child(even) { background: rgba(255, 255, 255, .02); }
.entry-content tbody tr:hover { background: rgba(124, 92, 255, .06); }
.entry-content tbody tr:last-child td { border-bottom: 0; }

/* Images & médias */
.entry-content img { border-radius: var(--radius-sm); height: auto; }
.entry-content figure { margin: 1.6em 0; }
.entry-content iframe { max-width: 100%; border: 0; border-radius: var(--radius-sm); }

/* Code & séparateurs */
.entry-content pre { background: #0d0e14; border: 1px solid var(--border-soft); border-radius: var(--radius-sm); padding: 16px; overflow: auto; font-size: 14px; }
.entry-content code { background: var(--surface-2); border-radius: 5px; padding: 2px 6px; font-size: .9em; }
.entry-content pre code { background: none; padding: 0; }
.entry-content hr { border: 0; height: 1px; margin: 2.2em 0; background: linear-gradient(90deg, var(--accent), var(--accent-2), transparent); }
.entry-content kbd { background: var(--surface-2); border: 1px solid var(--border); border-bottom-width: 2px; border-radius: 5px; padding: 2px 7px; font-size: .85em; }
.entry-content mark { background: rgba(255, 176, 32, .25); color: #ffcf7d; border-radius: 4px; padding: 0 4px; }
.entry-content strong { color: #fff; font-weight: 600; }
.entry-content details { background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius-sm); padding: 12px 16px; }
.entry-content summary { cursor: pointer; font-family: var(--font-display); font-weight: 600; }
.entry-content .alignleft { float: left; margin: 6px 26px 16px 0; }
.entry-content .alignright { float: right; margin: 6px 0 16px 26px; }
.entry-content .aligncenter { margin-left: auto; margin-right: auto; text-align: center; display: block; }
.entry-content::after { content: ""; display: table; clear: both; }

/* TOC */
.toc {
  background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius-sm);
  padding: 16px 18px; margin: 26px 0; font-size: 14.5px;
}
.toc-title { font-family: var(--font-display); font-weight: 600; margin-bottom: 8px; display: flex; align-items: center; justify-content: space-between; cursor: pointer; }
.toc ol { margin: 0; padding-left: 20px; }
.toc a { color: var(--muted); }
.toc a:hover { color: var(--accent); }
.toc.is-collapsed ol { display: none; }

/* Related */
.related-card { min-height: 100%; }
.author-box {
  display: flex; gap: 16px; align-items: center;
  background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius);
  padding: 18px 20px; margin: 34px 0;
}
.author-avatar { width: 56px; height: 56px; border-radius: 50%; overflow: hidden; flex-shrink: 0; background: var(--grad-soft); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 700; font-size: 22px; color: #cdbdff; }
.author-box p { margin: 0; font-size: 14px; color: var(--muted); }
.author-box .author-name { font-family: var(--font-display); font-weight: 600; color: var(--text); }

/* ============ COMMENTS ============ */
.comments-area { margin-top: 40px; max-width: 760px; }
.comment-list { list-style: none; padding: 0; margin: 0 0 30px; }
.comment-list li { border-bottom: 1px solid var(--border-soft); padding: 16px 0; }
.comment-meta { font-size: 13px; color: var(--faint); margin-bottom: 6px; }
.comment-body { font-size: 15px; color: #d8dae4; }
.comment-form label { display: block; font-size: 14px; margin-bottom: 6px; color: var(--muted); }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
  width: 100%; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
  color: var(--text); padding: 11px 14px; margin-bottom: 14px;
}
.comment-form input:focus, .comment-form textarea:focus { outline: none; border-color: var(--accent); }
.zv-hp { position: absolute !important; left: -9999px !important; }
.comment-form .submit, .wp-block-search__button {
  background: var(--grad); border: 0; color: #fff; font-family: var(--font-display); font-weight: 600;
  padding: 11px 22px; border-radius: 10px; font-size: 14.5px;
}
.comment-notes, .logged-in-as { font-size: 13.5px; color: var(--faint); }

/* ============ PAGINATION ============ */
.pagination { display: flex; justify-content: center; gap: 8px; margin: 36px 0 10px; flex-wrap: wrap; }
.pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px;
  padding: 0 12px; border-radius: 10px; border: 1px solid var(--border);
  font-family: var(--font-display); font-weight: 600; font-size: 14px; color: var(--muted);
}
.pagination .page-numbers.current { background: var(--grad); border-color: transparent; color: #fff; }
.pagination a.page-numbers:hover { border-color: var(--accent); color: #fff; }

/* ============ ARCHIVE / SEARCH HEAD ============ */
.archive-head { margin-bottom: 28px; }
.archive-head h1 { font-size: clamp(26px, 3.4vw, 36px); margin: 8px 0 8px; }
.archive-desc { color: var(--muted); }
.results-count { font-size: 13.5px; color: var(--faint); }

/* ============ FOOTER ============ */
.site-footer { background: #0d0e14; border-top: 1px solid var(--border-soft); margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr .85fr 1.15fr; gap: 34px; padding: 46px 0 34px; }
.footer-col h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 14px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.footer-col a { color: var(--faint); font-size: 14.5px; }
.footer-col a:hover { color: #fff; }
.footer-about p { color: var(--faint); font-size: 14px; margin-top: 12px; max-width: 300px; }
.footer-social { display: flex; gap: 10px; margin-top: 18px; }
.footer-social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 10px;
  border: 1px solid var(--border); background: var(--surface); color: var(--muted);
  transition: border-color .15s, color .15s;
}
.footer-social a:hover { border-color: var(--accent); color: #fff; }
.footer-social svg { width: 17px; height: 17px; }
.footer-visual {
  align-self: center; text-align: center;
  border-left: 1px solid var(--border-soft); padding-left: 30px;
}
.footer-visual svg { margin: 0 auto 10px; display: block; }
.footer-visual p { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: 15.5px; line-height: 1.45; color: #d6d9e6; }
.footer-visual .footer-heart { color: var(--accent-2); margin-top: 10px; }
.footer-visual .footer-heart svg { margin: 10px auto 0; fill: currentColor; stroke: none; }
.footer-bottom { border-top: 1px solid var(--border-soft); padding: 18px 0; display: flex; align-items: center; justify-content: space-between; gap: 14px; font-size: 13px; color: var(--faint); flex-wrap: wrap; }

/* Back to top */
.to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 60;
  width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text); display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; transform: translateY(8px);
}
.to-top.is-visible { opacity: 1; pointer-events: auto; transform: none; }
.to-top:hover { border-color: var(--accent); }
.to-top svg { width: 18px; height: 18px; }

/* ============ RESPONSIVE ============ */
/* ============ DA v1.2 — « L'œil de lynx sur la nuit » ============ */
/* Voir @.agents/sources/charte.md (canonique) et @.agents/sources/ui/style-reference.md */

.logo img { display: block; width: auto; height: 40px; }
@media (max-width: 860px) { .logo img { height: 32px; } }

/* Vignettes de provenance (INPI, RappelConso, Safety Gate) */
.src-badge {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 11px; border-radius: 8px;
  background: var(--surface); border: 1px solid var(--border);
  font-family: var(--font-display); font-weight: 600; font-size: 11px;
  letter-spacing: .09em; text-transform: uppercase; color: var(--muted);
  white-space: nowrap;
}
.src-badge .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); flex-shrink: 0; }
.src-badge .dot.warn { background: var(--warn); }
.src-badge--accent { color: #cdbdff; border-color: rgba(124, 92, 255, .45); }
.src-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

/* Trame de données (fond de sections Transparence, opacité ≤ 8 %) */
.trame::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image: radial-gradient(rgba(124, 92, 255, .16) 1px, transparent 1.6px);
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(120deg, #000 20%, transparent 75%);
  mask-image: linear-gradient(120deg, #000 20%, transparent 75%);
}

/* Bande Transparence : mascotte + trame */
.cta-transparence.trame { padding-right: 200px; }
.cta-zyo {
  position: absolute; right: 6px; bottom: -6px; z-index: 1;
  height: 158px; width: auto; pointer-events: none; user-select: none;
  filter: drop-shadow(0 10px 22px rgba(0, 0, 0, .45));
}
.cta-stats {
  display: inline-flex; align-items: center; gap: 9px; margin: 10px 0 0;
  font-size: 13px; font-weight: 600; color: #cdbdff;
}
.cta-stats::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ok);
  box-shadow: 0 0 0 3px rgba(47, 209, 140, .18);
}
@media (max-width: 860px) {
  .cta-transparence.trame { padding-right: 28px; padding-bottom: 16px; }
  .cta-zyo { position: static; height: 120px; margin-top: 6px; }
}

/* Encart mascotte (hub Transparence) */
.zyo-note {
  display: flex; gap: 18px; align-items: center;
  background: var(--surface); border: 1px solid rgba(124, 92, 255, .4);
  border-radius: var(--radius); padding: 18px 22px; margin-top: 26px;
}
.zyo-note img { height: 96px; width: auto; flex-shrink: 0; }
.zyo-note p { margin: 0; font-size: 14.5px; color: var(--muted); }
.zyo-note strong { color: #fff; }
@media (max-width: 620px) { .zyo-note img { height: 72px; } }

/* Cartes observatoire des alertes */
.alert-card {
  display: grid; grid-template-columns: 128px minmax(0, 1fr); gap: 16px;
  background: var(--surface); border: 1px solid var(--border-soft);
  border-radius: var(--radius); padding: 18px; margin-bottom: 14px;
  transition: border-color .15s;
}
.alert-card:hover { border-color: rgba(124, 92, 255, .5); }
.alert-src {
  align-self: start; display: flex; flex-direction: column; gap: 8px;
}
.alert-src .src-badge { justify-content: center; }
.alert-card h2 { font-size: 17.5px; margin: 0 0 7px; line-height: 1.35; }
.alert-meta { margin: 0 0 7px; color: var(--faint); font-size: 13px; }
.alert-meta time { color: var(--muted); }
.alert-gtin {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12.5px; color: #b7a6ff; background: var(--surface-2);
  border: 1px solid var(--border-soft); border-radius: 6px; padding: 2px 7px;
}
.alert-risk { margin: 0 0 7px; font-size: 14.5px; }
.alert-desc { margin: 0 0 8px; color: var(--muted); font-size: 14px; }
.alert-foot { margin: 0; font-size: 13px; }
.alert-foot a { color: var(--accent); font-weight: 600; }
.alert-foot a:hover { color: var(--accent-2); }
.badge-recall {
  display: inline-block; font-family: var(--font-display); font-weight: 600; font-size: 11px;
  letter-spacing: .07em; text-transform: uppercase; padding: 3px 9px;
  border: 1px solid rgba(255, 90, 90, .55); border-radius: 999px; color: #ff8f8f;
}
@media (max-width: 620px) {
  .alert-card { grid-template-columns: 1fr; }
  .alert-src { flex-direction: row; align-items: center; }
}

/* Chips de filtres actifs */
.filter-chips { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 0 0 18px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 13px; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--border);
  font-size: 13px; font-weight: 600; color: var(--muted);
  transition: border-color .15s, color .15s;
}
.chip:hover { border-color: var(--accent); color: #fff; }
.chip.is-active { background: var(--grad); border-color: transparent; color: #fff; }
.chip .chip-x { font-size: 15px; line-height: 1; opacity: .8; }

/* Encart prudence ambre */
.notice-prudence {
  background: var(--surface); border: 1px solid rgba(255, 176, 32, .4);
  border-left: 3px solid var(--warn); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 16px 20px; margin-top: 22px;
}
.notice-prudence p { margin: 0 0 6px; font-size: 14.5px; }
.notice-prudence p:last-child { margin-bottom: 0; }
.notice-prudence strong { color: #ffcf7d; }

/* État vide avec la mascotte */
.empty-state { text-align: center; padding: 56px 20px; }
.empty-state img { height: 120px; width: auto; margin: 0 auto 16px; user-select: none; }
.empty-state h2 { font-size: 22px; margin: 0 0 8px; }
.empty-state p { color: var(--muted); max-width: 460px; margin: 0 auto 22px; }

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(3, 1fr); }
  .layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-visual { grid-column: 1 / -1; border-left: 0; padding-left: 0; border-top: 1px solid var(--border-soft); padding-top: 26px; }
  .feature { grid-template-columns: 1fr; gap: 10px; }
  .feature-rail { display: grid; grid-template-columns: 1fr 1fr; column-gap: 28px; }
  .rail-item:first-child { padding-top: 13px; }
  .rail-item:last-child { border-bottom: 1px solid var(--border-soft); }
  .rail-item:nth-last-child(-n+2) { border-bottom: 0; }
}
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .hero-main { min-height: 320px; }
  .hero-side { flex-direction: column; }
  .grid-4, .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .archive-head.has-image .archive-head-grid { grid-template-columns: 1fr; gap: 22px; }
  .archive-head.has-image .archive-banner img { aspect-ratio: 16 / 9; }
  .main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--bg-elev); border-bottom: 1px solid var(--border); padding: 10px 20px 16px; }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; gap: 2px; }
  .main-nav .sub-menu { position: static; display: flex; border: 0; box-shadow: none; background: transparent; padding-left: 18px; }
  .nav-toggle { display: inline-flex; }
  .cta-transparence { flex-direction: column; align-items: flex-start; }
  .list-cols { grid-template-columns: 1fr; column-gap: 0; }
  .section-list { margin-bottom: 26px; }
}
@media (max-width: 620px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .topbar .container { gap: 10px; overflow-x: auto; scrollbar-width: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .section-title { font-size: 20px; }
  .search-overlay { padding-top: 8vh; }
  .feature-rail { grid-template-columns: 1fr; }
  .rail-item:nth-last-child(-n+2) { border-bottom: 1px solid var(--border-soft); }
  .rail-item:last-child { border-bottom: 0; }
  .feature-title { font-size: 22px; }
  .feature-badge { top: 10px; left: 10px; }
}

/* ============ PAGES PILIER (catégories / tags) ============ */
.pilier-main { padding-top: 0; }
.pilier-hero {
  position: relative; overflow: hidden;
  margin: -28px 0 40px;
  padding: 28px 0 42px;
  background:
    radial-gradient(700px 260px at 85% -10%, rgba(124, 92, 255, .14), transparent 65%),
    radial-gradient(700px 260px at 0% 110%, rgba(255, 61, 113, .1), transparent 65%),
    var(--bg-elev);
  border-bottom: 1px solid var(--border-soft);
}
.pilier-hero .breadcrumb { position: relative; z-index: 1; }
.pilier-hero-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 34px; align-items: center;
}
.pilier-hero-text h1 { font-size: clamp(30px, 4vw, 44px); margin: 10px 0 10px; }
.pilier-meta { color: var(--faint); font-size: 14px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pilier-meta strong { color: #cdbdff; font-family: var(--font-display); }
.pilier-intro { margin-top: 14px; color: var(--muted); font-size: 16px; line-height: 1.65; max-width: 720px; }
.pilier-intro p { margin: 0; }
.pilier-intro strong { color: #d9dcEA; }
.pilier-related { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.pilier-related::before {
  content: "Sujets liés"; font-family: var(--font-display); font-weight: 600;
  font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--faint);
  align-self: center; margin-right: 4px;
}
.pilier-hero-img {
  margin: 0; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border-soft); box-shadow: var(--shadow);
}
.pilier-hero-img img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16 / 9; }
.pilier-featured { margin-bottom: 34px; }
.pilier-featured .hero-main { min-height: 380px; }
/* Renfort du voile : les vignettes héritées peuvent être très claires. */
.pilier-featured .hero-main::after {
  background: linear-gradient(180deg, rgba(18, 19, 25, .3) 0%, rgba(18, 19, 25, .55) 40%, rgba(18, 19, 25, .96) 82%);
}
.pilier-grid-section { margin-bottom: 40px; }
.pilier-grid-section .grid { gap: 20px; }
.pilier-guide { margin-bottom: 44px; }
.pilier-guide .section-title { margin-bottom: 20px; }
/* Le guide pilier occupe toute la largeur du conteneur (les images flottantes
   du contenu legacy créent naturellement les colonnes de lecture). */
.pilier-guide-content,
.pilier-guide-content > * { max-width: none; }

@media (max-width: 1024px) {
  .pilier-hero-grid { grid-template-columns: 1fr; gap: 22px; }
  .pilier-hero-img { order: -1; }
  .pilier-hero-img img { aspect-ratio: 16 / 7; }
}

/* ============ A11Y UTILS ============ */
.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.alignleft { float: left; margin: 0 22px 14px 0; }
.alignright { float: right; margin: 0 0 14px 22px; }
.aligncenter { margin-left: auto; margin-right: auto; }
.wp-caption { max-width: 100%; }
.wp-caption-text, figcaption { font-size: 13px; color: var(--faint); margin-top: 8px; text-align: center; }
.sticky { display: block; }
.bypostauthor { display: block; }

/* ============ DA v1.3 — ACCUEIL IMMERSIF ============ */
/* Maquette validée par Alban (15 sept. 2026). Police manuscrite partagée avec le hub Transparence. */

@font-face {
  font-family: "Caveat";
  src: url("assets/fonts/caveat-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
  unicode-range: U+0000-00FF, U+2019, U+2026, U+00A0;
}

.tr-hand {
  font-family: "Caveat", "Segoe Script", cursive;
  color: #cdbcff; font-weight: 600; line-height: 1.1;
}

.home-main { padding-top: 0; }

/* --- Hero accueil --- */
.home-hero {
  position: relative; overflow: hidden;
  margin-top: -28px; min-height: 540px;
  display: flex; align-items: center;
  padding: 60px 0 54px;
  background: var(--bg);
}
.home-hero-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: 85% 30%;
}
.home-hero-overlay {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, #121319 24%, rgba(18, 19, 25, .84) 40%, rgba(18, 19, 25, .2) 62%, rgba(18, 19, 25, 0) 78%),
    linear-gradient(180deg, rgba(18, 19, 25, .35) 0%, rgba(18, 19, 25, 0) 26%, rgba(18, 19, 25, 0) 70%, #121319 100%);
}
.home-hero-inner { position: relative; z-index: 2; width: 100%; }
.home-hero-copy { max-width: 620px; }
.home-hero-title {
  font-size: clamp(38px, 4.6vw, 60px);
  line-height: 1.04; letter-spacing: -.015em;
  margin: 0 0 20px;
}
.home-hero-title em {
  font-style: normal;
  background: linear-gradient(90deg, #8f74ff, #ff3d71);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.home-hero-sub {
  color: #c7cbdc; font-size: 17px; line-height: 1.6;
  max-width: 480px; margin: 0 0 28px;
}
.home-hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 30px; }
.home-hero-points {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 14px 26px;
}
.home-hero-points li { display: flex; align-items: center; gap: 11px; }
.home-ico {
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(26, 20, 48, .5);
  border: 1px solid rgba(124, 92, 255, .5);
}
.home-hero-points strong { display: block; font-size: 14px; font-weight: 600; line-height: 1.3; }
.home-hero-points small { display: block; font-size: 12.5px; color: var(--muted); line-height: 1.35; }

@media (min-width: 901px) {
  /* Image calée à droite, dimensionnée par la hauteur (zone gauche unie dans le visuel). */
  .home-hero-img {
    inset: 0 0 0 auto; width: auto; max-width: none;
    object-fit: fill; object-position: right top;
  }
}

/* --- À la une (featured + rail) --- */
.home-une { margin-top: 40px; }
.hero-side-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 14px;
  margin-bottom: 8px;
}
.hero-side-head .section-title { font-size: 20px; }
.hero-arrow {
  position: absolute; right: 22px; bottom: 22px; z-index: 3;
  width: 44px; height: 44px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(18, 19, 25, .55);
  border: 1px solid rgba(255, 255, 255, .35);
  color: #fff;
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}

/* --- Derniers articles : 4 cartes + encart conseil Zyo --- */
.hp-latest {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px;
}
.hp-latest .card { min-width: 0; }
.hp-latest .card-media { aspect-ratio: 16 / 10; }
.hp-panel {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; gap: 16px;
  border-radius: var(--radius);
  background: linear-gradient(160deg, #211a44, #2c1636);
  border: 1px solid rgba(124, 92, 255, .45);
  padding: 18px 18px 16px;
  min-height: 340px;
}
.hp-bubble {
  margin: 0; padding: 12px 14px;
  background: #fff; color: #23253a;
  font-size: 13.5px; font-weight: 600; line-height: 1.45;
  border-radius: 14px 14px 14px 4px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .3);
}
.hp-checklist {
  list-style: none; margin: auto 0 0; padding: 0;
  display: flex; flex-direction: column; gap: 10px;
  position: relative; z-index: 1; align-self: flex-start;
}
.hp-checklist li {
  display: flex; align-items: center; gap: 9px;
  font-size: 13.5px; font-weight: 600; color: #e2e4ef;
}
.hp-checklist svg { color: #b9a8ff; flex-shrink: 0; }
.hp-panel-zyo {
  position: absolute; right: -14px; bottom: -10px;
  height: 96px; width: auto;
  pointer-events: none; user-select: none;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .4));
}

/* --- Tuiles univers --- */
.hp-tiles {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  margin: 44px 0 0;
}
.hp-tile {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border-soft); border-radius: var(--radius);
  padding: 20px 20px 16px; min-height: 150px;
  transition: transform .16s, border-color .16s, box-shadow .16s;
}
.hp-tile:hover {
  transform: translateY(-3px);
  border-color: rgba(124, 92, 255, .55);
  box-shadow: var(--shadow);
}
.hp-tile-ico { display: inline-flex; margin-bottom: 12px; }
.hp-tile h3 { font-size: 16px; margin: 0 0 5px; }
.hp-tile p { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.5; max-width: 90%; }
.hp-tile-arrow {
  margin-top: auto; align-self: flex-end;
  color: var(--faint); transition: color .15s, transform .15s;
}
.hp-tile:hover .hp-tile-arrow { color: var(--accent); transform: translateX(3px); }

/* --- Transparence : recherche de marque intégrée --- */
.cta-transparence { flex-wrap: wrap; }
.home-transparence { margin-top: 44px; margin-bottom: 0; }
.cta-trans-copy { flex: 1; min-width: 260px; }
.cta-trans-search { display: flex; flex-direction: column; gap: 7px; flex-shrink: 0; }
.cta-trans-label {
  font-family: var(--font-display); font-weight: 600; font-size: 13px; color: #fff;
}
.cta-trans-field { display: flex; gap: 8px; }
.cta-trans-field input[type="search"] {
  width: 260px; max-width: 100%; height: 44px;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(124, 92, 255, .55); border-radius: 10px;
  color: var(--text); padding: 0 14px; font-size: 14px;
  transition: border-color .15s;
}
.cta-trans-field input[type="search"]:focus { outline: none; border-color: #b9a8ff; }
.cta-trans-field input[type="search"]::placeholder { color: var(--faint); }
.cta-trans-field button {
  width: 44px; height: 44px; flex: 0 0 44px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--grad); color: #fff; border: 0; border-radius: 10px;
  transition: filter .15s;
}
.cta-trans-field button:hover { filter: brightness(1.12); }

/* --- Newsletter maison --- */
.nl-band {
  position: relative; overflow: hidden;
  margin-top: 44px; border-radius: 18px;
  border: 1px solid rgba(124, 92, 255, .4);
  background: linear-gradient(120deg, #1a1533 0%, #261736 55%, #1a1533 100%);
  padding: 26px 170px 26px 30px;
  display: flex; align-items: center; gap: 30px; flex-wrap: wrap;
}
.nl-band::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(520px 180px at 8% 0%, rgba(124, 92, 255, .22), transparent 62%),
    radial-gradient(520px 180px at 60% 130%, rgba(255, 61, 113, .15), transparent 62%);
}
.nl-band > * { position: relative; z-index: 1; }
.nl-copy h2 { font-size: 22px; margin: 0 0 5px; }
.nl-copy p { margin: 0; color: var(--muted); font-size: 14px; }
.nl-msg { margin: 10px 0 0 !important; font-size: 14px; font-weight: 600; }
.nl-msg--ok { color: #34d399; }
.nl-msg--err { color: #ff8f8f; }
.nl-form { display: flex; gap: 10px; align-items: center; }
.nl-form input[type="email"] {
  width: 300px; max-width: 100%; height: 46px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(124, 92, 255, .5); border-radius: 999px;
  color: var(--text); padding: 0 20px; font-size: 14.5px;
  transition: border-color .15s;
}
.nl-form input[type="email"]:focus { outline: none; border-color: #b9a8ff; }
.nl-form input[type="email"]::placeholder { color: var(--faint); }
.nl-form .btn-grad { border-radius: 999px; padding: 0 22px; height: 46px; }
.nl-hp { position: absolute !important; left: -9999px !important; }
.nl-hand {
  position: absolute; top: 16px; right: 24px;
  display: flex; flex-direction: column; align-items: flex-end; gap: 2px;
  font-size: 22px; transform: rotate(-5deg); color: #d27dff;
}

@media (prefers-reduced-motion: reduce) {
  .hp-tile, .hp-tile-arrow { transition: none; }
}

/* --- Responsive accueil --- */
@media (max-width: 1180px) {
  .hp-latest { grid-template-columns: repeat(3, 1fr); }
  .hp-panel { grid-column: span 1; min-height: 300px; }
  .hp-tiles { grid-template-columns: repeat(2, 1fr); }
  .nl-band { padding-right: 30px; }
  .nl-hand { position: static; order: 5; align-self: flex-start; margin-top: -8px; }
}
@media (max-width: 900px) {
  .home-hero { min-height: 0; padding: 46px 0 44px; }
  .home-hero-img { object-position: 80% 35%; }
  .home-hero-overlay {
    background:
      linear-gradient(90deg, rgba(18, 19, 25, .96) 30%, rgba(18, 19, 25, .74) 60%, rgba(18, 19, 25, .3)),
      linear-gradient(180deg, rgba(18, 19, 25, .3) 0%, rgba(18, 19, 25, 0) 30%, #121319 100%);
  }
  .home-hero-sub { color: #b9bdcf; }
  .hp-latest { grid-template-columns: repeat(2, 1fr); }
  .hp-panel { grid-column: 1 / -1; min-height: 240px; }
  .hp-panel-zyo { height: 104px; }
  .cta-trans-search { width: 100%; }
  .cta-trans-field { max-width: 360px; }
  .cta-transparence.trame { padding-right: 28px; padding-bottom: 16px; }
  .cta-zyo { position: static; height: 120px; margin-top: 6px; }
}
@media (max-width: 660px) {
  .hp-latest, .hp-tiles { grid-template-columns: 1fr; }
  .home-hero-title { font-size: 36px; }
  .home-hero-points { flex-direction: column; align-items: flex-start; gap: 12px; }
  .nl-form { width: 100%; }
  .nl-form input[type="email"] { flex: 1; width: auto; min-width: 0; }
  .cta-trans-field input[type="search"] { width: 100%; flex: 1; }
  .cta-trans-field { max-width: none; }
}
