/*
Theme Name: MOJOTEK Web Radio V5 Responsive
Theme URI: https://mojotek.fr/
Author: MOJOTEK
Description: Version WordPress responsive de l'interface MOJOTEK V5. Navigation AJAX et player statique.
Version: 1.0.0
Text Domain: mojotek-v5
*/
:root{--bg:#061018;--panel:#071119;--orange:#ff8a2d;--gold:#ffa74d;--text:#f5f5f3}*{box-sizing:border-box}html,body{margin:0;background:#061018;color:var(--text);font-family:Arial,Helvetica,sans-serif}body{min-height:100vh}button,input{font:inherit}button{cursor:pointer}.site{min-height:100vh;background:radial-gradient(circle at 50% 20%,#101a20,#061018 65%)}.topbar{height:88px;display:grid;grid-template-columns:1fr 300px 1fr;align-items:center;background:#061018;border-bottom:1px solid #24404c;position:relative;z-index:20}.topnav{display:flex;gap:58px;align-items:center}.topnav.left{justify-content:flex-end;padding-right:35px}.topnav.right{justify-content:flex-start;padding-left:35px}.topnav a,.topnav button{color:#fff;background:none;border:0;text-decoration:none;font-size:16px;letter-spacing:.06em;text-transform:uppercase}.topnav a:hover,.topnav button:hover{color:var(--orange)}.brand{height:88px;display:grid;place-items:center}.brand img{display:block;width:300px;height:88px;object-fit:cover}.hero{width:100%;overflow:hidden;background:#070e13}.hero img{width:100%;height:auto;display:block}.player-shell{padding:0 8%;margin-top:-1px;background:#071018}.player-bar{min-height:68px;border:1px solid #43505a;border-radius:36px;background:#0a1117;display:flex;align-items:center;gap:24px;padding:9px 24px;box-shadow:0 8px 28px rgba(0,0,0,.34)}.playstop{width:48px;height:48px;border-radius:50%;border:1px solid #f5f5f3;background:transparent;color:#fff;display:grid;place-items:center;font-size:18px}.stop-icon{display:none}.player-bar.playing .play-icon{display:none}.player-bar.playing .stop-icon{display:inline}.volume-wrap{display:flex;align-items:center;gap:12px;width:250px}.volume-wrap input{width:170px;accent-color:#f2f2ee}.now{margin-left:auto;min-width:320px;display:flex;align-items:center;gap:18px}.now small{display:block;color:var(--orange);font-size:11px;letter-spacing:.13em;font-weight:800;margin-bottom:4px}.now strong{display:block;font-weight:400;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:420px}.vu{height:32px;display:flex;align-items:flex-end;gap:3px}.vu i{width:2px;background:var(--orange)}.vu i:nth-child(1){height:30%}.vu i:nth-child(2){height:55%}.vu i:nth-child(3){height:78%}.vu i:nth-child(4){height:100%}.vu i:nth-child(5){height:65%}.vu i:nth-child(6){height:88%}.vu i:nth-child(7){height:45%}.vu i:nth-child(8){height:72%}.player-bar.playing .vu i{animation:vu .7s infinite alternate ease-in-out}@keyframes vu{to{transform:scaleY(.4)}}.cards-zone{position:relative;padding:36px 42px 92px;min-height:410px;background:#061018}.cards{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;max-width:1450px;margin:0 auto}.card{display:block;text-decoration:none;color:#fff;border:2px solid var(--gold);border-radius:12px;overflow:hidden;background:#091219;position:relative;z-index:1}.card img{display:block;width:100%;height:264px;object-fit:cover}.card-band{min-height:88px;background:#071119;text-align:center;padding:14px 12px 12px;border-top:1px solid rgba(255,138,45,.35)}.card-band h2{margin:0;color:#ff7f2a;font-size:24px;font-family:"Arial Narrow",Arial,sans-serif;letter-spacing:.02em;font-weight:800}.card-band p{margin:8px 0 0;color:#f3f1eb;font-size:13px;letter-spacing:.08em}.ajax-panel{position:absolute;z-index:10;width:min(500px,82vw);min-height:286px;left:50%;top:22px;transform:translateX(-50%);background:#071119;border:2px solid var(--gold);border-radius:20px;box-shadow:0 24px 80px rgba(0,0,0,.58);overflow:hidden}.ajax-panel.hidden{display:none}.panel-tabs{display:grid;grid-template-columns:repeat(4,1fr);border-bottom:1px solid rgba(255,167,77,.45);background:#081219}.panel-tabs a{color:#e8e2d7;text-decoration:none;text-align:center;padding:12px 6px;font-size:10px;letter-spacing:.05em;border-right:1px solid rgba(255,167,77,.18)}.panel-tabs a:last-child{border-right:0}.panel-tabs a.active{background:#111e26;color:var(--orange)}.panel-content{padding:24px 32px 30px}.panel-content h1{margin:0;color:var(--orange);text-align:center;font-family:"Arial Narrow",Arial,sans-serif;font-size:28px;letter-spacing:.04em}.panel-content h3{margin:6px 0 20px;color:#fff;text-align:center;font-size:13px;letter-spacing:.18em;text-transform:uppercase;font-weight:500}.link-list{list-style:none;margin:14px 0 0;padding:17px 0 0;border-top:1px solid #d69d55}.link-list li{position:relative;padding-left:27px;margin:13px 0}.link-list li:before{content:"●";position:absolute;left:0;color:#ff7c28;font-size:18px;top:-2px}.link-list a{color:#f3f3ef;font-size:17px;text-decoration:underline}.top-popup{position:fixed;z-index:50;left:50%;top:120px;transform:translateX(-50%);width:min(500px,88vw);background:#071119;border:2px solid var(--gold);border-radius:18px;padding:30px 38px;box-shadow:0 24px 80px rgba(0,0,0,.58)}.top-popup h2{color:var(--orange);margin:0 0 16px}.top-popup p{color:#f3efe7;line-height:1.55}.top-popup a{color:#fff}.popup-logo{display:block;width:190px;margin:0 auto 25px}@media(max-width:850px){.topbar{grid-template-columns:1fr 170px 1fr;height:78px}.brand{height:78px}.brand img{width:170px;height:78px}.topnav{gap:16px}.topnav.left{padding-right:10px}.topnav.right{padding-left:10px}.topnav a,.topnav button{font-size:11px}.player-shell{padding:0 12px}.player-bar{border-radius:0;padding:10px 12px;gap:10px}.volume-wrap{display:none}.now{min-width:0;flex:1}.now strong{max-width:50vw;font-size:12px}.cards-zone{padding:18px 12px 100px}.cards{grid-template-columns:1fr 1fr}.card img{height:200px}}@media(max-width:520px){.topbar{height:70px;grid-template-columns:1fr 120px 1fr}.brand{height:70px}.brand img{width:120px;height:70px}.topnav{gap:7px}.topnav a,.topnav button{font-size:9px;letter-spacing:.02em}.hero img{width:100%;height:auto}.player-bar{min-height:78px}.vu{display:none}.cards{grid-template-columns:1fr}.card img{height:235px}.ajax-panel{position:fixed;top:110px;width:90vw;max-height:70vh;overflow:auto}}
/* =========================================================
   VERSION FIXE PC + MOBILE — topbar inchangée
   ========================================================= */
html,body{
  width:100%;
  height:100%;
  overflow:hidden!important;
}
body{min-height:0!important}
.site{
  width:100%;
  height:100dvh;
  min-height:0!important;
  overflow:hidden!important;
  display:flex;
  flex-direction:column;
}
main{
  flex:1;
  min-height:0;
  overflow:hidden;
  display:grid;
  grid-template-rows:auto 78px minmax(0,1fr);
}

/* Hero : image entière, rapport original conservé, aucun zoom/déformation. */
.hero{
  width:100%;
  min-height:0;
  overflow:hidden;
  background:#070e13;
}
.hero img{
  display:block;
  width:100%;
  height:auto;
  object-fit:contain;
}

/* Player : persistant, entièrement bordé et toujours visible. */
.player-shell{
  height:78px;
  min-height:78px;
  padding:5px 8%;
  margin:0!important;
  background:#071018;
  position:relative;
  z-index:18;
}
.player-bar{
  width:100%;
  height:100%;
  min-height:0!important;
  border:2px solid var(--gold)!important;
  border-radius:34px;
  overflow:visible;
  box-shadow:0 5px 22px rgba(0,0,0,.32);
}
.now{
  flex:1;
  min-width:0!important;
  width:auto!important;
  margin-left:auto;
}
.now>div:last-child{flex:1;min-width:0}
.now strong{
  display:block;
  max-width:none!important;
  white-space:normal!important;
  overflow:visible!important;
  text-overflow:clip!important;
  overflow-wrap:anywhere;
  line-height:1.08;
  font-size:clamp(10px,.9vw,14px);
}

/* Zone basse fixe : les 4 rectangles occupent tout l'espace restant. */
.cards-zone{
  min-height:0!important;
  height:auto!important;
  padding:10px 42px 12px!important;
  overflow:hidden!important;
  position:relative;
}
.cards{
  height:100%;
  max-width:1450px;
  margin:0 auto;
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  grid-template-rows:minmax(0,1fr);
  gap:12px;
}
.card{
  min-height:0;
  display:grid!important;
  grid-template-rows:minmax(0,1fr) auto;
}
.card img{
  width:100%;
  height:100%!important;
  min-height:0;
  object-fit:cover;
}
.card-band{
  min-height:68px!important;
  padding:10px 9px 9px!important;
}
.card-band h2{
  font-size:clamp(15px,1.45vw,23px)!important;
}
.card-band p{
  margin-top:5px!important;
  font-size:clamp(9px,.8vw,12px)!important;
  line-height:1.2;
}

/* Quand un onglet est ouvert : on ne laisse PAS apparaître les cartes derrière. */
.cards-zone.panel-open .cards{
  visibility:hidden;
}
.ajax-panel{
  width:min(520px,88vw)!important;
  min-height:0!important;
  max-height:calc(100% - 16px)!important;
  left:50%!important;
  top:50%!important;
  transform:translate(-50%,-50%)!important;
  background:#071119!important;
  opacity:1!important;
  overflow:auto!important;
  border:2px solid var(--gold)!important;
}
.ajax-panel *{opacity:1}

/* Pas de scroll de page. Seul un panneau peut défiler si son contenu l'exige. */
.top-popup{
  max-height:calc(100dvh - 150px);
  overflow:auto;
}

@media(max-width:850px){
  main{
    height:calc(100dvh - 78px);
    grid-template-rows:auto 76px minmax(0,1fr);
  }
  .player-shell{
    height:76px;
    min-height:76px;
    padding:5px 12px!important;
  }
  .player-bar{
    border-radius:28px!important;
    border:2px solid var(--gold)!important;
  }
  .cards-zone{
    padding:8px 12px 10px!important;
  }
  .cards{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    grid-template-rows:repeat(2,minmax(0,1fr));
    gap:8px;
  }
  .card-band{min-height:54px!important;padding:7px 6px!important}
  .card-band h2{font-size:clamp(12px,2.6vw,18px)!important}
  .card-band p{font-size:clamp(8px,1.8vw,11px)!important;letter-spacing:.03em!important}
  .now strong{font-size:11px!important;line-height:1.05}
  .ajax-panel{
    width:min(520px,92vw)!important;
    max-height:calc(100% - 10px)!important;
  }
}

@media(max-width:520px){
  main{
    height:calc(100dvh - 70px);
    grid-template-rows:auto 78px minmax(0,1fr);
  }
  .hero img{
    width:100%!important;
    height:auto!important;
    min-height:0!important;
    object-fit:contain!important;
  }
  .player-shell{
    height:78px;
    min-height:78px;
    padding:4px 7px!important;
  }
  .player-bar{
    min-height:0!important;
    height:100%!important;
    border-radius:24px!important;
    padding:8px 10px!important;
    border:2px solid var(--gold)!important;
  }
  .playstop{width:44px!important;height:44px!important;min-width:44px}
  .now{gap:8px!important}
  .now small{font-size:8px!important;margin-bottom:2px!important}
  .now strong{font-size:10px!important;line-height:1.05!important}
  .cards-zone{padding:6px!important}
  .cards{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    grid-template-rows:repeat(2,minmax(0,1fr))!important;
    gap:6px!important;
  }
  .card img{height:100%!important;min-height:0!important;object-fit:cover!important}
  .card-band{min-height:48px!important;padding:5px 4px!important}
  .card-band h2{font-size:12px!important;line-height:1!important}
  .card-band p{font-size:8px!important;line-height:1.05!important;margin-top:4px!important}
  .ajax-panel{
    position:absolute!important;
    top:50%!important;
    left:50%!important;
    width:94%!important;
    max-height:94%!important;
    transform:translate(-50%,-50%)!important;
  }
  .panel-tabs a{font-size:8px!important;padding:8px 3px!important}
  .panel-content{padding:14px 18px 18px!important}
  .panel-content h1{font-size:22px!important}
  .panel-content h3{font-size:10px!important;margin-bottom:12px!important}
  .link-list li{margin:8px 0!important}
  .link-list a{font-size:13px!important}
}

/* =========================================================
   CORRECTIONS CIBLÉES — BAS DE PAGE / ONGLETS INDEX 3
   Le reste de l'interface est conservé.
   ========================================================= */

/* Les quatre rectangles restent entièrement cliquables. */
.card{
  cursor:pointer;
  pointer-events:auto;
}
.card > *{
  pointer-events:none;
}

/* Onglet ouvert : fond noir totalement opaque, dans l'esprit des fenêtres du menu du haut. */
.ajax-panel{
  background:#050505!important;
  opacity:1!important;
  border:2px solid var(--gold)!important;
  box-shadow:0 24px 80px rgba(0,0,0,.78)!important;
}
.ajax-panel #ajaxContent,
.ajax-panel .panel-content,
.ajax-panel .panel-tabs{
  background:#050505!important;
  opacity:1!important;
}
.panel-tabs{
  border-bottom:1px solid rgba(255,167,77,.55)!important;
}
.panel-tabs a{
  background:#050505!important;
  color:#f4eee4!important;
}
.panel-tabs a.active{
  background:#111!important;
  color:var(--orange)!important;
  box-shadow:inset 0 -2px 0 var(--orange);
}

/* Quand un onglet est ouvert, les rectangles derrière sont entièrement masqués. */
.cards-zone.panel-open .cards{
  visibility:hidden!important;
}
.cards-zone.panel-open .ajax-panel{
  visibility:visible!important;
}
\n\n/* === CORRECTIONS CIBLÉES V3 — le reste est inchangé === */\n/* Bloc À L'ÉCOUTE + titre plus à droite sur PC. */\n@media(min-width:851px){\n  .now{\n    flex:0 1 42%!important;\n    width:42%!important;\n    min-width:0!important;\n    margin-left:auto!important;\n    justify-content:flex-end!important;\n    padding-left:28px;\n  }\n  .now>div:last-child{\n    flex:0 1 470px!important;\n    min-width:0!important;\n  }\n}\n

/* === CORRECTIONS CIBLÉES V4 — le reste est inchangé === */
/* À L'ÉCOUTE + titre alignés vers la zone du rectangle PARTENARIATS. */
@media(min-width:851px){
  .player-bar{position:relative!important}
  .now{
    position:absolute!important;
    right:3%!important;
    width:20%!important;
    min-width:0!important;
    margin:0!important;
    padding:0!important;
    justify-content:flex-start!important;
    gap:10px!important;
  }
  .now>div:last-child{min-width:0!important;flex:1!important}
  .now strong{
    max-width:none!important;
    width:100%!important;
    white-space:normal!important;
    overflow:visible!important;
    text-overflow:clip!important;
    line-height:1.05!important;
  }
}
/* Image Archives SVG HD/scalable, distincte de L'Humeur Mojo. */
.card[href="archives.html"] img{object-fit:cover!important;object-position:center!important}
/* Liens sociaux ajoutés sans déplacer les menus existants. */
.social-links{
  position:absolute;
  z-index:30;
  top:13px;
  right:18px;
  display:flex;
  gap:12px;
  align-items:center;
}
.social-links a{display:grid;place-items:center;width:22px;height:22px;color:#fff;text-decoration:none}
.social-links a:hover{color:var(--orange)}
.social-links svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7}
.social-links svg path{fill:currentColor;stroke:none}
.social-links svg .dot{fill:currentColor;stroke:none}
/* Un seul contour HTML net sur les cartes 1 et 4 : bordure intégrée aux JPG retirée. */
.card:first-child,.card:last-child{border:2px solid var(--gold)!important;box-shadow:none!important;outline:none!important}
@media(max-width:850px){
  .social-links{top:7px;right:8px;gap:8px}
  .social-links a{width:18px;height:18px}.social-links svg{width:16px;height:16px}
}


/* === CORRECTIONS CIBLÉES V5 — le reste reste inchangé === */
.card[href="humeur-mojo.html"] img{object-fit:cover!important;object-position:center center!important}
.ajax-panel .link-list a,.top-popup a{pointer-events:auto!important;cursor:pointer!important}
