/* ═══ FE.CO.TAE — Événements à venir (mobile d'abord) ═══ */
.fev, .fev-topbar {
  --fev-green: #009543; --fev-green-dk: #006f32; --fev-yellow: #FCD116; --fev-red: #DC241F;
  --fev-gold: #c8a84b; --fev-ink: #0d1a0f; --fev-txt: #334155; --fev-muted: #64748b;
  --fev-card: #fff; --fev-line: #e5e7eb; --fev-wa: #25D366;
  --fev-display: 'Cormorant Garamond', Georgia, serif; --fev-body: 'Outfit', system-ui, sans-serif;
}
[data-theme="dark"] .fev { --fev-ink: #f1f5f9; --fev-txt: #cbd5e1; --fev-muted: #94a3b8; --fev-card: #111c14; --fev-line: #1f2d22; }

/* Bandeau « Aujourd'hui » */
.fev-topbar {
  display: flex; align-items: center; gap: 10px; padding: 10px 16px;
  background: var(--fev-red); color: #fff !important; text-decoration: none !important;
  font-family: var(--fev-body); font-size: .86rem; line-height: 1.3; position: relative; z-index: 50;
}
.fev-topbar b { text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; white-space: nowrap; }
.fev-topbar__txt { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fev-topbar__go { white-space: nowrap; font-weight: 700; background: rgba(255,255,255,.18); padding: 4px 10px; border-radius: 999px; font-size: .78rem; }
.fev-topbar:hover .fev-topbar__go { background: #fff; color: var(--fev-red); }

.fev-dot { width: 9px; height: 9px; border-radius: 50%; background: #fff; flex: 0 0 auto; box-shadow: 0 0 0 0 rgba(255,255,255,.8); animation: fevPulse 1.6s infinite; }
@keyframes fevPulse { 0% { box-shadow: 0 0 0 0 rgba(255,255,255,.75); } 70% { box-shadow: 0 0 0 9px rgba(255,255,255,0); } 100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); } }

/* Section */
.fev { font-family: var(--fev-body); padding: 44px 0 52px; background: linear-gradient(180deg, rgba(0,149,67,.06), transparent 240px); }
.fev--page { padding-top: 36px; }
.fev-wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.fev-header { margin-bottom: 20px; }
.fev-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--fev-green); }
.fev-title { font-family: var(--fev-display); font-weight: 700; color: var(--fev-ink); font-size: clamp(2rem, 8vw, 3.2rem); line-height: 1.05; margin: 8px 0 6px; }
.fev-title em { font-style: italic; color: var(--fev-green); }
.fev-sub { color: var(--fev-muted); font-size: .95rem; margin: 0; }

/* Promo mascotte */
.fev-promo { display: flex; align-items: center; gap: 12px; padding: 10px 14px 10px 10px; margin-bottom: 18px; border-radius: 16px; text-decoration: none !important;
  background: linear-gradient(110deg, var(--fev-green-dk), var(--fev-green)); color: #fff !important; box-shadow: 0 10px 26px rgba(0,111,50,.25); }
.fev-promo img { width: 54px !important; height: 54px !important; object-fit: cover; border-radius: 12px; flex: 0 0 auto; margin: 0 !important; }
.fev-promo__txt { flex: 1; font-size: .95rem; line-height: 1.25; }
.fev-promo__txt b { color: var(--fev-yellow); font-size: 1.15rem; }
.fev-promo__txt small { display: block; opacity: .85; font-size: .76rem; margin-top: 3px; }

/* Cartes */
.fev-list { display: grid; gap: 14px; }
.fev-card { display: grid; grid-template-columns: 104px 1fr; gap: 0; background: var(--fev-card); border: 1px solid var(--fev-line); border-radius: 18px; overflow: hidden;
  box-shadow: 0 6px 20px rgba(15,23,42,.06); position: relative; }
.fev-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--fev-accent, var(--fev-green)); z-index: 2; }
.fev-card--blue { --fev-accent: #2563eb; } .fev-card--teal { --fev-accent: #0f9b8e; } .fev-card--gold { --fev-accent: #b8892c; }
.fev-poster { position: relative; display: block; background: #0d1a0f; min-height: 100%; }
.fev-poster img { width: 100% !important; height: 100% !important; object-fit: cover; object-position: top; display: block; margin: 0 !important; max-width: none !important; border-radius: 0 !important; }
.fev-zoom { position: absolute; right: 6px; bottom: 6px; width: 26px; height: 26px; border-radius: 50%; background: rgba(0,0,0,.55); color: #fff; display: grid; place-items: center; font-size: .7rem; }
.fev-body { padding: 12px 14px 14px; min-width: 0; }
.fev-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.fev-badge { display: inline-flex; align-items: center; gap: 7px; font-size: .68rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; background: rgba(0,149,67,.1); color: var(--fev-green-dk); }
.fev-badge--live { background: var(--fev-red); color: #fff; }
.fev-badge--past { background: #f1f5f9; color: var(--fev-muted); }
.fev-grade { font-size: .7rem; font-weight: 800; color: #fff; background: var(--fev-red); border-radius: 6px; padding: 3px 7px; }
.fev-head-row { display: flex; gap: 10px; align-items: flex-start; }
.fev-date { flex: 0 0 auto; text-align: center; min-width: 48px; padding: 5px 6px; border-radius: 10px; background: var(--fev-ink); color: #fff; line-height: 1; }
.fev-date b { display: block; font-family: var(--fev-display); font-size: 1.25rem; }
.fev-date span { display: block; font-size: .62rem; text-transform: uppercase; letter-spacing: .08em; margin-top: 3px; color: var(--fev-yellow); }
[data-theme="dark"] .fev-date { background: var(--fev-green-dk); }
.fev-org { margin: 0; font-size: .66rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--fev-muted); }
.fev-name { margin: 2px 0 0; font-family: var(--fev-display); font-weight: 700; font-size: 1.22rem; line-height: 1.1; color: var(--fev-ink); }
.fev-name span { display: block; font-family: var(--fev-body); font-size: .92rem; font-weight: 700; color: var(--fev-accent, var(--fev-green)); margin-top: 2px; }
.fev-edition { margin: 8px 0 0; font-size: .78rem; color: var(--fev-muted); font-style: italic; }
.fev-facts { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 4px; font-size: .82rem; color: var(--fev-txt); }
.fev-facts li { margin: 0; padding: 0; display: flex; gap: 7px; align-items: baseline; }
.fev-facts i { color: var(--fev-green); width: 14px; text-align: center; }
.fev-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.fev-btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 40px; padding: 8px 14px; border-radius: 12px; font-size: .82rem; font-weight: 700; text-decoration: none !important; transition: transform .15s, background .2s; -webkit-tap-highlight-color: transparent; }
.fev-btn:active { transform: scale(.97); }
.fev-btn--main { background: var(--fev-green); color: #fff !important; }
.fev-btn--main:hover { background: var(--fev-green-dk); }
.fev-btn--wa { background: var(--fev-wa); color: #fff !important; }
.fev-btn--ghost { background: transparent; color: var(--fev-ink) !important; border: 1.5px solid var(--fev-line); }
.fev-card.is-past { opacity: .7; }

/* Carte « Aujourd'hui » mise en avant */
.fev-card--featured { grid-template-columns: 1fr; margin-bottom: 16px; border: 2px solid var(--fev-red); box-shadow: 0 18px 40px rgba(220,36,31,.18); }
.fev-card--featured::before { width: 100%; height: 5px; bottom: auto; background: linear-gradient(90deg, var(--fev-green) 0 33%, var(--fev-yellow) 33% 66%, var(--fev-red) 66%); }
.fev-card--featured .fev-poster { max-height: 72vh; overflow: hidden; }
.fev-card--featured .fev-poster img { height: auto !important; max-height: 72vh; object-fit: cover; }
.fev-card--featured .fev-body { padding: 16px; }
.fev-card--featured .fev-name { font-size: 1.6rem; }
.fev-card--featured .fev-actions { display: grid; grid-template-columns: 1fr 1fr; }
.fev-card--featured .fev-btn--main { grid-column: 1 / -1; min-height: 48px; font-size: .92rem; }

.fev-past-title { font-family: var(--fev-display); color: var(--fev-ink); font-size: 1.4rem; margin: 30px 0 12px; }
.fev-all { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 18px; min-height: 48px; border-radius: 14px; border: 1.5px solid var(--fev-green); color: var(--fev-green) !important; font-weight: 700; text-decoration: none !important; }
.fev-all:hover { background: var(--fev-green); color: #fff !important; }

/* Très petits écrans */
@media (max-width: 360px) {
  .fev-card { grid-template-columns: 88px 1fr; }
  .fev-actions .fev-btn { flex: 1 1 auto; padding: 8px 10px; }
  .fev-topbar__txt { display: none; }
}

/* Tablette et + */
@media (min-width: 768px) {
  .fev { padding: 70px 0 80px; }
  .fev-wrap { padding: 0 28px; }
  .fev-header { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 6px 24px; margin-bottom: 26px; }
  .fev-header .fev-sub { flex-basis: 100%; }
  .fev-list { grid-template-columns: repeat(3, 1fr); gap: 22px; }
  .fev-list .fev-card { grid-template-columns: 1fr; }
  .fev-list .fev-poster { aspect-ratio: 3 / 4; }
  .fev-list .fev-card::before { width: 100%; height: 4px; bottom: auto; }
  .fev-body { padding: 16px 18px 18px; }
  .fev-card:hover { transform: translateY(-4px); box-shadow: 0 20px 44px rgba(15,23,42,.12); }
  .fev-card { transition: transform .25s, box-shadow .25s; }
  .fev-card--featured { grid-template-columns: minmax(260px, 400px) 1fr; margin-bottom: 26px; }
  .fev-card--featured .fev-poster, .fev-card--featured .fev-poster img { max-height: none; height: 100% !important; }
  .fev-card--featured .fev-body { padding: 30px 34px; display: flex; flex-direction: column; justify-content: center; }
  .fev-card--featured .fev-name { font-size: 2.4rem; }
  .fev-card--featured .fev-facts { font-size: .98rem; }
  .fev-card--featured .fev-actions { display: flex; }
  .fev-promo { max-width: 560px; }
  .fev-all { max-width: 320px; margin: 26px auto 0; }
  .fev-topbar { justify-content: center; font-size: .92rem; }
  .fev-topbar__txt { flex: 0 1 auto; }
}

@media (prefers-reduced-motion: reduce) { .fev-dot { animation: none; } }
