/* DavidOpère · feuille de style commune (pensée d'abord pour le téléphone) */
:root {
  --blue: #0F3FB4;
  --blue-dark: #082B82;
  --night: #051C58;
  --night-line: #1E3A8A;
  --yellow: #FFD42E;
  --ink: #0B1224;
  --text: #24304A;
  --muted: #4A5878;
  --on-night: #C3CDE6;
  --line: #E6EAF2;
  --soft: #F7F8FC;
  --white: #FFFFFF;
  --radius: 18px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--white); color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased;
  padding-bottom: 84px;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); }
h1, h2, h3 { font-family: 'Manrope', 'Inter', sans-serif; font-weight: 800; letter-spacing: -0.01em; }
.wrap { width: 100%; max-width: 760px; margin: 0 auto; padding: 0 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- En-tête ---------- */
.top { position: sticky; top: 0; z-index: 40; background: var(--blue); border-bottom: 1px solid var(--blue-dark); }
.top-in { max-width: 1120px; margin: 0 auto; height: 56px; padding: 0 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--white); }
.brand img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px var(--yellow); }
.brand span { font-family: 'Manrope', sans-serif; font-weight: 800; font-size: 17px; }
.menu { position: relative; }
.menu summary { list-style: none; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; cursor: pointer; border-radius: 12px; }
.menu summary::-webkit-details-marker { display: none; }
.menu[open] summary { background: var(--blue-dark); }
.menu-panel { position: fixed; left: 0; right: 0; top: 56px; max-height: calc(100vh - 56px); overflow-y: auto; background: var(--night); padding: 12px 16px 24px; display: flex; flex-direction: column; gap: 2px; box-shadow: 0 30px 60px rgba(5,28,88,0.45); }
.menu-panel > a:not(.btn) { padding: 14px 4px; color: var(--white); text-decoration: none; font-family: 'Manrope', sans-serif; font-weight: 800; font-size: 20px; border-bottom: 1px solid var(--night-line); }
.menu-panel > a[aria-current] { color: var(--yellow); }
.menu-sep { height: 14px; }
.menu-panel .btn { margin-top: 8px; }
.desk-links { display: none; }

/* ---------- Barre d'actions (téléphone) ---------- */
.actions { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: var(--white); border-top: 1px solid var(--line); padding: 10px 16px calc(12px + env(safe-area-inset-bottom)); display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.btn { min-height: 48px; padding: 0 16px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 700; font-size: 14px; text-decoration: none; text-align: center; line-height: 1.2; }
.btn-yellow { background: var(--yellow); color: var(--ink); }
.btn-line { border: 2px solid var(--blue); color: var(--blue); background: var(--white); }
.btn-dark { background: var(--ink); color: var(--white); }
.btn-ghost-light { border: 2px solid var(--yellow); color: var(--yellow); }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #D93025; flex-shrink: 0; }

/* ---------- Page émission : plateau ---------- */
.stage { background: linear-gradient(180deg, var(--blue) 0%, var(--night) 62%); color: var(--white); }
.stage-in { max-width: 960px; margin: 0 auto; }
.player { position: relative; width: 100%; aspect-ratio: 16 / 9; background: var(--blue); overflow: hidden; }
.player img { width: 100%; height: 100%; object-fit: cover; }
.player button { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; padding: 0; background: transparent; cursor: pointer; }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.play { position: absolute; left: 50%; top: 50%; width: 68px; height: 68px; margin: -34px 0 0 -34px; border-radius: 50%; background: var(--yellow); display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 30px rgba(5,28,88,0.4); }
.duration { position: absolute; left: 12px; bottom: 12px; padding: 4px 10px; border-radius: 999px; background: var(--night); color: var(--white); font-size: 12px; font-weight: 600; }
.stage-text { padding: 20px 16px 26px; max-width: 760px; margin: 0 auto; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.tag { padding: 5px 11px; border-radius: 999px; font-size: 12px; font-weight: 700; text-decoration: none; }
.tag-yellow { background: var(--yellow); color: var(--ink); }
.tag-blue { background: var(--night-line); color: var(--white); }
.tag-outline { border: 1px solid var(--on-night); color: var(--white); }
.stage h1 { margin: 0 0 10px; font-size: 26px; line-height: 1.15; color: var(--white); }
.stage .meta { margin: 0; font-size: 14px; color: var(--on-night); }
.stage .meta strong { color: var(--white); font-weight: 600; }

.lead { margin: 24px 0 8px; font-size: 17px; line-height: 1.5; font-weight: 600; }
.section { padding: 16px 0; }
.section h2 { margin: 0 0 12px; font-size: 22px; line-height: 1.2; }
.section p { margin: 0 0 14px; color: var(--text); }
.card { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.kicker { margin: 0 0 12px; font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--blue); }
.guest { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.avatar { width: 60px; height: 60px; flex-shrink: 0; border-radius: 50%; background: var(--line); color: var(--blue); display: flex; align-items: center; justify-content: center; font-family: 'Manrope', sans-serif; font-weight: 800; font-size: 19px; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.guest-name { display: block; font-family: 'Manrope', sans-serif; font-weight: 800; font-size: 18px; }
.guest-role { display: block; font-size: 14px; color: var(--muted); }
.ideas { margin: 16px -16px 0; padding: 28px 16px; background: var(--night); color: var(--white); }
.ideas h2 { color: var(--white); margin: 0 0 20px; font-size: 22px; }
.idea { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 18px; }
.idea b { font-family: 'Manrope', sans-serif; font-weight: 800; font-size: 38px; line-height: 1; color: var(--yellow); min-width: 48px; }
.idea p { margin: 0; color: var(--white); }
.keyfig { border-top: 1px solid var(--night-line); padding-top: 18px; }
.keyfig span { display: block; font-size: 14px; color: var(--on-night); }
.keyfig strong { display: block; font-family: 'Manrope', sans-serif; font-size: 40px; color: var(--yellow); }
details.transcript { border-radius: 14px; background: var(--soft); padding: 0 16px; }
details.transcript summary { min-height: 52px; display: flex; align-items: center; font-weight: 700; color: var(--blue); cursor: pointer; }
details.transcript div { padding-bottom: 16px; font-size: 15px; color: var(--muted); white-space: pre-line; }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pager a { display: block; padding: 14px; border-radius: 14px; background: var(--soft); text-decoration: none; color: var(--ink); font-size: 14px; font-weight: 600; line-height: 1.35; }
.pager a small { display: block; color: var(--muted); font-weight: 500; margin-bottom: 4px; }
.pager .next { text-align: right; }
.promo { margin: 8px 0 24px; border-radius: var(--radius); background: var(--yellow); padding: 24px; }
.promo .kicker { color: var(--ink); }
.promo h2 { margin: 0 0 10px; font-size: 23px; line-height: 1.2; }
.promo p { margin: 0 0 12px; }
.promo .price { font-family: 'Manrope', sans-serif; font-weight: 800; font-size: 18px; }
.promo .btn { width: 100%; }

/* ---------- Rangées d'émissions ---------- */
.rail { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 16px 6px; margin: 0 -16px; -webkit-overflow-scrolling: touch; }
.rail a { flex: 0 0 240px; scroll-snap-align: start; text-decoration: none; color: var(--ink); }
.thumb { position: relative; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: var(--blue); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.rail strong { display: block; margin-top: 8px; font-size: 14px; line-height: 1.3; }
.rail span { display: block; font-size: 13px; color: var(--muted); }

/* ---------- Liste de toutes les émissions ---------- */
.band { background: linear-gradient(180deg, var(--blue) 0%, var(--night) 100%); color: var(--white); }
.page-head { padding: 24px 0 22px; }
.page-head h1 { margin: 0 0 8px; font-size: 27px; line-height: 1.15; color: var(--white); }
.page-head p { margin: 0 0 18px; color: var(--on-night); }
.page-head .search { background: var(--white); border-color: var(--white); }
.search { display: flex; align-items: center; gap: 10px; height: 50px; padding: 0 16px; border-radius: 999px; background: var(--soft); border: 1px solid var(--line); }
.search input { flex: 1; min-width: 0; border: 0; background: none; font: inherit; font-size: 16px; color: var(--ink); outline: none; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 14px 16px; margin: 0 -16px; border-bottom: 1px solid var(--line); }
.chip { flex-shrink: 0; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--white); color: var(--ink); display: inline-flex; align-items: center; font-size: 14px; font-weight: 600; text-decoration: none; }
.chip.on { background: var(--blue); border-color: var(--blue); color: var(--white); }
.season-head { display: flex; align-items: baseline; justify-content: space-between; padding: 20px 0 6px; }
.season-head h2 { margin: 0; font-size: 19px; }
.season-head span { font-size: 13px; color: var(--muted); }
.list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; }
.row { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; text-decoration: none; color: var(--ink); }
.row .thumb { width: 124px; flex-shrink: 0; border-radius: 10px; }
.row-text { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.row-text strong { font-size: 15px; line-height: 1.3; }
.row-text span { font-size: 13px; line-height: 1.3; color: var(--muted); }
.row-text em { font-style: normal; font-size: 12px; font-weight: 600; color: var(--blue); }
.empty { padding: 24px 0; color: var(--muted); }

/* ---------- Pied de page ---------- */
.foot { background: var(--night); color: var(--on-night); padding: 32px 0 40px; margin-top: 16px; }
.foot .wrap { display: flex; flex-direction: column; gap: 16px; }
.foot-brand { display: flex; align-items: center; gap: 12px; color: var(--white); font-weight: 600; }
.foot-brand img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.foot p { margin: 0; font-size: 14px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 13px; }
.foot nav a { color: var(--on-night); }

/* ---------- Ordinateur ---------- */
@media (min-width: 900px) {
  body { padding-bottom: 0; }
  .actions { display: none; }
  .menu { display: none; }
  .desk-links { display: flex; align-items: center; gap: 22px; }
  .desk-links a { color: #DCE4F7; text-decoration: none; font-size: 14px; font-weight: 600; }
  .desk-links a:hover, .desk-links a[aria-current] { color: var(--white); }
  .desk-links .btn { color: var(--ink); }
  .stage h1 { font-size: 36px; }
  .page-head h1 { font-size: 38px; }
  .list { grid-template-columns: 1fr 1fr; column-gap: 28px; }
  .wrap-wide { max-width: 1120px; }
  .rail { margin: 0; padding: 0 0 6px; overflow: visible; }
  .rail a { flex: 1 1 0; min-width: 0; }
}
