/* ============================================================
   Ateliers Ricochets — composants
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--fond);
  color: var(--texte);
  font-family: var(--font);
  font-size: var(--t-md);
  line-height: var(--lh);
  font-feature-settings: "kern", "liga";
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration-thickness: 1.5px; text-underline-offset: 0.18em; }
a:hover { text-decoration-color: var(--vert); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
p { margin: 0 0 var(--s4); max-width: 62ch; }
h1, h2, h3, h4 { margin: 0; font-weight: 900; line-height: 1.05; letter-spacing: var(--track-titre); }
ul { padding-left: 1.1em; margin: 0 0 var(--s4); }
[hidden] { display: none !important; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: 100%; max-width: var(--largeur); margin-inline: auto; padding-inline: var(--gouttiere); }
.section { padding-block: var(--s8); }
.section + .section { padding-top: 0; }
.pile > * + * { margin-top: var(--s4); }

/* ---------- Titrage ---------- */

.caps { text-transform: uppercase; }
.h-1 { font-size: var(--t-3xl); text-transform: uppercase; }
.h-2 { font-size: var(--t-2xl); text-transform: uppercase; }
.h-3 { font-size: var(--t-lg); text-transform: uppercase; }
.chapo { font-size: var(--t-lg); line-height: 1.35; max-width: 34ch; }
.doux { color: var(--texte-doux); }
.petit { font-size: var(--t-sm); }

/* Titre en pilule penchée, comme « DÉTAILS DES ATELIERS » sur les affiches */
.titre-pilule {
  display: inline-flex; flex-direction: column; align-items: center; gap: 0;
  transform: rotate(-3deg);
  margin-bottom: var(--s6);
}
.titre-pilule > span {
  display: inline-block;
  background: var(--papier);
  border: var(--trait-w) solid var(--trait);
  border-radius: var(--r-pilule);
  padding: 0.2em 0.9em 0.15em;
  font-weight: 900; text-transform: uppercase; line-height: 1.1;
}
.titre-pilule > span:first-child { font-size: var(--t-2xl); }
.titre-pilule > span + span { font-size: var(--t-md); margin-top: -2px; transform: rotate(2deg); }

/* ---------- Étiquettes ---------- */

.etiquette {
  display: inline-flex; align-items: center; gap: 0.4em;
  border: var(--trait-w) solid var(--trait);
  border-radius: var(--r-pilule);
  background: var(--papier);
  padding: 0.18em 0.75em 0.12em;
  font-size: var(--t-sm); font-weight: 900; text-transform: uppercase; letter-spacing: 0.02em;
  line-height: 1.3; white-space: nowrap; text-decoration: none;
}
.etiquette--bleu   { background: var(--bleu); border-color: var(--bleu); color: var(--papier); }
.etiquette--vert   { background: var(--vert); border-color: var(--vert); color: var(--papier); }
.etiquette--jaune  { background: var(--jaune); color: var(--encre); }
.etiquette--nue    { background: transparent; }
.etiquette--petite { font-size: var(--t-xs); padding: 0.1em 0.6em 0.05em; }
a.etiquette:hover { background: var(--encre); color: var(--papier); border-color: var(--encre); }
.etiquette[aria-pressed="true"] { background: var(--encre); color: var(--papier); }

/* Prix rond, comme les pastilles de l'affiche programme */
.pastille {
  display: inline-grid; place-items: center;
  width: 2.6em; height: 2.6em; border-radius: 50%;
  border: var(--trait-w) solid var(--trait); background: var(--papier);
  font-size: var(--t-xs); font-weight: 900; line-height: 1; flex: none;
}

/* ---------- Boutons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  min-height: 48px; padding: 0.55em 1.4em 0.45em;
  border: var(--trait-w) solid var(--encre); border-radius: var(--r-pilule);
  background: var(--encre); color: var(--papier);
  font: 900 var(--t-md)/1 var(--font); text-transform: uppercase; letter-spacing: 0.03em;
  text-decoration: none; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn { transition-timing-function: var(--ease-out); }
.btn:hover { transform: translate(-2px, -2px); box-shadow: var(--ombre); background: var(--vert); color: var(--papier); border-color: var(--encre); }
.btn:active { transform: none; box-shadow: none; }
.btn--clair { background: var(--papier); color: var(--encre); }
.btn--clair:hover { background: var(--jaune); color: var(--encre); }
.btn--plein { width: 100%; }
.btn[disabled] { background: var(--ciel-clair); color: var(--texte-doux); border-color: var(--bleu); cursor: not-allowed; transform: none; box-shadow: none; }
.lien-fleche { font-weight: 900; text-transform: uppercase; text-decoration: none; font-size: var(--t-sm); letter-spacing: .03em; }
.lien-fleche::after { content: " →"; }
.lien-fleche.retour::after { content: none; }
.lien-fleche:hover { color: var(--vert-fonce); }

/* ---------- Bandeau prototype ---------- */

.proto {
  background: var(--jaune); border-bottom: var(--trait-w) solid var(--encre);
  font-size: var(--t-sm); text-align: center; padding: 6px var(--gouttiere); font-weight: 500;
}

/* ---------- En-tête ---------- */

.entete { position: sticky; top: 0; z-index: 20; background: var(--fond); border-bottom: var(--trait-w) solid transparent; transition: border-color .2s; }
.entete.colle { border-bottom-color: var(--encre); }
.entete .wrap { display: flex; align-items: center; justify-content: space-between; gap: var(--s4); min-height: 76px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--encre); }
.logo svg { height: 62px; width: auto; flex: none; display: block; }
.logo span { font-weight: 900; text-transform: uppercase; line-height: .92; font-size: 1.05rem; letter-spacing: .01em; }
.nav { display: flex; align-items: center; gap: var(--s2); }
.nav a:not(.btn) { text-decoration: none; font-weight: 900; text-transform: uppercase; font-size: var(--t-sm); letter-spacing: .03em; padding: .45em .8em .35em; border-radius: var(--r-pilule); border: var(--trait-w) solid transparent; }
.nav a:not(.btn):hover { border-color: var(--encre); }
.nav a[aria-current="page"] { background: var(--papier); border-color: var(--encre); }
.nav .btn { min-height: 40px; font-size: var(--t-sm); padding-inline: 1.1em; margin-left: var(--s2); }
.burger { display: none; }

@media (max-width: 760px) {
  .entete .wrap { min-height: 64px; }
  .logo svg { height: 48px; }
  .logo span { font-size: .92rem; }
  .burger {
    display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 1em;
    border: var(--trait-w) solid var(--encre); border-radius: var(--r-pilule); background: var(--papier);
    font: 900 var(--t-sm)/1 var(--font); text-transform: uppercase; cursor: pointer; color: var(--encre);
  }
  .nav {
    position: fixed; inset: 64px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--fond); border-bottom: var(--trait-w) solid var(--encre); padding: var(--s3) var(--gouttiere) var(--s5);
    transform: translateY(-120%); visibility: hidden; transition: transform .25s ease, visibility .25s;
  }
  .nav.ouvert { transform: none; visibility: visible; }
  .nav a:not(.btn) { font-size: var(--t-lg); padding: .6em 0; border: 0; border-bottom: var(--trait-w) solid rgba(20,20,20,.15); border-radius: 0; }
  .nav a[aria-current="page"] { background: none; color: var(--vert-fonce); }
  .nav .btn { margin: var(--s4) 0 0; min-height: 48px; }
}

/* ---------- Héro ---------- */

.hero { padding-block: var(--s7) var(--s8); }
.hero-grille { display: grid; grid-template-columns: 1.15fr 1fr; gap: var(--s7); align-items: center; }
.hero h1 { font-size: var(--t-3xl); text-transform: uppercase; line-height: .95; margin-bottom: var(--s5); }
.hero h1 em { font-style: normal; color: var(--vert-fonce); }
.hero .chapo { margin-bottom: var(--s5); }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--s3); align-items: center; }
@media (max-width: 860px) {
  .hero-grille { grid-template-columns: 1fr; gap: var(--s6); }
}

/* ---------- Cartes ---------- */

.carte {
  position: relative;
  background: var(--surface);
  border: var(--trait-w) solid var(--trait);
  border-radius: var(--r-carte);
  padding: var(--s5);
}

/* Onglets date/heure posés sur le bord, comme sur « Détails des ateliers » */
.onglets { position: absolute; top: 0; right: var(--s5); transform: translateY(-62%); display: flex; gap: 6px; }
.onglet { display: flex; flex-direction: column; align-items: flex-end; }
.onglet .etiquette { font-size: var(--t-xs); }
.onglet .etiquette--bleu { margin-top: -3px; margin-right: 4px; font-size: 0.68rem; padding: 0 .55em; border-radius: 0 0 8px 8px; }

.grille-ateliers { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: var(--s7) var(--s5); }

.carte-atelier { display: flex; flex-direction: column; padding: 0; overflow: visible; text-decoration: none; transition: transform .15s ease, box-shadow .15s ease; }
.carte-atelier:hover { transform: translate(-3px, -3px); box-shadow: var(--ombre); }
.carte-atelier .visuel { aspect-ratio: 4 / 3; border-radius: calc(var(--r-carte) - 2px) calc(var(--r-carte) - 2px) 0 0; overflow: hidden; border-bottom: var(--trait-w) solid var(--trait); }
.carte-atelier .visuel img { width: 100%; height: 100%; object-fit: cover; }
.carte-atelier .corps { padding: var(--s4) var(--s5) var(--s5); display: flex; flex-direction: column; gap: var(--s2); flex: 1; }
.carte-atelier h3 { font-size: var(--t-lg); text-transform: uppercase; }
.carte-atelier .avec { font-size: var(--t-sm); color: var(--texte-doux); margin: 0; }
.carte-atelier .accroche { margin: 0; }
.carte-atelier .bas { margin-top: auto; padding-top: var(--s3); display: flex; align-items: center; justify-content: space-between; gap: var(--s3); }

.meta { display: flex; flex-wrap: wrap; gap: 0 .6em; font-size: var(--t-sm); font-weight: 700; }
.meta > * + *::before { content: "|"; margin-right: .6em; font-weight: 400; color: var(--texte-doux); }

/* Visuel de remplacement : aplat + ricochet */
.aplat { width: 100%; height: 100%; display: grid; place-items: center; }
.aplat svg { width: 46%; height: auto; }
.t-vert   { background: var(--vert); color: var(--papier); }
.t-bleu   { background: var(--bleu); color: var(--papier); }
.t-jaune  { background: var(--jaune); color: var(--encre); }
.t-corail { background: var(--corail); color: var(--papier); }
.t-ciel   { background: var(--ciel-clair); color: var(--encre); }

.statut { font-size: var(--t-xs); font-weight: 900; text-transform: uppercase; letter-spacing: .03em; }
.statut--complet { color: var(--corail); }
.statut--peu { color: var(--vert-fonce); }

/* ---------- Programme : grille calendrier de l'affiche ---------- */

.programme { background: var(--papier); border: var(--trait-w) solid var(--trait); border-radius: 4px; overflow: hidden; }
.programme table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.programme th { font-size: var(--t-lg); font-weight: 900; text-transform: uppercase; padding: var(--s3); border-bottom: var(--trait-w) solid var(--trait); }
.programme th + th, .programme td + td { border-left: var(--trait-w) solid var(--trait); }
.programme tr + tr td { border-top: var(--trait-w) solid var(--trait); }
.programme td { height: 128px; vertical-align: top; padding: var(--s3); position: relative; }
.programme td.vide { background: linear-gradient(to bottom right, transparent calc(50% - 1px), var(--encre) calc(50% - .5px), var(--encre) calc(50% + .5px), transparent calc(50% + 1px)); }
.programme td.hors { background: var(--ciel-clair); }
.programme .num { position: absolute; top: 6px; right: 10px; font-weight: 900; color: var(--bleu); font-size: var(--t-md); }
.programme .slot { display: block; text-decoration: none; padding-top: 1.2em; }
.programme .slot strong { display: block; text-transform: uppercase; font-size: var(--t-sm); line-height: 1.15; }
.programme .slot small { display: block; font-size: var(--t-xs); color: var(--texte-doux); }
.programme .slot .ligne { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: 6px; font-size: var(--t-xs); font-weight: 700; text-align: right; }
.programme .slot:hover strong { text-decoration: underline; }
.programme td.passe .slot { opacity: .45; }
.programme-mobile { display: none; }
@media (max-width: 760px) {
  .programme-mobile { display: block; margin: 0; padding: 0; }
  .programme-mobile li { list-style: none; border-top: var(--trait-w) solid var(--trait); }
  .programme-mobile li:first-child { border-top: 0; }
  .programme-mobile a { display: grid; grid-template-columns: 56px 1fr auto; gap: var(--s3); align-items: center; padding: var(--s3) var(--s4); text-decoration: none; }
  .programme-mobile .jour { text-align: center; line-height: 1; }
  .programme-mobile .jour b { display: block; font-size: var(--t-xl); color: var(--bleu-fonce); }
  .programme-mobile .jour span { font-size: var(--t-xs); text-transform: uppercase; font-weight: 700; }
  .programme-mobile strong { display: block; text-transform: uppercase; font-size: var(--t-sm); }
  .programme-mobile small { color: var(--texte-doux); font-size: var(--t-xs); }
  .programme-mobile ul { margin: 0; padding: 0; }
}
.adresse-pilule { display: flex; flex-direction: column; align-items: flex-end; margin-top: calc(var(--s3) * -1); transform: rotate(-2deg); }

/* ---------- Filtres ---------- */

.filtres { display: flex; flex-wrap: wrap; gap: var(--s2); align-items: center; margin-bottom: var(--s6); }
.filtres button.etiquette { cursor: pointer; font-family: var(--font); color: var(--encre); min-height: 36px; }
.filtres button.etiquette[aria-pressed="true"] { color: var(--papier); }

/* ---------- Annuaire « qui fait quoi » ---------- */

.annuaire { border-top: var(--trait-w) solid var(--trait); }
.annuaire-ligne {
  display: grid; grid-template-columns: minmax(180px, 1fr) 2fr minmax(150px, 1fr); gap: var(--s4); align-items: center;
  padding: var(--s4) 0; border-bottom: var(--trait-w) solid var(--trait);
}
.annuaire-ligne .qui { font-weight: 900; text-transform: uppercase; line-height: 1.15; }
.annuaire-ligne .qui a { text-decoration: none; }
.annuaire-ligne .qui a:hover { text-decoration: underline; }
.annuaire-ligne .qui small { display: block; font-weight: 400; text-transform: none; color: var(--texte-doux); font-size: var(--t-sm); }
.annuaire-ligne .quoi { display: flex; flex-wrap: wrap; gap: 6px; }
.annuaire-ligne .liens { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.annuaire-ligne[hidden] { display: none; }
@media (max-width: 760px) {
  .annuaire-ligne { grid-template-columns: 1fr; gap: var(--s2); }
  .annuaire-ligne .liens { justify-content: flex-start; }
}

/* ---------- Fiche atelier / membre ---------- */

.fiche { display: grid; grid-template-columns: 1.3fr 1fr; gap: var(--s7); align-items: start; }
.fiche-visuel { border: var(--trait-w) solid var(--trait); border-radius: var(--r-carte); overflow: hidden; aspect-ratio: 4 / 3; margin-bottom: var(--s5); }
.fiche-visuel img { width: 100%; height: 100%; object-fit: cover; }
.fiche h1 { font-size: var(--t-2xl); text-transform: uppercase; margin-block: var(--s3) var(--s3); }
.fiche .retour { margin-bottom: var(--s4); display: inline-block; }
.encart { position: sticky; top: 96px; }
.infos-liste { display: grid; grid-template-columns: auto 1fr; gap: var(--s2) var(--s4); margin: 0 0 var(--s5); }
.infos-liste dt { font-weight: 900; text-transform: uppercase; font-size: var(--t-sm); padding-top: 2px; }
.infos-liste dd { margin: 0; }
.animateurs { display: flex; flex-wrap: wrap; gap: var(--s4); margin-top: var(--s5); }
.animateur { display: flex; align-items: center; gap: var(--s3); text-decoration: none; }
.animateur .mini { width: 52px; aspect-ratio: 3/4; border-radius: var(--arche); overflow: hidden; border: var(--trait-w) solid var(--trait); display: grid; place-items: center; font-weight: 900; font-size: var(--t-sm); }
.animateur .mini img { width: 100%; height: 100%; object-fit: cover; }
.animateur b { display: block; text-transform: uppercase; line-height: 1.1; }
.animateur span { font-size: var(--t-sm); color: var(--texte-doux); }
@media (max-width: 860px) {
  .fiche { grid-template-columns: 1fr; gap: var(--s6); }
  .encart { position: static; }
}

.questions { display: grid; gap: var(--s4); margin-top: var(--s6); }
.question { border-left: 4px solid var(--vert); padding-left: var(--s4); }
.question dt { font-weight: 900; text-transform: uppercase; font-size: var(--t-sm); }
.question dd { margin: 2px 0 0; }

/* ---------- Formulaire ---------- */

.form { display: grid; gap: var(--s4); }
.champ { display: grid; gap: 6px; }
.champ label, .champ legend { font-weight: 900; text-transform: uppercase; font-size: var(--t-sm); letter-spacing: .02em; padding: 0; }
.champ input, .champ select, .champ textarea {
  width: 100%; min-height: 48px; padding: .6em .9em;
  font: 400 var(--t-md)/1.3 var(--font); color: var(--encre);
  background: var(--papier); border: var(--trait-w) solid var(--encre); border-radius: var(--r-champ);
}
.champ textarea { min-height: 96px; resize: vertical; }
.champ input:focus, .champ select:focus, .champ textarea:focus { outline: none; box-shadow: 0 0 0 3px var(--bleu); }
.champ .aide { font-size: var(--t-xs); color: var(--texte-doux); }
.champ--erreur input { border-color: var(--corail); box-shadow: 0 0 0 3px rgba(242,107,79,.25); }
.champ .erreur { color: #B83A20; font-size: var(--t-sm); font-weight: 700; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.deux { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3); }
@media (max-width: 480px) { .deux { grid-template-columns: 1fr; } }
.piege { position: absolute; left: -9999px; }

.choix-seances { display: grid; gap: var(--s2); }
.choix-seance { position: relative; }
.choix-seance input { position: absolute; opacity: 0; }
.choix-seance label {
  display: flex; justify-content: space-between; align-items: center; gap: var(--s3);
  padding: .7em 1em; border: var(--trait-w) solid var(--encre); border-radius: var(--r-champ);
  background: var(--papier); cursor: pointer; text-transform: none; font-size: var(--t-md); font-weight: 700; letter-spacing: 0;
}
.choix-seance label small { font-weight: 400; color: var(--texte-doux); font-size: var(--t-sm); }
.choix-seance input:checked + label { background: var(--encre); color: var(--papier); }
.choix-seance input:checked + label small { color: var(--ciel); }
.choix-seance input:focus-visible + label { outline: 3px solid var(--focus); outline-offset: 2px; }
.choix-seance input:disabled + label { opacity: .5; cursor: not-allowed; text-decoration: line-through; }

.alerte { border: var(--trait-w) solid var(--encre); border-radius: var(--r-champ); padding: var(--s4); background: var(--papier); }
.alerte--ok { background: var(--vert); color: var(--papier); }
.alerte--ok a:not(.etiquette) { color: var(--papier); }
.alerte--erreur { background: #FFE3DC; }
.alerte h2 { font-size: var(--t-lg); text-transform: uppercase; margin-bottom: var(--s2); }

/* ---------- Bloc lieu ---------- */

.lieu { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s6); align-items: center; }
.lieu-photo { border: var(--trait-w) solid var(--trait); border-radius: var(--r-carte); overflow: hidden; aspect-ratio: 4/5; max-height: 560px; }
.lieu-photo img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 760px) { .lieu { grid-template-columns: 1fr; } }

.bandeau-vert { background: var(--vert); color: var(--papier); border-block: var(--trait-w) solid var(--encre); }
.bandeau-vert a:not(.btn):not(.etiquette) { color: var(--papier); }
.bandeau-vert .etiquette, .bandeau-vert .btn--clair { color: var(--encre); }

.entete-section { display: flex; justify-content: space-between; align-items: end; gap: var(--s4); flex-wrap: wrap; margin-bottom: var(--s6); }
.entete-section .titre-pilule { margin-bottom: 0; }

/* ---------- Pied de page ---------- */

.pied { background: var(--encre); color: var(--papier); padding-block: var(--s7) var(--s5); margin-top: var(--s8); }
.pied a { color: var(--papier); }
.pied-grille { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: var(--s6); }
.pied .logo { color: var(--papier); }
.pied h2 { font-size: var(--t-sm); text-transform: uppercase; margin-bottom: var(--s3); color: var(--ciel); }
.pied ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.pied-bas { margin-top: var(--s7); padding-top: var(--s4); border-top: 1px solid rgba(255,255,255,.2); font-size: var(--t-xs); display: flex; justify-content: space-between; gap: var(--s4); flex-wrap: wrap; color: #B9C0CC; }
@media (max-width: 760px) { .pied-grille { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* ============================================================
   v0.2 — animations du ricochet, agenda, formes des portraits
   ============================================================ */

.btn--petit { min-height: 38px; font-size: var(--t-xs); padding: .5em 1.1em .4em; }
.etiquette.barre { text-decoration: line-through; opacity: .5; }

/* ---------- Le ricochet qui rebondit ---------- */

.ricochet g, .logo-vrai g { transform-box: fill-box; transform-origin: 50% 100%; }
/* ---------- Agenda ---------- */

.vues { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s3); align-items: center; margin-bottom: var(--s6); }
.vues .filtres { margin: 0; }
.agenda-mois + .agenda-mois { margin-top: var(--s7); }
.agenda-mois h3 { display: inline-block; transform: rotate(-2deg); background: var(--papier); border: var(--trait-w) solid var(--encre); border-radius: var(--r-pilule); padding: .2em .9em .1em; font-size: var(--t-lg); text-transform: uppercase; margin-bottom: var(--s4); }
.agenda { list-style: none; margin: 0; padding: 0; background: var(--papier); border: var(--trait-w) solid var(--encre); border-radius: var(--r-carte); overflow: hidden; }
.agenda-ligne {
  display: grid; grid-template-columns: 64px minmax(0, 1fr) 150px 56px 200px; gap: var(--s4); align-items: center;
  padding: var(--s3) var(--s5); border-top: var(--trait-w) solid var(--encre);
}
.agenda-ligne:first-child { border-top: 0; }
.agenda-ligne:hover { background: var(--ciel-clair); }
.agenda-date { text-align: center; line-height: 1; }
.agenda-date span { display: block; font-size: var(--t-xs); font-weight: 900; text-transform: uppercase; }
.agenda-date b { display: block; font-size: var(--t-xl); color: var(--bleu-fonce); font-weight: 900; }
.agenda-quoi a { text-decoration: none; }
.agenda-quoi a:hover strong { text-decoration: underline; }
.agenda-quoi strong { display: block; text-transform: uppercase; font-weight: 900; line-height: 1.15; }
.agenda-quoi small, .agenda-quand small { display: block; font-size: var(--t-sm); color: var(--texte-doux); }
.agenda-quand b { font-weight: 700; }
.agenda-action { display: flex; align-items: center; justify-content: flex-end; gap: var(--s3); }
@media (max-width: 860px) {
  .agenda-ligne {
    grid-template-columns: 52px minmax(0, 1fr) auto;
    grid-template-areas: "date quoi prix" "date quand action";
    gap: 6px var(--s3); padding: var(--s3) var(--s4);
  }
  .agenda-date { grid-area: date; }
  .agenda-quoi { grid-area: quoi; }
  .agenda-quand { grid-area: quand; }
  .agenda-quand small { display: inline; }
  .agenda-quand small::before { content: " · "; }
  .agenda-prix { grid-area: prix; justify-self: end; }
  .agenda-action { grid-area: action; }
}
.vue-calendrier .programme + .programme { margin-top: var(--s6); }
@media (max-width: 760px) { .vues .filtres:last-child, .vue-calendrier { display: none !important; } }
.vue-calendrier h3 { margin: var(--s6) 0 var(--s3); text-transform: uppercase; font-size: var(--t-lg); }

/* Catalogue : une carte par atelier */
.carte-atelier h3 a { text-decoration: none; }
.carte-atelier h3 a::after { content: ""; position: absolute; inset: 0; z-index: 0; }
.carte-atelier .dates { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: var(--s3); position: relative; z-index: 1; }
.carte-atelier .dates a:hover { background: var(--encre); color: var(--papier); }
.carte-atelier .meta { margin-top: var(--s2); }

/* ---------- Portraits en arche ---------- */

.trombi { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s7) var(--s6); max-width: 900px; margin-inline: auto; }
@media (max-width: 600px) { .trombi { gap: var(--s5) var(--s3); } .portrait .nom { font-size: var(--t-xs); } .portrait .metier { display: none; } }

.portrait { display: block; text-decoration: none; text-align: center; }
/* L'arche du logo (44×60) : rayon = demi-largeur */
.forme {
  position: relative; aspect-ratio: 44 / 60; overflow: hidden;
  border: var(--trait-w) solid var(--encre); border-radius: 50% 50% 0 0 / 36.67% 36.67% 0 0;
  background: var(--papier);
  transition: transform .5s var(--ease-out);
}
.forme .masque, .forme .contenu { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.forme picture { display: block; width: 100%; height: 100%; }
.forme img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; transition: transform .8s var(--ease-out); }
.forme .initiales { font-weight: 900; font-size: clamp(1.4rem, 5vw, 3rem); text-transform: uppercase; }
.masque.t-vert, .masque.t-bleu, .masque.t-corail { color: var(--papier); }
.masque.t-vert { background: var(--vert); } .masque.t-bleu { background: var(--bleu); } .masque.t-jaune { background: var(--jaune); }
.masque.t-corail { background: var(--corail); } .masque.t-ciel { background: var(--ciel-clair); }
.portrait:hover .forme { transform: translateY(-6px); }
.portrait:hover .forme img { transform: scale(1.04); }
.portrait .nom { margin-top: var(--s3); font-weight: 900; text-transform: uppercase; line-height: 1.1; }
.portrait .metier { font-size: var(--t-sm); color: var(--texte-doux); }

/* ---------- Carte du lieu ---------- */

.carte-lieu { border: var(--trait-w) solid var(--encre); border-radius: var(--r-carte); overflow: hidden; background: var(--ciel); }
.carte-lieu svg { display: block; width: 100%; height: auto; }
.carte-actions { display: flex; flex-wrap: wrap; gap: var(--s3); margin-top: var(--s4); }
.fiche .portrait .nom, .fiche .portrait .metier { display: none; }

/* ============================================================
   Mouvement — les trois formes du logo, jamais déformées.
   Courbes douces (sinus), durées longues, rythmes premiers entre eux
   pour que les calques ne se resynchronisent jamais.
   ============================================================ */

@media (prefers-reduced-motion: no-preference) {
  /* Logo de l'en-tête : un ricochet joué une fois (classe posée par le JS) */
  .logo-vrai.joue .picto g { animation: ricochet-saut .9s both; }
  .logo-vrai.joue .r-point { animation-delay: .1s; animation-name: ricochet-saut-point; }
  .logo-vrai.joue .r-arche { animation-delay: .16s; }
  .logo-vrai.joue .r-dome  { animation-delay: .3s; }

}

@keyframes ricochet-saut {
  0%   { transform: translateY(0);    animation-timing-function: cubic-bezier(.33, 1, .68, 1); }
  42%  { transform: translateY(-22%); animation-timing-function: cubic-bezier(.32, 0, .67, 0); }
  80%  { transform: translateY(0);    animation-timing-function: cubic-bezier(.33, 1, .68, 1); }
  90%  { transform: translateY(-4%);  animation-timing-function: cubic-bezier(.32, 0, .67, 0); }
  100% { transform: translateY(0); }
}
@keyframes ricochet-saut-point {
  0%   { transform: translateY(0);     animation-timing-function: cubic-bezier(.33, 1, .68, 1); }
  42%  { transform: translateY(-60%);  animation-timing-function: cubic-bezier(.32, 0, .67, 0); }
  80%  { transform: translateY(0);     animation-timing-function: cubic-bezier(.33, 1, .68, 1); }
  90%  { transform: translateY(-14%);  animation-timing-function: cubic-bezier(.32, 0, .67, 0); }
  100% { transform: translateY(0); }
}

@media (prefers-reduced-motion: no-preference) {
  .rebond { animation: apparition .7s var(--ease-out) both; }
  @keyframes apparition { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
  .carte-pin { animation: pin 3s var(--ease-in-out) infinite alternate; transform-box: fill-box; }
  @keyframes pin { from { translate: 0 0; } to { translate: 0 -10px; } }
}

/* ---------- Filtres : « Tout » se distingue ---------- */
.filtres .etiquette--tout { font-size: var(--t-md); padding: .3em 1.1em .22em; }
.filtres .etiquette--tout[aria-pressed="true"] { background: var(--vert); border-color: var(--encre); color: var(--papier); }
.filtres-sep { width: var(--trait-w); height: 28px; background: var(--encre); margin-inline: var(--s2); align-self: center; }

/* ---------- Agenda : vignette ---------- */
.agenda-ligne { grid-template-columns: 64px 104px minmax(0, 1fr) 150px 56px 200px; }
.agenda-visuel { display: block; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; border: var(--trait-w) solid var(--encre); }
.agenda-visuel picture, .agenda-visuel img { display: block; width: 100%; height: 100%; object-fit: cover; }
.agenda-visuel .aplat svg, .vignette .aplat svg { width: 55%; }
@media (max-width: 860px) {
  .agenda-ligne {
    grid-template-columns: 44px 76px minmax(0, 1fr) auto;
    grid-template-areas: "date visuel quoi prix" "date visuel quand action";
  }
  .agenda-visuel { grid-area: visuel; align-self: center; }
}
.programme .slot .vignette { display: block; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; border: var(--trait-w) solid var(--encre); margin-bottom: 6px; }
.programme .slot .vignette picture, .programme .slot .vignette img { display: block; width: 100%; height: 100%; object-fit: cover; }
.programme td { height: 140px; }

/* ============================================================
   Héro — l'affiche des portes ouvertes, vivante.
   Autocollants détourés (liseré blanc) qui flottent chacun à leur rythme.
   ============================================================ */

.hero--affiche { padding: 0; }
.affiche { position: relative; width: 100%; max-width: 1400px; margin-inline: auto; aspect-ratio: 1400 / 820; overflow: hidden; container-type: inline-size; }
.st { position: absolute; display: block; z-index: 1; }
.st-flotte { position: relative; display: block; transform: translate3d(calc(var(--px, 0) * var(--prof) * 1px), calc(var(--py, 0) * var(--prof) * 1px), 0); }
.st picture, .st img { display: block; width: 100%; height: auto; }
.st img { transform: rotate(var(--r0)); transition: transform .5s var(--ease-out), filter .5s var(--ease-out); }
.st--membre:hover img, .st--membre:focus-visible img { transform: rotate(0) scale(1.05); filter: drop-shadow(0 10px 12px rgba(20, 20, 20, .22)); }
.st--membre:hover { z-index: 3; }
.st-nom {
  position: absolute; top: 30%; padding: .5em .25em; background: var(--papier); border: var(--trait-w) solid var(--encre); border-radius: var(--r-pilule);
  writing-mode: vertical-rl; transform: rotate(180deg); white-space: nowrap;
  font-size: max(.6rem, .95cqw); font-weight: 700; line-height: 1; color: var(--encre);
}
.st-nom--gauche { left: 0; translate: -115% 0; }
.st-nom--droite { right: 0; translate: 115% 0; }
.st-nom--haut { writing-mode: horizontal-tb; transform: rotate(-6deg); top: 2%; left: 0; padding: .3em .7em; }

.affiche-centre {
  position: absolute; z-index: 2; left: 50%; top: 45%; translate: -50% -50%; width: 44%;
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.titre-autocollant { display: flex; flex-direction: column; align-items: center; gap: 1.5cqw; margin-bottom: 2cqw; }
.titre-autocollant span {
  display: inline-block; background: var(--papier); border: var(--trait-w) solid var(--encre); border-radius: var(--r-pilule);
  padding: .14em .55em .08em; font-size: 3.6cqw; font-weight: 900; text-transform: uppercase; line-height: 1;
}
.titre-autocollant span:nth-child(1) { transform: rotate(-3deg); }
.titre-autocollant span:nth-child(2) { transform: rotate(2deg); margin-left: 12%; }
.titre-autocollant span:nth-child(3) { transform: rotate(-1.5deg); margin-right: 8%; }
.titre-autocollant .vert { background: var(--vert); color: var(--papier); }
.affiche-chapo { max-width: 40ch; font-size: max(.9rem, 1.25cqw); margin-bottom: 1.6cqw; background: var(--fond); border-radius: 12px; padding: 4px 10px; }
.affiche-centre .hero-actions { justify-content: center; }

@media (prefers-reduced-motion: no-preference) {
  .st-flotte { animation: autocollant var(--dur) var(--ease-in-out) var(--del) infinite alternate; }
}
@keyframes autocollant {
  from { translate: 0 0; rotate: 0deg; }
  to   { translate: var(--dx) var(--dy); rotate: calc(var(--r1) - var(--r0)); }
}

/* Mobile : le titre d'abord, les membres en dessous, sans les objets */
@media (max-width: 760px) {
  .affiche { aspect-ratio: auto; container-type: normal; height: auto; overflow: visible; padding: var(--s6) var(--gouttiere) var(--s4); display: flex; flex-direction: column; }
  .affiche-centre { position: static; translate: none; width: 100%; order: -1; }
  .st:not(.st--membre) { display: none; }
  .affiche { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s5) var(--s3); align-items: end; }
  .affiche-centre { grid-column: 1 / -1; margin-bottom: var(--s5); }
  .titre-autocollant span { font-size: clamp(1.4rem, 7vw, 2rem); }
  .titre-autocollant { gap: 6px; margin-bottom: var(--s5); }
  .affiche-chapo { font-size: 1rem; margin-bottom: var(--s5); }
  .st--membre { position: relative; left: auto !important; top: auto !important; width: auto !important; max-width: 100%; }
  .st--membre:nth-of-type(3n+2) { margin-bottom: var(--s5); }
  .st-flotte { display: flex; flex-direction: column; align-items: center; }
  .st-nom, .st-nom--gauche, .st-nom--droite { position: static; writing-mode: horizontal-tb; translate: none; transform: rotate(-3deg); margin-top: -6px; padding: .3em .6em; font-size: .62rem; white-space: normal; text-align: center; }
}
