/* Belmont-Bouge — feuille de style commune
   Palette : vert-noir « encre », papier légèrement verdi, jaune ocre des affiches. */
:root {
  --bg: #eef0ec;
  --papier: #fbfcf9;
  --encre: #1d2421;
  --doux: #5d6862;
  --trait: #d3d8d2;
  --accent: #d8a213;
  --accent-encre: #1d2421;
  --puce: #e3e7e1;
  --ok: #2e7d4f;
  --attention: #a86b00;
  --danger: #b3261e;
  --police: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --rayon: 8px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #151a18; --papier: #1e2522; --encre: #e8ece8; --doux: #9aa59f; --trait: #323b37;
    --accent: #e9b631; --accent-encre: #151a18; --puce: #29312d;
    --ok: #6fcf97; --attention: #f2c14e; --danger: #ff8a80;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--encre); font: 16px/1.5 var(--police); }
a { color: inherit; text-underline-offset: 3px; }
img { max-width: 100%; height: auto; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* --- En-tête --- */
/* Même couleur que le fond de assets/logo.png, pour que le logo se fonde dans le bandeau */
.topbar { background: #045ca9; color: #fff; }
.topbar-in { max-width: 1100px; margin: 0 auto; padding: 12px max(16px, env(safe-area-inset-left)); display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; }
.logo { font-weight: 800; font-size: 1.35rem; letter-spacing: -.02em; text-decoration: none; }
.logo span { color: var(--accent); }
.logo img { display: block; height: 56px; width: auto; max-width: 100%; }
.zone-label { font-size: .85rem; opacity: .8; }
.topbar nav { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-left: auto; }
.topbar nav a { text-decoration: none; font-size: .95rem; padding: 4px 0; border-bottom: 2px solid transparent; }
.topbar nav a:hover, .topbar nav a[aria-current="page"] { border-bottom-color: var(--accent); }

.page { max-width: 1100px; margin: 0 auto; padding: 24px max(16px, env(safe-area-inset-left)) 64px; }
h1 { font-size: clamp(1.6rem, 4vw, 2.2rem); line-height: 1.15; margin: 0 0 20px; letter-spacing: -.01em; text-wrap: balance; }
h2 { font-size: 1.25rem; margin: 32px 0 12px; }
.pied { color: var(--doux); font-size: .85rem; border-top: 1px solid var(--trait); }
.pied-in { max-width: 1100px; margin: 0 auto; padding: 16px max(16px, env(safe-area-inset-left)); }

/* --- Messages --- */
.flash { padding: 10px 14px; border-radius: var(--rayon); background: var(--puce); margin: 0 0 16px; }
.flash-ok { border-left: 4px solid var(--ok); }
.flash-err { border-left: 4px solid var(--danger); }
.flash-info { border-left: 4px solid var(--accent); }
.erreur { color: var(--danger); font-size: .9rem; margin: 4px 0 0; }
.aide { color: var(--doux); font-size: .92rem; margin: 0 0 12px; }

/* --- Boutons --- */
.btn { display: inline-block; border: 0; border-radius: 6px; padding: 10px 18px; font: inherit; font-weight: 700; cursor: pointer; background: var(--encre); color: var(--papier); text-decoration: none; }
.btn-accent { background: var(--accent); color: var(--accent-encre); }
.btn-sec { background: transparent; color: var(--encre); border: 1px solid var(--trait); font-weight: 600; }
.btn-petit { padding: 5px 10px; font-size: .88rem; }
.btn-danger { background: var(--danger); color: #fff; }
.lien { background: none; border: 0; padding: 0; font: inherit; color: var(--encre); text-decoration: underline; cursor: pointer; }
.lien.danger { color: var(--danger); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 20px; }

/* --- Formulaires --- */
fieldset { border: 1px solid var(--trait); border-radius: var(--rayon); background: var(--papier); padding: 16px 20px 20px; margin: 0 0 20px; min-width: 0; }
legend { font-weight: 800; padding: 0 6px; }
.grille { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.sous-grille { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.plein { grid-column: 1 / -1; }
.champ { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.champ > span, .cases > legend { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; color: var(--doux); }
.cases { border: 0; padding: 0; margin: 0; background: none; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.cases > legend { padding: 0; margin-bottom: 6px; width: 100%; }
input[type=text], input[type=email], input[type=tel], input[type=date], input[type=time], input[type=url], input[type=password], input[type=search], input[type=color], select, textarea {
  font: inherit; color: var(--encre); background: var(--bg); border: 1px solid var(--trait); border-radius: 6px; padding: 8px 10px; width: 100%; min-width: 0;
}
input[type=color] { padding: 2px; height: 40px; width: 56px; }
textarea { resize: vertical; }
.case { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.case input { width: 18px; height: 18px; accent-color: var(--encre); }
.vignette { max-width: 180px; border-radius: 6px; border: 1px solid var(--trait); display: block; margin-bottom: 6px; }
small { color: var(--doux); }

.dates { display: flex; flex-direction: column; gap: 10px; }
.date-ligne { display: grid; grid-template-columns: 150px 100px 100px minmax(0, 1fr) minmax(0, 1fr) auto auto; gap: 10px; align-items: end; padding: 12px; background: var(--bg); border-radius: 6px; }
.date-ligne .champ.large input + input, .date-ligne select + input { margin-top: 4px; }
.date-ligne .case { padding-bottom: 8px; }
.date-ligne [data-suppr-date] { padding-bottom: 10px; }
.generateur { margin: 0 0 14px; padding: 10px 12px; border: 1px dashed var(--trait); border-radius: 6px; }
.generateur summary { cursor: pointer; font-weight: 600; }
.generateur-champs { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin-top: 10px; }
.programme-plus summary { cursor: pointer; padding: 10px 14px; color: var(--doux); }
.actions-dates { display: flex; gap: 10px; flex-wrap: wrap; margin: 12px 0 0; }

@media (max-width: 900px) {
  .date-ligne { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .date-ligne .large { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .grille, .sous-grille { grid-template-columns: 1fr; }
  .date-ligne { grid-template-columns: 1fr 1fr; }
  .date-ligne .champ:first-child { grid-column: 1 / -1; }
}

/* --- Tableaux --- */
.tableau-wrap { overflow-x: auto; background: var(--papier); border: 1px solid var(--trait); border-radius: var(--rayon); }
table { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--trait); vertical-align: top; }
th { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--doux); white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
td.nowrap { white-space: nowrap; }
.inactif td { opacity: .55; }

.statut { display: inline-block; font-size: .78rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--puce); white-space: nowrap; }
.statut-attente { background: var(--accent); color: var(--accent-encre); }
.statut-publiee { color: var(--ok); }
.statut-brouillon { color: var(--doux); font-style: italic; }
.statut-refusee, .statut-masquee { color: var(--doux); text-decoration: line-through; }
.pastille { display: inline-block; font-size: .78rem; font-weight: 700; padding: 1px 8px; border-radius: 4px; background: var(--puce); border-left: 4px solid var(--c, var(--trait)); }

/* --- Barres de filtres --- */
.filtres { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; background: var(--papier); border: 1px solid var(--trait); border-radius: var(--rayon); padding: 14px; margin-bottom: 16px; }
.filtres .champ { flex: 1 1 160px; }
.filtres .cases { flex: 1 1 100%; }

/* --- Tableau de bord --- */
.tuiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin-bottom: 24px; }
.tuile { background: var(--papier); border: 1px solid var(--trait); border-radius: var(--rayon); padding: 16px; text-decoration: none; display: block; }
.tuile b { display: block; font-size: 2rem; line-height: 1.1; font-variant-numeric: tabular-nums; }
.tuile.alerte { border-color: var(--accent); box-shadow: inset 4px 0 0 var(--accent); }

.carte { background: var(--papier); border: 1px solid var(--trait); border-radius: var(--rayon); padding: 16px 20px; margin-bottom: 12px; }
.carte h3 { margin: 0 0 4px; font-size: 1.1rem; }
.meta { color: var(--doux); font-size: .92rem; display: flex; flex-wrap: wrap; gap: 4px 14px; }
.confirm { display: inline-flex; flex-wrap: wrap; gap: 8px; align-items: center; }

.connexion { max-width: 420px; }
.secret { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 1.2rem; background: var(--puce); padding: 8px 12px; border-radius: 6px; display: inline-block; user-select: all; }

/* --- Agenda public (version simple) --- */
.mois { font-size: .95rem; text-transform: uppercase; letter-spacing: .12em; color: var(--doux); border-bottom: 1px solid var(--trait); padding-bottom: 6px; margin: 28px 0 12px; }
/* Filtres de l'agenda : rangées de boutons (village, type) + « Plus de filtres » */
.filtres-agenda { margin: 0 0 8px; }
.plus-filtres { margin: 4px 0 10px; }
.plus-filtres summary { cursor: pointer; font-weight: 600; display: inline-block; padding: 4px 0; }
.plus-filtres-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; background: var(--papier); border: 1px solid var(--trait); border-radius: var(--rayon); padding: 14px; margin-top: 8px; }
.plus-filtres-form .champ { flex: 1 1 180px; }
.filtres-resume { color: var(--doux); font-size: .92rem; margin: 0; }
/* Sélecteurs à pastille : Village et Type */
.selecteurs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; max-width: 560px; margin-bottom: 8px; }
.pastille-regulier { --c: var(--accent); font-weight: 600; }
.pastille-ronde { flex: none; width: 14px; height: 14px; border-radius: 50%; background: var(--lisere, var(--c, var(--trait))); }
.selecteur { position: relative; }
.selecteur summary { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 32px 8px 12px; background: var(--papier); border: 1px solid var(--trait); border-radius: 6px; cursor: pointer; list-style: none; position: relative; }
.selecteur summary::-webkit-details-marker { display: none; }
.selecteur summary::after { content: ""; position: absolute; right: 13px; top: 50%; width: 7px; height: 7px; margin-top: -6px; border-right: 2px solid var(--doux); border-bottom: 2px solid var(--doux); transform: rotate(45deg); }
.selecteur[open] summary::after { margin-top: -2px; transform: rotate(225deg); }
.selecteur summary span, .selecteur-liste span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.selecteur.filtre-actif summary { border-color: var(--encre); box-shadow: inset 0 0 0 1px var(--encre); font-weight: 700; }
.selecteur-liste { position: absolute; z-index: 20; top: calc(100% + 4px); left: 0; right: 0; min-width: 220px; max-height: 60vh; overflow-y: auto; background: var(--papier); border: 1px solid var(--trait); border-radius: 6px; box-shadow: 0 6px 20px rgba(0, 0, 0, .18); }
.selecteurs .champ:last-child .selecteur-liste { left: auto; }
.selecteur-liste a { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 12px; text-decoration: none; border-bottom: 1px solid var(--trait); }
.selecteur-liste a:last-child { border-bottom: 0; }
.selecteur-liste a[aria-current] { font-weight: 700; background: var(--puce); }
.plus-filtres summary { min-height: 44px; display: flex; align-items: center; }

/* Calendrier du mois : les panneaux glissent du doigt (défilement natif, aimanté sur chaque mois) */
.calendrier { background: var(--papier); border: 1px solid var(--trait); border-radius: var(--rayon); margin: 8px 0 20px; }
.cal-mois { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.cal-mois::-webkit-scrollbar { display: none; }
.cal-panneau { flex: 0 0 100%; min-width: 0; scroll-snap-align: start; scroll-snap-stop: always; padding: 10px 12px 12px; }
.cal-tete { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 40px; }
.cal-tete h2 { flex: 1; margin: 0; font-size: 1.05rem; text-align: center; }
.cal-fleche { width: 40px; height: 40px; border: 1px solid var(--trait); border-radius: 6px; background: transparent; color: var(--encre); font-size: 1.3rem; line-height: 1; cursor: pointer; }
.cal-fleche:disabled { opacity: .3; cursor: default; }
.cal-grille { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; margin-top: 6px; }
.cal-jsem { text-align: center; font-size: .75rem; font-weight: 700; color: var(--doux); padding: 2px 0; }
.cal-jour { display: flex; flex-direction: column; align-items: center; gap: 2px; min-height: 48px; padding: 5px 0 3px; border-radius: 6px; text-decoration: none; font-variant-numeric: tabular-nums; color: var(--doux); }
a.cal-jour { color: var(--encre); font-weight: 700; background: var(--puce); }
a.cal-jour:hover { outline: 1px solid var(--doux); }
.cal-passe { opacity: .45; }
.cal-auj { box-shadow: inset 0 0 0 2px var(--accent); }
a.cal-choisi { background: var(--encre); color: var(--papier); }
.cal-points { display: flex; gap: 2px; }
.cal-points i { width: 7px; height: 7px; border-radius: 50%; background: var(--c, var(--accent)); }
a.cal-choisi .cal-points i { box-shadow: 0 0 0 1px var(--papier); }
.cal-resume { margin: 0 0 12px; scroll-margin-top: 12px; }

/* Carte : bande de date colorée (couleur du type) | texte | image */
.ev { display: grid; grid-template-columns: 72px minmax(0, 1fr) 140px; gap: 16px; padding: 0; overflow: hidden; }
.ev-corps { padding: 14px 0; display: flex; flex-direction: column; }
/* Le type reste en bas à gauche de la carte, quelle que soit sa hauteur */
.ev-lieu { flex-basis: 100%; }
.ev-bas { margin-top: auto; padding-top: 6px; align-items: center; }
/* Titre à gauche, village en haut à droite (à gauche de l'image) */
.ev-tete { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.ev-tete h3 { min-width: 0; }
.ev-village { flex: none; }
.bande { display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 10px 0; background: var(--accent); color: var(--accent-encre); font-variant-numeric: tabular-nums; line-height: 1.2; }
.bande-type { background: var(--c); color: #fff; }
.bande-jour { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.bande-date { font-size: 1.7rem; font-weight: 800; }
.bande-heure { font-size: .82rem; margin-top: 2px; white-space: nowrap; }
.bande-fin { margin-top: 0; }
.ev { position: relative; scroll-margin-top: 16px; }
.ev:hover { border-color: var(--doux); }
.ev:target { box-shadow: 0 0 0 3px var(--accent); }
.ev-lien { text-decoration: none; }
/* Ordinateur : « 1 sur 2 » en bas à droite du texte, contre l'image (colonne de 140 px + 16 px d'écart) */
@media (min-width: 1025px) {
  .ev-rang { position: absolute; right: 156px; bottom: 15px; font-size: .78rem; font-weight: 400; opacity: .7; pointer-events: none; }
}
.ev-lien::after { content: ""; position: absolute; inset: 0; border-radius: var(--rayon); } /* toute la carte est cliquable */
.ev-lien:hover { text-decoration: underline; }
/* Image collée au bord droit, sur toute la hauteur de la carte (recadrée) */
.ev-image { align-self: stretch; width: 100%; height: 100%; min-height: 100%; object-fit: cover; background: var(--papier); border-left: 1px solid var(--trait); }
/* Complet : grand bandeau gris, de biais, à cheval entre le texte et l'image (la carte reste cliquable) */
.ev-complet { position: absolute; top: 50%; right: 140px; z-index: 1; transform: translate(50%, -50%) rotate(-12deg);
  padding: 6px 22px; border: 3px solid var(--papier); border-radius: 6px; background: var(--doux); color: var(--papier);
  font-size: 1.15rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .25); pointer-events: none; }
.pastille-complet { display: inline-block; padding: 2px 10px; border-radius: 4px; background: var(--doux); color: var(--papier);
  font-size: .8rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
@media (max-width: 640px) {
  .ev { grid-template-columns: 60px minmax(0, 1fr) 84px; gap: 12px; }
  .ev-complet { right: 84px; padding: 4px 14px; font-size: .95rem; }
  /* Le type passe sous le public et l'accès, tout en bas */
  .ev-bas { flex-direction: column-reverse; align-items: flex-start; gap: 4px; }
  /* Trop étroit pour deux colonnes : le village passe sous le titre */
  .ev-tete { display: block; }
  .ev-village { display: block; margin-bottom: 4px; }
  .bande-date { font-size: 1.5rem; }
}

/* --- Fiche manifestation --- */
.retour { margin: 0 0 8px; }
.retour a { color: var(--doux); }
.retour-bas { margin-top: 32px; }
.retour-bas a { color: var(--encre); }
.fiche { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
.fiche-tete { margin-bottom: 16px; align-items: center; }
.fiche-image-lien { display: inline-block; max-width: 100%; cursor: zoom-in; }
.fiche-image { display: block; max-height: 420px; width: auto; max-width: 100%; border-radius: var(--rayon); border: 1px solid var(--trait); background: var(--papier); margin-bottom: 8px; }
.fiche h2 { font-size: 1.1rem; margin: 24px 0 8px; }
.programme { list-style: none; padding: 0; margin: 0; border: 1px solid var(--trait); border-radius: var(--rayon); background: var(--papier); }
.programme li { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: baseline; padding: 10px 14px; border-bottom: 1px solid var(--trait); color: var(--doux); }
.programme li:last-child { border-bottom: 0; }
.programme-date { font-weight: 700; color: var(--encre); }
.programme-date::first-letter { text-transform: uppercase; }
.programme-note { color: var(--encre); }
.programme .choisie { box-shadow: inset 4px 0 0 var(--accent); background: var(--puce); }
.programme .passee { opacity: .6; }
.fiche-texte { margin-top: 20px; max-width: 65ch; }
.fiche-infos { background: var(--papier); border: 1px solid var(--trait); border-radius: var(--rayon); padding: 16px 18px; }
.fiche-infos dl { margin: 0; }
.fiche-infos dt { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--doux); margin-top: 12px; }
.fiche-infos dt:first-child { margin-top: 0; }
.fiche-infos dd { margin: 2px 0 0; overflow-wrap: anywhere; }
.fiche-infos .contact + .contact { margin-top: 8px; }
.fiche-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--trait); }
.fiche-actions .btn { text-align: center; }
.partage { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: .92rem; color: var(--doux); }
.partage a { color: var(--encre); }
@media (max-width: 760px) {
  .fiche { grid-template-columns: 1fr; }
}

/* « Fait partie de » / « Autour de cette manifestation » */
.lien-parent { color: var(--doux); font-style: italic; }
p.lien-parent { margin: -8px 0 16px; }
.lien-parent a { color: var(--encre); font-weight: 600; }
.enfants { list-style: none; padding: 0; margin: 0; border: 1px solid var(--trait); border-radius: var(--rayon); background: var(--papier); }
.enfants li { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: baseline; padding: 10px 14px; border-bottom: 1px solid var(--trait); }
.enfants li:last-child { border-bottom: 0; }
.enfants a { font-weight: 700; }
.enfants span { color: var(--doux); font-size: .92rem; }

/* --- Page « L'Association » --- */
.asso { max-width: 760px; }
.asso h2 { font-size: 1.15rem; margin: 32px 0 10px; }
.asso-texte p, .asso-texte ul { margin: 0 0 12px; }
.asso-texte ul { padding-left: 1.2em; }
.comite { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.comite li { background: var(--papier); border: 1px solid var(--trait); border-radius: var(--rayon); padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; }
.comite li span { color: var(--doux); font-size: .92rem; overflow-wrap: anywhere; }

/* --- Impression --- */
@media print {
  .topbar, .pied, .filtres, .no-print, .actions { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .page { padding: 0; max-width: none; }
  .tableau-wrap { border: 0; overflow: visible; }
  th, td { padding: 4px 6px; border-bottom: 1px solid #999; }
  tr { break-inside: avoid; }
}

/* Statistiques (console) : une série, une couleur ; le détail est dans les tableaux */
.stats-periodes { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.stats-graphe { --barre: #045ca9; position: relative; margin: 0 0 24px; padding: 22px 14px 10px; background: var(--papier); border: 1px solid var(--trait); border-radius: var(--rayon); }
.stats-max { position: absolute; top: 4px; left: 14px; font-size: .75rem; color: var(--doux); font-variant-numeric: tabular-nums; }
.stats-barres { display: flex; align-items: flex-end; gap: 2px; height: 160px; border-bottom: 1px solid var(--trait); }
.stats-barre { flex: 1; height: 100%; display: flex; align-items: flex-end; cursor: default; }
.stats-barre i { display: block; width: 100%; max-width: 28px; margin: 0 auto; height: var(--h); min-height: 1px; background: var(--barre); border-radius: 4px 4px 0 0; }
.stats-barre:hover i { opacity: .75; }
.stats-graphe figcaption { display: flex; justify-content: space-between; font-size: .75rem; color: var(--doux); margin-top: 6px; }
.stats-colonnes { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 0 20px; }
td.num, th.num { text-align: right; }
@media (prefers-color-scheme: dark) { .stats-graphe { --barre: #6ea8e8; } }

/* Onglets de période (console : liste des manifestations) */
.onglets { display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 12px; border-bottom: 1px solid var(--trait); }
.onglets a { padding: 8px 14px; text-decoration: none; color: var(--doux); border-bottom: 3px solid transparent; margin-bottom: -1px; font-weight: 600; }
.onglets a[aria-current] { color: var(--encre); border-bottom-color: var(--accent); }
.onglets small { font-weight: 400; }

/* Fiche : encadré « L'organisateur » (photo, logo, présentation de la société) */
.organisateur { margin-top: 28px; background: var(--papier); border: 1px solid var(--trait); border-radius: var(--rayon); overflow: hidden; }
.organisateur h2 { margin: 0; padding: 12px 16px 0; font-size: 1.1rem; }
.organisateur-photo { display: block; width: calc(100% - 32px); margin: 10px 16px 0; max-height: 360px; object-fit: cover; border-radius: 6px; }
.organisateur-corps { padding: 12px 16px 14px; }
.organisateur-tete { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.organisateur-logo { width: 44px; height: 44px; object-fit: contain; background: #fff; border-radius: 6px; flex: none; }
.organisateur-corps p:last-child { margin-bottom: 0; }

/* Réseaux : publications Facebook / Instagram */
.reseau { display: flex; gap: 16px; align-items: flex-start; margin: 0 0 16px; }
.reseau-image { flex: 0 0 140px; }
.reseau-image img { display: block; width: 100%; height: auto; border-radius: var(--rayon); border: 1px solid var(--trait); }
.reseau-corps { flex: 1; min-width: 0; }
.reseau-corps h3 { margin: 0 0 4px; }
.reseau-texte { width: 100%; font: inherit; font-size: .9rem; line-height: 1.45; padding: 10px; border: 1px solid var(--trait); border-radius: var(--rayon); background: var(--papier); color: inherit; resize: vertical; }
.reseau-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
@media (max-width: 600px) { .reseau { flex-direction: column; } .reseau-image { flex-basis: auto; width: 160px; } }
.stats-robots { margin: 0 0 20px; }
.stats-robots h2 { margin-top: 0; }
.stats-robots ul { margin: 6px 0 10px; padding-left: 1.2em; }
.stats-robots li { margin: 3px 0; }

/* Lien vers l'agenda romand : bas de l'agenda et pied de page */
.ailleurs { margin: 28px 0 8px; padding: 14px 16px; border: 1px dashed var(--trait); border-radius: var(--rayon); color: var(--doux); text-align: center; }
.ailleurs a, .pied-ailleurs a { color: inherit; font-weight: 600; }
.pied-ailleurs::before, .pied-reseaux::before { content: " · "; }
.pied-reseaux a { color: inherit; font-weight: 600; }
.pied-reseaux a + a::before { content: "· "; font-weight: 400; }
@media (max-width: 600px) { .pied-ailleurs, .pied-reseaux { display: block; margin-top: 4px; } .pied-ailleurs::before, .pied-reseaux::before { content: none; } }
