/*
Theme Name: Sur mes Branches
Theme URI: https://surmesbranches.fr
Author: tCT Conseil
Author URI: https://caditazi.fr
Description: Thème sur mesure de l'association Sur mes Branches, repris de la maquette « Forêt » validée le 11 septembre 2026 et de ses retours.
Version: 0.2.0
Requires at least: 6.6
Requires PHP: 8.1
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: surmesbranches
*/

/* Charte : cahier des charges CDC-2026-SMB §6. Les mêmes couleurs sont déclarées
   dans theme.json pour l'éditeur de blocs. */

@font-face {
  font-family: "Caveat";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("assets/fonts/caveat.woff2") format("woff2");
}
@font-face {
  font-family: "Fredoka";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("assets/fonts/fredoka.woff2") format("woff2");
}
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 200 1000;
  font-display: swap;
  src: url("assets/fonts/nunito.woff2") format("woff2");
}
@font-face {
  font-family: "Nunito";
  font-style: italic;
  font-weight: 200 1000;
  font-display: swap;
  src: url("assets/fonts/nunito-italic.woff2") format("woff2");
}

:root {
  --vert: #1F4A3D;
  --beige: #F3EFE2;
  --tendre: #E4ECD8;
  --orange: #D9722C;
  --orange-fonce: #B85C1E;
  --jaune: #E0A94E;
  --violet: #2C2340;
  --texte: #2C2340;
  --texte-doux: #4F4A5E;
  --blanc: #FFFFFF;
  --titre: "Fredoka", "Trebuchet MS", "Segoe UI", sans-serif;
  --manuscrit: "Caveat", "Segoe Script", "Comic Sans MS", cursive;
  --texte-police: "Nunito", "Segoe UI", Arial, sans-serif;
  --rayon: 14px;
  --ombre: 0 4px 16px rgba(44, 35, 64, 0.10);
  --largeur: 1120px;
  --largeur-texte: 760px;
  --hauteur-entete: 84px;
  --barre-admin: 0px;
  /* Encart « En pratique » : vert clair. Variante violet clair : #E6DDF2 et #4E3A7A. */
  --encart-fond: var(--tendre);
  --encart-accent: var(--vert);
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--hauteur-entete) + var(--barre-admin) + 12px); }

body {
  margin: 0;
  font-family: var(--texte-police);
  font-size: 17px;
  line-height: 1.6;
  color: var(--texte);
  background: var(--beige);
}

h1, h2, h3, h4 {
  font-family: var(--titre);
  font-weight: 600;
  color: var(--violet);
  line-height: 1.2;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1em; }

a { color: var(--vert); }
a:hover { color: var(--orange-fonce); }
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 2px;
  border-radius: 4px;
}

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

.conteneur {
  width: min(100% - 2.5rem, var(--largeur));
  margin-inline: auto;
}

.manuscrit {
  font-family: var(--manuscrit);
  font-weight: 700;
  color: var(--orange-fonce);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  line-height: 1.1;
}

.surtitre {
  font-family: var(--manuscrit);
  font-size: 1.5rem;
  color: var(--orange-fonce);
  margin: 0;
}

.sr-only, .screen-reader-text {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.lien-evitement {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--blanc); color: var(--vert);
  padding: 0.6rem 1rem; border-radius: 0 0 10px 10px;
  font-family: var(--titre);
}
.lien-evitement:focus { top: 0; }

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

.bouton,
.wp-block-button__link {
  display: inline-block;
  padding: 0.7em 1.5em;
  border-radius: 999px;
  background: var(--orange);
  color: var(--blanc);
  font-family: var(--titre);
  font-weight: 600;
  font-size: 1.05rem;
  line-height: 1.3;
  text-decoration: none;
  border: 2px solid var(--orange);
  cursor: pointer;
  transition: background 0.15s, transform 0.15s;
}
.bouton:hover,
.wp-block-button__link:hover { background: var(--orange-fonce); border-color: var(--orange-fonce); color: var(--blanc); transform: translateY(-1px); }

.bouton--secondaire,
.is-style-outline > .wp-block-button__link {
  background: transparent;
  color: var(--vert);
  border-color: var(--vert);
}
.bouton--secondaire:hover,
.is-style-outline > .wp-block-button__link:hover { background: var(--vert); color: var(--blanc); border-color: var(--vert); }

.bouton--clair {
  background: var(--jaune);
  border-color: var(--jaune);
  color: var(--violet);
}
.bouton--clair:hover { background: #d19a3c; border-color: #d19a3c; color: var(--violet); }

/* ---------- En-tête : bandeau vert clair, nom de l'association en grand ---------- */

body.admin-bar { --barre-admin: 32px; }
@media (max-width: 782px) { body.admin-bar { --barre-admin: 46px; } }
@media (max-width: 600px) { body.admin-bar { --barre-admin: 0px; } }

.site-header {
  background: var(--tendre);
  color: var(--vert);
  position: sticky;
  top: var(--barre-admin);
  z-index: 20;
  border-bottom: 3px solid var(--vert);
  box-shadow: 0 2px 10px rgba(31, 74, 61, 0.12);
}

.site-header .conteneur {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 0.75rem;
  min-height: var(--hauteur-entete);
  padding-block: 0.4rem;
  flex-wrap: wrap;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--vert);
}
.logo:hover { color: var(--vert); }
.logo svg {
  height: clamp(48px, 13vw, 58px);
  width: auto;
  flex: none;
}
.logo span {
  font-family: var(--manuscrit);
  font-weight: 700;
  font-size: clamp(1.6rem, 6.2vw, 2.5rem);
  line-height: 1;
  white-space: nowrap;
}
@media (min-width: 1000px) {
  .logo svg { height: 70px; }
}

.menu-toggle { position: absolute; opacity: 0; pointer-events: none; }
.menu-bouton {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--titre);
  font-weight: 500;
  font-size: 1rem;
  padding: 0.45rem 0.9rem;
  border: 2px solid var(--vert);
  border-radius: 999px;
  cursor: pointer;
}
.menu-bouton::before { content: "☰"; font-size: 1.2rem; line-height: 1; }
.menu-toggle:checked + .menu-bouton { background: var(--vert); color: var(--blanc); }
.menu-toggle:checked + .menu-bouton::before { content: "✕"; }
.menu-toggle:focus-visible + .menu-bouton { outline: 3px solid var(--orange); outline-offset: 2px; }

.nav-principale {
  display: none;
  width: 100%;
  max-height: calc(100vh - var(--hauteur-entete) - var(--barre-admin));
  overflow-y: auto;
}
.menu-toggle:checked ~ .nav-principale { display: block; }

.nav-principale ul {
  list-style: none;
  margin: 0;
  padding: 0.5rem 0 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.nav-principale a {
  display: block;
  color: var(--vert);
  text-decoration: none;
  font-family: var(--titre);
  font-weight: 500;
  font-size: 1.05rem;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
}
.nav-principale a:hover { background: rgba(31, 74, 61, 0.12); color: var(--vert); }
.nav-principale .current-menu-item > a,
.nav-principale .current-menu-ancestor > a,
.nav-principale .current-page-ancestor > a {
  background: var(--vert);
  color: var(--blanc);
}

/* Sous-menus (CSS pur : survol et focus à l'ordinateur, liste dépliée sur mobile) */
.nav-principale .menu-item-has-children { position: relative; }
.nav-principale .menu-item-has-children > a::after { content: " ▾"; font-size: 0.8em; opacity: 0.8; }
.nav-principale .sub-menu {
  padding: 0 0 0 1rem;
  gap: 0;
}
.nav-principale .sub-menu a { font-size: 0.95rem; font-weight: 400; padding: 0.3rem 0.75rem; }
.nav-principale .sub-menu .current-menu-item > a { background: transparent; color: var(--orange-fonce); font-weight: 600; }
.nav-principale .sub-menu .menu-tout > a { font-weight: 500; }

@media (min-width: 1000px) {
  .site-header .conteneur { flex-wrap: nowrap; }
  .menu-bouton { display: none; }
  .nav-principale { display: block; width: auto; max-height: none; overflow: visible; }
  .nav-principale ul { flex-direction: row; gap: 0.15rem; padding: 0; }
  .nav-principale a { white-space: nowrap; padding-inline: 0.65rem; }
  .nav-principale .sub-menu {
    position: absolute; top: 100%; left: 0; z-index: 30;
    min-width: 272px; padding: 0.5rem 0;
    flex-direction: column;
    background: var(--blanc);
    border-radius: 0 0 12px 12px;
    border-top: 3px solid var(--vert);
    box-shadow: 0 10px 24px rgba(31, 74, 61, 0.22);
    display: none;
  }
  .nav-principale .menu-item-has-children:hover > .sub-menu,
  .nav-principale .menu-item-has-children:focus-within > .sub-menu { display: flex; }
  .nav-principale .sub-menu a { border-radius: 0; padding: 0.4rem 1.1rem; white-space: normal; }
  .nav-principale .sub-menu .menu-tout > a {
    border-bottom: 1px solid var(--tendre); margin-bottom: 0.3rem; padding-bottom: 0.6rem;
  }
}

/* ---------- Bandeau d'accueil : plus de photo de fond, une photo ronde ---------- */

.hero {
  position: relative;
  background: var(--vert);
  color: var(--blanc);
  overflow: hidden;
  isolation: isolate;
}
.hero .conteneur {
  display: grid;
  gap: 2rem;
  align-items: center;
  text-align: center;
  padding-block: 3rem 3.5rem;
}
.hero__photo {
  width: min(72%, 340px);
  aspect-ratio: 1;
  margin-inline: auto;
  border-radius: 50%;
  overflow: hidden;
  border: 8px solid var(--tendre);
  outline: 3px dashed var(--jaune);
  outline-offset: 7px;
}
.hero__photo img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 860px) {
  .hero .conteneur { grid-template-columns: 1fr 360px; gap: 3.5rem; text-align: left; padding-block: 4.5rem 5rem; }
  .hero__photo { order: 2; width: 340px; }
}
.hero h1 { color: var(--blanc); }
.hero .accroche {
  font-family: var(--manuscrit);
  font-weight: 700;
  color: var(--jaune);
  font-size: clamp(2rem, 4.5vw, 2.8rem);
  line-height: 1.1;
  margin-bottom: 0.3em;
}
.hero p { font-size: 1.15rem; max-width: 34em; margin-inline: auto; }
@media (min-width: 860px) { .hero p { margin-inline: 0; } }
.hero .actions { display: flex; gap: 0.75rem; flex-wrap: wrap; justify-content: center; margin-top: 1.5rem; }
@media (min-width: 860px) { .hero .actions { justify-content: flex-start; } }

/* Spirale décorative (rappel du logo) */
.spirale {
  position: absolute;
  width: 260px;
  height: 260px;
  opacity: 0.3;
  pointer-events: none;
  z-index: -1;
  fill: none;
  stroke: var(--jaune);
  stroke-width: 2.5;
  stroke-linecap: round;
}
.spirale--bas-gauche { bottom: -110px; left: -90px; }
.spirale--bas-droite { bottom: -120px; right: -100px; width: 440px; height: 440px; opacity: 0.22; }

/* ---------- Sections ---------- */

.section { padding-block: 3.5rem; }
.section--tendre { background: var(--tendre); }

.section__tete {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.section__tete h2 { margin: 0; }

.grille {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .grille--2, .grille--3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .grille--3 { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Activités : cartes à photo ronde ---------- */

.activites {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.activites > li { flex: 1 1 232px; max-width: 262px; display: flex; }

.carte {
  background: var(--blanc);
  border-radius: var(--rayon);
  box-shadow: var(--ombre);
  display: flex;
  flex-direction: column;
  width: 100%;
}
.carte--activite { text-align: center; padding: 1.5rem 1.1rem 1.25rem; position: relative; transition: transform 0.15s, box-shadow 0.15s; }
.carte--activite:hover { transform: translateY(-3px); box-shadow: 0 8px 22px rgba(44, 35, 64, 0.16); }
.carte--activite .rond {
  width: 168px;
  aspect-ratio: 1;
  margin: 0 auto 1rem;
  border-radius: 50%;
  overflow: hidden;
  border: 6px solid var(--tendre);
  outline: 2px dashed var(--jaune);
  outline-offset: 4px;
  flex: none;
}
.carte--activite .rond img { width: 100%; height: 100%; object-fit: cover; }
.carte--activite .carte__titre { font-size: 1.2rem; margin-bottom: 0.35em; }
.carte--activite .carte__titre a { color: inherit; text-decoration: none; }
/* Toute la carte est cliquable */
.carte--activite .carte__titre a::after { content: ""; position: absolute; inset: 0; border-radius: var(--rayon); }
.carte--activite p { color: var(--texte-doux); font-size: 0.97rem; flex: 1; margin-bottom: 0.75em; }
.carte--activite .lien { font-family: var(--titre); font-weight: 500; color: var(--vert); }
.carte--activite .lien::after { content: " →"; }
.carte--activite:hover .lien { color: var(--orange-fonce); }

@media (max-width: 559px) {
  .activites { gap: 0.9rem; }
  .activites > li { flex-basis: 100%; max-width: none; }
  .carte--activite {
    display: grid;
    grid-template-columns: 96px 1fr;
    column-gap: 1rem;
    align-items: center;
    text-align: left;
    padding: 1rem;
  }
  .carte--activite .rond { width: 96px; margin: 0; grid-row: 1 / span 3; border-width: 4px; outline-offset: 3px; }
  .carte--activite .carte__titre { font-size: 1.1rem; margin: 0 0 0.2em; }
  .carte--activite p { font-size: 0.92rem; margin-bottom: 0.3em; }
}

/* Cadre « photo à fournir » */
.photo {
  background:
    repeating-linear-gradient(135deg, rgba(31, 74, 61, 0.08) 0 12px, transparent 12px 24px),
    var(--tendre);
  display: grid;
  place-items: center;
  color: var(--vert);
  font-family: var(--manuscrit);
  font-size: 1.4rem;
  text-align: center;
  padding: 1rem;
  border: 2px dashed rgba(31, 74, 61, 0.35);
}

.photo-ronde {
  width: min(100%, 300px);
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  border: 8px solid var(--tendre);
  outline: 3px dashed var(--jaune);
  outline-offset: 6px;
  margin-inline: auto;
}
.photo-ronde img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- À la une (accueil) ---------- */

.date-carte {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 1rem;
  align-items: start;
  background: var(--blanc);
  border-radius: var(--rayon);
  box-shadow: var(--ombre);
  padding: 1rem;
}
.date-carte .jour {
  background: var(--vert);
  color: var(--blanc);
  border-radius: 10px;
  text-align: center;
  padding: 0.5rem 0.25rem;
  font-family: var(--titre);
  line-height: 1.1;
}
.date-carte .jour strong { display: block; font-size: 1.7rem; color: var(--jaune); }
.date-carte .jour small { text-transform: uppercase; font-size: 0.75rem; letter-spacing: 0.05em; }
.date-carte h3 { font-size: 1.15rem; margin-bottom: 0.2em; }
.date-carte h3 a { color: inherit; text-decoration: none; }
.date-carte h3 a:hover { color: var(--orange-fonce); text-decoration: underline; }
.date-carte p { margin: 0; color: var(--texte-doux); font-size: 0.95rem; }

/* Pastille de type d'activité */
.pastille {
  display: inline-block;
  font-family: var(--titre);
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.15em 0.7em;
  border-radius: 999px;
  background: var(--tendre);
  color: var(--vert);
  margin-bottom: 0.3em;
}
/* Une couleur par activité, choisie dans sa fiche (mêmes valeurs que dans l'extension des contenus) */
.pastille--vert { background: #DCEBD3; color: #2E5A2B; }
.pastille--brun { background: #F1DFC9; color: #7A4A1A; }
.pastille--violet { background: #E6DDF2; color: #4E3A7A; }
.pastille--orange { background: #FBE3CF; color: #8F4312; }
.pastille--jaune { background: #FBEFC9; color: #7A5A12; }
.pastille--bleu { background: #D5E7EA; color: #1F5560; }
.pastille--rose { background: #F7D6D6; color: #8A2E2E; }

/* Citation */
.citation {
  font-family: var(--manuscrit);
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--violet);
  text-align: center;
  max-width: 28em;
  margin: 0 auto;
  line-height: 1.25;
}
.citation cite { display: block; font-size: 0.6em; color: var(--texte-doux); margin-top: 0.5em; font-style: normal; }

/* Deux colonnes texte + photo */
.deux-colonnes {
  display: grid;
  gap: 2rem;
  align-items: center;
}
@media (min-width: 800px) { .deux-colonnes { grid-template-columns: 1.2fr 1fr; } }

/* ---------- Pages courantes ---------- */

.fil-ariane {
  font-size: 0.9rem;
  color: var(--texte-doux);
  margin: 1.25rem 0 0;
}
.fil-ariane a { text-decoration: none; }
.fil-ariane span::before { content: " › "; }

.page-tete { padding-block: 1rem 0.5rem; }
.page-tete h1 { margin-bottom: 0.2em; }
.page-tete .chapo { font-size: 1.1rem; max-width: 44em; }

.rubrique {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
}
.rubrique a {
  display: block;
  font-family: var(--titre);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.4em 1.1em;
  border-radius: 999px;
  border: 2px solid var(--vert);
  text-decoration: none;
}
.rubrique a:hover { background: var(--tendre); color: var(--vert); }
.rubrique a[aria-current="page"] { background: var(--vert); color: var(--blanc); }

.contenu { padding-block: 1rem 3.5rem; }
.contenu > * { max-width: var(--largeur-texte); margin-inline: 0 auto; }
.contenu > .alignwide { max-width: var(--largeur); }
.contenu > .alignfull { max-width: none; }
.contenu h2 { margin-top: 1.6em; }
.contenu h3 { margin-top: 1.4em; color: var(--vert); }
.contenu ul, .contenu ol { padding-left: 1.3em; margin-block: 0 1em; }
.contenu li { margin-bottom: 0.35em; }
.contenu li::marker { color: var(--orange); }
.contenu img { border-radius: var(--rayon); }
.contenu .wp-block-image.is-style-rounded img { border-radius: 50%; }
.contenu figcaption { font-size: 0.9rem; color: var(--texte-doux); text-align: center; }
.contenu blockquote, .contenu .wp-block-quote {
  margin-block: 1.5em;
  padding: 0.25em 0 0.25em 1.25em;
  border-left: 5px solid var(--jaune);
  font-family: var(--manuscrit);
  font-size: 1.5rem;
  line-height: 1.25;
}
.contenu blockquote cite { font-family: var(--texte-police); font-size: 0.95rem; font-style: normal; color: var(--texte-doux); }
.contenu--fiche { padding-block: 0; }
.contenu hr, .contenu .wp-block-separator { border: 0; border-top: 3px solid var(--jaune); width: 120px; margin-block: 2em; }

/* ---------- Fiche activité ---------- */

.fiche {
  display: grid;
  gap: 2rem;
  padding-block: 1.5rem 3.5rem;
}
@media (min-width: 900px) { .fiche { grid-template-columns: 1fr 340px; align-items: start; } }

/* Titre rééquilibré par rapport à la phrase d'accroche */
.fiche h1 { font-size: clamp(1.8rem, 3.6vw, 2.4rem); margin-bottom: 0.25em; }
.fiche .manuscrit { margin-bottom: 0.2em; }
.fiche article h2 { font-size: clamp(1.35rem, 2.6vw, 1.6rem); margin-top: 1.5em; color: var(--vert); }
.fiche article ul { padding-left: 1.3em; }
.fiche article li::marker { color: var(--orange); }

.galerie {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin: 1.5rem 0;
}
.galerie > * { aspect-ratio: 1; border-radius: 10px; overflow: hidden; margin: 0; }
.galerie > *:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 8; }
.galerie img { width: 100%; height: 100%; object-fit: cover; }
.galerie .photo { font-size: 1.1rem; }

.encart {
  background: var(--encart-fond);
  border-radius: var(--rayon);
  border-top: 6px solid var(--encart-accent);
  box-shadow: var(--ombre);
  padding: 1.5rem;
}
@media (min-width: 900px) { .encart { position: sticky; top: calc(var(--hauteur-entete) + var(--barre-admin) + 16px); } }
.encart h2 { font-size: 1.4rem; color: var(--encart-accent); }
.encart h3 { font-size: 1.1rem; color: var(--encart-accent); }
.encart dl { margin: 0 0 1.25rem; display: grid; grid-template-columns: auto 1fr; gap: 0.4rem 0.9rem; }
.encart dt { font-family: var(--titre); font-weight: 500; color: var(--encart-accent); }
.encart dd { margin: 0; }
.encart .bouton { width: 100%; text-align: center; }
.encart .note { font-size: 0.85rem; color: var(--texte-doux); margin: 0.75rem 0 0; }

.dates-liste { list-style: none; padding: 0; margin: 0 0 1rem; }
.dates-liste li {
  display: flex; gap: 0.75rem; align-items: baseline; flex-wrap: wrap;
  padding: 0.5rem 0; border-bottom: 1px solid rgba(31, 74, 61, 0.18);
}
.dates-liste .quand { font-family: var(--titre); font-weight: 500; color: var(--orange-fonce); flex-basis: 100%; }
.dates-liste li { gap: 0.1rem 0.75rem; }
.dates-liste a { font-size: 0.9rem; font-weight: 700; }

/* « Animé par… » */
.anime-par {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 1.1rem;
  align-items: center;
  margin-top: 2rem;
  padding: 1.1rem 1.25rem;
  background: var(--blanc);
  border-radius: var(--rayon);
  box-shadow: var(--ombre);
}
.anime-par .rond {
  width: 96px; aspect-ratio: 1; border-radius: 50%; overflow: hidden;
  border: 4px solid var(--tendre); outline: 2px dashed var(--jaune); outline-offset: 3px;
}
.anime-par .rond img { width: 100%; height: 100%; object-fit: cover; }
.anime-par .rond.photo { font-size: 0.95rem; line-height: 1; padding: 0.25rem; }
.anime-par .surtitre { font-size: 1.35rem; line-height: 1; color: var(--orange-fonce); }
.fiche article .anime-par h2 { font-size: 1.25rem; margin: 0 0 0.25em; color: var(--violet); }
.anime-par p { margin: 0; color: var(--texte-doux); font-size: 0.97rem; }

/* ---------- Agenda ---------- */

.agenda { padding-block: 0.5rem 3.5rem; }

.filtres {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0 2rem;
}
.filtres[hidden] { display: none; }
.filtres button {
  font-family: var(--titre);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.45em 1.1em;
  border-radius: 999px;
  border: 2px solid var(--vert);
  background: transparent;
  color: var(--vert);
  cursor: pointer;
}
.filtres button:hover { background: var(--tendre); }
.filtres button[aria-pressed="true"] { background: var(--vert); color: var(--blanc); }

.mois { margin-bottom: 2.5rem; }
.mois[hidden] { display: none; }
.mois h2 {
  font-size: 1.5rem;
  color: var(--orange-fonce);
  border-bottom: 3px solid var(--jaune);
  display: inline-block;
  padding-bottom: 0.1em;
  margin-bottom: 1rem;
}

.evenement {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 1rem;
  align-items: start;
  background: var(--blanc);
  border-radius: var(--rayon);
  box-shadow: var(--ombre);
  padding: 1rem;
  margin-bottom: 0.9rem;
}
.evenement[hidden] { display: none; }
@media (min-width: 760px) { .evenement { grid-template-columns: 76px 1fr auto; align-items: center; } }
.evenement .jour {
  background: var(--tendre);
  color: var(--vert);
  border-radius: 10px;
  text-align: center;
  padding: 0.5rem 0.25rem;
  font-family: var(--titre);
  line-height: 1.1;
}
.evenement .jour strong { display: block; font-size: 1.6rem; color: var(--violet); }
.evenement .jour strong span { display: block; font-size: 1.05rem; font-weight: 500; margin-bottom: 0.15em; }
.evenement .jour small { text-transform: uppercase; font-size: 0.72rem; letter-spacing: 0.05em; }
.evenement h3 { font-size: 1.15rem; margin: 0 0 0.15em; }
.evenement p { margin: 0; color: var(--texte-doux); font-size: 0.95rem; }
.evenement__actions { display: flex; flex-wrap: wrap; gap: 0.5rem; grid-column: 2; }
.evenement__actions .bouton { font-size: 0.9rem; padding: 0.45em 0.9em; white-space: nowrap; text-align: center; }
@media (min-width: 760px) {
  .evenement__actions { grid-column: auto; flex-direction: column; align-items: stretch; }
}

/* ---------- Partenaires (motif de blocs « Partenaire ») ---------- */

.contenu > .partenaire { max-width: 900px; }
.partenaire {
  display: grid;
  gap: 1.25rem;
  align-items: center;
  background: var(--blanc);
  border-radius: var(--rayon);
  box-shadow: var(--ombre);
  padding: 1.5rem;
  margin-block: 0 1.5rem;
}
@media (min-width: 640px) { .partenaire { grid-template-columns: 180px 1fr; gap: 1.75rem; } }
.partenaire > .wp-block-image { margin: 0 auto; width: 180px; aspect-ratio: 1; border-radius: 50%; overflow: hidden; border: 6px solid var(--tendre); }
.partenaire > .wp-block-image img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.partenaire h2, .contenu .partenaire h2 { font-size: 1.45rem; margin: 0 0 0.3em; }
.partenaire p { color: var(--texte-doux); }
.partenaire .wp-block-buttons { margin-top: 0.75rem; }
.partenaire .wp-block-button__link { font-size: 0.95rem; padding: 0.5em 1.2em; }

/* ---------- Où nous trouver ---------- */

.ou {
  display: grid;
  gap: 2rem;
  padding-block: 1rem 2rem;
}
@media (min-width: 900px) { .ou { grid-template-columns: 1fr 1.25fr; align-items: start; } }
.ou h2 { font-size: 1.5rem; }
.ou address { font-style: normal; line-height: 1.7; margin-bottom: 1.25rem; }
.ou .bloc { background: var(--blanc); border-radius: var(--rayon); box-shadow: var(--ombre); padding: 1.5rem; }
.ou .bloc + .bloc { margin-top: 1.5rem; }
.carte-lieu { border-radius: var(--rayon); overflow: hidden; aspect-ratio: 4 / 3; margin: 0; }
.carte-lieu img { width: 100%; height: 100%; object-fit: cover; }
.stands { list-style: none; margin: 0; padding: 0; }
.stands li { display: flex; gap: 0.9rem; align-items: baseline; padding: 0.55rem 0; border-bottom: 1px solid var(--tendre); }
.stands li:last-child { border-bottom: 0; }
.stands .quand { font-family: var(--titre); font-weight: 500; color: var(--orange-fonce); white-space: nowrap; }

.info {
  background: var(--tendre);
  border-radius: var(--rayon);
  padding: 1rem 1.25rem;
  font-size: 0.95rem;
  border-left: 5px solid var(--vert);
  margin-bottom: 1.5rem;
}
.info p { margin: 0; }

/* ---------- Actualités ---------- */

.articles { display: grid; gap: 1.5rem; padding-block: 1rem 3.5rem; }
@media (min-width: 700px) { .articles { grid-template-columns: repeat(2, 1fr); } }
.article-carte { background: var(--blanc); border-radius: var(--rayon); box-shadow: var(--ombre); padding: 1.5rem; }
.article-carte h2 { font-size: 1.35rem; }
.article-carte h2 a { color: inherit; text-decoration: none; }
.article-carte .date { font-size: 0.9rem; color: var(--texte-doux); margin-bottom: 0.4em; }
.pagination { padding-bottom: 3rem; text-align: center; font-family: var(--titre); }
.pagination .page-numbers { padding: 0.3em 0.7em; text-decoration: none; }
.pagination .current { background: var(--vert); color: var(--blanc); border-radius: 999px; }

/* ---------- Bandeau « Contactez-nous » : le logo en grand ---------- */

.appel {
  padding-block: 3.5rem;
  background: var(--vert);
  color: var(--blanc);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.appel .conteneur {
  display: grid;
  gap: 1.5rem 3.5rem;
  align-items: center;
  justify-items: center;
  text-align: center;
}
@media (min-width: 800px) {
  .appel .conteneur { grid-template-columns: auto minmax(0, 34em); justify-content: center; text-align: left; justify-items: start; }
}
.appel__logo { color: var(--beige); width: min(62vw, 300px); }
.appel__logo svg { width: 100%; height: auto; display: block; }
.appel h2 { color: var(--jaune); font-family: var(--manuscrit); font-size: clamp(2.2rem, 5vw, 3.2rem); font-weight: 700; margin-bottom: 0.3em; }
.appel p { font-size: 1.1rem; }

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

.site-footer {
  background: var(--violet);
  color: rgba(255, 255, 255, 0.85);
  padding-block: 2.5rem 1.5rem;
  font-size: 0.95rem;
}
.site-footer .conteneur {
  display: grid;
  gap: 2rem;
}
@media (min-width: 760px) { .site-footer .conteneur { grid-template-columns: 1.3fr 1fr 1fr; } }
.site-footer h2 { color: var(--jaune); font-size: 1.1rem; }
.site-footer a { color: var(--blanc); }
.site-footer a:hover { color: var(--jaune); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.35em; }
.site-footer address { font-style: normal; }
.site-footer .bas {
  grid-column: 1 / -1;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 1rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; justify-content: space-between;
}
.site-footer .bas ul { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; }
.site-footer .bas li { margin: 0; }
.site-footer .bas a { color: rgba(255, 255, 255, 0.8); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
