/*
 * CookinBreak — pages d'événement (/evenements/<slug>) et page des occasions (/evenements/).
 * Balisage : app/views/event/page.php, app/views/event/calendar.php, evenements/index.php · comportement : static/js/pages/event.js
 *
 * Une base commune (bandeau, rubriques, menus, frise, conseils, outils, FAQ, calendrier), puis un thème par événement :
 *   .ev--<slug> pose les couleurs (--evh-* pour le bandeau, --ev-accent pour les rubriques) et le motif du bandeau,
 *   .evh-art--<art> dispose les photos du bandeau (pile, mosaïque, ovales, arches, cadre, polaroïds…).
 * Les cartes de recettes sont celles du design system (static/css/ds/recipe-card.css).
 * Règle du site : g-style pose Poppins sur tous les éléments, la police des titres (Unbounded) doit donc être déclarée sur chacun.
 */

.ev {
  --ev-gutter: 24px;
  --ev-serif: 'Iowan Old Style', 'Palatino Linotype', Palatino, 'Book Antiqua', Georgia, serif;
  /* valeurs par défaut (page des occasions) : la marque */
  --evh-bg: #f2f8f7;
  --evh-ink: var(--ds-text);
  --evh-ink-2: var(--ds-text-2);
  --evh-chip: rgba(0, 0, 0, 0.06);
  --ev-accent: var(--ds-primary);
  --ev-accent-ink: var(--ds-primary-text);
  --ev-tint: color-mix(in srgb, var(--ev-accent) 9%, var(--ds-bg));
  display: block; padding-bottom: clamp(56px, 8vw, 96px); background: var(--ds-bg); color: var(--ds-text);
}
@media (max-width: 599px) { .ev { --ev-gutter: 16px; } }
.ev *, .ev *::before, .ev *::after { box-sizing: border-box; }
.ev a { color: inherit; }
.ev-wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--ev-gutter); }

/* ==================================================================
 * Bandeau
 * ================================================================== */
.evh {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--evh-bg); color: var(--evh-ink);
}
.evh::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; } /* motif du thème */
.evh__inner {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 36px; align-items: center;
  max-width: 1200px; margin: 0 auto; padding: clamp(28px, 5vw, 64px) var(--ev-gutter) 24px;
}
@media (min-width: 960px) {
  .evh__inner { grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); gap: 56px; min-height: 500px; padding-bottom: 36px; }
  .evh__inner--solo { grid-template-columns: minmax(0, 1fr); min-height: 0; }
}
.evh__text { min-width: 0; }
.evh__crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 22px; font-size: 0.82rem; color: var(--evh-ink-2); }
.evh__crumbs a { color: inherit; text-decoration: none; }
.evh__crumbs a:hover { text-decoration: underline; }
.evh__crumbs [aria-current] { color: var(--evh-ink); font-weight: 600; }

.evh__status {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 18px; padding: 7px 14px;
  border-radius: var(--ds-radius-pill); background: var(--evh-chip); font-size: 0.85rem; font-weight: 600; color: var(--evh-ink);
}
.evh__status.is-now { background: var(--ev-accent); color: var(--evh-on-accent, #fff); }

.evh__title {
  margin: 0 0 18px; max-width: 14ch; font-family: var(--ds-font-display); font-size: clamp(2.1rem, 1.2rem + 3.8vw, 4rem);
  font-weight: 600; line-height: 1.06; letter-spacing: -0.02em; color: var(--evh-ink); text-wrap: balance;
}
.evh__title em, .evh__title em span { font-family: inherit; }
.evh__title em { display: block; font-family: var(--ds-font-display); font-style: normal; color: var(--evh-em, var(--ev-accent)); }
.evh__lead { margin: 0 0 24px; max-width: 54ch; font-size: 1.04rem; line-height: 1.65; color: var(--evh-ink-2); }
.evh__facts { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 0 0 18px; padding: 0; list-style: none; font-size: 0.9rem; color: var(--evh-ink); }
.evh__facts li { display: inline-flex; align-items: center; gap: 8px; }
.evh__facts .cb-icon { font-size: 1.1em; color: var(--evh-em, var(--ev-accent)); }
.evh__count { margin: 0; font-size: 0.9rem; color: var(--evh-ink-2); }
.evh__count strong { font-family: var(--ds-font-display); font-size: 1.15rem; font-weight: 600; color: var(--evh-ink); }

/* sommaire de la page */
.evh__nav { max-width: 1200px; margin: 0 auto; padding: 0 var(--ev-gutter) 22px; }
.evh__nav ul {
  display: flex; gap: 8px; margin: 0; padding: 2px 0 4px; list-style: none; overflow-x: auto; scrollbar-width: none;
  -webkit-mask-image: linear-gradient(90deg, #000 92%, transparent); mask-image: linear-gradient(90deg, #000 92%, transparent);
}
.evh__nav ul::-webkit-scrollbar { display: none; }
.evh__nav a {
  display: inline-block; padding: 8px 15px; white-space: nowrap; border-radius: var(--ds-radius-pill);
  background: var(--evh-chip); color: var(--evh-ink); font-size: 0.85rem; font-weight: 600; text-decoration: none;
  transition: background var(--ds-duration) var(--ds-ease);
}
.evh__nav a:hover { background: color-mix(in srgb, var(--evh-ink) 16%, transparent); }
.evh__nav a:focus-visible, .evh__crumbs a:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }

/* ---------- Photos du bandeau ---------- */
.evh__art { position: relative; min-width: 0; height: clamp(260px, 62vw, 460px); }
@media (min-width: 960px) { .evh__art { height: 440px; } }
.evh-art__ph { position: absolute; margin: 0; overflow: hidden; background: color-mix(in srgb, var(--evh-ink) 10%, transparent); box-shadow: 0 24px 50px -24px rgba(0, 0, 0, 0.45); }
.evh-art__ph img { display: block; width: 100%; height: 100%; object-fit: cover; }
.evh-art__ph figcaption { display: none; }
.evh-art__deco { position: absolute; pointer-events: none; }

/* pile de photos (Noël) */
.evh-art--stack .evh-art__ph { width: 56%; aspect-ratio: 4 / 5; border: 8px solid #fffdf7; border-radius: 18px; }
.evh-art--stack .evh-art__ph--1 { left: 22%; top: 4%; z-index: 3; transform: rotate(-3deg); }
.evh-art--stack .evh-art__ph--2 { left: 0; top: 16%; z-index: 2; transform: rotate(-11deg); width: 46%; }
.evh-art--stack .evh-art__ph--3 { right: 0; top: 20%; z-index: 1; transform: rotate(9deg); width: 44%; }

/* mosaïque (Nouvel An) */
.evh-art--confetti { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; transform: rotate(-4deg); }
.evh-art--confetti .evh-art__ph { position: relative; border-radius: 20px; border: 2px solid var(--ev-accent); }
.evh-art--confetti .evh-art__ph--2, .evh-art--confetti .evh-art__ph--4 { transform: translateY(26px); }

/* rond (Chandeleur) et couronne (Épiphanie) */
.evh-art--circle .evh-art__ph, .evh-art--crown .evh-art__ph, .evh-art--moon .evh-art__ph { border-radius: 50%; }
.evh-art--circle .evh-art__ph--1 { width: min(78%, 380px); aspect-ratio: 1; left: 50%; top: 50%; transform: translate(-50%, -50%); border: 10px solid #fff7df; z-index: 2; }
.evh-art--circle .evh-art__ph--2 { width: 30%; aspect-ratio: 1; left: 2%; bottom: 2%; border: 6px solid #fff7df; z-index: 3; }
.evh-art--circle .evh-art__ph--3 { width: 24%; aspect-ratio: 1; right: 4%; top: 2%; border: 6px solid #fff7df; z-index: 3; }
.evh-art--crown .evh-art__ph--1 { width: min(76%, 370px); aspect-ratio: 1; left: 50%; top: 56%; transform: translate(-50%, -50%); border: 6px solid var(--ev-accent); outline: 10px solid #fffaf0; }
.evh-art--crown .evh-art__deco {
  left: 50%; top: 0; width: 34%; aspect-ratio: 3 / 2; transform: translateX(-50%); z-index: 2;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 80'%3E%3Cpath d='M8 70 L14 20 L38 46 L60 8 L82 46 L106 20 L112 70 Z' fill='%23d9a93a' stroke='%23996f12' stroke-width='3' stroke-linejoin='round'/%3E%3Ccircle cx='14' cy='18' r='6' fill='%23f4d47a'/%3E%3Ccircle cx='60' cy='7' r='7' fill='%23f4d47a'/%3E%3Ccircle cx='106' cy='18' r='6' fill='%23f4d47a'/%3E%3Crect x='8' y='66' width='104' height='10' rx='3' fill='%23996f12'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* lune (Ramadan) */
.evh-art--moon .evh-art__ph--1 { width: min(72%, 360px); aspect-ratio: 1; right: 4%; top: 6%; border: 3px solid var(--ev-accent); z-index: 2; }
.evh-art--moon .evh-art__ph--2 { width: 22%; aspect-ratio: 1; left: 6%; top: 18%; border: 3px solid var(--ev-accent); }
.evh-art--moon .evh-art__ph--3 { width: 18%; aspect-ratio: 1; left: 20%; bottom: 6%; border: 3px solid var(--ev-accent); }
.evh-art--moon .evh-art__deco {
  right: 0; top: 0; width: 30%; aspect-ratio: 1; z-index: 3;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M62 10 A40 40 0 1 0 90 72 A32 32 0 1 1 62 10 Z' fill='%23e3b85c'/%3E%3Cpath d='M78 26 l3 7 7 1 -5 5 1 7 -6 -3 -6 3 1 -7 -5 -5 7 -1 Z' fill='%23f6dc9b'/%3E%3C/svg%3E") center / contain no-repeat;
}
.evh-art--moon .evh-art__ph--2::before, .evh-art--moon .evh-art__ph--3::before { content: none; }

/* cœur (Saint-Valentin) */
.evh-art--heart .evh-art__ph--1 {
  width: min(88%, 440px); aspect-ratio: 1; left: 50%; top: 50%; transform: translate(-50%, -50%) rotate(-4deg); box-shadow: none;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 92'%3E%3Cpath d='M50 90 C20 68 0 50 0 27 C0 11 12 0 27 0 C37 0 45 6 50 14 C55 6 63 0 73 0 C88 0 100 11 100 27 C100 50 80 68 50 90 Z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 92'%3E%3Cpath d='M50 90 C20 68 0 50 0 27 C0 11 12 0 27 0 C37 0 45 6 50 14 C55 6 63 0 73 0 C88 0 100 11 100 27 C100 50 80 68 50 90 Z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.evh-art--heart .evh-art__deco {
  left: 50%; top: 50%; width: min(96%, 480px); aspect-ratio: 1; transform: translate(-46%, -46%) rotate(6deg); z-index: -1;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 92'%3E%3Cpath d='M50 90 C20 68 0 50 0 27 C0 11 12 0 27 0 C37 0 45 6 50 14 C55 6 63 0 73 0 C88 0 100 11 100 27 C100 50 80 68 50 90 Z' fill='%23f4a3bd'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* œufs (Pâques) */
.evh-art--oval .evh-art__ph { width: 40%; aspect-ratio: 4 / 5; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; border: 7px solid #fff; }
.evh-art--oval .evh-art__ph--1 { left: 30%; top: 2%; z-index: 2; width: 44%; border-color: #ffe8a3; }
.evh-art--oval .evh-art__ph--2 { left: 0; bottom: 4%; transform: rotate(-10deg); border-color: #ffd1dc; }
.evh-art--oval .evh-art__ph--3 { right: 0; bottom: 0; transform: rotate(9deg); border-color: #cfe9ff; }

/* arches (fête des mères) */
.evh-art--arch .evh-art__ph { width: 31%; border-radius: 999px 999px 18px 18px; border: 6px solid #fff; }
.evh-art--arch .evh-art__ph--1 { left: 34.5%; top: 0; height: 92%; z-index: 2; }
.evh-art--arch .evh-art__ph--2 { left: 0; top: 14%; height: 76%; }
.evh-art--arch .evh-art__ph--3 { right: 0; top: 22%; height: 72%; }

/* cadre décalé (fête des pères) */
.evh-art--frame .evh-art__ph--1 { width: 70%; aspect-ratio: 4 / 5; left: 4%; top: 4%; border-radius: 6px; box-shadow: 18px 18px 0 var(--ev-accent); z-index: 2; }
.evh-art--frame .evh-art__ph--2 { width: 42%; aspect-ratio: 1; right: 0; bottom: 0; border-radius: 6px; border: 6px solid var(--evh-bg); z-index: 3; }
.evh-art--frame .evh-art__deco {
  right: 6%; top: 0; width: 22%; height: 58%;
  background: repeating-linear-gradient(-45deg, var(--ev-accent) 0 10px, transparent 10px 22px); opacity: 0.9;
}

/* polaroïds (rentrée) */
.evh-art--polaroid .evh-art__ph { width: 46%; padding: 10px 10px 40px; background: #fff; border-radius: 4px; overflow: visible; }
.evh-art--polaroid .evh-art__ph img { aspect-ratio: 1; height: auto; border-radius: 2px; }
.evh-art--polaroid .evh-art__ph figcaption {
  display: block; position: absolute; left: 10px; right: 10px; bottom: 9px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
  font-family: 'Bradley Hand', 'Segoe Print', 'Comic Sans MS', cursive; font-size: 0.95rem; color: #2a3340; text-align: center;
}
.evh-art--polaroid .evh-art__ph::before {
  content: ""; position: absolute; left: 50%; top: -12px; width: 84px; height: 26px; transform: translateX(-50%) rotate(-4deg);
  background: rgba(245, 196, 0, 0.62); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
}
.evh-art--polaroid .evh-art__ph--1 { left: 27%; top: 0; z-index: 3; transform: rotate(2deg); }
.evh-art--polaroid .evh-art__ph--2 { left: 0; top: 24%; z-index: 2; transform: rotate(-7deg); }
.evh-art--polaroid .evh-art__ph--3 { right: 0; top: 30%; z-index: 1; transform: rotate(8deg); }

/* pilules (Halloween) */
.evh-art--drip .evh-art__ph { width: 30%; height: 80%; border-radius: 999px; border: 3px solid var(--ev-accent); }
.evh-art--drip .evh-art__ph--1 { left: 35%; top: 0; z-index: 2; }
.evh-art--drip .evh-art__ph--2 { left: 2%; top: 14%; }
.evh-art--drip .evh-art__ph--3 { right: 2%; top: 20%; }
.evh-art--drip .evh-art__deco { left: 50%; top: 50%; width: 92%; aspect-ratio: 1; transform: translate(-50%, -50%); z-index: -1; border-radius: 50%; background: radial-gradient(circle, rgba(255, 122, 26, 0.32), transparent 66%); }

@media (max-width: 959px) {
  .evh__art { max-width: 560px; width: 100%; margin: 0 auto; }
}

/* ==================================================================
 * Rubriques
 * ================================================================== */
.evs { margin-top: clamp(56px, 7vw, 92px); scroll-margin-top: 90px; }
.ev-wrap > .evs:first-child { margin-top: clamp(36px, 5vw, 56px); }
.evs__head { margin-bottom: var(--ds-space-6); }
.evs__title {
  margin: 0; font-family: var(--ds-font-display); font-size: clamp(1.45rem, 1.05rem + 1.5vw, 2.15rem); font-weight: 500;
  line-height: 1.15; letter-spacing: -0.01em; color: var(--ds-text); text-wrap: balance;
}
.evs__lead { margin: 10px 0 0; max-width: 64ch; color: var(--ds-text-2); line-height: 1.6; }
.ev-noimg { font-size: 2rem; display: grid; place-items: center; width: 100%; height: 100%; color: var(--ds-text-3); }

/* ---------- Menu : une idée par plat ---------- */
.evm { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; }
.evm__course {
  display: flex; flex-direction: column; min-width: 0; padding: 12px; border-radius: var(--ds-radius-lg);
  background: var(--ds-surface); border: 1px solid var(--ds-border); box-shadow: var(--ds-shadow-sm);
}
.evm__label { margin: 4px 6px 10px; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ev-accent-ink); }
.evm__stack { flex: 1; }
.evm__item { display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: var(--ds-text); }
.evm__item[hidden] { display: none; }
.evm__item.is-entering { animation: ev-in 0.35s var(--ds-ease); }
.evm__img { display: block; aspect-ratio: 1; overflow: hidden; border-radius: calc(var(--ds-radius-lg) - 8px); background: var(--ds-surface-2); }
.evm__img img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ds-ease); }
.evm__item:hover .evm__img img { transform: scale(1.04); }
.evm__name { margin: 4px 4px 0; font-family: var(--ds-font-display); font-size: 0.98rem; font-weight: 500; line-height: 1.25; }
.evm__meta, .evf__meta, .evc__meta { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 0 4px; font-size: 0.8rem; color: var(--ds-text-3); }
.evm__meta .cb-icon, .evf__meta .cb-icon, .evc__meta .cb-icon { vertical-align: -0.12em; margin-right: 3px; }
.evm__next {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; margin-top: 12px; padding: 9px 12px; cursor: pointer;
  border: 0; border-radius: var(--ds-radius-btn); background: var(--ev-tint); color: var(--ev-accent-ink);
  font: 600 0.85rem var(--ds-font-body); transition: background var(--ds-duration) var(--ds-ease);
}
.evm__next:hover { background: color-mix(in srgb, var(--ev-accent) 18%, var(--ds-bg)); }
.evm__next:focus-visible { outline: 2px solid var(--ev-accent); outline-offset: 2px; }
.evm__next .cb-icon { transition: transform 0.45s var(--ds-ease); }
.evm__next:active .cb-icon { transform: rotate(180deg); }
.evm__all { margin: 18px 0 0; text-align: center; }
@keyframes ev-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (max-width: 599px) {
  .evm { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .evm--3 .evm__course:last-child, .evm--5 .evm__course:last-child { grid-column: 1 / -1; }
  .evm--3 .evm__course:last-child .evm__img, .evm--5 .evm__course:last-child .evm__img { aspect-ratio: 16 / 9; }
  .evm__course { padding: 9px; }
  .evm__name { font-size: 0.9rem; }
}

/* ---------- Recette mise en avant ---------- */
.evf {
  display: grid; grid-template-columns: minmax(0, 1fr); overflow: hidden; border-radius: var(--ds-radius-lg);
  background: var(--ds-surface); border: 1px solid var(--ds-border); box-shadow: var(--ds-shadow-sm);
}
@media (min-width: 760px) { .evf { grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); } }
.evf__img { display: block; min-height: 260px; background: var(--ds-surface-2); }
.evf__img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.evf__body { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: clamp(22px, 3vw, 40px); }
.evf__name { margin: 0; font-family: var(--ds-font-display); font-size: clamp(1.3rem, 1rem + 1vw, 1.8rem); font-weight: 500; line-height: 1.2; }
.evf__name a { font-family: var(--ds-font-display); text-decoration: none; }
.evf__meta { margin: 0; }
.evf__desc { margin: 0; color: var(--ds-text-2); line-height: 1.6; }
.evf__points { display: grid; gap: 8px; margin: 4px 0 8px; padding: 0; list-style: none; font-size: 0.95rem; }
.evf__points .cb-icon { vertical-align: -0.12em; color: var(--ev-accent-ink); margin-right: 6px; }

/* ---------- Vitrine (toutes les recettes d'un événement court) ---------- */
.evc { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 18px; margin: 0; padding: 0; list-style: none; }
.evc__link { display: flex; flex-direction: column; gap: 8px; height: 100%; text-decoration: none; color: var(--ds-text); }
.evc__img { display: block; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--ds-radius-lg); background: var(--ds-surface-2); box-shadow: var(--ds-shadow-sm); }
.evc__img img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ds-ease); }
.evc__link:hover .evc__img img { transform: scale(1.05); }
.evc__name { margin: 4px 4px 0; font-family: var(--ds-font-display); font-size: 1.05rem; font-weight: 500; line-height: 1.25; }
.evc__desc { margin: 0 4px; font-size: 0.88rem; line-height: 1.5; color: var(--ds-text-2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.evc__link:focus-visible { outline: 2px solid var(--ev-accent); outline-offset: 4px; border-radius: var(--ds-radius-lg); }

/* ---------- Frise ---------- */
.evt { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; margin: 0; padding: 0; list-style: none; counter-reset: evt; }
.evt__step { position: relative; padding: 0 0 28px 34px; }
.evt__step::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--ds-bg); border: 4px solid var(--ev-accent);
}
.evt__step::after { content: ""; position: absolute; left: 7px; top: 24px; bottom: 0; width: 2px; background: color-mix(in srgb, var(--ev-accent) 30%, transparent); }
.evt__step:last-child::after { display: none; }
.evt__when { margin: 0 0 4px; font-size: 0.76rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ev-accent-ink); }
.evt__title { margin: 0 0 6px; font-family: var(--ds-font-display); font-size: 1.08rem; font-weight: 500; line-height: 1.3; }
.evt__text { margin: 0; color: var(--ds-text-2); font-size: 0.94rem; line-height: 1.6; }
.evt__recipes { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; padding: 0; list-style: none; }
.evt__recipes a {
  display: inline-flex; align-items: center; gap: 9px; max-width: 100%; padding: 5px 14px 5px 5px; border-radius: var(--ds-radius-pill);
  background: var(--ds-surface); border: 1px solid var(--ds-border); font-size: 0.85rem; font-weight: 600; text-decoration: none; color: var(--ds-text);
}
.evt__recipes a:hover { border-color: var(--ev-accent); }
.evt__img { flex: 0 0 auto; width: 34px; height: 34px; overflow: hidden; border-radius: 50%; background: var(--ds-surface-2); }
.evt__img img { display: block; width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 960px) {
  .evt { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
  .evt__step { padding: 34px 0 0; }
  .evt__step::before { top: 0; }
  .evt__step::after { left: 22px; right: -24px; top: 7px; bottom: auto; width: auto; height: 2px; }
}

/* ---------- Conseils ---------- */
.evtips { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 700px) { .evtips { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .evtips { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.evtips__item { padding: 22px; border-radius: var(--ds-radius-lg); background: var(--ev-tint); }
.evtips__icon {
  display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 14px; border-radius: 14px;
  background: var(--ds-surface); color: var(--ev-accent-ink); font-size: 1.4rem; box-shadow: var(--ds-shadow-sm);
}
.evtips__title { margin: 0 0 6px; font-family: var(--ds-font-display); font-size: 1rem; font-weight: 500; line-height: 1.3; }
.evtips__text { margin: 0; color: var(--ds-text-2); font-size: 0.92rem; line-height: 1.6; }

/* ---------- Outils ---------- */
.evtool {
  max-width: 760px; padding: clamp(20px, 3vw, 32px); border-radius: var(--ds-radius-lg);
  background: var(--ds-surface); border: 1px solid var(--ds-border); box-shadow: var(--ds-shadow-sm);
}
.evtool__noscript { margin: 12px 0 0; color: var(--ds-text-3); font-size: 0.9rem; }

/* tirage des rois */
.evfeve__form label { display: block; margin-bottom: 8px; font-weight: 600; font-size: 0.92rem; }
.evfeve__row { display: flex; gap: 10px; }
.evfeve__row .ds-input { flex: 1; min-width: 0; }
.evfeve__names { display: flex; flex-wrap: wrap; gap: 8px; min-height: 8px; margin: 16px 0; padding: 0; list-style: none; }
.evfeve__names li {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 6px 6px 14px; border-radius: var(--ds-radius-pill);
  background: var(--ev-tint); font-weight: 600; font-size: 0.9rem; transition: background 0.15s, color 0.15s, transform 0.15s;
}
.evfeve__names li.is-lit { background: var(--ev-accent); color: #fff; transform: scale(1.06); }
.evfeve__names li.is-king { background: var(--ev-accent); color: #fff; }
.evfeve__names button { display: grid; place-items: center; width: 24px; height: 24px; border: 0; border-radius: 50%; background: transparent; color: inherit; cursor: pointer; }
.evfeve__names button:hover { background: rgba(0, 0, 0, 0.08); }
.evfeve__result { min-height: 1.6em; margin: 16px 0 0; font-family: var(--ds-font-display); font-size: 1.25rem; font-weight: 500; color: var(--ev-accent-ink); }

/* quantités de pâte à crêpes */
.evcrepes__inputs { display: flex; flex-wrap: wrap; gap: 18px 28px; margin-bottom: 22px; }
.evcrepes__field { display: flex; flex-direction: column; gap: 8px; font-weight: 600; font-size: 0.9rem; }
.evcrepes__stepper { display: inline-flex; align-items: center; border: 1px solid var(--ds-border-strong); border-radius: var(--ds-radius-btn); overflow: hidden; background: var(--ds-surface); }
.evcrepes__stepper button { width: 44px; height: 44px; border: 0; background: var(--ds-surface-2); color: var(--ds-text); font-size: 1.2rem; cursor: pointer; }
.evcrepes__stepper button:hover { background: var(--ev-tint); }
.evcrepes__stepper input { width: 60px; height: 44px; border: 0; background: transparent; color: var(--ds-text); text-align: center; font: 600 1.05rem var(--ds-font-body); -moz-appearance: textfield; }
.evcrepes__stepper input::-webkit-outer-spin-button, .evcrepes__stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.evcrepes__out { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.evcrepes__out li { padding: 12px 14px; border-radius: var(--ds-radius-sm); background: var(--ev-tint); font-size: 0.92rem; }
.evcrepes__out strong { font-family: var(--ds-font-display); font-size: 1.1rem; font-weight: 600; color: var(--ev-accent-ink); }
.evcrepes__total { margin: 16px 0 0; color: var(--ds-text-2); }

/* compte à rebours */
.evcount { background: #10183a; border-color: transparent; color: #f7f3e8; text-align: center; max-width: 820px; }
.evcount__to { margin: 0 0 16px; color: #c9c3ad; font-size: 0.92rem; }
.evcount__boxes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.evcount__boxes span { display: flex; flex-direction: column; gap: 4px; padding: 16px 6px; border-radius: var(--ds-radius-md); background: rgba(255, 255, 255, 0.06); font-size: 0.8rem; color: #c9c3ad; }
.evcount__boxes strong { font-family: var(--ds-font-display); font-size: clamp(1.6rem, 1rem + 2.6vw, 2.8rem); font-weight: 600; color: #e7c66b; font-variant-numeric: tabular-nums; }

/* ---------- Toutes les recettes : filtres par plat ---------- */
.ev-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: -6px 0 22px; }
.ev-filter {
  display: inline-flex; align-items: center; gap: 7px; padding: 8px 15px; cursor: pointer; border-radius: var(--ds-radius-pill);
  border: 1px solid var(--ds-border-strong); background: var(--ds-surface); color: var(--ds-text); font: 600 0.88rem var(--ds-font-body);
}
.ev-filter span { color: var(--ds-text-3); font-weight: 500; }
.ev-filter.is-on { background: var(--ds-text); border-color: var(--ds-text); color: var(--ds-bg); }
.ev-filter.is-on span { color: inherit; opacity: 0.7; }
.ev-filter:focus-visible { outline: 2px solid var(--ev-accent); outline-offset: 2px; }
.ds-recipes [data-course][hidden], .ds-recipes .ds-recipes__ad[hidden] { display: none; }
.ds-recipes.is-collapsed > :nth-child(n+14) { display: none; } /* 12 recettes et la publicité qui les suit */
.ev-more { margin: 24px 0 0; text-align: center; }

/* ---------- Publicité ---------- */
.ev-ad.ds-recipes__ad { margin: clamp(48px, 6vw, 72px) 0 0; }

/* ---------- FAQ et liens ---------- */
.ev-faq { padding: 8px 28px; background: var(--ds-surface); border: 1px solid var(--ds-border); border-radius: var(--ds-radius-lg); }
.ev-faq details { border-top: 1px solid var(--ds-border); }
.ev-faq details:first-child { border-top: 0; }
.ev-faq summary {
  position: relative; display: block; padding: 18px 36px 18px 0; cursor: pointer; list-style: none;
  font-weight: 600; font-size: 0.98rem; line-height: 1.4; color: var(--ds-text);
}
.ev-faq summary::-webkit-details-marker { display: none; }
.ev-faq summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
  border-right: 2px solid var(--ds-text-3); border-bottom: 2px solid var(--ds-text-3); transform: rotate(45deg); transition: transform 0.25s var(--ds-ease);
}
.ev-faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.ev-faq summary:focus-visible { outline: 2px solid var(--ds-primary); outline-offset: 2px; border-radius: 6px; }
.ev-faq details p { margin: 0 0 18px; color: var(--ds-text-2); font-size: 0.95rem; line-height: 1.7; }
@media (max-width: 599px) { .ev-faq { padding: 4px 18px; } }
.ev-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 20px 0 0; font-size: 0.9rem; color: var(--ds-text-2); }
.ev-links a {
  padding: 7px 14px; border-radius: var(--ds-radius-pill); background: var(--ds-surface); border: 1px solid var(--ds-border);
  font-weight: 600; text-decoration: none; color: var(--ds-text);
}
.ev-links a:hover { border-color: var(--ev-accent); }

/* ---------- Calendrier des occasions ---------- */
.evcal { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.evcal__item a {
  position: relative; display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: center;
  height: 100%; padding: 14px 16px; border-radius: var(--ds-radius-md); background: var(--ds-surface); border: 1px solid var(--ds-border);
  text-decoration: none; color: var(--ds-text); transition: border-color var(--ds-duration), transform var(--ds-duration) var(--ds-ease);
}
.evcal__item a:hover { border-color: var(--evc); transform: translateY(-2px); }
.evcal__emoji { grid-row: 1 / 4; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: color-mix(in srgb, var(--evc) 14%, var(--ds-surface)); font-size: 1.3rem; }
.evcal__name { font-weight: 600; font-size: 0.95rem; }
.evcal__date { font-size: 0.82rem; color: var(--ds-text-3); }
.evcal__badge { grid-column: 2; justify-self: start; margin-top: 5px; padding: 2px 8px; border-radius: var(--ds-radius-pill); background: color-mix(in srgb, var(--evc) 14%, var(--ds-surface)); color: var(--ds-text); font-size: 0.7rem; font-weight: 700; }
.evcal__item.is-now a { border-color: var(--evc); box-shadow: inset 4px 0 0 var(--evc); }

/* ==================================================================
 * Page des occasions (/evenements/) : bandeau, frise de l'année, affiches
 * Chaque affiche porte la classe de thème de son événement (.ev--<slug>) : mêmes couleurs que sa page.
 * ================================================================== */
.evx-hero {
  position: relative; overflow: hidden; isolation: isolate; color: #f3f6f5;
  background:
    radial-gradient(ellipse 55% 70% at 85% 20%, rgba(0, 130, 142, 0.35), transparent 70%),
    radial-gradient(ellipse 45% 60% at 0% 100%, rgba(242, 107, 75, 0.18), transparent 70%),
    #0f2224;
}
.evx-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0.5;
  background: radial-gradient(1.5px 1.5px at 50% 50%, rgba(255, 255, 255, 0.16), transparent 2px) 0 0 / 28px 28px;
}
.evx-hero__inner {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 36px; align-items: center;
  max-width: 1200px; margin: 0 auto; padding: clamp(28px, 5vw, 64px) var(--ev-gutter) clamp(36px, 5vw, 64px);
}
@media (min-width: 960px) { .evx-hero__inner { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 56px; } }
.evx-hero .evh__crumbs { color: #a9bcbb; }
.evx-hero .evh__crumbs [aria-current] { color: #fff; }
.evx-hero__kicker { margin: 0 0 14px; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #7fd3da; }
.evx-hero__title {
  margin: 0 0 18px; font-family: var(--ds-font-display); font-size: clamp(2.1rem, 1.2rem + 3.6vw, 3.8rem); font-weight: 600;
  line-height: 1.06; letter-spacing: -0.02em; color: #fff; text-wrap: balance;
}
.evx-hero__title em { font-family: var(--ds-font-display); font-style: normal; color: #ffb59f; }
.evx-hero__lead { margin: 0 0 22px; max-width: 52ch; font-size: 1.04rem; line-height: 1.65; color: #c5d3d2; }
.evx-hero__stats { margin: 0; font-size: 0.92rem; color: #a9bcbb; }
.evx-hero__stats strong { font-family: var(--ds-font-display); font-size: 1.2rem; font-weight: 600; color: #fff; }

/* la prochaine occasion, aux couleurs de sa page */
.evx-next {
  display: grid; grid-template-columns: minmax(0, 1fr); overflow: hidden; border-radius: var(--ds-radius-lg);
  background: var(--evh-bg); color: var(--evh-ink); text-decoration: none; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.6);
  transition: transform 300ms var(--ds-ease);
}
.evx-next:hover { transform: translateY(-4px); }
.evx-next:focus-visible { outline: 3px solid #7fd3da; outline-offset: 4px; }
.evx-next__img { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: color-mix(in srgb, var(--evh-ink) 10%, transparent); }
.evx-next__img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.evx-next__body { display: flex; flex-direction: column; gap: 6px; padding: 22px 26px 26px; }
.evx-next__label { font-size: 0.74rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--evh-em, var(--ev-accent)); }
.evx-next__name { font-family: var(--ds-font-display); font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.1rem); font-weight: 600; line-height: 1.1; }
.evx-next__name span { font-family: inherit; }
.evx-next__when { font-weight: 600; font-size: 0.95rem; }
.evx-next__lead { color: var(--evh-ink-2); font-size: 0.93rem; line-height: 1.55; }
.evx-next__go { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; font-weight: 700; color: var(--evh-em, var(--ev-accent)); }
.evx-next__go .cb-icon { transition: transform var(--ds-duration) var(--ds-ease); }
.evx-next:hover .evx-next__go .cb-icon { transform: translateX(4px); }

/* ---------- Frise de l'année : douze colonnes, une par mois ---------- */
.evx-year__track { position: relative; border-radius: var(--ds-radius-lg); background: var(--ds-surface); border: 1px solid var(--ds-border); }
.evx-year__months { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; }
.evx-month { display: flex; flex-direction: column; gap: 10px; min-height: 230px; padding: 14px 6px 16px; border-left: 1px solid var(--ds-border); }
.evx-month:first-child { border-left: 0; }
.evx-month:nth-child(even) { background: color-mix(in srgb, var(--ds-surface-2) 50%, transparent); }
.evx-month:first-child { border-radius: var(--ds-radius-lg) 0 0 var(--ds-radius-lg); }
.evx-month:last-child { border-radius: 0 var(--ds-radius-lg) var(--ds-radius-lg) 0; }
.evx-month__name { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ds-text-3); text-align: center; }
.evx-month.is-current .evx-month__name { color: var(--ds-accent-text); }
.evx-month__list { display: flex; flex-direction: column; gap: 12px; margin: 0; padding: 0; list-style: none; }
.evx-month.is-current { background: color-mix(in srgb, var(--ds-accent) 8%, var(--ds-surface)) !important; }
.evx-month__today { display: block; width: fit-content; margin: 6px auto 0; padding: 2px 8px; border-radius: var(--ds-radius-pill); background: var(--ds-accent); color: #fff; font-size: 0.62rem; letter-spacing: 0; text-transform: none; white-space: nowrap; }
.evx-mark a { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 4px 2px; text-align: center; text-decoration: none; color: var(--ds-text); border-radius: 12px; }
.evx-mark__dot {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; font-size: 1.2rem;
  background: color-mix(in srgb, var(--evc) 16%, var(--ds-surface)); box-shadow: 0 0 0 2px var(--ds-surface), 0 0 0 4px color-mix(in srgb, var(--evc) 55%, transparent);
  transition: transform var(--ds-duration) var(--ds-ease);
}
.evx-mark a:hover .evx-mark__dot { transform: scale(1.12); }
.evx-mark__name { font-weight: 600; font-size: 0.8rem; line-height: 1.2; overflow-wrap: anywhere; }
.evx-mark__date { font-size: 0.72rem; color: var(--ds-text-3); }
.evx-mark.is-now .evx-mark__dot { background: var(--evc); box-shadow: 0 0 0 2px var(--ds-surface), 0 0 0 5px var(--evc); }
.evx-mark a:focus-visible { outline: 2px solid var(--ds-primary); outline-offset: 2px; }
/* petit écran : liste des seuls mois qui ont une fête */
@media (max-width: 759px) {
  .evx-month__today { display: none; }
  .evx-month.is-current { background: none !important; }
  .evx-year__months { grid-template-columns: minmax(0, 1fr); }
  .evx-month { flex-direction: row; align-items: center; gap: 14px; min-height: 0; padding: 12px 14px; border-left: 0; border-top: 1px solid var(--ds-border); background: none !important; border-radius: 0 !important; }
  .evx-month.is-empty { display: none; }
  .evx-month:not(.is-empty) ~ .evx-month:not(.is-empty), .evx-month:first-child { border-top: 0; }
  .evx-month:not(.is-empty) + .evx-month { border-top: 1px solid var(--ds-border); }
  .evx-month__name { flex: 0 0 76px; text-align: left; }
  .evx-month__list { flex-direction: row; flex-wrap: wrap; gap: 8px; }
  .evx-mark a { flex-direction: row; gap: 8px; padding: 4px 10px 4px 4px; background: color-mix(in srgb, var(--evc) 9%, transparent); border-radius: var(--ds-radius-pill); text-align: left; }
  .evx-mark__dot { width: 30px; height: 30px; font-size: 0.95rem; box-shadow: none; }
  .evx-mark__date { display: none; }
}

/* ---------- Affiches ---------- */
.evx-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 640px) { .evx-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .evx-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.evx-card__link {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; height: 100%; padding: 20px 22px 24px;
  overflow: hidden; border-radius: var(--ds-radius-lg); background: var(--evh-bg); color: var(--evh-ink); text-decoration: none;
  box-shadow: var(--ds-shadow-sm); transition: transform 300ms var(--ds-ease), box-shadow 300ms var(--ds-ease);
}
.evx-card__link:hover { transform: translateY(-4px); box-shadow: var(--ds-shadow-lg); }
.evx-card__link:focus-visible { outline: 3px solid var(--ev-accent); outline-offset: 3px; }
.evx-card__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; width: 100%; }
.evx-card__date { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--evh-ink-2); }
.evx-card__badge { padding: 4px 11px; border-radius: var(--ds-radius-pill); background: var(--evh-chip); font-size: 0.75rem; font-weight: 700; }
.evx-card.is-now .evx-card__badge { background: var(--ev-accent); color: var(--evh-on-accent, #fff); }
.evx-card__img { display: block; align-self: center; width: min(62%, 210px); aspect-ratio: 1; margin: 12px 0 10px; overflow: hidden; background: color-mix(in srgb, var(--evh-ink) 10%, transparent); }
.evx-card__img img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ds-ease); }
.evx-card__link:hover .evx-card__img img { transform: scale(1.05); }
.evx-card__name { font-family: var(--ds-font-display); font-size: 1.35rem; font-weight: 600; line-height: 1.15; }
.evx-card__name span { font-family: inherit; }
.evx-card__lead { font-size: 0.9rem; line-height: 1.55; color: var(--evh-ink-2); }
.evx-card__go { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 8px; font-weight: 700; font-size: 0.9rem; color: var(--evh-em, var(--ev-accent)); }
.evx-card__go .cb-icon { transition: transform var(--ds-duration) var(--ds-ease); }
.evx-card__link:hover .evx-card__go .cb-icon { transform: translateX(4px); }
/* la forme de la photo rappelle le bandeau de chaque page */
.evx-card--circle .evx-card__img { border-radius: 50%; box-shadow: 0 0 0 6px color-mix(in srgb, var(--ev-accent) 45%, transparent); }
.evx-card--round .evx-card__img { border-radius: 24px; transform: rotate(-3deg); box-shadow: 0 0 0 2px var(--ev-accent); }
.evx-card--pill .evx-card__img { width: min(40%, 140px); aspect-ratio: 3 / 4.4; border-radius: 999px; box-shadow: 0 0 0 3px var(--ev-accent); }
.evx-card--tilt .evx-card__img { border-radius: 14px; transform: rotate(-4deg); box-shadow: 0 0 0 7px #fffdf7; }
.evx-card--egg .evx-card__img { aspect-ratio: 4 / 5; width: min(52%, 180px); border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; box-shadow: 0 0 0 6px #ffe8a3; }
.evx-card--arch .evx-card__img { aspect-ratio: 3 / 4; width: min(48%, 170px); border-radius: 999px 999px 14px 14px; box-shadow: 0 0 0 6px #fff; }
.evx-card--frame .evx-card__img { border-radius: 6px; box-shadow: 10px 10px 0 var(--ev-accent); margin-right: 10px; }
.evx-card--polaroid .evx-card__img { padding: 8px 8px 28px; background: #fff; border-radius: 3px; transform: rotate(3deg); box-shadow: 0 10px 24px -10px rgba(0, 0, 0, 0.35); }
.evx-card--polaroid .evx-card__img img { border-radius: 2px; }
.evx-card--heart .evx-card__img {
  background: none;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 92'%3E%3Cpath d='M50 90 C20 68 0 50 0 27 C0 11 12 0 27 0 C37 0 45 6 50 14 C55 6 63 0 73 0 C88 0 100 11 100 27 C100 50 80 68 50 90 Z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 92'%3E%3Cpath d='M50 90 C20 68 0 50 0 27 C0 11 12 0 27 0 C37 0 45 6 50 14 C55 6 63 0 73 0 C88 0 100 11 100 27 C100 50 80 68 50 90 Z'/%3E%3C/svg%3E") center / contain no-repeat;
}
/* sur mobile : photo à gauche, texte à droite */
@media (max-width: 639px) {
  .evx-card__link { display: grid; grid-template-columns: 104px minmax(0, 1fr); grid-template-areas: "img top" "img name" "img lead" "img go"; column-gap: 16px; row-gap: 4px; padding: 16px; }
  .evx-card__top { grid-area: top; }
  .evx-card__img { grid-area: img; align-self: center; width: 100% !important; margin: 0; }
  .evx-card--pill .evx-card__img { width: 76% !important; justify-self: center; }
  .evx-card__name { grid-area: name; font-size: 1.12rem; }
  .evx-card__lead { grid-area: lead; font-size: 0.84rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .evx-card__go { grid-area: go; padding-top: 4px; }
  .evx-card__badge { display: none; }
}
.dark-mode .evx-month__today { color: #1c1c1c; }
/* .ev a (couleur héritée) l'emporterait sur une seule classe : on précise */
.ev a.evx-card__link, .ev a.evx-next { color: var(--evh-ink); }

/* ==================================================================
 * Thèmes
 * ================================================================== */

/* Halloween : nuit violette, citrouille */
.ev--halloween {
  --evh-bg: #1a1024; --evh-ink: #fbf1e6; --evh-ink-2: #d6c6e3; --evh-chip: rgba(255, 255, 255, 0.1);
  --ev-accent: #ff7a1a; --ev-accent-ink: #b4470b; --evh-on-accent: #1a1024;
}
.ev--halloween .evh::before {
  background:
    radial-gradient(circle at 82% 30%, rgba(255, 122, 26, 0.18), transparent 40%),
    radial-gradient(1px 1px at 20% 30%, rgba(255, 255, 255, 0.5), transparent 2px),
    radial-gradient(1px 1px at 60% 12%, rgba(255, 255, 255, 0.4), transparent 2px),
    radial-gradient(1.5px 1.5px at 40% 70%, rgba(255, 255, 255, 0.35), transparent 2px);
}
.ev--halloween .evh::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 1px; height: 26px; z-index: 1; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 26' preserveAspectRatio='none'%3E%3Cpath d='M0 0 H240 V8 C226 8 228 22 218 22 C208 22 212 8 196 8 C178 8 184 18 172 18 C160 18 166 8 148 8 C130 8 134 26 120 26 C106 26 112 8 94 8 C78 8 82 16 70 16 C58 16 62 8 46 8 C30 8 34 20 22 20 C10 20 14 8 0 8 Z' fill='%231a1024'/%3E%3C/svg%3E") top / 480px 26px repeat-x;
  transform: translateY(100%);
}
.ev--halloween .evh { overflow: visible; margin-bottom: 26px; }
.ev--halloween .evh__inner, .ev--halloween .evh__nav { position: relative; z-index: 2; }

/* Noël : sapin, or et rouge, neige */
.ev--noel {
  --evh-bg: #0f3b2e; --evh-ink: #fbf7ef; --evh-ink-2: #cfe0d6; --evh-chip: rgba(255, 255, 255, 0.1); --evh-em: #e8bf68;
  --ev-accent: #c8322f; --ev-accent-ink: #a0261f; --evh-on-accent: #fff;
}
.ev--noel .evh::before {
  background:
    radial-gradient(2px 2px at 12px 14px, rgba(255, 255, 255, 0.55), transparent 3px) 0 0 / 46px 46px,
    radial-gradient(1.5px 1.5px at 30px 34px, rgba(255, 255, 255, 0.35), transparent 3px) 0 0 / 46px 46px,
    radial-gradient(ellipse 60% 70% at 90% 10%, rgba(232, 191, 104, 0.16), transparent 70%);
}
.ev--noel .evh__title em, .ev--epiphanie .evh__title em, .ev--fete-des-meres .evh__title em, .ev--nouvel-an .evh__title em {
  font-family: var(--ev-serif); font-style: italic; font-weight: 500; letter-spacing: 0;
}

/* Nouvel An : minuit, or, confettis */
.ev--nouvel-an {
  --evh-bg: #0d1330; --evh-ink: #f7f3e8; --evh-ink-2: #c9c6d8; --evh-chip: rgba(255, 255, 255, 0.1);
  --ev-accent: #d6b04c; --ev-accent-ink: #8a6a12; --evh-on-accent: #0d1330;
}
.ev--nouvel-an .evh { background: linear-gradient(160deg, #0d1330 0%, #1c1446 60%, #2a1640 100%); }
.ev--nouvel-an .evh::before {
  background:
    linear-gradient(45deg, transparent 48%, rgba(231, 198, 107, 0.55) 48% 52%, transparent 52%) 10px 20px / 60px 60px,
    linear-gradient(-30deg, transparent 47%, rgba(255, 255, 255, 0.28) 47% 53%, transparent 53%) 34px 4px / 74px 74px,
    radial-gradient(2px 2px at 50% 50%, rgba(231, 198, 107, 0.8), transparent 3px) 0 0 / 38px 38px;
  -webkit-mask-image: linear-gradient(100deg, transparent 30%, #000 75%); mask-image: linear-gradient(100deg, transparent 30%, #000 75%);
}
.ev--nouvel-an .evh__title em { background: linear-gradient(90deg, #f3d98b, #c99b2e 60%, #f3d98b); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Épiphanie : frangipane, or, quadrillage de galette */
.ev--epiphanie {
  --evh-bg: #fbf2df; --evh-ink: #3b2a10; --evh-ink-2: #6b5432; --evh-chip: rgba(59, 42, 16, 0.08);
  --ev-accent: #c99a2e; --ev-accent-ink: #8a6413; --evh-em: #a6761a; --evh-on-accent: #2b1e08;
}
.ev--epiphanie .evh::before {
  background:
    repeating-linear-gradient(45deg, rgba(166, 118, 26, 0.09) 0 1px, transparent 1px 34px),
    repeating-linear-gradient(-45deg, rgba(166, 118, 26, 0.09) 0 1px, transparent 1px 34px);
  -webkit-mask-image: radial-gradient(ellipse 60% 80% at 75% 50%, #000, transparent); mask-image: radial-gradient(ellipse 60% 80% at 75% 50%, #000, transparent);
}

/* Chandeleur : beurre, poêle */
.ev--chandeleur {
  --evh-bg: #ffe9a8; --evh-ink: #3a2600; --evh-ink-2: #6a4c12; --evh-chip: rgba(58, 38, 0, 0.08);
  --ev-accent: #e08a00; --ev-accent-ink: #8f4f00; --evh-em: #b45f00; --evh-on-accent: #2a1a00;
}
.ev--chandeleur .evh::before { background: repeating-radial-gradient(circle at 78% 50%, transparent 0 34px, rgba(180, 95, 0, 0.08) 34px 36px); }

/* Ramadan : nuit indigo, motif étoilé doré */
.ev--ramadan {
  --evh-bg: #0f1d45; --evh-ink: #f3eedf; --evh-ink-2: #c4c6dc; --evh-chip: rgba(255, 255, 255, 0.1);
  --ev-accent: #e3b85c; --ev-accent-ink: #7a5a12; --evh-on-accent: #0f1d45;
}
.ev--ramadan .evh::before {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 60'%3E%3Cpath d='M30 6 L36 24 L54 30 L36 36 L30 54 L24 36 L6 30 L24 24 Z' fill='none' stroke='%23e3b85c' stroke-width='1' opacity='.22'/%3E%3Crect x='19' y='19' width='22' height='22' transform='rotate(45 30 30)' fill='none' stroke='%23e3b85c' stroke-width='1' opacity='.16'/%3E%3C/svg%3E") 0 0 / 60px 60px;
  -webkit-mask-image: linear-gradient(90deg, transparent 20%, #000 80%); mask-image: linear-gradient(90deg, transparent 20%, #000 80%);
}

/* Saint-Valentin : rose poudré, bordeaux */
.ev--saint-valentin {
  --evh-bg: #fde6ec; --evh-ink: #4a0d22; --evh-ink-2: #7a3a50; --evh-chip: rgba(74, 13, 34, 0.08);
  --ev-accent: #d81b60; --ev-accent-ink: #a3123f; --evh-on-accent: #fff;
}
.ev--saint-valentin .evh::before { background: radial-gradient(ellipse 50% 60% at 80% 40%, rgba(216, 27, 96, 0.12), transparent 70%); }
.ev--saint-valentin .evh__title em { font-family: var(--ev-serif); font-style: italic; font-weight: 500; letter-spacing: 0; }

/* Pâques : menthe, pastels */
.ev--paques {
  --evh-bg: #e7f5ea; --evh-ink: #173b26; --evh-ink-2: #3f5f4b; --evh-chip: rgba(23, 59, 38, 0.08);
  --ev-accent: #2e8b57; --ev-accent-ink: #1f6b41; --evh-on-accent: #fff;
}
.ev--paques .evh::before {
  background:
    radial-gradient(ellipse 22px 28px at 20% 80%, rgba(255, 209, 220, 0.6), transparent 70%),
    radial-gradient(ellipse 18px 23px at 48% 12%, rgba(255, 232, 163, 0.7), transparent 70%),
    radial-gradient(ellipse 50% 60% at 85% 50%, rgba(255, 255, 255, 0.55), transparent 70%);
}

/* Fête des mères : rose, arches */
.ev--fete-des-meres {
  --evh-bg: #fbeaf0; --evh-ink: #4a1830; --evh-ink-2: #7a4560; --evh-chip: rgba(74, 24, 48, 0.08);
  --ev-accent: #c2416b; --ev-accent-ink: #9c2a52; --evh-on-accent: #fff;
}
.ev--fete-des-meres .evh::before { background: radial-gradient(circle at 78% 46%, rgba(255, 255, 255, 0.7), transparent 38%); }

/* Fête des pères : marine et moutarde, rayures de cravate */
.ev--fete-des-peres {
  --evh-bg: #1d2f4f; --evh-ink: #f5f1e6; --evh-ink-2: #c3cbdb; --evh-chip: rgba(255, 255, 255, 0.1);
  --ev-accent: #f2b632; --ev-accent-ink: #2b4c7e; --evh-on-accent: #1d2f4f;
}
.ev--fete-des-peres .evh__title { text-transform: uppercase; letter-spacing: 0; font-size: clamp(1.9rem, 1.1rem + 3.4vw, 3.6rem); }
.ev--fete-des-peres .evh::before { background: linear-gradient(110deg, transparent 62%, rgba(242, 182, 50, 0.08) 62%); }

/* Rentrée : papier quadrillé, marge rouge, surligneur */
.ev--rentree {
  --evh-bg: #f8fafd; --evh-ink: #1b2a3a; --evh-ink-2: #4a5a6c; --evh-chip: rgba(27, 42, 58, 0.07);
  --ev-accent: #e5b400; --ev-accent-ink: #7a5d00; --evh-em: #1b2a3a; --evh-on-accent: #1b2a3a;
}
.ev--rentree .evh::before {
  background:
    linear-gradient(90deg, transparent 38px, rgba(214, 54, 54, 0.35) 38px 40px, transparent 40px),
    linear-gradient(rgba(76, 128, 204, 0.13) 1px, transparent 1px) 0 0 / 100% 26px,
    linear-gradient(90deg, rgba(76, 128, 204, 0.13) 1px, transparent 1px) 0 0 / 26px 100%;
}
.ev--rentree .evh__title em span { padding: 0 0.12em; background: linear-gradient(transparent 52%, rgba(245, 196, 0, 0.7) 52% 92%, transparent 92%); -webkit-box-decoration-break: clone; box-decoration-break: clone; }

/* Mode sombre : les bandeaux clairs passent dans une version sombre teintée de leur couleur */
.dark-mode .ev--epiphanie, .dark-mode .ev--chandeleur, .dark-mode .ev--saint-valentin, .dark-mode .ev--paques,
.dark-mode .ev--fete-des-meres, .dark-mode .ev--rentree {
  --evh-bg: color-mix(in srgb, var(--ev-accent) 16%, #141414); --evh-ink: #f4f4f4; --evh-ink-2: #c4c4c4; --evh-chip: rgba(255, 255, 255, 0.1); --evh-em: var(--ev-accent);
}
.dark-mode .ev { --ev-accent-ink: color-mix(in srgb, var(--ev-accent) 70%, #fff); }
.dark-mode .ev--fete-des-peres { --ev-accent-ink: #f2b632; }
.dark-mode .ev--rentree .evh__title em span { background: linear-gradient(transparent 52%, rgba(245, 196, 0, 0.45) 52% 92%, transparent 92%); }

/* Mouvement réduit */
@media (prefers-reduced-motion: reduce) {
  .evm__item.is-entering { animation: none; }
  .evm__img img, .evc__img img, .evcal__item a, .evx-next, .evx-card__link, .evx-card__img img { transition: none; }
}
