/* =========================================================
   Semer à Coeuilly – feuille de style commune
   ========================================================= */

/* ---------- Couleurs et réglages généraux ---------- */
:root {
  --encre: #1C2340;        /* texte principal, fond du pied de page */
  --blanc: #FFFFFF;
  --gris-clair: #F2F4F9;
  --gris-bord: #D9DDEA;
  --survol: #EEF0F6;
  --a-confirmer: #FFF1A8;  /* surlignage des infos à confirmer */

  --choux: #2F7D3B;        /* vert – Les Choux du Cirque */
  --choux-fonce: #1F5A28;
  --choux-clair: #E3F1E1;

  --ludi: #2448A8;         /* bleu – LudiCoeuilly */
  --ludi-fonce: #1A3480;
  --ludi-clair: #E5EBFA;

  --zarg: #C2410C;         /* orange – Les Z'argumenteurs */
  --zarg-fonce: #9A3409;
  --zarg-clair: #FCE9DE;

  --police-titre: 'Bricolage Grotesque', 'Trebuchet MS', sans-serif;
  --police-texte: 'Atkinson Hyperlegible', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --largeur-max: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--police-texte);
  font-size: 18px;
  line-height: 1.55;
  color: var(--encre);
  background: var(--blanc);
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--ludi-fonce); }
a:hover { color: var(--encre); }

a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--ludi);
  outline-offset: 2px;
}

h1, h2, h3 { font-family: var(--police-titre); line-height: 1.1; margin: 0; }
h1 { font-weight: 800; font-size: clamp(40px, 7vw, 64px); line-height: 1.02; }
.titre-section { font-weight: 800; font-size: clamp(30px, 4vw, 40px); margin-bottom: 20px; }

.conteneur { max-width: var(--largeur-max); margin: 0 auto; padding: 0 24px; }
.section { padding: 56px 0; }
.fond-gris { background: var(--gris-clair); }

.a-confirmer {
  background: var(--a-confirmer);
  color: var(--encre);
  padding: 1px 6px;
  border-radius: 4px;
  font-weight: 700;
}

.lien-evitement {
  position: absolute; left: -9999px; top: 0;
  background: var(--encre); color: var(--blanc); padding: 12px 16px; z-index: 10;
}
.lien-evitement:focus { left: 8px; top: 8px; }

/* ---------- En-tête et menu ---------- */
.entete { border-bottom: 3px solid var(--encre); background: var(--blanc); }
.entete .conteneur {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 12px; padding-top: 14px; padding-bottom: 14px;
}
.logo {
  font-family: var(--police-titre); font-weight: 800; font-size: 28px;
  text-decoration: none; color: var(--encre); padding: 6px 0;
}
.menu-bouton {
  display: none;
  font: inherit; font-weight: 700; color: var(--encre); background: var(--blanc);
  border: 2px solid var(--encre); border-radius: 10px; padding: 10px 16px; cursor: pointer;
}
.menu { display: flex; flex-wrap: wrap; gap: 4px; }
.menu a {
  color: var(--encre); text-decoration: none; font-weight: 700;
  padding: 12px 14px; border-radius: 8px; display: inline-block;
}
.menu a:hover { background: var(--survol); }
.menu a[aria-current="page"] { background: var(--survol); }
.menu a.choux[aria-current="page"] { background: var(--choux-clair); }
.menu a.ludi[aria-current="page"] { background: var(--ludi-clair); }
.menu a.zarg[aria-current="page"] { background: var(--zarg-clair); }

@media (max-width: 760px) {
  .menu-bouton { display: inline-block; }
  .menu { display: none; width: 100%; flex-direction: column; }
  .menu.ouvert { display: flex; }
}

/* ---------- Bandeaux de titre de page ---------- */
.bandeau { color: var(--blanc); }
.bandeau .conteneur { padding-top: 64px; padding-bottom: 56px; }
.bandeau p { font-size: 22px; max-width: 700px; margin: 20px 0 0; }
.bandeau-choux { background: var(--choux); }
.bandeau-ludi { background: var(--ludi); }
.bandeau-zarg { background: var(--zarg); }

.intro-page { padding-top: 64px; }
.intro-page p.chapo { font-size: 20px; max-width: 720px; margin: 20px 0 12px; }

/* ---------- Boutons ---------- */
.bouton {
  display: inline-block; font: inherit; font-weight: 700; text-decoration: none;
  padding: 14px 22px; border-radius: 999px; border: none; cursor: pointer;
  background: var(--encre); color: var(--blanc);
}
.bouton:hover { color: var(--blanc); opacity: .9; }
.bouton-blanc { background: var(--blanc); color: var(--encre); }
.bouton-blanc:hover { color: var(--encre); }
.bouton-choux { background: var(--choux); }
.bouton-ludi { background: var(--ludi); }
.bouton-contour { background: var(--blanc); color: var(--encre); border: 2px solid var(--encre); }
.bouton-contour:hover { color: var(--encre); }
.bouton-pointille {
  background: var(--blanc); color: var(--choux-fonce); border: 2px dashed var(--choux-fonce);
}

/* ---------- Mises en page ---------- */
.grille { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grille-large { display: grid; gap: 48px; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.deux-colonnes { display: flex; flex-wrap: wrap; gap: 48px; }
.deux-colonnes > .principal { flex: 999 1 560px; min-width: 0; }
.deux-colonnes > .lateral { flex: 1 1 300px; display: flex; flex-direction: column; gap: 20px; }

.carte { background: var(--gris-clair); border-radius: 20px; padding: 28px; }
.carte h2, .carte h3 { font-size: 24px; margin-bottom: 10px; }
.carte p { margin: 0; }
.carte p + p { margin-top: 10px; }
.carte-blanche { background: var(--blanc); }
.carte-bord { background: var(--blanc); border: 2px solid var(--gris-bord); border-radius: 16px; padding: 20px; }
.carte-bord .role { margin: 0; font-size: 15px; }
.carte-bord .nom { margin: 4px 0 0; font-weight: 700; }

.photo-attente {
  background: var(--gris-clair); border-radius: 16px; aspect-ratio: 4 / 3;
  display: flex; align-items: center; justify-content: center; text-align: center;
  padding: 16px; font-size: 16px;
}

/* ---------- Accueil ---------- */
.accroche { padding: 72px 0 48px; }
.accroche h1 { max-width: 900px; }
.accroche p { font-size: 22px; max-width: 680px; margin: 24px 0 0; }

.activites { padding-bottom: 72px; }
.activite {
  color: var(--blanc); border-radius: 28px 28px 28px 4px; padding: 36px 32px;
  display: flex; flex-direction: column; gap: 16px; min-height: 400px;
}
.activite h2 { font-weight: 800; font-size: clamp(30px, 2.9vw, 40px); line-height: 1.05; overflow-wrap: break-word; }
.activite p { margin: 0; font-size: 19px; }
.activite .quand { font-size: 17px; flex-grow: 1; }
.activite .bouton { align-self: flex-start; background: var(--blanc); }
.activite-choux { background: var(--choux); }
.activite-choux .bouton { color: var(--choux-fonce); }
.activite-ludi { background: var(--ludi); }
.activite-ludi .bouton { color: var(--ludi-fonce); }
.activite-zarg { background: var(--zarg); }
.activite-zarg .bouton { color: var(--zarg-fonce); }

.agenda { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.agenda li {
  background: var(--blanc); border-radius: 16px; padding: 18px 20px;
  display: flex; gap: 20px; align-items: center;
}
.agenda .jour {
  font-family: var(--police-titre); font-weight: 800; font-size: 30px; line-height: 1;
  min-width: 72px;
}
.agenda .jour span { font-size: 16px; display: block; }
.jour-ludi { color: var(--ludi); }
.jour-choux { color: var(--choux); }
.jour-zarg { color: var(--zarg); }

.encart-sombre { background: var(--encre); color: var(--blanc); border-radius: 24px; padding: 32px; }
.encart-sombre h2 { font-size: 30px; margin-bottom: 12px; }
.encart-sombre p { margin: 0 0 20px; }
.encart-contour { border: 3px solid var(--encre); border-radius: 24px; padding: 32px; }
.encart-contour h2 { font-size: 30px; margin-bottom: 12px; }
.encart-contour p { margin: 0 0 20px; }

/* ---------- Choux : actualités ---------- */
.editeur { background: var(--choux-clair); border-radius: 20px; padding: 24px; margin-bottom: 32px; }
.editeur h3 { font-size: 22px; margin-bottom: 6px; }
.editeur .aide { margin: 0 0 16px; font-size: 15px; }
.formulaire { display: flex; flex-direction: column; gap: 12px; }
.formulaire label { font-weight: 700; font-size: 16px; }
.formulaire input, .formulaire textarea, .formulaire select {
  font: inherit; color: var(--encre); padding: 12px 14px;
  border: 2px solid var(--encre); border-radius: 10px; background: var(--blanc);
}
.formulaire textarea { resize: vertical; }
.formulaire .actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.formulaire .erreur { color: #B42318; font-weight: 700; margin: 0; }

.actus { display: flex; flex-direction: column; gap: 20px; }
.actu { border: 2px solid #D5E6D2; border-radius: 20px; padding: 24px; }
.actu .date { margin: 0 0 6px; font-size: 15px; color: var(--choux-fonce); font-weight: 700; }
.actu h3 { font-size: 26px; line-height: 1.15; margin-bottom: 10px; }
.actu p { margin: 0; white-space: pre-line; }
.actu .supprimer {
  margin-top: 12px; font: inherit; font-size: 15px; background: none; border: none;
  color: var(--choux-fonce); text-decoration: underline; cursor: pointer; padding: 4px 0;
}

.liste-docs { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; }

/* ---------- LudiCoeuilly : calendrier ---------- */
.calendrier {
  list-style: none; margin: 0; padding: 0; display: grid; gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}
.calendrier li { border-radius: 16px; padding: 16px; background: var(--ludi-clair); }
.calendrier .num { display: block; font-family: var(--police-titre); font-weight: 800; font-size: 34px; line-height: 1; }
.calendrier .mois { display: block; font-weight: 700; }
.calendrier .note { display: block; font-size: 15px; }
.calendrier li.passee { background: var(--gris-clair); color: #4A5272; }
.calendrier li.special { background: var(--encre); color: var(--blanc); }

.nuit-du-jeu {
  background: var(--encre); color: var(--blanc); border-radius: 28px 28px 28px 4px;
  padding: 32px; align-self: flex-start;
}
.nuit-du-jeu h2 { font-size: 36px; margin-bottom: 12px; }
.nuit-du-jeu .quand { margin: 0 0 12px; font-weight: 700; font-size: 20px; }
.nuit-du-jeu p { margin: 0; }

.cadre-myludo {
  background: var(--blanc); border: 2px dashed var(--ludi); border-radius: 20px; padding: 32px;
  min-height: 180px; display: flex; flex-direction: column; justify-content: center; gap: 12px;
  margin-bottom: 20px;
}
.cadre-myludo p { margin: 0; }

/* ---------- Z'argumenteurs ---------- */
.carte-zarg { background: var(--zarg-clair); }
.cadre-spectacles { border: 3px dashed var(--zarg); border-radius: 20px; padding: 28px; }
.cadre-spectacles p { margin: 0; }
.cadre-spectacles p + p { margin-top: 10px; font-size: 16px; }
.appel {
  background: var(--encre); color: var(--blanc);
}
.appel .conteneur {
  display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between;
  padding-top: 48px; padding-bottom: 48px;
}
.appel p { font-family: var(--police-titre); font-weight: 800; font-size: 30px; margin: 0; max-width: 640px; line-height: 1.15; }

/* ---------- Association ---------- */
.liste-activites { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.liste-activites li { display: flex; gap: 14px; align-items: baseline; }
.pastille { width: 14px; height: 14px; border-radius: 4px; flex-shrink: 0; }
.pastille-choux { background: var(--choux); }
.pastille-ludi { background: var(--ludi); }
.pastille-zarg { background: var(--zarg); }
.referent-choux { background: var(--choux-clair); border-radius: 16px; padding: 20px; }
.referent-ludi { background: var(--ludi-clair); border-radius: 16px; padding: 20px; }
.referent-zarg { background: var(--zarg-clair); border-radius: 16px; padding: 20px; }
.referent-choux p, .referent-ludi p, .referent-zarg p { margin: 0; }

/* ---------- Historique : frise ---------- */
.frise { list-style: none; margin: 0; padding: 0; border-left: 4px solid var(--encre); }
.frise li { position: relative; padding: 0 0 32px 32px; }
.frise li::before {
  content: ""; position: absolute; left: -12px; top: 6px; width: 20px; height: 20px;
  border-radius: 50%; background: var(--blanc); border: 4px solid var(--encre);
}
.frise .quand { margin: 0; font-family: var(--police-titre); font-weight: 800; font-size: 22px; color: var(--ludi); }
.frise h2 { font-size: 28px; line-height: 1.15; margin: 4px 0 8px; }
.frise p { margin: 0; max-width: 720px; }
.frise .medias { margin-top: 8px; font-size: 16px; }

/* ---------- Contact ---------- */
.bloc-formulaire { background: var(--gris-clair); border-radius: 28px 28px 28px 4px; padding: 36px; }
.confirmation h2 { font-size: 32px; margin-bottom: 10px; }
.confirmation p { margin: 0 0 20px; }
[hidden] { display: none !important; }

/* ---------- Pied de page ---------- */
.pied { background: var(--encre); color: var(--blanc); font-size: 16px; }
.pied .conteneur {
  display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  padding-top: 48px; padding-bottom: 48px;
}
.pied .nom-asso { font-family: var(--police-titre); font-weight: 800; font-size: 24px; margin: 0 0 8px; }
.pied p { margin: 0; }
.pied nav { display: flex; flex-direction: column; gap: 6px; }
.pied a { color: var(--blanc); }
.pied a:hover { color: var(--ludi-clair); }

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
.appel { border-bottom: 1px solid #3A4266; }

/* ---------- LudiCoeuilly : aperçu des jeux (roulement) ---------- */
.apercu-jeux { margin-top: 48px; }
.apercu-entete { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.apercu-entete h3 { font-size: 28px; font-weight: 800; }
.carrousel-btn {
  width: 48px; height: 48px; border-radius: 50%; border: 2px solid var(--encre);
  background: var(--blanc); color: var(--encre); font-size: 16px; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center; padding: 0; letter-spacing: -2px;
}
.carrousel-btn:hover { background: var(--encre); color: var(--blanc); }
.carrousel {
  list-style: none; margin: 0; padding: 0; display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
.jeu {
  background: var(--blanc); border-radius: 20px; padding: 20px;
  display: flex; flex-direction: column; gap: 8px; transition: opacity .4s ease;
}
.jeu.jeu-sortie { opacity: 0; }
.jeu-pastille {
  width: 48px; height: 48px; border-radius: 14px; background: var(--ludi); color: var(--blanc);
  font-family: var(--police-titre); font-weight: 800; font-size: 26px;
  display: flex; align-items: center; justify-content: center;
}
.jeu:nth-child(4n+2) .jeu-pastille { background: var(--choux); }
.jeu:nth-child(4n+3) .jeu-pastille { background: var(--zarg); }
.jeu:nth-child(4n+4) .jeu-pastille { background: var(--encre); }
.jeu-nom { font-family: var(--police-titre); font-size: 20px; line-height: 1.15; margin: 4px 0 0; }
.jeu-infos { margin: 0; font-size: 15px; }
.jeu-type { margin: 0; font-size: 15px; color: #4A5272; }
@media (prefers-reduced-motion: reduce) { .jeu { transition: none; } }
.jeu-image {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px;
  background: var(--ludi-clair); display: block;
}

/* =========================================================
   Mini-site des Choux du Cirque
   ========================================================= */
.bandeau-choux-site .conteneur { padding-top: 48px; padding-bottom: 40px; }
.bandeau-choux-site .sur-titre { margin: 0 0 8px; font-size: 15px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; opacity: .9; }
.bandeau-choux-site p:last-child { font-size: 20px; }

/* Barre de navigation propre aux Choux */
.sous-nav-choux { background: var(--choux-clair); border-bottom: 2px solid #C7DFC3; position: sticky; top: 0; z-index: 5; }
.sous-nav-choux .conteneur { display: flex; gap: 4px; overflow-x: auto; padding-top: 8px; padding-bottom: 8px; scrollbar-width: thin; }
.sous-nav-choux a {
  flex-shrink: 0; color: var(--choux-fonce); text-decoration: none; font-weight: 700; font-size: 16px;
  padding: 10px 14px; border-radius: 999px; white-space: nowrap;
}
.sous-nav-choux a:hover { background: var(--blanc); }
.sous-nav-choux a[aria-current="page"] { background: var(--choux); color: var(--blanc); }

.choux-corps { padding-top: 48px; padding-bottom: 64px; }
.titre-page-choux { font-weight: 800; font-size: clamp(32px, 5vw, 48px); margin-bottom: 24px; }
.chapo-choux { font-size: 20px; margin: 0 0 20px; }
.sous-titre-choux { font-size: 24px; margin: 28px 0 10px; color: var(--choux-fonce); }
.choux-corps p { margin: 0 0 14px; }
.choux-corps .carte ul { margin: 0; padding-left: 20px; }
.choux-corps .carte li + li { margin-top: 4px; }
.choux-corps a { color: var(--choux-fonce); }
.choux-corps .bouton-choux { color: var(--blanc); }
.page-choux .actu .date { color: var(--choux-fonce); }

/* Horaires */
.horaires { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.horaires li { background: var(--choux-clair); border-radius: 14px; padding: 12px 16px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* Cartes « Zoom » de l'accueil des Choux */
.zoom-choux { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin-top: 56px; }
.zoom {
  display: block; background: var(--choux); color: var(--blanc); text-decoration: none; border-radius: 24px 24px 24px 4px;
  padding: 24px; font-family: var(--police-titre); font-weight: 800; font-size: 24px; line-height: 1.15;
}
.zoom span { display: block; font-family: var(--police-texte); font-weight: 700; font-size: 14px; text-transform: uppercase; letter-spacing: .06em; opacity: .85; margin-bottom: 6px; }
.zoom:hover { background: var(--choux-fonce); color: var(--blanc); }
.choux-corps a.zoom { color: var(--blanc); }

/* Cartes-liens des Extras */
.carte-lien {
  display: flex; flex-direction: column; gap: 10px; background: var(--choux-clair); border-radius: 24px; padding: 28px;
  text-decoration: none; color: var(--encre); border: 2px solid transparent;
}
.carte-lien h3 { font-size: 26px; }
.carte-lien p { margin: 0; }
.carte-lien span { font-weight: 700; color: var(--choux-fonce); margin-top: auto; }
.carte-lien:hover { border-color: var(--choux); color: var(--encre); }
.choux-corps a.carte-lien { color: var(--encre); }

/* Fil d'Ariane */
.fil-choux { font-size: 15px; color: #4A5272; margin: -12px 0 24px; }

/* Charte numérotée */
.charte { list-style: upper-roman; padding-left: 32px; margin: 0 0 28px; }
.charte > li { margin-bottom: 24px; }
.charte > li::marker { font-family: var(--police-titre); font-weight: 800; font-size: 22px; color: var(--choux); }
.charte h3 { font-size: 22px; margin-bottom: 8px; }
.charte ul { padding-left: 20px; margin: 0; }
.charte ul li + li { margin-top: 6px; }

/* Bandeau de contacts en bas des pages des Choux */
.contacts-choux { background: var(--choux-clair); border-top: 2px solid #C7DFC3; }
.contacts-choux .conteneur { display: flex; flex-wrap: wrap; gap: 16px 48px; justify-content: space-between; align-items: flex-end; padding-top: 32px; padding-bottom: 32px; }
.contacts-choux h2 { font-size: 22px; margin-bottom: 6px; }
.contacts-choux p { margin: 0; }
.contacts-choux a { color: var(--choux-fonce); font-weight: 700; }
.contacts-choux .appartenance { font-size: 15px; }

/* =========================================================
   VERSION PHP : modification directement sur le site
   ========================================================= */

/* Barre jaune quand on est connecté */
.barre-admin {
  background: var(--a-confirmer); color: var(--encre); font-size: 15px;
  display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; justify-content: center;
  padding: 10px 24px; border-bottom: 2px solid var(--encre); text-align: center;
}
.barre-admin a { color: var(--encre); font-weight: 700; }
.barre-liens { display: inline-flex; gap: 16px; }

/* Messages après une action (« Texte enregistré », erreurs) */
.flash { max-width: var(--largeur-max); margin: 16px auto; padding: 14px 20px; border-radius: 12px; font-weight: 700; }
.flash-ok { background: var(--choux-clair); color: var(--choux-fonce); border-left: 5px solid var(--choux); }
.flash-erreur { background: #FDE8E7; color: #8A1C14; border-left: 5px solid #B42318; }
main > .flash, .carte-compte .flash { margin: 0 0 20px; }

/* Les textes : mise en forme générale */
.zone > *:first-child { margin-top: 0; }
.zone > *:last-child { margin-bottom: 0; }
.zone p { margin: 0 0 12px; }
.zone h3 { font-size: 22px; margin: 0 0 10px; }
.zone ul { margin: 0 0 12px; padding-left: 22px; }
.zone li + li { margin-top: 4px; }
.texte-large { max-width: 760px; }
.carte .zone h3 { font-size: 22px; }
.chapo-choux p, .chapo p { font-size: 20px; }
.accroche-texte p { font-size: 22px; max-width: 680px; margin-top: 24px; }

/* Zone modifiable : léger cadre en pointillés quand on est connecté */
.zone-modifiable { outline: 2px dashed rgba(36, 72, 168, .35); outline-offset: 6px; border-radius: 6px; }
.nuit-du-jeu .zone-modifiable, .activite .zone-modifiable { outline-color: rgba(255, 255, 255, .5); }

/* Boutons « Modifier ce texte », « Ajouter… » (balise <details>) */
.edition { margin-top: 12px; }
.edition > summary {
  display: inline-flex; align-items: center; gap: 6px; cursor: pointer; list-style: none;
  font-size: 15px; font-weight: 700; color: var(--encre); background: var(--a-confirmer);
  border: 2px solid var(--encre); border-radius: 999px; padding: 6px 14px;
}
.edition > summary::-webkit-details-marker { display: none; }
.edition > summary::before { content: "✏️"; }
.edition-ajout > summary::before { content: "＋"; font-weight: 800; }
.edition[open] > summary { margin-bottom: 12px; }
.edition form { background: var(--blanc); color: var(--encre); border: 2px solid var(--encre); border-radius: 16px; padding: 18px; }
.edition textarea, .formulaire textarea { width: 100%; font: inherit; font-size: 16px; line-height: 1.5; }
.edition textarea { padding: 12px; border: 2px solid var(--gris-bord); border-radius: 10px; }
.aide-edition { font-size: 14px; color: #4A5272; margin: 8px 0; }
.aide-edition code { background: var(--gris-clair); padding: 1px 5px; border-radius: 4px; }
.edition-boutons { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.edition-ajout { margin: 0 0 24px; }
.facultatif { font-weight: 400; font-size: 14px; color: #4A5272; }
.formulaire .case { display: flex; gap: 8px; align-items: center; font-weight: 400; }
.form-suppression, .edition .form-suppression { margin-top: 12px; border: none; padding: 0; background: none; }
.bouton-danger { background: #B42318; }
.lien-bouton { font: inherit; font-size: 15px; background: none; border: none; color: #B42318; text-decoration: underline; cursor: pointer; padding: 0; }

/* Calendrier LudiCoeuilly : bouton de suppression d'une date */
.calendrier li { position: relative; }
.suppr-date { position: absolute; top: 6px; right: 6px; }
.suppr-date button {
  width: 26px; height: 26px; border-radius: 50%; border: 2px solid currentColor; background: var(--blanc);
  color: #B42318; font-weight: 800; line-height: 1; cursor: pointer; padding: 0;
}
.liste-gestion { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-direction: column; gap: 6px; }
.liste-gestion li { display: flex; justify-content: space-between; gap: 12px; background: var(--blanc); border-radius: 10px; padding: 8px 12px; }
.titre-saison h3 { font-weight: 800; font-size: clamp(30px, 4vw, 40px); margin-bottom: 8px; }
.titre-saison { margin-bottom: 24px; }
.nuit-du-jeu h3 { font-size: 36px; margin-bottom: 12px; }
.nuit-du-jeu strong { font-size: 18px; }
.nuit-du-jeu a { color: var(--blanc); }

/* Listes « Rôle : Nom » en cartes (bureau, référents) */
.liste-cartes { list-style: none; padding: 0 !important; display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.liste-cartes li { margin: 0 !important; background: var(--blanc); border: 2px solid var(--gris-bord); border-radius: 16px; padding: 18px 20px; }
.liste-cartes .role { display: block; font-size: 15px; }
.liste-cartes .nom { display: block; font-weight: 700; }
.referents .liste-cartes li { border: none; }
.referents .liste-cartes li:nth-child(1) { background: var(--choux-clair); }
.referents .liste-cartes li:nth-child(2) { background: var(--ludi-clair); }
.referents .liste-cartes li:nth-child(3) { background: var(--zarg-clair); }
.sous-titre { font-size: 26px; margin: 32px 0 16px; }
.presentation p:first-child { font-size: 22px; }
.liste-activites-asso ul { list-style: none; padding-left: 0; }
.liste-activites-asso li { position: relative; padding-left: 26px; }
.liste-activites-asso li::before { content: ""; position: absolute; left: 0; top: 7px; width: 14px; height: 14px; border-radius: 4px; background: var(--choux); }
.liste-activites-asso li:nth-child(2)::before { background: var(--ludi); }
.liste-activites-asso li:nth-child(3)::before { background: var(--zarg); }
.liste-activites-asso h3 { font-size: 32px; margin: 32px 0 14px; }

/* Historique : la frise */
.frise h2 { font-size: 28px; line-height: 1.15; margin: 4px 0 8px; }
.frise .quand { font-family: var(--police-titre); font-weight: 800; font-size: 22px; color: var(--ludi); margin: 0; }

/* Horaires des Choux */
.horaires li { margin: 0 !important; }
.charte h3 { font-size: 22px; color: var(--choux-fonce); margin-top: 28px; }

/* Actualités : photo, étiquettes, couleurs par activité */
.actu-image { border-radius: 14px; margin: 4px 0 12px; max-height: 360px; width: 100%; object-fit: cover; }
.actu-texte p { margin: 0 0 10px; }
.actu-passee { opacity: .75; }
.etiquette { display: inline-block; vertical-align: middle; margin-left: 6px; padding: 2px 10px; border-radius: 999px; font-family: var(--police-texte); font-size: 13px; font-weight: 700; line-height: 1.5; }
.etiquette-avenir { background: var(--choux); color: var(--blanc); }
.etiquette-passe { background: var(--gris-clair); color: #4A5272; }
.actus-ludi .actu { border-color: #C9D5F2; }
.actus-ludi .date { color: var(--ludi-fonce); }
.actus-ludi .etiquette-avenir { background: var(--ludi); }
.actus-zarg .actu { border-color: #F3C9B3; }
.actus-zarg .date { color: var(--zarg-fonce); }
.actus-zarg .etiquette-avenir { background: var(--zarg); }
.actu .date { margin: 0 0 6px; font-size: 15px; font-weight: 700; }
.actu h3 { font-size: 26px; line-height: 1.15; margin-bottom: 10px; }
.spectacles { max-width: 760px; margin-top: 20px; }
.cadre-spectacles { max-width: 760px; }

/* « À ne pas manquer » */
.groupe { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.groupe-choux { color: var(--choux-fonce); }
.groupe-ludi { color: var(--ludi-fonce); }
.groupe-zarg { color: var(--zarg-fonce); }
.agenda a { color: var(--encre); text-decoration: none; }
.agenda a:hover { text-decoration: underline; }
.agenda .etiquette-avenir { background: var(--encre); }

/* Messages reçus (formulaire de contact) */
.boite-messages { margin-top: 24px; }
.message-recu { background: var(--blanc); border-radius: 12px; padding: 14px 16px; margin-top: 10px; }
.message-recu p { margin: 0 0 6px; }
.message-recu form { border: none; padding: 0; background: none; }
.piege { position: absolute; left: -9999px; }
.petit { font-size: 15px; margin: 0; }
.liste-docs ul { padding-left: 20px; }

/* Pages de connexion et de compte */
.page-compte { padding-top: 56px; padding-bottom: 72px; }
.carte-compte { max-width: 520px; margin: 0 auto; background: var(--gris-clair); border-radius: 28px 28px 28px 4px; padding: 36px; }
.carte-compte h1 { font-size: 40px; margin-bottom: 12px; }
.carte-compte h2 { font-size: 24px; margin: 32px 0 6px; }
.carte-compte .formulaire input { width: 100%; }
.lien-oubli { margin: 16px 0 0; font-weight: 700; }
.mode-local { background: var(--a-confirmer); border-radius: 12px; padding: 14px 16px; margin: 16px 0; }
.mode-local p { margin: 0 0 6px; }


/* =========================================================
   BONUS : THÈMES DE SAISON
   ========================================================= */
.bandeau-saison { text-align: center; font-weight: 700; padding: 8px 16px; font-size: 16px; }

/* ---------- Halloween : sombre, orange et noir ---------- */
body.saison-halloween { background: #141018; color: #F3E9DC; }
.saison-halloween .bandeau-saison { background: #FF7A00; color: #141018; }
.saison-halloween .entete { background: #0B090D; border-bottom-color: #FF7A00; }
.saison-halloween .logo, .saison-halloween .menu a { color: #F3E9DC; }
.saison-halloween .menu a:hover, .saison-halloween .menu a[aria-current="page"] { background: #2A2230; color: #FF9A3C; }
.saison-halloween .menu-bouton { background: #0B090D; color: #F3E9DC; border-color: #FF7A00; }
.saison-halloween a { color: #FF9A3C; }
.saison-halloween .bandeau, .saison-halloween .activite { background: #0B090D !important; color: #F3E9DC; border: 2px solid #FF7A00; }
.saison-halloween .bandeau { border-width: 0 0 4px; }
.saison-halloween .bandeau h1, .saison-halloween .activite h2 { color: #FF7A00; }
.saison-halloween .activite .bouton { background: #FF7A00 !important; color: #0B090D !important; }
.saison-halloween .fond-gris, .saison-halloween .section[style*="background"], .saison-halloween .contacts-choux,
.saison-halloween .sous-nav-choux { background: #1D1722 !important; border-color: #3A2E42; }
.saison-halloween .sous-nav-choux a { color: #F3E9DC; }
.saison-halloween .sous-nav-choux a:hover { background: #2A2230; }
.saison-halloween .sous-nav-choux a[aria-current="page"] { background: #FF7A00; color: #0B090D; }
.saison-halloween .carte, .saison-halloween .actu, .saison-halloween .agenda li, .saison-halloween .bloc-formulaire,
.saison-halloween .carte-lien, .saison-halloween .liste-cartes li, .saison-halloween .calendrier li,
.saison-halloween .jeu, .saison-halloween .horaires li, .saison-halloween .carte-compte, .saison-halloween .message-recu,
.saison-halloween .cadre-myludo, .saison-halloween .liste-gestion li {
  background: #1D1722 !important; color: #F3E9DC; border-color: #3A2E42 !important;
}
.saison-halloween .calendrier li.special, .saison-halloween .nuit-du-jeu, .saison-halloween .encart-sombre { background: #FF7A00 !important; color: #141018; }
.saison-halloween .nuit-du-jeu a, .saison-halloween .calendrier li.special * { color: #141018; }
.saison-halloween .calendrier li.passee { opacity: .55; }
.saison-halloween .encart-contour { border-color: #FF7A00; }
.saison-halloween .bouton { background: #FF7A00; color: #141018; }
.saison-halloween .bouton:hover { color: #141018; }
.saison-halloween .bouton-blanc { background: #F3E9DC; color: #141018; }
.saison-halloween .zoom { background: #FF7A00; color: #141018 !important; }
.saison-halloween .zoom:hover { background: #FF9A3C; }
.saison-halloween .titre-section, .saison-halloween h1, .saison-halloween .titre-page-choux, .saison-halloween .sous-titre-choux,
.saison-halloween .frise h2, .saison-halloween .charte h3 { color: #F3E9DC; }
.saison-halloween .actu .date, .saison-halloween .groupe, .saison-halloween .frise .quand, .saison-halloween .jour { color: #FF9A3C !important; }
.saison-halloween .etiquette-avenir, .saison-halloween .jeu-pastille { background: #FF7A00 !important; color: #141018; }
.saison-halloween .frise { border-left-color: #FF7A00; }
.saison-halloween .frise li::before { background: #141018; border-color: #FF7A00; }
.saison-halloween .pied { background: #0B090D; border-top: 4px solid #FF7A00; }
.saison-halloween .pied a { color: #F3E9DC; }
.saison-halloween .formulaire input, .saison-halloween .formulaire textarea, .saison-halloween .formulaire select {
  background: #141018; color: #F3E9DC; border-color: #FF7A00;
}
.saison-halloween .agenda a, .saison-halloween .carte-lien { color: #F3E9DC !important; }
.saison-halloween .carte-lien span, .saison-halloween .contacts-choux a { color: #FF9A3C !important; }
.saison-halloween .facultatif, .saison-halloween .fil-choux, .saison-halloween .jeu-type, .saison-halloween .aucun { color: #CBBFD3; }
.saison-halloween .aucun { background: #1D1722; }
/* Les zones de modification restent claires et lisibles */
.saison-halloween .edition form, .saison-halloween .edition form * { color: var(--encre); }
.saison-halloween .edition form input, .saison-halloween .edition form textarea { background: var(--blanc); border-color: var(--encre); }

/* ---------- Noël : blanc, bleu clair et neige ---------- */
body.saison-noel { background: #F3F9FF; }
.saison-noel .bandeau-saison { background: #CFE6FF; color: #12335E; }
.saison-noel .entete { background: #FFFFFF; border-bottom-color: #7DB7EE; }
.saison-noel .bandeau, .saison-noel .activite { background: linear-gradient(135deg, #DCEEFF, #B9DCFF) !important; color: #12335E; }
.saison-noel .bandeau h1, .saison-noel .activite h2 { color: #0E2A52; }
.saison-noel .activite .bouton { background: #FFFFFF !important; color: #12335E !important; }
.saison-noel .fond-gris, .saison-noel .contacts-choux, .saison-noel .sous-nav-choux,
.saison-noel .section[style*="background"] { background: #E8F3FF !important; border-color: #C5E0FA; }
.saison-noel .sous-nav-choux a { color: #12335E; }
.saison-noel .sous-nav-choux a[aria-current="page"], .saison-noel .zoom, .saison-noel .bouton-choux, .saison-noel .bouton-ludi { background: #3D7CC9; color: #FFFFFF; }
.saison-noel .calendrier li { background: #E3F0FF; }
.saison-noel .calendrier li.special, .saison-noel .nuit-du-jeu { background: #12335E !important; color: #FFFFFF; }
.saison-noel .etiquette-avenir, .saison-noel .jeu-pastille { background: #3D7CC9 !important; }
.saison-noel .actu { border-color: #C5E0FA !important; }
.saison-noel .actu .date, .saison-noel .groupe, .saison-noel .jour, .saison-noel .frise .quand { color: #2763AD !important; }
.saison-noel .pied { background: #12335E; }

/* La neige qui tombe (créée par le script) */
.neige { position: fixed; inset: 0; pointer-events: none; z-index: 50; overflow: hidden; }
.flocon {
  position: absolute; top: -12px; color: #FFFFFF; text-shadow: 0 0 4px #7DB7EE;
  animation: tomber linear infinite; user-select: none;
}
@keyframes tomber {
  to { transform: translate(var(--derive, 20px), 105vh) rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
  .neige { display: none; }
}

/* Espacement sous le grand titre de l'accueil */
.accroche .zone { margin-top: 24px; }

/* Sélecteur de thème (président) dans la barre jaune */
.choix-theme { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.choix-theme label { font-weight: 700; }
.choix-theme select, .choix-theme button {
  font: inherit; font-size: 15px; color: var(--encre); background: var(--blanc);
  border: 2px solid var(--encre); border-radius: 999px; padding: 4px 12px;
}
.choix-theme button { font-weight: 700; cursor: pointer; }
.choix-theme button:hover { background: var(--encre); color: var(--blanc); }


/* =========================================================
   DÉCORATIONS DE SAISON (petits dessins dans les coins)
   ========================================================= */
.deco { position: fixed; inset: 0; pointer-events: none; z-index: 40; overflow: hidden; }
.deco svg { position: absolute; display: block; }

/* --- Halloween --- */
.deco-toile { width: 110px; height: 110px; top: 0; color: rgba(243, 233, 220, .45); }
.deco-toile-gauche { left: 0; }
.deco-toile-droite { right: 0; transform: scaleX(-1); }
.deco-araignee { width: 22px; height: 66px; top: 0; right: 70px; color: rgba(243, 233, 220, .6); animation: araignee 6s ease-in-out infinite; transform-origin: top center; }
@keyframes araignee { 0%, 100% { transform: translateY(-10px); } 50% { transform: translateY(14px); } }
.deco-sorciere { width: 110px; height: 60px; top: 150px; left: -130px; animation: vol-sorciere 24s linear infinite; }
@keyframes vol-sorciere {
  0% { transform: translate(0, 0); } 8% { transform: translate(30vw, -20px); }
  16% { transform: translate(60vw, 10px); } 24% { transform: translate(calc(100vw + 260px), -10px); } 100% { transform: translate(calc(100vw + 260px), -10px); }
}
.deco-chauvesouris { width: 34px; height: 16px; animation: battement .35s ease-in-out infinite alternate, flotte 7s ease-in-out infinite; }
.deco-cs1 { top: 210px; right: 9%; }
.deco-cs2 { top: 270px; right: 15%; width: 26px; animation-delay: .1s, -3s; }
@keyframes battement { from { transform: scaleY(1); } to { transform: scaleY(.45); } }
@keyframes flotte { 0%, 100% { translate: 0 0; } 50% { translate: -30px 18px; } }
.deco-chat { width: 62px; height: 70px; left: 14px; bottom: 10px; }
.deco-citrouille { width: 58px; height: 50px; right: 16px; bottom: 12px; }

/* --- Noël --- */
.deco-traineau { width: 150px; height: 70px; top: 150px; left: -170px; animation: vol-traineau 28s linear infinite; }
@keyframes vol-traineau {
  0% { transform: translate(0, 0); } 6% { transform: translate(25vw, -15px); }
  14% { transform: translate(60vw, 8px); } 22% { transform: translate(calc(100vw + 340px), -20px); } 100% { transform: translate(calc(100vw + 340px), -20px); }
}
.deco-sapin { width: 62px; height: 85px; left: 14px; bottom: 8px; }
.deco-painepice { width: 50px; height: 64px; right: 16px; bottom: 10px; animation: danse 3s ease-in-out infinite; transform-origin: bottom center; }
@keyframes danse { 0%, 100% { transform: rotate(-6deg); } 50% { transform: rotate(6deg); } }
/* Guirlande lumineuse sous le menu */
.saison-noel .entete { position: relative; }
.saison-noel .entete::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -9px; height: 12px; pointer-events: none;
  background:
    radial-gradient(circle, #E63946 3.5px, transparent 4.5px) 0 50% / 64px 12px repeat-x,
    radial-gradient(circle, #FFD166 3.5px, transparent 4.5px) 16px 50% / 64px 12px repeat-x,
    radial-gradient(circle, #2E8B57 3.5px, transparent 4.5px) 32px 50% / 64px 12px repeat-x,
    radial-gradient(circle, #4DA3FF 3.5px, transparent 4.5px) 48px 50% / 64px 12px repeat-x;
  animation: scintille 1.6s steps(2) infinite;
}
@keyframes scintille { 50% { filter: brightness(1.5) saturate(1.3); opacity: .75; } }

/* Petits écrans : on garde seulement les décorations discrètes */
@media (max-width: 700px) {
  .deco-chat, .deco-citrouille, .deco-sapin, .deco-painepice, .deco-chauvesouris { display: none; }
  .deco-toile { width: 70px; height: 70px; }
  .deco-araignee { right: 44px; }
}
/* Animations arrêtées si la personne a demandé à réduire les mouvements */
@media (prefers-reduced-motion: reduce) {
  .deco *, .saison-noel .entete::after { animation: none !important; }
  .deco-sorciere, .deco-traineau { display: none; }
}


/* =========================================================
   NOUVEAUTÉS : Maps, Discord, galerie, dessins de jeux
   ========================================================= */
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Bouton Google Maps */
.bouton-maps {
  display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 16px; text-decoration: none;
  background: var(--blanc); color: var(--encre) !important; border: 2px solid currentColor; border-radius: 999px; padding: 8px 16px;
}
.bouton-maps svg { width: 18px; height: 18px; color: #D62839; }
.bouton-maps:hover { background: var(--encre); color: var(--blanc) !important; }
.bandeau .bouton-maps { border-color: var(--blanc); }

/* Bouton Discord */
.bouton-discord { display: inline-flex; align-items: center; gap: 8px; background: #5865F2; color: #FFFFFF !important; }
.bouton-discord svg { width: 22px; height: 22px; }
.bouton-discord:hover { background: #4752C4; }
.encart-sombre .bouton-discord { background: #5865F2; color: #FFFFFF !important; }

/* Galerie de photos */
.galerie .titre-section { margin-bottom: 20px; }
.grille-photos { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.photo { margin: 0; background: var(--blanc); border-radius: 16px; overflow: hidden; box-shadow: 0 2px 10px rgba(28, 35, 64, .1); }
.photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .3s ease; }
.photo a { display: block; overflow: hidden; }
.photo a:hover img { transform: scale(1.04); }
.photo figcaption { padding: 10px 14px; font-size: 15px; font-weight: 700; color: var(--encre); }
.photo form { padding: 0 14px 10px; }

/* Gestion des jeux : photo de chaque jeu */
.liste-gestion li { flex-wrap: wrap; align-items: center; }
.gestion-nom { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; min-width: 180px; }
.gestion-nom img { width: 40px; height: 40px; object-fit: cover; border-radius: 8px; }
.form-photo-jeu { display: inline-flex; flex-wrap: wrap; gap: 8px; align-items: center; border: none !important; padding: 0 !important; background: none !important; }
.form-photo-jeu input[type=file] { font-size: 14px; max-width: 220px; }
.bouton-petit { padding: 6px 14px; font-size: 14px; }

/* Petits dessins de jeux de société */
.dessin { display: block; }
.bandeau-ludi { position: relative; overflow: hidden; }
.bandeau-dessins { position: absolute; inset: 0; pointer-events: none; }
.bandeau-dessins .dessin { position: absolute; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .18)); animation: flotter 6s ease-in-out infinite; }
.d-de1   { width: 64px; right: 8%;  top: 18%; transform: rotate(14deg); }
.d-carte1{ width: 56px; right: 19%; top: 54%; rotate: -12deg; animation-delay: -1.5s !important; }
.d-perso1{ width: 54px; right: 30%; top: 12%; animation-delay: -3s !important; }
.d-de2   { width: 46px; right: 4%;  top: 64%; rotate: -20deg; animation-delay: -2s !important; }
.d-carte2{ width: 50px; right: 13%; top: 8%;  rotate: 18deg; animation-delay: -4s !important; }
.d-pion1 { width: 34px; right: 26%; top: 66%; animation-delay: -1s !important; }
@keyframes flotter { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }
@media (max-width: 900px) { .d-perso1, .d-pion1, .d-carte2 { display: none; } }
@media (max-width: 600px) { .bandeau-dessins { opacity: .35; } }
.titre-ludo { display: flex; align-items: center; gap: 12px; }
.titre-ludo .dessin { width: 40px; rotate: -10deg; }
.activite-ludi { position: relative; }
.activite-dessins { position: absolute; top: 18px; right: 18px; display: flex; gap: 6px; pointer-events: none; }
.activite-dessins .dessin { width: 34px; }
.d-carte-de { rotate: 12deg; }
.d-carte-carte { width: 28px !important; rotate: -10deg; }
@media (prefers-reduced-motion: reduce) { .bandeau-dessins .dessin { animation: none; } }


/* =========================================================
   THÈME 14 JUILLET : bleu, blanc, rouge, drapeaux et feux d'artifice
   ========================================================= */
.saison-quatorze_juillet .bandeau-saison { background: linear-gradient(90deg, #002395 0 33.3%, #FFFFFF 33.3% 66.6%, #ED2939 66.6%); color: #0A1B4D; text-shadow: 0 0 6px #FFFFFF, 0 0 2px #FFFFFF; }
.saison-quatorze_juillet .entete { border-bottom: 0; position: relative; }
.saison-quatorze_juillet .entete::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -18px; height: 22px; pointer-events: none; z-index: 2;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='22'%3E%3Cpath d='M0 2 Q36 8 72 2' stroke='%23555' stroke-width='1.2' fill='none'/%3E%3Cpolygon points='4,3 20,4 12,20' fill='%23002395'/%3E%3Cpolygon points='28,5 44,5 36,21' fill='%23FFFFFF' stroke='%23C9CED8'/%3E%3Cpolygon points='52,4 68,3 60,20' fill='%23ED2939'/%3E%3C/svg%3E") repeat-x;
}
.saison-quatorze_juillet .bandeau { background: #002395 !important; border-bottom: 6px solid #ED2939; }
.saison-quatorze_juillet .bandeau-choux-site { background: linear-gradient(90deg, #002395, #0B2E9C) !important; }
.saison-quatorze_juillet .activite-choux { background: #002395; }
.saison-quatorze_juillet .activite-ludi { background: #FFFFFF; color: #002395; border: 3px solid #002395; }
.saison-quatorze_juillet .activite-ludi h2 { color: #002395; }
.saison-quatorze_juillet .activite-ludi .bouton { background: #002395 !important; color: #FFFFFF !important; }
.saison-quatorze_juillet .activite-zarg { background: #ED2939; }
.saison-quatorze_juillet .sous-nav-choux a[aria-current="page"], .saison-quatorze_juillet .zoom { background: #002395; }
.saison-quatorze_juillet .etiquette-avenir { background: #ED2939 !important; }
.saison-quatorze_juillet .pied { background: #0A1B4D; border-top: 6px solid #ED2939; }
.deco-drapeau { width: 56px; height: 72px; bottom: 8px; }
.deco-drapeau-gauche { left: 14px; }
.deco-drapeau-droite { right: 14px; transform: scaleX(-1); }
.deco-drapeau .flotte { transform-origin: 8px 26px; animation: flotte-drapeau 2.4s ease-in-out infinite; }
@keyframes flotte-drapeau { 0%, 100% { transform: skewY(0deg) scaleX(1); } 50% { transform: skewY(-4deg) scaleX(.94); } }


/* =========================================================
   THÈME CHANDELEUR : couleurs dorées et crêpes
   ========================================================= */
body.saison-chandeleur { background: #FFF8EC; }
.saison-chandeleur .bandeau-saison { background: #F6D18E; color: #5A2F07; }
.saison-chandeleur .entete { background: #FFFDF7; border-bottom-color: #D9963E; }
.saison-chandeleur .bandeau { background: linear-gradient(135deg, #C9792A, #9E5413) !important; }
.saison-chandeleur .activite-choux { background: #B5651D; }
.saison-chandeleur .activite-ludi { background: #8A4B12; }
.saison-chandeleur .activite-zarg { background: #C9792A; }
.saison-chandeleur .fond-gris, .saison-chandeleur .sous-nav-choux, .saison-chandeleur .contacts-choux,
.saison-chandeleur .section[style*="background"] { background: #FBEBD0 !important; border-color: #F0D3A2; }
.saison-chandeleur .sous-nav-choux a { color: #7A3E0C; }
.saison-chandeleur .sous-nav-choux a[aria-current="page"], .saison-chandeleur .zoom, .saison-chandeleur .bouton-choux { background: #B5651D; color: #FFFFFF; }
.saison-chandeleur .etiquette-avenir, .saison-chandeleur .jeu-pastille { background: #B5651D !important; }
.saison-chandeleur .actu { border-color: #F0D3A2 !important; }
.saison-chandeleur .actu .date, .saison-chandeleur .groupe, .saison-chandeleur .jour { color: #9E5413 !important; }
.saison-chandeleur .pied { background: #5A2F07; }
.deco-crepes { width: 78px; height: 70px; left: 12px; bottom: 8px; }
.deco-poele { width: 92px; height: 76px; right: 12px; bottom: 6px; }
.crepe-saute { transform-origin: 44px 30px; animation: saute 2.8s ease-in-out infinite; }
@keyframes saute {
  0%, 100% { transform: translateY(34px) rotate(0deg); }
  45% { transform: translateY(-4px) rotate(180deg); }
  60% { transform: translateY(0) rotate(360deg); }
  80% { transform: translateY(34px) rotate(360deg); }
}


/* =========================================================
   THÈME NOUVEL AN : bleu nuit, or, confettis et feux d'artifice
   ========================================================= */
body.saison-nouvel_an { background: #0E1630; color: #F4F1E8; }
.saison-nouvel_an .bandeau-saison { background: linear-gradient(90deg, #B8892B, #F2C14E, #B8892B); color: #0E1630; }
.saison-nouvel_an .entete { background: #0A1024; border-bottom-color: #F2C14E; }
.saison-nouvel_an .logo, .saison-nouvel_an .menu a { color: #F4F1E8; }
.saison-nouvel_an .menu a:hover, .saison-nouvel_an .menu a[aria-current="page"] { background: #1C2A55; color: #F2C14E; }
.saison-nouvel_an .menu-bouton { background: #0A1024; color: #F4F1E8; border-color: #F2C14E; }
.saison-nouvel_an a { color: #F2C14E; }
.saison-nouvel_an .bandeau, .saison-nouvel_an .activite { background: #0A1024 !important; color: #F4F1E8; border: 2px solid #F2C14E; }
.saison-nouvel_an .bandeau { border-width: 0 0 4px; }
.saison-nouvel_an .bandeau h1, .saison-nouvel_an .activite h2 { color: #F2C14E; }
.saison-nouvel_an .activite .bouton, .saison-nouvel_an .bouton { background: #F2C14E !important; color: #0E1630 !important; }
.saison-nouvel_an .fond-gris, .saison-nouvel_an .section[style*="background"], .saison-nouvel_an .contacts-choux,
.saison-nouvel_an .sous-nav-choux { background: #16204A !important; border-color: #2A3A70; }
.saison-nouvel_an .sous-nav-choux a { color: #F4F1E8; }
.saison-nouvel_an .sous-nav-choux a[aria-current="page"] { background: #F2C14E; color: #0E1630; }
.saison-nouvel_an .carte, .saison-nouvel_an .actu, .saison-nouvel_an .agenda li, .saison-nouvel_an .bloc-formulaire,
.saison-nouvel_an .carte-lien, .saison-nouvel_an .liste-cartes li, .saison-nouvel_an .calendrier li,
.saison-nouvel_an .jeu, .saison-nouvel_an .horaires li, .saison-nouvel_an .carte-compte, .saison-nouvel_an .message-recu,
.saison-nouvel_an .liste-gestion li, .saison-nouvel_an .photo, .saison-nouvel_an .photo figcaption {
  background: #16204A !important; color: #F4F1E8 !important; border-color: #2A3A70 !important;
}
.saison-nouvel_an .calendrier li.special, .saison-nouvel_an .nuit-du-jeu, .saison-nouvel_an .encart-sombre { background: #F2C14E !important; color: #0E1630; }
.saison-nouvel_an .nuit-du-jeu a, .saison-nouvel_an .calendrier li.special * { color: #0E1630; }
.saison-nouvel_an .encart-contour { border-color: #F2C14E; }
.saison-nouvel_an .zoom { background: #F2C14E; color: #0E1630 !important; }
.saison-nouvel_an .titre-section, .saison-nouvel_an h1, .saison-nouvel_an .titre-page-choux, .saison-nouvel_an .sous-titre-choux,
.saison-nouvel_an .frise h2, .saison-nouvel_an .charte h3 { color: #F4F1E8; }
.saison-nouvel_an .actu .date, .saison-nouvel_an .groupe, .saison-nouvel_an .frise .quand, .saison-nouvel_an .jour { color: #F2C14E !important; }
.saison-nouvel_an .etiquette-avenir, .saison-nouvel_an .jeu-pastille { background: #F2C14E !important; color: #0E1630; }
.saison-nouvel_an .frise { border-left-color: #F2C14E; }
.saison-nouvel_an .frise li::before { background: #0E1630; border-color: #F2C14E; }
.saison-nouvel_an .pied { background: #0A1024; border-top: 4px solid #F2C14E; }
.saison-nouvel_an .pied a { color: #F4F1E8; }
.saison-nouvel_an .formulaire input, .saison-nouvel_an .formulaire textarea, .saison-nouvel_an .formulaire select { background: #0E1630; color: #F4F1E8; border-color: #F2C14E; }
.saison-nouvel_an .agenda a, .saison-nouvel_an .carte-lien { color: #F4F1E8 !important; }
.saison-nouvel_an .aucun { background: #16204A; color: #CFD6EE; }
.saison-nouvel_an .bouton-maps { background: #16204A; color: #F4F1E8 !important; }
.saison-nouvel_an .edition form, .saison-nouvel_an .edition form * { color: var(--encre); }
.saison-nouvel_an .edition form input, .saison-nouvel_an .edition form textarea { background: var(--blanc); border-color: var(--encre); }
.deco-coupes { width: 86px; height: 78px; left: 12px; bottom: 8px; }
.deco-horloge { width: 58px; height: 58px; right: 16px; bottom: 14px; }

/* Confettis (créés par le script) */
.confettis { position: fixed; inset: 0; pointer-events: none; z-index: 50; overflow: hidden; }
.confetti { position: absolute; top: -14px; width: 8px; height: 14px; border-radius: 2px; animation: tomber-confetti linear infinite; }
@keyframes tomber-confetti { to { transform: translate(var(--derive, 20px), 105vh) rotate(720deg); } }

/* Feux d'artifice (créés par le script) */
.feux { position: fixed; inset: 0; pointer-events: none; z-index: 45; overflow: hidden; }
.bouquet { position: absolute; width: 0; height: 0; }
.etincelle {
  position: absolute; left: 0; top: 0; width: 6px; height: 6px; border-radius: 50%; margin: -3px 0 0 -3px;
  box-shadow: 0 0 8px currentColor; background: currentColor;
  animation: eclat 1.5s cubic-bezier(.15, .7, .3, 1) forwards;
}
@keyframes eclat {
  0% { transform: rotate(var(--angle)) translateX(0); opacity: 1; }
  70% { opacity: 1; }
  100% { transform: rotate(var(--angle)) translateX(var(--portee, 80px)) translateY(18px); opacity: 0; }
}

/* Petits écrans et mouvements réduits */
@media (max-width: 700px) {
  .deco-drapeau, .deco-crepes, .deco-poele, .deco-coupes, .deco-horloge { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .confettis, .feux { display: none; }
  .deco-drapeau .flotte, .crepe-saute { animation: none !important; }
}


/* =========================================================
   LES CHOUX DU CIRQUE AUX COULEURS DU CIRQUE : rouge, blanc, doré
   ========================================================= */
:root {
  --choux: #C8102E;        /* rouge cirque */
  --choux-fonce: #8E0B20;
  --choux-clair: #FFF3DC;  /* crème */
  --or: #D4A017;           /* doré */
}
/* Les messages « c'est enregistré » restent verts */
.flash-ok { background: #E3F1E1; color: #1F5A28; border-left-color: #2F7D3B; }

/* Bandeau rayé comme un chapiteau, avec un liseré doré */
.bandeau-choux, .bandeau-choux-site {
  background: repeating-linear-gradient(90deg, #C8102E 0 56px, #B00C27 56px 112px) !important;
  border-bottom: 8px solid var(--or); position: relative; overflow: hidden;
}
.bandeau-choux h1 { text-shadow: 0 3px 0 #6E0818, 0 0 18px rgba(212, 160, 23, .45); }
.bandeau-choux-site .sur-titre { color: #FFD866; opacity: 1; }
.bandeau-choux .conteneur { position: relative; z-index: 1; }

/* Menu des Choux */
.sous-nav-choux { background: var(--choux-clair); border-bottom: 3px solid var(--or); }
.sous-nav-choux a { color: var(--choux-fonce); }
.sous-nav-choux a:hover { background: #FFE7B8; }
.sous-nav-choux a[aria-current="page"] { background: var(--choux); color: #FFFFFF; box-shadow: inset 0 0 0 2px var(--or); }

/* Cartes, actualités et boutons des Choux */
.page-choux .actu { border-color: #EAD7A0; }
.page-choux .actu .date { color: var(--choux-fonce); }
.page-choux .carte { background: var(--choux-clair); border: 2px solid #F2DFAE; }
.page-choux .horaires li { background: var(--choux-clair); }
.zoom { background: var(--choux); border: 3px solid var(--or); }
.zoom span { color: #FFD866; opacity: 1; }
.zoom:hover { background: var(--choux-fonce); }
.carte-lien { background: var(--choux-clair); border-color: #F2DFAE; }
.carte-lien:hover { border-color: var(--or); }
.contacts-choux { background: var(--choux-clair); border-top: 3px solid var(--or); }
.charte h3, .sous-titre-choux { color: var(--choux-fonce); }
.actus-choux .etiquette-avenir, .page-choux .etiquette-avenir { background: var(--choux); }

/* Carte « Les Choux du Cirque » de l'accueil */
.activite-choux {
  background: repeating-linear-gradient(90deg, #C8102E 0 40px, #B00C27 40px 80px);
  border: 3px solid var(--or); box-shadow: 0 0 0 3px #FFFDF6 inset;
}
.activite-choux .bouton { color: var(--choux-fonce); }

/* Dessins de cirque dans le bandeau des Choux */
.bandeau-choux .bandeau-dessins span { position: absolute; display: block; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .25)); animation: flotter 6s ease-in-out infinite; }
.c-chapiteau { width: 150px; right: 6%;  top: 16%; }
.c-balle1 { width: 46px; right: 28%; top: 14%; animation-name: jongle !important; animation-duration: 2.4s !important; }
.c-balle2 { width: 40px; right: 24%; top: 40%; animation-name: jongle !important; animation-duration: 2.4s !important; animation-delay: -.8s !important; }
.c-balle3 { width: 42px; right: 31%; top: 46%; animation-name: jongle !important; animation-duration: 2.4s !important; animation-delay: -1.6s !important; }
.c-massue1 { width: 30px; right: 20%; top: 60%; rotate: 24deg; }
.c-massue2 { width: 28px; right: 37%; top: 22%; rotate: -20deg; animation-delay: -2s !important; }
.c-etoile1 { width: 42px; right: 2%;  top: 70%; animation-delay: -1s !important; }
.c-etoile2 { width: 30px; right: 18%; top: 8%; animation-delay: -3s !important; }
@keyframes jongle { 0%, 100% { translate: 0 18px; } 50% { translate: 0 -22px; } }
@media (max-width: 1000px) { .c-massue2, .c-balle3, .c-etoile2 { display: none; } }
@media (max-width: 700px) { .bandeau-choux .bandeau-dessins { opacity: .3; } }


/* =========================================================
   DESSINS DE JEUX DANS LES MARGES DE TOUTES LES PAGES
   ========================================================= */
body { position: relative; }
.decor-marges { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.entete, main, .pied, .barre-admin, .bandeau-saison, .flash { position: relative; z-index: 1; }
.decor-item {
  position: absolute; display: block; width: var(--t); transform: rotate(var(--r));
  filter: drop-shadow(0 6px 10px rgba(28, 35, 64, .18));
  animation: balancer 7s ease-in-out infinite; animation-delay: var(--delai);
}
/* Grand écran : entiers dans la marge ; écran moyen : ils dépassent du bord */
.decor-g { left: max(calc(var(--t) * -0.5), calc(50% - 600px - var(--t) - 10px)); }
.decor-d { right: max(calc(var(--t) * -0.5), calc(50% - 600px - var(--t) - 10px)); }
@keyframes balancer {
  0%, 100% { transform: rotate(var(--r)) translateY(0); }
  50% { transform: rotate(calc(var(--r) * -0.4)) translateY(-10px); }
}
@media (max-width: 760px) { .decor-marges { display: none; } }

/* Grand groupe de dessins sur l'accueil */
.accroche .conteneur { position: relative; }
.accroche-dessins { position: absolute; right: 24px; top: -20px; width: 330px; height: 330px; pointer-events: none; }
.accroche-dessins .ad { position: absolute; display: block; filter: drop-shadow(0 8px 12px rgba(28, 35, 64, .2)); animation: flotter 6s ease-in-out infinite; }
.ad-de     { width: 120px; left: 120px; top: 40px;  rotate: 14deg; }
.ad-carte  { width: 92px;  left: 20px;  top: 20px;  rotate: -16deg; animation-delay: -1s !important; }
.ad-perso  { width: 96px;  left: 230px; top: 0;     rotate: 10deg; animation-delay: -2s !important; }
.ad-jeton  { width: 80px;  left: 240px; top: 150px; animation-delay: -3s !important; }
.ad-domino { width: 54px;  left: 40px;  top: 170px; rotate: 22deg; animation-delay: -1.5s !important; }
.ad-de2    { width: 70px;  left: 140px; top: 190px; rotate: -20deg; animation-delay: -2.5s !important; }
.ad-balle  { width: 46px;  left: 0;     top: 270px; animation-delay: -4s !important; }
.ad-etoile { width: 50px;  left: 280px; top: 260px; rotate: 12deg; animation-delay: -.5s !important; }
@media (max-width: 1150px) { .accroche-dessins { opacity: .25; } }
@media (max-width: 760px) { .accroche-dessins { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .decor-item, .accroche-dessins .ad, .bandeau-choux .bandeau-dessins span { animation: none !important; }
}
/* Le grand titre de l'accueil laisse la place aux dessins à sa droite */
@media (min-width: 1151px) { .accroche h1, .accroche .zone { max-width: calc(100% - 360px); } }


/* =========================================================
   LES Z'ARGUMENTEURS EN VIOLET (couleur de scène et de théâtre)
   ========================================================= */
:root {
  --zarg: #6A2C91;
  --zarg-fonce: #4B1D68;
  --zarg-clair: #F1E6F8;
}
.bandeau-zarg { background: radial-gradient(circle at 85% 20%, #8A45B8 0, #6A2C91 45%, #4B1D68 100%) !important; position: relative; overflow: hidden; border-bottom: 6px solid #F2C14E; }
.bandeau-zarg .conteneur { position: relative; z-index: 1; }
.activite-zarg { background: radial-gradient(circle at 90% 10%, #8A45B8 0, #6A2C91 55%, #4B1D68 100%); }
.actus-zarg .actu { border-color: #DCC7EC; }
.page-zarg .carte-zarg { border: 2px solid #E2D0EF; }
.bandeau-zarg .bandeau-dessins span { position: absolute; display: block; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .3)); animation: flotter 6s ease-in-out infinite; }
.z-masques { width: 170px; right: 7%; top: 14%; rotate: -6deg; }
.z-projecteur { width: 90px; right: 27%; top: 6%; animation-delay: -2s !important; }
.z-etoile { width: 40px; right: 3%; top: 66%; animation-delay: -1s !important; }
.z-etoile2 { width: 26px; right: 24%; top: 64%; animation-delay: -3s !important; }
@media (max-width: 900px) { .z-projecteur, .z-etoile2 { display: none; } }
@media (max-width: 700px) { .bandeau-zarg .bandeau-dessins { opacity: .3; } }


/* =========================================================
   DESSINS DES MARGES : placement irrégulier et mouvements variés
   ========================================================= */
.decor-item { animation-duration: var(--duree, 7s); }
/* Grand écran : dans la marge, plus ou moins loin du texte ; écran moyen : ils dépassent plus ou moins du bord */
.decor-g { left: max(calc(var(--t) * -0.55 + var(--dx) * 0.5), calc(50% - 600px - var(--t) - 6px - var(--dx))); }
.decor-d { right: max(calc(var(--t) * -0.55 + var(--dx) * 0.5), calc(50% - 600px - var(--t) - 6px - var(--dx))); }
.anim-balancer { animation-name: balancer; }
.anim-tourner { animation-name: tourner-doucement; }
.anim-sautiller { animation-name: sautiller; }
@keyframes tourner-doucement {
  0%, 100% { transform: rotate(var(--r)) scale(1); }
  50% { transform: rotate(calc(var(--r) + 14deg)) scale(1.05); }
}
@keyframes sautiller {
  0%, 60%, 100% { transform: rotate(var(--r)) translateY(0); }
  70% { transform: rotate(var(--r)) translateY(-16px); }
  80% { transform: rotate(var(--r)) translateY(0); }
  88% { transform: rotate(var(--r)) translateY(-6px); }
}
/* Espace au-dessus de « Nos activités » (page L'association) */
.liste-activites-asso { margin-top: 32px; }
/* Accueil : le grand groupe mélange cirque, jeux et théâtre */
.ad-perso { width: 120px !important; left: 200px !important; top: -6px !important; }
.ad-de2   { width: 96px !important; left: 130px !important; top: 176px !important; }
.ad-domino { width: 30px !important; left: 60px !important; top: 160px !important; }
.ad-balle { width: 64px !important; left: 10px !important; top: 250px !important; }


/* =========================================================
   LOGO : emblème + nom de l'association
   ========================================================= */
.logo { display: inline-flex; align-items: center; gap: 12px; line-height: 1.05; }
.logo-embleme { width: 48px; height: 48px; flex-shrink: 0; border-radius: 14px; box-shadow: 0 4px 12px rgba(26, 52, 128, .28); transition: transform .25s ease; }
img.logo-embleme { object-fit: contain; background: #FFFFFF; }
.logo:hover .logo-embleme { transform: rotate(-6deg) scale(1.06); }
.logo-texte { display: flex; flex-direction: column; }
.logo-sous-titre { font-family: var(--police-texte); font-weight: 700; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: #4A5272; margin-top: 4px; }
.nom-asso { display: flex; align-items: center; gap: 12px; }
.logo-pied { width: 40px; height: 40px; box-shadow: none; }
@media (max-width: 520px) {
  .logo-embleme { width: 40px; height: 40px; }
  .logo-sous-titre { display: none; }
}
/* Thèmes sombres : le sous-titre reste lisible */
.saison-halloween .logo-sous-titre, .saison-nouvel_an .logo-sous-titre { color: #CFC6D6; }
@media (prefers-reduced-motion: reduce) { .logo-embleme { transition: none; } }


/* =========================================================
   LOGO D'ORIGINE MODERNISÉ : la silhouette du quartier
   ========================================================= */
.logo-embleme { box-shadow: 0 4px 14px rgba(10, 79, 214, .32); }

/* La silhouette du quartier borde le haut du pied de page, sur toute la largeur.
   Elle prend la couleur du pied de page (même avec les thèmes de fêtes). */
.pied { margin-top: 84px; }
.pied::before {
  content: ""; position: absolute; left: 0; right: 0; top: -78px; height: 80px; pointer-events: none;
  background: inherit;
  -webkit-mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%20200%2050%22%3E%3Cpath%20d%3D%22M0%2050%20L0%2044%20L10%2044%20L10%2038%20L7%2038%20Q4%2033%208%2031%20Q9%2026%2014%2028%20Q19%2026%2020%2031%20Q24%2033%2021%2038%20L16%2038%20L16%2044%20L22%2044%20L22%2034%20L30%2027%20L38%2034%20L38%2044%20L44%2044%20L44%2014%20L54%2014%20L54%2044%20L57%2044%20L57%2030%20L60%2030%20L63%2015%20L66%2030%20L72%2030%20L72%2044%20L76%2044%20Q74%2030%2078%2015%20Q82%2030%2080%2044%20L86%2044%20L86%2033%20L94%2026%20L102%2033%20L102%2044%20L104%2044%20Q106%2040%20108%2044%20Q110%2040%20112%2044%20Q114%2040%20116%2044%20Q118%2040%20120%2044%20L122%2044%20L122%2032%20L126%2032%20L126%2028%20L129%2028%20L129%2032%20L136%2026%20L143%2032%20L143%2044%20L148%2044%20L148%2020%20L156%2020%20L156%2044%20L160%2044%20L160%2034%20L168%2028%20L176%2034%20L176%2044%20L182%2044%20L182%2038%20Q177%2037%20178%2032%20Q179%2026%20185%2027%20Q191%2026%20192%2032%20Q193%2037%20188%2038%20L188%2044%20L200%2044%20L200%2050%20Z%22%20fill%3D%22black%22/%3E%3C/svg%3E") repeat-x left bottom / 320px 80px;
          mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%20200%2050%22%3E%3Cpath%20d%3D%22M0%2050%20L0%2044%20L10%2044%20L10%2038%20L7%2038%20Q4%2033%208%2031%20Q9%2026%2014%2028%20Q19%2026%2020%2031%20Q24%2033%2021%2038%20L16%2038%20L16%2044%20L22%2044%20L22%2034%20L30%2027%20L38%2034%20L38%2044%20L44%2044%20L44%2014%20L54%2014%20L54%2044%20L57%2044%20L57%2030%20L60%2030%20L63%2015%20L66%2030%20L72%2030%20L72%2044%20L76%2044%20Q74%2030%2078%2015%20Q82%2030%2080%2044%20L86%2044%20L86%2033%20L94%2026%20L102%2033%20L102%2044%20L104%2044%20Q106%2040%20108%2044%20Q110%2040%20112%2044%20Q114%2040%20116%2044%20Q118%2040%20120%2044%20L122%2044%20L122%2032%20L126%2032%20L126%2028%20L129%2028%20L129%2032%20L136%2026%20L143%2032%20L143%2044%20L148%2044%20L148%2020%20L156%2020%20L156%2044%20L160%2044%20L160%2034%20L168%2028%20L176%2034%20L176%2044%20L182%2044%20L182%2038%20Q177%2037%20178%2032%20Q179%2026%20185%2027%20Q191%2026%20192%2032%20Q193%2037%20188%2038%20L188%2044%20L200%2044%20L200%2050%20Z%22%20fill%3D%22black%22/%3E%3C/svg%3E") repeat-x left bottom / 320px 80px;
}
/* Les bordures colorées de certains thèmes passent sous la silhouette */
.saison-halloween .pied, .saison-nouvel_an .pied, .saison-quatorze_juillet .pied { border-top: 0; }


/* =========================================================
   DIAPORAMA DE PHOTOS : même cadre pour toutes, photo entière
   ========================================================= */
.diaporama { position: relative; border-radius: 22px; overflow: hidden; background: #1C2340; box-shadow: 0 8px 24px rgba(28, 35, 64, .18); }
.diapo-piste { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; }
.diapo-piste::-webkit-scrollbar { display: none; }
.diapo-piste:focus-visible { outline: 3px solid #F2C14E; outline-offset: -3px; }
/* Chaque photo occupe exactement le même cadre (16/10, 520 px de haut au maximum)… */
.diapo {
  position: relative; flex: 0 0 100%; margin: 0; scroll-snap-align: center;
  aspect-ratio: 16 / 10; max-height: 520px; display: flex; align-items: center; justify-content: center; overflow: hidden;
}
/* … avec, derrière, la même photo floutée pour remplir les côtés vides */
.fond-flou {
  position: absolute; inset: -20px; background-position: center; background-size: cover; background-repeat: no-repeat;
  filter: blur(18px) brightness(.7); transform: scale(1.1);
}
/* … et la photo elle-même, rétrécie pour être affichée en entier, sans être coupée */
.diapo img { position: relative; width: 100%; height: 100%; object-fit: contain; }
.diapo figcaption {
  position: absolute; left: 16px; bottom: 16px; max-width: calc(100% - 32px);
  background: rgba(28, 35, 64, .78); color: #FFFFFF; font-weight: 700; font-size: 15px; padding: 6px 14px; border-radius: 999px;
}
.diaporama-multiple .diapo figcaption { bottom: 52px; }
/* Flèches, points et compteur (seulement s'il y a plusieurs photos) */
.diapo-btn {
  position: absolute; top: 50%; translate: 0 -50%; width: 48px; height: 48px; border-radius: 50%; border: 0;
  background: rgba(255, 255, 255, .92); color: #1C2340; font-size: 30px; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center; padding-bottom: 4px; box-shadow: 0 4px 12px rgba(0, 0, 0, .25);
}
.diapo-btn:hover { background: #FFFFFF; transform: scale(1.06); }
.diapo-prec { left: 14px; }
.diapo-suiv { right: 14px; }
.diapo-bas {
  position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: center; align-items: center; gap: 14px;
  padding: 10px; background: linear-gradient(transparent, rgba(0, 0, 0, .45));
}
.diapo-points { display: flex; gap: 7px; flex-wrap: wrap; justify-content: center; }
.diapo-points button { width: 10px; height: 10px; border-radius: 50%; border: 0; padding: 0; background: rgba(255, 255, 255, .5); cursor: pointer; }
.diapo-points button[aria-current="true"] { background: #FFFFFF; transform: scale(1.3); }
.diapo-compteur { margin: 0; color: #FFFFFF; font-size: 14px; font-weight: 700; }
@media (max-width: 600px) { .diapo-btn { width: 38px; height: 38px; font-size: 24px; } }

/* Gestion des photos (administrateurs) */
.gestion-photos { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.gestion-photos li { background: var(--blanc); border-radius: 12px; padding: 8px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.gestion-photos img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; background: #EEF0F6; border-radius: 8px; }
.gestion-photos form { border: 0 !important; padding: 0 !important; background: none !important; }

/* Photos des actualités : même cadre pour toutes, photo entière */
.cadre-photo { position: relative; overflow: hidden; border-radius: 14px; margin: 4px 0 12px; aspect-ratio: 16 / 10; max-height: 380px; background: #1C2340; }
.cadre-photo .actu-image { position: relative; width: 100%; height: 100%; max-height: none; margin: 0; border-radius: 0; object-fit: contain; }

/* Photos des jeux : la boîte entière, dans un cadre identique */
.jeu-image { object-fit: contain !important; background: #FFFFFF; padding: 4px; }
@media (prefers-reduced-motion: reduce) { .diapo-piste { scroll-behavior: auto; } }

/* Photos des actualités : même diaporama, un peu moins haut */
.diaporama-actu { margin: 6px 0 14px; border-radius: 14px; box-shadow: none; }
.diaporama-actu .diapo { max-height: 380px; }
.photos-actuelles { border: 2px solid var(--gris-bord); border-radius: 12px; padding: 10px 12px; margin: 12px 0; }
.photos-actuelles legend { font-weight: 700; font-size: 15px; padding: 0 6px; }
.photos-actuelles .gestion-photos { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); margin-top: 6px; }


/* Cartes « Zoom » des Choux, avec leur photo (comme sur le site d'origine) */
.zoom-carte { display: flex; flex-direction: column; }
.zoom-choux .zoom { display: flex; flex-direction: column; padding: 14px 14px 20px; height: 100%; }
.zoom-choux .zoom img {
  display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 14px; margin-bottom: 14px;
  border: 3px solid #FFF3DC; background: #FFF3DC; transition: transform .3s ease;
}
.zoom-choux .zoom:hover img { transform: scale(1.03); }
.zoom-choux .zoom span { margin-top: 2px; }
.zoom-choux .edition { margin-top: 10px; }
@media (prefers-reduced-motion: reduce) { .zoom-choux .zoom img { transition: none; } }


/* =========================================================
   BOUTON « REMONTER EN HAUT » – fanion de cirque (pages des Choux)
   ========================================================= */
.retour-haut {
  position: fixed; right: 22px; bottom: 22px; z-index: 60; width: 64px; height: 90px; padding: 0;
  background: none; border: 0; cursor: pointer; filter: drop-shadow(0 6px 10px rgba(110, 8, 24, .35));
  transform-origin: top center; transform: translateY(-30px) rotate(-8deg); opacity: 0;
  transition: transform .45s cubic-bezier(.3, 1.6, .5, 1), opacity .3s ease;
}
.retour-haut svg { width: 100%; height: 100%; display: block; }
.retour-haut { pointer-events: none; }
.retour-haut.visible { transform: translateY(0) rotate(0); opacity: 1; pointer-events: auto; }
.retour-haut.visible:hover { animation: fanion 1.1s ease-in-out infinite; }
.retour-haut:focus-visible { outline: 3px solid #D4A017; outline-offset: 4px; border-radius: 8px; }
@keyframes fanion { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(7deg); } 75% { transform: rotate(-7deg); } }
/* Avec un thème de fête, les dessins occupent déjà le coin : le fanion monte un peu */
body[class*="saison-"] .retour-haut { bottom: 100px; }
@media (max-width: 600px) { .retour-haut { width: 52px; height: 73px; right: 14px; bottom: 14px; } body[class*="saison-"] .retour-haut { bottom: 14px; } }
@media (prefers-reduced-motion: reduce) { .retour-haut { transition: opacity .2s ease; transform: none; } .retour-haut.visible:hover { animation: none; } }


/* Photos « clean » : plus de fond flouté derrière, simplement un fond uni très clair */
.fond-flou { display: none !important; }
.diaporama, .diaporama-actu, .cadre-photo { background: #F3F4F7; box-shadow: none; border: 1px solid #E3E6EE; }
.diapo-bas { background: linear-gradient(transparent, rgba(28, 35, 64, .35)); }
/* Actualités passées : plus de transparence (les photos restent nettes) ; seul le texte est plus discret */
.actu-passee { opacity: 1 !important; }
.actu-passee h3, .actu-passee .actu-texte { color: #5A6178; }
