/* ==========================================================================
   Eclo'Sens — feuille de style principale
   --------------------------------------------------------------------------
   Parti pris : la hiérarchie vient de l'espace, pas de la taille des titres.
   Le doré ne porte jamais de texte (contraste insuffisant sur ce fond).
   ========================================================================== */

/* --- Fonte ---------------------------------------------------------------- */

@font-face {
  font-family: 'Literata';
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url('../fonts/literata-latin-wght-normal.woff2') format('woff2');
}

@font-face {
  font-family: 'Literata';
  font-style: italic;
  font-weight: 200 900;
  font-display: swap;
  src: url('../fonts/literata-latin-wght-italic.woff2') format('woff2');
}

/* --- Jetons --------------------------------------------------------------- */

:root {
  /* Couleurs issues du logo */
  --vert-sombre: #27453B;
  --vert: #2B4941;
  --vert-moyen: #3B5C53;
  --sauge: #8C9F89;
  --or: #BF9249;
  --or-clair: #D3AD70;

  /* Couleurs dérivées */
  --fond: #EFF2ED;
  --fond-creux: #E6EBE3;
  --encre: #27453B;
  --encre-douce: #4A6259;

  /* Typographie */
  --serif: 'Literata', Charter, 'Bitstream Charter', 'Sitka Text', Cambria, Georgia, serif;
  --corps: 1.125rem;
  --interligne: 1.75;

  /* Mesures */
  --colonne: 34rem;
  --large: 52rem;
  --cadre: 72rem;
  --marge: clamp(1.5rem, 6vw, 5rem);

  /* Respirations */
  --souffle: clamp(4.5rem, 11vw, 9rem);
  --demi-souffle: clamp(2rem, 5vw, 3.5rem);
}

/* --- Bases ---------------------------------------------------------------- */

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--fond);
  color: var(--encre);
  font-family: var(--serif);
  font-size: var(--corps);
  font-weight: 400;
  line-height: var(--interligne);
  font-variant-numeric: oldstyle-num;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  max-width: 100%;
  height: auto;
}

/* Cible de focus visible et sobre, jamais supprimée. */
:focus-visible {
  outline: 2px solid var(--vert-moyen);
  outline-offset: 3px;
  border-radius: 1px;
}

/* --- Lien d'évitement ----------------------------------------------------- */

.evitement {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--vert);
  color: var(--fond);
  padding: 0.75rem 1.25rem;
  z-index: 10;
}

.evitement:focus {
  left: 0;
}

/* --- Trame ---------------------------------------------------------------- */

.trame {
  width: 100%;
  max-width: var(--large);
  margin-inline: auto;
  padding-inline: var(--marge);
}

.trame--etroite {
  max-width: calc(var(--colonne) + 2 * var(--marge));
}

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

.entete {
  padding-block: clamp(1.5rem, 4vw, 2.75rem);
}

.entete__interieur {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem 2rem;
}

.entete__logo {
  display: block;
  flex: 0 0 auto;
  width: clamp(11rem, 26vw, 16rem);
}

.entete__logo svg {
  display: block;
  width: 100%;
  height: auto;
}

/* --- Navigation ----------------------------------------------------------- */

.nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav a {
  color: var(--encre-douce);
  text-decoration: none;
  font-size: 1rem;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: border-color 160ms ease, color 160ms ease;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--vert);
  border-bottom-color: var(--sauge);
}

.nav a[aria-current='page'] {
  color: var(--vert);
  border-bottom-color: var(--or);
}

/* --- Ouverture ------------------------------------------------------------ */

.ouverture {
  padding-block: clamp(3.5rem, 12vw, 8rem) var(--souffle);
}

.ouverture__titre {
  margin: 0;
  max-width: 18ch;
  font-size: clamp(2.25rem, 6.5vw, 4rem);
  font-weight: 300;
  line-height: 1.12;
  letter-spacing: -0.015em;
  color: var(--vert);
  text-wrap: balance;
}

.ouverture__chapo {
  margin: clamp(1.75rem, 4vw, 2.5rem) 0 0;
  max-width: 44ch;
  font-size: clamp(1.1875rem, 2.2vw, 1.4375rem);
  font-weight: 300;
  line-height: 1.6;
  color: var(--encre-douce);
}

/* Filet d'ouverture : marque le passage de l'accroche au corps du texte.
   Décoratif au sens strict, donc masqué aux technologies d'assistance. */
.ouverture__filet {
  width: 3.5rem;
  height: 1px;
  /* Les navigateurs centrent les hr par défaut : on les remet au fer à gauche. */
  margin: clamp(2.5rem, 6vw, 4rem) 0 0;
  border: 0;
  background: var(--or);
}

/* --- Corps de texte ------------------------------------------------------- */

.texte > * + * {
  margin-top: 1.4em;
}

.texte p {
  max-width: 62ch;
}

/* Les intertitres murmurent : italique, à peine plus grands que le corps,
   isolés par beaucoup d'espace au-dessus. */
.texte h2 {
  margin-top: var(--souffle);
  margin-bottom: 0;
  max-width: 30ch;
  font-size: clamp(1.3125rem, 2.4vw, 1.5rem);
  font-style: italic;
  font-weight: 400;
  line-height: 1.35;
  color: var(--vert-moyen);
  text-wrap: balance;
}

.texte h2 + * {
  margin-top: clamp(1.25rem, 3vw, 1.75rem);
}

.texte h3 {
  margin-top: var(--demi-souffle);
  margin-bottom: 0;
  font-size: 1.125rem;
  font-style: italic;
  font-weight: 500;
  color: var(--vert-moyen);
}

.texte a {
  color: var(--vert);
  text-decoration: underline;
  text-decoration-color: var(--sauge);
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}

.texte a:hover,
.texte a:focus-visible {
  text-decoration-color: var(--or);
}

.texte strong {
  font-weight: 600;
}

.texte em {
  font-style: italic;
}

/* --- Listes ---------------------------------------------------------------
   Style courant : sobre, compact, lisible sur des listes longues.
   -------------------------------------------------------------------------- */

.texte ul {
  margin-top: 1.4em;
  margin-bottom: 0;
  padding: 0;
  list-style: none;
  max-width: 58ch;
}

.texte ul li {
  position: relative;
  padding-left: 1.4rem;
}

.texte ul li + li {
  margin-top: 0.55rem;
}

.texte ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 0.3125rem;
  height: 0.3125rem;
  border-radius: 50%;
  background: var(--sauge);
}

/* --- La litanie ----------------------------------------------------------
   Réservée à la page d'accueil. C'est le passage le plus fort du texte de
   Sandra, sorti du registre de la liste à puces : une suite d'affirmations,
   une par ligne, très aérées. Seule audace de la page. La cantonner à
   l'accueil lui conserve sa force — répétée partout, elle deviendrait un tic.
   -------------------------------------------------------------------------- */

.texte--accueil ul {
  margin-top: clamp(1.75rem, 4vw, 2.5rem);
  max-width: 40ch;
}

.texte--accueil ul li {
  padding-left: 1.75rem;
  font-size: clamp(1.1875rem, 2.1vw, 1.375rem);
  font-weight: 300;
  line-height: 1.5;
  color: var(--vert);
}

.texte--accueil ul li + li {
  margin-top: clamp(1.1rem, 2.6vw, 1.6rem);
}

/* Le point doré reprend la ponctuation du logo. */
.texte--accueil ul li::before {
  top: 0.62em;
  width: 0.4375rem;
  height: 0.4375rem;
  background: var(--or);
}

/* Listes ordinaires, hors litanie */
.texte ol {
  max-width: 62ch;
  padding-left: 1.25rem;
}

.texte ol li + li {
  margin-top: 0.5rem;
}

.texte blockquote {
  margin-inline: 0;
  padding-left: 1.5rem;
  border-left: 1px solid var(--sauge);
  font-style: italic;
  color: var(--encre-douce);
  max-width: 54ch;
}

/* --- Notes de rédaction --------------------------------------------------
   Blocs visibles signalant ce qui reste à écrire. Provisoires : à retirer
   avant la mise en ligne publique. Voir LISEZ-MOI.md.
   -------------------------------------------------------------------------- */

.note-redaction {
  margin-top: var(--demi-souffle);
  padding: 1.25rem 1.5rem;
  max-width: 56ch;
  border: 1px dashed var(--sauge);
  border-radius: 2px;
  background: var(--fond-creux);
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--encre-douce);
}

.note-redaction p {
  margin: 0;
  max-width: none;
}

.note-redaction p + p {
  margin-top: 0.75rem;
}

.note-redaction__etiquette {
  display: block;
  margin-bottom: 0.4rem;
  font-style: italic;
  font-weight: 500;
  color: var(--vert-moyen);
}

/* --- Clôture -------------------------------------------------------------- */

.cloture {
  margin-top: var(--souffle);
  padding-block: var(--souffle);
  background: var(--vert);
  color: var(--fond);
}

.cloture__phrase {
  margin: 0;
  max-width: 30ch;
  font-size: clamp(1.375rem, 3.2vw, 1.875rem);
  font-weight: 300;
  line-height: 1.4;
  color: var(--fond);
  text-wrap: balance;
}

.cloture__lien {
  display: inline-block;
  margin-top: clamp(1.75rem, 4vw, 2.5rem);
  color: var(--fond);
  font-size: 1.0625rem;
  text-decoration: underline;
  text-decoration-color: var(--or-clair);
  text-underline-offset: 0.22em;
  text-decoration-thickness: 1px;
}

.cloture__lien:hover,
.cloture__lien:focus-visible {
  text-decoration-color: var(--fond);
}

.cloture :focus-visible {
  outline-color: var(--or-clair);
}

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

.pied {
  padding-block: clamp(2.5rem, 6vw, 4rem);
  font-size: 0.9375rem;
  color: var(--encre-douce);
}

.pied__interieur {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem 2.5rem;
}

.pied p {
  margin: 0;
  max-width: 34ch;
}

.pied a {
  color: var(--encre-douce);
  text-decoration: underline;
  text-decoration-color: var(--sauge);
  text-underline-offset: 0.18em;
}

.pied a:hover,
.pied a:focus-visible {
  color: var(--vert);
}

/* --- Page intérieure générique -------------------------------------------- */

.page {
  padding-block: clamp(2.5rem, 7vw, 4.5rem) var(--souffle);
}

.page__titre {
  margin: 0 0 var(--demi-souffle);
  max-width: 22ch;
  font-size: clamp(1.875rem, 4.5vw, 2.75rem);
  font-weight: 300;
  line-height: 1.15;
  color: var(--vert);
  text-wrap: balance;
}

/* Le premier intertitre d'une page intérieure n'a pas besoin
   de la respiration pleine, le titre de page joue déjà ce rôle. */
.page .texte > h2:first-child {
  margin-top: 0;
}

.page__chapo {
  margin: 0 0 var(--demi-souffle);
  max-width: 48ch;
  font-size: clamp(1.125rem, 2vw, 1.3125rem);
  font-weight: 300;
  line-height: 1.6;
  color: var(--encre-douce);
}

.page__suite {
  margin-top: var(--demi-souffle);
  font-size: 1.0625rem;
}

.page__suite a {
  color: var(--vert);
  text-decoration: underline;
  text-decoration-color: var(--sauge);
  text-underline-offset: 0.18em;
}

.page__suite a:hover,
.page__suite a:focus-visible {
  text-decoration-color: var(--or);
}

/* --- L'arc ouvert ---------------------------------------------------------
   Une fois par page, à la charnière. Le cercle du logo ne se refermant pas,
   on en isole l'ouverture. Décoratif : masqué aux lecteurs d'écran côté HTML.
   -------------------------------------------------------------------------- */

.charniere {
  display: flex;
  justify-content: center;
  margin-block: var(--souffle);
  color: var(--sauge);
}

.arc {
  display: block;
  width: clamp(72px, 11vw, 92px);
  height: auto;
}

.arc__point {
  fill: var(--or);
}

/* --- Les autres formats ---------------------------------------------------
   Sans ce renvoi, les pages d'accompagnement seraient des culs-de-sac : le
   menu ne liste que le premier niveau.
   -------------------------------------------------------------------------- */

.autres__titre {
  margin: 0 0 clamp(1.1rem, 2.5vw, 1.5rem);
  font-size: clamp(1.25rem, 2.4vw, 1.4375rem);
  font-style: italic;
  font-weight: 400;
  color: var(--vert-moyen);
}

.autres ul {
  margin: 0;
  padding: 0;
  list-style: none;
  max-width: 48ch;
}

.autres li + li {
  margin-top: clamp(0.9rem, 2vw, 1.25rem);
}

.autres a {
  color: var(--vert);
  font-size: 1.0625rem;
  text-decoration: none;
  border-bottom: 1px solid var(--sauge);
  padding-bottom: 0.1em;
  transition: border-color 160ms ease;
}

.autres a:hover,
.autres a:focus-visible {
  border-bottom-color: var(--or);
}

.autres__resume {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.875rem;
  font-style: italic;
  color: var(--encre-douce);
}

/* --- Informations pratiques ----------------------------------------------
   Champs séparés plutôt que prose : affichage identique d'une page à
   l'autre, modifiables sans toucher au texte, et réutilisables plus tard
   pour les données structurées.
   -------------------------------------------------------------------------- */

.pratique {
  margin: 0 0 var(--souffle);
  padding: clamp(1.25rem, 3vw, 1.75rem) 0;
  max-width: 44ch;
  border-top: 1px solid var(--sauge);
  border-bottom: 1px solid var(--sauge);
}

.pratique__ligne {
  display: grid;
  grid-template-columns: minmax(6.5rem, 9rem) 1fr;
  gap: 0.25rem 1.5rem;
}

.pratique__ligne + .pratique__ligne {
  margin-top: 0.7rem;
}

.pratique dt {
  font-style: italic;
  color: var(--vert-moyen);
  font-size: 0.9375rem;
  line-height: inherit;
}

.pratique dd {
  margin: 0;
  color: var(--vert);
}

@media (max-width: 26rem) {
  .pratique__ligne {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

/* --- Mention sur le suivi médical ----------------------------------------
   Rendue par le gabarit, jamais par le contenu : elle ne doit pas pouvoir
   être effacée depuis l'administration.
   -------------------------------------------------------------------------- */

.mention-sante {
  margin-top: var(--souffle);
  padding-top: clamp(1.25rem, 3vw, 1.75rem);
  max-width: 58ch;
  border-top: 1px solid var(--sauge);
}

.mention-sante p {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--encre-douce);
}

/* --- Liste des formats, sur la page parente ------------------------------- */

.formats {
  margin-top: var(--souffle);
}

.format + .format {
  margin-top: var(--souffle);
}

.format__titre {
  margin: 0;
  font-size: clamp(1.4375rem, 3vw, 1.75rem);
  font-weight: 400;
  line-height: 1.25;
  text-wrap: balance;
}

.format__titre a {
  color: var(--vert);
  text-decoration: none;
  border-bottom: 1px solid var(--sauge);
  padding-bottom: 0.1em;
  transition: border-color 160ms ease;
}

.format__titre a:hover,
.format__titre a:focus-visible {
  border-bottom-color: var(--or);
}

.format__chapo {
  margin: clamp(0.9rem, 2vw, 1.25rem) 0 0;
  max-width: 52ch;
  font-weight: 300;
  color: var(--encre-douce);
}

.format__resume {
  margin: 0.75rem 0 0;
  font-size: 0.9375rem;
  font-style: italic;
  color: var(--vert-moyen);
}

/* --- Renvoi vers l'agenda -------------------------------------------------
   Sous le bloc pratique d'une page d'accompagnement. Ce qui change souvent
   vit dans l'agenda ; la page ne donne qu'un ordre de grandeur.
   -------------------------------------------------------------------------- */

.renvoi-agenda {
  margin: calc(var(--souffle) * -0.6) 0 var(--souffle);
  max-width: 44ch;
  font-size: 0.9375rem;
  font-style: italic;
  line-height: 1.6;
  color: var(--encre-douce);
}

.renvoi-agenda a {
  color: var(--vert);
  font-style: normal;
  text-decoration: none;
  border-bottom: 1px solid var(--sauge);
  padding-bottom: 0.08em;
  transition: border-color 160ms ease;
}

.renvoi-agenda a:hover,
.renvoi-agenda a:focus-visible {
  border-bottom-color: var(--or);
}

/* --- Les trois formats, en tête de l'agenda ------------------------------- */

.formats-agenda {
  margin-top: var(--demi-souffle);
}

.format-agenda + .format-agenda {
  margin-top: var(--demi-souffle);
}

.format-agenda__titre {
  margin: 0 0 0.6rem;
  font-size: clamp(1.1875rem, 2.4vw, 1.375rem);
  font-style: italic;
  font-weight: 400;
  color: var(--vert-moyen);
}

.format-agenda__texte {
  margin: 0;
  max-width: 54ch;
  font-weight: 300;
  color: var(--encre-douce);
}

.format-agenda__lien {
  margin: 0.6rem 0 0;
  font-size: 0.9375rem;
}

.format-agenda__lien a {
  color: var(--vert);
  text-decoration: none;
  border-bottom: 1px solid var(--sauge);
  padding-bottom: 0.08em;
  transition: border-color 160ms ease;
}

.format-agenda__lien a:hover,
.format-agenda__lien a:focus-visible {
  border-bottom-color: var(--or);
}

/* --- L'agenda -------------------------------------------------------------
   Une ligne par date, le quantième détaché dans une colonne de gauche.
   Le mois sert de charnière : il murmure comme les autres intertitres.
   -------------------------------------------------------------------------- */

.agenda__titre {
  margin: 0 0 var(--demi-souffle);
  font-size: clamp(1.25rem, 2.4vw, 1.4375rem);
  font-style: italic;
  font-weight: 400;
  color: var(--vert-moyen);
}

.agenda__vide {
  max-width: 48ch;
  color: var(--encre-douce);
}

.agenda__mois {
  margin: var(--demi-souffle) 0 1.25rem;
  padding-bottom: 0.4rem;
  max-width: 44ch;
  font-size: 1rem;
  font-style: italic;
  font-weight: 400;
  color: var(--vert-moyen);
  border-bottom: 1px solid var(--sauge);
}

.agenda__mois:first-child {
  margin-top: 0;
}

.date {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: 0 1.75rem;
  max-width: 50ch;
  padding-block: clamp(1rem, 2.5vw, 1.4rem);
}

.date + .date {
  border-top: 1px solid var(--fond-creux);
}

.date__jour {
  margin: 0;
  line-height: 1.1;
  text-align: right;
}

.date__nombre {
  display: block;
  font-size: 1.75rem;
  font-weight: 300;
  color: var(--vert);
}

.date__semaine {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.8125rem;
  font-style: italic;
  color: var(--encre-douce);
}

.date__corps {
  min-width: 0;
}

.date__titre {
  margin: 0;
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.4;
}

.date__titre a {
  color: var(--vert);
  text-decoration: none;
  border-bottom: 1px solid var(--sauge);
  padding-bottom: 0.08em;
  transition: border-color 160ms ease;
}

.date__titre a:hover,
.date__titre a:focus-visible {
  border-bottom-color: var(--or);
}

.date__soustitre {
  margin: 0.3rem 0 0;
  font-size: 0.9375rem;
  font-style: italic;
  color: var(--encre-douce);
}

.date__resume {
  margin: 0.45rem 0 0;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--encre-douce);
}

.date__statut {
  margin: 0.5rem 0 0;
  font-size: 0.8125rem;
  font-style: italic;
  letter-spacing: 0.04em;
  text-transform: lowercase;
  color: var(--vert-moyen);
}

/* Une date complète ou annulée reste lisible : elle ne disparaît pas, elle
   s'efface. Le contraste reste au-dessus du seuil d'accessibilité. */
.date--complet .date__nombre,
.date--annule .date__nombre {
  color: var(--encre-douce);
}

.date--annule .date__titre a {
  text-decoration: line-through;
  text-decoration-color: var(--sauge);
}

@media (max-width: 26rem) {
  .date {
    grid-template-columns: 1fr;
    gap: 0.4rem 0;
  }

  .date__jour {
    text-align: left;
  }

  .date__nombre,
  .date__semaine {
    display: inline;
  }

  .date__nombre {
    font-size: 1.25rem;
  }

  .date__semaine::before {
    content: ' ';
  }
}

/* --- Une date en particulier ---------------------------------------------- */

.evenement__date {
  margin: 0 0 0.5rem;
  font-size: 0.9375rem;
  font-style: italic;
  color: var(--vert-moyen);
}

.evenement__precision {
  margin: calc(var(--souffle) * -0.75) 0 var(--souffle);
  max-width: 44ch;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--encre-douce);
}

.date-passee {
  margin: 0 0 var(--demi-souffle);
  padding: 0.85rem 1.1rem;
  max-width: 48ch;
  font-size: 0.9375rem;
  color: var(--encre-douce);
  background: var(--fond-creux);
}

.date-passee a {
  color: var(--vert);
  text-decoration: none;
  border-bottom: 1px solid var(--sauge);
}

.date-passee a:hover,
.date-passee a:focus-visible {
  border-bottom-color: var(--or);
}

.bandeau {
  margin: 0 0 var(--demi-souffle);
  padding: 0.85rem 1.1rem;
  max-width: 48ch;
  font-size: 0.9375rem;
  line-height: 1.6;
  background: var(--fond-creux);
  border-left: 2px solid var(--sauge);
  color: var(--encre);
}

/* --- S'inscrire -----------------------------------------------------------
   Sandra a répondu « par téléphone » pour l'agenda et « courriel, formulaire
   et sms » pour le contact. Les voies sont donc proposées à égalité.
   -------------------------------------------------------------------------- */

.inscription {
  margin-top: var(--souffle);
  padding: clamp(1.4rem, 3.5vw, 2rem);
  max-width: 44ch;
  background: var(--fond-creux);
}

.inscription__titre {
  margin: 0 0 0.75rem;
  font-size: clamp(1.1875rem, 2.4vw, 1.375rem);
  font-style: italic;
  font-weight: 400;
  color: var(--vert-moyen);
}

.inscription__texte {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--encre-douce);
}

.inscription__voies {
  margin: 1.1rem 0 0;
  padding: 0;
  list-style: none;
}

.inscription__voies li + li {
  margin-top: 0.6rem;
}

.inscription__voies a {
  color: var(--vert);
  text-decoration: none;
  border-bottom: 1px solid var(--sauge);
  padding-bottom: 0.08em;
  transition: border-color 160ms ease;
}

.inscription__voies a:hover,
.inscription__voies a:focus-visible {
  border-bottom-color: var(--or);
}

.inscription__precision {
  margin-left: 0.5rem;
  font-size: 0.8125rem;
  font-style: italic;
  color: var(--encre-douce);
}

/* --- Le cadre ------------------------------------------------------------
   Seconde mesure du site. L'en-tête, l'ouverture, les bandeaux de titre, les
   bandes photo et le pied de page s'y installent ; la colonne de lecture ne
   bouge pas. Le bord gauche reste le même partout, il y a seulement de la
   place à droite.
   -------------------------------------------------------------------------- */

.trame--cadre { max-width: var(--cadre); }

/* --- Les sols -------------------------------------------------------------
   Le site n'avait qu'un seul fond de l'en-tête au pied de page. Chaque page
   s'ouvre et se ferme désormais sur le vert, la lecture est tenue entre les
   deux.
   -------------------------------------------------------------------------- */

.bandeau-ouverture,
.bandeau-titre {
  background: var(--vert);
}

.bandeau-ouverture .nav a,
.bandeau-titre .nav a {
  color: rgba(239, 242, 237, 0.85);
}

.bandeau-ouverture .nav a:hover,
.bandeau-ouverture .nav a:focus-visible,
.bandeau-titre .nav a:hover,
.bandeau-titre .nav a:focus-visible {
  color: var(--fond);
}

.bandeau-ouverture .nav a[aria-current='page'],
.bandeau-titre .nav a[aria-current='page'] {
  color: var(--fond);
  border-bottom-color: var(--or-clair);
}

.bandeau-ouverture :focus-visible,
.bandeau-titre :focus-visible {
  outline-color: var(--or-clair);
}

/* Le titre de page vit dans le bandeau. C'est lui qui distingue ce bandeau
   d'une barre de navigation : sans titre, il ne resterait qu'un logo et un
   menu sur fond sombre. */
.bandeau-titre__corps {
  padding-block: clamp(2rem, 6vw, 3.5rem) clamp(3rem, 8vw, 5rem);
}

.bandeau-titre .page__titre {
  margin-bottom: clamp(1.5rem, 3vw, 2rem);
  color: var(--fond);
}

.bandeau-titre .page__chapo {
  margin-bottom: 0;
  color: rgba(239, 242, 237, 0.78);
}

.bandeau-titre .evenement__date {
  color: rgba(239, 242, 237, 0.7);
}

/* --- L'ouverture, en deux colonnes ---------------------------------------- */

.ouverture {
  position: relative;
  overflow: hidden;
  padding-block: clamp(2rem, 6vw, 4rem) clamp(4rem, 10vw, 7rem);
}

.ouverture__grille {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(14rem, 17rem);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}

/* Sans activité à annoncer, l'ouverture reprend toute la largeur. */
.ouverture__grille--seule { grid-template-columns: minmax(0, 1fr); }

@media (max-width: 56rem) {
  .ouverture__grille { grid-template-columns: minmax(0, 1fr); gap: 3rem; }
}

.ouverture__titre { color: var(--fond); }
.ouverture__chapo { color: rgba(239, 242, 237, 0.78); }
.ouverture__filet { background: var(--or-clair); }

/* L'arc agrandi et recadré par le bord : une marque, pas un ornement. */
.ouverture__arc {
  position: absolute;
  right: -9rem;
  bottom: -7rem;
  width: clamp(20rem, 38vw, 34rem);
  height: auto;
  color: rgba(140, 159, 137, 0.45);
  pointer-events: none;
}

.ouverture__arc-point { fill: rgba(211, 173, 112, 0.75); }

@media (max-width: 56rem) { .ouverture__arc { display: none; } }

/* --- Notre prochaine activité ---------------------------------------------
   Registre volontairement sobre : ni tarif, ni nombre de places, ni bouton.
   Ces informations vivent dans l'agenda, qui fait foi. Une colonne de
   réservation serait un contresens sur une page qui promet des espaces pour
   souffler.
   -------------------------------------------------------------------------- */

.prochain {
  padding-top: 0.5rem;
  border-top: 1px solid rgba(239, 242, 237, 0.3);
}

.prochain p { margin: 0; }

.prochain__surtitre {
  margin-bottom: 1.1rem;
  font-size: 0.8125rem;
  font-style: italic;
  letter-spacing: 0.06em;
  color: rgba(239, 242, 237, 0.65);
}

.prochain__titre {
  font-size: 1.0625rem;
  line-height: 1.4;
  color: var(--fond);
}

.prochain__lieu {
  margin-top: 0.35rem;
  font-size: 0.875rem;
  font-style: italic;
  color: rgba(239, 242, 237, 0.72);
}

.prochain__date {
  margin-top: 0.6rem;
  font-size: 0.9375rem;
  color: var(--fond);
}

.prochain__statut {
  margin-top: 0.75rem;
  font-size: 0.8125rem;
  font-style: italic;
  line-height: 1.5;
  color: rgba(239, 242, 237, 0.72);
}

.prochain__lien { margin-top: 1.1rem; }

.prochain__lien a {
  font-size: 0.9375rem;
  color: var(--fond);
  text-decoration: none;
  border-bottom: 1px solid rgba(239, 242, 237, 0.45);
  padding-bottom: 0.1em;
  transition: border-color 160ms ease;
}

.prochain__lien a:hover,
.prochain__lien a:focus-visible { border-bottom-color: var(--or-clair); }

/* --- La bande photographique ----------------------------------------------
   Plus large que la colonne de lecture : c'est elle qui casse le ruban
   vertical unique. Elle prend la place de l'arc à la charnière — jamais deux
   marques sur une même page.
   -------------------------------------------------------------------------- */

.bande-photo {
  margin: var(--souffle) auto;
  padding-inline: var(--marge);
  max-width: var(--cadre);
}

.bande-photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.bande-photo__legende {
  margin-top: 0.7rem;
  font-size: 0.875rem;
  font-style: italic;
  color: var(--encre-douce);
}

/* --- Le pied de page reçoit un sol ---------------------------------------- */

.pied {
  background: var(--vert);
  color: rgba(239, 242, 237, 0.82);
  padding-block: clamp(3rem, 6vw, 4.5rem);
}

.pied a {
  color: var(--fond);
  text-decoration-color: rgba(239, 242, 237, 0.45);
}

.pied a:hover,
.pied a:focus-visible {
  color: var(--fond);
  text-decoration-color: var(--or-clair);
}

.pied :focus-visible { outline-color: var(--or-clair); }

/* Sur l'accueil, la clôture et le pied ne font plus qu'un seul bloc. */
.cloture { padding-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.cloture + .pied { padding-top: 0; }

.cloture + .pied .pied__interieur {
  padding-top: clamp(2.5rem, 5vw, 3.5rem);
  border-top: 1px solid rgba(239, 242, 237, 0.18);
}

/* --- Mouvement ------------------------------------------------------------
   Un seul moment orchestré, à l'ouverture. Rien d'autre ne bouge.
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: no-preference) {
  .ouverture__titre,
  .ouverture__chapo {
    animation: apparition 900ms cubic-bezier(0.22, 0.61, 0.36, 1) both;
  }

  .ouverture__chapo {
    animation-delay: 180ms;
  }
}

@keyframes apparition {
  from {
    opacity: 0;
    transform: translateY(0.5rem);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* --- Impression ----------------------------------------------------------- */

@media print {
  body {
    background: #fff;
    color: #000;
    font-size: 11pt;
  }

  .nav,
  .cloture__lien,
  .note-redaction,
  .charniere,
  .autres {
    display: none;
  }

  .cloture {
    background: none;
    color: #000;
    border-top: 1px solid #999;
  }

  .cloture__phrase {
    color: #000;
  }
}
