/* =====================================================================
   THE GAME MASTER — Événements (1.45). Chargée sur /evenements et les fiches.
   Mêmes couleurs, mêmes polices : noir, rouge, os ; Anton, Special Elite. Le rouge reste le seul accent.
   ===================================================================== */
.ev { overflow-x: clip; }
.ev .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ev h3 { font-size: clamp(20px, 2.6vw, 26px); line-height: 1.06; }
.ev-sec { padding-block: clamp(28px, 5vw, 56px); }
.ev-sec + .ev-sec { padding-top: 0; }

/* ------------------------------------------------------------ haut de page : une horloge qui tourne lentement */
.ev-hero { position: relative; isolation: isolate; border-bottom: 1px solid var(--line); overflow: hidden; }
.ev-hero-in { position: relative; z-index: 2; } .ev-hero-in > * { max-width: 640px; }
.ev-orbit { position: absolute; z-index: 1; right: -60px; top: 50%; width: min(520px, 70vw); aspect-ratio: 1; transform: translateY(-50%); pointer-events: none; opacity: .9; }
.ev-orbit i { position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(236,232,223,.07); }
.ev-orbit i:nth-child(2) { inset: 14%; border-style: dashed; border-color: rgba(209,26,38,.22); animation: ev-spin 90s linear infinite; }
.ev-orbit i:nth-child(3) { inset: 30%; background: radial-gradient(closest-side, rgba(209,26,38,.2), transparent 70%); border-color: rgba(236,232,223,.05); animation: ev-pulse 6s ease-in-out infinite; }
.ev-hand { position: absolute; left: 50%; top: 50%; width: 2px; height: 34%; background: linear-gradient(180deg, var(--brass2), transparent); transform-origin: 50% 0; transform: rotate(200deg); box-shadow: 0 0 12px rgba(255,59,71,.6); animation: ev-spin 60s linear infinite; }
@keyframes ev-spin { to { transform: rotate(560deg); } }
.ev-orbit i:nth-child(2) { animation-name: ev-spin2; } @keyframes ev-spin2 { to { transform: rotate(360deg); } }
@keyframes ev-pulse { 0%, 100% { opacity: .5; } 50% { opacity: 1; } }

/* ------------------------------------------------------------ statuts */
.ev-st { display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px; font: 600 10px/1.2 var(--sans); letter-spacing: .2em; text-transform: uppercase; border: 1px solid var(--line); background: rgba(0,0,0,.72); color: var(--ink); white-space: nowrap; }
.ev-st.st-today, .ev-st.st-postponed { border-color: var(--brass); color: #ffd9dc; }
.ev-st.st-running { border-color: var(--brass); background: rgba(122,10,18,.75); }
.ev-st.st-live { border-color: var(--brass2); background: var(--brass); color: #fff; }
.ev-st.st-live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: ev-blink 1.4s steps(1) infinite; }
@keyframes ev-blink { 50% { opacity: .2; } }
.ev-st.st-ended, .ev-st.st-draft { color: var(--dim); }
.ev-st.st-cancelled { color: var(--dim); text-decoration: line-through; }

/* ------------------------------------------------------------ à la une */
.ev-feat { display: grid; grid-template-columns: minmax(0, 46%) 1fr; border: 1px solid #3a2a2c; background: linear-gradient(120deg, #120a0b, var(--bg2) 55%); box-shadow: 0 30px 70px -40px rgba(209,26,38,.7); overflow: hidden; }
.ev-feat-img { display: block; background: #050505; min-height: 280px; position: relative; }
.ev-feat-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ev-feat-b { padding: clamp(22px, 4vw, 40px); display: flex; flex-direction: column; gap: 12px; }
.ev-feat-b h3 { font-size: clamp(30px, 4.6vw, 52px); } .ev-feat-b h3 a, .ev-card h3 a { text-decoration: none; }
.ev-feat-b .eyebrow { margin: 0; } .ev-feat-b .cta { margin-top: 8px; }
.ev-when { margin: 0; font: 15px var(--type); color: #d2cbbd; } .ev-when.big { font-size: 18px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; } .ev-when small { color: var(--dim); }
.ev-sum { margin: 0; color: #c9c2b4; max-width: 46ch; }
.ev-ph { position: absolute; inset: 0; display: grid; place-items: center; background: radial-gradient(closest-side, rgba(209,26,38,.22), transparent 70%), #070708; color: var(--brass2); }
.ev-ph svg { width: 54px; height: 54px; opacity: .85; }

/* ------------------------------------------------------------ compte à rebours */
.ev-cd { display: flex; gap: 8px; margin: 6px 0 2px; }
.ev-cd > span { min-width: 68px; padding: 10px 8px 8px; border: 1px solid var(--line); background: rgba(0,0,0,.6); text-align: center; }
.ev-cd b { display: block; font: 34px/1 var(--serif); color: var(--ink); font-variant-numeric: tabular-nums; }
.ev-cd small { display: block; margin-top: 6px; font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--dim); }
.ev-cd-now { margin: 0; font: 20px var(--type); color: var(--brass2); }

/* ------------------------------------------------------------ avatars */
.ev-av { display: flex; align-items: center; margin: 0; }
.ev-av > span { width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--bg2); margin-right: -8px; background: #1b1b1f; display: grid; place-items: center; overflow: hidden; font: 13px var(--serif); color: var(--ink); }
.ev-av > span img { width: 100%; height: 100%; object-fit: cover; }
.ev-av small { margin-left: 16px; font-size: 13px; color: var(--dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ev-av.big > span { width: 40px; height: 40px; }

/* ------------------------------------------------------------ cartes */
.ev-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.ev-card { position: relative; display: flex; flex-direction: column; border: 1px solid var(--line); background: var(--bg2); transition: border-color .25s, transform .25s; }
.ev-card:hover { border-color: #3a2a2c; transform: translateY(-2px); }
.ev-card.near { border-color: #4a2a2e; box-shadow: 0 16px 40px -26px rgba(209,26,38,.8); }
.ev-card-img { position: relative; display: block; aspect-ratio: 16 / 10; background: #050505; overflow: hidden; }
.ev-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; } .ev-card:hover .ev-card-img img { transform: scale(1.04); }
.ev-card-img .ev-st { position: absolute; left: 10px; top: 10px; }
.ev-near { position: absolute; right: 10px; top: 10px; font: 600 10px var(--sans); letter-spacing: .2em; text-transform: uppercase; color: #fff; background: var(--brass); padding: 4px 8px; }
.ev-card-b { padding: 16px 16px 14px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.ev-type { margin: 0; display: inline-flex; align-items: center; gap: 7px; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--brass-sm); }
.ev-type svg { width: 16px; height: 16px; flex: none; }
.ev-type.big { font-size: 12px; gap: 9px; flex-wrap: wrap; } .ev-type.big svg { width: 20px; height: 20px; }
.ev-go { margin-top: auto; align-self: flex-start; min-height: 40px; display: inline-flex; align-items: center; gap: 8px; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--brass2); text-decoration: none; }
.ev-cards.past .ev-card { opacity: .82; } .ev-cards.past .ev-card:hover { opacity: 1; }
.ev-empty { text-align: center; padding: 44px 16px; border: 1px dashed #34343a; } .ev-empty svg { width: 54px; height: 54px; color: var(--brass2); opacity: .8; } .ev-empty .cta { justify-content: center; }

/* ------------------------------------------------------------ calendrier */
.ev-views, .ev-filters { display: flex; flex-wrap: wrap; gap: 6px; }
.ev-views button, .ev-filters button { min-height: 40px; padding: 8px 14px; border: 1px solid var(--line); background: none; color: #cfcbc2; font: 13px var(--sans); cursor: pointer; display: inline-flex; align-items: center; gap: 7px; }
.ev-views button.on, .ev-filters button.on { border-color: var(--brass); background: rgba(209,26,38,.14); color: #fff; }
.ev-filters button svg { width: 15px; height: 15px; color: var(--brass2); }
.ev-filters { margin-bottom: 10px; } .ev-types { margin-bottom: 18px; }
.ev-cal-wrap { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.ev-cal { border: 1px solid var(--line); background: linear-gradient(180deg, var(--bg2), #070708); padding: 14px; }
.ev-cal-bar { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.ev-cal-bar h3 { flex: 1; text-align: center; font-size: clamp(20px, 3vw, 26px); }
.ev-nav, .ev-today { min-height: 40px; min-width: 40px; border: 1px solid var(--line); background: none; color: var(--ink); cursor: pointer; font: 18px var(--sans); }
.ev-today { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; padding: 0 12px; }
.ev-nav:hover, .ev-today:hover { border-color: var(--brass); }
.ev-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.ev-days { display: contents; }
.ev-dow { text-align: center; font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--faint); padding: 4px 0 6px; }
.ev-cell { position: relative; aspect-ratio: 1; min-height: 40px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; border: 1px solid transparent; background: rgba(255,255,255,.015); color: #bdb8ae; font: 15px var(--sans); cursor: pointer; padding: 0; }
.ev-cell.off { background: none; cursor: default; }
.ev-cell:hover:not(.off) { border-color: #3a3a40; }
.ev-cell.has { color: var(--ink); background: rgba(209,26,38,.07); border-color: rgba(209,26,38,.28); }
.ev-cell.today span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--ink); }
.ev-cell.on { border-color: var(--brass2); background: rgba(209,26,38,.2); color: #fff; }
.ev-cell.live { box-shadow: inset 0 0 0 1px var(--brass2); }
.ev-dots { display: flex; gap: 3px; height: 5px; } .ev-dots b { width: 5px; height: 5px; border-radius: 50%; background: var(--brass2); } .ev-dots b.st-ended, .ev-dots b.st-cancelled { background: #5a5a60; }
.ev-day h4, .ev-list h4 { margin: 0 0 10px; font: 16px var(--type); color: var(--dim); }
.ev-list h4 { margin-top: 18px; } .ev-list h4:first-child { margin-top: 0; }
.ev-none { color: var(--dim); font-size: 14px; margin: 0; padding: 16px 0; }
.ev-row { display: flex; align-items: center; gap: 12px; padding: 10px; border: 1px solid var(--line); background: var(--bg2); text-decoration: none; margin-bottom: 8px; transition: border-color .2s; }
.ev-row:hover { border-color: var(--brass); }
.ev-row > img, .ev-row-ic { width: 64px; height: 64px; object-fit: cover; flex: none; background: #050505; display: grid; place-items: center; color: var(--brass2); }
.ev-row-ic svg { width: 26px; height: 26px; }
.ev-row-b { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.ev-row-b small { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--brass-sm); } .ev-row-b small svg { width: 13px; height: 13px; }
.ev-row-b small .ev-st { padding: 2px 6px; font-size: 9px; }
.ev-row-b strong { font: 19px/1.1 var(--serif); text-transform: uppercase; color: var(--ink); overflow-wrap: anywhere; }
.ev-row-b > span { font: 14px var(--type); color: #c9c2b4; }
.ev-row-go { color: var(--brass2); }
.ev-row.st-ended > img, .ev-row.st-cancelled > img, .ev-row.st-ended .ev-row-ic, .ev-row.st-cancelled .ev-row-ic { opacity: .55; }   /* 1.45.2 : seule l'image est atténuée, le texte garde un contraste suffisant */
.ev-row.st-ended .ev-row-b strong, .ev-row.st-cancelled .ev-row-b strong { color: #c9c2b4; } .ev-row.st-ended .ev-row-b small, .ev-row.st-cancelled .ev-row-b small { color: var(--dim); }

/* ------------------------------------------------------------ fiche */
.ev-preview { position: sticky; top: 0; z-index: 30; background: var(--brass); color: #fff; text-align: center; padding: 8px 16px; font-size: 13px; letter-spacing: .06em; }
.ev-top { position: relative; isolation: isolate; border-bottom: 1px solid var(--line); }
.ev-top-img { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.ev-top-img img { width: 100%; height: 100%; object-fit: cover; opacity: .42; filter: saturate(.9); }
.ev-top-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #000 0, rgba(0,0,0,.85) 40%, rgba(0,0,0,.45)), linear-gradient(0deg, #000, transparent 50%); }
.ev-top-in > * { max-width: 760px; }
.ev-top .h-page { text-shadow: 0 2px 22px #000; }
.ev-date { margin: 0 0 6px; font: clamp(18px, 2.4vw, 22px)/1.4 var(--type); color: var(--ink); } .ev-date small { color: var(--dim); font-size: 15px; }
.ev-place { margin: 0 0 16px; color: var(--dim); font-size: 14px; letter-spacing: .06em; }
.ev-alert { display: inline-flex; align-items: center; gap: 10px; margin: 4px 0 14px; padding: 10px 14px; border: 1px solid var(--brass); background: rgba(122,10,18,.45); color: #fff; font-size: 14px; }
.ev-alert.soft { background: rgba(0,0,0,.5); color: #ffd9dc; }
.ev-alert.live i { width: 9px; height: 9px; border-radius: 50%; background: var(--brass2); box-shadow: 0 0 10px var(--brass2); animation: ev-blink 1.4s steps(1) infinite; }
.ev-acts { align-items: flex-start; margin-top: 18px; }
.ev-acts .btn.on { border-color: var(--brass); color: #fff; background: rgba(209,26,38,.16); }
.ev-acts .btn svg { width: 16px; height: 16px; margin-right: 8px; }
.ev-menu { position: relative; } .ev-menu > summary { list-style: none; } .ev-menu > summary::-webkit-details-marker { display: none; }
.ev-menu-b { position: absolute; z-index: 20; left: 0; top: calc(100% + 6px); min-width: 250px; display: flex; flex-direction: column; border: 1px solid var(--line); background: #0d0d0f; box-shadow: 0 20px 50px -20px #000; }
.ev-menu-b a, .ev-menu-b button { min-height: 46px; padding: 12px 16px; display: flex; align-items: center; color: var(--ink); text-decoration: none; background: none; border: 0; border-bottom: 1px solid var(--line); font: 15px var(--sans); text-align: left; cursor: pointer; }
.ev-menu-b > :last-child { border-bottom: 0; } .ev-menu-b a:hover, .ev-menu-b button:hover { background: rgba(209,26,38,.14); }
.ev-msg { margin-top: 12px; max-width: 640px; } .ev-msg a { color: var(--brass2); } .ev-msg .btn { margin-top: 8px; display: inline-flex; }
.btn.sm-b { min-height: 40px; padding: 8px 14px; font-size: 11px; }
.ev-body { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(24px, 5vw, 60px); align-items: start; }
.ev-text p { margin: 0 0 14px; }
.ev-img2 { width: 100%; margin: 10px 0 24px; border: 1px solid var(--line); }
.ev-h2 { font-size: clamp(24px, 3.6vw, 34px); margin: 30px 0 16px; } .ev-h2 em { color: var(--brass); font-style: normal; }
.ev-h3 { font-size: 18px; margin: 0 0 12px; letter-spacing: .04em; }
.ev-gal { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 8px; } .ev-gal img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border: 1px solid var(--line); }
.ev-people { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.ev-person { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 18px 10px 14px; border: 1px solid var(--line); background: var(--bg2); color: var(--ink); cursor: pointer; text-align: center; font: inherit; transition: border-color .2s, transform .2s; }
.ev-person:hover { border-color: var(--brass); transform: translateY(-2px); }
.ev-person b { font: 17px/1.1 var(--serif); text-transform: uppercase; overflow-wrap: anywhere; } .ev-person small { color: var(--dim); font-size: 12px; overflow-wrap: anywhere; } .ev-person em { font-style: normal; font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--brass-sm); margin-top: 4px; }
.ev-pav { width: 72px; height: 72px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: #1b1b1f; border: 1px solid #3a2a2c; font: 28px var(--serif); margin-bottom: 6px; box-shadow: 0 0 0 4px rgba(209,26,38,.08); }
.ev-pav img { width: 100%; height: 100%; object-fit: cover; } .ev-pav.big { width: 96px; height: 96px; margin: 0 auto 10px; }
.ev-pop { border: 1px solid var(--line); background: #0b0b0c; color: var(--ink); padding: 0; width: min(420px, calc(100vw - 32px)); }
.ev-pop::backdrop { background: rgba(0,0,0,.72); }
.ev-pop-in { position: relative; padding: 28px 22px 22px; text-align: center; } .ev-pop-in p { color: #c9c2b4; } .ev-pop-in .muted { color: var(--dim); font-size: 13px; }
.ev-pop-x { position: absolute; right: 8px; top: 8px; width: 40px; height: 40px; border: 0; background: none; color: var(--ink); font-size: 24px; cursor: pointer; }
.ev-nets { display: flex; flex-direction: column; gap: 6px; margin-top: 14px; }
.ev-nets a { min-height: 46px; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.ev-nets a:hover { border-color: var(--brass); } .ev-nets svg { width: 20px; height: 20px; color: var(--brass2); }
.ev-side { border-left: 1px solid var(--line); padding-left: 24px; }
.ev-dl { margin: 0 0 24px; } .ev-dl div { padding: 10px 0; border-bottom: 1px solid var(--line); } .ev-dl dt { font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--faint); } .ev-dl dd { margin: 4px 0 0; font: 16px var(--type); }
.ev-links { list-style: none; margin: 0 0 20px; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.ev-link { display: flex; min-height: 44px; align-items: center; padding: 10px 14px; border: 1px solid var(--line); color: var(--ink); text-decoration: none; } .ev-link:hover { border-color: var(--brass); }
.ev-back a { color: var(--brass2); text-decoration: none; font-size: 14px; }

.js .ev .rv { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.2,1); }
.js .ev .rv.in { opacity: 1; transform: none; }
.ev-card[hidden] { display: none !important; }

@media (max-width: 900px) {
  .ev-feat { grid-template-columns: 1fr; } .ev-feat-img { min-height: 0; aspect-ratio: 16 / 10; }
  .ev-cal-wrap { grid-template-columns: 1fr; }
  .ev-body { grid-template-columns: 1fr; } .ev-side { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 20px; }
}
@media (max-width: 640px) {
  .ev-orbit { right: -40%; width: 110vw; top: 40%; opacity: .6; }
  .ev-cd > span { min-width: 0; flex: 1; } .ev-cd b { font-size: 28px; }
  .ev-cal { padding: 10px 8px; } .ev-grid { gap: 2px; } .ev-cell { min-height: 0; font-size: 14px; } .ev-cell.today span { width: 24px; height: 24px; }
  .ev-acts { flex-direction: column; align-items: stretch; } .ev-acts .btn, .ev-menu, .ev-menu > summary { width: 100%; } .ev-menu-b { right: 0; min-width: 0; }
  .ev-cards { grid-template-columns: 1fr; }
  .ev-filters { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(var(--gut) * -1); padding-inline: var(--gut); scrollbar-width: none; } .ev-filters::-webkit-scrollbar { display: none; } .ev-filters button { flex: none; }
  .ev-people { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  .ev-orbit i, .ev-hand, .ev-st.st-live::before, .ev-alert.live i { animation: none; }
  .js .ev .rv { opacity: 1; transform: none; transition: none; }
  .ev-card, .ev-card-img img, .ev-person { transition: none; }
}

/* 1.45.1 — étiquette de catégorie sur chaque événement (cartes, une, fiche) */
.ev-tag { display: inline-flex; align-items: center; gap: 7px; padding: 5px 10px 5px 8px; border: 1px solid rgba(209,26,38,.5); background: rgba(209,26,38,.1); color: #f3d6d8; border-radius: 2px; line-height: 1.1; }
.ev-tag svg { color: var(--brass2); }
.ev-card-b .ev-tag { align-self: flex-start; }
.ev-feat-b .ev-tag { margin: -6px 0 14px; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; }
.ev-type.big .ev-tag { font-size: 12px; }

@media (max-width: 640px) { #calendrier > .sec-head { row-gap: 12px; } }   /* 2.14.2 : Calendrier / Liste à 12 px du titre quand ils passent dessous (avant : 4 px) */
