
/* ─────────────────────────────────────────────────────────────────────────────
   LA PAGE D'UN ÉVÈNEMENT — même habillage que le trombinoscope. Une seule page
   sert les 65 dates : l'école et l'identifiant se lisent dans l'adresse
   (?ecole=…&ev=…). L'affiche, le texte, le lieu et la date sont ceux publiés
   par l'école.
   ───────────────────────────────────────────────────────────────────────────── */
/* La palette vit dans socle.css, et nulle part ailleurs : redéclarée ici, elle
   l'emportait — changer la couleur du réseau ne changeait rien sur ces pages. */

.fil { padding: 16px 0 0; font-size: 14px; color: var(--gris); }
.fil a { color: var(--gris); }
.fil b { color: var(--encre-noire); font-weight: 500; }

/* ── LE CORPS : l'affiche à gauche, le récit à droite. */
.corps { display: grid; grid-template-columns: minmax(0, 400px) minmax(0, 1fr); grid-template-areas:
  "affiche recit" "fiche recit"; grid-template-rows: auto 1fr; gap: 26px 46px; align-items: start; padding: 26px 0 40px; }
.corps .affiche { grid-area: affiche; }
.corps .recit { grid-area: recit; min-width: 0; }
.corps .fiche-pratique { grid-area: fiche; align-self: start; }
.affiche { border: 1px solid var(--filet); background: var(--blanc); }
.affiche img { width: 100%; height: auto; }
.affiche .sans { aspect-ratio: 16 / 10; display: grid; place-items: center; color: var(--gris);
  font-size: 14px; background: #f3f1ec; }
.quand { font-size: 14px; color: var(--brun); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
h1 { font-size: clamp(24px, 3.2vw, 36px); font-weight: 600; letter-spacing: -.025em; line-height: 1.15;
  margin-top: 8px; }
.par { margin-top: 12px; font-size: 16px; color: var(--gris); }
.par a { font-weight: 500; }
.texte { margin-top: 22px; }
.texte p { max-width: 66ch; }
.texte p + p { margin-top: 12px; }
.texte .aucun { color: var(--brun); }
/* ── LA FICHE PRATIQUE : celle des pages école (Guillaume, 20/09), sous l'affiche. */
.fiche-pratique { background: var(--blanc); border: 2px solid var(--filet); border-radius: 18px; padding: 22px 24px; }
.fiche-pratique dt { font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--gris);
  margin-top: 16px; }
.fiche-pratique dt:first-of-type { margin-top: 0; }
.fiche-pratique dd { margin-top: 3px; overflow-wrap: anywhere; }
.fiche-pratique .finesse { display: block; font-size: 13.5px; color: var(--gris); margin-top: 2px; }
.fiche-pratique .plan { margin-top: 20px; border-top: 1px solid var(--filet); padding-top: 16px; }
.fiche-pratique .plan svg { width: 100%; height: auto; filter: drop-shadow(0 4px 10px rgba(54, 46, 40, .12)); }
.contour { fill: #fffdf9; stroke: #cfc9bd; stroke-width: 1.1; vector-effect: non-scaling-stroke; }
.point { fill: #c3bdb0; }
.point.ici { fill: var(--brun); stroke: #fffdf9; stroke-width: 2.5; vector-effect: non-scaling-stroke; }
.ville-ici { fill: var(--encre-noire); font-weight: 600; paint-order: stroke; stroke: #fffdf9; }
.fiche-pratique .aller { display: block; width: 100%; margin-top: 16px; text-align: center; box-sizing: border-box; }
.aller { display: inline-block; margin-top: 18px; background: var(--encre); color: #fff; padding: 11px 20px;
  text-decoration: none; font-weight: 500; border-radius: 4px; }
.aller:hover { background: var(--encre-noire); }
.aller.creux { background: var(--blanc); color: var(--encre); border: 1px solid var(--encre); font: inherit;
  font-weight: 500; cursor: pointer; }
.aller.creux:hover { background: #eef1f4; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

/* ── LES AUTRES DATES. */
.suite { border-top: 1px solid var(--filet); padding: 34px 0 60px; }
.suite h2 { font-size: 20px; font-weight: 600; margin-bottom: 14px; }
.autres { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.autres a { display: block; background: var(--blanc); border: 1px solid var(--filet); text-decoration: none;
  color: inherit; }
.autres a:hover { border-color: var(--jaune); }
.autres .vue { display: block; aspect-ratio: 16 / 9; background: var(--filet) center/cover no-repeat;
  border-bottom: 1px solid var(--filet); }
.autres .vue.sans { background: #f3f1ec; }
/* .t est un <span> : en ligne, son rembourrage ne vaut qu'en début et fin de ligne, et les lignes
   suivantes collaient au bord de la carte (Guillaume, 20/09). En bloc, il vaut partout. */
.autres .t { display: block; padding: 12px 14px 14px; }
.autres .titre { display: block; }
.autres time { font-size: 12.5px; color: var(--brun); font-weight: 600; }
.autres p { font-size: 15px; font-weight: 500; line-height: 1.3; margin-top: 3px; }
.autres .qui { font-size: 13px; color: var(--gris); margin-top: 4px; font-weight: 400; }

@media (max-width: 900px) {
  /* Une colonne, dans l'ordre du HTML : affiche, récit, fiche pratique. */
  .corps { grid-template-columns: 1fr; grid-template-areas: "affiche" "recit" "fiche"; gap: 26px; }
  .affiche { max-width: 460px; }
  .autres { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .fiche-pratique .plan { max-width: 260px; }
  .autres { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { * { transition-duration: 0s !important; } }

/* ── LES CARTES comme sur l'accueil (Guillaume, 20/09). */
.affiche { border-radius: 18px; border-width: 2px; overflow: hidden; }
.affiche figcaption { padding: 12px 16px; }
.affiche .sans { border-radius: 0; }
.ou { border-radius: 18px; border-width: 2px; }
.autres a { border-radius: 14px; border-width: 2px; overflow: hidden; }
.aller, .bouton { border-radius: 30px; }
.aller.creux, .bouton.creux { border-radius: 30px; }

/* Sans affiche : le bandeau de l'école dans un cadre 16:10, couvrant — pas une bande étirée. */
.affiche .bandeau { display: block; aspect-ratio: 16 / 10; background: var(--filet) center/cover no-repeat; }
/* « Les autres dates » = les cartes de l'accueil. */
.autres a { border: 2px solid var(--filet); border-radius: 18px; }
.autres .vue { border-bottom: 0; }
/* Un <a> ou un <strong> mal fermé dans le texte v1 ne doit pas souligner la fiche : ceinture et bretelles. */
.fiche-pratique, .fiche-pratique dt, .fiche-pratique dd, .fiche-pratique .finesse { text-decoration: none; }
