/* Design système global (thème sombre premium) */
:root{
  --bg:#070a12;
  --surface:#0b1020;
  --card:#0e1424;
  --text:#eaf2ff;
  --muted:#b7c4ff;
  --accent:#3aa0ff;
  --danger:#ff3a3a;
  --radius:16px;
  --max:1100px;
  --shadow: 0 10px 30px rgba(0,0,0,.35);
  --focus: 0 0 0 3px rgba(58,160,255,.45);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  font-size: 18px;
}

*{box-sizing:border-box}
html,body{height:100%}
body.bg{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: radial-gradient(1000px 500px at 10% -10%, rgba(58,160,255,.16), transparent 60%),
              radial-gradient(900px 520px at 90% 0%, rgba(255,255,255,.06), transparent 55%),
              var(--bg);
  color: var(--text);
  line-height:1.55;
  text-rendering:optimizeLegibility;
  padding-top: 84px;
  padding-bottom: calc(78px + var(--safe-bottom));
}

img{max-width:100%; display:block}
svg{display:block}
a{color:var(--accent); text-decoration:none}
a:focus,button:focus,input:focus,textarea:focus,select:focus{outline:none; box-shadow:var(--focus)}

.container{max-width:var(--max); margin:0 auto; padding:18px}
@media (max-width: 900px){
  .container{
    padding: 16px;
    padding-inline: max(16px, env(safe-area-inset-left)) max(16px, env(safe-area-inset-right));
  }
}
@media (max-width: 600px){
  .container{ padding: 12px; padding-inline: max(12px, env(safe-area-inset-left)) max(12px, env(safe-area-inset-right)); }
}
@media (max-width: 380px){
  .container{ padding: 10px; padding-inline: max(10px, env(safe-area-inset-left)); }
}

/* Touch targets mobiles (min 44px) */
@media (max-width: 900px){
  body.bg{ padding-bottom: calc(78px + var(--safe-bottom) + env(safe-area-inset-bottom, 0px)); }
  .btn{ min-height: 44px; padding: 12px 16px; }
  .bottom-link{ min-height: 48px; padding: 12px 10px; }
  input:not([type="checkbox"]):not([type="radio"]),
  textarea,
  select{ min-height: 44px; font-size: 16px; }
}

/* ===== Loader ===== */
.loader{
  position:fixed;
  inset:0;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:10px;
  background: rgba(7,10,18,.96);
  z-index:9999;
}
.loader-logo{
  width:84px;
  height:84px;
  border-radius:22px;
  object-fit:cover;
  animation: spin360 1.1s linear infinite;
  box-shadow: var(--shadow);
}
.loader-text{color:var(--muted); font-size: .95rem}
.loader--hide{opacity:0; pointer-events:none; transition: opacity .25s ease}
@keyframes spin360{ to{ transform: rotate(360deg);} }

/* ===== Buttons / Inputs ===== */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  margin-top:14px;
  padding:12px 14px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(58,160,255,.15);
  color:var(--text);
  cursor:pointer;
}
.btn:hover{filter:brightness(1.05)}
.btn:active{transform:translateY(1px)}
.btn.danger{background: rgba(255,58,58,.18); border-color: rgba(255,58,58,.35)}

label{display:block; margin-top:12px; color:var(--muted)}
input,textarea,select{
  width:100%;
  margin-top:6px;
  padding:12px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.12);
  background: var(--surface);
  color:var(--text);
}
textarea{min-height:110px; resize:vertical}

.error{color:#ffb3b3}
.muted{color:var(--muted)}
.section-title{margin:22px 0 10px}

/* ===== Header ===== */
.topbar{
  position:fixed;
  top:0;
  left:0;
  right:0;
  z-index:80;
  display:grid;
  grid-template-columns: 56px auto 1fr auto;
  gap:14px;
  align-items:center;
  padding:14px 20px;
  border-bottom:1px solid rgba(64,210,255,.25);
  background:
    radial-gradient(120% 160% at 20% -40%, rgba(64,210,255,.22), transparent 55%),
    radial-gradient(120% 160% at 90% -30%, rgba(160,90,255,.18), transparent 60%),
    linear-gradient(180deg, rgba(8,12,24,.92), rgba(6,9,18,.62));
  backdrop-filter: blur(18px) saturate(170%);
  box-shadow: 0 16px 40px rgba(0,0,0,.55), 0 0 32px rgba(64,210,255,.08);
  animation: headerGlow 6s ease-in-out infinite;
}
.topbar::after{
  content:"";
  position:absolute;
  left:16px; right:16px; bottom:-1px; height:2px;
  background: linear-gradient(90deg, rgba(64,210,255,0), rgba(64,210,255,.85), rgba(160,90,255,.6), rgba(64,210,255,0));
  opacity:.85;
  filter: blur(.2px);
}
.brand-text{
  display:flex;
  flex-direction:column;
  gap:2px;
  min-width: 180px;
}
.brand-logo{display:flex; align-items:center; justify-self:end}
.logo{
  width:50px;
  height:50px;
  border-radius:18px;
  object-fit:cover;
  box-shadow: 0 0 0 1px rgba(64,210,255,.35), 0 0 20px rgba(64,210,255,.25), 0 12px 30px rgba(0,0,0,.45);
}
.brand-title{
  font-weight:1000;
  font-size:1.3rem;
  letter-spacing:.45px;
  background: linear-gradient(90deg, #e8f7ff, #8ad6ff 40%, #d7b3ff 80%);
  -webkit-background-clip:text;
  background-clip:text;
  color: transparent;
}
.brand-sub{color:var(--muted); font-size:.92rem; opacity:.9}

.nav{
  display:flex;
  gap:12px;
  flex-wrap:nowrap;
  justify-content:center;
  overflow:auto;
  scrollbar-width:none;
}
.nav::-webkit-scrollbar{display:none}
.nav .nav-ico{
  width:94px;
  height:68px;
  display:flex;
  align-items:center;
  justify-content:center;
  flex-direction:column;
  gap:6px;
  position:relative;
  border-radius:18px;
  background: linear-gradient(180deg, rgba(20,28,60,.85), rgba(10,14,30,.65));
  color: var(--text);
  border:1px solid rgba(64,210,255,.28);
  box-shadow: inset 0 0 0 1px rgba(64,210,255,.08), 0 12px 26px rgba(0,0,0,.35);
  transition: transform .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease;
  position:relative;
  overflow:hidden;
}
.nav .nav-ico::after{
  content:"";
  position:absolute;
  inset:-40% -80%;
  background: linear-gradient(120deg, transparent 30%, rgba(64,210,255,.18) 45%, transparent 60%);
  transform: translateX(-60%);
  opacity:0;
  transition: opacity .2s ease, transform .6s ease;
}
.nav .nav-ico:hover{
  background: linear-gradient(180deg, rgba(64,210,255,.25), rgba(160,90,255,.12));
  border-color: rgba(64,210,255,.75);
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(0,0,0,.45), 0 0 20px rgba(64,210,255,.22);
}
.nav .nav-ico:hover::after{
  opacity:1;
  transform: translateX(60%);
}
.nav .nav-ico[aria-current="page"]{
  background: linear-gradient(180deg, rgba(64,210,255,.35), rgba(160,90,255,.20));
  border-color: rgba(64,210,255,.95);
  box-shadow: 0 16px 36px rgba(0,0,0,.48), 0 0 26px rgba(64,210,255,.35);
}
.nav .nav-ico svg{
  width:22px;
  height:22px;
  fill: currentColor;
  background: rgba(64,210,255,.12);
  padding:6px;
  border-radius:10px;
  box-shadow: inset 0 0 0 1px rgba(64,210,255,.30), 0 0 10px rgba(64,210,255,.18);
}

.nav-label{font-size:.72rem; font-weight:900; letter-spacing:.6px; color: rgba(230,250,255,.98)}

/* Mode réduit sur PC (toggle à gauche) */
.nav.nav--collapsed .nav-label{
  position:absolute;
  width:1px; height:1px;
  padding:0; margin:-1px;
  overflow:hidden; clip:rect(0,0,0,0);
  white-space:nowrap; border:0;
}
.nav.nav--collapsed .nav-ico{width:46px; height:46px}

.nav-toggle{
  display:flex;
  width:50px;
  height:50px;
  border-radius:18px;
  background: linear-gradient(180deg, rgba(20,28,60,.9), rgba(10,14,30,.7));
  color: var(--text);
  border:1px solid rgba(64,210,255,.30);
  align-items:center;
  justify-content:center;
  box-shadow: inset 0 0 0 1px rgba(64,210,255,.12), 0 14px 26px rgba(0,0,0,.38), 0 0 16px rgba(64,210,255,.18);
  transition: transform .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.nav-toggle:hover{
  background: linear-gradient(180deg, rgba(64,210,255,.28), rgba(160,90,255,.14));
  border-color: rgba(64,210,255,.75);
  transform: translateY(-1px);
}
.nav-toggle svg{width:22px; height:22px; fill: currentColor}

/* Mobile/tablette: menu déroulant + labels visibles */
@media (max-width: 900px){
  body.bg{padding-top: 72px}
  .topbar{grid-template-columns: 40px 1fr auto; padding:10px 12px}
  .logo{width:40px; height:40px; border-radius:12px}
  .brand-title{font-size:1.05rem}
  .brand-sub{font-size:.82rem}
  .nav-toggle{width:40px; height:40px; border-radius:12px}
  .nav{
    display:none;
    position:absolute;
    top: calc(100% + 10px);
    right: 12px;
    left: 12px;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap:10px;
    width: auto;
    padding: 10px;
    border-radius: 18px;
    background: rgba(15,20,33,.96);
    border:1px solid rgba(255,255,255,.10);
    box-shadow: 0 12px 30px rgba(0,0,0,.35);
    overflow: visible;
  }
  .nav.nav--open{display:grid}
  .nav .nav-ico{
    width:100%;
    height:auto;
    padding:12px 12px;
    justify-content:center;
    gap:8px;
    position:relative;
    flex-direction:column;
  }
  .nav-label{
    font-size: .96rem;
    font-weight: 900;
  }
  .brand-sub{display:none}
}

@keyframes headerGlow{
  0%,100%{ box-shadow: 0 16px 40px rgba(0,0,0,.55), 0 0 18px rgba(64,210,255,.10); }
  50%{ box-shadow: 0 18px 44px rgba(0,0,0,.58), 0 0 26px rgba(160,90,255,.18); }
}

/* Accueil: centre le logo sur mobile/tablette uniquement */
@media (max-width: 900px){
  .home .topbar{justify-content:center}
  .home .brand{flex-direction:column; text-align:center}
}

/* ===== Index: badges / search ===== */
.visits-badge{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  flex-wrap:wrap;
  margin: 10px 0 18px;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.05);
}
.visits-badge .sep{opacity:.6}

.searchbox{margin:18px 0; position:relative}
.results{
  display:none;
  margin-top:10px;
  background: rgba(14,20,36,.98);
  border-radius: var(--radius);
  overflow:hidden;
  border:1px solid rgba(255,255,255,.10);
  box-shadow: 0 12px 30px rgba(0,0,0,.35);
}
.result-item{
  display:flex;
  flex-direction:column;
  gap:4px;
  padding:12px 14px;
  border-bottom:1px solid rgba(255,255,255,.08);
  color:var(--text);
}
.result-item:hover{background: rgba(255,255,255,.05)}
.result-item:last-child{border-bottom:none}
.result-title{font-weight:800; letter-spacing:.2px}
.result-meta{color:var(--muted); font-size:.92rem}

/* ===== Cards grid ===== */
.grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:14px;
}
@media (max-width: 980px){ .grid{grid-template-columns: repeat(2,1fr);} }
@media (max-width: 640px){ .grid{grid-template-columns: 1fr;} }

.pod-card{
  background: rgba(14,20,36,.92);
  border-radius: var(--radius);
  overflow:hidden;
  border:1px solid rgba(255,255,255,.08);
  box-shadow: 0 8px 22px rgba(0,0,0,.22);
  transition: transform .15s ease, filter .15s ease;
}
.pod-card:hover{transform: translateY(-2px); filter: brightness(1.02)}

.pod-link{display:block; color:var(--text)}
.pod-img{
  width:100%;
  height:190px;
  object-fit:contain;
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
}
@media (max-width: 640px){ .pod-img{height:170px} }

.pod-body{padding:12px}
.pod-meta{color:var(--muted); font-size:.9rem}

/* Description courte + bouton "En savoir plus" */
.pod-desc{
  margin: 8px 0 0;
  color: rgba(255,255,255,.92);
  display: -webkit-box;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.pod-card h3,
.pod-card h3 a,
.pod-card h3 strong{ color: var(--text); }
.pod-desc.is-open{ line-clamp: unset; -webkit-line-clamp: initial; overflow: visible; }
.pod-more{
  margin-top: 8px;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color: var(--text);
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}
.pod-more:hover{
  background: rgba(255,58,58,.92);
  border-color: rgba(255,58,58,.95);
  color: #fff;
  transform: translateY(-1px);
}
.pod-more[hidden]{display:none}

.pod-media{margin-top: 10px; display:flex; flex-direction:column; gap:8px}
.pod-audio{width:100%}

/* ===== Share bar ===== */
.share-bar{margin-top:10px;display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.share-links{display:flex;gap:8px;flex-wrap:wrap}
.share-link{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:8px 10px;
  border:1px solid rgba(255,255,255,.15);
  border-radius:12px;
  text-decoration:none;
  background:rgba(255,255,255,.06);
  color: var(--text);
}
.share-ico{width:20px; height:20px; fill: currentColor}
.sr-only{
  position:absolute;
  width:1px; height:1px;
  padding:0; margin:-1px;
  overflow:hidden; clip:rect(0,0,0,0);
  white-space:nowrap; border:0;
}
.share-link:hover{filter:brightness(1.06)}

/* ===== Countdown ===== */
.countdown{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:8px 12px;
  border-radius:999px;
  background: rgba(58,160,255,.12);
  border:1px solid rgba(255,255,255,.12);
  color: var(--text);
  font-size: .95rem;
}
.countdown .countdown-val{font-variant-numeric: tabular-nums; letter-spacing: .5px}
.countdown--big{margin-top:8px; padding:10px 14px}
.countdown--big .countdown-val{font-size: 1.1rem}

.floating-countdown{
  position: fixed;
  right: 18px;
  bottom: calc(18px + var(--safe-bottom));
  z-index: 60;
  min-width: 220px;
  padding: 12px 12px;
  border-radius: 18px;
  background: rgba(15,20,33,.96);
  border:1px solid rgba(255,255,255,.10);
  box-shadow: 0 16px 40px rgba(0,0,0,.45);
}
@media (max-width: 900px){
  .floating-countdown{left: 14px; right: 14px; bottom: calc(84px + var(--safe-bottom))}
}
.floating-title{font-size:.85rem; color: var(--muted); margin-bottom:6px}

/* ===== Pagination ===== */
.pagination{display:flex; gap:10px; align-items:center; justify-content:center; margin:18px 0}

/* ===== Footer / Toolbar ===== */
.footer{
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  padding: 10px max(12px, env(safe-area-inset-right)) calc(10px + var(--safe-bottom));
  padding-left: max(12px, env(safe-area-inset-left));
  border-top: 1px solid rgba(64,210,255,.25);
  background:
    radial-gradient(120% 160% at 20% 140%, rgba(64,210,255,.22), transparent 55%),
    radial-gradient(120% 160% at 90% 130%, rgba(160,90,255,.18), transparent 60%),
    linear-gradient(180deg, rgba(6,9,18,.62), rgba(8,12,24,.92));
  backdrop-filter: blur(18px) saturate(170%);
  box-shadow: 0 -16px 40px rgba(0,0,0,.55), 0 0 32px rgba(64,210,255,.08);
}
.footer::before{
  content:"";
  position:absolute;
  left:16px; right:16px; top:-1px; height:2px;
  background: linear-gradient(90deg, rgba(64,210,255,0), rgba(64,210,255,.85), rgba(160,90,255,.6), rgba(64,210,255,0));
  opacity:.85;
  filter: blur(.2px);
}
.bottom-nav{display:flex; gap:10px; flex-wrap:wrap; justify-content:center}
.bottom-link{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:10px 12px;
  border-radius:12px;
  background: linear-gradient(180deg, rgba(20,28,60,.85), rgba(10,14,30,.65));
  color:var(--text);
  border:1px solid rgba(64,210,255,.22);
  cursor: pointer;
  font: inherit;
  text-align:center;
  flex-direction:column;
  box-shadow: inset 0 0 0 1px rgba(64,210,255,.08), 0 10px 22px rgba(0,0,0,.28);
  transition: transform .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.bottom-link:hover{
  background: linear-gradient(180deg, rgba(64,210,255,.25), rgba(160,90,255,.12));
  border-color: rgba(64,210,255,.75);
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(0,0,0,.40), 0 0 18px rgba(64,210,255,.18);
}
.bottom-link--primary{
  border-color: rgba(64,210,255,.85);
  background: linear-gradient(180deg, rgba(64,210,255,.30), rgba(160,90,255,.14));
  box-shadow: 0 14px 30px rgba(0,0,0,.40), 0 0 18px rgba(64,210,255,.20);
}
.bottom-link--accent{
  border-color: rgba(64,210,255,.65);
  background: linear-gradient(180deg, rgba(64,210,255,.22), rgba(10,14,30,.65));
}
.bottom-ico svg{width:20px; height:20px; fill: currentColor; opacity:.92}

.bottom-text{font-weight:900; letter-spacing:.2px; font-size:.82rem}
.bottom-text--compact{font-size:.7rem; letter-spacing:.4px}

.bottom-nav{
  justify-content:space-between;
  gap: 10px;
  flex-wrap:nowrap;
  max-width: var(--max);
  margin: 0 auto;
}
.bottom-link{flex:1 1 0; min-width:0}

@media (max-width: 900px){
  .bottom-text{font-size:.78rem}
}

/* ===== Témoignages (modal + bouton fixe) ===== */
.t-fab{
  position: fixed;
  left: 16px;
  bottom: calc(86px + var(--safe-bottom));
  z-index: 95;
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding: 12px 14px;
  border-radius: 999px;
  border: 1px solid rgba(58,160,255,.55);
  background: linear-gradient(180deg, rgba(58,160,255,.22), rgba(58,160,255,.10));
  box-shadow: 0 14px 34px rgba(0,0,0,.40);
  color: var(--text);
  cursor: pointer;
  font: inherit;
}
.t-fab svg{width:22px; height:22px; fill: currentColor}
.t-fab span{font-weight:900; letter-spacing:.2px}
@media (max-width: 900px){
  .t-fab{right: 16px; left: auto}
}

.tmodal[hidden]{display:none}
.tmodal{
  position: fixed;
  inset: 0;
  z-index: 120;
}
.tmodal__backdrop{
  position:absolute;
  inset:0;
  background: rgba(0,0,0,.6);
}
.tmodal__card{
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(760px, calc(100vw - 28px));
  max-height: min(78vh, 720px);
  overflow: auto;
  background: rgba(14,20,36,.98);
  border:1px solid rgba(255,255,255,.12);
  border-radius: 18px;
  box-shadow: 0 20px 60px rgba(0,0,0,.55);
}
.tmodal__head{
  position: sticky;
  top: 0;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  padding: 14px 14px;
  background: rgba(14,20,36,.92);
  border-bottom:1px solid rgba(255,255,255,.08);
  backdrop-filter: blur(10px);
}
.tmodal__title{font-weight:1000; letter-spacing:.2px}
.tmodal__close{
  width:44px; height:44px;
  border-radius:14px;
  background: rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.10);
  color: var(--text);
  cursor:pointer;
}
.tmodal__body{padding: 14px}
.tmodal__grid{display:grid; grid-template-columns: 1fr 1fr; gap:12px}
@media (max-width: 800px){ .tmodal__grid{grid-template-columns: 1fr} }
.tcard{
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  border-radius: 16px;
  padding: 12px;
}
.tlist{display:flex; flex-direction:column; gap:10px}
.titem{border:1px solid rgba(255,255,255,.10); background: rgba(255,255,255,.03); border-radius: 16px; padding: 12px}
.titem__name{font-weight:900}
.titem__date{color: var(--muted); font-size:.85rem; margin-top:2px}
.titem__msg{margin-top:8px; white-space:pre-wrap}

/* ===== Page podcast (single) ===== */
.single{
  background: rgba(14,20,36,.92);
  border:1px solid rgba(255,255,255,.10);
  border-radius: 18px;
  padding: 16px;
  box-shadow: 0 16px 36px rgba(0,0,0,.35);
}
.single h1{margin: 4px 0 8px}
.single-img{
  width:100%;
  max-height: 420px;
  object-fit: contain;
  border-radius: 16px;
  background: rgba(255,255,255,.03);
  border:1px solid rgba(255,255,255,.08);
  margin: 12px 0;
}
.single h1{
  font-size: clamp(1.4rem, 3.6vw, 2.2rem);
  line-height:1.15;
  margin-bottom:8px;
  color: var(--text);
  font-weight:900;
}
.desc{color: rgba(234,242,255,0.95); font-size:1rem}

/* Author card */
.author-card{display:flex; flex-direction:column; gap:10px; align-items:flex-start; margin-bottom:12px}
.author-avatar{width:72px; height:72px; border-radius:12px; object-fit:cover; box-shadow: var(--shadow); border:1px solid rgba(255,255,255,.06)}
.author-name{font-weight:900; font-size:1rem}
.author-bio{color:var(--muted); font-size:.95rem}

/* Button styles (primary variant) */
.btn{background: linear-gradient(90deg,var(--accent), #8ad6ff); border-color: rgba(58,160,255,.28); color: #021022}
.btn:hover{filter:brightness(0.98)}

@media (max-width:1000px){
  .author-card{flex-direction:row; align-items:center; gap:12px}
  .author-bio{display:none}
}
.audio{width:100%; margin: 10px 0}
.desc{margin-top:10px}
.comments{
  margin-top: 16px;
  padding: 16px;
  border-radius: 18px;
  border:1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
}
.comment{margin-top:10px; padding:12px; border-radius:14px; border:1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.03)}
/* ===== Single page layout: responsive two-column ===== */
.single-grid{
  display:grid;
  grid-template-columns: 1fr 320px;
  gap:18px;
  align-items:start;
}
@media (max-width:1000px){
  .single-grid{grid-template-columns:1fr;}
  .single-aside{order:2}
}
.single-aside .sticky-card{
  position:sticky;
  top:108px;
  padding:12px;
  border-radius:14px;
  background: rgba(14,20,36,.92);
  border:1px solid rgba(255,255,255,.06);
  box-shadow: var(--shadow);
}
.single-aside .card-row{margin-bottom:8px; color:var(--muted); font-size:.95rem}
.single-aside .share-link{display:inline-block; margin-right:8px}

/* end of legacy block (nettoyé) */

/* ===== WP-like Admin (responsive) ===== */
.wp-shell{
  max-width: 1400px;
  margin: 0 auto;
  padding: 18px;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 16px;
}
@media (max-width: 980px){
  .wp-shell{grid-template-columns: 1fr; padding: 14px;}
}

.wp-sidebar{
  position: sticky;
  top: 92px;
  align-self: start;
  background: rgba(14,20,36,.75);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 14px;
}
@media (max-width: 980px){
  .wp-sidebar{position: relative; top: 0;}
}

.wp-brand{padding: 8px 8px 10px; border-bottom: 1px solid rgba(255,255,255,.10); margin-bottom: 10px;}
.wp-brand-title{font-weight: 900; letter-spacing:.4px; font-size: 1.05rem;}
.wp-brand-sub{font-size: .9rem; margin-top: 3px;}

.wp-nav{display:flex; flex-direction:column; gap:8px; padding: 8px 0;}
.wp-nav-item{
  display:flex; align-items:center; gap:10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(58,160,255,.10);
  color: var(--text);
}
.wp-nav-item:hover{filter: brightness(1.08)}
.wp-nav-item.danger{background: rgba(255,58,58,.16); border-color: rgba(255,58,58,.35);}

.wp-main{
  background: rgba(14,20,36,.45);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
}

.wp-top{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.wp-title{margin:0}
.wp-actions{display:flex; gap:10px; flex-wrap:wrap}

.wp-notice{
  margin: 12px 0 14px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(64,210,255,.10);
  color: var(--text);
}

.wp-card{
  margin-top: 14px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(11,16,32,.62);
}
.wp-h2{margin: 0 0 8px}
.wp-h3{margin: 0 0 8px}
.wp-panel{
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(14,20,36,.55);
}

.wp-grid-2{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 980px){
  .wp-grid-2{grid-template-columns: 1fr;}
}

.wp-inline{display:flex; gap:10px; align-items:center; flex-wrap:wrap; margin-top:10px}

.wp-list{display:flex; flex-direction:column; gap: 10px; margin-top: 10px}
.wp-row{
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(14,20,36,.55);
}

.wp-details{
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 14px;
  background: rgba(14,20,36,.55);
  padding: 10px 12px;
  margin-top: 10px;
}
.wp-summary{
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
  list-style:none;
}
.wp-summary::-webkit-details-marker{display:none}
.wp-summary-main{display:flex; flex-wrap:wrap; gap: 8px; align-items:baseline}
.wp-badges{display:flex; gap: 8px; align-items:center; flex-wrap:wrap}
.wp-badge{
  display:inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.14);
  font-size: .85rem;
}
.wp-badge.ok{background: rgba(110,255,170,.12)}
.wp-badge.off{background: rgba(255,58,58,.16); border-color: rgba(255,58,58,.35)}
.wp-badge.ghost{background: rgba(255,255,255,.06)}
.wp-details-body{margin-top: 10px}

/* ===== Front pages dark premium: feed + categories ===== */
body.bg.feed-page,
body.bg.category-page{
  --f-bg:#050507;
  --f-bg-soft:#0d0d13;
  --f-card:#12121b;
  --f-card-2:#171724;
  --f-text:#f4f6ff;
  --f-muted:#aeb3cb;
  --f-border:rgba(255,255,255,.12);
  --f-accent:#7c5cff;
  --f-accent-2:#35c8ff;
  color:var(--f-text);
  background:
    radial-gradient(900px 500px at -5% -8%, rgba(124,92,255,.18), transparent 62%),
    radial-gradient(860px 520px at 108% -10%, rgba(53,200,255,.14), transparent 62%),
    linear-gradient(180deg, #06060a 0%, #050507 45%, #040406 100%);
  /* Empêche le header fixe de recouvrir les premières cartes */
  padding-top: 108px;
}

.feed-page .container,
.category-page .container{
  max-width:1180px;
  margin:0 auto;
  padding:20px;
}

.feed-page h1,
.category-page h1{
  margin:8px 0 14px;
  font-size:clamp(1.3rem,2.1vw,1.7rem);
  font-weight:900;
  letter-spacing:.3px;
  color:#fff;
}

.feed-page .inline,
.category-page .inline{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-bottom:12px;
}

.feed-page .btn,
.category-page .btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.16);
  background:linear-gradient(180deg, rgba(124,92,255,.24), rgba(53,200,255,.12));
  color:#fff;
  text-decoration:none;
  transition:transform .16s ease, filter .16s ease, border-color .16s ease;
}
.feed-page .btn:hover,
.category-page .btn:hover{
  transform:translateY(-1px);
  filter:brightness(1.06);
  border-color:rgba(124,92,255,.75);
}

.feed-page .grid,
.category-page .grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:16px;
}
@media (max-width:1000px){
  .feed-page .grid,
  .category-page .grid{grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media (max-width:680px){
  .feed-page .grid,
  .category-page .grid{grid-template-columns:1fr;}
}

.feed-page .pod-card,
.category-page .pod-card{
  background:linear-gradient(180deg, rgba(20,20,30,.96), rgba(12,12,18,.96));
  border-radius:16px;
  overflow:hidden;
  border:1px solid var(--f-border);
  box-shadow:0 14px 34px rgba(0,0,0,.45);
  transition:transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.feed-page .pod-card:hover,
.category-page .pod-card:hover{
  transform:translateY(-4px);
  border-color:rgba(124,92,255,.6);
  box-shadow:0 18px 38px rgba(0,0,0,.54), 0 0 22px rgba(124,92,255,.18);
}

.feed-page .pod-link,
.category-page .pod-link{display:block;color:#fff;text-decoration:none}
.feed-page .pod-link:hover,
.category-page .pod-link:hover{color:#e8e4ff}

.feed-page .pod-img,
.category-page .pod-img{
  width:100%;
  height:210px;
  object-fit:contain;
  object-position:center;
  background:linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
}
@media (max-width:680px){
  .feed-page .pod-img,
  .category-page .pod-img{height:185px;}
}

.feed-page .pod-body,
.category-page .pod-body{padding:14px}
.feed-page .pod-meta,
.category-page .pod-meta,
.feed-page .muted,
.category-page .muted{color:var(--f-muted)}

.feed-page .pod-body h3,
.category-page .pod-body h3{margin:7px 0 6px;color:#fff}
.feed-page .pod-body p,
.category-page .pod-body p{margin:0;color:#e5e8f5;line-height:1.52}

.feed-page .pagination,
.category-page .pagination{
  display:flex;
  gap:10px;
  align-items:center;
  justify-content:center;
  margin:22px 0 6px;
  flex-wrap:wrap;
}

.feed-page .floating-countdown,
.category-page .floating-countdown{
  position:fixed;
  right:16px;
  bottom:84px;
  z-index:80;
  min-width:240px;
  padding:12px;
  border-radius:14px;
  background:linear-gradient(180deg, rgba(20,20,30,.96), rgba(12,12,18,.96));
  border:1px solid var(--f-border);
  box-shadow:0 16px 40px rgba(0,0,0,.5);
}
.feed-page .floating-title,
.category-page .floating-title{font-size:.86rem;color:var(--f-muted);margin-bottom:6px;}

.feed-page .countdown,
.category-page .countdown{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:8px 12px;
  border-radius:999px;
  border:1px solid rgba(124,92,255,.45);
  background:rgba(124,92,255,.14);
  color:#fff;
}
.feed-page .countdown-val,
.category-page .countdown-val{font-variant-numeric:tabular-nums;letter-spacing:.4px;}

.feed-page .countdown--big,
.category-page .countdown--big{margin-top:6px;}

.category-page .muted a{color:#c8d4ff}
.category-page .muted a:hover{color:#fff}

@media (max-width:900px){
  body.bg.feed-page,
  body.bg.category-page{padding-top: 86px;}
  .feed-page .floating-countdown,
  .category-page .floating-countdown{
    left:14px;
    right:14px;
    bottom:92px;
    min-width:0;
  }
  .feed-page .container,
  .category-page .container{padding:14px;}
}
