/* =========================================================
   Le Fils du Temps — feuille de style principale
   ---------------------------------------------------------
   Pour changer les couleurs du site, modifiez simplement
   les variables ci-dessous (:root).
   ========================================================= */

@font-face { font-family: "Cardo"; src: url("../fonts/Cardo-Regular.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Cardo"; src: url("../fonts/Cardo-Bold.woff") format("woff"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Cardo"; src: url("../fonts/Cardo-Italic.woff") format("woff"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Crimson Text"; src: url("../fonts/CrimsonText-Regular.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Crimson Text"; src: url("../fonts/CrimsonText-Italic.woff") format("woff"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Crimson Text"; src: url("../fonts/CrimsonText-SemiBold.woff") format("woff"); font-weight: 600; font-style: normal; font-display: swap; }

:root {
  --encre: #3a2414;          /* brun encre : textes */
  --encre-douce: #5a3d26;
  --rouge: #a8191b;          /* rouge du « S » du logo */
  --rouge-fonce: #7e1012;
  --ocre: #8a5a2b;           /* accents, filets */
  --parchemin: #f1e2c4;
  --parchemin-fonce: #e3cc9f;
  --bois: #2b1c10;           /* pied de page */
  --voile: rgba(250, 240, 218, .72);
  --ombre: 0 6px 22px rgba(58, 36, 20, .18);
  --titre: "Cardo", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --texte: "Crimson Text", Georgia, "Times New Roman", serif;
  --largeur: 1120px;
  --entete-h: 84px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--entete-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--texte);
  font-size: 1.2rem;
  line-height: 1.65;
  color: var(--encre);
  background-color: var(--parchemin);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Fond (tableau) : posé sur un calque fixe (fonctionne aussi sur iPhone,
   contrairement à background-attachment: fixed) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: #44683a;
}

img { max-width: 100%; display: block; }
a { color: var(--rouge); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--rouge-fonce); }

h1, h2, h3, h4 { font-family: var(--titre); font-weight: 700; line-height: 1.2; color: var(--encre); }
h1 { font-size: clamp(2.1rem, 4.5vw, 3.2rem); margin: 0 0 .4em; letter-spacing: .01em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin: 1.6em 0 .5em; }
h3 { font-size: 1.35rem; margin: 1.3em 0 .4em; }
p { margin: 0 0 1em; }
strong { font-weight: 600; }

.lien-evitement {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--encre); color: var(--parchemin); padding: .6rem 1rem;
}
.lien-evitement:focus { left: 1rem; top: 1rem; }

/* =========================================================
   EN-TÊTE : menu à gauche, logo en haut à droite
   ========================================================= */
.entete {
  position: sticky; top: 0; z-index: 100;
  background: rgba(241, 226, 196, .9);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(138, 90, 43, .35);
  box-shadow: 0 2px 14px rgba(58, 36, 20, .08);
}
.entete__interieur {
  max-width: 1280px; margin: 0 auto; padding: 0 1.25rem;
  height: var(--entete-h);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.entete__logo { flex: 0 0 auto; order: 2; }
.entete__logo img { height: 70px; width: auto; }

.nav { order: 1; }
.nav__liste { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: .15rem; }
.nav__liste > li { position: relative; }
.nav a, .nav__bouton {
  font-family: var(--titre); font-size: 1.05rem; font-weight: 700;
  color: var(--encre); text-decoration: none;
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .55rem .8rem; border-radius: 4px;
  background: none; border: 0; cursor: pointer; line-height: 1.2;
}
.nav a:hover, .nav__bouton:hover, .nav a:focus-visible, .nav__bouton:focus-visible { color: var(--rouge); background: rgba(138, 90, 43, .1); }
.nav a[aria-current="page"], .nav__bouton.actif { color: var(--rouge); }
.nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: .8rem; right: .8rem; bottom: .25rem; height: 2px; background: var(--rouge);
}
.nav > ul > li > a { position: relative; }
.chevron { width: .7em; height: .7em; transition: transform .2s; }
.nav__bouton[aria-expanded="true"] .chevron { transform: rotate(180deg); }

.sous-menu {
  list-style: none; margin: 0; padding: .4rem;
  position: absolute; top: 100%; left: 0; min-width: 230px;
  background: #f6ead2; border: 1px solid rgba(138, 90, 43, .35); border-radius: 6px;
  box-shadow: var(--ombre);
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .18s, transform .18s, visibility .18s;
}
.sous-menu a { display: block; width: 100%; padding: .5rem .8rem; font-size: 1rem; }
.sous-menu a[aria-current="page"]::after { display: none; }
.a-sous-menu:hover > .sous-menu,
.a-sous-menu:focus-within > .sous-menu,
.a-sous-menu.ouvert > .sous-menu { opacity: 1; visibility: visible; transform: translateY(0); }

.burger { display: none; order: 1; background: none; border: 0; padding: .5rem; cursor: pointer; color: var(--encre); }
.burger svg { width: 30px; height: 30px; }

@media (max-width: 960px) {
  .burger { display: inline-flex; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0; height: calc(100vh - var(--entete-h)); height: calc(100dvh - var(--entete-h));
    background: #f3e5c9; overflow-y: auto; padding: 1rem 1.25rem 2rem;
    transform: translateX(-100%); transition: transform .25s ease; visibility: hidden;
  }
  .nav.ouvert { transform: none; visibility: visible; }
  .nav__liste { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__liste > li { border-bottom: 1px solid rgba(138, 90, 43, .2); }
  .nav a, .nav__bouton { width: 100%; justify-content: space-between; padding: .9rem .4rem; font-size: 1.2rem; }
  .nav a[aria-current="page"]::after { display: none; }
  .sous-menu {
    position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none;
    background: none; border: 0; padding: 0 0 .6rem 1rem; display: none;
  }
  .a-sous-menu:hover > .sous-menu, .a-sous-menu:focus-within > .sous-menu { display: none; }
  .a-sous-menu.ouvert > .sous-menu { display: block; }
  .sous-menu a { font-size: 1.1rem; padding: .55rem .4rem; }
}
body.menu-ouvert { overflow: hidden; }

/* =========================================================
   GRAND LOGO (disparaît au défilement)
   ========================================================= */
.vitrine {
  min-height: min(62vh, 560px);
  display: flex; align-items: center; justify-content: center;
  padding: 2.5rem 1.25rem 1rem;
}
.vitrine__logo {
  width: min(860px, 92vw);
  will-change: opacity, transform;
  transition: opacity .05s linear;
}
.vitrine__logo img { width: 100%; height: auto; filter: drop-shadow(0 2px 1px rgba(255, 245, 225, .6)); }
.vitrine--courte { min-height: min(42vh, 380px); }
.vitrine--courte .vitrine__logo { width: min(620px, 86vw); }

/* =========================================================
   CONTENU
   ========================================================= */
main { flex: 1 0 auto; }
.conteneur { max-width: var(--largeur); margin: 0 auto; padding: 0 1.25rem; }

.titre-page { text-align: center; margin: 0 auto 2.5rem; max-width: 820px; }
.titre-page .surtitre {
  display: inline-block; font-family: var(--titre); font-size: .95rem; letter-spacing: .18em;
  text-transform: uppercase; color: var(--ocre); margin-bottom: .6rem;
}
.titre-page .chapeau { font-size: 1.35rem; font-style: italic; color: var(--encre-douce); }

.fleuron { display: flex; align-items: center; justify-content: center; gap: .9rem; color: var(--ocre); margin: 1.2rem auto; }
.fleuron::before, .fleuron::after { content: ""; height: 1px; width: 90px; background: currentColor; opacity: .6; }
.fleuron span { font-size: 1.1rem; line-height: 1; }

.carte-texte {
  background: var(--voile);
  border: 1px solid rgba(138, 90, 43, .25);
  border-radius: 8px;
  padding: clamp(1.4rem, 3vw, 2.4rem);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .5) inset;
}

.section { margin: 0 0 3.5rem; }
.section > h2:first-child { margin-top: 0; }

.deux-colonnes { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
.deux-colonnes--inverse > :first-child { order: 2; }
@media (max-width: 820px) {
  .deux-colonnes { grid-template-columns: 1fr; }
  .deux-colonnes--inverse > :first-child { order: 0; }
}

.grille-cartes { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.25rem; }
.carte {
  background: var(--voile); border: 1px solid rgba(138, 90, 43, .25); border-radius: 8px;
  padding: 1.4rem 1.4rem 1.2rem; display: flex; flex-direction: column;
}
.carte h3 { margin-top: 0; }
.carte p:last-child { margin-bottom: 0; }
.carte .lien-suite { margin-top: auto; font-family: var(--titre); font-weight: 700; text-decoration: none; }
.carte .lien-suite::after { content: " →"; }

.liste-puces { padding-left: 0; list-style: none; margin: 0 0 1em; }
.liste-puces li { position: relative; padding-left: 1.6rem; margin-bottom: .45rem; }
.liste-puces li::before { content: "✦"; position: absolute; left: 0; top: .05em; color: var(--rouge); font-size: .85em; }

.chiffres { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; margin: 1.5rem 0; }
.chiffre {
  text-align: center; padding: 1.1rem .8rem; border: 1px solid rgba(138, 90, 43, .3); border-radius: 8px;
  background: rgba(255, 248, 232, .55);
}
.chiffre strong { display: block; font-family: var(--titre); font-size: 2rem; color: var(--rouge); line-height: 1.1; }
.chiffre span { font-size: 1rem; color: var(--encre-douce); }

.encadre {
  border-left: 4px solid var(--rouge); background: rgba(255, 248, 232, .65);
  padding: 1rem 1.3rem; border-radius: 0 6px 6px 0; margin: 1.5rem 0;
}
.encadre p:last-child { margin-bottom: 0; }
.encadre--histoire { border-left-color: var(--ocre); }
.encadre__titre { font-family: var(--titre); font-weight: 700; display: block; margin-bottom: .3rem; }

.etapes { counter-reset: etape; list-style: none; padding: 0; margin: 0 0 1em; }
.etapes li { counter-increment: etape; position: relative; padding-left: 3rem; margin-bottom: 1rem; }
.etapes li::before {
  content: counter(etape); position: absolute; left: 0; top: 0;
  width: 2.1rem; height: 2.1rem; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--titre); font-weight: 700; color: var(--parchemin); background: var(--encre);
}

.bouton {
  display: inline-block; font-family: var(--titre); font-weight: 700; font-size: 1.1rem;
  padding: .8rem 1.6rem; border-radius: 4px; text-decoration: none; cursor: pointer;
  background: var(--rouge); color: #fff6e6; border: 2px solid var(--rouge);
  transition: background .2s, color .2s;
}
.bouton:hover, .bouton:focus-visible { background: var(--rouge-fonce); border-color: var(--rouge-fonce); color: #fff6e6; }
.bouton--contour { background: transparent; color: var(--rouge); }
.bouton--contour:hover { background: var(--rouge); color: #fff6e6; }
.appel { text-align: center; padding: 2.4rem 1.25rem; }
.appel p { font-size: 1.3rem; font-style: italic; }
.appel .boutons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* =========================================================
   EMPLACEMENTS PHOTO (vos photos)
   ========================================================= */
.photo {
  margin: 0; position: relative; border-radius: 6px; overflow: hidden;
  background: rgba(227, 204, 159, .55);
  border: 1px solid rgba(138, 90, 43, .35);
  box-shadow: var(--ombre);
  aspect-ratio: 4 / 3;
}
.photo--portrait { aspect-ratio: 3 / 4; }
.photo--large { aspect-ratio: 16 / 9; }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: .5rem .8rem;
  font-size: .95rem; font-style: italic; color: #fff6e6;
  background: linear-gradient(transparent, rgba(43, 28, 16, .75));
}
.photo.vide {
  display: grid; place-items: center; text-align: center;
  border: 2px dashed rgba(138, 90, 43, .55); box-shadow: none;
  background: repeating-linear-gradient(45deg, rgba(227, 204, 159, .35) 0 12px, rgba(241, 226, 196, .35) 12px 24px);
}
.photo.vide figcaption { display: none; }
.photo__indication { padding: 1rem; color: var(--encre-douce); font-size: .95rem; line-height: 1.35; }
.photo__indication svg { width: 38px; height: 38px; margin: 0 auto .4rem; opacity: .7; display: block; }
.photo__indication code { font-size: .8rem; background: rgba(255, 248, 232, .8); padding: .1rem .35rem; border-radius: 3px; word-break: break-all; }

.mosaique { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
@media (max-width: 700px) { .mosaique { grid-template-columns: 1fr 1fr; } }

/* =========================================================
   BANDEAU DE PHOTOS DÉFILANTES (bas de page)
   ========================================================= */
.bandeau-photos { margin: 2rem 0 0; padding: 2rem 0 2.4rem; overflow: hidden; }
.bandeau-photos h2 { text-align: center; margin: 0 0 1.2rem; font-size: 1.6rem; }
.bandeau__fenetre {
  overflow: hidden; position: relative;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.bandeau__piste { display: flex; gap: 0; width: max-content; animation: defile var(--duree, 40s) linear infinite; }
.bandeau__fenetre:hover .bandeau__piste, .bandeau__fenetre:focus-within .bandeau__piste { animation-play-state: paused; }
@keyframes defile { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .bandeau__piste { animation: none; }
  .bandeau__fenetre { overflow-x: auto; }
}
.vignette {
  flex: 0 0 auto; width: 240px; height: 170px; margin: 6px 1rem 6px 0; border-radius: 6px; overflow: hidden;
  border: 3px solid #fbf3e2; box-shadow: 0 4px 14px rgba(58, 36, 20, .25);
  background: var(--parchemin-fonce); padding: 0; cursor: zoom-in; transform: rotate(var(--r, 0deg)); font: inherit; color: inherit;
}
.vignette img { width: 100%; height: 100%; object-fit: cover; }
.vignette.vide {
  cursor: default; display: grid; place-items: center; text-align: center; font-size: .85rem; color: var(--encre-douce);
  border: 2px dashed rgba(138, 90, 43, .55); box-shadow: none;
  background: repeating-linear-gradient(45deg, rgba(227, 204, 159, .5) 0 10px, rgba(241, 226, 196, .5) 10px 20px);
}
@media (max-width: 600px) { .vignette { width: 180px; height: 128px; } }

/* Visionneuse (clic sur une photo du bandeau) */
.visionneuse {
  position: fixed; inset: 0; z-index: 300; background: rgba(20, 12, 6, .88);
  display: none; align-items: center; justify-content: center; padding: 2rem;
}
.visionneuse.ouverte { display: flex; }
.visionneuse img { max-width: 92vw; max-height: 86vh; border: 4px solid #fbf3e2; border-radius: 4px; }
.visionneuse button {
  position: absolute; top: 1rem; right: 1rem; background: #fbf3e2; color: var(--encre);
  border: 0; border-radius: 50%; width: 44px; height: 44px; font-size: 1.6rem; cursor: pointer; line-height: 1;
}

/* =========================================================
   CONTACT
   ========================================================= */
.contact-grille { display: grid; grid-template-columns: 1.35fr 1fr; gap: 2rem; align-items: start; }
@media (max-width: 900px) { .contact-grille { grid-template-columns: 1fr; } }

.formulaire { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.2rem; align-items: end; }
.formulaire .plein { grid-column: 1 / -1; }
@media (max-width: 600px) { .formulaire { grid-template-columns: 1fr; } }
.champ label { display: block; font-family: var(--titre); font-weight: 700; font-size: 1.02rem; margin-bottom: .3rem; }
.champ .facultatif { font-family: var(--texte); font-weight: 400; font-style: italic; color: var(--encre-douce); }
.champ input, .champ select, .champ textarea {
  width: 100%; font: inherit; font-size: 1.1rem; color: var(--encre);
  padding: .65rem .8rem; border-radius: 4px;
  border: 1px solid rgba(90, 61, 38, .45); background: rgba(255, 250, 238, .9);
}
.champ textarea { min-height: 170px; resize: vertical; }
.champ input:focus, .champ select:focus, .champ textarea:focus { outline: 2px solid var(--rouge); outline-offset: 1px; border-color: var(--rouge); }
.champ--case { display: flex; gap: .6rem; align-items: flex-start; font-size: 1rem; line-height: 1.4; }
.champ--case input { width: auto; margin-top: .3rem; accent-color: var(--rouge); }
.pot-de-miel { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.message-formulaire { grid-column: 1 / -1; padding: .9rem 1.1rem; border-radius: 6px; display: none; }
.message-formulaire.ok { display: block; background: rgba(76, 110, 45, .14); border: 1px solid rgba(76, 110, 45, .5); }
.message-formulaire.erreur { display: block; background: rgba(168, 25, 27, .1); border: 1px solid rgba(168, 25, 27, .5); }

.coordonnees { list-style: none; padding: 0; margin: 0; }
.coordonnees li { display: flex; gap: .8rem; align-items: flex-start; margin-bottom: 1rem; }
.coordonnees svg { width: 24px; height: 24px; flex: 0 0 24px; color: var(--rouge); margin-top: .2rem; }
.carte-geo { border-radius: 8px; overflow: hidden; border: 1px solid rgba(138, 90, 43, .35); box-shadow: var(--ombre); background: var(--parchemin-fonce); }
.carte-geo iframe { display: block; width: 100%; height: 360px; border: 0; }
.carte-geo__lien { display: block; padding: .6rem .9rem; font-size: 1rem; background: rgba(255, 248, 232, .85); }

/* =========================================================
   PIED DE PAGE
   ========================================================= */
.pied {
  margin-top: 2rem; background: var(--bois); color: #eadbbd;
  border-top: 4px double rgba(234, 219, 189, .35);
}
.pied__interieur {
  max-width: var(--largeur); margin: 0 auto; padding: 2.6rem 1.25rem 1.4rem;
  display: grid; grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 1.2rem;
}
.pied__logo img { width: 230px; height: auto; }
.signature {
  font-family: var(--titre); font-style: italic; font-size: clamp(1.4rem, 3.2vw, 2rem);
  color: #f6e7c8; margin: 0; letter-spacing: .01em;
}
.signature strong { font-style: normal; color: #fff; }
.reseaux { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; }
.reseaux a {
  display: inline-flex; align-items: center; gap: .5rem; text-decoration: none;
  color: #f6e7c8; border: 1px solid rgba(234, 219, 189, .4); border-radius: 999px; padding: .45rem 1rem;
  font-family: var(--titre); font-weight: 700; font-size: 1rem;
}
.reseaux a:hover, .reseaux a:focus-visible { background: #f6e7c8; color: var(--bois); }
.reseaux svg { width: 20px; height: 20px; }
.pied__bas { font-size: .95rem; opacity: .8; display: flex; gap: 1.2rem; flex-wrap: wrap; justify-content: center; }
.pied__bas a { color: #eadbbd; }

[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--rouge); outline-offset: 2px; }

/* Réseaux sociaux sur fond clair (page Contact) */
.reseaux--clair { justify-content: flex-start; }
.reseaux--clair a { color: var(--encre); border-color: rgba(58, 36, 20, .35); }
.reseaux--clair a:hover, .reseaux--clair a:focus-visible { background: var(--encre); color: var(--parchemin); }

/* ---------- Ajouts v2 ---------- */
.titre-centre { text-align: center; }
.logo-craie { display: none; }
.photo--libre { aspect-ratio: auto; }
.photo--libre img { height: auto; }
.photo--libre.vide { min-height: 320px; }
.liens-doubles { margin-top: auto; display: flex; flex-direction: column; gap: .35rem; }
.qr { display: flex; gap: 1rem; align-items: center; margin-top: 1.2rem; }
.qr img { width: 120px; height: 120px; background: #fff; padding: 6px; border-radius: 6px; flex: 0 0 120px; }
.qr p { margin: 0; font-size: 1rem; }
/* Bandeau : les photos gardent leur format (portrait ou paysage) */
.vignette:not(.vide) { width: auto; }
.vignette:not(.vide) img { width: auto; height: 100%; max-width: none; }
.vignette { height: 200px; }
@media (max-width: 600px) { .vignette { height: 150px; } }

/* =========================================================
   THÈME « TABLEAU D'ÉCOLE » (appliqué à tout le site)
   ========================================================= */
.theme-tableau{ background-color: #44683a; }
.theme-tableau::before {
  /* Grain fin en mosaïque (toujours net, jamais agrandi) posé sur le tableau haute définition */
  background: url("../images/grain.png") 0 0 / 256px 256px repeat, url("../images/tableau.jpg") center / cover no-repeat;
  background-blend-mode: soft-light, normal;
}
.theme-tableau .logo-encre{ display: none; }
.theme-tableau .logo-craie{ display: block; }
.theme-tableau .vitrine__logo img{ filter: drop-shadow(0 0 1px rgba(255,255,255,.25)); }

/* En-tête « ardoise »  */
.theme-tableau .entete{
  background: rgba(36, 56, 31, .88); border-bottom: 1px solid rgba(240, 236, 222, .25);
}
.theme-tableau .nav a, .theme-tableau .nav__bouton{ color: #f3eedf; }
.theme-tableau .nav a:hover, .theme-tableau .nav__bouton:hover{ color: #fff; background: rgba(255, 255, 255, .1); }
.theme-tableau .nav a[aria-current="page"], .theme-tableau .nav__bouton.actif{ color: #ffd7cf; }
.theme-tableau .nav a[aria-current="page"]::after{ background: #ffd7cf; }
.theme-tableau .sous-menu{ background: #2c4527; border-color: rgba(240, 236, 222, .25); }
.theme-tableau .burger{ color: #f3eedf; }
@media (max-width: 960px) { .theme-tableau .nav{ background: #2c4527; } }
.theme-tableau .pied{ background: #1d2e1a; }

/* Contenu écrit « à la craie » */
.theme-tableau { color: #f3eedf; }
.theme-tableau h1, .theme-tableau h2, .theme-tableau h3 { color: #fbf8ef; text-shadow: 0 0 1px rgba(255, 255, 255, .25); }
.theme-tableau .titre-page .surtitre, .theme-tableau .fleuron { color: #ecd99a; }
.theme-tableau .titre-page .chapeau { color: #e9e3d1; }
.theme-tableau .carte-texte, .theme-tableau .carte {
  background: rgba(22, 38, 20, .38);
  border: 1.5px solid rgba(243, 238, 223, .45);
  border-radius: 10px 14px 9px 12px;
  box-shadow: none;
}
.theme-tableau a { color: #f6dd8f; }
.theme-tableau a:hover { color: #fff; }
.theme-tableau .liste-puces li::before { color: #ff9b8c; }
.theme-tableau .photo { border: 6px solid #f6efdc; border-radius: 3px; box-shadow: 0 8px 22px rgba(0, 0, 0, .35); transform: rotate(-1deg); }
.theme-tableau .photo--libre:nth-of-type(odd) { transform: rotate(1deg); }
.theme-tableau .appel p { color: #f3eedf; }
.theme-tableau .bandeau-photos h2 { color: #fbf8ef; }

.theme-tableau a.bouton, .theme-tableau a.bouton:hover { color: #fff6e6; }

/* ---------- Lisibilité des éléments sur le tableau ---------- */
.theme-tableau .encadre { background: rgba(22, 38, 20, .5); border-left-color: #ff9b8c; }
.theme-tableau .encadre--histoire { border-left-color: #ecd99a; }
.theme-tableau .chiffre { background: rgba(22, 38, 20, .38); border: 1.5px solid rgba(243, 238, 223, .45); }
.theme-tableau .chiffre strong { color: #ffc2b8; }
.theme-tableau .chiffre span { color: #e9e3d1; }
.theme-tableau .etapes li::before { background: #f3eedf; color: #2c4527; }
.theme-tableau .photo.vide { border: 2px dashed rgba(243, 238, 223, .55); background: rgba(22, 38, 20, .35); box-shadow: none; transform: none; }
.theme-tableau .photo__indication { color: #e9e3d1; }
.theme-tableau .photo__indication code, .theme-tableau .vignette.vide code { background: rgba(0, 0, 0, .3); color: #f3eedf; }
.theme-tableau .vignette.vide { color: #e9e3d1; border-color: rgba(243, 238, 223, .55); background: rgba(22, 38, 20, .35); }
.theme-tableau .champ .facultatif { color: #d9d2bd; }
.theme-tableau .champ input, .theme-tableau .champ select, .theme-tableau .champ textarea { background: #fbf8ef; border-color: rgba(243, 238, 223, .7); }
.theme-tableau .champ input:focus, .theme-tableau .champ select:focus, .theme-tableau .champ textarea:focus { outline-color: #f6dd8f; border-color: #f6dd8f; }
.theme-tableau .champ--case input { accent-color: #c9302c; }
.theme-tableau .message-formulaire.ok { background: rgba(200, 230, 180, .15); border-color: rgba(200, 230, 180, .6); }
.theme-tableau .message-formulaire.erreur { background: rgba(255, 155, 140, .15); border-color: rgba(255, 155, 140, .7); }
.theme-tableau .coordonnees svg { color: #ecd99a; }
.theme-tableau .carte-geo { border: 6px solid #f6efdc; border-radius: 3px; box-shadow: 0 8px 22px rgba(0, 0, 0, .35); }
.theme-tableau .carte-geo__lien { background: #f6efdc; color: #7e1012; }
.theme-tableau .reseaux--clair a { color: #f3eedf; border-color: rgba(243, 238, 223, .45); }
.theme-tableau .reseaux--clair a:hover, .theme-tableau .reseaux--clair a:focus-visible { background: #f3eedf; color: #2c4527; }
.theme-tableau :focus-visible { outline-color: #f6dd8f; }
.theme-tableau .titre-page .surtitre { text-shadow: none; }

/* ---------- Page Animations : sommaire et sections ---------- */
.sommaire { display: flex; flex-wrap: wrap; justify-content: center; gap: .7rem; margin: 0 auto 3rem; padding: 0; list-style: none; max-width: 900px; }
.sommaire a {
  display: inline-block; font-family: var(--titre); font-weight: 700; font-size: 1.1rem; text-decoration: none;
  padding: .55rem 1.2rem; border: 1.5px solid rgba(243, 238, 223, .55); border-radius: 999px; color: #f3eedf;
}
.sommaire a:hover, .sommaire a:focus-visible { background: #f3eedf; color: #2c4527; }
.animation { padding-top: 1rem; margin-bottom: 4rem; }
.animation > h2 { text-align: center; font-size: clamp(2rem, 4vw, 2.6rem); margin: 0 0 .3rem; }
.animation > .chapeau { text-align: center; font-style: italic; font-size: 1.3rem; color: #e9e3d1; margin: 0 auto 2rem; max-width: 760px; }
.animation .deux-colonnes { margin-bottom: 1.6rem; }
.animation h3:first-child { margin-top: 0; }
.retour-sommaire { text-align: right; font-size: 1rem; margin: 1rem 0 0; }
.animation .chiffres { margin: 0 0 1.8rem; }
.animation .mosaique { margin-top: 1.4rem; }
.animation + .animation { border-top: 1.5px dashed rgba(243, 238, 223, .35); padding-top: 3rem; }

/* ---------- Ajouts v5 ---------- */
/* Photos sous les textes des cartes (page Campement) */
.photo--carte { margin-top: 1.1rem; }
.theme-tableau .photo--carte { transform: rotate(-.6deg); }
.photo--bas img { object-position: 50% 72%; }
/* Séparateur « trait de craie » entre deux formats d'atelier / deux animations */
.animation + .animation { border-top: 0; position: relative; }
.animation + .animation::before {
  content: ""; position: absolute; top: 0; left: 3%; right: 3%; height: 22px;
  background: url("../images/trait-craie.png") center / 100% 100% no-repeat;
}

/* ---------- Ajouts v7 ---------- */
/* Page Contact : photo au-dessus des coordonnées, carte en pleine largeur */
.photo--contact { max-width: 340px; margin: 0 auto 1.6rem; }
.section-carte { margin: 3.5rem 0 1rem; }
.section-carte .carte-geo iframe { height: 400px; }

/* ---------- Ajouts v8 ---------- */
/* Traits de craie autour du symbole ✦ (sous les titres de page et les appels) */
.fleuron::before, .fleuron::after {
  width: 120px; height: 12px; opacity: .9;
  background: url("../images/trait-craie-court.png") center / 100% 100% no-repeat;
}
.fleuron::after { transform: scaleX(-1); }

/* ---------- Ajouts v9 ---------- */
/* Séparateur : le village du logo, prolongé de chaque côté par un trait de craie
   posé sur la même ligne de sol */
.fleuron { align-items: flex-end; gap: 0; margin: 1.4rem auto 1.2rem; }
.fleuron__village { height: 58px; width: auto; display: block; }
.fleuron::before, .fleuron::after { width: clamp(40px, 10vw, 130px); margin-bottom: -4.5px; }
@media (max-width: 600px) { .fleuron__village { height: 42px; } .fleuron::before, .fleuron::after { margin-bottom: -4.8px; } }
