/* =========================================================
   CSAPA — Styles Section "Médias, Culture & Événements"
   Version 1.0 — Étape 8
   ========================================================= */

/* ── 1. TV PLAYER ───────────────────────────────────────── */
.tv-player-wrapper {
  position: relative;
  background: #000;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16/9;
  margin-bottom: 1.25rem;
}

.tv-player-wrapper iframe { width: 100%; height: 100%; border: 0; }

.tv-player-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #0C1B3A 0%, #1B6B3A 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.tv-player-logo {
  font-family: var(--font-titre);
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: .5rem;
  color: var(--csapa-or);
}

.tv-player-sub { font-size: .85rem; opacity: .8; margin-bottom: 1.5rem; }

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: #ef4444;
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  padding: .25rem .75rem;
  border-radius: 100px;
}

.live-badge .live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff;
  animation: livePulse 1.4s infinite;
}

@keyframes livePulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: .3; }
}

/* ── 2. PROGRAMME DU JOUR ───────────────────────────────── */
.programme-row {
  display: flex;
  gap: 1rem;
  padding: .75rem 1rem;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: var(--radius);
  margin-bottom: .5rem;
  align-items: center;
  font-size: .83rem;
}

.programme-time {
  font-family: 'Courier New', monospace;
  font-weight: 700;
  color: var(--csapa-bleu);
  min-width: 60px;
  flex-shrink: 0;
}

.programme-title { font-weight: 600; color: #1f2937; flex: 1; }
.programme-cat {
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  padding: .15rem .5rem;
  border-radius: 100px;
  color: #fff;
  background: var(--csapa-bleu);
  flex-shrink: 0;
}

.programme-row.current { background: #eff6ff; border-color: #3b82f6; }
.programme-row.current .programme-time { color: #1d4ed8; }

/* ── 3. REPLAY / STREAM CARD ────────────────────────────── */
.stream-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: var(--radius);
  overflow: hidden;
  height: 100%;
  transition: transform .18s, box-shadow .18s;
}

.stream-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,.09);
}

.stream-thumb {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--csapa-bleu), var(--csapa-vert));
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.stream-thumb-emoji { font-size: 2.5rem; }

.stream-play-btn {
  position: absolute;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,.9);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--csapa-bleu);
  font-size: .9rem;
  cursor: pointer;
  transition: transform .15s;
}

.stream-play-btn:hover { transform: scale(1.1); }

.stream-duration {
  position: absolute;
  bottom: .5rem;
  right: .5rem;
  background: rgba(0,0,0,.7);
  color: #fff;
  font-size: .65rem;
  font-weight: 700;
  padding: .1rem .4rem;
  border-radius: 3px;
}

.stream-body { padding: .9rem; }

.stream-title {
  font-weight: 700;
  font-size: .85rem;
  color: var(--csapa-bleu);
  margin-bottom: .3rem;
  line-height: 1.4;
}

.stream-meta {
  font-size: .72rem;
  color: #9ca3af;
}

/* ── 4. DÉPÊCHE / NEWS ROW ──────────────────────────────── */
.depeche-row {
  display: flex;
  gap: 1rem;
  padding: .85rem 0;
  border-bottom: 1px solid #f3f4f6;
}

.depeche-row:last-child { border-bottom: none; }

.depeche-time {
  font-size: .7rem;
  font-weight: 700;
  color: var(--csapa-or);
  min-width: 44px;
  flex-shrink: 0;
  padding-top: .15rem;
}

.depeche-cat {
  font-size: .62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  padding: .1rem .4rem;
  border-radius: 3px;
  color: #fff;
  background: var(--csapa-bleu);
  flex-shrink: 0;
  align-self: flex-start;
  margin-top: .12rem;
}

.depeche-title {
  font-size: .85rem;
  font-weight: 600;
  color: var(--csapa-bleu);
  flex: 1;
  line-height: 1.4;
}

/* ── 5. MAGAZINE COVER ──────────────────────────────────── */
.magazine-cover {
  background: var(--csapa-bleu);
  border-radius: var(--radius);
  padding: 2rem;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.magazine-cover::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(45deg, rgba(200,169,81,.04) 0px, rgba(200,169,81,.04) 2px, transparent 2px, transparent 18px);
}

.magazine-cover-issue {
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--csapa-or);
  margin-bottom: .5rem;
}

.magazine-cover-title {
  font-family: var(--font-titre);
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  font-weight: 700;
  margin-bottom: .75rem;
  line-height: 1.2;
}

.magazine-cover-dossier {
  font-size: .82rem;
  opacity: .85;
  margin-bottom: 1.25rem;
}

.magazine-issue-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: var(--radius);
  overflow: hidden;
  height: 100%;
  transition: box-shadow .18s;
}

.magazine-issue-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.09); }

.magazine-issue-thumb {
  height: 130px;
  background: var(--csapa-bleu);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--csapa-or);
  font-size: 2rem;
}

.magazine-issue-body { padding: .9rem; }

.magazine-issue-num {
  font-size: .68rem;
  color: #9ca3af;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.magazine-issue-title {
  font-weight: 700;
  font-size: .85rem;
  color: var(--csapa-bleu);
  margin: .3rem 0 .2rem;
}

/* ── 6. EVENT FULL CARD ─────────────────────────────────── */
.event-full-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 1rem;
}

.event-full-img {
  position: relative;
  height: 140px;
  overflow: hidden;
}

.event-full-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.event-full-img-overlay {
  position: absolute;
  inset: 0;
  opacity: .45;
}

.event-full-header {
  padding: 1rem 1.25rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.event-full-date-box {
  width: 52px;
  height: 52px;
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #fff;
}

.event-full-date-day { font-size: 1.2rem; font-weight: 700; line-height: 1; }
.event-full-date-month { font-size: .6rem; text-transform: uppercase; opacity: .85; }

.event-full-title {
  font-weight: 700;
  font-size: .95rem;
  color: var(--csapa-bleu);
  margin-bottom: .3rem;
}

.event-full-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem .8rem;
  font-size: .75rem;
  color: #6b7280;
}

.event-full-body {
  padding: 0 1.25rem 1.25rem;
  font-size: .82rem;
  color: #374151;
  line-height: 1.6;
}

/* ── 7. PRIX CARD ───────────────────────────────────────── */
.prix-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: var(--radius);
  padding: 1.5rem;
  height: 100%;
  border-top: 4px solid var(--prix-color, #C8A951);
}

.prix-trophy {
  font-size: 2.2rem;
  margin-bottom: .75rem;
  display: block;
}

.prix-name {
  font-family: var(--font-titre);
  font-size: 1rem;
  font-weight: 700;
  color: var(--csapa-bleu);
  margin-bottom: .4rem;
}

.prix-desc {
  font-size: .8rem;
  color: #6b7280;
  line-height: 1.5;
  margin-bottom: .9rem;
}

.prix-laureats { font-size: .75rem; color: #374151; }

.prix-laureats li {
  padding: .2rem 0;
  border-bottom: 1px solid #f9fafb;
  display: flex;
  justify-content: space-between;
}

/* ── 8. RÉSIDENCE CARD ──────────────────────────────────── */
.residence-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: var(--radius);
  padding: 1.25rem;
  height: 100%;
}

.residence-flag { font-size: 2rem; margin-bottom: .5rem; display: block; }

.residence-location {
  font-weight: 700;
  font-size: .9rem;
  color: var(--csapa-bleu);
  margin-bottom: .3rem;
}

.residence-period {
  font-size: .72rem;
  font-weight: 700;
  color: var(--csapa-vert);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: .4rem;
}

.residence-desc { font-size: .78rem; color: #6b7280; line-height: 1.5; }

/* ── 9. PRESS KIT ROW ───────────────────────────────────── */
.press-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: .9rem 1.1rem;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: var(--radius);
  margin-bottom: .5rem;
  transition: background .15s;
}

.press-row:hover { background: var(--csapa-blanc); }

.press-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .85rem;
  flex-shrink: 0;
}

.press-title { font-weight: 600; font-size: .85rem; color: var(--csapa-bleu); flex: 1; }
.press-size { font-size: .72rem; color: #9ca3af; }
.press-dl { font-size: .75rem; font-weight: 600; color: var(--csapa-bleu); text-decoration: none; flex-shrink: 0; }
.press-dl:hover { color: var(--csapa-vert); }

/* ── 10. CALENDAR VIEW ──────────────────────────────────── */
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  background: #e5e7eb;
  border: 1px solid #e5e7eb;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.cal-header {
  background: var(--csapa-bleu);
  color: #fff;
  text-align: center;
  padding: .5rem;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.cal-day {
  background: #fff;
  min-height: 56px;
  padding: .3rem .4rem;
  font-size: .72rem;
}

.cal-day-num {
  font-weight: 700;
  color: #374151;
  margin-bottom: .2rem;
}

.cal-day.other-month .cal-day-num { color: #d1d5db; }
.cal-day.today { background: #eff6ff; }
.cal-day.today .cal-day-num { color: #1d4ed8; font-size: .82rem; }

.cal-event-dot {
  height: 4px;
  border-radius: 2px;
  margin-bottom: 1px;
  font-size: .55rem;
  color: #fff;
  padding: 0 2px;
  line-height: 1.5;
  overflow: hidden;
  white-space: nowrap;
}

/* ── ALIAS section title ─────────────────────────────── */
.csapa-section-title {
  font-family: var(--font-titre);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--csapa-bleu);
  margin-bottom: 1.1rem;
  padding-bottom: .65rem;
  border-bottom: 2px solid var(--csapa-gris);
  position: relative;
}
.csapa-section-title::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 50px; height: 2px;
  background: var(--csapa-or);
}

/* ── MAGAZINE COVER ──────────────────────────────────── */
.magazine-cover {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  margin-bottom: 1.5rem;
  background: var(--csapa-bleu);
}
.magazine-cover-bg {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: .32;
}
.magazine-cover-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(12,27,58,.95) 30%, rgba(12,27,58,.4) 75%, transparent 100%);
}
.magazine-cover-content {
  position: relative;
  z-index: 2;
  padding: 2rem;
  color: #fff;
}
.magazine-cover-issue {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--csapa-or);
  margin-bottom: .6rem;
}
.magazine-cover-title {
  font-family: var(--font-titre);
  font-size: clamp(1.3rem, 3vw, 1.75rem);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: .7rem;
}
.magazine-cover-dossier {
  font-size: .88rem;
  color: rgba(255,255,255,.65);
  margin-bottom: 1.25rem;
}

/* ── MAGAZINE ISSUE CARD ─────────────────────────────── */
.magazine-issue-card {
  background: #fff;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--csapa-gris);
  transition: box-shadow .22s ease, transform .22s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.magazine-issue-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
  border-color: rgba(200,169,81,.35);
}
.magazine-issue-thumb {
  height: 150px;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
  background: var(--csapa-bleu);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.8rem;
}
.magazine-issue-thumb img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}
.magazine-issue-card:hover .magazine-issue-thumb img { transform: scale(1.06); }
.magazine-issue-body { padding: 1rem 1.25rem 1.25rem; flex-grow: 1; display: flex; flex-direction: column; }
.magazine-issue-num {
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--csapa-or);
  margin-bottom: .3rem;
}
.magazine-issue-title {
  font-family: var(--font-titre);
  font-size: 1rem;
  font-weight: 700;
  color: var(--csapa-bleu);
  line-height: 1.3;
  flex-grow: 1;
}
