/* =========================================================
   FestivEvents — feuille de style principale
   Direction « Affiche de fête » : aplats de couleur pleine largeur,
   titres ronds (Baloo 2), texte Nunito, agenda en billets d'entrée,
   vagues reprises du logo.
   Thèmes : html[data-theme="movember"] (novembre) et
   html[data-theme="noel"] (décembre) ne redéfinissent que les couleurs.
   ========================================================= */

@font-face { font-family: "Baloo 2"; src: url("assets/fonts/baloo2-700.woff2") format("woff2"); font-weight: 700; font-display: swap }
@font-face { font-family: "Baloo 2"; src: url("assets/fonts/baloo2-800.woff2") format("woff2"); font-weight: 800; font-display: swap }
@font-face { font-family: "Nunito"; src: url("assets/fonts/nunito-400.woff2") format("woff2"); font-weight: 400; font-display: swap }
@font-face { font-family: "Nunito"; src: url("assets/fonts/nunito-600.woff2") format("woff2"); font-weight: 600; font-display: swap }
@font-face { font-family: "Nunito"; src: url("assets/fonts/nunito-700.woff2") format("woff2"); font-weight: 700; font-display: swap }
@font-face { font-family: "Nunito"; src: url("assets/fonts/nunito-800.woff2") format("woff2"); font-weight: 800; font-display: swap }

:root {
  /* Charte principale (logo FestivEvents) */
  --nuit: #261047;        /* fonds sombres : affiche, bénévoles, pied de page */
  --fond: #ffffff;
  --fond2: #f4eefa;       /* bandes claires */
  --ligne: #ddd0ea;
  --texte: #22143d;
  --doux: #5e5470;
  --titre: #5c2d91;       /* titres sur fond clair, liens */
  --jaune: #fbb30a;
  --orange: #f5821f;
  --rose: #e0177f;
  --bleu: #0b82cc;
  --accent: #e0177f;      /* boutons principaux */
  --accent-texte: #ffffff;
  --poster: #f5821f;
  --poster-texte: #261047;
  --poster-chiffres: #ffffff;
  --bande: #f5821f;       /* bande « association » */
  --bande-texte: #261047;
  --sur-nuit: #efe8f7;    /* texte courant sur fond nuit */

  --f-titre: "Baloo 2", "Nunito", system-ui, sans-serif;
  --f-texte: "Nunito", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --gouttiere: max(16px, env(safe-area-inset-left, 0px));
}

html[data-theme="movember"] {
  --nuit: #0b2545; --fond2: #eaf3fc; --ligne: #c9dcf0; --texte: #0f2238; --doux: #4a5d73; --titre: #0f5aa8;
  --jaune: #9fd8ff; --orange: #3fa9f5; --rose: #1679c9; --bleu: #5bc0f8;
  --accent: #1679c9; --poster: #1679c9; --poster-texte: #ffffff; --poster-chiffres: #0b2545;
  --bande: #9fd8ff; --bande-texte: #0b2545; --sur-nuit: #e3eefa;
}
html[data-theme="noel"] {
  --nuit: #0f2d1c; --fond2: #f8f1ea; --ligne: #e6d6c8; --texte: #2a1414; --doux: #5f4b47; --titre: #a8101d;
  --jaune: #f2c94c; --orange: #d4a017; --rose: #c8102e; --bleu: #3f9a5f;
  --accent: #c8102e; --poster: #c8102e; --poster-texte: #ffffff; --poster-chiffres: #f2c94c;
  --bande: #c8102e; --bande-texte: #ffffff; --sur-nuit: #f3ece4;
}

* { box-sizing: border-box }
html { scroll-behavior: smooth }
body { margin: 0; font-family: var(--f-texte); font-size: 17px; line-height: 1.6; color: var(--texte); background: var(--fond); overflow-x: hidden }
img { max-width: 100%; height: auto }
a { color: var(--titre) }
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding-left: var(--gouttiere); padding-right: max(16px, env(safe-area-inset-right, 0px)) }

h1, h2, h3 { font-family: var(--f-titre); font-weight: 800; line-height: 1.05; margin: 0 0 16px; text-wrap: balance }
h1 { font-size: clamp(2.6rem, 6vw, 4.2rem); color: var(--titre) }
h2 { font-size: clamp(2.1rem, 4.4vw, 3.6rem); color: var(--titre) }
h3 { font-size: 1.45rem }
.lead { font-size: 1.2rem }
.muted { color: var(--doux) }
.center { text-align: center }
.eyebrow { margin: 0 0 6px; font-weight: 800; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; color: var(--rose) }
html[data-theme] .eyebrow { color: var(--titre) }

.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--nuit); color: #fff; padding: 10px 16px; border-radius: 999px; font-weight: 800 }
.skip-link:focus { left: 12px }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0 }
:focus-visible { outline: 3px solid var(--bleu); outline-offset: 3px; border-radius: 6px }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 999px; padding: 13px 24px; font-weight: 800; font-size: 1rem; font-family: inherit;
  text-decoration: none; border: 2px solid transparent; cursor: pointer; line-height: 1.2; transition: transform .15s;
}
.btn:hover { transform: translateY(-2px) }
.btn.primary, .btn.accent { background: var(--accent); color: var(--accent-texte) }
.btn.secondary { background: #fff; border-color: var(--titre); color: var(--titre) }
.btn.jaune { background: var(--jaune); color: var(--nuit) }
.btn.contour { border-color: #fff; color: #fff; background: transparent }
.lien-fort { font-weight: 800; color: var(--titre) }

/* ---------- Bandeau défilant ---------- */
.ticker { background: var(--nuit); color: var(--jaune); overflow: hidden; font-family: var(--f-titre); font-weight: 700; font-size: 1.02rem }
.ticker-track { display: flex; width: max-content; animation: defile 40s linear infinite }
.ticker:hover .ticker-track, .ticker:focus-within .ticker-track { animation-play-state: paused }
.ticker-list { display: flex; margin: 0; padding: 7px 0; list-style: none }
.ticker-list li { white-space: nowrap; padding: 0 22px; display: flex; align-items: center; gap: 44px }
.ticker-list li::after { content: "★" }
.ticker a { color: inherit; text-decoration: none }
.ticker a:hover { text-decoration: underline }
@keyframes defile { to { transform: translateX(-50%) } }

/* ---------- En-tête ---------- */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: #fff; border-bottom: 3px solid var(--nuit) }
.header-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 26px; padding-top: 8px; padding-bottom: 8px }
.brand { flex: 0 0 auto; display: block }
.brand img { display: block; height: 64px; width: auto }
.menu { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 10px 26px }
.nav-links { flex: 1 1 auto; min-width: 0; display: flex; flex-wrap: wrap; gap: 4px }
.nav-links a { padding: 9px 15px; border-radius: 999px; font-weight: 800; color: var(--texte); text-decoration: none }
.nav-links a:hover { background: var(--fond2) }
.nav-links a[aria-current="page"] { background: var(--nuit); color: #fff }
.nav-accueil { display: none }
.header-cta { flex: 0 0 auto; padding: 11px 20px }

/* Bouton du menu mobile */
.nav-toggle {
  display: none; margin-left: auto; align-items: center; gap: 10px; min-height: 48px; padding: 0 18px 0 16px;
  border: 2px solid var(--nuit); border-radius: 999px; background: #fff; color: var(--nuit);
  font: 800 1rem var(--f-texte); cursor: pointer;
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { display: block; width: 20px; height: 3px; border-radius: 2px; background: currentColor; position: relative; transition: transform .2s, background .2s }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0 }
.nav-toggle-bars::before { top: -7px }
.nav-toggle-bars::after { top: 7px }
.nav-toggle[aria-expanded="true"] { background: var(--nuit); color: #fff }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(7px) rotate(45deg) }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-7px) rotate(-45deg) }

/* ---------- Affiche (accueil) ---------- */
.affiche { background: var(--nuit); color: #fff; position: relative }
.affiche-grid { display: flex; flex-wrap: wrap; align-items: center; gap: 40px 56px; padding-top: 56px; padding-bottom: 36px }
.affiche-texte { flex: 1 1 540px; min-width: 0; display: flex; flex-direction: column; gap: 20px }
.affiche-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 10px }
.tag-jaune { font-weight: 800; font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; color: var(--jaune) }
.pastille { font-weight: 800; font-size: .85rem; padding: 4px 12px; border-radius: 999px; background: var(--jaune); color: var(--nuit) }
.pastille-contour { font-weight: 700; font-size: .85rem; padding: 3px 12px; border-radius: 999px; border: 2px solid var(--orange) }
.affiche h1 { margin: 0; color: #fff; font-size: clamp(3.2rem, 9vw, 8.4rem); line-height: .95; letter-spacing: -.01em }
.affiche-lead { margin: 0; font-size: clamp(1.1rem, 1.8vw, 1.35rem); max-width: 34em; color: var(--sur-nuit) }
.affiche-infos { margin: 0; display: flex; flex-wrap: wrap; gap: 14px }
.affiche-infos > div { flex: 1 1 170px; min-width: 0; padding-top: 8px; border-top: 3px solid var(--orange) }
.affiche-infos > div:nth-child(2) { border-top-color: var(--rose) }
.affiche-infos > div:nth-child(3) { border-top-color: var(--bleu) }
.affiche-infos dt { font-weight: 800; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--jaune) }
.affiche-infos dd { margin: 0; font-weight: 700; font-size: 1.05rem }
.actions { display: flex; flex-wrap: wrap; gap: 12px }

.poster-wrap { flex: 0 1 380px; min-width: 0; max-width: 100%; margin: 0 auto; padding: 0 14px 14px 0 }
.poster {
  position: relative; display: flex; flex-direction: column; gap: 2px; text-decoration: none;
  background: var(--poster); color: var(--poster-texte); padding: 30px 28px 24px; box-shadow: 14px 14px 0 var(--rose);
}
.poster::before { content: ""; position: absolute; top: -12px; left: 50%; width: 22px; height: 22px; margin-left: -11px; border-radius: 50%; background: var(--jaune); box-shadow: 0 3px 0 rgba(0, 0, 0, .25) }
.poster-haut { font-weight: 800; font-size: .85rem; letter-spacing: .14em; text-transform: uppercase }
.poster-jour { font-family: var(--f-titre); font-weight: 800; font-size: clamp(5rem, 13vw, 7.4rem); line-height: .95; color: var(--poster-chiffres) }
.poster-mois { font-family: var(--f-titre); font-weight: 800; font-size: clamp(2.4rem, 6vw, 3.4rem); line-height: 1; text-transform: capitalize }
.poster-bas { margin-top: 16px; padding-top: 12px; border-top: 2px dashed currentColor; display: flex; justify-content: space-between; font-weight: 800 }
.poster-image { padding: 10px }
.poster-image img { display: block; width: 100% }
.poster-logo { background: #fff; padding: 22px }
.poster-logo img { display: block; width: 100% }

/* Vagues reprises du logo */
.vague { display: block; width: 100%; height: 70px }
.vague-fond { fill: var(--fond2) }
.vague-l1 { stroke: var(--orange); stroke-width: 6 }
.vague-l2 { stroke: var(--rose); stroke-width: 5 }

/* ---------- Sections ---------- */
.section { padding-top: 64px; padding-bottom: 64px }
.bande-claire { background: var(--fond2) }
.affiche + .bande-claire { padding-top: 32px }
.soft { background: var(--fond2) }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 12px 24px; margin-bottom: 26px }
.section-head h2, .section-head h1 { margin: 0 }
.section-title { max-width: 760px; margin-bottom: 26px }

.bande-chaude { background: var(--bande); color: var(--bande-texte) }
.bande-chaude h2, .bande-chaude h3 { color: inherit }
h2.grand { font-size: clamp(2.1rem, 4.4vw, 3.5rem); max-width: 16em }
.chiffres { display: flex; flex-wrap: wrap; gap: 8px 48px; margin: 30px 0 36px }
.chiffres p { margin: 0; display: flex; align-items: baseline; gap: 10px; font-weight: 700; font-size: 1.1rem }
.chiffres b { font-family: var(--f-titre); font-weight: 800; font-size: 4.6rem; line-height: 1 }
.piliers { display: flex; flex-wrap: wrap; gap: 28px }
.piliers > div { flex: 1 1 280px; min-width: 0; border-top: 3px solid currentColor; padding-top: 16px }
.piliers h3 { margin: 8px 0 6px; font-size: 1.4rem }
.piliers p { margin: 0 }

/* Mosaïque photo */
.mosaique { display: flex; flex-wrap: wrap; gap: 14px }
.mosaique-une { flex: 2 1 520px; min-width: 0; min-height: 440px; position: relative; display: block; overflow: hidden; background: var(--nuit); color: #fff; text-decoration: none }
.mosaique-une img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s }
.mosaique-une:hover img { transform: scale(1.03) }
.mosaique-legende { position: absolute; left: 0; right: 0; bottom: 0; padding: 20px 24px; background: var(--nuit); display: flex; flex-direction: column; gap: 4px }
.mosaique-date { font-weight: 800; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--jaune) }
.mosaique-titre { font-family: var(--f-titre); font-weight: 800; font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 1.1 }
.mosaique-tuiles { flex: 1 1 340px; min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px }
.mosaique-tuiles img { display: block; width: 100%; height: 213px; object-fit: cover }
.mosaique-actus { flex: 1 1 340px; min-width: 0; display: grid; gap: 14px }

/* Bénévoles */
.bande-nuit { background: var(--nuit); color: #fff; margin-top: 36px }
.benevoles-grid { display: flex; flex-wrap: wrap; align-items: center; gap: 0 56px }
.benevoles-photo { flex: 1 1 460px; min-width: 0; height: 420px; object-fit: cover; margin-top: -36px; border: 8px solid #fff; display: block }
.benevoles-texte { flex: 1 1 400px; min-width: 0; padding: 52px 0 }
.benevoles-texte h2 { color: var(--jaune) }
.benevoles-texte .lead { color: var(--sur-nuit) }
.roles { list-style: none; margin: 0 0 24px; padding: 0; display: flex; flex-wrap: wrap; gap: 10px }
.roles li { padding: 7px 14px; border: 2px solid var(--orange); border-radius: 999px; font-weight: 700 }
.roles li:nth-child(4n+2) { border-color: var(--rose) }
.roles li:nth-child(4n+3) { border-color: var(--jaune) }
.roles li:nth-child(4n) { border-color: var(--bleu) }

/* Partenaires */
.surtitre { font-family: var(--f-texte); font-size: .9rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 18px }
.partenaires { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px }
.partenaires li { flex: 1 1 180px; min-width: 0; background: #fff; padding: 18px 16px; text-align: center; display: flex; flex-direction: column; gap: 2px }
.p-nom { font-family: var(--f-titre); font-weight: 800; font-size: 1.3rem; line-height: 1.1 }
.p-role { font-size: .85rem; font-weight: 600; color: var(--doux) }

/* ---------- Agenda : billets d'entrée ---------- */
.event-list { display: flex; flex-wrap: wrap; gap: 20px }
.event-list > * { flex: 1 1 480px; min-width: 0 }
.event-card { --t: var(--rose); --t-texte: #fff; position: relative; display: flex; background: #fff; box-shadow: 0 2px 0 var(--ligne) }
.event-card.type-soiree, .event-card.type-reunion { --t: var(--nuit) }
.event-card.type-fete { --t: var(--orange); --t-texte: var(--nuit) }
.event-card.type-loto { --t: var(--jaune); --t-texte: var(--nuit) }
.event-card.type-solidaire { --t: var(--bleu) }
.event-card.type-autre { --t: var(--titre) }
.event-date { flex: 0 0 112px; background: var(--t); color: var(--t-texte); padding: 16px 8px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; line-height: 1.1 }
.event-date .w { font-size: .78rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase }
.event-date .d { font-family: var(--f-titre); font-weight: 800; font-size: 2.6rem; line-height: 1.05 }
.event-date .m { font-size: .85rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase }
.event-card::before, .event-card::after { content: ""; position: absolute; left: 101px; width: 22px; height: 22px; border-radius: 50%; background: var(--fond2) }
.event-card::before { top: -11px }
.event-card::after { bottom: -11px }
.section:not(.bande-claire):not(.soft) .event-card::before, .section:not(.bande-claire):not(.soft) .event-card::after { background: var(--fond) }
.event-body { flex: 1 1 auto; min-width: 0; border-left: 3px dashed var(--ligne); padding: 16px 22px }
.event-type { display: inline-block; margin: 0 0 6px; font-size: .74rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; padding: 3px 10px; border-radius: 999px; background: var(--fond2); color: var(--titre) }
.event-body h3 { margin: 0 0 4px; font-size: 1.55rem; line-height: 1.1 }
.event-body h3 a { color: var(--texte); text-decoration: none }
.event-body h3 a::after { content: ""; position: absolute; inset: 0 }
.event-body h3 a:hover { color: var(--titre) }
.event-meta { margin: 0; font-size: .95rem; color: var(--doux) }

/* Calendrier mensuel */
.cal-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 18px }
.cal-toolbar h2 { margin: 0; font-size: clamp(1.7rem, 3vw, 2.3rem); text-transform: capitalize }
.cal-nav { display: flex; gap: 8px; flex-wrap: wrap }
.cal-nav .btn { padding: 9px 16px }
.calendar { width: 100%; border-collapse: separate; border-spacing: 6px; table-layout: fixed }
.calendar th { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--titre); padding: 4px }
.calendar td { vertical-align: top; background: #fff; border: 1px solid var(--ligne); height: 112px; padding: 6px }
.calendar td.out { background: transparent; border-color: transparent }
.calendar td.today { border: 3px solid var(--rose) }
.calendar .num { font-weight: 800; font-size: .9rem; color: var(--doux) }
.cal-ev { display: block; margin-top: 4px; padding: 3px 7px; font-size: .8rem; font-weight: 700; line-height: 1.25; text-decoration: none; color: #fff; background: var(--rose); overflow: hidden; text-overflow: ellipsis }
.cal-ev.type-soiree, .cal-ev.type-reunion { background: var(--nuit) }
.cal-ev.type-fete { background: var(--orange); color: var(--nuit) }
.cal-ev.type-loto { background: var(--jaune); color: var(--nuit) }
.cal-ev.type-solidaire { background: var(--bleu) }
.cal-ev.type-autre { background: var(--titre) }
.cal-ev:hover { text-decoration: underline }
.legend { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 14px; font-size: .9rem; font-weight: 600 }
.legend span::before { content: ""; display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-right: 6px; vertical-align: -1px; background: var(--rose) }
.legend .type-soiree::before, .legend .type-reunion::before { background: var(--nuit) }
.legend .type-fete::before { background: var(--orange) }
.legend .type-loto::before { background: var(--jaune) }
.legend .type-solidaire::before { background: var(--bleu) }
.legend .type-autre::before { background: var(--titre) }
.cal-mobile { display: none }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px }
.chip { display: inline-block; padding: 7px 15px; border-radius: 999px; border: 2px solid var(--ligne); background: #fff; color: var(--texte); font-weight: 800; text-decoration: none; font-size: .9rem }
.chip:hover { border-color: var(--titre) }
.chip[aria-current="true"] { background: var(--nuit); border-color: var(--nuit); color: #fff }

/* ---------- Fiche événement / article ---------- */
.article { max-width: 860px }
.article-head h1 { font-size: clamp(2.4rem, 5.5vw, 3.9rem) }
.article-img { margin: 10px 0 28px; width: 100%; display: block; box-shadow: 12px 12px 0 var(--fond2) }
.prose { font-size: 1.08rem }
.prose h2 { font-size: 1.9rem; margin-top: 32px }
.prose h3 { font-size: 1.4rem; color: var(--titre); margin-top: 24px }
.prose blockquote { margin: 20px 0; padding: 14px 20px; border-left: 6px solid var(--orange); background: var(--fond2) }
.infos { display: flex; flex-wrap: wrap; gap: 14px; margin: 18px 0 28px }
.info { flex: 1 1 180px; min-width: 0; padding-top: 8px; border-top: 3px solid var(--orange) }
.info:nth-child(2) { border-top-color: var(--rose) }
.info:nth-child(3) { border-top-color: var(--bleu) }
.info:nth-child(4) { border-top-color: var(--jaune) }
.info b { display: block; color: var(--titre); font-size: .78rem; text-transform: uppercase; letter-spacing: .1em }
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; background: var(--fond2); color: var(--titre); font-weight: 800; font-size: .8rem }

/* Galerie photos des actualités */
.galerie { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; margin: 24px 0 }
.galerie a { display: block; overflow: hidden }
.galerie img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform .25s }
.galerie a:hover img { transform: scale(1.05) }
.lightbox { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 94vh; overflow: visible }
.lightbox::backdrop { background: rgba(10, 6, 20, .9) }
.lightbox img { display: block; max-width: 92vw; max-height: 90vh }
.lightbox button { position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%; border: 0; background: #fff; color: var(--nuit); font-size: 1.8rem; line-height: 1; cursor: pointer }
.lightbox .lb-prev { left: -8px }
.lightbox .lb-next { right: -8px }
.lightbox .lb-close { top: -8px; right: -8px; transform: none }

/* Actualités */
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px }
.news-card { background: #fff; display: flex; flex-direction: column; box-shadow: 0 2px 0 var(--ligne); position: relative }
.news-img img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover }
.news-body { padding: 20px 22px }
.news-body h3 { font-size: 1.45rem; margin-bottom: 8px }
.news-body h3 a { color: var(--texte); text-decoration: none }
.news-body h3 a::after { content: ""; position: absolute; inset: 0 }
.news-body h3 a:hover { color: var(--titre) }
.news-body p { margin: 0 }
.news-date { margin: 0 0 6px !important; font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--rose) }
.pager { display: flex; justify-content: center; gap: 10px; margin-top: 32px }
.empty { background: #fff; border: 2px dashed var(--ligne); padding: 28px; text-align: center; color: var(--doux) }

/* Anciennes classes encore utilisées */
.cards { display: grid; gap: 22px }
.three { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)) }
.card, .note { background: #fff; padding: 26px; box-shadow: 0 2px 0 var(--ligne) }
.split { display: flex; flex-wrap: wrap; gap: 40px }
.split > * { flex: 1 1 360px; min-width: 0 }
.signature { font-family: var(--f-titre); font-weight: 800; color: var(--titre); font-size: 1.3rem }
.contact { text-align: center }

/* ---------- Formulaires ---------- */
.form-card { background: #fff; padding: 30px; border-top: 6px solid var(--orange); box-shadow: 0 2px 0 var(--ligne) }
.field { margin-top: 16px }
.field label { display: block; font-weight: 800; margin-bottom: 6px }
.field input, .field textarea, .field select { width: 100%; padding: 12px 14px; border-radius: 12px; border: 2px solid var(--ligne); font: inherit; background: #fff; color: var(--texte) }
.field textarea { min-height: 160px; resize: vertical }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--titre); outline: 3px solid color-mix(in srgb, var(--titre) 18%, transparent) }
.hint { font-size: .88rem; color: var(--doux); margin-top: 4px }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden }
.form-card .btn { margin-top: 22px }
.alert { padding: 14px 18px; border-radius: 14px; margin: 0 0 18px; font-weight: 700 }
.alert-success { background: #e8f6ec; color: #1d5a2e; border: 2px solid #b9e2c4 }
.alert-error { background: #fde8ee; color: #8a1546; border: 2px solid #f5b8cf }
.alert-info { background: #e6f2fb; color: #0a4f7c; border: 2px solid #b6d6ef }

/* ---------- Pages légales et vérification ---------- */
.legal { max-width: 860px }
.legal h2 { font-size: 1.6rem; margin-top: 30px }
.verify { max-width: 560px; margin: auto; text-align: center }
.verify .status { font-family: var(--f-titre); font-size: 1.8rem; font-weight: 800; margin: 18px 0 }
.verify .ok { color: #1d7a3a }
.verify .ko { color: #b3123f }

/* ---------- Pied de page ---------- */
.vague-pied { display: block; width: 100%; height: 44px; background: var(--fond) }
.bande-claire + .footer .vague-pied, .soft + .footer .vague-pied { background: var(--fond2) }
.vague-pied path { fill: var(--nuit) }
.footer-inner { background: var(--nuit); color: #fff; padding: 22px 0 }
.footer-grid { display: flex; flex-wrap: wrap; gap: 28px 56px }
.footer-main { flex: 2 1 320px; min-width: 0 }
.footer p { margin: 0 0 6px; color: var(--sur-nuit) }
.footer .footer-name { font-family: var(--f-titre); font-weight: 800; font-size: 2.4rem; line-height: 1; color: #fff }
.footer-name span { color: var(--jaune) }
.footer a { color: #fff; text-decoration: none; font-weight: 700 }
.footer a:hover { text-decoration: underline }
.footer-links { flex: 1 1 170px; display: flex; flex-direction: column; gap: 6px }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .18); margin-top: 22px; padding-top: 14px; font-size: .9rem; color: var(--sur-nuit) }

/* ---------- Petits écrans ---------- */
@media (max-width: 900px) {
  .brand img { height: 50px }
  .header-row { gap: 8px 12px; padding-top: 6px; padding-bottom: 6px }
  .nav-toggle { display: inline-flex }
  .menu { flex: 1 1 100%; flex-direction: column; align-items: stretch; gap: 12px; padding: 4px 0 14px }
  .js .menu:not(.open) { display: none }
  .nav-links { flex-direction: column; gap: 0 }
  .nav-links a { border-radius: 0; padding: 14px 6px; font-size: 1.15rem; border-top: 1px solid var(--ligne) }
  .nav-links a:last-child { border-bottom: 1px solid var(--ligne) }
  .nav-links a[aria-current="page"] { background: transparent; color: var(--titre); box-shadow: inset 5px 0 0 var(--accent); padding-left: 16px }
  .nav-accueil { display: block }
  .header-cta { width: 100%; padding: 15px 20px; font-size: 1.05rem }
  .ticker { font-size: .92rem }
  .ticker-list { padding: 5px 0 }
  .filters { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-right: calc(-1 * max(16px, env(safe-area-inset-right, 0px))); padding-right: 16px }
  .filters::-webkit-scrollbar { display: none }
  .chip { white-space: nowrap; flex: 0 0 auto }
  .cal-nav .btn { padding: 8px 13px; font-size: .9rem }
}
@media (max-width: 820px) {
  .affiche-grid { padding-top: 36px }
  .section { padding-top: 48px; padding-bottom: 48px }
  .calendar, .calendar thead { display: none }
  .cal-mobile { display: block }
  .benevoles-photo { height: 280px }
  .mosaique-une { min-height: 320px }
  .mosaique-tuiles img { height: 150px }
}
@media (max-width: 520px) {
  body { font-size: 16px }
  .header-cta { padding: 9px 14px; font-size: .9rem }
  .actions .btn { width: 100% }
  .event-date { flex-basis: 86px }
  .event-card::before, .event-card::after { left: 75px }
  .event-body { padding: 14px 16px }
  .form-card { padding: 20px }
  .chiffres b { font-size: 3.6rem }
  .partenaires li { flex-basis: 140px; padding: 14px 10px }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto }
  .ticker-track { animation: none }
  * { transition: none !important }
}
@media print {
  .ticker, .site-header, .footer, .actions { display: none }
}
