/*
Theme Name: DAILY POP
Theme URI: https://dailypop.fr
Author: DAILY POP
Description: Thème de Daily Pop : actualités cinéma, séries, jeux vidéo et critiques. Reprend l'identité de l'ancien site (noir, blanc, jaune doré, logo italique) avec une bannière en bandes inclinées.
Version: 3.1.0
Requires at least: 6.0
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: dailypop
*/

/* Polices embarquées (licence OFL, voir assets/fonts/LICENCES.txt). Aucun appel à un service externe. */
@font-face { font-family: "DP Display"; font-style: italic; font-weight: 900; font-display: swap; src: url("assets/fonts/display-black-italic.woff") format("woff"); }
@font-face { font-family: "DP Display"; font-style: italic; font-weight: 800; font-display: swap; src: url("assets/fonts/display-extrabold-italic.woff") format("woff"); }
@font-face { font-family: "DP UI"; font-style: normal; font-weight: 400; font-display: swap; src: url("assets/fonts/ui-regular.woff") format("woff"); }
@font-face { font-family: "DP UI"; font-style: normal; font-weight: 600; font-display: swap; src: url("assets/fonts/ui-semibold.woff") format("woff"); }
@font-face { font-family: "DP UI"; font-style: normal; font-weight: 700; font-display: swap; src: url("assets/fonts/ui-bold.woff") format("woff"); }
@font-face { font-family: "DP Lire"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("assets/fonts/lire.woff") format("woff"); }
@font-face { font-family: "DP Lire"; font-style: italic; font-weight: 400 700; font-display: swap; src: url("assets/fonts/lire-italic.woff") format("woff"); }

/* Mise en page : bandeau noir (logo, menu, bannière en bandes inclinées), puis page claire avec colonne latérale jaune. */
:root {
  --ink: #0d0d0d;
  --paper: #ffffff;
  --paper-2: #efeff0;
  --muted: #55565a;
  --line: #d9d9dc;
  --yellow: #f4b700;
  --yellow-hot: #ffd21a;
  --on-yellow: #0d0d0d;
  --band: #0d0d0d;
  --on-band: #ffffff;
  --band-line: #2b2b2e;
  --shadow-gold: #6f5a1c;
  --display: "DP Display", "Arial Black", "Helvetica Neue", Arial, sans-serif;
  --ui: "DP UI", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --read: "DP Lire", Georgia, "Times New Roman", serif;
  --gut: clamp(16px, 4vw, 40px);
}
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #f5f5f5;
    --paper: #101011;
    --paper-2: #1b1b1d;
    --muted: #a9aaae;
    --line: #2d2d30;
    --band: #000000;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--ui);
  font-size: 1.0625rem;
  line-height: 1.6;
}
img, video, iframe { max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4 { margin: 0; text-wrap: balance; }
p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
.wrap { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: var(--gut); min-width: 0; }
.screen-reader-text, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip:focus { position: fixed; left: 12px; top: 12px; z-index: 100; background: var(--yellow); color: var(--on-yellow); padding: 10px 16px; font-weight: 700; }

/* ---------- Bandeau noir ---------- */
.top { background: var(--band); color: var(--on-band); border-bottom: 6px solid var(--yellow); }
.strip { border-bottom: 1px solid var(--band-line); font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; color: #b4b4b8; }
.strip .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 20px; padding-block: 8px; }
.strip-left { display: flex; flex-wrap: wrap; gap: 2px 18px; }
.strip nav { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.strip nav span { color: #77777c; }
.strip a { text-decoration: none; }
.strip a:hover { color: var(--yellow); }
.brand { text-align: center; padding-block: 22px 14px; }
.logo { display: inline-block; font-family: var(--display); font-style: italic; font-weight: 900; text-transform: uppercase; font-size: clamp(2.7rem, 10vw, 5rem); line-height: 0.92; letter-spacing: -0.035em; text-decoration: none; color: var(--on-band); text-shadow: 0.045em 0.045em 0 var(--shadow-gold); padding-right: 0.08em; }
.logo span { color: var(--yellow); }
.tagline { margin-top: 8px; font-size: 0.8rem; letter-spacing: 0.22em; text-transform: uppercase; color: #b4b4b8; }
.nav { border-top: 1px solid var(--band-line); }
.nav-list { list-style: none; margin: 0; padding: 0 var(--gut); display: flex; justify-content: safe center; gap: clamp(14px, 3vw, 40px); overflow-x: auto; scrollbar-width: none; }
.nav-list::-webkit-scrollbar { display: none; }
.nav-list a { display: block; padding: 14px 2px 12px; font-family: var(--display); font-style: italic; font-weight: 800; text-transform: uppercase; font-size: 0.98rem; letter-spacing: 0.01em; text-decoration: none; white-space: nowrap; color: var(--on-band); background: linear-gradient(var(--yellow), var(--yellow)) 0 100% / 0 5px no-repeat; transition: background-size 0.2s ease; }
.nav-list a:hover, .nav-list .current-menu-item > a, .nav-list .current-menu-ancestor > a, .nav-list a[aria-current="page"] { background-size: 100% 5px; }
.nav-list a:hover { color: var(--yellow-hot); }

/* ---------- Bannière en bandes inclinées (les 5 derniers articles) ---------- */
.reel-zone { padding-block: 22px 0; }
.reel { list-style: none; margin: 0; padding: 0; display: flex; height: clamp(250px, 33vw, 400px); }
.reel li { position: relative; flex: 1 1 0; min-width: 0; margin-left: -3.2%; transition: flex-grow 0.35s ease; }
.reel li:first-child { flex-grow: 1.9; margin-left: 0; }
.reel li:hover, .reel li:focus-within { flex-grow: 2.4; }
.reel a { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; padding: 18px 14% 16px 11%; color: #fff; text-decoration: none; clip-path: polygon(9% 0, 100% 0, 91% 100%, 0 100%); background: #222; overflow: hidden; }
.reel li:first-child a { clip-path: polygon(0 0, 100% 0, 91% 100%, 0 100%); padding-left: 5%; padding-right: 12%; }
.reel li:last-child a { clip-path: polygon(9% 0, 100% 0, 100% 100%, 0 100%); padding-right: 5%; }
.reel img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; transition: transform 0.5s ease; }
.reel a:hover img { transform: scale(1.04); }
.reel a::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.35) 45%, rgba(0,0,0,0) 70%); }
.reel .tag, .reel h2 { position: relative; z-index: 1; }
.reel h2 { font-family: var(--display); font-style: italic; font-weight: 800; font-size: clamp(0.95rem, 1.45vw, 1.3rem); line-height: 1.12; letter-spacing: -0.01em; display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; text-shadow: 0 1px 8px rgba(0,0,0,0.5); }
.reel li:first-child h2 { font-size: clamp(1.25rem, 2.5vw, 2.1rem); }
.reel a:focus-visible { outline-offset: -8px; }

/* ---------- Étiquettes, titres de section ---------- */
.tag { display: inline-block; align-self: flex-start; background: var(--yellow); color: var(--on-yellow); font-family: var(--display); font-style: italic; font-weight: 800; font-size: 0.7rem; letter-spacing: 0.06em; text-transform: uppercase; padding: 0.22em 0.8em 0.22em 0.65em; clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%); text-decoration: none; line-height: 1.5; }
.sec { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 0 20px; }
.sec h2 { display: flex; align-items: center; gap: 0.5em; font-family: var(--display); font-style: italic; font-weight: 900; text-transform: uppercase; font-size: clamp(1.35rem, 3vw, 1.8rem); letter-spacing: -0.02em; line-height: 1; }
.sec h2::before { content: ""; width: 0.42em; height: 1.05em; background: var(--yellow); transform: skewX(-14deg); flex: none; }
.sec a { font-size: 0.85rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; text-decoration: none; background: linear-gradient(var(--yellow), var(--yellow)) 0 100% / 100% 3px no-repeat; padding-bottom: 2px; white-space: nowrap; }
.sec a:hover { background-size: 100% 100%; color: var(--on-yellow); }

/* ---------- Accueil ---------- */
.hello { padding-block: 8px 0; }
.hello .search-form { margin-top: 28px; }
.cols { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 56px; padding-block: 36px 24px; align-items: start; }
.cols > div { min-width: 0; }
.block + .block { margin-top: 52px; }
.aside { display: flex; flex-direction: column; gap: 32px; position: sticky; top: 20px; min-width: 0; }
.box-x { background: var(--yellow); color: var(--on-yellow); padding: 24px 22px 26px; box-shadow: 8px 8px 0 var(--ink); margin-right: 8px; }
.box-x p { font-family: var(--display); font-style: italic; font-weight: 900; text-transform: uppercase; font-size: 1.6rem; line-height: 1; letter-spacing: -0.02em; }
.box-x p.note { font-family: var(--ui); font-style: normal; font-weight: 600; text-transform: none; font-size: 0.98rem; line-height: 1.4; letter-spacing: 0; margin-top: 12px; }
.box-x .btns { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; margin-top: 18px; }
.btn { display: inline-block; background: var(--ink); color: var(--paper); font-weight: 700; font-size: 0.92rem; text-decoration: none; padding: 10px 18px; border: 2px solid var(--ink); }
.btn:hover { background: transparent; color: var(--ink); }
.box-x .btn { background: #0d0d0d; color: #fff; border-color: #0d0d0d; }
.box-x .btn:hover { background: transparent; color: #0d0d0d; }
.aside-list h2 { font-family: var(--display); font-style: italic; font-weight: 900; text-transform: uppercase; font-size: 1.25rem; letter-spacing: -0.01em; padding-bottom: 10px; border-bottom: 4px solid var(--ink); }
.aside-list ul { list-style: none; margin: 0; padding: 0; }
.aside-list li { padding-block: 14px; border-bottom: 1px solid var(--line); }
.aside-list a { font-weight: 600; line-height: 1.3; text-decoration: none; display: block; }
.aside-list a:hover { text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 3px; text-underline-offset: 3px; }
.aside-list time { display: block; margin-top: 4px; font-size: 0.8rem; color: var(--muted); }

/* ---------- Cartes d'articles ---------- */
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 28px; }
.cards.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.card .pic { display: block; position: relative; aspect-ratio: 3 / 2; background: var(--paper-2); margin: 0 6px 6px 0; }
.card .pic img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.card .pic:hover img, .card .pic:focus-visible img { transform: translate(-4px, -4px); box-shadow: 8px 8px 0 var(--yellow); }
.card .tag { margin-top: 4px; }
.card h3 { font-family: var(--display); font-style: italic; font-weight: 800; font-size: clamp(1.15rem, 2vw, 1.4rem); line-height: 1.14; letter-spacing: -0.015em; }
.card h3 a { text-decoration: none; }
.card h3 a:hover { text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 4px; text-underline-offset: 4px; }
.card p { color: var(--muted); font-size: 0.95rem; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card time { font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); font-variant-numeric: tabular-nums; }

/* ---------- Rubriques, recherche, pages ---------- */
.page-head { padding-block: 44px 28px; }
.page-title { font-family: var(--display); font-style: italic; font-weight: 900; text-transform: uppercase; font-size: clamp(2.2rem, 7vw, 4.2rem); line-height: 1.05; letter-spacing: -0.035em; }
.page-title span { background: var(--yellow); color: var(--on-yellow); padding: 0 0.22em 0 0.16em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.intro { margin-top: 16px; color: var(--muted); font-size: 1.15rem; max-width: 56ch; }
.search-form { display: flex; gap: 0; margin-top: 22px; max-width: 540px; }
.search-form input { flex: 1; min-width: 0; font: inherit; padding: 11px 14px; border: 2px solid var(--ink); border-right: 0; background: var(--paper); color: var(--ink); border-radius: 0; }
.search-form button { font: inherit; font-weight: 700; padding: 11px 20px; border: 2px solid var(--ink); background: var(--yellow); color: var(--on-yellow); cursor: pointer; border-radius: 0; }
.search-form button:hover { background: var(--ink); color: var(--paper); }
.listing { padding-block: 8px 24px; }
.pagination { margin-top: 48px; }
.nav-links { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.nav-links .page-numbers { display: inline-block; min-width: 44px; text-align: center; padding: 9px 14px; border: 2px solid var(--ink); font-weight: 700; text-decoration: none; }
.nav-links a.page-numbers:hover { background: var(--yellow); color: var(--on-yellow); }
.nav-links .current { background: var(--ink); color: var(--paper); }
.nav-links .dots { border-color: transparent; }

/* ---------- Article ---------- */
.entry-head { padding-block: 44px 24px; max-width: 880px; }
.entry-head h1 { font-family: var(--display); font-style: italic; font-weight: 900; font-size: clamp(2rem, 5.6vw, 3.6rem); line-height: 1.02; letter-spacing: -0.03em; margin-block: 14px 16px; }
.entry-head .info { font-size: 0.85rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.hero { max-width: 880px; margin: 8px 12px 0 0; }
.hero img { display: block; width: 100%; box-shadow: 12px 12px 0 var(--yellow); }
.entry { max-width: 700px; padding-top: 40px; font-family: var(--read); font-size: 1.18rem; line-height: 1.75; overflow-wrap: break-word; }
.entry > * + * { margin-top: 1.15em; }
.entry h2, .entry h3 { font-family: var(--display); font-style: italic; font-weight: 800; line-height: 1.1; letter-spacing: -0.02em; margin-top: 1.9em; }
.entry h2 { font-size: 1.7rem; }
.entry h3 { font-size: 1.3rem; }
.entry a { text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 0.18em; text-underline-offset: 0.12em; }
.entry a:hover { background: var(--yellow); color: var(--on-yellow); }
.entry blockquote { margin-inline: 0; padding: 4px 0 4px 22px; border-left: 6px solid var(--yellow); font-style: italic; color: var(--muted); }
.entry img, .entry video { height: auto; }
.entry figure { margin-inline: 0; }
.entry figcaption { font-family: var(--ui); font-size: 0.85rem; color: var(--muted); margin-top: 6px; }
.entry iframe { width: 100%; }
.alignleft { float: left; margin: 0 1.2em 0.6em 0; }
.alignright { float: right; margin: 0 0 0.6em 1.2em; }
.aligncenter { display: block; margin-inline: auto; }
.back { display: inline-block; margin-top: 28px; font-weight: 700; font-size: 0.85rem; letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none; background: linear-gradient(var(--yellow), var(--yellow)) 0 100% / 100% 3px no-repeat; padding-bottom: 2px; }
.more-reading { margin-top: 72px; padding-top: 40px; border-top: 4px solid var(--ink); }
.note-404 { margin-top: 28px; }

/* ---------- Pied de page ---------- */
.site-footer { margin-top: 72px; background: var(--band); color: var(--on-band); border-top: 6px solid var(--yellow); }
.site-footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px; padding-block: 32px; }
.site-footer .logo { font-size: 2rem; }
.site-footer p { color: #b4b4b8; font-size: 0.9rem; max-width: 46ch; }
.site-footer .btns { display: flex; flex-wrap: wrap; gap: 8px; }
.site-footer .btn { background: var(--yellow); color: #0d0d0d; border-color: var(--yellow); }
.site-footer .btn:hover { background: transparent; color: var(--yellow); }
.site-footer .legal-nav { width: 100%; font-size: 0.85rem; font-weight: 700; }
.site-footer .legal-nav a { color: #fff; text-decoration-color: var(--yellow); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.site-footer .legal { width: 100%; border-top: 1px solid var(--band-line); padding-top: 16px; font-size: 0.8rem; color: #8d8d92; }

/* ---------- Téléphone et tablette ---------- */
@media (max-width: 960px) {
  .cols { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .aside { position: static; }
  .cards.three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .nav-list { flex-wrap: wrap; justify-content: center; gap: 0 18px; overflow-x: visible; }
  .reel-zone { padding-inline: 0; }
  .reel { overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-left: var(--gut); scrollbar-width: none; height: 300px; padding-left: var(--gut); }
  .reel::-webkit-scrollbar { display: none; }
  .reel li, .reel li:first-child, .reel li:hover { flex: 0 0 76vw; scroll-snap-align: start; margin-left: -6vw; }
  .reel li:first-child { margin-left: 0; }
  .reel h2, .reel li:first-child h2 { font-size: 1.2rem; }
  .cards, .cards.three { grid-template-columns: minmax(0, 1fr); }
  .strip-left { display: none; }
  .strip .wrap { justify-content: center; }
  .strip nav { justify-content: center; gap: 4px 14px; font-size: 0.72rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
