/* ==========================================================================
   Sophia Polis — feuille de style unique
   Palette relevée sur l'emblème de l'association (gueules et azur).
   ==========================================================================

   POLICES
   Les deux familles ci-dessous sont à héberger localement (RGPD : ne pas
   appeler fonts.googleapis.com depuis un site français — la CNIL considère
   l'appel comme un transfert de données vers Google).
   Télécharger Marcellus et Spectral (SIL Open Font License), déposer les
   .woff2 dans assets/fonts/ et décommenter le bloc @font-face.
   Sans ces fichiers, la pile de repli ci-dessous reste correcte.

@font-face {
  font-family: "Marcellus";
  src: url("../fonts/marcellus-regular.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Spectral";
  src: url("../fonts/spectral-regular.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Spectral";
  src: url("../fonts/spectral-semibold.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}
*/

:root {
  --azur:        #12225e;
  --azur-clair:  #24397f;
  --gueules:     #8e1b1b;
  --gueules-vif: #a82424;
  --chaux:       #f1efe9;
  --pierre:      #e2ded3;
  --encre:       #1c1b19;
  --encre-doux:  #4a4740;
  --or:          #a9843f;

  --font-display: "Marcellus", Optima, "Palatino Linotype", Palatino, Georgia, serif;
  --font-body: "Spectral", "Iowan Old Style", "Palatino Linotype", Georgia, serif;

  --mesure: 34rem;
  --large: 68rem;
  --pas: clamp(3rem, 7vw, 6rem);
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  background: var(--chaux);
  color: var(--encre);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--gueules); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--gueules-vif); }

:focus-visible { outline: 2px solid var(--or); outline-offset: 3px; }

.saut-contenu {
  position: absolute; left: -9999px;
  background: var(--azur); color: #fff; padding: 0.75rem 1.25rem; z-index: 100;
}
.saut-contenu:focus { left: 1rem; top: 1rem; }

/* --- Bandeau de navigation ------------------------------------------- */

.bandeau {
  background: var(--azur);
  color: #fff;
  border-bottom: 3px solid var(--or);
}
.bandeau__interieur {
  max-width: var(--large);
  margin: 0 auto;
  padding: 0.9rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}
.bandeau__marque {
  display: flex; align-items: center; gap: 0.75rem;
  color: #fff; text-decoration: none; margin-right: auto;
}
.bandeau__marque img { width: 38px; height: 38px; }
.bandeau__nom {
  font-family: var(--font-display);
  font-size: 1.2rem; letter-spacing: 0.16em; text-transform: uppercase;
}
.bandeau nav { display: flex; gap: 1.4rem; flex-wrap: wrap; align-items: center; }
.bandeau nav a {
  color: #ded9cd; text-decoration: none;
  font-size: 0.83rem; letter-spacing: 0.11em; text-transform: uppercase;
  padding-bottom: 2px; border-bottom: 1px solid transparent;
}
.bandeau nav a:hover,
.bandeau nav a[aria-current="page"] { color: #fff; border-bottom-color: var(--or); }
.bandeau nav .don {
  background: var(--gueules); color: #fff;
  padding: 0.45rem 0.9rem; border-bottom: 0;
}
.bandeau nav .don:hover { background: var(--gueules-vif); border-bottom-color: transparent; }

/* --- Devise : l'inscription (élément signature) ----------------------- */

.devise {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.34em;
  line-height: 1.9;
  text-indent: 0.34em;
  font-size: clamp(0.78rem, 1.9vw, 1.02rem);
}
.devise span { display: block; }
.devise span + span {
  border-top: 1px solid currentColor;
  margin-top: 0.7rem; padding-top: 0.7rem;
  opacity: 0.92;
}

/* --- Bloc d'ouverture -------------------------------------------------- */

.ouverture {
  background: var(--azur);
  color: var(--chaux);
  text-align: center;
  padding: clamp(3rem, 8vw, 5.5rem) 1.5rem;
}
.ouverture__embleme {
  width: clamp(140px, 26vw, 210px);
  margin: 0 auto 2rem;
}
.ouverture h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.2rem, 6.5vw, 3.6rem);
  letter-spacing: 0.05em;
  margin: 0 0 1.6rem;
}
.ouverture .devise { color: #cfc7b2; }
.ouverture__accroche {
  max-width: 40rem; margin: 2.2rem auto 0;
  color: #d7d2c4; font-size: 1.06rem;
}

/* Ouverture réduite, pages intérieures */
.ouverture--page { padding: clamp(2.4rem, 6vw, 3.6rem) 1.5rem; }
.ouverture--page h1 { margin-bottom: 0.9rem; }

/* --- Corps de page ----------------------------------------------------- */

main { display: block; }

.section {
  max-width: var(--large);
  margin: 0 auto;
  padding: var(--pas) 1.5rem;
}
.section + .section { padding-top: 0; }

.section--pierre {
  max-width: none;
  background: var(--pierre);
  border-top: 1px solid #cdc7b8;
  border-bottom: 1px solid #cdc7b8;
}
.section--pierre > * {
  max-width: var(--large);
  margin-left: auto; margin-right: auto;
}

.eyebrow {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-size: 0.76rem;
  color: var(--or);
  margin: 0 0 0.7rem;
}

h2, h3 { font-family: var(--font-display); font-weight: 400; color: var(--azur); }
h2 { font-size: clamp(1.6rem, 4vw, 2.15rem); line-height: 1.25; margin: 0 0 1.1rem; letter-spacing: 0.02em; }
h3 { font-size: 1.22rem; margin: 2.2rem 0 0.6rem; letter-spacing: 0.03em; }

.prose { max-width: var(--mesure); }
.prose p { margin: 0 0 1.15rem; }
.prose > p:first-of-type { font-size: 1.14rem; color: var(--encre-doux); }

.chapo {
  max-width: var(--mesure);
  font-size: 1.16rem;
  color: var(--encre-doux);
  margin: 0 0 1.5rem;
}

/* --- Les enracinements : liste à filets -------------------------------- */

.piliers { list-style: none; margin: 2rem 0 0; padding: 0; max-width: 46rem; }
.piliers li {
  border-top: 1px solid #cdc7b8;
  padding: 1.4rem 0;
}
.piliers li:last-child { border-bottom: 1px solid #cdc7b8; }
.piliers dfn {
  display: block;
  font-family: var(--font-display);
  font-style: normal;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.82rem;
  color: var(--gueules);
  margin-bottom: 0.45rem;
}
.piliers p { margin: 0; }
.piliers blockquote {
  margin: 0.9rem 0 0; padding-left: 1.1rem;
  border-left: 2px solid var(--or);
  font-style: italic; color: var(--encre-doux); font-size: 0.98rem;
}

/* --- Cartes : actions, ateliers ---------------------------------------- */

.grille {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 1.6rem 1.4rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}
.grille figure { margin: 0; }
.grille img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border: 1px solid #cdc7b8;
  background: var(--pierre);
}
.grille figcaption {
  margin-top: 0.6rem;
  font-size: 0.93rem;
  line-height: 1.5;
  color: var(--encre-doux);
}

/* Affiches : format portrait, pas de recadrage agressif */
.grille--affiches img { aspect-ratio: 3 / 4; object-fit: contain; padding: 0.4rem; background: #fff; }

/* --- Renvois vers les autres pages ------------------------------------- */

.renvois { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); margin-top: 2rem; }
.renvoi {
  border-top: 3px solid var(--azur);
  padding-top: 1.2rem;
}
.renvoi h3 { margin-top: 0; }
.renvoi p { margin: 0 0 1rem; }

/* --- Programme : suite chronologique ----------------------------------- */

.jour { margin: 0 0 2.2rem; }
.jour h3 {
  margin: 0 0 0.8rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--or);
  color: var(--azur);
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}
.seance { display: grid; grid-template-columns: 5.5rem 1fr; gap: 0.4rem 1rem; }
.seance dt {
  font-family: var(--font-display);
  color: var(--gueules);
  font-size: 0.95rem;
  font-variant-numeric: tabular-nums;
}
.seance dd { margin: 0 0 0.5rem; }

/* --- Tarifs ------------------------------------------------------------ */

.tarifs { border-collapse: collapse; width: 100%; max-width: 34rem; margin-top: 1.2rem; }
.tarifs caption { text-align: left; font-size: 0.9rem; color: var(--gueules); margin-bottom: 0.6rem; }
.tarifs th, .tarifs td { border-bottom: 1px solid #cdc7b8; padding: 0.6rem 0.4rem; text-align: left; }
.tarifs th { font-family: var(--font-display); font-weight: 400; color: var(--azur); letter-spacing: 0.05em; }
.tarifs td:last-child { text-align: right; font-variant-numeric: tabular-nums; }

/* --- Appels à l'action -------------------------------------------------- */

.bouton {
  display: inline-block;
  background: var(--azur);
  color: #fff;
  text-decoration: none;
  font-family: var(--font-display);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.85rem;
  padding: 0.85rem 1.7rem;
  border: 1px solid var(--azur);
}
.bouton:hover { background: var(--azur-clair); color: #fff; }
.bouton--don { background: var(--gueules); border-color: var(--gueules); }
.bouton--don:hover { background: var(--gueules-vif); color: #fff; }
.bouton--creux { background: transparent; color: var(--azur); }
.bouton--creux:hover { background: var(--azur); color: #fff; }

.appel { text-align: center; }
.appel .prose, .appel .chapo { margin-left: auto; margin-right: auto; }
.appel .bouton { margin-top: 0.8rem; }

/* --- Contacts par ville -------------------------------------------------- */

.villes { list-style: none; padding: 0; margin: 1.2rem 0 0; max-width: 34rem; }
.villes li { border-top: 1px solid #cdc7b8; padding: 0.75rem 0; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.villes li:last-child { border-bottom: 1px solid #cdc7b8; }
.villes strong { font-family: var(--font-display); font-weight: 400; letter-spacing: 0.08em; color: var(--azur); }

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

.pied {
  background: var(--azur);
  color: #c9c2b1;
  margin-top: var(--pas);
  padding: clamp(2.5rem, 6vw, 4rem) 1.5rem 2rem;
  font-size: 0.94rem;
}
.pied__interieur {
  max-width: var(--large); margin: 0 auto;
  display: grid; gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.pied h2 {
  color: #fff; font-size: 0.8rem; text-transform: uppercase;
  letter-spacing: 0.2em; margin: 0 0 0.8rem;
}
.pied a { color: #e7e1d2; }
.pied a:hover { color: #fff; }
.pied ul { list-style: none; margin: 0; padding: 0; }
.pied li { margin-bottom: 0.4rem; }
.pied .devise { color: #7f8bb4; margin-top: 0.5rem; }
.pied__bas {
  max-width: var(--large); margin: 2.5rem auto 0;
  border-top: 1px solid #2c3d75; padding-top: 1.2rem;
  font-size: 0.82rem; color: #8d95b3;
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
}

/* --- Petits écrans ------------------------------------------------------- */

@media (max-width: 640px) {
  .bandeau__interieur { padding: 0.75rem 1rem; }
  .bandeau nav { gap: 0.9rem; width: 100%; }
  .bandeau nav a { font-size: 0.76rem; }
  .seance { grid-template-columns: 4.5rem 1fr; }
  .devise { letter-spacing: 0.22em; text-indent: 0.22em; }
}
