/* Actualités / événements : bannière défilante de l'accueil et page /evenements.
   Toutes les classes sont préfixées « ev- » (aucune collision avec l'accueil). */

.ev-card { display: flex; flex-direction: column; background: var(--surface, #fff); border: 1px solid var(--border, #e6e0d7); border-radius: 22px; overflow: hidden; box-shadow: 0 6px 18px #5623110a; transition: transform .4s cubic-bezier(.16, 1, .3, 1), box-shadow .4s, border-color .3s; }
.ev-card:hover, .ev-card:focus-within { transform: translateY(-4px); box-shadow: 0 12px 48px rgb(86 35 17 / 12%); border-color: #c63f1c73; }
.ev-img { position: relative; display: block; aspect-ratio: 16 / 9; background: var(--bg-soft, #f1ede6); overflow: hidden; }
.ev-img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ev-ph { display: flex; flex-direction: column; justify-content: center; gap: 4px; padding: 0 26px; color: #fff; background: radial-gradient(70% 90% at 90% 10%, #ff8a5c 0%, transparent 60%), linear-gradient(135deg, #8c2a12, #e04c26); text-decoration: none; }
.ev-ph span { font-size: clamp(1.7rem, 3vw, 2.2rem); font-weight: 600; letter-spacing: -.04em; line-height: 1.05; }
.ev-ph small { font-size: 14px; font-weight: 500; opacity: .9; }
.ev-body { display: flex; flex-direction: column; gap: 10px; padding: 18px 20px 20px; flex: 1; }
.ev-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; font-size: 13.5px; font-weight: 600; color: var(--muted, #5c5a56); }
.ev-badge { font-size: 12px; font-weight: 700; padding: 4px 11px; border-radius: 999px; background: var(--bg-soft, #f1ede6); color: var(--muted, #5c5a56); }
.ev-badge[data-s="upcoming"] { background: var(--accent-strong, #c63f1c); color: #fff; }
.ev-badge[data-s="live"] { background: #1e6b3a; color: #fff; }
.ev-title { margin: 0; font-size: 1.15rem; font-weight: 600; letter-spacing: -.02em; line-height: 1.25; }
.ev-title a { text-decoration: none; color: inherit; }
.ev-title a:hover { color: var(--accent-strong, #c63f1c); }
.ev-place { margin: 0; font-size: 14.5px; color: var(--muted, #5c5a56); }
.ev-sum { margin: 0; font-size: 15px; line-height: 1.5; color: var(--muted, #5c5a56); }
.ev-links { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: auto; padding-top: 6px; }
.ev-links a { font-size: 14px; font-weight: 600; color: var(--accent-strong, #c63f1c); text-decoration: none; }
.ev-links a:hover { text-decoration: underline; }
.ev-links a.ev-main::after { content: " →"; }

/* Bannière défilante (accueil). L'entête reprend .section-head de l'accueil (étiquette, titre, sous-titre). */
.ev-band { padding: 40px 0 24px; }
/* sélecteurs préfixés : le .container de l'accueil (margin / padding en raccourci) est chargé après ce fichier */
.ev-band .ev-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px 32px; flex-wrap: wrap; margin: 0 auto; padding-bottom: 36px; }
.ev-band .ev-top .section-head { margin-bottom: 0; }
.ev-ctrl { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ev-arrow { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; font: 500 22px/1 var(--font, inherit); color: var(--text, #17140f); background: var(--surface, #fff); border: 1px solid var(--border-s, #d4cfc7); border-radius: 999px; cursor: pointer; transition: border-color .2s, color .2s, transform .3s cubic-bezier(.16, 1, .3, 1); }
.ev-arrow:hover { border-color: var(--accent-strong, #c63f1c); color: var(--accent-strong, #c63f1c); transform: translateY(-1px); }
.ev-pause { font: 600 14px var(--font, inherit); min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--border-s, #d4cfc7); background: transparent; color: var(--muted, #5c5a56); cursor: pointer; }
.ev-pause:hover { color: var(--text, #17140f); border-color: var(--muted, #5c5a56); }
.ev-all { font-size: 14.5px; font-weight: 600; color: var(--accent-strong, #c63f1c); text-decoration: none; margin-left: 6px; }
.ev-all:hover { text-decoration: underline; }

/* La bande se défile à la souris (glisser), au trackpad, au doigt et aux flèches ; le défilement automatique est piloté en JavaScript. */
.ev-marquee { overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; padding: 12px 0 28px; }
.ev-marquee::-webkit-scrollbar { display: none; }
.ev-marquee:focus-visible { outline: 2px solid var(--accent-strong, #c63f1c); outline-offset: 2px; border-radius: 12px; }
.ev-track { display: flex; width: max-content; padding-left: max(24px, calc((100vw - var(--maxw, 1160px)) / 2 + 24px)); }
.ev-set { display: flex; gap: 20px; padding-right: 20px; }
.ev-set .ev-card { flex: none; width: 320px; }
.ev-clone { display: none; }
.ev-anim .ev-clone { display: flex; }
.ev-anim .ev-marquee { cursor: grab; }
.ev-anim .ev-marquee.ev-drag { cursor: grabbing; user-select: none; }
.ev-anim .ev-marquee.ev-drag .ev-card { transform: none; }
.ev-marquee img { -webkit-user-drag: none; user-select: none; }
@media (prefers-reduced-motion: reduce) { .ev-pause { display: none; } }

/* Page /evenements */
.ev-section { margin-top: 56px; }
.ev-section h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.ev-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; margin-top: 24px; }
.ev-grid .ev-card { width: auto; }

@media (max-width: 860px) {
  .ev-band { padding: 32px 0 16px; }
  .ev-band .ev-top { padding-bottom: 28px; }
}
@media (max-width: 560px) {
  .ev-set .ev-card { width: 270px; }
  .ev-track { padding-left: 16px; }
  .ev-arrow { display: none; }
}
