
:root{
  --tile:#e8edf0;
  --ink:#0e1a28;
  --sign:#283b88;
  --muted:#4f5d6c;
  --rule:rgba(14,42,71,.16);
  --line:#277de0;
  --bar:rgba(232,237,240,.92);--field:#f5f8f9;--hover-fg:#ffffff;--display:"Frutiger","Helvetica Neue",Arial,sans-serif;
  --body:"Frutiger","Helvetica Neue",Arial,sans-serif;
}

*,*::before,*::after{box-sizing:border-box}
[hidden]{display:none!important}
html{scroll-behavior:smooth;scroll-padding-top:72px}
body{margin:0;background:var(--tile);color:var(--ink);font:400 1.125rem/1.6 var(--body);-webkit-font-smoothing:antialiased}
a{color:inherit}
h1,h2,h3,p{margin-top:0}
:focus-visible{outline:3px solid var(--ink);outline-offset:3px}
.wrap{width:min(1120px,100% - 40px);margin-inline:auto}
.visually-hidden{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.skip{position:absolute;left:12px;top:-64px;z-index:30;background:var(--ink);color:#fff;padding:10px 14px;border-radius:8px}
.skip:focus{top:12px}

/* ---------- menu fixe ---------- */
.top{
  position:sticky;top:0;z-index:20;
  background:rgba(232,237,240,.92);border-bottom:1px solid var(--rule);
  -webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);
}
.top nav{display:flex;justify-content:flex-end;gap:28px;padding:10px 0}
.top nav a{text-decoration:none;font-weight:600;padding:8px 0;border-bottom:2px solid transparent}
.top nav a:hover{border-color:var(--ink)}

/* ---------- accueil : l'essentiel au premier regard ---------- */
.hero{display:grid;gap:28px;align-items:center;padding-top:clamp(18px,4vw,44px)}
@media (min-width:960px){.hero{grid-template-columns:minmax(0,1fr) minmax(0,1.05fr);gap:56px}}
.logo{display:block;width:min(100%,540px);height:auto}
h1{margin:0}
.lead{font:500 clamp(1.3rem,2.5vw,1.65rem)/1.3 var(--display);max-width:26ch;margin:20px 0 24px}
.follow-label{margin:0 0 10px;color:var(--muted);font-weight:500}

.platforms{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:10px}
.platforms a{
  display:inline-flex;align-items:center;gap:10px;min-height:44px;padding:8px 18px;
  border:2px solid var(--ink);border-radius:999px;font-weight:600;text-decoration:none;
  transition:background .15s,color .15s;
}
.platforms a:hover{background:var(--ink);color:#fff}
.pdot{width:12px;height:12px;border-radius:50%;flex:none}
@media (max-width:560px){
  .follow .platforms{flex-wrap:nowrap;overflow-x:auto;margin-inline:-20px;padding-inline:20px;scrollbar-width:none}
  .follow .platforms a{white-space:nowrap}
}

/* carte « dernier épisode » : un panneau de signalétique */
.latest{position:relative;overflow:hidden;background:var(--sign);color:#fff;border-radius:16px}
.latest::before{content:"";display:block;height:10px;background:var(--line)}
.latest::after{
  content:"";position:absolute;inset:18px 8px 8px;
  border:2px solid rgba(255,255,255,.24);border-radius:9px;pointer-events:none;
}
.latest :focus-visible{outline-color:#fff}
.latest-body{display:flex;gap:20px;align-items:flex-start;padding:22px 26px 4px}
.latest-cover{flex:none;width:168px;height:168px;border-radius:12px;box-shadow:0 0 0 2px rgba(255,255,255,.85)}
.latest-text{min-width:0}
.latest-tag{margin:0 0 4px;font-weight:600;color:rgba(255,255,255,.82)}
.latest h2{font:800 clamp(1.6rem,2.6vw,2.1rem)/1.05 var(--display);margin:0 0 8px}
.latest .kicker{color:rgba(255,255,255,.8)}
.latest .badge{color:#fff}
.latest-desc{
  margin:10px 0 0;color:rgba(255,255,255,.86);font-size:1.02rem;line-height:1.5;
  display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;
}
.latest .listen{padding:16px 26px 28px}
@media (max-width:560px){
  .latest-body{gap:14px;padding:20px 20px 2px}
  .latest-cover{width:96px;height:96px;border-radius:10px}
  .latest-desc{-webkit-line-clamp:2}
  .latest .listen{grid-template-columns:repeat(2,minmax(0,1fr));padding:14px 20px 24px}
}

/* boutons d'écoute (panneau sombre par défaut, version claire dans la liste) */
.listen{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.listen a{
  display:flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:8px 10px;
  border:2px solid rgba(255,255,255,.9);border-radius:10px;
  color:#fff;font-weight:600;font-size:.97rem;text-decoration:none;white-space:nowrap;
  transition:background .15s,color .15s;
}
.listen a:hover{background:#fff;color:var(--sign)}

/* ---------- liste des épisodes ---------- */
section{padding-top:clamp(36px,6vw,68px)}
.hero{padding-bottom:0}
h2{font:800 clamp(2rem,4.6vw,3rem)/1 var(--display);margin:0}
.sec-head{display:flex;flex-wrap:wrap;gap:6px 24px;align-items:baseline;justify-content:space-between;margin-bottom:18px}
.count{margin:0;color:var(--muted);font-weight:500}

.toolbar{display:flex;flex-wrap:wrap;gap:12px 20px;align-items:center;justify-content:space-between;margin-bottom:6px}
#filters{display:flex;flex-wrap:wrap;gap:8px}
.chip{
  display:inline-flex;align-items:center;gap:9px;min-height:44px;padding:8px 16px;
  font:600 1rem var(--body);border-radius:999px;border:2px solid var(--rule);
  background:transparent;color:var(--ink);cursor:pointer;
}
.chip:hover{border-color:var(--ink)}
.chip-dot{width:14px;height:14px;border-radius:50%;background:var(--line,var(--ink))}
.chip[aria-pressed="true"]{border-color:var(--sign);background:var(--sign);color:#fff}
.chip[aria-pressed="true"]:focus-visible{outline-color:var(--sign)}
.tools-right{display:flex;gap:10px;align-items:center;flex:1 1 280px;justify-content:flex-end}
.search,.sortbtn{
  font:inherit;font-size:1rem;min-height:44px;padding:8px 18px;border-radius:999px;
  border:2px solid var(--ink);background:#f5f8f9;color:var(--ink);
}
.search{flex:1 1 160px;max-width:300px;min-width:0}
.sortbtn{cursor:pointer;font-weight:600;white-space:nowrap}
.sortbtn:hover{background:var(--ink);color:#fff}
@media (max-width:700px){
  .tools-right{order:-1;flex-basis:100%;justify-content:stretch}
  .search{max-width:none}
  #filters{flex-wrap:nowrap;overflow-x:auto;margin-inline:-20px;padding:2px 20px;width:calc(100% + 40px);scrollbar-width:none}
  .chip{white-space:nowrap}
}

/* ---------- ligne de métro horizontale (une station = un épisode) ---------- */
.metro{position:relative;margin-top:10px;--step:82px;--lab:116px;--mk:52px}
.scroller{overflow-x:auto;overflow-y:hidden;padding:4px 0 8px;scrollbar-width:thin;-webkit-overflow-scrolling:touch}
.list{list-style:none;margin:0;padding:0 70px;display:grid;grid-auto-flow:column;grid-auto-columns:minmax(var(--step),1fr);width:100%;min-width:calc(var(--n,12)*var(--step) + 140px)}
@media (max-width:899px){.metro{--step:112px}}
.item{position:relative;display:grid;scroll-margin-inline:40px}
.item::before{content:"";position:absolute;left:0;right:0;top:calc(var(--lab) + var(--mk)/2 - 5px);height:10px;background:var(--ink)}
.item:first-child::before{left:calc(50% + 14px);border-radius:0}
.item:last-child::before{right:calc(50% + 14px);border-radius:0}
.item:only-child::before{display:none}
.stn{all:unset;box-sizing:border-box;cursor:pointer;position:relative;z-index:1;display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:var(--lab) var(--mk) var(--lab);justify-items:center;width:100%;text-align:center}
.stn:focus-visible .mk{outline:3px solid var(--ink);outline-offset:3px}
.mk{grid-row:2;width:var(--mk);height:var(--mk);border-radius:50%;background:#fff;box-shadow:0 0 0 4px var(--ink);transition:transform .15s}
.mk img{display:block;width:100%;height:100%;border-radius:50%}
.lab{display:flex;flex-direction:column;gap:3px;width:calc(var(--step)*2 - 12px);padding:6px 2px;pointer-events:none}
.item:nth-child(odd) .lab{grid-row:1;justify-content:flex-end}
.item:nth-child(even) .lab{grid-row:3;justify-content:flex-start}
.stn-name{display:block;font:700 .95rem/1.2 var(--display);overflow-wrap:break-word}
.stn-meta{display:block;font-size:.8rem;color:var(--muted);text-wrap:balance}
.item:hover .mk,.item[data-active="true"] .mk{outline:4px solid var(--ink);outline-offset:5px}
.item[data-active="true"] .stn-name{text-decoration:underline;text-decoration-thickness:3px;text-underline-offset:4px}
.empty{padding:36px 0;color:var(--muted)}

/* fiche de la station : sous la ligne, centrée sous la station survolée */
.stage{position:relative;margin-top:-6px}
@media (min-width:900px){.stage{min-height:360px}}
.hint{margin:0;padding:34px 0;text-align:center;color:var(--muted)}
.card[hidden]~.hint{display:block}
.card:not([hidden])~.hint{display:none}
.card{
  --line:#277de0;position:relative;background:var(--sign);color:#fff;border-radius:16px;overflow:hidden;
  box-shadow:0 18px 40px -14px rgba(14,26,40,.6);
}
.card::before{content:"";display:block;height:10px;background:var(--line)}
.card[hidden]{display:none!important}
.card :focus-visible{outline-color:#fff}
.card-body{padding:18px 20px 6px;display:flex;gap:16px;align-items:flex-start}
.card-cover{flex:none;width:120px;height:120px;border-radius:12px;box-shadow:0 0 0 2px rgba(255,255,255,.85)}
.card-text{min-width:0}
.card h3{margin:0 0 6px;font:700 1.4rem/1.15 var(--display)}
.card-desc{margin:10px 0 0;font-size:1rem;line-height:1.5;color:rgba(255,255,255,.9)}
.card-actions{padding:6px 20px 0}
.card .listen{padding:12px 20px 20px;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
@media (min-width:900px){.card{position:absolute;top:0;width:560px;z-index:5}}
@media (max-width:560px){
  .card-cover{width:84px;height:84px}
  .card .listen{grid-template-columns:repeat(2,minmax(0,1fr))}
}
.ghost{font:700 .98rem var(--body);min-height:44px;padding:8px 18px;border-radius:999px;border:2px solid var(--ink);background:transparent;color:var(--ink);cursor:pointer}
.ghost:hover{background:var(--ink);color:var(--hover-fg)}

/* ---------- à propos ---------- */
.about{display:grid;gap:32px}
@media (min-width:820px){.about{grid-template-columns:260px minmax(0,1fr);gap:64px;align-items:start}}
.about-cover{display:block;width:min(100%,260px);height:auto;border-radius:20px;box-shadow:0 18px 40px -12px rgba(14,26,40,.45)}
.about h2{margin-bottom:18px}
.about p{margin:0 0 1em;max-width:58ch}
.hosts{list-style:none;margin:30px 0 0;padding:0;display:grid;gap:26px}
@media (min-width:640px){.hosts{grid-template-columns:1fr 1fr}}
.host{display:flex;align-items:center;gap:18px}
.host img{flex:none;width:104px;height:104px;border-radius:50%;object-fit:cover;background:#fff;border:3px solid var(--sign)}
.host strong{display:block;font:700 1.6rem/1.1 var(--display)}
.host span{display:block;color:var(--muted);font-weight:500}
.host p{margin:6px 0 0;font-size:1rem;line-height:1.45;color:var(--muted)}

footer{margin-top:clamp(56px,9vw,110px);padding:30px 0 44px;border-top:10px solid var(--sign)}
.foot{display:flex;flex-wrap:wrap;gap:16px 32px;align-items:center;justify-content:space-between;color:var(--muted)}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *{animation:none!important;transition:none!important}
}

/* correctifs de mise en page */
.hero>*,.latest,.latest-text,.main{min-width:0}
@media (min-width:1000px){
  .item .listen{grid-template-columns:repeat(4,auto);gap:6px}
  .item .listen a{padding:8px 12px;font-size:.92rem}
}
body{overflow-x:clip}
@media (max-width:700px){
  .tools-right{flex:1 1 100%;min-width:0;width:100%}
  .search{flex:1 1 0;width:0;min-width:0}
  .sortbtn{flex:none;padding-inline:14px}
}

/* ---------- mode sombre (automatique, ou choisi avec le bouton) ---------- */
:root[data-theme="dark"]{
  --tile:#0e1620;--ink:#e8edf0;--muted:#a9b6c4;--rule:rgba(255,255,255,.2);
  --bar:rgba(14,22,32,.92);--field:#17222f;--hover-fg:#0e1620;
}
@media (prefers-color-scheme: dark){
  :root:not([data-theme="light"]){
    --tile:#0e1620;--ink:#e8edf0;--muted:#a9b6c4;--rule:rgba(255,255,255,.2);
    --bar:rgba(14,22,32,.92);--field:#17222f;--hover-fg:#0e1620;
  }
}
.top{background:var(--bar)}
.search,.sortbtn{background:var(--field)}
.skip{color:var(--tile)}
.platforms a:hover,.sortbtn:hover,.ghost:hover,.item .listen a:hover{color:var(--hover-fg)}
.chip[aria-pressed="true"]{color:#fff;border-color:#4a5fb8}
.item[data-open="true"] .dot{background:var(--ink)}
.logo{box-shadow:0 0 0 2px rgba(255,255,255,.12)}
.latest{box-shadow:0 0 0 1px rgba(255,255,255,.14)}

/* bouton thème */
.theme{font:600 1rem var(--body);min-height:44px;padding:6px 14px;border-radius:999px;border:2px solid var(--rule);background:transparent;color:var(--ink);cursor:pointer}
.theme:hover{border-color:var(--ink)}
.top nav{align-items:center}

/* logos des plateformes */
.platforms.logos{gap:12px}
.platforms.logos a{width:56px;height:56px;padding:0;justify-content:center;border-width:2px;background:#fff}
.platforms.logos a:hover{background:#fff;transform:translateY(-2px)}
.platforms.logos .ico{width:28px;height:28px}
.ico{display:block;flex:none;width:20px;height:20px}
.foot .platforms.logos a{width:48px;height:48px}
.foot .platforms.logos .ico{width:24px;height:24px}

/* RSS */
.rss{display:flex;flex-wrap:wrap;align-items:center;gap:10px 14px;margin-top:16px}
.rss-link{display:inline-flex;align-items:center;gap:10px;min-height:44px;font-weight:600;text-decoration:underline;text-underline-offset:4px;text-decoration-thickness:2px}
.rss-link .ico{width:18px;height:18px}
.ghost.small{min-height:44px;padding:6px 14px;font-size:.92rem}
.rss-status{color:var(--muted);font-size:.95rem;overflow-wrap:anywhere;min-width:0}

/* bouton « Lire ici » */
.playbtn{
  display:inline-flex;align-items:center;gap:10px;min-height:44px;margin-top:8px;padding:6px 18px 6px 14px;
  border:0;border-radius:999px;background:var(--ink);color:var(--hover-fg);
  font:700 1rem var(--body);cursor:pointer;
}
.playbtn:hover{opacity:.88}
.playbtn.on-dark{background:#fff;color:var(--sign);margin-top:12px}
.tri{width:0;height:0;border-style:solid;border-width:7px 0 7px 12px;border-color:transparent transparent transparent currentColor}

/* lecteur fixe */
.player{position:fixed;left:0;right:0;bottom:0;z-index:25;background:var(--sign);color:#fff;border-top:4px solid var(--line,#277de0);box-shadow:0 -8px 24px rgba(0,0,0,.25)}
.player-in{display:flex;align-items:center;gap:16px;padding:8px 0}
.player-title{display:flex;flex-direction:column;min-width:0;flex:0 1 300px;line-height:1.2}
.player-tag{font-size:.85rem;color:rgba(255,255,255,.8)}
.player-title strong{font:700 1.1rem var(--display);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.player-frame{flex:1 1 auto;min-width:0;height:80px;border:0;border-radius:12px}
.player-close{flex:none;width:44px;height:44px;border-radius:50%;border:2px solid rgba(255,255,255,.85);background:transparent;color:#fff;font-size:1.6rem;line-height:1;cursor:pointer}
.player-close:hover{background:#fff;color:var(--sign)}
.player :focus-visible{outline-color:#fff}
body.has-player{padding-bottom:110px}
@media (max-width:700px){
  .player-in{flex-wrap:wrap;gap:6px 10px;padding:8px 0}
  .player-title{flex:1 1 0}
  .player-frame{order:3;flex:1 1 100%}
  body.has-player{padding-bottom:160px}
}

/* retour en haut */
.totop{position:fixed;right:16px;bottom:16px;z-index:24;width:48px;height:48px;border-radius:50%;border:2px solid var(--ink);background:var(--tile);color:var(--ink);font-size:1.4rem;cursor:pointer;box-shadow:0 4px 14px rgba(0,0,0,.25)}
.totop:hover{background:var(--ink);color:var(--hover-fg)}
body.has-player .totop{bottom:104px}
@media (max-width:700px){body.has-player .totop{bottom:156px}}

.platforms a,.listen a,.chip,.search,.sortbtn,.theme{font-family:var(--body)}
.card .listen a{border-color:rgba(255,255,255,.9);color:#fff}
.card .listen a:hover{background:#fff;color:var(--sign)}
.rss{margin-top:16px}
.kicker{display:flex;flex-wrap:wrap;align-items:center;gap:2px 14px;margin:0;font-size:.97rem;color:var(--muted)}
.badge{display:inline-flex;align-items:center;gap:7px;font-weight:700;color:var(--ink)}
.bdot{width:12px;height:12px;border-radius:50%;background:var(--line);flex:none}
.card .kicker,.latest .kicker{color:rgba(255,255,255,.82)}
.card .badge,.latest .badge{color:#fff}

#latest{scroll-margin-top:72px}
.mk{transition:none}

/* compact : le lecteur d'accueil et la ligne de métro restent visibles ensemble */
@media (min-width:900px){
  .hero{padding-top:14px;gap:40px;align-items:start}
  .logo{width:min(100%,430px)}
  .lead{margin:14px 0 14px;font-size:1.35rem}
  .follow-label{margin-bottom:8px}
  .platforms.logos a{width:48px;height:48px}
  .platforms.logos .ico{width:24px;height:24px}
  .rss{margin-top:8px}
  .latest-cover{width:132px;height:132px}
  .latest-body{padding:18px 22px 18px}
  .latest h2{font-size:1.6rem}
  .latest-desc{-webkit-line-clamp:3;margin-top:8px}
  .latest::after{inset:16px 8px 8px}
  #episodes{padding-top:22px}
  #episodes h2{font-size:2rem}
  .sec-head{margin-bottom:10px}
  .metro{--lab:104px}
}
.latest{min-height:230px}
@media (max-width:899px){.latest{min-height:0}}

/* ---------- retouches ---------- */
.theme{display:grid;place-items:center;width:44px;height:44px;padding:0}
.tico{width:22px;height:22px}
.sec-head{margin-bottom:12px}
.toolbar{justify-content:flex-start}

/* lecteur d'accueil : taille fixe, légèrement décalé vers la gauche */
@media (min-width:960px){
  .hero{grid-template-columns:minmax(0,1fr) 640px;gap:32px;padding-right:48px}
  .latest{height:300px;min-height:0}
  .latest-body{height:208px;overflow:hidden}
  .latest h2{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
  .latest-desc{-webkit-line-clamp:3}
}
@media (max-width:959px){
  .latest-body{min-height:196px}
  .latest h2{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
}

/* contact */
.contact{max-width:60ch}
.contact h2{margin-bottom:14px}
.contact p{margin:0 0 14px}
.mail{display:inline-flex;align-items:center;min-height:44px;font:700 clamp(1.1rem,3vw,1.5rem) var(--display);padding:10px 0;text-decoration:underline;text-decoration-thickness:3px;text-underline-offset:6px;overflow-wrap:anywhere}
.mail:hover{text-decoration-color:var(--line)}
@media (min-width:960px){
  .latest{height:324px}
  .latest-body{height:auto;overflow:visible}
}
@media (max-width:959px){
  .latest{height:310px}
  .latest-body{min-height:0}
  .latest h2{-webkit-line-clamp:2}
}

/* lecteur d'accueil : grande jaquette + bouton dessous, texte en colonne étroite */
.latest-body{display:flex;gap:22px;align-items:flex-start}
.latest-side{flex:none;display:flex;flex-direction:column;align-items:center;gap:4px}
.latest-side .latest-cover{width:200px;height:200px}
.latest-side .playbtn{margin-top:10px}
.latest-text{flex:0 1 300px;min-width:0}
.latest-desc{-webkit-line-clamp:6;font-size:.98rem;line-height:1.5}
@media (min-width:960px){
  .latest{height:340px}
  .latest-body{padding:20px 26px}
  .latest h2{font-size:1.5rem}
}
@media (max-width:959px){
  .latest{height:auto;min-height:0}
  .latest-body{padding:20px 20px 24px;gap:16px}
  .latest-text{flex:1 1 auto}
  .latest-side .latest-cover{width:130px;height:130px}
  .latest-desc{-webkit-line-clamp:5}
}
@media (max-width:959px){.latest{height:420px}}
@media (max-width:420px){
  .latest-body{gap:12px;padding:18px 16px}
  .latest-side .latest-cover{width:112px;height:112px}
  .latest-side .playbtn{padding-inline:12px}
}

/* logos des plateformes : noirs, sans cercle */
.platforms.logos{gap:18px}
.platforms.logos a{width:44px;height:44px;border:0;background:none;border-radius:8px;color:var(--ink)}
.platforms.logos a:hover{background:none;transform:translateY(-2px);opacity:.7}
.platforms.logos .ico{fill:currentColor!important;width:32px;height:32px}
.foot .platforms.logos a{width:44px;height:44px}
.foot .platforms.logos .ico{width:28px;height:28px}
.latest-text{flex-basis:330px}
@media (min-width:960px){.latest{height:322px}}
@media (min-width:960px){.latest{height:332px}}
@media (max-width:959px){.latest{height:352px}.latest-desc{-webkit-line-clamp:6}}

/* ---------- intégration au site Green Condor Productions ---------- */
.top{position:static;background:transparent;border-bottom:1px solid var(--rule);-webkit-backdrop-filter:none;backdrop-filter:none}
.top nav{justify-content:flex-start;gap:24px;padding:4px 0}
.top nav a{font-size:1rem}
.player{z-index:40}
