/* ND MEDIA — feuille de style publique. Polices du téléphone : zéro octet de police à télécharger. */
:root {
  --red: #d6202b;
  --red-dark: #b3171f;
  --navy: #0e1e3f;
  --navy-deep: #091632;
  --gold: #f2b134;
  --paper: #f6f8fb;
  --surface: #ffffff;
  --ink: #141a26;
  --muted: #5b6578;
  --line: #e3e7ee;
  --rule: #0e1e3f;
  --gut: 16px;
  --r: 12px;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: "Iowan Old Style", "Noto Serif", Georgia, "Times New Roman", serif;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --paper: #0b1220; --surface: #121b30; --ink: #eef1f7; --muted: #98a2b8; --line: #22304f; --rule: #2d4272;
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0b1220; --surface: #121b30; --ink: #eef1f7; --muted: #98a2b8; --line: #22304f; --rule: #2d4272;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.5 var(--sans); }
img, svg { max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-weight: 800; letter-spacing: -0.012em; line-height: 1.15; margin: 0; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -60px; background: var(--gold); color: var(--navy); padding: 10px 14px; font-weight: 700; z-index: 50; border-radius: 8px; }
.skip:focus { top: 8px; }
.muted { color: var(--muted); }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 var(--gut); }

/* ---- En-tête ---- */
.top { background: var(--navy); color: #fff; border-bottom: 4px solid var(--red); }
.top-in { max-width: 1180px; margin: 0 auto; padding: 10px var(--gut); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.logo { width: 58px; height: auto; flex: none; display: block; }
.brand-t b { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.brand-t i { font-style: normal; font-weight: 700; font-size: 0.86rem; line-height: 1.2; display: block; color: #e8edf8; max-width: 15ch; }
.tools { display: flex; gap: 8px; flex: none; }
.tb { width: 42px; height: 42px; display: inline-grid; place-items: center; border-radius: 10px; background: rgba(255, 255, 255, 0.1); color: #fff; border: 0; cursor: pointer; font: 800 0.8rem var(--sans); }
.tb:hover { background: rgba(255, 255, 255, 0.2); }

.cats { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.cats-in { max-width: 1180px; margin: 0 auto; display: flex; overflow-x: auto; padding: 0 calc(var(--gut) - 8px); scrollbar-width: none; }
.cats-in::-webkit-scrollbar { display: none; }
.cats a { flex: none; padding: 13px 12px 11px; font-weight: 700; font-size: 0.95rem; border-bottom: 3px solid transparent; }
.cats a[aria-current] { border-bottom-color: var(--red); color: var(--red); }
.cats a:hover { color: var(--red); }

/* ---- Dernière minute ---- */
.ticker { display: flex; background: var(--navy-deep); color: #fff; overflow: hidden; }
.tk-label { flex: none; background: var(--gold); color: var(--navy); font-weight: 800; padding: 10px 14px; font-size: 0.9rem; position: relative; z-index: 1; }
.tk-track { overflow: hidden; flex: 1; display: flex; align-items: center; }
.tk-run { display: inline-flex; white-space: nowrap; animation: tk 45s linear infinite; }
.tk-copy { display: contents; }
.tk-run a { padding: 0 22px; font-weight: 600; font-size: 0.95rem; position: relative; }
.tk-run a::before { content: ""; position: absolute; left: 0; top: 50%; width: 7px; height: 7px; margin-top: -3px; background: var(--red); }
.tk-track:hover .tk-run { animation-play-state: paused; }
@keyframes tk { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .tk-run { animation: none; }
  .tk-copy { display: none; }
  .tk-track { overflow-x: auto; }
}

/* ---- Mise en page ---- */
.grid { display: block; padding-bottom: 8px; }
.col-side { display: none; }
@media (min-width: 960px) {
  .grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 44px; }
  .col-side { display: block; }
}

/* ---- Plaque (le motif du logo : rouge sur marine) ---- */
.plaque { display: inline-block; background: var(--red); color: #fff; font-weight: 800; font-size: 0.8rem; line-height: 1; padding: 6px 9px 5px; border-radius: 6px 6px 0 0; border-bottom: 3px solid var(--navy); }
a.plaque:hover { background: var(--red-dark); }
.band { display: flex; margin: 2rem 0 1rem; border-bottom: 4px solid var(--rule); font-size: 1.05rem; }
.band span { background: var(--red); color: #fff; padding: 8px 14px 6px; border-radius: 8px 8px 0 0; font-weight: 800; }
.band a:hover span { background: var(--red-dark); }
.band.big { font-size: 1.5rem; margin-top: 1.4rem; }
.meta { display: block; color: var(--muted); font-size: 0.8rem; margin-top: 4px; }

/* ---- Images ---- */
.ph { background: var(--navy); overflow: hidden; border-radius: 10px; }
.im { display: block; width: 100%; object-fit: cover; }
.noimg { display: grid; place-items: center; background: linear-gradient(135deg, var(--navy), #1b3266); color: rgba(255, 255, 255, 0.18); font-weight: 900; font-size: 3rem; width: 100%; height: 100%; min-height: 100%; }

/* ---- À la une ---- */
.lead { margin: 0 calc(var(--gut) * -1); }
.lead-link { display: block; position: relative; color: #fff; }
.lead .im, .lead .noimg { aspect-ratio: 4 / 3; height: auto; }
.lead-text { position: absolute; left: 0; right: 0; bottom: 0; padding: 3.5rem var(--gut) 1rem; background: linear-gradient(to top, rgba(9, 22, 50, 0.97) 0, rgba(9, 22, 50, 0.78) 55%, transparent); }
.lead-text .plaque { margin-bottom: 8px; }
.lead-title { font-size: clamp(1.5rem, 6vw, 2.3rem); line-height: 1.08; font-weight: 800; text-wrap: balance; }
.lead-ex { display: none; margin-top: 8px; color: #dbe3f3; max-width: 60ch; }
.lead .meta { color: #c3cde3; }
@media (min-width: 640px) {
  .lead .im, .lead .noimg { aspect-ratio: 16 / 9; }
  .lead-ex { display: block; }
  .lead-text { padding: 5rem 28px 1.4rem; }
}
@media (min-width: 960px) {
  .lead { margin: 20px 0 0; border-radius: var(--r); overflow: hidden; }
}

/* ---- Cartes et listes ---- */
.mids { display: grid; gap: 22px; margin-top: 22px; }
@media (min-width: 640px) { .mids { grid-template-columns: 1fr 1fr; } }
.mid .ph { aspect-ratio: 16 / 10; }
.mid .ph .im { height: 100%; }
.mid .plaque { margin-top: 10px; }
.mid h3 { font-size: 1.18rem; margin-top: 0; padding-top: 6px; }
.mid a:hover h3, .row a:hover h3, .vcard:hover h3 { color: var(--red); }

.rows { margin-top: 8px; }
.row a { display: grid; grid-template-columns: 1fr 112px; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: start; }
.row-t .plaque { margin-bottom: 6px; }
.row h3 { font-size: 1.02rem; line-height: 1.22; font-weight: 700; }
.thumb { aspect-ratio: 4 / 3; border-radius: 8px; }
.thumb .im, .thumb .noimg { height: 100%; font-size: 1.4rem; }
.more { margin: 22px 0 8px; }

.blk { margin-top: 8px; }
.rank { counter-reset: r; list-style: none; margin: 0; padding: 0; }
.rank li { counter-increment: r; display: grid; grid-template-columns: 2.1rem 1fr; gap: 6px; padding: 12px 0; border-bottom: 1px solid var(--line); font-weight: 700; line-height: 1.25; }
.rank li::before { content: counter(r); color: var(--red); font-weight: 900; font-size: 1.5rem; line-height: 1; }
.rank a:hover { color: var(--red); }

.vids { margin-top: 12px; }
.vscroll { display: flex; gap: 14px; overflow-x: auto; padding: 4px 0 14px; scroll-snap-type: x mandatory; }
.vcard { flex: none; width: 250px; scroll-snap-align: start; }
.vcard .ph { position: relative; aspect-ratio: 16 / 9; }
.vcard .im { height: 100%; }
.vcard h3 { font-size: 0.98rem; margin-top: 8px; font-weight: 700; }
.play { position: absolute; left: 50%; top: 50%; width: 52px; height: 38px; margin: -19px 0 0 -26px; background: var(--red); border-radius: 10px; }
.play::after { content: ""; position: absolute; left: 21px; top: 11px; border-style: solid; border-width: 8px 0 8px 14px; border-color: transparent transparent transparent #fff; }

.empty { padding: 40px 0; color: var(--muted); text-align: center; }
.notfound { padding: 56px 0; text-align: center; }
.notfound h1 { font-size: 5rem; color: var(--red); }
.notfound p { margin: 8px 0 20px; color: var(--muted); }

/* ---- Boutons, formulaires ---- */
.btn { display: inline-block; background: var(--red); color: #fff; border: 0; border-radius: 10px; padding: 12px 20px; font: 800 0.98rem var(--sans); cursor: pointer; }
.btn:hover { background: var(--red-dark); }
.pager { display: flex; justify-content: space-between; margin: 24px 0; }
.pg { font-weight: 800; color: var(--red); padding: 10px 0; }
.sform { display: flex; gap: 8px; margin: 14px 0; }
input, textarea { font: inherit; color: var(--ink); background: var(--surface); border: 2px solid var(--line); border-radius: 10px; padding: 11px 12px; width: 100%; }
input:focus, textarea:focus { border-color: var(--navy); outline: none; }
:root[data-theme="dark"] input:focus, :root[data-theme="dark"] textarea:focus { border-color: var(--gold); }
.sform input { flex: 1; }

/* ---- Publicité ---- */
.ad { margin: 22px 0; text-align: center; }
.ad-tag { display: block; text-align: right; font-size: 0.7rem; color: var(--muted); margin-bottom: 3px; }
.ad img { display: block; margin: 0 auto; border-radius: 8px; width: auto; max-height: 280px; }
.ad-html { overflow: hidden; }
.ad-rot { display: grid; }
.ad-slide { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity 0.7s ease, visibility 0.7s; }
.ad-slide.on { opacity: 1; visibility: visible; }
@media (prefers-reduced-motion: reduce) { .ad-slide { transition: none; } }

/* ---- Article ---- */
.post-h { padding-top: 20px; }
.post-h h1 { font-size: clamp(1.8rem, 6.6vw, 2.9rem); line-height: 1.07; margin: 10px 0 12px; text-wrap: balance; }
.dek { font: italic 1.2rem/1.45 var(--serif); color: var(--muted); }
.byline { display: flex; flex-wrap: wrap; gap: 2px 18px; margin-top: 14px; color: var(--muted); font-size: 0.86rem; font-weight: 600; }
.twin { margin-top: 10px; font-weight: 700; }
.twin a { color: var(--red); text-decoration: underline; }
.preview-note { background: var(--gold); color: var(--navy); font-weight: 700; padding: 10px 14px; border-radius: 8px; margin-top: 16px; }
.cover { margin: 18px calc(var(--gut) * -1) 0; }
.cover img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
@media (min-width: 640px) { .cover { margin-inline: 0; } .cover img { border-radius: var(--r); } }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 18px 0; }
.share-t { font-weight: 800; margin-right: 4px; }
.sh { border: 0; border-radius: 999px; padding: 10px 16px; font: 800 0.9rem var(--sans); color: #fff; cursor: pointer; }
.sh.wa { background: #178a4a; }
.sh.fb { background: #1668d8; }
.sh.cp { background: var(--surface); color: var(--ink); border: 2px solid var(--line); }
.prose { font-family: var(--serif); font-size: 1.14rem; line-height: 1.72; max-width: 68ch; overflow-wrap: anywhere; }
.prose p { margin: 0 0 1.05em; }
.prose h2, .prose h3, .prose h4 { font-family: var(--sans); margin: 1.6em 0 0.5em; }
.prose h2 { font-size: 1.55rem; }
.prose h3 { font-size: 1.3rem; }
.prose a { color: var(--red); text-decoration: underline; text-underline-offset: 2px; }
.prose blockquote { margin: 1.4em 0; padding: 0.2em 0 0.2em 1rem; border-left: 5px solid var(--red); font-size: 1.28rem; line-height: 1.45; font-style: italic; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.1em; }
.prose li { margin: 0.3em 0; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.prose figure { margin: 1.4em calc(var(--gut) * -1); }
@media (min-width: 640px) { .prose figure { margin-inline: 0; } .prose figure img { border-radius: 10px; } }
.prose figure img { display: block; width: 100%; }
.prose figcaption { font: 0.84rem/1.4 var(--sans); color: var(--muted); padding: 6px var(--gut) 0; }
.yt { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: 10px; overflow: hidden; cursor: pointer; margin: 1.4em 0; }
.yt img { width: 100%; height: 100%; object-fit: cover; opacity: 0.88; }
.yt svg { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.vid-link { font: 800 1rem var(--sans); }
.cover + .yt, .post-h + .yt { margin-top: 18px; }

/* ---- Commentaires ---- */
.cm { padding: 12px 0; border-bottom: 1px solid var(--line); }
.cm time { margin-left: 10px; color: var(--muted); font-size: 0.8rem; }
.cm p { margin-top: 4px; }
#cform { margin-top: 22px; display: grid; gap: 12px; max-width: 560px; }
#cform h3 { font-size: 1.15rem; }
#cform label { display: grid; gap: 4px; font-weight: 700; font-size: 0.9rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
#cmsg { font-weight: 700; min-height: 1.4em; }

/* ---- Bas de page ---- */
.foot { background: var(--navy); color: #dbe3f3; margin-top: 44px; }
.foot-in { max-width: 1180px; margin: 0 auto; padding: 32px var(--gut) 20px; display: grid; gap: 28px; }
@media (min-width: 800px) { .foot-in { grid-template-columns: 1.3fr 1fr 1fr; } .copy { grid-column: 1 / -1; } }
.foot-brand { display: flex; gap: 14px; align-items: center; }
.foot-brand .logo { width: 72px; }
.foot-brand b { color: #fff; font-size: 1.15rem; }
.foot p { margin: 2px 0; }
.foot .loc { color: #fff; font-weight: 700; }
.foot h2 { color: #fff; font-size: 1rem; margin-bottom: 10px; }
.foot ul { list-style: none; margin: 8px 0; padding: 0; }
.foot li { margin: 6px 0; }
.foot a:hover { color: var(--gold); }
.phones a { font-weight: 700; color: #fff; }
.wa-btn { display: inline-block; background: #178a4a; color: #fff; font-weight: 800; padding: 11px 16px; border-radius: 10px; }
.socials { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 12px; }
.socials span { width: 100%; color: #fff; font-weight: 700; }
.copy { border-top: 1px solid rgba(255, 255, 255, 0.15); padding-top: 14px; font-size: 0.85rem; color: #9fb0d1; }


/* =====================================================================
   Version « rétention » : accueil plus fort, lecture continue, WhatsApp
   ===================================================================== */
.only-m { display: block; }
@media (min-width: 960px) { .only-m { display: none; } }

/* Hover : léger zoom sur les photos (seulement avec une souris) */
.ph .im { transition: transform 0.5s ease; }
.lead-link { overflow: hidden; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  a:hover .im { transform: scale(1.045); }
}

/* Une : grande photo + « À ne pas manquer » */
.hero { display: block; }
.picks .band { margin-top: 1.5rem; }
@media (min-width: 960px) {
  .hero { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); gap: 34px; margin-top: 22px; align-items: start; }
  .hero .lead { margin: 0; }
  .hero .lead .im, .hero .lead .noimg { aspect-ratio: 16 / 11; }
  .lead-title { font-size: 2.7rem; }
  .picks .band { margin-top: 0; }
  .picks .row h3 { font-size: 1.1rem; }
}
.lead-text { padding-top: 5rem; }
.lead .meta { font-weight: 700; }

/* Bandeau WhatsApp */
.wa-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin: 22px 0 6px; padding: 16px 18px; border-radius: var(--r); color: #fff; background: linear-gradient(115deg, #0c6b3a, #178a4a 60%, #1fa65a); }
.wa-i { flex: none; }
.wa-t { flex: 1 1 220px; min-width: 0; }
.wa-t b { display: block; font-size: 1.12rem; line-height: 1.2; }
.wa-t span { display: block; font-size: 0.92rem; opacity: 0.92; margin-top: 2px; }
.wa-join { flex: none; background: #fff; color: #0c6b3a; font-weight: 800; padding: 12px 20px; border-radius: 999px; white-space: nowrap; }
.wa-join:hover { background: var(--gold); color: var(--navy); }
@media (max-width: 520px) { .wa-join { width: 100%; text-align: center; } }

/* Bande vidéos (fond marine, pleine largeur) */
.vband { background: var(--navy); color: #fff; margin-top: 30px; padding: 6px 0 14px; }
.vband .band { border-bottom-color: var(--red); }
.vband .vscroll { gap: 16px; }
.vband .vcard { width: 270px; }
.vband .vcard h3 { color: #fff; font-size: 1rem; }
.vband .vcard:hover h3 { color: var(--gold); }
.vband .ph { background: #000; }

/* Colonne de droite (ordinateur) */
@media (min-width: 960px) {
  .side-in { position: sticky; top: 64px; }
  .col-side .band:first-child { margin-top: 0; }
}
.rank li::before { font-size: 1.9rem; }

/* Fil qui continue */
.feed-more { text-align: center; }
.more-btn { width: 100%; max-width: 420px; text-align: center; background: var(--navy); }
.more-btn:hover { background: var(--red); }
:root[data-theme="dark"] .more-btn { background: var(--surface); border: 2px solid var(--line); }
.btn.alt { background: var(--surface); color: var(--ink); border: 2px solid var(--line); }
.btn.alt:hover { background: var(--line); }

/* Lecture continue */
.next { margin-top: 36px; }
.next-card { display: block; }
.next-card .ph { aspect-ratio: 16 / 9; }
.next-card .im { height: 100%; }
.next-t { padding-top: 12px; }
.next-t .plaque { margin-bottom: 6px; }
.next-t h3 { font-size: 1.5rem; line-height: 1.15; }
.next-t p { color: var(--muted); margin: 8px 0 14px; }
.next-t .btn { margin-top: 10px; }
.post-more { margin-top: 40px; padding-top: 6px; border-top: 6px solid var(--red); }

/* Barre de progression et partage WhatsApp flottant */
.progress { position: fixed; left: 0; top: 0; width: 100%; height: 4px; z-index: 60; pointer-events: none; }
.progress i { display: block; height: 100%; width: 0; background: var(--red); }
.sticky-share { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 40; transform: translateY(150%); transition: transform 0.3s ease; }
.sticky-share.show { transform: none; }
.sticky-share a { display: block; text-align: center; background: #178a4a; color: #fff; font-weight: 800; padding: 14px; border-radius: 999px; box-shadow: 0 6px 22px rgba(0, 0, 0, 0.35); }
@media (min-width: 960px) { .sticky-share { display: none; } }
@media (prefers-reduced-motion: reduce) { .sticky-share { transition: none; } }

/* Installation */
.inst { margin-top: 12px; background: transparent; color: #fff; border: 2px solid rgba(255, 255, 255, 0.5); border-radius: 10px; padding: 10px 14px; font: 800 0.9rem var(--sans); cursor: pointer; }
.inst:hover { border-color: var(--gold); color: var(--gold); }
.inst[hidden] { display: none; }

/* La bannière du haut reste fine : la une doit rester visible sans défiler */
.ad-top { margin: 12px 0 4px; }
.ad-top img { max-height: 110px; }
@media (min-width: 960px) { .ad-top img { max-height: 140px; } }
