/* Montsoult Tilleuls Animation — l'affiche de fête de village.
   Une audace : le programme composé comme une affiche, à chasses et graisses
   variables (police Anybody). Le reste est sobre : Atkinson Hyperlegible en
   18 px, pour un public de tous âges. */
@font-face { font-family: "Anybody"; src: url("/assets/fonts/anybody-var.woff2") format("woff2"); font-weight: 500 900; font-stretch: 75% 150%; font-display: swap; }
@font-face { font-family: "Atkinson"; src: url("/assets/fonts/atkinson-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Atkinson"; src: url("/assets/fonts/atkinson-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Atkinson"; src: url("/assets/fonts/atkinson-400i.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }

:root {
  --papier: #f6f8ef;      /* papier légèrement vert, pas le crème habituel */
  --encre: #1f2b17;       /* encre vert très sombre */
  --feuille: #7d9a2f;     /* feuille de tilleul — décor et grands caractères seulement */
  --feuille-fonce: #2f4a1f;
  --fleur: #f1e37c;       /* fleur de tilleul */
  --fleur-pale: #f6f1cc;
  --nuit: #22325c;        /* les soirées concert */
  --affiche: "Anybody", "Arial Black", "Helvetica Neue", sans-serif;
  --texte: "Atkinson", "Verdana", "Segoe UI", system-ui, sans-serif;
  --mesure: 66ch;
  --marge: clamp(1.1rem, 4vw, 2.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--papier); color: var(--encre); font: 400 1.125rem/1.6 var(--texte); }
img, svg { max-width: 100%; }
a { color: var(--feuille-fonce); text-underline-offset: 0.18em; text-decoration-thickness: 0.08em; }
a:hover { color: var(--nuit); }
:focus-visible { outline: 3px solid var(--nuit); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3 { font-family: var(--affiche); line-height: 1.05; margin: 0 0 0.5em; text-wrap: balance; color: var(--feuille-fonce); }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.3rem); font-weight: 820; font-stretch: 118%; }
h3 { font-size: 1.3rem; font-weight: 780; font-stretch: 105%; }
p { margin: 0 0 1em; }

.visuellement-cache { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.evitement { position: absolute; left: -999px; top: 0; background: var(--nuit); color: #fff; padding: 0.6rem 1rem; z-index: 10; }
.evitement:focus { left: 0.5rem; top: 0.5rem; }

/* En-tête */
.entete { border-bottom: 2px solid var(--feuille-fonce); background: var(--papier); }
.entete__barre { max-width: 72rem; margin: 0 auto; padding: 0.8rem var(--marge); display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.marque { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--feuille-fonce); margin-right: auto; }
.marque__feuille { width: 2.4rem; height: auto; }
.marque__feuille .tilleul__limbe { fill: var(--feuille); }
.marque__feuille .tilleul__nervures { fill: none; stroke: var(--feuille-fonce); stroke-width: 5; stroke-linecap: round; }
.marque__sigle { font-family: var(--affiche); font-weight: 900; font-stretch: 150%; font-size: 1.9rem; line-height: 1; letter-spacing: 0.01em; }
.marque__nom { font-size: 0.85rem; line-height: 1.15; border-left: 2px solid var(--feuille); padding-left: 0.6rem; color: var(--encre); }
.menu ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 0.3rem 1.4rem; flex-wrap: wrap; }
.menu a { text-decoration: none; font-weight: 700; color: var(--encre); padding: 0.3rem 0; border-bottom: 3px solid transparent; }
.menu a:hover { border-bottom-color: var(--feuille); color: var(--encre); }
.menu a[aria-current="page"] { border-bottom-color: var(--feuille-fonce); }
.menu-bouton { display: none; font: 700 1rem var(--texte); background: none; color: var(--feuille-fonce); border: 2px solid var(--feuille-fonce); border-radius: 4px; padding: 0.45rem 0.9rem; cursor: pointer; }
@media (max-width: 760px) {
  .js .menu-bouton { display: block; }
  .js .menu { display: none; width: 100%; }
  .js .menu.menu--ouvert { display: block; }
  .menu ul { flex-direction: column; padding: 0.4rem 0 0.6rem; }
  .menu a { display: inline-block; padding: 0.45rem 0; }
  .marque__nom { display: none; }
}

/* L'affiche d'accueil */
.affiche { max-width: 72rem; margin: 0 auto; padding: clamp(2rem, 6vw, 4.5rem) var(--marge); display: grid; gap: clamp(2rem, 5vw, 4rem); grid-template-columns: minmax(0, 1fr); align-items: center; }
@media (min-width: 900px) { .affiche { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); } }
.affiche__titre { font-size: clamp(2.5rem, 7vw, 4.8rem); font-weight: 860; font-stretch: 138%; line-height: 0.95; margin-bottom: 0.4em; }
@media (min-width: 900px) { .affiche__titre { font-size: clamp(2.6rem, 4.6vw, 4rem); font-stretch: 118%; } }
.affiche__intro { font-size: clamp(1.2rem, 2.2vw, 1.4rem); max-width: 34ch; }
.affiche__programme { position: relative; overflow: hidden; background: var(--fleur); border-radius: 6px; padding: clamp(1.4rem, 4vw, 2.4rem); }
.affiche__feuille { position: absolute; right: -12%; bottom: -18%; width: 70%; transform: rotate(-18deg); }
.affiche__feuille .tilleul__limbe { fill: var(--feuille); opacity: 0.28; }
.affiche__feuille .tilleul__nervures { fill: none; stroke: var(--feuille-fonce); stroke-opacity: 0.25; stroke-width: 1.6; stroke-linecap: round; }
.programme { position: relative; list-style: none; margin: 0; padding: 0; font-family: var(--affiche); line-height: 0.98; }
.programme__mot { font-size: clamp(2rem, 5.6vw, 3.6rem); }
.programme__mot--large { font-weight: 900; font-stretch: 150%; color: var(--encre); }
.programme__mot--etroit { font-weight: 820; font-stretch: 75%; color: var(--nuit); }
.programme__mot--plein { font-weight: 900; font-stretch: 112%; color: var(--feuille-fonce); }
.programme__mot--fin { font-weight: 520; font-stretch: 92%; color: var(--encre); font-size: clamp(1.4rem, 3.6vw, 2.3rem); padding: 0.15em 0; }

/* Boutons */
.actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.4rem; }
.bouton { display: inline-block; background: var(--feuille-fonce); color: var(--papier); text-decoration: none; font-weight: 700; padding: 0.75rem 1.2rem; border-radius: 4px; border: 2px solid var(--feuille-fonce); line-height: 1.2; }
.bouton:hover { background: var(--nuit); border-color: var(--nuit); color: #fff; }
.bouton--clair { background: transparent; color: var(--feuille-fonce); }
.bouton--clair:hover { background: var(--feuille-fonce); color: var(--papier); border-color: var(--feuille-fonce); }

/* Sections */
.bloc { max-width: 72rem; margin: 0 auto; padding: clamp(2rem, 5vw, 3.5rem) var(--marge); }
.bloc--fleur { max-width: none; background: var(--fleur-pale); }
.bloc--fleur > * { max-width: calc(72rem - 2 * var(--marge)); margin-left: auto; margin-right: auto; }
.trois { display: grid; gap: 1.6rem 2.4rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.trois p { margin: 0; }
.bloc--deux { display: grid; gap: 2rem 3rem; grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 860px) { .bloc--deux { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); } }
.bloc--deux p { max-width: var(--mesure); }

.carte-contact { background: var(--fleur-pale); border-radius: 6px; padding: 1.4rem 1.6rem; }
.carte-contact p { margin: 0 0 0.4em; }
.carte-contact__nom { font-family: var(--affiche); font-weight: 800; font-stretch: 112%; font-size: 1.4rem; color: var(--feuille-fonce); }
.carte-contact a { font-weight: 700; }
.carte-contact__lieu { margin-top: 0.8em !important; font-size: 1rem; }
.carte-contact--grande .carte-contact__ligne { font-size: 1.3rem; }

/* Rendez-vous */
.rdv { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1.2rem; align-items: start; padding: 1.2rem 0; border-top: 2px solid var(--fleur); }
.rdv__date { margin: 0; background: var(--nuit); color: #fff; border-radius: 4px; width: 4.6rem; text-align: center; padding: 0.5rem 0 0.6rem; font-family: var(--affiche); line-height: 1; }
.rdv__jour { display: block; font-size: 2.1rem; font-weight: 900; font-stretch: 120%; }
.rdv__mois { display: block; font-size: 0.95rem; font-weight: 700; margin-top: 0.2rem; }
.rdv__titre { margin-bottom: 0.2em; }
.rdv__quand { font-weight: 700; }
.rdv__tarif { font-size: 1rem; }
.agenda .rdv:first-child { border-top: 0; }

/* Agenda vide : une invitation, pas une excuse */
.vide { position: relative; overflow: hidden; background: var(--fleur-pale); border-radius: 6px; padding: 1.6rem 1.8rem; max-width: 46rem; }
.vide__feuille { position: absolute; right: -2.5rem; top: -1.5rem; width: 9rem; transform: rotate(20deg); }
.vide__feuille .tilleul__limbe { fill: var(--feuille); opacity: 0.25; }
.vide__feuille .tilleul__nervures { fill: none; stroke: var(--feuille-fonce); stroke-opacity: 0.25; stroke-width: 1.6; stroke-linecap: round; }
.vide p { position: relative; max-width: 36rem; }
.vide__texte { font-family: var(--affiche); font-weight: 780; font-stretch: 108%; font-size: 1.35rem; color: var(--feuille-fonce); }

/* Pages intérieures */
.page { max-width: 72rem; margin: 0 auto; padding: clamp(2rem, 5vw, 3.5rem) var(--marge) clamp(3rem, 6vw, 4.5rem); }
.page__titre { font-size: clamp(2.2rem, 6vw, 3.6rem); font-weight: 860; font-stretch: 135%; }
.chapo { font-size: 1.3rem; max-width: 40ch; margin-bottom: 1.8rem; }
.texte { max-width: var(--mesure); }
.texte h2 { margin-top: 1.6em; }
.objet { margin: 0 0 1em; padding: 1.2rem 1.4rem; background: var(--fleur-pale); border-radius: 6px; }
.objet p { font-style: italic; }
.objet footer { font-size: 0.95rem; }
.deux-colonnes { display: grid; gap: 1rem 2.4rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
.identite { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 0.3rem 1.2rem; }
.identite dt { font-weight: 700; }
.identite dd { margin: 0; font-variant-numeric: tabular-nums; }
.contact { display: grid; gap: 2rem 3rem; grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 860px) { .contact { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); } }

/* Pied de page */
.pied { background: var(--feuille-fonce); color: var(--papier); margin-top: 2rem; }
.pied a { color: var(--papier); }
.pied a:hover { color: var(--fleur); }
.pied__grille { max-width: 72rem; margin: 0 auto; padding: 2rem var(--marge); display: grid; gap: 1.2rem 2.4rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); font-size: 1rem; }
.pied__nom { font-family: var(--affiche); font-weight: 820; font-stretch: 118%; font-size: 1.25rem; margin-bottom: 0.3em; }
.pied__liens { list-style: none; margin: 0; padding: 0; }

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