/* Rom Game, refonte : ce que le site réel affiche et que la maquette (style.css) ne prévoit pas.
   Fichier distinct pour pouvoir remplacer style.css par celui de la maquette sans rien perdre. */

:root { --rom-orange: var(--accent-texte); --rom-orange-rgb: 255, 59, 46; }
/* Couleur d'accent de la marque. Sur fond clair, le texte prend une nuance plus foncée pour rester lisible. */
:root { --accent: #FF3B2E; --sur-accent: #0A0A0A; --accent-texte: #CF2A1F; --accent-schema: light; }
:root[data-theme="dark"] { --accent: #FF3B2E; --sur-accent: #0A0A0A; --accent-texte: #FF3B2E; --accent-schema: light; }
/* Les bandeaux (Que faire ce week-end, ce mois-ci) restent sur fond noir, dans les deux thèmes */
.cloture { --accent: #0A0A0A; --sur-accent: #F7F5EF; --accent-schema: dark; }
/* Logo de la marque, dans l'en-tête et le pied de page */
.entete .logo { --logo-h: 44px; display: flex; flex-shrink: 0; gap: calc(var(--logo-h) * 0.1845); }
.entete .logo img { width: auto; max-width: none; height: var(--logo-h); }
.logo-picto { flex: none; width: calc(var(--logo-h) * 1.0213); height: var(--logo-h); }
.logo-trait { fill: var(--encre); }
.logo-carre { fill: var(--accent); transition: fill .7s ease; }
/* Au survol, l'accent parcourt le cadre d'un bout à l'autre pendant que le carré passe au noir */
.logo-trait-accent { fill: none; stroke: var(--accent); stroke-dasharray: 1 1; stroke-dashoffset: 1; transition: stroke-dashoffset .7s ease; }
.entete .logo:hover .logo-trait-accent, .entete .logo:focus-visible .logo-trait-accent { stroke-dashoffset: 0; }
.entete .logo:hover .logo-carre, .entete .logo:focus-visible .logo-carre { fill: var(--encre); }
@media (prefers-reduced-motion: reduce) {
  .logo-carre, .logo-trait-accent { transition: none; }
}
.pied .logo img { width: 300px; max-width: 100%; height: auto; }
@media (max-width: 1400px) {
  .entete .nav { gap: 14px; }
}
@media (max-width: 560px) {
  .entete .logo { --logo-h: 34px; }
  .pied .logo img { width: 240px; }
}
.gam-slot { margin: 18px 0; text-align: center; }

/* Corps d'article : contenus saisis dans la régie */
.corps > *:not(h2):not(.corps-partie) { max-width: calc(100% - var(--decalage)); margin-left: var(--decalage); }
.corps > p { max-width: none; }
.corps-partie > div { min-width: 0; }
/* Air entre les filets verticaux de la page et les intertitres (à gauche) / la colonne de droite */
@media (min-width: 561px) { .corps-partie > h2 { padding-left: clamp(14px, 1.6vw, 26px); } }
@media (min-width: 1001px) { .colonnes > .lateral { padding-right: clamp(14px, 1.6vw, 26px); } }
.corps-partie > div > *:first-child { margin-top: 0; }
.corps-partie figure, .corps-partie blockquote { margin-left: 0; }
.corps h3, .corps h4 { margin-top: 28px; margin-bottom: 12px; font-family: var(--titre2); font-weight: 700; line-height: 1.2; letter-spacing: -.03em; }
.corps h3 { font-size: clamp(22px, 2vw, 28px); }
.corps h4 { font-size: 20px; }
.corps ul, .corps ol { margin-top: 0; margin-bottom: 18px; padding-left: 22px; color: var(--lecture); font-size: clamp(16px, 1.1vw, 19px); line-height: 1.75; }
.corps ul { list-style: disc; }
.corps ol { list-style: decimal; }
.corps li { margin-bottom: 6px; }
.corps img { max-width: 100%; height: auto; cursor: zoom-in; }
.corps figure { margin-right: 0; margin-bottom: 18px; margin-top: 0; }
.corps figcaption, .une-legende { margin-top: 8px; color: var(--gris); font-size: 13px; line-height: 1.5; }
.corps blockquote { position: relative; margin-top: 30px; margin-right: 0; margin-bottom: 30px; padding: clamp(20px, 2vw, 30px) clamp(20px, 2.4vw, 36px) clamp(20px, 2vw, 30px) calc(20px + clamp(18px, 2vw, 30px)); background: var(--fantome); }
.corps blockquote::before { content: ''; position: absolute; top: 0; bottom: 0; left: 0; width: 20px; background: repeating-linear-gradient(var(--accent) 0 10px, transparent 10px 20px) 0 0 / 10px 100% no-repeat, repeating-linear-gradient(transparent 0 10px, var(--accent) 10px 20px) 10px 0 / 10px 100% no-repeat; }
.corps blockquote p { margin-left: 0; margin-bottom: 12px; color: var(--encre); font-size: clamp(17px, 1.3vw, 22px); font-weight: 600; line-height: 1.5; letter-spacing: -.02em; }
.corps blockquote p:last-child { margin-bottom: 0; }
.corps blockquote cite, .corps blockquote footer { display: block; margin-top: 12px; color: var(--gris); font-size: 13px; font-style: normal; font-weight: 400; line-height: 1.5; }
/* Tweets, Instagram, TikTok... : ces blockquote sont remplacés par leur lecteur, sans notre habillage */
.corps blockquote[class*="twitter"], .corps blockquote[class*="instagram"], .corps blockquote[class*="tiktok"], .corps blockquote[class*="bluesky"], .corps blockquote[class*="reddit"], .corps blockquote[class*="imgur"] { padding: 0; background: none; }
.corps blockquote[class*="twitter"]::before, .corps blockquote[class*="instagram"]::before, .corps blockquote[class*="tiktok"]::before, .corps blockquote[class*="bluesky"]::before, .corps blockquote[class*="reddit"]::before, .corps blockquote[class*="imgur"]::before { content: none; }
.corps iframe, .corps video, .corps embed, .dm-player { max-width: 100%; }
.corps > iframe, .corps > p > iframe { display: block; width: 100%; border: 0; }
/* Lecteur Bandcamp : sa feuille de style interne (servie par bandcamp.com, inaccessible) le limite
   à 700 px ; l'iframe prend la même largeur et se centre, au lieu de laisser un vide à droite. */
.corps iframe[src*="bandcamp.com"] { display: block; width: 100% !important; max-width: 700px !important; margin-left: auto; margin-right: auto; }
.corps table { display: block; width: 100%; margin-bottom: 18px; overflow-x: auto; border-collapse: collapse; font-size: 15px; }
.corps th, .corps td { padding: 8px 10px; border: 1px solid var(--filet); text-align: left; }
.corps-lire-aussi { padding: 12px 0; border-top: 1px solid var(--filet); border-bottom: 1px solid var(--filet); font-size: 16px !important; line-height: 1.45 !important; }
.article-dm { width: calc(100% - var(--decalage)); margin: 18px 0 10px var(--decalage); }

/* Sommaire des articles longs */
.mce-toc { padding: 18px 20px; background: var(--carte); border: 1px solid var(--carte-filet); }
.corps .mce-toc h2 { margin: 0 0 10px; font-size: 13px; letter-spacing: 0; }
.corps .mce-toc h2::before { content: none; }
.corps .mce-toc ul { margin: 0; padding: 0; list-style: none; font-size: 15px; }
.mce-toc ul ul { padding-left: 16px; }
.mce-toc li { margin: 6px 0; }
.mce-toc a { color: inherit; text-decoration: none; }
.mce-toc a:hover { text-decoration: underline; text-underline-offset: 3px; }
#toc-sticky-select { position: fixed; top: 66px; left: 0; right: 0; z-index: 15; display: none; padding: 8px var(--marge); background: var(--entete-fond); border-bottom: 1px solid var(--filet); font-size: 13px; }
#toc-sticky-select .toc-label { margin-right: 10px; color: var(--gris); }
.custom-select { position: relative; display: inline-block; width: min(520px, 100%); vertical-align: middle; }
.custom-select-trigger { padding: 8px 28px 8px 10px; overflow: hidden; background: var(--fond); border: 1px solid var(--filet-fort); cursor: pointer; text-overflow: ellipsis; white-space: nowrap; }
.custom-select-options { position: absolute; top: 100%; left: 0; right: 0; display: none; max-height: 320px; overflow-y: auto; background: var(--fond); border: 1px solid var(--filet-fort); border-top: 0; }
.custom-select.open .custom-select-options { display: block; }
.custom-option { padding: 8px 10px; cursor: pointer; }
.custom-option:hover { background: var(--scene-fond); }

/* Vidéos du corps d'article et vidéo en tête */
.corps .video-thumbnail-wrapper { border-radius: 0 !important; }
.corps > .video-thumbnail-wrapper { width: calc(100% - var(--decalage)) !important; margin-left: var(--decalage) !important; }
.corps .video-thumbnail-wrapper img { cursor: pointer; }
.video-hero-wrapper { position: relative; display: block; width: 100%; overflow: hidden; background: #000; cursor: pointer; }
.video-hero-wrapper img { display: block; width: 100%; height: auto; }
.video-play-btn-hero { position: absolute; left: 50%; top: 50%; display: flex; width: 80px; height: 80px; align-items: center; justify-content: center; background: var(--accent); color: var(--sur-accent); transform: translate(-50%, -50%); }
.video-play-btn-hero::before { content: ''; margin-left: 4px; border-left: 20px solid currentColor; border-top: 12px solid transparent; border-bottom: 12px solid transparent; }
#video-hero.pip-mode { position: fixed !important; bottom: 20px; right: 60px; left: auto !important; top: auto !important; z-index: 10001; display: block !important; width: 360px !important; margin: 0 !important; overflow: visible; aspect-ratio: auto !important; border: 2px solid var(--encre); box-shadow: 0 8px 40px rgba(0, 0, 0, .5); cursor: grab; animation: pipSlideIn .4s cubic-bezier(.4, 0, .2, 1) forwards; }
#video-hero.pip-mode iframe, #video-hero.pip-mode #hero-player-div { position: relative !important; width: 100% !important; height: auto !important; aspect-ratio: 16 / 9 !important; }
#video-hero.pip-closing { animation: pipSlideOut .3s cubic-bezier(.4, 0, .2, 1) forwards; }
#video-hero.pip-dragging { cursor: grabbing; animation: none !important; }
#video-hero-placeholder { display: none; width: 100%; aspect-ratio: 16 / 9; }
#video-hero-placeholder.active { display: block; }
#pip-controls { display: none; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 10px; background: var(--fond); }
#video-hero.pip-mode #pip-controls { display: flex; }
#pip-title { flex: 1; overflow: hidden; color: var(--gris); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; user-select: none; }
#pip-controls button { flex-shrink: 0; padding: 4px; background: none; border: 0; color: var(--encre); font-size: 16px; line-height: 1; cursor: pointer; }
@keyframes pipSlideIn { from { transform: translateY(100px) scale(.8); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes pipSlideOut { from { transform: none; opacity: 1; } to { transform: translateY(100px) scale(.8); opacity: 0; } }

/* Galeries et modale des images */
.image-gallery-row { display: flex; gap: 15px; margin-top: 15px; margin-bottom: 15px; }
.image-gallery-row.gallery-2 .gallery-item { width: 50%; }
.image-gallery-row.gallery-3 .gallery-item { width: 33.333%; }
.image-gallery-row.gallery-4, .image-gallery-row.gallery-5, .image-gallery-row.gallery-6 { flex-wrap: wrap; }
.image-gallery-row.gallery-4 .gallery-item { width: calc(50% - 8px); }
.image-gallery-row.gallery-5 .gallery-item { width: calc(25% - 11.25px); }
.image-gallery-row.gallery-6 .gallery-item { width: calc(33.333% - 10px); }
.image-gallery-row.gallery-5 .gallery-item:first-child { width: 100%; background: #000; }
.image-gallery-row.gallery-5 .gallery-item:first-child img { height: 420px; object-fit: contain; }
.image-gallery-row.gallery-5 .gallery-item:not(:first-child) img { height: auto; aspect-ratio: 1 / 1; }
.gallery-item { position: relative; overflow: hidden; }
.gallery-item img { display: block; width: 100%; height: 220px; object-fit: cover; }
.gallery-caption { position: absolute; left: 6px; right: 6px; bottom: 6px; padding: 5px 8px; background: var(--fond); color: var(--encre); font-size: 11px; line-height: 1.3; text-align: center; }
#modal-close:focus-visible, #modal-prev:focus-visible, #modal-next:focus-visible { outline: 2px solid #fff; }
#modal-prev, #modal-next { min-height: 44px; }

/* Liste d'événements dans les articles d'agenda */
.corps-sommaire-agenda a { color: inherit; }

/* Pages de tags et rubriques */
.tag-tete { padding-bottom: 8px; }
.tag-titre { margin-top: 38px; }
.tag-sous-titre { margin-top: 12px; color: var(--gris); font-family: var(--titre2); font-size: clamp(20px, 2vw, 26px); font-weight: 600; line-height: 1.25; }
.tag-intro { max-width: 900px; }
.tag-intro a, .tag-texte a { text-decoration: underline; text-underline-offset: 3px; }
.tag-filtres { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 14px 18px; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--filet); }
.tag-filtres .filtre-champ { flex: 0 1 230px; }
#tag-resultats.chargement { opacity: .5; transition: opacity .2s; }
.actu-une-mini { flex-direction: row; }
.actu-une-mini .actu-image { flex: 1.15 1 0; min-width: 0; aspect-ratio: auto; min-height: 320px; }
.actu-une-mini .actu-corps { flex: 1 1 0; justify-content: center; gap: 14px; padding: clamp(20px, 2.4vw, 32px); }
.actu-une-mini h3 { font-size: clamp(24px, 2.4vw, 34px); font-weight: 800; line-height: 1.12; letter-spacing: -.035em; }
.actu-une-mini p { flex: 0 1 auto; font-size: clamp(14px, 1.05vw, 16px); line-height: 1.65; }
.visuellement-cache + .jour .rubriques-tete { margin-top: 0; padding-top: 0; border-top: 0; }
.tag-partie { margin-top: 56px; padding-top: 20px; border-top: 3px solid var(--encre); }
.tag-partie + .jour .rubriques-tete { margin-top: 18px; padding-top: 0; border-top: 0; }
#tag-resultats .pagination { margin-top: 32px; }
.pagination-info { margin-top: 12px; color: var(--gris); font-size: 12px; }
.tag-texte { color: var(--doux); font-size: 14px; line-height: 1.7; overflow-wrap: anywhere; }
.tag-texte p { margin-bottom: 10px; }
.tag-texte img { max-width: 100%; height: auto; }
.tag-nuage { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-nuage a { display: inline-flex; align-items: center; min-height: 36px; padding: 4px 10px; border: 1px solid var(--filet); font-size: 12px; }
.tag-nuage a:hover { border-color: var(--encre); }
.tag-nuage-titre { margin: 16px 0 10px; color: var(--gris); font-size: 12px; }
.flux-vide { color: var(--gris); }
/* Mots recherchés : fond léger et trait fin, comme un surligneur, dans les deux thèmes */
mark.search-hl { padding: 0 1px; background: var(--fantome); background: color-mix(in srgb, var(--encre) 12%, transparent); box-shadow: inset 0 -2px var(--encre); color: inherit; }
/* Présentation du tag en tête : texte de la fiche (replié au-delà de 9 lignes) et tags associés à côté */
.tag-presentation { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 24px clamp(28px, 4vw, 64px); margin-top: 30px; padding-top: 26px; border-top: 1px solid var(--filet); }
.tag-presentation-seule { grid-template-columns: minmax(0, 1fr); }
.tag-dossier-suite > .tag-presentation:first-child { margin-top: 28px; padding-top: 0; border-top: 0; }
.tag-presentation .tag-texte { font-size: 15px; }
.tag-texte-replie { position: relative; max-height: calc(1.7em * 9); overflow: hidden; }
.tag-texte-replie::after { content: ''; position: absolute; right: 0; bottom: 0; left: 0; height: 4.5em; background: linear-gradient(transparent, var(--fond)); pointer-events: none; }
.tag-texte-replie.tag-texte-ouvert { max-height: none; }
.tag-texte-replie.tag-texte-ouvert::after { display: none; }
.tag-texte-plus { margin-top: 12px; padding: 0; background: none; border: 0; color: var(--encre); font-size: 12px; font-weight: 700; letter-spacing: .1em; text-decoration: underline; text-underline-offset: 4px; text-transform: uppercase; cursor: pointer; }
.tag-associes .tag-nuage-titre { margin-top: 0; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.tag-associes .tag-nuage a { min-height: 36px; background: var(--fantome); transition: border-color .2s, background .2s; }
.tag-associes .tag-nuage a:hover { background: none; }
@media (max-width: 900px) {
  .tag-presentation { grid-template-columns: minmax(0, 1fr); }
  .tag-associes .tag-nuage a { min-height: 44px; }
}
/* Tête des pages de tags : même présentation que le bandeau de l'agenda, sur le fond de la page
   (motif briques, titre en deux temps, accroche à filet, filtres en tuiles) */
.tag-une { padding-top: 22px; padding-bottom: 26px; }
.tag-une .tag-titre { max-width: 24ch; margin-top: clamp(32px, 3.5vw, 48px); font-size: clamp(34px, 4.2vw, 70px); line-height: 1; letter-spacing: -.02em; text-wrap: balance; overflow-wrap: anywhere; }
.tag-une .tag-titre::before { content: ''; display: block; width: 113px; height: 28px; margin-bottom: 20px; background: var(--briques) 0 0 / 113px 112px; }
.tag-une .tag-titre span, .tag-une .tag-sous-titre { display: block; max-width: 38ch; margin-top: .3em; color: var(--gris); font-family: inherit; font-size: .56em; font-weight: 500; line-height: 1.15; letter-spacing: -.01em; text-transform: none; text-wrap: balance; }
.tag-une .tag-titre span::first-letter, .tag-une .tag-sous-titre::first-letter { text-transform: uppercase; }
.tag-une .tag-sous-titre { margin-top: 12px; font-size: clamp(19px, 2.35vw, 39px); }
.tag-une .tag-intro { max-width: 760px; margin-top: 24px; padding-left: 20px; border-left: 3px solid var(--encre); color: var(--doux); font-size: clamp(15px, 1.15vw, 17px); line-height: 1.65; }
.tag-une .tag-filtres { gap: 10px; margin-top: 30px; padding-top: 0; border-top: 0; }
.tag-une .tag-filtres .filtre-champ { flex: 0 1 220px; gap: 0; padding: 10px 12px 12px; background: var(--fantome); border: 1px solid var(--filet); transition: border-color .2s; }
.tag-une .tag-filtres .filtre-champ:hover, .tag-une .tag-filtres .filtre-champ:focus-within { border-color: var(--encre); }
.tag-une .tag-filtres .filtre-associe { flex-basis: 300px; }
.tag-une .tag-filtres .filtre-champ > .mono { margin-bottom: 4px; font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.tag-une .tag-filtres select { min-height: 34px; padding: 0; background: transparent; border: 0; font-size: 16px; font-weight: 700; cursor: pointer; }
.tag-une .tag-filtres select:focus { outline: 0; }
@media (max-width: 560px) {
  .tag-une .tag-titre { font-size: clamp(28px, 8.4vw, 42px); }
  .tag-une .tag-titre::before { width: 85px; height: 21px; margin-bottom: 14px; background-size: 85px 84px; }
  .tag-une .tag-titre span { font-size: .62em; }
  .tag-une .tag-sous-titre { font-size: clamp(17px, 5.2vw, 26px); }
  .tag-une .tag-intro { padding-left: 14px; font-size: 14px; }
  .tag-une .tag-filtres .filtre-champ { flex: 1 1 0; min-width: 0; }
  .tag-une .tag-filtres select { font-size: 14px; }
  .tag-une .tag-filtres .filtre-associe { flex-basis: 100%; }
}

/* Pages de contenu : contact, plan du site, mentions */
.corps > .corps-partie:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.plan-liens { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-bottom: 18px; font-size: clamp(14px, 1vw, 16px); line-height: 1.5; }
.corps .plan-liens a { text-decoration: none; }
.corps .plan-liens a:hover { text-decoration: underline; text-underline-offset: 3px; }
#matomo-opt-out { margin-top: 10px; font-size: 14px; }

/* Liste des auteurs */
.auteurs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; min-width: 0; }
.auteur { display: flex; flex-direction: column; gap: 11px; padding: 18px 20px 20px; background: var(--carte); border: 1px solid var(--carte-filet); }
.auteur .mono { color: var(--gris); }
.auteur h2 { font-family: var(--titre2); font-size: clamp(22px, 2vw, 28px); font-weight: 700; line-height: 1.2; letter-spacing: -.03em; overflow-wrap: anywhere; }
.auteur h2 a:hover { text-decoration: underline; text-underline-offset: 3px; }
.auteur > p:not(.mono) { color: var(--doux); font-size: 15px; line-height: 1.7; overflow-wrap: anywhere; }
.auteur-liens { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-top: auto; font-size: 13px; font-weight: 700; }
.auteur-liens a { display: inline-flex; align-items: center; min-height: 44px; }
.auteur-liens a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Tag ou recherche sans résultat : titre, suggestions de tags proches, recherche comme dans la navigation */
.aucun-resultat { max-width: 980px; padding: 40px 0 12px; }
.aucun-resultat-etiquette { color: var(--gris); font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.aucun-resultat-titre { margin-top: 14px; font-size: clamp(30px, 4vw, 60px); overflow-wrap: anywhere; }
.aucun-resultat-titre span { display: block; margin-top: .25em; font-size: .6em; text-transform: none; }
.aucun-resultat .intro { max-width: 640px; margin-top: 22px; }
.aucun-resultat-proches { margin-top: 30px; }
.aucun-resultat-recherche { position: relative; display: flex; align-items: stretch; gap: 12px; max-width: 640px; margin-top: 32px; padding-left: 16px; background: var(--fantome); border: 1px solid var(--filet); transition: border-color .2s; }
.aucun-resultat-recherche:focus-within { border-color: var(--encre); }
.aucun-resultat-recherche > svg { flex: none; align-self: center; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; color: var(--gris); }
.aucun-resultat-recherche .autocomplete { position: static; }
.aucun-resultat-recherche input { flex: 1; min-width: 0; min-height: 56px; padding: 0; background: none; border: 0; border-radius: 0; color: var(--encre); font: inherit; font-size: 16px; outline: 0; }
.aucun-resultat-recherche button { flex: none; padding: 0 22px; background: var(--accent); border: 0; border-radius: 0; color: var(--sur-accent); font: inherit; font-weight: 700; cursor: pointer; }
.aucun-resultat-recherche button:hover { filter: brightness(1.15); }
.aucun-resultat-recherche .autocomplete-liste { top: calc(100% + 1px); left: -1px; right: -1px; }
.aucun-resultat .actions { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: 28px; }

@media (max-width: 1000px) {
}
@media (max-width: 768px) {
  .image-gallery-row { gap: 8px; }
  .gallery-item img { height: 150px; }
  .image-gallery-row.gallery-4 .gallery-item, .image-gallery-row.gallery-5 .gallery-item, .image-gallery-row.gallery-6 .gallery-item { width: calc(50% - 4px); }
  .image-gallery-row.gallery-5 .gallery-item:first-child { width: 100%; }
  .image-gallery-row.gallery-5 .gallery-item:first-child img { height: 260px; }
  #toc-sticky-select { top: 62px; }
  #toc-sticky-select .toc-label { display: none; }
}
@media (max-width: 760px) {
  .actu-une-mini { flex-direction: column; }
  .actu-une-mini .actu-image { flex: none; min-height: 0; aspect-ratio: 16 / 9; }
}
@media (max-width: 560px) {
  .auteurs { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 576px) {
  #video-hero.pip-mode { right: 10px; bottom: 10px; width: 260px !important; }
}

/* Accueil : les cinq actus sous la une, en pleine largeur. Un grand article à gauche, quatre brèves empilées à droite. */
.actus-une { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); grid-template-rows: repeat(4, 1fr); gap: 0 64px; }
.actus-une .actu { background: none; border: 0; }
.actus-une .actu:hover h3, .actus-une .actu:focus-visible h3 { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }

.actus-une .actu:first-child { grid-row: 1 / span 4; }
.actus-une .actu:first-child .actu-image { aspect-ratio: 16 / 9; }
.actus-une .actu:first-child .actu-corps { gap: 16px; padding: 28px 0 0; }
.actus-une .actu:first-child h3 { font-size: clamp(26px, 2.5vw, 42px); font-weight: 800; line-height: 1.12; letter-spacing: -.035em; }
.actus-une .actu:first-child p { flex: none; font-size: 16px; line-height: 1.75; max-width: 68ch; }
.actus-une .actu:first-child .actu-date { margin-top: 0; padding-top: 6px; }

.actus-une .actu:not(:first-child) { display: grid; grid-template-columns: clamp(112px, 12vw, 200px) minmax(0, 1fr); align-items: center; gap: 24px; padding: 22px 0; border-top: 1px solid var(--filet); }
.actus-une .actu:nth-child(2) { padding-top: 0; border-top: 0; }
.actus-une .actu:last-child { padding-bottom: 0; }
.actus-une .actu:not(:first-child) .actu-image { aspect-ratio: 4 / 3; }
.actus-une .actu:not(:first-child) .actu-corps { gap: 8px; padding: 0; }
.actus-une .actu:not(:first-child) h3 { font-size: clamp(16px, 1.15vw, 19px); font-weight: 700; line-height: 1.3; letter-spacing: -.02em; }
.actus-une .actu:not(:first-child) p { flex: none; width: 100%; font-size: 13px; line-height: 1.6; display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }

@media (max-width: 1200px) {
  .actus-une { gap: 0 40px; }
  .actus-une .actu:not(:first-child) p { display: none; }
}
@media (max-width: 860px) {
  .actus-une { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; gap: 0; }
  .actus-une .actu:first-child { grid-row: auto; padding-bottom: 32px; }
  .actus-une .actu:nth-child(2) { padding-top: 22px; border-top: 1px solid var(--filet); }
}
@media (max-width: 560px) {
  .actus-une .actu:first-child h3 { font-size: 25px; }
  .actus-une .actu:first-child p { font-size: 15px; }
  .actus-une .actu:not(:first-child) { grid-template-columns: 96px minmax(0, 1fr); gap: 16px; }
  .actus-une .actu:not(:first-child) .actu-image { aspect-ratio: 1 / 1; }
}

/* Fiche événement */
.evt-suivante { margin-top: 20px; font-weight: 700; }
.evt-suivante a { text-decoration: underline; text-underline-offset: 4px; }

.evt-dates { display: flex; flex-direction: column; justify-content: space-between; gap: 40px; width: 100%; min-width: 0; aspect-ratio: 1111 / 640; padding: clamp(20px, 2.4vw, 40px); background: var(--accent); color: var(--sur-accent); }
.evt-dates-tete { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; }
.evt-statut { padding: 3px 8px; border: 1px solid currentColor; font-size: 11px; }
.evt-dates-corps { display: flex; align-items: center; gap: clamp(12px, 1.6vw, 26px); }
.evt-jour { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.evt-numero { font-family: var(--titre); font-weight: 800; font-size: clamp(64px, 8vw, 150px); line-height: .92; letter-spacing: -.06em; }
.evt-fleche { flex-shrink: 0; font-size: clamp(22px, 2.4vw, 38px); line-height: 1; }
.evt-dates-pied { padding-top: 16px; border-top: 1px solid currentColor; font-size: 14px; font-weight: 700; line-height: 1.4; overflow-wrap: anywhere; }
/* Lecture immédiate : le jour de la semaine et le mois en grand à droite du chiffre, qui garde sa taille */
.evt-dates-corps { flex-wrap: wrap; row-gap: 18px; }
.evt-jour { display: grid; grid-template-columns: auto auto; grid-template-rows: 1fr auto auto 1fr; align-items: center; column-gap: clamp(10px, 1.1vw, 18px); row-gap: 2px; }
.evt-jour .evt-numero { grid-column: 1; grid-row: 1 / -1; }
.evt-jour > .mono { grid-column: 2; font-family: inherit; letter-spacing: -.01em; white-space: nowrap; }
.evt-jour > .mono:first-child { grid-row: 2; font-size: clamp(18px, 1.7vw, 28px); font-weight: 800; line-height: 1.05; text-transform: uppercase; }
.evt-jour > .mono:last-child { grid-row: 3; font-size: clamp(15px, 1.3vw, 21px); font-weight: 500; line-height: 1.2; opacity: .8; }
.evt-jour > .mono:last-child::first-letter { text-transform: uppercase; }
.evt-fleche { font-size: clamp(26px, 2.8vw, 44px); }
.evt-statut { padding: 5px 10px; background: var(--sur-accent); border-color: var(--sur-accent); color: var(--accent); font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
@media (max-width: 560px) {
  .evt-dates-corps { flex-direction: column; align-items: flex-start; row-gap: 6px; }
  .evt-fleche { margin-left: 14px; transform: rotate(90deg); }
  .evt-jour .evt-numero { font-size: 60px; }
  .evt-jour > .mono:first-child { font-size: 17px; }
  .evt-jour > .mono:last-child { font-size: 14px; }
}

.evt-infos { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 32px 48px; padding-top: 36px; padding-bottom: 40px; border-top: 1px solid var(--filet); scroll-margin-top: 70px; }
.evt-infos-titre { margin-bottom: 12px; color: var(--gris); font-weight: 400; }
.evt-infos p, .evt-infos-texte { color: var(--doux); font-size: 15px; line-height: 1.65; }
.evt-infos p + p, .evt-infos-texte p + p { margin-top: 8px; }
.evt-infos strong { color: var(--encre); font-weight: 700; }
.evt-infos a { text-decoration: underline; text-underline-offset: 3px; }
.evt-infos a:hover { color: var(--encre); }
.evt-liens { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; list-style: none; font-size: 15px; }
.evt-liens a { text-decoration: none; }
.evt-liens a:hover { text-decoration: underline; }

.evt-a-venir-titre { font-family: var(--titre); font-weight: 800; font-size: clamp(30px, 4.4vw, 72px); line-height: 1.02; letter-spacing: -.05em; text-transform: uppercase; }
.evt-a-venir-titre span { color: var(--gris); font-weight: 400; }
.evt-dates-liste { margin: 48px 0 32px; padding: 0; border-top: 2px solid var(--filet-fort); border-bottom: 2px solid var(--filet-fort); list-style: none; }
.evt-dates-liste li + li { border-top: 1px solid var(--filet); }
.evt-dates-liste a { display: grid; grid-template-columns: minmax(0, 20fr) minmax(0, 50fr) minmax(0, 20fr) clamp(36px, 3.4vw, 52px); align-items: center; gap: 12px clamp(20px, 2.4vw, 40px); min-height: clamp(88px, 7vw, 112px); padding: 18px 0; color: inherit; transition: padding .2s, background-color .2s; }
.evt-ligne-date { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.evt-ligne-jours { font-family: var(--titre); font-weight: 800; font-size: clamp(24px, 2.4vw, 40px); line-height: .95; letter-spacing: -.06em; white-space: nowrap; }
.evt-ligne-mois { color: var(--gris); font-size: 12px; line-height: 1.35; }
.evt-ligne-nom { font-family: var(--titre); font-weight: 800; font-size: clamp(19px, 1.85vw, 31px); line-height: 1.08; letter-spacing: -.045em; text-transform: uppercase; text-wrap: balance; overflow-wrap: anywhere; }
.evt-ligne-lieu { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.evt-ligne-ville { font-size: 15px; font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; }
.evt-ligne-rubrique { color: var(--gris); font-size: 11px; line-height: 1.45; overflow-wrap: anywhere; }
.evt-ligne-fleche { justify-self: end; width: 100%; max-width: 46px; height: auto; fill: none; stroke: currentColor; stroke-width: 1.3; transition: transform .3s; }
.evt-dates-liste a:hover, .evt-dates-liste a:focus-visible { padding-left: 14px; padding-right: 14px; background: var(--fantome); }
.evt-dates-liste a:hover .evt-ligne-fleche, .evt-dates-liste a:focus-visible .evt-ligne-fleche { transform: translate(3px, -3px); }
.evt-dates-liste .evt-push a { padding-left: 14px; padding-right: 14px; background: #fff6d3; color: #171717; }
.evt-dates-liste .evt-push a:hover, .evt-dates-liste .evt-push a:focus-visible { background: #ffefb0; }
.evt-push .evt-ligne-mois, .evt-push .evt-ligne-rubrique { color: #5e5c55; }
.evt-ligne-push { display: block; width: fit-content; margin-bottom: 8px; padding: 2px 7px; border: 1px solid currentColor; font-size: 11px; font-weight: 500; line-height: 1.4; letter-spacing: .035em; text-transform: none; }
@media (prefers-reduced-motion: reduce) {
  .evt-dates-liste a, .evt-ligne-fleche { transition: none; }
}
@media (max-width: 860px) {
  .evt-dates-liste a { grid-template-columns: minmax(0, 1fr) 38px; gap: 10px 16px; min-height: 0; padding: 18px 0 20px; }
  .evt-ligne-date, .evt-ligne-nom, .evt-ligne-lieu { grid-column: 1; }
  .evt-ligne-fleche { grid-column: 2; grid-row: 1; align-self: start; }
  .evt-ligne-date { flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
  .evt-ligne-lieu { flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
  .evt-dates-liste a:hover, .evt-dates-liste a:focus-visible { padding-left: 10px; padding-right: 10px; }
  .evt-dates-liste .evt-push a { padding-left: 10px; padding-right: 10px; }
}


/* Colonnes latérales : "Derniers articles" et "Agenda Geek" défilent dans une hauteur réduite */
/* Colonne de droite : tout est affiché, jamais de barre de défilement. colonne.js règle le point
   d'accroche quand la colonne est plus haute que l'écran. */
.lateral-collant, body:has(.agenda-barre) .lateral-collant { max-height: none; padding-right: 0; overflow: visible; }
.lateral-defilante { max-height: none; padding-right: 0; overflow: visible; }

/* Pages de l'agenda : accueil, éditos, rubriques et recherche */
.tag-titre.agenda-titre-long { font-size: clamp(28px, 3.8vw, 60px); line-height: 1.05; }
.agenda-chapo { margin-top: 16px; }
.agenda-chapo p + p { margin-top: 1em; }
.agenda-chapo a { text-decoration: underline; text-underline-offset: 3px; }
.tag-tete .parcours { gap: 10px; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--filet); }
.tag-tete .parcours + .parcours { margin-top: 10px; padding-top: 0; border-top: 0; }
.tag-tete .parcours-ligne { grid-template-columns: 100px minmax(0, 1fr); }
.tag-tete .parcours-ligne > .mono { padding-top: 9px; color: var(--gris); font-size: 12px; }
.tag-tete .parcours-liens { gap: 8px; }
.tag-tete .parcours-liens a, .tag-tete .parcours-plus, .agenda-region { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 4px 10px; background: none; border: 1px solid var(--filet); color: inherit; font: inherit; font-size: 12px; cursor: pointer; }
.tag-tete .parcours-plus { border-style: dashed; border-color: var(--filet-fort); }
.tag-tete .parcours-liens a span, .agenda-region span { color: var(--gris); font: 11px var(--mono); opacity: 1; }
.tag-tete .parcours-liens a:hover, .tag-tete .parcours-plus:hover, .agenda-region:hover { background: var(--fantome); border-color: var(--encre); color: inherit; }
.tag-tete .parcours-liens a.parcours-actif, .agenda-region[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--sur-accent); font-weight: 700; }
.tag-tete .parcours-liens a.parcours-actif span, .agenda-region[aria-pressed="true"] span { color: inherit; }
.tag-tete .parcours-liens a.parcours-actif:hover { background: var(--accent); color: var(--sur-accent); text-decoration: line-through; }
.tag-tete .parcours-liens [hidden], .agenda-region[hidden] { display: none; }
@media (max-width: 760px) {
  .tag-tete .parcours-ligne { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .tag-tete .parcours-ligne > .mono { padding-top: 0; }
}
.agenda-groupe + .agenda-groupe { margin-top: clamp(44px, 5vw, 76px); }
.agenda-groupe .rubriques-tete { margin: 0 0 18px; padding-top: 0; border-top: 0; }
.agenda-groupe .evt-dates-liste { margin: 0; }
.evt-passe .evt-ligne-jours, .evt-passe .evt-ligne-nom, .evt-passe .evt-ligne-ville { color: var(--gris); }
.agenda-vide { padding: 40px 0 60px; }
.agenda-vide p { margin-bottom: 18px; }
.agenda-bas { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); align-items: start; gap: 36px; }

/* Recherche de l'agenda : critères actifs sous le menu, gros bouton flottant, panneau latéral */
html:has(.agenda-barre) { scroll-padding-top: 126px; }
html.agenda-bloque { overflow: hidden; }
body:has(.agenda-barre) .lateral-collant { top: 122px; }
.agenda-barre { position: sticky; top: 66px; z-index: 19; display: flex; align-items: center; gap: 8px; min-height: 46px; background: var(--entete-fond); border-bottom: 1px solid var(--filet); font-size: 12px; }
.agenda-filtre { display: flex; flex-shrink: 1; min-width: 0; }
.agenda-puce { display: inline-block; min-height: 32px; max-width: 280px; padding: 0 10px; overflow: hidden; border: 1px solid var(--filet-fort); line-height: 30px; text-overflow: ellipsis; white-space: nowrap; }
.agenda-retirer { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 30px; min-height: 32px; margin-left: -1px; background: none; border: 1px solid var(--filet-fort); color: inherit; font: inherit; font-size: 15px; cursor: pointer; }
.agenda-retirer:hover { background: var(--fantome); }
.agenda-tout-effacer { flex: none; margin-left: 4px; color: var(--gris); text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.agenda-tout-effacer:hover { color: var(--encre); }
.agenda-fab { position: fixed; right: clamp(16px, 2.4vw, 36px); bottom: clamp(16px, 2.4vw, 32px); z-index: 25; display: inline-flex; align-items: center; gap: 12px; min-height: 68px; padding: 0 28px 0 24px; background: var(--accent); border: 0; border-radius: 999px; box-shadow: 0 10px 28px rgba(0, 0, 0, .28); color: var(--sur-accent); font: inherit; font-size: 16px; font-weight: 800; cursor: pointer; transition: bottom .25s, transform .25s, filter .2s, opacity .25s; }
.agenda-fab:hover { filter: brightness(1.1); transform: translateY(-2px); }
.agenda-fab svg { flex: none; width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2.2; }
.agenda-fab-nb { display: grid; place-items: center; min-width: 24px; height: 24px; padding: 0 6px; background: var(--sur-accent); border-radius: 999px; color: var(--accent); font-size: 12px; }
body:has(.barre-suivre.visible) .agenda-fab { bottom: 96px; }
.agenda-fond { position: fixed; inset: 0; z-index: 49; background: rgba(0, 0, 0, .5); opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
.agenda-panneau { position: fixed; top: 0; right: 0; bottom: 0; z-index: 50; display: flex; flex-direction: column; width: min(680px, 100%); background: var(--fond); border-left: 2px solid var(--filet-fort); color: var(--encre); font-size: 14px; transform: translateX(100%); visibility: hidden; transition: transform .3s cubic-bezier(.2, .7, .2, 1), visibility .3s; }
.agenda-panneau:focus { outline: 0; }
.agenda-panneau.ouvert { transform: none; visibility: visible; transition: transform .3s cubic-bezier(.2, .7, .2, 1), visibility 0s; }
.agenda-panneau.ouvert ~ .agenda-fond, .agenda-fond:has(+ .agenda-panneau.ouvert) { opacity: 1; visibility: visible; }
.agenda-panneau-tete { display: flex; flex: none; align-items: center; justify-content: space-between; gap: 12px; padding: 18px clamp(20px, 3vw, 36px); border-bottom: 1px solid var(--filet); font-family: var(--titre2); font-size: clamp(18px, 1.6vw, 22px); font-weight: 800; text-transform: uppercase; }
.agenda-panneau-tete button { display: grid; flex: none; place-items: center; width: 44px; height: 44px; background: none; border: 1px solid var(--filet-fort); color: inherit; font: inherit; font-size: 24px; line-height: 1; cursor: pointer; }
.agenda-panneau-tete button:hover { background: var(--fantome); }
.agenda-panneau-corps { flex: 1 1 auto; min-height: 0; padding: 24px clamp(20px, 3vw, 36px) 32px; overflow-y: auto; }
.agenda-colonne + .agenda-colonne { margin-top: 32px; }
.agenda-colonne-titre { margin-bottom: 14px; padding-bottom: 10px; border-bottom: 2px solid var(--filet-fort); font-family: var(--titre2); font-size: 15px; font-weight: 800; text-transform: uppercase; }
.agenda-panneau-pied { display: flex; flex: none; flex-wrap: wrap; align-items: center; gap: 10px; padding: 14px clamp(20px, 3vw, 36px); border-top: 1px solid var(--filet); }
.agenda-ajouter { margin-right: auto; font-size: 13px; font-weight: 700; white-space: nowrap; }
.agenda-ajouter:hover { text-decoration: underline; text-underline-offset: 3px; }
.agenda-choix { display: flex; flex-wrap: wrap; gap: 8px; }
.agenda-choix button, .agenda-panneau-pied button { min-height: 40px; padding: 0 14px; background: none; border: 1px solid var(--filet-fort); color: inherit; font: inherit; font-size: 13px; cursor: pointer; }
.agenda-choix button:hover, .agenda-panneau-pied button:hover { background: var(--fantome); }
.agenda-choix button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--sur-accent); font-weight: 700; }
.agenda-panneau-pied .agenda-valider { min-height: 48px; padding: 0 22px; background: var(--accent); border-color: var(--accent); color: var(--sur-accent); font-weight: 800; }
.agenda-panneau-pied .agenda-valider:hover { background: var(--accent); filter: brightness(1.1); }
.agenda-panneau select, .agenda-panneau input { width: 100%; min-height: 40px; padding: 0 10px; background: var(--fond); border: 1px solid var(--filet-fort); border-radius: 0; color: var(--encre); font: inherit; font-size: 13px; }
.agenda-choix select { width: auto; }
.agenda-plage { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--filet); }
.agenda-plage label { flex: 1 1 150px; min-width: 0; }
.agenda-plage span, .agenda-champ label { display: block; margin-bottom: 6px; color: var(--gris); font-size: 12px; }
.agenda-champ + .agenda-champ { margin-top: 14px; }
.agenda-villes { max-height: 210px; margin: 0; padding: 0; overflow-y: auto; border: 1px solid var(--filet-fort); border-top: 0; list-style: none; }
.agenda-villes[hidden] { display: none; }
.agenda-villes button { display: block; width: 100%; padding: 9px 10px; background: none; border: 0; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.agenda-villes button:hover, .agenda-villes button:focus-visible { background: var(--fantome); }
.agenda-panneau { --fond: #0A0A0A; --encre: #FFFFFF; --gris: #C9C4B8; --filet: #4A4945; --filet-fort: #FFFFFF; --fantome: #2A2926; color-scheme: dark; border-left-color: #0A0A0A; }
html[data-theme="dark"] .agenda-panneau { border-left-color: #4A4945; }
.agenda-panneau .agenda-plage span, .agenda-panneau .agenda-champ label { color: #E6E0D2; font-size: 13px; }
.agenda-panneau ::placeholder { color: #C9C4B8; opacity: 1; }
.agenda-panneau .agenda-colonne-titre { font-size: 16px; }
.agenda-panneau select, .agenda-panneau input, .agenda-choix button, .agenda-panneau-pied button { font-size: 14px; }
/* Panneau de recherche : résumé des critères, sections avec effacement, zone Région / Département */
.agenda-resume { display: grid; flex: none; grid-template-columns: repeat(3, minmax(0, 1fr)); border-bottom: 1px solid var(--filet); }
.agenda-resume a { display: flex; flex-direction: column; gap: 3px; min-width: 0; padding: 12px clamp(14px, 2vw, 22px); border-bottom: 3px solid transparent; transition: background .2s; }
.agenda-resume a + a { border-left: 1px solid var(--filet); }
.agenda-resume a:hover { background: var(--fantome); }
.agenda-resume .mono { color: var(--gris); font-size: 11px; text-transform: uppercase; }
.agenda-resume b { overflow: hidden; color: var(--gris); font-size: 14px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.agenda-resume a.choisi { border-bottom-color: var(--accent); }
.agenda-resume a.choisi b { color: var(--encre); font-weight: 800; }
.agenda-colonne { scroll-margin-top: 12px; }
.agenda-colonne-tete { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 2px solid var(--filet-fort); }
.agenda-colonne-tete .agenda-colonne-titre { margin: 0; padding: 0; border: 0; }
.agenda-section-effacer { padding: 0; background: none; border: 0; color: var(--gris); font: inherit; font-size: 13px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.agenda-section-effacer:hover { color: var(--encre); }
.agenda-choix button[aria-pressed="true"]::before { content: '✓ '; }
.agenda-panneau .agenda-plage { display: grid; grid-template-columns: minmax(0, 1.25fr) repeat(2, minmax(0, 1fr)); gap: 12px; }
.agenda-panneau .agenda-plage label { min-width: 0; }
.agenda-ou-sinon { display: flex; align-items: center; gap: 12px; margin: 16px 0 12px; color: var(--gris); font-size: 11px; text-transform: uppercase; }
.agenda-ou-sinon::before, .agenda-ou-sinon::after { content: ''; flex: 1; height: 1px; background: var(--filet); }
.agenda-zone { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.agenda-zone .agenda-champ + .agenda-champ { margin-top: 0; }
.agenda-villes button[aria-selected="true"], .agenda-villes button:focus { background: var(--fantome); outline: 0; }
.agenda-panneau-corps > .agenda-ajouter { display: inline-block; margin: 36px 0 0; color: var(--gris); }
.agenda-panneau-corps > .agenda-ajouter:hover { color: var(--encre); }
.agenda-panneau-pied { display: grid; grid-template-columns: auto minmax(0, 1fr); }
.agenda-panneau-pied .agenda-valider { display: inline-flex; white-space: nowrap; align-items: center; justify-content: center; gap: 10px; }
@media (max-width: 560px) {
  .agenda-panneau-tete { padding-top: 12px; padding-bottom: 12px; }
  .agenda-resume a { padding: 10px 12px; }
  .agenda-resume b { font-size: 13px; }
  .agenda-panneau .agenda-plage { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .agenda-panneau .agenda-plage label:first-child { grid-column: 1 / -1; }
  .agenda-zone { grid-template-columns: minmax(0, 1fr); }
  .agenda-panneau .agenda-choix { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .agenda-panneau .agenda-choix button { padding: 8px 10px; line-height: 1.3; text-align: left; }
  .agenda-panneau-pied .agenda-valider { padding: 0 14px; white-space: nowrap; }
}
/* Panneau de recherche : même présentation que le bandeau de l'agenda (crème sur noir uni,
   tuiles en verre, choix en crème plein, titres en capitales grasses) */
.agenda-panneau {
  --fond: #0A0A0A; --encre: #F5F0E5; --gris: #C9C4B8; --doux: #E6E0D2; --accent: #F5F0E5; --sur-accent: #0A0A0A;
  --verre: rgba(245, 240, 229, .04); --verre-filet: rgba(245, 240, 229, .2); --filet: rgba(245, 240, 229, .14); --filet-fort: rgba(245, 240, 229, .35); --fantome: rgba(245, 240, 229, .08);
  --briques: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='226' height='224' fill='%23F5F0E5'%3E%3Cpath d='M165 0h57v28h-57zM80 28h57v28h-57zM221 56h57v28h-57zM-5 56h57v28h-57zM136 84h57v28h-57zM51 112h57v28h-57zM192 140h57v28h-57zM-34 140h57v28h-57zM107 168h57v28h-57zM22 196h57v28h-57z'/%3E%3C/svg%3E");
  border-left: 1px solid var(--filet);
}
.agenda-panneau-tete { align-items: flex-start; padding: 22px clamp(20px, 3vw, 36px) 18px; border-bottom: 0; font-family: inherit; text-transform: none; }
.agenda-panneau-titre { display: flex; flex-direction: column; gap: 4px; }
.agenda-panneau-titre::before { content: ''; display: block; width: 85px; height: 21px; margin-bottom: 14px; background: var(--briques) 0 0 / 85px 84px; }
.agenda-panneau-titre b { font-size: clamp(26px, 2.4vw, 34px); font-weight: 800; line-height: 1; letter-spacing: -.02em; text-transform: uppercase; }
.agenda-panneau-titre > span { color: var(--gris); font-size: clamp(16px, 1.3vw, 19px); font-weight: 500; }
.agenda-panneau-tete button { background: var(--verre); border-color: var(--verre-filet); transition: background .2s, color .2s, border-color .2s; }
.agenda-panneau-tete button:hover { background: var(--encre); border-color: var(--encre); color: #0A0A0A; }
/* Résumé : trois tuiles, pleines quand un critère est choisi */
.agenda-resume { gap: 8px; padding: 0 clamp(20px, 3vw, 36px) 18px; border-bottom: 1px solid var(--filet); }
.agenda-resume a, .agenda-resume a + a { gap: 6px; padding: 10px 12px; background: var(--verre); border: 1px solid var(--verre-filet); transition: background .2s, border-color .2s; }
.agenda-resume a:hover { background: var(--fantome); border-color: var(--encre); }
.agenda-resume .mono { font-size: 10px; font-weight: 700; letter-spacing: .12em; }
.agenda-resume b { color: var(--doux); }
.agenda-resume a.choisi { background: var(--encre); border-color: var(--encre); }
.agenda-resume a.choisi .mono { color: #3A3936; }
.agenda-resume a.choisi b { color: #0A0A0A; }
/* Sections numérotées */
.agenda-panneau-corps { padding-top: 28px; }
.agenda-colonne + .agenda-colonne { margin-top: 40px; }
.agenda-colonne-tete { align-items: center; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--filet); }
.agenda-panneau .agenda-colonne-titre { display: flex; align-items: baseline; gap: 12px; font-family: inherit; font-size: clamp(20px, 1.8vw, 24px); font-weight: 800; letter-spacing: -.01em; }
.agenda-colonne-titre .mono { color: var(--gris); font-size: 12px; font-weight: 500; letter-spacing: .08em; }
.agenda-section-effacer { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
/* Choix : tuiles en verre, crème plein une fois choisies */
.agenda-panneau .agenda-choix button { min-height: 44px; padding: 0 14px; background: var(--verre); border: 1px solid var(--verre-filet); transition: background .2s, border-color .2s, color .2s; }
.agenda-panneau .agenda-choix button:hover { background: var(--fantome); border-color: var(--encre); }
.agenda-panneau .agenda-choix button[aria-pressed="true"] { background: var(--encre); border-color: var(--encre); color: #0A0A0A; font-weight: 700; }
/* Champs */
.agenda-panneau .agenda-plage span, .agenda-panneau .agenda-champ label { margin-bottom: 8px; color: var(--gris); font: 700 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.agenda-panneau select, .agenda-panneau input { min-height: 46px; padding: 0 12px; background: var(--verre); border: 1px solid var(--verre-filet); color: var(--encre); transition: border-color .2s; }
.agenda-panneau select:hover, .agenda-panneau input:hover { border-color: var(--filet-fort); }
.agenda-panneau select:focus, .agenda-panneau input:focus { border-color: var(--encre); outline: 0; }
/* Liste déroulante : intitulés de groupe (Prochainement, Année) sur le même fond sombre que les options */
.agenda-panneau optgroup { background: #1F1E1C; color: #C9C4B8; font-style: normal; font-weight: 700; }
.agenda-panneau option, .agenda-panneau optgroup option { background: #0A0A0A; color: #F5F0E5; font-weight: 400; }
.agenda-panneau .agenda-plage { margin-top: 0; padding-top: 0; border-top: 0; }
.agenda-villes { background: #141414; border-color: var(--verre-filet); }
.agenda-ou-sinon { margin: 18px 0 14px; }
.agenda-panneau-corps > .agenda-ajouter { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
/* Dates libres : toute la cellule ouvre le calendrier */
.agenda-date-champ { min-width: 0; }
.agenda-date { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; min-height: 46px; padding: 0 12px; background: var(--verre); border: 1px solid var(--verre-filet); color: var(--gris); font: inherit; font-size: 14px; text-align: left; cursor: pointer; transition: border-color .2s, background .2s; }
.agenda-date b { overflow: hidden; font-weight: 400; text-overflow: ellipsis; white-space: nowrap; }
.agenda-date svg { flex: none; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.agenda-date:hover { background: var(--fantome); border-color: var(--filet-fort); }
.agenda-date.rempli { color: var(--encre); }
.agenda-date.rempli b { font-weight: 700; }
.agenda-date.cible { border-color: var(--encre); box-shadow: inset 0 -3px 0 var(--encre); }
/* Calendrier : sous la ligne Période / Du / Au, sur toute la largeur */
.agenda-calendrier { grid-column: 1 / -1; padding: 16px; background: #141414; border: 1px solid var(--verre-filet); animation: agenda-cal-entree .18s ease-out; }
.agenda-calendrier[hidden] { display: none; }
@keyframes agenda-cal-entree { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.agenda-cal-tete { display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; align-items: center; gap: 8px; }
.agenda-cal-tete strong { font-size: 18px; font-weight: 800; letter-spacing: -.01em; text-align: center; text-transform: uppercase; }
.agenda-cal-tete button { height: 40px; background: var(--verre); border: 1px solid var(--verre-filet); color: var(--encre); font: inherit; font-size: 22px; line-height: 1; cursor: pointer; transition: background .2s, color .2s; }
.agenda-cal-tete button:hover { background: var(--encre); color: #0A0A0A; }
.agenda-cal-consigne { margin: 10px 0 12px; color: var(--gris); font-size: 11px; font-weight: 700; letter-spacing: .12em; text-align: center; text-transform: uppercase; }
.agenda-panneau .agenda-calendrier span { display: block; margin: 0; color: var(--gris); font: 700 11px var(--mono); letter-spacing: .08em; text-align: center; text-transform: none; }
.agenda-cal-semaine, .agenda-cal-jours { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.agenda-cal-semaine { margin-bottom: 6px; padding-bottom: 6px; border-bottom: 1px solid var(--filet); }
.agenda-cal-jours { gap: 3px 0; }
.agenda-cal-jours button { position: relative; height: 42px; padding: 0; background: none; border: 1px solid transparent; color: var(--encre); font: inherit; font-size: 14px; font-variant-numeric: tabular-nums; cursor: pointer; transition: background .15s, border-color .15s; }
.agenda-cal-jours button:hover { border-color: var(--encre); }
.agenda-cal-jours button.auj::after { content: ''; position: absolute; left: 50%; bottom: 6px; width: 4px; height: 4px; margin-left: -2px; background: currentColor; border-radius: 50%; }
.agenda-cal-jours button.dans { background: rgba(245, 240, 229, .12); }
.agenda-cal-jours button.apercu { border: 1px dashed var(--encre); }
.agenda-cal-jours button.debut, .agenda-cal-jours button.fin { background: var(--encre); border-color: var(--encre); color: #0A0A0A; font-weight: 800; }
.agenda-cal-jours button:focus-visible { outline: 2px solid var(--encre); outline-offset: 1px; z-index: 1; }
.agenda-cal-pied { display: flex; justify-content: space-between; gap: 10px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--filet); }
.agenda-cal-pied button { padding: 0; background: none; border: 0; color: var(--gris); font: 700 11px var(--mono); letter-spacing: .1em; text-decoration: underline; text-underline-offset: 3px; text-transform: uppercase; cursor: pointer; }
.agenda-cal-pied button:hover { color: var(--encre); }
@media (prefers-reduced-motion: reduce) { .agenda-calendrier { animation: none; } }
/* Pied : gros bouton crème comme « Rechercher » du bandeau */
.agenda-panneau-pied { gap: 10px; padding: 16px clamp(20px, 3vw, 36px); background: #0A0A0A; border-top: 1px solid var(--filet); }
.agenda-panneau-pied button { min-height: 56px; background: var(--verre); border-color: var(--verre-filet); }
.agenda-panneau-pied button:hover { background: var(--fantome); border-color: var(--encre); }
.agenda-panneau-pied .agenda-valider { min-height: 56px; background: var(--encre); border-color: var(--encre); color: #0A0A0A; font-size: 16px; font-weight: 800; transition: transform .2s, box-shadow .2s; }
.agenda-panneau-pied .agenda-valider:hover { background: var(--encre); filter: none; transform: translateY(-2px); box-shadow: 0 10px 30px rgba(0, 0, 0, .5); }
.agenda-panneau button:focus-visible, .agenda-panneau a:focus-visible { outline: 2px solid var(--encre); outline-offset: 2px; }
/* Compteur en direct : le texte pâlit pendant le calcul, « Aucun résultat » passe en tuile neutre */
.agenda-valider-texte { font-variant-numeric: tabular-nums; transition: opacity .2s; }
.agenda-valider.compte-en-cours .agenda-valider-texte { opacity: .45; }
.agenda-panneau-pied .agenda-valider.vide { background: var(--verre); border-color: var(--verre-filet); color: var(--gris); }
.agenda-panneau-pied .agenda-valider.vide:hover { transform: none; box-shadow: none; }
@media (max-width: 560px) {
  .agenda-panneau-tete { padding-top: 16px; padding-bottom: 14px; }
  .agenda-panneau-titre::before { display: none; }
  .agenda-panneau-titre b { font-size: 24px; }
  .agenda-panneau-titre > span { font-size: 15px; }
  .agenda-resume { gap: 6px; padding-bottom: 14px; }
  .agenda-resume a, .agenda-resume a + a { padding: 8px 10px; }
  .agenda-panneau-corps { padding-top: 22px; }
  .agenda-colonne + .agenda-colonne { margin-top: 32px; }
  .agenda-panneau .agenda-choix button { min-height: 44px; padding: 8px 10px; line-height: 1.3; }
  .agenda-panneau-pied button, .agenda-panneau-pied .agenda-valider { min-height: 52px; }
  .agenda-panneau-pied .agenda-valider { padding: 6px 12px; font-size: 14px; line-height: 1.2; white-space: normal; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  .agenda-fab, .agenda-fond, .agenda-panneau, .agenda-panneau.ouvert { transition: none; }
}
@media (max-width: 768px) {
  .agenda-barre { overflow-x: auto; scrollbar-width: none; }
  .agenda-barre::-webkit-scrollbar { display: none; }
  .agenda-filtre { flex-shrink: 0; }
  .agenda-panneau { border-left: 0; }
  .agenda-fab { min-height: 60px; padding: 0 22px 0 18px; font-size: 15px; }
  body:has(.barre-suivre.visible) .agenda-fab { bottom: 84px; }
}
@media (max-width: 760px) {
  .agenda-barre { top: 62px; }
  html:has(.agenda-barre) { scroll-padding-top: 118px; }
}
@media print {
  .agenda-fab, .agenda-panneau, .agenda-fond { display: none; }
}

/* Images du corps d'article : même filtre que les autres images, présentées sur une planche */
.corps img { filter: var(--filtre-image); transition: filter .3s; }
.corps img:hover, .corps img:focus-visible, .corps .video-thumbnail-wrapper:hover img { filter: none; }
.corps .corps-image, .corps .image-gallery-row { position: relative; margin-top: 28px; margin-bottom: 28px; padding: clamp(10px, 1vw, 14px); background: var(--fantome); }
.corps .corps-image img { margin: 0 auto; float: none !important; }
.corps .corps-image figcaption { margin-top: 10px; }
.corps .corps-image::before, .corps .corps-image::after, .corps .image-gallery-row::before, .corps .image-gallery-row::after { content: ''; position: absolute; z-index: 1; width: 20px; height: 20px; pointer-events: none; }
.corps .corps-image::before, .corps .image-gallery-row::before { top: 0; right: 0; background: linear-gradient(var(--fond), var(--fond)) 0 0 / 100% 10px no-repeat, linear-gradient(var(--fond), var(--fond)) 100% 0 / 10px 100% no-repeat; }
.corps .corps-image::after, .corps .image-gallery-row::after { bottom: 0; left: 0; background: linear-gradient(var(--fond), var(--fond)) 0 100% / 100% 10px no-repeat, linear-gradient(var(--fond), var(--fond)) 0 0 / 10px 100% no-repeat; }
@media (prefers-reduced-motion: reduce) {
  .corps img { transition: none; }
}

/* Articles : "À lire aussi" sur toute la largeur, sous l'article et sa colonne */
.article-lire-aussi .rubriques-tete { margin-top: 0; padding-top: 0; border-top: 0; }
.article-lire-aussi .actus { grid-template-columns: repeat(var(--colonnes, 3), minmax(0, 1fr)); }
@media (max-width: 1290px) {
  .article-lire-aussi .actus { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1000px) {
  .article-lire-aussi .actus { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .article-lire-aussi .actus { grid-template-columns: minmax(0, 1fr); }
}

/* Articles : barre d'avancement de la lecture, tout en haut de l'écran */
.lecture-avancement { position: fixed; top: 0; right: 0; left: 0; z-index: 40; height: 4px; background: var(--accent); transform: scaleX(0); transform-origin: left; pointer-events: none; }
@media print {
  .lecture-avancement { display: none; }
}

/* Pied de page centré : logo, liens, mentions, retour en haut */
.pied { flex-direction: column; justify-content: center; gap: 26px; padding-top: 64px; padding-bottom: 48px; text-align: center; border-top: 1px solid var(--filet); }
.pied .logo { order: 1; }
.pied nav { order: 2; justify-content: center; gap: 10px 26px; }
.pied nav a { border-bottom: 0; }
.pied nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.pied p { order: 3; }
.pied p a { border-bottom: 0; text-decoration: underline; text-underline-offset: 3px; }
.pied .haut { order: 4; margin-top: 6px; color: var(--gris); font-size: 12px; }
@media (max-width: 560px) {
  .pied { gap: 22px; padding-top: 48px; padding-bottom: 40px; }
  .pied nav { gap: 8px 18px; }
}

/* Boutons Agenda (navigation) et Lire l'article : noirs, avec un filet pour rester visibles en mode sombre */
.entete-actions .bouton, .accroche:not(.accroche-evenement) .actions .bouton { --accent: #0A0A0A; --sur-accent: #F7F5EF; }
html[data-theme="dark"] .entete-actions .bouton, html[data-theme="dark"] .accroche:not(.accroche-evenement) .actions .bouton { box-shadow: inset 0 0 0 1px var(--filet); }

/* Marges animées : carré d'accent atténué au bout de chaque brique arrivée (fond.js) */
.cotes-couche b { position: absolute; width: 14px; height: 14px; background: var(--accent); opacity: 0; will-change: opacity; }

/* Fiche événement : infos pratiques repliées sur 7 lignes quand elles sont longues (agenda.js) */
.evt-infos-contenu.evt-infos-replie { max-height: 11.55em; overflow: hidden; -webkit-mask-image: linear-gradient(#000 60%, transparent); mask-image: linear-gradient(#000 60%, transparent); }
.evt-infos-plus { margin-top: 12px; min-height: 36px; padding: 4px 10px; background: none; border: 1px dashed var(--filet-fort); color: inherit; font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; }
.evt-infos-plus:hover { background: var(--fantome); }

/* Fiche événement : mêmes proportions que l'en-tête d'article, le bloc des dates à la place de l'image */
@media (max-width: 760px) {
  .accroche-evenement .evt-dates { order: -1; gap: 28px; margin: 18px 0 32px; aspect-ratio: auto; }
}
.evt-dates { --accent: #0A0A0A; --sur-accent: #F7F5EF; }
html[data-theme="dark"] .evt-dates { box-shadow: inset 0 0 0 1px var(--filet); }

/* Menu burger : plein écran, sous l'en-tête qui garde le bouton de fermeture, sans filets */
.menu-mobile { position: fixed; inset: 0; z-index: 19; gap: clamp(2px, .8vh, 8px); padding-top: 84px; padding-bottom: 32px; overflow-y: auto; background: var(--fond); border-bottom: 0; font-size: clamp(24px, 6.4vw, 38px); font-weight: 800; }
.menu-mobile a { padding: clamp(6px, 1.2vh, 10px) 0; border-top: 0; letter-spacing: -.02em; text-transform: uppercase; }
.menu-mobile a:hover { color: var(--accent-texte); }
.menu-mobile .menu-theme { flex: none; align-self: flex-start; margin-top: auto; padding: 18px 0 0; border-top: 0; color: inherit; font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; }
html:has(.menu-mobile.ouvert) { overflow: hidden; }
html:has(.menu-mobile.ouvert) .agenda-fab, html:has(.menu-mobile.ouvert) .agenda-barre, html:has(.menu-mobile.ouvert) .barre-suivre { display: none; }

/* Mobile : moins de traits. Les blocs se séparent par l'espace, seuls les filets de listes restent */
@media (max-width: 760px) {
  body { background-image: none; }
  .section { padding-top: 44px; padding-bottom: 44px; border-top: 0; }
  .actus { gap: 32px; }
  .actu { background: none; border: 0; }
  .actu-corps { padding: 14px 0 0; }
  .rubriques-tete { padding-top: 0; border-top: 0; }
  .tag-filtres { margin-top: 12px; padding-top: 0; border-top: 0; }
  .tag-tete .parcours { padding-top: 0; border-top: 0; }
  .corps-partie { border-top: 0; }
  .article-partage { padding-top: 0; border-top: 0; }
  .evt-infos { border-top: 0; }
  .corps-lire-aussi { border-top: 0; border-bottom: 0; }
}

/* Dossiers : image de une en grand, titre et chapô posés dessus. Le bloc reste sombre
   dans les deux thèmes pour garantir la lisibilité du texte sur l'image. */
.dossier-une {
  --encre: #F5F0E5; --gris: #C9C4B8; --doux: #E6E0D2;
  --accent: #F5F0E5; --sur-accent: #0A0A0A;
  --briques: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='226' height='224' fill='%23F5F0E5'%3E%3Cpath d='M165 0h57v28h-57zM80 28h57v28h-57zM221 56h57v28h-57zM-5 56h57v28h-57zM136 84h57v28h-57zM51 112h57v28h-57zM192 140h57v28h-57zM-34 140h57v28h-57zM107 168h57v28h-57zM22 196h57v28h-57z'/%3E%3C/svg%3E");
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr); min-height: clamp(600px, calc(100svh - 66px), 940px); overflow: hidden; background: #0A0A0A; color: var(--encre); isolation: isolate;
}
.dossier-une-image { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; filter: var(--filtre-image); animation: dossier-une-zoom 2.4s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes dossier-une-zoom { from { transform: scale(1.06); } to { transform: none; } }
/* Voile : plus dense en bas et à gauche, là où se trouve le texte, léger en haut pour le fil d'Ariane */
.dossier-une::before { content: ''; position: absolute; inset: 0; z-index: -1; background:
  linear-gradient(0deg, rgba(10, 10, 10, .94) 0%, rgba(10, 10, 10, .74) 30%, rgba(10, 10, 10, .12) 62%, rgba(10, 10, 10, .45) 100%),
  linear-gradient(90deg, rgba(10, 10, 10, .55) 0%, rgba(10, 10, 10, 0) 65%); }
.dossier-une-contenu { min-width: 0; display: flex; flex-direction: column; justify-content: space-between; gap: 48px; padding-bottom: clamp(36px, 5vw, 72px); }
.dossier-une .ligne-haut { color: var(--gris); text-shadow: 0 1px 8px rgba(0, 0, 0, .5); }
.dossier-une .ligne-haut a:hover { color: var(--encre); }
.dossier-une-texte { max-width: 1180px; }
.dossier-une-texte::before { content: ''; display: block; width: 113px; height: 28px; margin-bottom: 22px; background: var(--briques) 0 0 / 113px 112px; }
.dossier-une-etiquette { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-bottom: 22px; color: var(--gris); font-weight: 500; }
.dossier-une-tag, .dossier-une-tag2 { padding: 5px 10px; border: 1px solid var(--encre); font-weight: 800; letter-spacing: .14em; transition: background .2s, color .2s; }
.dossier-une-tag { background: var(--encre); color: #0A0A0A; }
.dossier-une-tag2 { color: var(--encre); }
.dossier-une-tag:hover { background: none; color: var(--encre); }
.dossier-une-tag2:hover { background: var(--encre); color: #0A0A0A; }
.dossier-une-tag + .dossier-une-tag2 { margin-left: -8px; }
.dossier-une .grand-titre { max-width: 22ch; font-size: clamp(32px, 4.6vw, 80px); text-wrap: balance; text-shadow: 0 2px 30px rgba(0, 0, 0, .45); }
.dossier-une .grand-titre span { color: var(--gris); }
.dossier-une .intro { max-width: 760px; margin-top: 28px; padding-left: 20px; border-left: 3px solid var(--encre); color: var(--doux); font-size: clamp(15px, 1.2vw, 18px); line-height: 1.7; text-shadow: 0 1px 12px rgba(0, 0, 0, .5); }
.dossier-une .intro a { text-decoration: underline; text-underline-offset: 3px; }
.dossier-une-pied { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; margin-top: 34px; }
.dossier-une-pied .mono { color: var(--gris); }
.dossier-une-pied .mono a { color: var(--encre); font-weight: 700; }
.dossier-une-pied .mono a:hover { text-decoration: underline; text-underline-offset: 3px; }
.dossier-une-credits { margin-top: 28px; color: var(--gris); font-size: 12px; line-height: 1.5; opacity: .8; }
.dossier-une-credits a { text-decoration: underline; text-underline-offset: 2px; }
@media (max-width: 760px) {
  .dossier-une { min-height: max(560px, 86svh); }
  .dossier-une::before { background: linear-gradient(0deg, rgba(10, 10, 10, .96) 0%, rgba(10, 10, 10, .82) 45%, rgba(10, 10, 10, .3) 75%, rgba(10, 10, 10, .6) 100%); }
  .dossier-une-contenu { gap: 32px; }
  .dossier-une-texte::before { width: 85px; height: 21px; margin-bottom: 16px; background-size: 85px 84px; }
  .dossier-une .grand-titre { font-size: clamp(26px, 7.4vw, 40px); }
  .dossier-une .intro { margin-top: 20px; padding-left: 14px; font-size: 15px; }
  .dossier-une-pied .bouton { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .dossier-une-image { animation: none; } }
@media print { .dossier-une { min-height: 0; background: none; color: #000; } .dossier-une::before, .dossier-une-image { display: none; } }
/* Tags avec fiche : la une des dossiers, moins haute, avec le titre en deux temps de l'agenda */
.tag-dossier { min-height: clamp(520px, calc(76svh - 66px), 780px); }
.tag-dossier .grand-titre { max-width: 24ch; font-size: clamp(34px, 4.4vw, 76px); line-height: 1; letter-spacing: -.02em; overflow-wrap: anywhere; }
.tag-dossier .grand-titre span, .tag-dossier-sous-titre { display: block; max-width: 38ch; margin-top: .3em; color: var(--gris); font-size: .56em; font-weight: 500; line-height: 1.15; letter-spacing: -.01em; text-transform: none; text-wrap: balance; text-shadow: 0 1px 14px rgba(0, 0, 0, .5); }
.tag-dossier .grand-titre span::first-letter, .tag-dossier-sous-titre::first-letter { text-transform: uppercase; }
.tag-dossier-sous-titre { margin-top: 12px; font-size: clamp(19px, 2.45vw, 42px); }
.tag-dossier .intro { margin-top: 24px; }
.tag-dossier-suite { padding-top: 6px; }
/* Jaquette du jeu (fiche de la régie) : affiche posée à droite du texte, fond flouté si elle est la seule image */
.tag-dossier-corps { display: block; }
.tag-avec-jaquette .tag-dossier-corps { display: grid; grid-template-columns: minmax(0, 1fr) clamp(190px, 21vw, 300px); align-items: end; gap: clamp(28px, 4vw, 64px); }
.tag-avec-jaquette .dossier-une-texte { grid-row: 1; grid-column: 1; }
.tag-jaquette { grid-row: 1; grid-column: 2; margin: 0; align-self: center; }
.tag-jaquette img { display: block; width: 100%; height: auto; max-height: 62svh; object-fit: contain; border: 1px solid rgba(245, 240, 229, .25); box-shadow: 0 24px 60px rgba(0, 0, 0, .65), 0 4px 14px rgba(0, 0, 0, .5); transform: perspective(900px) rotateY(-6deg); transition: transform .4s cubic-bezier(.2, .7, .2, 1); }
.tag-jaquette:hover img { transform: none; }
.dossier-une-image.tag-fond-flou { filter: blur(26px) brightness(.6) saturate(1.2); transform: scale(1.15); animation: none; }
@media (max-width: 900px) {
  .tag-avec-jaquette .tag-dossier-corps { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .tag-avec-jaquette .dossier-une-texte, .tag-jaquette { grid-column: 1; grid-row: auto; }
  .tag-jaquette { width: clamp(120px, 34vw, 180px); }
  .tag-jaquette img { transform: none; }
}
@media (prefers-reduced-motion: reduce) { .tag-jaquette img { transform: none; transition: none; } }
@media print { .tag-jaquette { display: none; } }
/* Carte d'identité du tag (genre, type, pays, dates, matériel, studios) : tuiles, en verre sur l'image */
.tag-fiche { display: flex; flex-wrap: wrap; gap: 8px; max-width: 1100px; margin-top: 26px; }
.tag-fiche > div { flex: 0 1 auto; min-width: 120px; max-width: 100%; padding: 10px 14px 11px; background: var(--fantome); border: 1px solid var(--filet); }
/* Tuile double Développement | Édition (jeux) : deux colonnes séparées par un filet, dans un seul cadre */
.tag-fiche > .tag-fiche-duo { display: flex; gap: 0; padding: 0; }
.tag-fiche-duo > div { min-width: 0; padding: 10px 14px 11px; }
.tag-fiche-duo > div + div { border-left: 1px solid var(--filet); }
.tag-dossier .tag-fiche-duo > div + div { border-left-color: rgba(245, 240, 229, .22); }
.tag-fiche dt { margin-bottom: 4px; color: var(--gris); font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.tag-fiche dd { margin: 0; font-size: 14px; font-weight: 700; line-height: 1.35; overflow-wrap: anywhere; }
.tag-fiche dd::first-letter { text-transform: uppercase; }
.tag-dossier .tag-fiche > div { background: rgba(16, 16, 16, .5); border-color: rgba(245, 240, 229, .22); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.tag-dossier .tag-fiche + .dossier-une-pied { margin-top: 26px; }
@media (max-width: 560px) {
  .tag-fiche > div { flex: 1 1 calc(50% - 4px); min-width: 0; padding: 8px 10px 9px; }
  .tag-fiche > .tag-fiche-duo { flex-basis: 100%; padding: 0; }
  .tag-fiche-duo > div { flex: 1 1 50%; padding: 8px 10px 9px; }
  .tag-fiche dd { font-size: 13px; }
}
.tag-dossier-suite .tag-filtres { margin-top: 24px; }
@media (max-width: 560px) {
  .tag-dossier { min-height: max(520px, 80svh); }
  .tag-dossier .grand-titre { font-size: clamp(28px, 8.4vw, 42px); }
  .tag-dossier .grand-titre span { font-size: .62em; }
  .tag-dossier-sous-titre { font-size: clamp(17px, 5.2vw, 26px); }
}

/* Agenda : bandeau sur fond uni sombre en tête (accueil, éditos, rubriques), mêmes couleurs forcées que les dossiers.
   Accès rapides avec compteurs et bouton qui ouvre le panneau de recherche. */
.agenda-une {
  --encre: #F5F0E5; --gris: #C9C4B8; --doux: #E6E0D2; --verre: rgba(245, 240, 229, .04); --verre-filet: rgba(245, 240, 229, .2);
  --briques: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='226' height='224' fill='%23F5F0E5'%3E%3Cpath d='M165 0h57v28h-57zM80 28h57v28h-57zM221 56h57v28h-57zM-5 56h57v28h-57zM136 84h57v28h-57zM51 112h57v28h-57zM192 140h57v28h-57zM-34 140h57v28h-57zM107 168h57v28h-57zM22 196h57v28h-57z'/%3E%3C/svg%3E");
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr); overflow: hidden; background: #0A0A0A; color: var(--encre); isolation: isolate;
}
.agenda-une-contenu { min-width: 0; display: flex; flex-direction: column; justify-content: space-between; gap: clamp(32px, 3.5vw, 48px); padding-top: 22px; padding-bottom: clamp(36px, 4.5vw, 64px); }
.agenda-une .ligne-haut { color: var(--gris); }
.agenda-une .ligne-haut a:hover { color: var(--encre); }
.agenda-une-texte { max-width: 1180px; }
.agenda-une-texte::before { content: ''; display: block; width: 113px; height: 28px; margin-bottom: 20px; background: var(--briques) 0 0 / 113px 112px; }
/* Titre en deux temps : l'amorce en capitales grasses, la suite en dessous, plus petite et en minuscules */
.agenda-une .grand-titre { max-width: 24ch; font-size: clamp(34px, 4.2vw, 70px); line-height: 1; letter-spacing: -.02em; text-wrap: balance; }
.agenda-une .grand-titre span { display: block; max-width: 38ch; margin-top: .3em; color: var(--gris); font-size: .56em; font-weight: 500; line-height: 1.15; letter-spacing: -.01em; text-transform: none; text-wrap: balance; }
.agenda-une .grand-titre span::first-letter { text-transform: uppercase; }
/* Les deux-points restent dans le titre (référencement, lecteurs d'écran) mais le retour à la ligne les remplace à l'écran */
.titre-une-dp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.agenda-une .intro { max-width: 720px; margin-top: 22px; padding-left: 20px; border-left: 3px solid var(--encre); color: var(--doux); font-size: clamp(15px, 1.15vw, 17px); line-height: 1.65; }
/* Accès rapides : tuiles en verre dépoli, la page en cours est pleine */
.agenda-une-raccourcis { display: grid; grid-template-columns: repeat(3, minmax(0, 150px)) minmax(0, 240px); gap: 10px; margin-top: 34px; }
.agenda-une-raccourcis a, .agenda-une-chercher { display: flex; flex-direction: column; justify-content: space-between; gap: 6px; min-height: 104px; padding: 14px 16px; background: var(--verre); border: 1px solid var(--verre-filet); color: var(--encre); font: inherit; text-align: left; cursor: pointer; transition: background .2s, border-color .2s, color .2s, transform .2s; }
.agenda-une-raccourcis a .mono { color: var(--gris); font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.agenda-une-raccourcis b { font-size: clamp(28px, 2.6vw, 38px); font-weight: 800; line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.agenda-une-raccourcis small { color: var(--gris); font: 11px var(--mono); }
.agenda-une-raccourcis a:hover { border-color: var(--encre); transform: translateY(-2px); }
.agenda-une-raccourcis a[aria-current="page"] { background: var(--encre); border-color: var(--encre); color: #0A0A0A; }
.agenda-une-raccourcis a[aria-current="page"] .mono, .agenda-une-raccourcis a[aria-current="page"] small { color: #3A3936; }
.agenda-une-chercher { flex-direction: row; align-items: center; justify-content: flex-start; gap: 16px; background: var(--encre); border-color: var(--encre); color: #0A0A0A; font-size: 18px; font-weight: 800; }
.agenda-une-chercher svg { flex: none; width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 2.2; transition: transform .2s; }
.agenda-une-chercher span { display: flex; flex-direction: column; gap: 4px; }
.agenda-une-chercher small { color: #3A3936; font: 500 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.agenda-une-chercher:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(0, 0, 0, .35); }
.agenda-une-chercher:hover svg { transform: scale(1.12) rotate(-8deg); }
.agenda-une-raccourcis a:focus-visible, .agenda-une-chercher:focus-visible { outline: 2px solid var(--encre); outline-offset: 3px; }
.agenda-une-suite { padding-top: 0; }
/* Parcours de l'agenda en tête du pied de page, au-dessus du logo (lignes Type / Région / Ville) */
/* Le pied est une colonne centrée (logo, liens, mentions) : le parcours passe avant, aligné à gauche, sur toute la largeur */
.pied .pied-explorer { order: 0; display: block; align-self: stretch; min-width: 0; margin: -16px 0 22px; padding: 0 0 40px; border-bottom: 1px solid var(--filet); font-size: inherit; text-align: left; }
.pied-explorer-titre { margin-bottom: 20px; font-size: clamp(20px, 1.8vw, 26px); font-weight: 800; letter-spacing: -.01em; text-transform: uppercase; }
.pied-explorer-titre span { color: var(--gris); font-weight: 400; text-transform: none; }
.pied .pied-explorer .parcours { gap: 10px; margin-top: 0; padding-top: 0; border-top: 0; }
.agenda-une-suite .agenda-chapo { margin-top: 28px; }
/* Le gros bouton flottant s'efface tant que celui du bandeau est à l'écran */
.agenda-fab.agenda-fab-cache { opacity: 0; transform: translateY(20px) scale(.9); pointer-events: none; }
@media (max-width: 900px) {
  .agenda-une-raccourcis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .agenda-une-chercher { grid-column: 1 / -1; min-height: 64px; }
}
@media (max-width: 560px) {
  .agenda-une-contenu { gap: 24px; }
  .agenda-une-texte::before { width: 85px; height: 21px; margin-bottom: 14px; background-size: 85px 84px; }
  .agenda-une .grand-titre { font-size: clamp(28px, 8.4vw, 42px); }
  .agenda-une .grand-titre span { font-size: .62em; }
  .agenda-une .intro { margin-top: 16px; padding-left: 14px; font-size: 14px; display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 4; }
  .agenda-une-raccourcis { gap: 8px; margin-top: 24px; }
  .agenda-une-raccourcis a { min-height: 84px; padding: 10px 12px; }
  .agenda-une-raccourcis a .mono { font-size: 10px; letter-spacing: .06em; }
}
@media print { .agenda-une { min-height: 0; background: none; color: #000; } .agenda-une-raccourcis { display: none; } }

/* Colonne de droite, Derniers articles et Les + lus : petite vignette, texte à côté */
.lateral-vignettes a { display: grid; grid-template-columns: 96px minmax(0, 1fr); align-items: start; gap: 14px; }
.lateral-vignette { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--fantome); }
.lateral-vignettes .lateral-vignette img { width: 100%; height: 100%; margin: 0; aspect-ratio: auto; object-fit: cover; }
.lateral-texte { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.lateral-vignettes .lateral-titre { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 4; }
.lateral-vignettes .lateral-cat { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Petit menu d'onglets des blocs de la colonne */
.bloc-menu { display: flex; gap: 6px; margin-top: 14px; }
.bloc-menu button { flex: 1 1 auto; min-height: 32px; padding: 6px 10px; background: none; border: 1px solid var(--filet); color: var(--gris); font: 500 12px/1.2 var(--mono); letter-spacing: .04em; text-transform: uppercase; transition: color .2s, border-color .2s, background .2s; }
.bloc-menu button:hover { color: var(--encre); border-color: var(--encre); }
.bloc-menu button[aria-selected="true"] { background: var(--accent); border-color: var(--accent); color: var(--sur-accent); font-weight: 700; }
.bloc-menu button:focus-visible { outline: 2px solid var(--encre); outline-offset: 2px; }

/* Fenêtre d'inscription à la newsletter (barre « Suivez-nous ») : crème sur noir, comme le panneau de recherche */
.newsletter-modale {
  --encre: #F5F0E5; --gris: #C9C4B8; --doux: #E6E0D2; --verre: rgba(245, 240, 229, .05); --verre-filet: rgba(245, 240, 229, .22);
  width: min(560px, calc(100% - 32px)); max-height: calc(100dvh - 32px); margin: auto; padding: clamp(24px, 4vw, 40px); overflow-y: auto; background: #0A0A0A; border: 1px solid var(--verre-filet); color: var(--encre); color-scheme: dark;
}
.newsletter-modale[open] { animation: newsletter-entree .25s cubic-bezier(.2, .7, .2, 1); }
.newsletter-modale::backdrop { background: rgba(10, 10, 10, .72); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
@keyframes newsletter-entree { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
.newsletter-fermer { position: absolute; top: 14px; right: 14px; display: grid; place-items: center; width: 42px; height: 42px; padding: 0; background: var(--verre); border: 1px solid var(--verre-filet); color: var(--encre); cursor: pointer; transition: background .2s, color .2s; }
.newsletter-fermer svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }
.newsletter-fermer:hover { background: var(--encre); color: #0A0A0A; }
.newsletter-logo { display: block; width: min(240px, 66%); height: auto; margin: 6px auto 0; }
.newsletter-titre { display: flex; flex-direction: column; align-items: center; gap: 6px; margin-top: 22px; text-align: center; }
.newsletter-titre b { font-size: clamp(26px, 4vw, 34px); font-weight: 800; line-height: 1; letter-spacing: -.02em; text-transform: uppercase; }
.newsletter-titre span { color: var(--gris); font-size: clamp(16px, 2.2vw, 19px); font-weight: 500; }
.newsletter-texte { max-width: 420px; margin: 16px auto 0; color: var(--doux); font-size: 14px; line-height: 1.65; text-align: center; }
.newsletter-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 26px; }
.newsletter-champ { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.newsletter-champ-large { grid-column: 1 / -1; }
.newsletter-champ span { color: var(--gris); font: 700 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.newsletter-champ input { width: 100%; min-height: 48px; padding: 0 14px; background: var(--verre); border: 1px solid var(--verre-filet); border-radius: 0; color: var(--encre); font: inherit; font-size: 15px; transition: border-color .2s, background .2s; }
.newsletter-champ input::placeholder { color: rgba(245, 240, 229, .4); }
.newsletter-champ input:hover { border-color: rgba(245, 240, 229, .4); }
.newsletter-champ input:focus { background: rgba(245, 240, 229, .08); border-color: var(--encre); outline: 0; }
.newsletter-champ.erreur input { border-color: #E8806A; }
.newsletter-piege { position: absolute; left: -5000px; }
.newsletter-message { grid-column: 1 / -1; margin: 2px 0 0; padding: 12px 14px; border: 1px solid; font-size: 14px; line-height: 1.5; }
.newsletter-message[data-type="erreur"] { border-color: #E8806A; color: #F2B4A6; }
.newsletter-message[data-type="succes"] { background: var(--encre); border-color: var(--encre); color: #0A0A0A; font-weight: 700; }
.newsletter-envoyer { grid-column: 1 / -1; display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; margin-top: 6px; background: var(--encre); border: 0; color: #0A0A0A; font: inherit; font-size: 16px; font-weight: 800; cursor: pointer; transition: transform .2s, box-shadow .2s, opacity .2s; }
.newsletter-envoyer:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(0, 0, 0, .5); }
.newsletter-form.inscrit .newsletter-champ, .newsletter-form.inscrit .newsletter-envoyer { display: none; }
.newsletter-mentions { grid-column: 1 / -1; margin: 0; color: var(--gris); font-size: 11px; text-align: center; }
.newsletter-modale button:focus-visible, .newsletter-modale input:focus-visible { outline: 2px solid var(--encre); outline-offset: 2px; }
@media (max-width: 560px) {
  .newsletter-form { grid-template-columns: minmax(0, 1fr); }
  .newsletter-fermer { top: 10px; right: 10px; }
}
@media (prefers-reduced-motion: reduce) { .newsletter-modale[open] { animation: none; } }

/* Recherche : badge du genre de la fiche dans les suggestions (Jeu, Matériel, Studio, Personnalité…) */
.autocomplete-badge-fiche { min-width: 74px; background: var(--encre); color: var(--fond); }
.autocomplete-badge-g4 { background: var(--accent); color: var(--sur-accent); }

/* Pages tags : liens de la fiche (Où jouer, plateformes, studios, relations reçues, liens officiels) */
.tag-relations { display: grid; gap: 12px; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--filet); }
.tag-dossier-suite > .tag-relations:first-child { margin-top: 28px; padding-top: 0; border-top: 0; }
.tag-relations-ligne { display: grid; grid-template-columns: 170px minmax(0, 1fr); align-items: start; gap: 8px 16px; }
.tag-relations-ligne > .mono { padding-top: 9px; color: var(--gris); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.tag-relations-ligne > .mono em { margin-left: 4px; font-style: normal; font-weight: 400; }
.tag-relations-ligne > div { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-relations-ligne a { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 4px 12px; border: 1px solid var(--filet); font-size: 13px; font-weight: 700; transition: border-color .2s, background .2s; }
.tag-relations-ligne a small { color: var(--gris); font: 400 11px var(--mono); }
.tag-relations-ligne a:hover { background: var(--fantome); border-color: var(--encre); }
/* Liste repliée (ludothèque, jeux d'un studio) : les liens dépliés reprennent leur place parmi les puces */
.tag-relations-ligne .tag-fiche-suite:not([hidden]) { display: contents; }
.tag-relations-ligne .tag-relations-plus { min-height: 36px; margin: 0; padding: 4px 12px; border: 1px dashed var(--filet-fort, var(--filet)); font-size: 12px; font-weight: 700; vertical-align: baseline; }
.tag-ou-jouer a { background: var(--encre); border-color: var(--encre); color: var(--fond); }
.tag-ou-jouer a small { color: inherit; opacity: .75; }
.tag-ou-jouer a:hover { background: var(--encre); color: var(--fond); filter: brightness(1.15); }
/* Images et vidéos de la fiche */
.tag-galerie { padding-top: 0; }
.tag-galerie .rubriques-tete { margin-top: 36px; }
.tag-videos { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 16px; margin-bottom: 18px; }
.tag-videos figure { margin: 0; }
.tag-video { position: relative; aspect-ratio: 16 / 9; background: #0A0A0A; }
.tag-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.tag-videos figcaption { margin-top: 6px; color: var(--gris); font-size: 12px; }
.tag-images { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 10px; }
.tag-images a { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--fantome); }
.tag-images img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.tag-images a:hover img { transform: scale(1.04); }
.tag-galerie-credits { margin-top: 10px; color: var(--gris); font-size: 11px; }
@media (max-width: 700px) {
  .tag-relations-ligne { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .tag-relations-ligne > .mono { padding-top: 0; }
}

/* Reel du week-end (agenda/_reel-weekend.php) : vidéo verticale cliquable vers /agenda/ce-week-end/, dans la colonne des fiches agenda */
.bloc-reel .reel-weekend { position: relative; display: block; width: 100%; max-width: min(100%, calc(68vh * 9 / 16)); margin-top: 16px; background: #171717; box-shadow: inset 0 0 0 1px var(--filet); }
.bloc-reel .reel-weekend-video { display: block; width: 100%; height: auto; aspect-ratio: 9 / 16; object-fit: cover; }
.bloc-reel .reel-weekend:hover .reel-weekend-video, .bloc-reel .reel-weekend:focus-visible .reel-weekend-video { filter: brightness(1.08); }
.bloc-reel .bloc-texte { margin: 12px 0 0; color: var(--gris); font-size: 12px; }

/* Jeux : plateformes, développement et édition en liens dans la carte d'identité de la tête (tag.php) */
.tag-fiche .tag-fiche-liens dd::first-letter { text-transform: none; }
.tag-fiche-liens a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: var(--gris); transition: text-decoration-color .2s, color .2s; }
.tag-fiche-liens a:hover, .tag-fiche-liens a:focus-visible { color: var(--accent-texte); text-decoration-color: currentColor; }
.tag-fiche-liens small { color: var(--gris); font: 400 11px var(--mono); white-space: nowrap; }
.tag-fiche-sep { color: var(--gris); }
.tag-fiche-plus { margin-left: 2px; padding: 1px 6px; background: none; border: 1px solid var(--filet); color: inherit; font-size: 11px; font-weight: 700; line-height: 1.4; vertical-align: 1px; cursor: pointer; transition: border-color .2s, background .2s; }
.tag-fiche-plus:hover, .tag-fiche-plus:focus-visible { border-color: currentColor; background: var(--fantome); }
.tag-dossier .tag-fiche-plus { border-color: rgba(245, 240, 229, .35); }
.tag-dossier .tag-fiche-liens a { text-decoration-color: rgba(245, 240, 229, .5); }
.tag-dossier .tag-fiche-liens a:hover, .tag-dossier .tag-fiche-liens a:focus-visible { color: #fff; text-decoration-color: currentColor; }
.tag-dossier .tag-fiche-liens small, .tag-dossier .tag-fiche-sep { color: rgba(245, 240, 229, .7); }

/* Pages tags : boutons Vidéo / Images de la tête de page et visionneuse plein écran (tag.php, tag.js) */
.tag-medias { display: flex; flex-wrap: wrap; gap: 10px; }
.tag-medias-tete { margin-top: 22px; }
.tag-media { display: inline-flex; align-items: center; gap: 14px; min-height: 64px; padding: 7px 20px 7px 7px; background: var(--fantome); border: 1px solid var(--filet); color: var(--encre); font: inherit; text-align: left; cursor: pointer; transition: border-color .2s, background .2s, transform .2s; }
.tag-media:hover, .tag-media:focus-visible { border-color: var(--encre); }
.tag-media:active { transform: translateY(1px); }
.tag-media-vignette { position: relative; flex: none; width: 88px; aspect-ratio: 16 / 9; overflow: hidden; background: #0A0A0A; }
.tag-media-vignette img { width: 100%; height: 100%; object-fit: cover; opacity: .85; transition: opacity .25s, transform .4s; }
.tag-media:hover .tag-media-vignette img, .tag-media:focus-visible .tag-media-vignette img { opacity: 1; transform: scale(1.06); }
.tag-media-icone { position: absolute; top: 50%; left: 50%; display: grid; place-items: center; width: 30px; height: 30px; background: #FF3B2E; color: #0A0A0A; transform: translate(-50%, -50%); transition: transform .2s; }
.tag-media-icone svg { width: 15px; height: 15px; fill: currentColor; }
.tag-media-icone-images { background: rgba(10, 10, 10, .78); color: #F5F0E5; }
.tag-media-icone-images svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.tag-media:hover .tag-media-icone, .tag-media:focus-visible .tag-media-icone { transform: translate(-50%, -50%) scale(1.12); }
.tag-media-texte { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.tag-media-texte b { font-size: 14px; font-weight: 800; line-height: 1.2; letter-spacing: -.01em; text-transform: uppercase; }
.tag-media-texte small { color: var(--gris); font-size: 11px; }
/* Sur l'image de fond de la tête : verre sombre, comme les tuiles de la carte d'identité */
.tag-dossier .tag-media { background: rgba(16, 16, 16, .5); border-color: rgba(245, 240, 229, .22); color: #F5F0E5; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.tag-dossier .tag-media:hover, .tag-dossier .tag-media:focus-visible { background: rgba(16, 16, 16, .72); border-color: #F5F0E5; }
.tag-dossier .tag-media-texte small { color: rgba(245, 240, 229, .7); }
@media (max-width: 760px) {
  .tag-medias { width: 100%; }
  .tag-media { flex: 1 1 100%; }
}

.tag-visionneuse {
  --encre: #F5F0E5; --gris: #A7A29A; --verre: rgba(245, 240, 229, .06); --verre-filet: rgba(245, 240, 229, .22);
  width: min(1240px, calc(100% - 32px)); max-width: none; max-height: calc(100dvh - 32px); margin: auto; padding: 0; overflow: hidden; background: #0A0A0A; border: 1px solid var(--verre-filet); color: var(--encre); color-scheme: dark;
}
.tag-visionneuse:focus { outline: none; }
.tag-visionneuse[open] { display: flex; flex-direction: column; animation: newsletter-entree .25s cubic-bezier(.2, .7, .2, 1); }
.tag-visionneuse::backdrop { background: rgba(10, 10, 10, .86); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
html.tv-ouverte { overflow: hidden; }
.tv-tete { display: flex; align-items: center; gap: 16px; padding: 12px 12px 12px 20px; border-bottom: 1px solid var(--verre-filet); }
.tv-titre { flex: 1; min-width: 0; overflow: hidden; font-size: 14px; font-weight: 800; letter-spacing: -.01em; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.tv-compteur { flex: none; color: var(--gris); }
.tv-fermer, .tv-nav { display: grid; place-items: center; flex: none; padding: 0; background: var(--verre); border: 1px solid var(--verre-filet); color: var(--encre); cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.tv-fermer { width: 42px; height: 42px; }
.tv-fermer svg, .tv-nav svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; }
.tv-fermer:hover, .tv-nav:hover { background: var(--encre); color: #0A0A0A; }
.tv-fermer:focus-visible, .tv-nav:focus-visible, .tv-vignettes button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.tv-scene { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; min-height: 0; flex: 1 1 auto; padding: 16px; }
.tv-nav { width: 48px; height: 64px; }
.tv-nav[hidden] { display: none; }
.tv-scene:has(.tv-nav[hidden]) { grid-template-columns: minmax(0, 1fr); }
.tv-cadre { display: grid; place-items: center; min-width: 0; min-height: 0; }
.tv-cadre img { display: block; max-width: 100%; max-height: calc(100dvh - 250px); width: auto; height: auto; object-fit: contain; user-select: none; touch-action: pan-y; }
.tag-visionneuse[data-mode="videos"] .tv-cadre { width: 100%; }
.tv-cadre iframe { display: block; width: min(100%, calc((100dvh - 250px) * 16 / 9)); aspect-ratio: 16 / 9; border: 0; background: #000; }
.tv-legende { padding: 0 20px 10px; color: var(--gris); font-size: 11px; text-align: center; }
.tv-vignettes { display: flex; gap: 8px; padding: 12px 16px 16px; overflow-x: auto; border-top: 1px solid var(--verre-filet); scrollbar-width: thin; scrollbar-color: var(--verre-filet) transparent; }
.tv-vignettes[hidden] { display: none; }
.tv-vignettes button { position: relative; flex: none; width: 104px; aspect-ratio: 16 / 9; padding: 0; overflow: hidden; background: #171717; border: 1px solid transparent; cursor: pointer; opacity: .5; transition: opacity .2s, border-color .2s; }
.tv-vignettes button:hover { opacity: .85; }
.tv-vignettes button[aria-current="true"] { border-color: var(--accent); opacity: 1; }
.tv-vignettes img { width: 100%; height: 100%; object-fit: cover; }
.tv-vignettes .tag-media-icone { width: 24px; height: 24px; }
.tv-vignettes .tag-media-icone svg { width: 12px; height: 12px; }
@media (max-width: 760px) {
  .tag-visionneuse { width: 100%; max-height: 100dvh; height: 100dvh; border: 0; }
  .tv-scene { grid-template-columns: minmax(0, 1fr); padding: 10px 0; }
  .tv-nav { position: absolute; top: 50%; z-index: 1; width: 40px; height: 56px; background: rgba(10, 10, 10, .6); transform: translateY(-50%); }
  .tv-precedent { left: 6px; }
  .tv-suivant { right: 6px; }
  .tv-cadre img { max-height: calc(100dvh - 210px); }
  .tv-cadre iframe { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .tag-visionneuse[open] { animation: none; }
  .tag-media, .tag-media-vignette img, .tag-media-icone { transition: none; }
}

/* Publier un événement (/contact/contact-agenda.html) : recherche d'une fiche existante, puis formulaire */
.ca { --ca-erreur: #C8432B; }
html[data-theme="dark"] .ca { --ca-erreur: #F2917C; }
.ca > * { max-width: 920px; }
.event-form-error { margin-bottom: 32px; padding: 16px 20px; border: 1px solid var(--ca-erreur); border-left-width: 4px; color: var(--lecture); font-size: 14px; line-height: 1.6; }
.event-form-error strong { color: var(--ca-erreur); }
.event-check-kicker { display: block; color: var(--gris); font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.event-check-title { margin-top: 10px; font-size: clamp(24px, 2.6vw, 34px); font-weight: 800; line-height: 1.1; letter-spacing: -.03em; }
.event-check-intro { max-width: 70ch; margin-top: 14px; color: var(--doux); font-size: 15px; line-height: 1.65; }
.event-check-search { display: flex; align-items: center; gap: 12px; margin-top: 26px; padding: 0 16px; background: var(--fantome); border: 1px solid var(--filet); transition: border-color .2s; }
.event-check-search:focus-within { border-color: var(--encre); }
.event-check-search svg { flex: none; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; color: var(--gris); }
.event-check-search input { flex: 1; min-width: 0; min-height: 58px; padding: 0; background: none; border: 0; color: var(--encre); font: inherit; font-size: 17px; outline: 0; }
.event-check-status { min-height: 20px; margin-top: 14px; color: var(--gris); font-size: 12px; }
.event-check-results { margin-top: 10px; border-top: 1px solid var(--filet); }
.event-check-results:empty { border-top: 0; }
.event-check-results li { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; align-items: center; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--filet); }
.event-check-results img, .event-check-vide { width: 72px; height: 72px; object-fit: cover; background: var(--fantome); filter: var(--filtre-image); }
.event-check-info { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.event-check-info a { font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; }
.event-check-info a:hover { text-decoration: underline; text-underline-offset: 3px; }
.event-check-meta { color: var(--doux); font-size: 13px; }
.event-check-meta .rub { font-weight: 700; }
.event-check-date { color: var(--encre); font-size: 12px; }
.event-check-date.passe { color: var(--gris); }
.event-check-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; padding: 0 16px; background: none; border: 1px solid var(--filet-fort); color: var(--encre); font: inherit; font-size: 13px; font-weight: 700; white-space: nowrap; cursor: pointer; transition: background .2s, color .2s; }
.event-check-btn:hover, .event-check-btn-plein { background: var(--accent); border-color: var(--accent); color: var(--sur-accent); }
.event-check-btn-plein:hover { filter: brightness(1.15); }
.event-check-create { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--filet); color: var(--doux); font-size: 14px; }

.event-maj-card { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 16px; margin-top: 24px; padding: 14px; background: var(--fantome); border: 1px solid var(--filet); }
.event-maj-card[hidden], .event-maj-card img[hidden] { display: none; }
.event-maj-card img { width: 72px; height: 72px; object-fit: cover; filter: var(--filtre-image); }
.event-maj-label { color: var(--gris); font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.event-mode-change { margin-top: 18px; padding: 0; background: none; border: 0; border-bottom: 1px solid var(--filet-fort); color: var(--encre); font: inherit; font-size: 13px; cursor: pointer; }
.event-mode-change[hidden] { display: none; }

/* Progression : apparaît dès la première saisie, reste visible sous l'en-tête pendant le formulaire */
.event-form-progress-wrapper { position: sticky; top: 66px; z-index: 5; display: none; align-items: center; gap: 14px; margin-top: 30px; padding: 12px 0; background: var(--fond); border-bottom: 1px solid var(--filet); }
.event-form-progress-wrapper.visible { display: flex; }
.event-form-progress { flex: 1; height: 6px; background: var(--fantome); overflow: hidden; }
.event-form-progress-fill { width: 0; height: 100%; background: var(--encre); transition: width .3s; }
.event-form-progress-text { min-width: 42px; font-size: 12px; font-weight: 700; text-align: right; }

.event-form-section { margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--filet); }
.event-form-section-title { margin-bottom: 20px; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.event-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-bottom: 20px; }
.event-form-grid.grid-event-title { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.event-form-group { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.event-form-group > label { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 13px; font-weight: 700; }
.event-form-group .required { color: var(--gris); }
.ca input[type="text"], .ca input[type="email"], .ca input[type="date"], .ca input[type="url"], .ca select, .ca textarea {
  width: 100%; min-height: 48px; padding: 11px 14px; background: var(--fond); border: 1px solid var(--filet); border-radius: 0; color: var(--encre); font: inherit; font-size: 15px; transition: border-color .2s;
}
.ca textarea { min-height: 110px; resize: vertical; line-height: 1.55; }
.ca input:focus, .ca select:focus, .ca textarea:focus { border-color: var(--encre); outline: 0; }
.ca input::placeholder, .ca textarea::placeholder { color: var(--gris); opacity: .8; }
.ca .valid { border-color: var(--filet-fort); }
.ca .invalid { border-color: var(--ca-erreur); }
.event-form-help, .event-maj-only { color: var(--gris); font-size: 12px; line-height: 1.5; }
.event-maj-only { display: none; }
.mode-maj .event-maj-only { display: block; }

/* Éditeur de description */
.editor-container { border: 1px solid var(--filet); transition: border-color .2s; }
.editor-container:focus-within { border-color: var(--encre); }
.editor-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 8px; background: var(--fantome); border-bottom: 1px solid var(--filet); }
.editor-toolbar button { min-width: 36px; min-height: 34px; padding: 0 10px; background: var(--fond); border: 1px solid var(--filet); color: var(--encre); font: inherit; font-size: 13px; cursor: pointer; }
.editor-toolbar button:hover { border-color: var(--encre); }
.editor-toolbar .separator { width: 1px; height: 22px; margin: 0 4px; background: var(--filet); }
.editor-content { min-height: 200px; padding: 14px; color: var(--lecture); font-size: 15px; line-height: 1.65; outline: 0; }
.editor-content:empty::before { content: attr(data-placeholder); color: var(--gris); }
.editor-content ul { padding-left: 22px; list-style: disc; }
.editor-content a { text-decoration: underline; }

/* Image */
.event-form-file-upload { position: relative; }
.event-form-file-upload input[type="file"] { position: absolute; width: 1px; height: 1px; opacity: 0; }
.event-form-file-label { display: block; padding: 28px 20px; border: 1px dashed var(--filet-fort); color: var(--encre); font-size: 14px; font-weight: 700; line-height: 1.6; text-align: center; cursor: pointer; transition: background .2s; }
.event-form-file-label small { color: var(--gris); font-size: 12px; font-weight: 400; }
.event-form-file-label:hover, .event-form-file-label.choisi { background: var(--fantome); }
.event-form-file-label.choisi { border-style: solid; }
.event-form-file-upload input:focus-visible + .event-form-file-label { outline: 2px solid var(--encre); outline-offset: 2px; }
.event-form-social-links { margin-top: 20px; }

/* Mise à jour : champs modifiés */
.event-mod-badge { display: none; padding: 2px 6px; background: var(--encre); color: var(--fond); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.is-modified .event-mod-badge { display: inline-block; }
.is-modified input, .is-modified select, .is-modified textarea, .is-modified .editor-container { border-color: var(--encre); box-shadow: inset 3px 0 0 var(--encre); }
.event-maj-summary { margin-top: 28px; padding: 14px 18px; background: var(--fantome); border-left: 3px solid var(--encre); font-size: 14px; line-height: 1.6; }
.event-maj-summary[hidden] { display: none; }

.event-form-submit { width: 100%; min-height: 60px; margin-top: 28px; background: var(--accent); border: 0; color: var(--sur-accent); font: inherit; font-size: 16px; font-weight: 800; cursor: pointer; transition: filter .2s, opacity .2s; }
.event-form-submit:hover:not(:disabled) { filter: brightness(1.15); }
.event-form-submit:disabled { opacity: .35; cursor: not-allowed; }

.event-form-success { padding: clamp(24px, 4vw, 40px); border: 1px solid var(--filet-fort); }
.event-form-success h2 { font-size: clamp(24px, 2.6vw, 34px); font-weight: 800; line-height: 1.1; letter-spacing: -.03em; }
.event-form-success p { margin-top: 14px; color: var(--doux); font-size: 15px; line-height: 1.65; }
.event-form-success .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 26px; }

@media (max-width: 700px) {
  .event-form-grid, .event-form-grid.grid-event-title { grid-template-columns: minmax(0, 1fr); }
  .event-check-results li { grid-template-columns: 56px minmax(0, 1fr); }
  .event-check-results img, .event-check-vide { width: 56px; height: 56px; }
  .event-check-results .event-check-btn { grid-column: 1 / -1; }
  .event-maj-card { grid-template-columns: minmax(0, 1fr); }
  .event-maj-card img { display: none; }
}

/* Page Jeux (/jeux/) : champ de recherche dans les filtres, grille de jaquettes */
.tag-filtres .filtre-recherche { flex: 1 1 100%; }
.tag-filtres .filtre-recherche input { width: 100%; min-height: 44px; padding: 0 10px; background: var(--fond); border: 1px solid var(--filet-fort); border-radius: 0; color: var(--encre); font: inherit; font-size: 14px; }
.tag-une .tag-filtres .filtre-recherche input { min-height: 34px; padding: 0; background: transparent; border: 0; font-size: 16px; font-weight: 700; outline: 0; }
.tag-une .tag-filtres .filtre-recherche input::placeholder { color: var(--gris); font-weight: 400; }
.jeux-compte { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 20px; margin-bottom: 22px; color: var(--gris); font-size: 12px; }
.jeux-compte a { color: var(--encre); border-bottom: 1px solid var(--filet-fort); }
.jeux-vide { color: var(--doux); }
.jeux-vide a { text-decoration: underline; text-underline-offset: 3px; }
.jeux-grille { grid-template-columns: repeat(auto-fill, minmax(min(190px, 100%), 1fr)); }
.jeu .actu-image { aspect-ratio: 3 / 4; background: var(--scene-fond); }
.jeu .actu-image img { padding: 10px; object-fit: contain; }
.jeu .actu-corps { gap: 8px; padding: 14px 16px 16px; }
.jeu h3 { font-size: 16px; }
.jeu-sans-image { position: absolute; inset: 0; display: grid; place-items: center; color: var(--filet); font-size: 64px; font-weight: 800; }

/* Bouton Jeux de l'en-tête, à côté d'Agenda : masqué sur petit écran, où le menu le propose */
@media (max-width: 560px) {
  .entete-actions .bouton-jeux { display: none; }
}
