/* ============================================================================
 * Thème « Portail hit-music » (portail) — Site Radio VestaRadio — V2
 *
 * Feuille d'OVERLAY : chargée uniquement quand radio_sites.theme = 'portail'.
 * Ne s'applique que sous body.theme-portail → classic/no1 intacts.
 *
 * V2 (2026-07-11) : plus proche des grands portails hit-music (NRJ-like).
 * DENSITÉ + à-plat + typo condensée. Cartes plates, grilles serrées,
 * titres majuscules serrés, prose alignée à gauche.
 *
 * Variables réutilisées : --c1 (primaire) · --c2 (secondaire) · --bg · --tx
 * ========================================================================== */

body.theme-portail {
  --pt-wrap: 1280px;
  --pt-pad: 24px;
  --pt-radius: 10px;
  --pt-radius-sm: 8px;
  --pt-gap: 12px;
  --pt-line: rgba(0, 0, 0, .10);
  --pt-muted: #6b7280;
  --pt-card: #ffffff;
  background: #f2f3f5;
}

/* Conteneur large commun + rythme resserré */
body.theme-portail .pt-wall,
body.theme-portail .pt-row {
  max-width: var(--pt-wrap);
  margin: 22px auto;
  padding: 0 var(--pt-pad);
}
body.theme-portail .site-section { padding: 22px var(--pt-pad); }
body.theme-portail .site-section .sec-inner { max-width: var(--pt-wrap); }
body.theme-portail .site-section.sec-center,
body.theme-portail .site-section.sec-center .sec-inner { text-align: left; }
body.theme-portail .site-section .sec-text { opacity: 1; line-height: 1.6; }

/* Titres : condensés, MAJUSCULES, soulignés plein */
body.theme-portail .pt-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 14px; margin: 0 0 14px;
  border-bottom: 3px solid var(--tx); padding-bottom: 8px;
}
body.theme-portail .pt-head h2 {
  margin: 0; padding: 0; font-size: 1.7rem; font-weight: 800;
  letter-spacing: -.02em; text-transform: uppercase; color: var(--tx); line-height: 1;
}
body.theme-portail .pt-head h2 i { color: var(--c1); margin-right: 6px; }
body.theme-portail .pt-more {
  flex-shrink: 0; font-size: .74rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: .05em; text-decoration: none;
  color: var(--c1); background: transparent; padding: 4px 2px;
  border: 0; border-bottom: 2px solid transparent; border-radius: 0;
  transition: border-color .12s ease;
}
body.theme-portail .pt-more:hover { border-color: var(--c1); }
body.theme-portail .site-section > .sec-inner > h2 {
  font-size: 1.7rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: -.02em; padding-bottom: 8px; margin-bottom: 16px;
  display: block; border-bottom: 3px solid var(--tx);
}
body.theme-portail .site-section > .sec-inner > h2:after { display: none; }

/* HERO : plein cadre, titre en bas à gauche */
body.theme-portail .hero-slider { border-radius: 0; }
body.theme-portail .hs-overlay {
  background: linear-gradient(to top, rgba(0,0,0,.72) 0%, rgba(0,0,0,.15) 55%, rgba(0,0,0,.35) 100%);
}
body.theme-portail .hs-content {
  max-width: var(--pt-wrap); width: 100%; margin: 0 auto;
  text-align: left; align-self: flex-end; padding: 0 var(--pt-pad) 40px;
}
body.theme-portail .hs-al-center .hs-content { text-align: left; }
body.theme-portail .hs-content h1 {
  text-transform: uppercase; font-weight: 800; letter-spacing: -.02em; line-height: .98;
}
body.theme-portail .hs-btn,
body.theme-portail .sec-btn {
  text-transform: uppercase; letter-spacing: .04em; font-weight: 800;
  border-radius: 4px; padding: 12px 26px;
}
body.theme-portail .hero { max-width: var(--pt-wrap); text-align: left; padding: 40px var(--pt-pad) 24px; }
body.theme-portail .hero .desc { margin: 0; }

/* Mur des radios : pochettes serrées, plates */
body.theme-portail .pt-wall-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: var(--pt-gap);
}
body.theme-portail .pt-wall-card {
  position: relative; display: flex; flex-direction: column; align-items: stretch;
  gap: 8px; padding: 0 0 8px; border: 1px solid var(--pt-line);
  border-radius: var(--pt-radius); background: var(--pt-card);
  box-shadow: none; cursor: pointer; overflow: hidden;
  transition: border-color .14s ease, transform .14s ease;
}
body.theme-portail .pt-wall-card:hover { transform: translateY(-3px); border-color: var(--c1); }
body.theme-portail .pt-wall-cover {
  position: relative; width: 100%; aspect-ratio: 1 / 1; border-radius: 0; overflow: hidden;
  background: linear-gradient(135deg, var(--c1), var(--c2));
}
body.theme-portail .pt-wall-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
body.theme-portail .pt-wall-ph { display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.9); font-size: 2rem; }
body.theme-portail .pt-wall-name {
  font-weight: 700; font-size: .82rem; text-align: center; text-transform: uppercase;
  letter-spacing: .01em; color: var(--tx); line-height: 1.15; padding: 0 6px;
}
body.theme-portail .pt-wall-card.active { border-color: var(--c1); box-shadow: inset 0 0 0 2px var(--c1); }
body.theme-portail .pt-wall-eq {
  position: absolute; top: 8px; right: 8px; display: none;
  align-items: flex-end; gap: 3px; height: 16px; padding: 3px 4px; border-radius: 3px; background: var(--c1);
}
body.theme-portail .pt-wall-card.active .pt-wall-eq { display: flex; }
body.theme-portail .pt-wall-eq i { width: 3px; background: #fff; border-radius: 1px; animation: ptEq .9s ease-in-out infinite; }
body.theme-portail .pt-wall-eq i:nth-child(2) { animation-delay: .25s; }
body.theme-portail .pt-wall-eq i:nth-child(3) { animation-delay: .5s; }
@keyframes ptEq { 0%, 100% { height: 4px; } 50% { height: 11px; } }

/* Rangée podcasts : carrousel serré, tuiles plates */
body.theme-portail .pt-scroll {
  display: flex; gap: var(--pt-gap); overflow-x: auto; overflow-y: hidden;
  padding: 2px 0 12px; scroll-snap-type: x mandatory; scrollbar-width: thin;
}
body.theme-portail .pt-scroll::-webkit-scrollbar { height: 7px; }
body.theme-portail .pt-scroll::-webkit-scrollbar-thumb { background: rgba(0,0,0,.2); border-radius: 0; }
body.theme-portail .pt-pod {
  flex: 0 0 150px; scroll-snap-align: start; display: flex; flex-direction: column;
  gap: 8px; text-decoration: none; color: var(--tx);
}
body.theme-portail .pt-pod-cover {
  display: flex; align-items: center; justify-content: center;
  width: 150px; height: 150px; border-radius: var(--pt-radius);
  background: linear-gradient(135deg, var(--c2), var(--c1)); color: #fff;
  font-size: 2.2rem; box-shadow: none; border: 1px solid var(--pt-line);
  transition: transform .14s ease, border-color .14s ease;
}
body.theme-portail .pt-pod:hover .pt-pod-cover { transform: translateY(-3px); border-color: var(--c1); }
body.theme-portail .pt-pod-title {
  font-weight: 700; font-size: .86rem; line-height: 1.2; text-transform: uppercase; letter-spacing: .005em;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
body.theme-portail .pt-pod-cat { font-size: .66rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--c1); }

/* Rangée actus : grille dense, cartes plates */
body.theme-portail .pt-news,
body.theme-portail .news-grid,
body.theme-portail .news-list {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: var(--pt-gap);
}
body.theme-portail .news-card {
  background: var(--pt-card); border: 1px solid var(--pt-line);
  border-radius: var(--pt-radius-sm); box-shadow: none;
  transition: transform .14s ease, border-color .14s ease;
}
body.theme-portail .news-card:hover { transform: translateY(-3px); border-color: var(--c1); box-shadow: none; }
body.theme-portail .news-card-media { border-radius: 0; }
body.theme-portail .news-card-body h2,
body.theme-portail .news-title-link { text-transform: none; font-weight: 800; letter-spacing: -.01em; }
body.theme-portail .news-more { color: var(--c1); font-weight: 800; text-transform: uppercase; letter-spacing: .03em; font-size: .74rem; }

/* Nav affirmée */
body.theme-portail .site-nav a { font-weight: 700; text-transform: uppercase; letter-spacing: .01em; font-size: .82rem; }

/* Responsive */
@media (max-width: 640px) {
  body.theme-portail .pt-head h2,
  body.theme-portail .site-section > .sec-inner > h2 { font-size: 1.25rem; }
  body.theme-portail .pt-wall-grid { grid-template-columns: repeat(auto-fill, minmax(108px, 1fr)); gap: 10px; }
  body.theme-portail .pt-pod, body.theme-portail .pt-pod-cover { flex-basis: 124px; width: 124px; }
  body.theme-portail .pt-pod-cover { height: 124px; }
  body.theme-portail .pt-news, body.theme-portail .news-grid, body.theme-portail .news-list { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
}
