/* ==========================================================================
   La Sauvegarde de Crépy — feuille de style
   Palette reprise du site existant (tons terre, bois, sauge)
   ========================================================================== */

:root {
  --cream: #FBF6EF;
  --cream-deep: #F3E7D8;
  --tan: #E3CCB7;
  --tan-deep: #C7A88D;
  --brown: #724F30;
  --brown-dark: #4A3220;
  --ink: #332F2B;
  --ink-soft: #6B6259;
  --olive: #49553B;
  --sage: #6E8059;
  --sage-light: #E7EBE2;
  --border: #DDD8D1;
  --white: #FFFFFF;

  --font-title: Georgia, 'Iowan Old Style', 'Palatino Linotype', serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  --radius: 10px;
  --shadow: 0 6px 24px rgba(74, 50, 32, 0.10);
  --shadow-sm: 0 2px 10px rgba(74, 50, 32, 0.08);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

h1, h2, h3, h4 {
  font-family: var(--font-title);
  color: var(--brown-dark);
  line-height: 1.25;
  margin: 0 0 .75rem;
}

h1 { font-size: clamp(1.9rem, 4vw, 2.9rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1rem; }

.eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: .6rem;
}

.lead { font-size: 1.08rem; color: var(--ink-soft); }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
}
.btn-primary { background: var(--sage); color: var(--white); }
.btn-primary:hover { background: var(--olive); transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.btn-outline { background: transparent; border-color: var(--brown); color: var(--brown); }
.btn-outline:hover { background: var(--brown); color: var(--white); }
.btn-light { background: var(--white); color: var(--brown-dark); }
.btn-light:hover { background: var(--cream-deep); }

/* ---------- Header / Nav ---------- */
.site-header {
  background: var(--tan);
  border-bottom: 1px solid var(--tan-deep);
  position: sticky;
  top: 0;
  z-index: 100;
}
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; }

.header-inner {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  justify-content: space-between;
  padding-top: .5rem;
  padding-bottom: .5rem;
  gap: .6rem 1.4rem;
  min-height: 70px;
}
.brand-title { flex: 0 0 auto; max-width: 210px; text-decoration: none; text-align: left; order: 1; }
.brand-text { font-family: var(--font-title); font-weight: 700; color: var(--brown-dark); font-size: 1.05rem; line-height: 1.2; white-space: nowrap; }
.brand-text small { display: block; font-family: var(--font-body); font-weight: 400; font-size: .72rem; color: var(--ink-soft); letter-spacing: .04em; white-space: normal; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: .4rem;
  order: 2;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--brown-dark);
  margin: 5px 0;
  transition: transform .2s ease, opacity .2s ease;
}

.main-nav {
  order: 3;
  flex: 0 1 auto;
  min-width: 0;
  margin: 0 auto;
  /* Bandeau de couleur arrondi aux deux bouts, ajusté à ses onglets */
  background: var(--sage);
  border-radius: 999px;
  padding: .3rem .5rem;
}
.site-header .header-inner { max-width: none; }
.main-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .2rem 0;
  margin: 0;
  padding: 0;
}
.brand-logo-link { order: 0; display: flex; align-items: center; align-self: stretch; flex: 0 0 auto; }
.brand-logo { height: 100%; max-height: 56px; width: auto; }
.main-nav a {
  display: inline-block;
  white-space: nowrap;
  text-decoration: none;
  color: var(--cream);
  font-size: .92rem;
  font-weight: 500;
  padding: .4rem .6rem;
  border-radius: 999px;
  transition: background .15s ease, color .15s ease;
}
.main-nav a:hover { background: rgba(255, 255, 255, .15); color: var(--white); }
.main-nav a.active { background: var(--cream); color: var(--olive); font-weight: 600; }

/* Écran moyen : le bandeau passe sous le logo, sur toute la largeur */
@media (min-width: 721px) and (max-width: 1260px) {
  .header-inner { flex-wrap: wrap; justify-content: flex-start; }
  .main-nav { flex-basis: 100%; margin-left: 0; padding: .3rem .8rem; border-radius: 1.4rem; }
  .main-nav ul { justify-content: center; }
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--brown), var(--brown-dark));
  color: var(--cream);
  padding: 1.4rem 0;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto -10% -60% auto;
  width: 60%;
  padding-top: 60%;
  background: radial-gradient(circle, rgba(255,255,255,.08), transparent 70%);
  border-radius: 50%;
}
.hero .container { position: relative; z-index: 1; }
.hero-row { display: flex; align-items: center; justify-content: space-between; gap: 3rem; }
.hero-text { flex: 1; min-width: 0; }
.hero-media {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .6rem;
}
.hero-logo {
  height: auto;
  max-height: 110px;
  width: auto;
  max-width: 150px;
  object-fit: contain;
  filter: drop-shadow(0 12px 28px rgba(0,0,0,.35));
}
.hero h1 { color: var(--white); font-size: clamp(1.7rem, 3vw, 2.4rem); margin-bottom: .4rem; }
.hero p.lead { color: var(--tan); max-width: 620px; margin-bottom: 0; }
.hero .actions { display: flex; gap: .6rem; flex-wrap: wrap; justify-content: center; }
.hero .actions .btn { padding: .5rem 1.1rem; font-size: .82rem; }

.page-hero {
  background: linear-gradient(135deg, var(--brown), var(--brown-dark));
  color: var(--cream);
  padding: 3.4rem 0;
}
.page-hero h1 { color: var(--white); margin-bottom: .4rem; }
.page-hero p { color: var(--tan); margin: 0; max-width: 640px; }

/* ---------- Bandeau (façon site actuel) ---------- */
.band {
  background: var(--brown);
  color: var(--white);
  text-align: center;
  padding: 1.1rem 1.5rem;
  font-family: var(--font-title);
  font-weight: 700;
  letter-spacing: .03em;
  font-size: 1.15rem;
  text-transform: uppercase;
}

/* ---------- Sections ---------- */
section { padding: 4rem 0; }
.section-alt { background: var(--white); }
.section-tan { background: var(--cream-deep); }

.section-head { max-width: 700px; margin: 0 auto 2.6rem; text-align: center; }
.section-head.left { margin-left: 0; text-align: left; }

/* ---------- Placeholder visuel (remplace les photos) ---------- */
.ph {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(150deg, var(--sage) 0%, var(--olive) 45%, var(--brown) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  color: rgba(255,255,255,.85);
}
.ph::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,.14) 0, transparent 45%),
    radial-gradient(circle at 80% 70%, rgba(255,255,255,.10) 0, transparent 50%);
}
.ph svg { position: relative; width: 46%; opacity: .9; }
.ph.tone-tan { background: linear-gradient(150deg, var(--tan) 0%, var(--tan-deep) 55%, var(--brown) 100%); }
.ph.tone-brown { background: linear-gradient(150deg, var(--brown) 0%, var(--brown-dark) 100%); }
.card-img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  display: block;
  background: var(--tan);
}
.person .avatar-img {
  width: 160px; height: 160px; border-radius: 50%;
  margin: 0 auto 1rem;
  object-fit: cover;
  display: block;
  border: 4px solid var(--white); box-shadow: var(--shadow);
}
.gallery-grid figure { margin: 0; }
.gallery-grid figcaption { padding: .5rem .1rem 0; font-size: .86rem; color: var(--ink); }
.gallery-grid figcaption strong { display: block; font-weight: 600; }
.gallery-grid .gp-img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  display: block;
  border-radius: var(--radius);
  background: var(--tan);
}
.gallery-grid .gp-credit {
  font-size: .74rem;
  color: var(--ink-soft);
  margin-top: .4rem;
}
.partner-logo {
  max-height: 92px;
  max-width: 170px;
  width: auto;
  object-fit: contain;
}
.ph .ph-label {
  position: absolute; bottom: .7rem; left: .9rem;
  font-size: .72rem; letter-spacing: .08em; text-transform: uppercase;
  color: rgba(255,255,255,.85); font-weight: 600;
}

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 1.8rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
a.card { display: block; color: inherit; text-decoration: none; }
/* Une vidéo dans une carte transformée au survol casse le passage en plein
   écran natif (Chrome/Safari positionnent le plein écran par rapport à
   l'ancêtre transformé au lieu de l'écran) : on désactive l'effet ici. */
.card--media, .card--media:hover { transform: none; overflow: visible; }
/* Safari/Chrome ne réécrivent pas toujours un width:100% posé en style
   inline sur <video> une fois passé en plein écran : la vidéo garde alors
   la taille en pixels qu'elle avait dans la page (elle paraît minuscule au
   milieu de l'écran noir). On force explicitement le plein écran réel ici. */
video:fullscreen, video::backdrop { width: 100% !important; height: 100% !important; max-width: none !important; max-height: none !important; object-fit: contain; border-radius: 0 !important; box-shadow: none !important; }
video:-webkit-full-screen { width: 100% !important; height: 100% !important; max-width: none !important; max-height: none !important; object-fit: contain; border-radius: 0 !important; box-shadow: none !important; }
.card .card-body { padding: 1.3rem 1.4rem 1.5rem; }
.card .card-date { font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--sage); }
.card h3 { margin: .35rem 0 .5rem; font-size: 1.05rem; }
.card p { color: var(--ink-soft); font-size: .93rem; margin-bottom: 0; }

.stat { text-align: center; }
.stat .num { font-family: var(--font-title); font-size: 2.3rem; color: var(--brown); font-weight: 700; }
.stat .lbl { font-size: .82rem; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .05em; }

/* ---------- Personnes (bureau) ---------- */
.person { text-align: center; }
.person .avatar {
  width: 160px; height: 160px; border-radius: 50%;
  margin: 0 auto 1rem;
  background: linear-gradient(150deg, var(--sage), var(--olive));
  display: flex; align-items: center; justify-content: center;
  color: var(--white); font-family: var(--font-title); font-weight: 700; font-size: 2.2rem;
  border: 4px solid var(--white); box-shadow: var(--shadow);
}
.person h3 { margin: 0 0 .1rem; font-size: 1rem; }
.person span { font-size: .82rem; color: var(--sage); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }

.admin-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .7rem;
  margin: 0;
  padding: 0;
}
.admin-list li {
  display: flex;
  align-items: center;
  gap: .5rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: .55rem 1.1rem;
  font-size: .9rem;
  color: var(--ink);
}
.admin-list li.is-bureau {
  border-color: var(--sage);
  background: var(--sage-light);
  color: var(--olive);
  font-weight: 600;
}
.admin-tag {
  background: var(--sage);
  color: var(--white);
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: .15rem .5rem;
  border-radius: 999px;
}

/* ---------- Timeline (histoire) ---------- */
/* ---------- Page Crépy : fil chronologique « serpentin » (d'après l'ancien site) ----------
   La ligne descend le long d'un côté de chaque époque, tourne en arrondi, traverse la page et
   redescend de l'autre côté. Sur la ligne : l'étiquette du siècle et une photo ronde ; de
   l'autre côté : le texte. Chaque trait est dessiné par ::before (forme « [ » à gauche,
   « ] » à droite) ; deux époques voisines se chevauchent de l'épaisseur du trait pour que
   les traits horizontaux se rejoignent sans raccord visible. */
.serpentin {
  --ligne: #7A6060; --epais: 3px; --rayon: 56px; --col: 230px;
  max-width: 1120px; margin: 0 auto;
}
.serpentin .tl-item {
  position: relative; display: grid; gap: 2.4rem; align-items: start;
  grid-template-columns: var(--col) 1fr;
  padding: calc(var(--rayon) + 1.4rem) 0 calc(var(--rayon) + .6rem);
  margin-top: calc(-1 * var(--epais));
}
.serpentin .tl-droite { grid-template-columns: 1fr var(--col); }
.serpentin .tl-droite .tl-repere { order: 2; }
.serpentin .tl-item::before {
  content: ""; position: absolute; top: 0; bottom: 0; pointer-events: none;
  border: var(--epais) solid var(--ligne);
}
.serpentin .tl-gauche::before {
  left: calc(var(--col) / 2); right: calc(var(--col) / 2 + var(--rayon));
  border-right: none; border-radius: var(--rayon) 0 0 var(--rayon);
}
.serpentin .tl-droite::before {
  right: calc(var(--col) / 2); left: calc(var(--col) / 2 + var(--rayon));
  border-left: none; border-radius: 0 var(--rayon) var(--rayon) 0;
}
.serpentin .tl-item:first-child::before { border-top: none; border-top-left-radius: 0; border-top-right-radius: 0; }
.serpentin .tl-item:last-child::before { border-bottom: none; border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.serpentin .tl-item:first-child { padding-top: 1rem; }
.serpentin .tl-item:last-child { padding-bottom: 1rem; }

.serpentin .tl-repere { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: .9rem; }
.serpentin .tl-siecle {
  background: #A9774B; color: #fff; font-family: var(--font-title);
  font-size: 1.25rem; line-height: 1.2; text-align: center; padding: .45rem .9rem; max-width: 100%;
}
.serpentin .tl-rond { margin: 0; text-align: center; }
.serpentin .tl-rond img {
  width: 150px; height: 150px; border-radius: 50%; object-fit: cover; margin: 0 auto;
  border: 4px solid var(--cream-deep); box-shadow: var(--shadow); cursor: zoom-in;
}
.serpentin .tl-rond figcaption { font-size: .72rem; color: var(--ink-soft); margin-top: .45rem; line-height: 1.3; background: var(--cream-deep); padding: 0 .3rem; }
.serpentin .tl-texte { position: relative; z-index: 1; }
.serpentin .tl-texte h3 { font-family: var(--font-title); font-weight: 400; font-size: 1.7rem; color: var(--brown-dark); margin: 0 0 1rem; }
.serpentin .tl-texte h4 { color: var(--olive); font-size: .92rem; text-transform: uppercase; letter-spacing: .04em; margin: 1.6rem 0 .6rem; }
.serpentin .tl-texte p { text-align: justify; hyphens: auto; max-width: none; }
.serpentin .tl-texte::after { content: ""; display: table; clear: both; }
/* Photo illustrant un paragraphe précis, à côté de lui */
.serpentin .tl-avec-photo { display: grid; grid-template-columns: 1fr 150px; gap: 1.6rem; align-items: start; margin-bottom: 1.1rem; }
.serpentin .tl-avec-photo p { margin: 0; }
.serpentin .tl-photo { width: 150px; margin: .2rem 0 0; text-align: center; }
/* Première photo d'une suite : remontée au niveau du sous-titre qui précède (h4),
   pour qu'il ne reste pas de blanc sous elle */
.serpentin h4 + .tl-avec-photo .tl-photo { margin-top: -2.3rem; }
.serpentin .tl-photo img { width: 120px; height: 120px; object-fit: cover; border-radius: 50%; border: 4px solid var(--cream-deep); box-shadow: var(--shadow); cursor: zoom-in; margin: 0 auto; }
.serpentin .tl-photo figcaption { font-size: .72rem; color: var(--ink-soft); margin-top: .45rem; line-height: 1.3; }

/* Téléphone : une seule colonne, fil droit à gauche */
@media (max-width: 760px) {
  .serpentin .tl-item, .serpentin .tl-droite { display: block; padding: 1.2rem 0 1.6rem 1.4rem; margin-top: 0; }
  .serpentin .tl-item::before, .serpentin .tl-gauche::before, .serpentin .tl-droite::before {
    left: 0; right: auto; width: 0; border-radius: 0; border: 0; border-left: var(--epais) solid var(--ligne);
  }
  .serpentin .tl-repere { flex-direction: row; justify-content: flex-start; margin-bottom: 1rem; }
  .serpentin .tl-rond img { width: 100px; height: 100px; }
  .serpentin .tl-siecle { font-size: 1rem; }
  .serpentin .tl-texte h3 { font-size: 1.35rem; }
  .serpentin .tl-avec-photo { grid-template-columns: 1fr 110px; gap: 1rem; }
  .serpentin .tl-photo { width: 110px; }
  .serpentin .tl-photo img { width: 100px; height: 100px; }
  .serpentin .tl-photo img { margin: 0 auto; width: 150px; height: 150px; }
}

/* ---------- Fiches d'histoire (histoire.php) ---------- */
.fiche-histoire { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 2.6rem; align-items: start; max-width: 1180px; }
.fiche-photos { display: flex; flex-direction: column; gap: 1.4rem; }
.fiche-photos figure { margin: 0; }
.fiche-photos img { width: 100%; max-height: 520px; object-fit: contain; background: var(--cream-deep); border-radius: var(--radius); box-shadow: var(--shadow-sm); cursor: zoom-in; }
.fiche-photos figcaption { font-size: .78rem; color: var(--ink-soft); margin-top: .45rem; text-align: center; line-height: 1.35; }
.fiche-texte p { text-align: justify; hyphens: auto; }
.fiche-retour { margin-top: 2rem; }
.fiche-autres-titre { font-size: 1.3rem; margin: 0 0 1rem; }
.fiche-autres { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: .5rem 2rem; }
.fiche-autres li { max-width: none; }
.fiche-autres span { color: var(--ink-soft); font-size: .78rem; margin-left: .3rem; }
/* Fiche à quatre photos ou plus : photos à gauche et à droite, texte au milieu */
.fiche-histoire--encadree { grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr) minmax(0, 1fr); gap: 2.2rem; max-width: 1400px; }
.fiche-retour--bas { display: none; }
@media (max-width: 1000px) {
  .fiche-histoire--encadree { grid-template-columns: 1fr; max-width: 640px; }
  .fiche-histoire--encadree .fiche-texte .fiche-retour { display: none; }
  .fiche-histoire--encadree .fiche-retour--bas { display: block; margin-top: 0; }
}
@media (max-width: 760px) { .fiche-histoire { grid-template-columns: 1fr; } }
/* Liens du texte de la page Crépy vers les fiches */
.serpentin .tl-texte a, .crepy-intro a:not(.btn), .fiche-autres a, .fiche-texte a:not(.btn) { color: var(--brown); font-weight: 700; text-decoration: underline; text-decoration-color: var(--tan-deep); text-underline-offset: 2px; }
.serpentin .tl-item, #intro { scroll-margin-top: 110px; }

/* ---------- Statuts (statuts.php) ---------- */
.statuts { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 3rem; align-items: start; max-width: 1180px; }
.statuts-sommaire { position: sticky; top: 110px; background: var(--cream-deep); border-radius: var(--radius); padding: 1.2rem 1.3rem; font-size: .85rem; max-height: calc(100vh - 140px); overflow-y: auto; }
.statuts-sommaire h2 { font-size: 1.05rem; margin: 0 0 .6rem; }
.statuts-sommaire ol { list-style: none; padding: 0; margin: 0; }
.statuts-sommaire li { margin: .3rem 0; max-width: none; }
.statuts-sommaire a { color: var(--brown); text-decoration: none; }
.statuts-sommaire a:hover { text-decoration: underline; }
.statuts-texte h2 { font-size: 1.1rem; color: var(--brown-dark); margin: 2.2rem 0 .8rem; scroll-margin-top: 110px; }
.statuts-texte h2:first-child { margin-top: 0; }
.statuts-texte p { text-align: justify; }
.statuts-signature { font-style: italic; color: var(--ink-soft); }
@media (max-width: 860px) { .statuts { grid-template-columns: 1fr; } .statuts-sommaire { position: static; max-height: none; } }

/* ---------- Listes à puces stylées ---------- */
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { position: relative; padding-left: 1.6rem; margin-bottom: .6rem; color: var(--ink-soft); }
.check-list li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: var(--sage); font-weight: 700;
}

/* ---------- Formulaire ---------- */
.form-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-size: .82rem; font-weight: 700; margin-bottom: .35rem; color: var(--brown-dark); }
.field input, .field textarea {
  width: 100%;
  padding: .7rem .9rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: inherit;
  font-size: .95rem;
  background: var(--cream);
  color: var(--ink);
}
.field input:focus, .field textarea:focus { outline: 2px solid var(--sage); outline-offset: 1px; background: var(--white); }
.field textarea { resize: vertical; min-height: 130px; }
/* Case à cocher facultative (ex. consentement RGPD) : case à gauche, texte courant à droite */
.field-check { display: flex; gap: .6rem; align-items: flex-start; }
.field-check input { width: auto; flex: none; margin-top: .2rem; padding: 0; }
.field-check label { font-weight: 400; font-size: .85rem; margin: 0; color: var(--ink); }

.alert { padding: .9rem 1.1rem; border-radius: 8px; font-size: .9rem; margin-bottom: 1.2rem; }
.alert-success { background: var(--sage-light); color: var(--olive); border: 1px solid var(--sage); }
.alert-error { background: #FBE9E8; color: #93241D; border: 1px solid #C9564C; }
.table-confirmation { width: 100%; border-collapse: collapse; margin: 1.2rem 0; }
.table-confirmation th, .table-confirmation td { text-align: left; padding: .6rem .4rem; border-bottom: 1px solid var(--border); vertical-align: top; }
.table-confirmation th { color: var(--ink-soft); font-weight: 600; width: 40%; }

/* ---------- Infos pratiques ---------- */
.info-list { list-style: none; padding: 0; margin: 0; }
.info-list li { display: flex; gap: .8rem; padding: .6rem 0; border-bottom: 1px dashed var(--border); font-size: .92rem; }
.info-list li:last-child { border-bottom: none; }
.info-list .ic { color: var(--sage); font-weight: 700; }

/* ---------- Partenaires ---------- */
.partner-card { border-left: 4px solid var(--sage); padding-left: 1rem; margin-bottom: 1.6rem; }
.partner-card h3 { margin-bottom: .25rem; font-size: 1rem; }
.partner-card p { font-size: .88rem; color: var(--ink-soft); margin-bottom: .15rem; }
.partner-card a { color: var(--brown); font-weight: 600; text-decoration: none; }
.partner-card a:hover { text-decoration: underline; }

/* ---------- CTA bloc ---------- */
.cta {
  background: var(--olive);
  color: var(--cream);
  border-radius: var(--radius);
  padding: 2.6rem;
  text-align: center;
}
.cta h2 { color: var(--white); }
.cta p { color: var(--tan); max-width: 560px; margin-left: auto; margin-right: auto; }

/* ---------- Galerie ---------- */
.gallery-filters { display: flex; gap: .6rem; flex-wrap: wrap; margin-bottom: 2rem; }
.gallery-filters button {
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--ink-soft);
  padding: .5rem 1rem;
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .15s ease;
}
.gallery-filters button:hover { border-color: var(--sage); color: var(--olive); }
.gallery-filters button.active { background: var(--sage); border-color: var(--sage); color: var(--white); }

/* ---------- Sous-onglets (ex. Numérisation 3D) ---------- */
.subtabs { display: flex; gap: .6rem; flex-wrap: wrap; margin-bottom: 2rem; }
.subtabs button {
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--ink-soft);
  padding: .6rem 1.3rem;
  border-radius: 999px;
  font-size: .86rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .15s ease;
}
.subtabs button:hover { border-color: var(--brown); color: var(--brown-dark); }
.subtabs button.active { background: var(--brown); border-color: var(--brown); color: var(--white); }
.subtab-panel[hidden] { display: none; }
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.gallery-grid .ph { min-height: 160px; cursor: default; }
.gallery-grid .lightbox-trigger { cursor: zoom-in; transition: transform .2s ease, box-shadow .2s ease; }
.gallery-grid .lightbox-trigger:hover { transform: scale(1.03); box-shadow: var(--shadow); }

/* Agrandissement au clic (lightbox) pour les photos hors galerie (ex : page Patrimoine) */
.lightbox-trigger { cursor: zoom-in; }
.cahier-figure img.lightbox-trigger,
.cahier-visuals img.lightbox-trigger,
.monuments-map-row img.lightbox-trigger,
.monuments-photos img.lightbox-trigger {
  transition: transform .2s ease, box-shadow .2s ease;
}
.cahier-figure img.lightbox-trigger:hover,
.cahier-visuals img.lightbox-trigger:hover,
.monuments-map-row img.lightbox-trigger:hover,
.monuments-photos img.lightbox-trigger:hover {
  transform: scale(1.02);
}

/* ---------- Lightbox ---------- */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(20, 15, 10, .93);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s ease;
}
.lightbox-overlay.open { opacity: 1; visibility: visible; }
.lightbox-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 90vw;
  max-height: 90vh;
}
.lightbox-img {
  max-width: 88vw;
  max-height: 74vh;
  object-fit: contain;
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 25px 70px rgba(0,0,0,.5);
}
.lightbox-caption { text-align: center; margin-top: 1.1rem; max-width: 640px; }
.lightbox-astuce { color: rgba(255,255,255,.7); font-size: .8rem; margin-top: .5rem; }
.lightbox-logos .lightbox-astuce { display: none; }
.lightbox-img { cursor: zoom-in; }
.lightbox-logos .lightbox-img { cursor: default; }
/* Zoom (second clic sur la photo) : taille réelle, dans l'écran entier que l'on fait défiler */
.lightbox-overlay.zoom { display: block; padding: 0; overflow: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
.lightbox-overlay.zoom .lightbox-content { display: block; max-width: none; max-height: none; width: max-content; }
.lightbox-overlay.zoom .lightbox-img { display: block; max-width: none; max-height: none; border-radius: 0; box-shadow: none; cursor: zoom-out; }
.lightbox-overlay.zoom .lightbox-caption, .lightbox-overlay.zoom .lightbox-nav { display: none; }
.lightbox-overlay.zoom .lightbox-close { background: rgba(20,15,10,.8); }
.lightbox-caption strong { display: block; color: var(--white); font-size: 1rem; font-family: var(--font-title); }
.lightbox-credit { color: var(--tan); font-size: .82rem; margin-top: .3rem; }
.lightbox-counter { color: rgba(255,255,255,.55); font-size: .76rem; margin-top: .6rem; letter-spacing: .04em; }
.lightbox-close, .lightbox-nav {
  position: fixed;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.25);
  color: var(--white);
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s ease, transform .15s ease;
}
.lightbox-close:hover, .lightbox-nav:hover { background: var(--sage); border-color: var(--sage); }
.lightbox-close { top: 1.5rem; right: 1.5rem; width: 3rem; height: 3rem; font-size: 1.8rem; line-height: 1; }
.lightbox-nav { top: 50%; transform: translateY(-50%); width: 3.4rem; height: 3.4rem; font-size: 2.2rem; line-height: 1; }
.lightbox-nav:hover { transform: translateY(-50%) scale(1.08); }
.lightbox-prev { left: 1.5rem; }
.lightbox-next { right: 1.5rem; }

@media (max-width: 720px) {
  .lightbox-overlay { padding: 1rem; }
  .lightbox-close { top: .8rem; right: .8rem; width: 2.5rem; height: 2.5rem; font-size: 1.5rem; }
  .lightbox-nav { width: 2.6rem; height: 2.6rem; font-size: 1.7rem; }
  .lightbox-prev { left: .5rem; }
  .lightbox-next { right: .5rem; }
}

/* ---------- Retour à l'accueil ---------- */
.back-home {
  background: var(--cream-deep);
  border-top: 1px solid var(--border);
  padding: 2rem 0;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--brown-dark);
  color: var(--tan);
  padding: 3.5rem 0 1.5rem;
}
.site-footer h4 { color: var(--white); font-size: .95rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 1rem; }
.site-footer a { color: var(--tan); text-decoration: none; font-size: .9rem; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.site-footer .foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; }
.site-footer p { font-size: .88rem; color: var(--tan); }
.site-footer .brand-text small { color: var(--tan); opacity: .8; }
.foot-bottom {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,.12);
  font-size: .8rem;
  color: rgba(230, 220, 205, .7);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .6rem;
}

/* ---------- Cahier de recommandations (page Patrimoine) ---------- */
.cahier-subnav {
  position: sticky;
  top: 77px;
  z-index: 50;
  background: var(--brown-dark);
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.cahier-subnav .container { display: flex; align-items: center; gap: 1rem; padding-top: .7rem; padding-bottom: .7rem; flex-wrap: wrap; }
.cahier-subnav-label { color: var(--tan); font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; flex-shrink: 0; }
.cahier-subnav-links { display: flex; gap: .6rem; flex-wrap: wrap; overflow-x: auto; }
.cahier-subnav-links a {
  display: inline-block;
  color: var(--cream);
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.22);
  text-decoration: none;
  font-size: .82rem;
  font-weight: 600;
  white-space: nowrap;
  padding: .45rem 1rem;
  border-radius: 999px;
  transition: background .15s ease, border-color .15s ease, transform .15s ease;
}
.cahier-subnav-links a:hover {
  background: var(--sage);
  border-color: var(--sage);
  color: var(--white);
  transform: translateY(-1px);
}

/* Unify the look of every section heading that the "Aller à" buttons jump to,
   regardless of whether it's an <h2> or <h3> in the document outline. */
.cahier-anchor-heading {
  font-family: var(--font-title) !important;
  font-size: clamp(1.5rem, 3vw, 2rem) !important;
  color: var(--brown-dark) !important;
  text-transform: none !important;
  letter-spacing: normal !important;
  font-weight: 700 !important;
  margin-top: 2.2rem;
}

.cahier-section { max-width: 860px; }
#rejoindre { scroll-margin-top: 130px; } /* pas « #adhesion » : masqué par les bloqueurs de publicité (AdBlock sous Safari) */
.cahier-h2 { scroll-margin-top: 130px; margin-top: 0; }
.cahier-h3 { scroll-margin-top: 130px; margin-top: 2.2rem; color: var(--brown); font-size: 1.1rem; text-transform: uppercase; letter-spacing: .02em; }
.cahier-h4 { scroll-margin-top: 130px; margin-top: 1.5rem; color: var(--olive); font-size: .95rem; text-transform: uppercase; letter-spacing: .02em; }
.cahier-section p { color: var(--ink-soft); }
.cahier-section p strong { color: var(--brown-dark); }

.cahier-gallery { margin: 1.2rem 0; }
.cahier-figure { margin: 0; }
.cahier-figure-single { margin: 1.2rem 0; max-width: 300px; }
.cahier-schema-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  max-width: 560px;
  margin: 1.2rem 0;
  align-items: end;
}
.cahier-schema-pair figure { margin: 0; }
.cahier-schema-pair img {
  width: 100%;
  height: 260px;
  object-fit: contain;
  display: block;
}
.cahier-schema-pair figcaption {
  font-size: .78rem;
  color: var(--ink-soft);
  margin-top: .4rem;
  font-style: italic;
  text-align: center;
}
@media (max-width: 520px) {
  .cahier-schema-pair { grid-template-columns: 1fr; max-width: 300px; }
}
.cahier-figure img {
  width: 100%;
  border-radius: 8px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  display: block;
  background: var(--white);
}
/* Uniform tile height within multi-image galleries so rows line up, without
   cropping technical drawings (object-fit: contain letterboxes instead of cutting). */
.cahier-gallery .cahier-figure img {
  height: 190px;
  object-fit: contain;
  padding: .4rem;
  box-sizing: border-box;
}
.cahier-figure-single img { max-height: 340px; object-fit: contain; margin: 0 auto; }
.cahier-figure figcaption {
  font-size: .78rem;
  color: var(--ink-soft);
  margin-top: .4rem;
  font-style: italic;
}
.cahier-caption-group {
  font-style: italic;
  margin-top: -.6rem;
}

.monuments-map-row {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: 1.5rem;
  align-items: start;
  margin-top: 1.5rem;
}
.monuments-map-row figure { margin: 0; }
.monuments-map-row img {
  width: 100%;
  display: block;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.monuments-map-row figcaption {
  font-size: .82rem;
  color: var(--ink-soft);
  margin-top: .5rem;
}
/* Hauteur de chaque photo calée en JS (syncMonumentsPhotos) sur celle de la carte à gauche */
.monuments-photos {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.monuments-photos figure { margin: 0; }
.monuments-photos img {
  width: 100%;
  display: block;
  height: 190px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.monuments-photos .credit { font-style: italic; color: var(--ink-soft); }
@media (max-width: 720px) {
  .monuments-map-row { grid-template-columns: 1fr; }
  .monuments-photos { flex-direction: row; }
  .monuments-photos img { height: 190px !important; }
}

.cahier-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.8rem;
  align-items: start;
  margin: 1.4rem 0;
}
.cahier-split .cahier-text p { margin: 0 0 .7rem; }
.cahier-split .cahier-text p:last-child { margin-bottom: 0; }
.cahier-split .cahier-visuals { display: grid; gap: 1rem; align-content: start; }
.cahier-split .cahier-visuals figure { margin: 0; }
.cahier-split .cahier-visuals img {
  width: 100%;
  border-radius: 8px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  display: block;
  background: var(--white);
  height: 200px;
  object-fit: cover;
}
.cahier-split .cahier-visuals figcaption {
  font-size: .78rem;
  color: var(--ink-soft);
  margin-top: .4rem;
  font-style: italic;
  text-align: center;
}
@media (max-width: 720px) {
  .cahier-split { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .cahier-subnav { top: 0; position: static; }
  .cahier-subnav-links { gap: .8rem; }
}

/* ---------- Utilitaires ---------- */
.mt-0 { margin-top: 0; }
.text-center { text-align: center; }

/* Largeur de lecture : la page est large, mais une ligne de texte reste à ~75 caractères */
section p, section li { max-width: 78ch; }
section p.text-center { margin-left: auto; margin-right: auto; }
.text-center p, .section-head p, .stat p, .person p, [style*="text-align:center"] p, [style*="text-align: center"] p { margin-left: auto; margin-right: auto; }
.small { font-size: .85rem; color: var(--ink-soft); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: 1fr; }
  .site-footer .foot-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .header-inner { flex-wrap: wrap; justify-content: flex-start; }
  .brand-logo-link { order: -1; align-self: center; }
  .brand-logo { max-height: 56px; }
  .brand-title { order: 0; flex: 1 1 auto; max-width: 170px; text-align: left; }
  .brand-text { white-space: normal; }
  .nav-toggle { display: block; order: 1; }
  .main-nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--sage);
    border-radius: 0;
    margin: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height .25s ease;
  }
  .main-nav.open { max-height: 600px; }
  .main-nav ul { flex-direction: column; gap: .2rem; padding: .7rem 1.5rem 1.2rem; }
  .main-nav a { display: block; padding: .7rem 1rem; border-radius: var(--radius); }
  .hero { padding: 2rem 0; text-align: center; }
  .hero-row { flex-direction: column; gap: 1.2rem; }
  .hero-logo { width: 110px; }
  .hero .actions { justify-content: center; }
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .site-footer .foot-grid { grid-template-columns: 1fr; gap: 2rem; }
  section { padding: 2.8rem 0; }
}

/* ---- Cahier de recommandations (page Patrimoine & Architecture) ---- */
/* Repères de couleur sur les mentions « recommandé » / « à proscrire » du texte d'origine. */
.cahier-label { font-weight: 700; margin: 1.2rem 0 .5rem; padding-left: .7rem; border-left: 4px solid; }
.cahier-label-ok { color: #3f6b35; border-color: #6a9a5b; }
.cahier-label-non { color: #9b2c24; border-color: #c9564c; }
.cahier-split .cahier-text .cahier-label:first-child { margin-top: 0; }
.cahier-nota { font-size: .88rem; color: var(--ink-soft); background: var(--cream); border-left: 3px solid var(--tan); padding: .7rem 1rem; border-radius: 4px; }
.cahier-nota p { margin: 0 0 .4rem; }
.cahier-nota p:last-child { margin-bottom: 0; }
.cahier-liste { margin: 0 0 .8rem; padding-left: 1.3rem; color: var(--ink-soft); }
.cahier-liste li { margin-bottom: .35rem; }
.cahier-sous-liste { margin: .4rem 0 0; padding-left: 1.2rem; list-style: disc; }
.cahier-sous-liste li { margin-bottom: .25rem; }
.cahier-sommaire, .cahier-sommaire ul { list-style: none; margin: 0; padding: 0; }
.cahier-sommaire ul { padding-left: 1.4rem; }
.cahier-sommaire li { margin: .3rem 0; }
.cahier-sommaire > li { margin-top: .9rem; font-weight: 700; }
.cahier-sommaire ul li { font-weight: 400; font-size: .92rem; }
.cahier-sommaire a { color: var(--brown-dark); text-decoration: none; }
.cahier-sommaire a:hover { text-decoration: underline; }
.cahier-trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; }
.cahier-duo { display: grid; grid-template-columns: repeat(2, 1fr); gap: .8rem; }
.cahier-split .cahier-visuals .cahier-trio img { height: 170px; }
.cahier-split .cahier-visuals-contain img,
.cahier-split .cahier-visuals .cahier-schema-pair img { object-fit: contain; height: auto; max-height: 320px; }
.cahier-figure-single { max-width: 420px; }
.cahier-liens { display: grid; gap: 1.4rem; }
.cahier-lien { display: grid; grid-template-columns: 180px 1fr; gap: 1.2rem; align-items: center; }
.cahier-lien img { width: 100%; max-height: 90px; object-fit: contain; }
.cahier-lien p { margin: 0; word-break: break-word; }
@media (max-width: 600px) {
  .cahier-lien { grid-template-columns: 1fr; }
  .cahier-lien img { max-width: 180px; }
}

/* Fil d'Ariane (includes/header.php) : « Accueil › rubrique › page », sous le menu */
.fil-ariane { background: var(--cream-deep); border-bottom: 1px solid var(--border); font-size: .84rem; }
.fil-ariane ol { list-style: none; margin: 0; padding: .55rem 0; display: flex; flex-wrap: wrap; align-items: center; gap: .15rem .45rem; }
.fil-ariane li { display: flex; align-items: center; gap: .45rem; color: var(--ink-soft); min-width: 0; }
.fil-ariane li + li::before { content: "›"; color: var(--tan-deep); font-size: 1rem; line-height: 1; }
.fil-ariane a { color: var(--brown); text-decoration: none; }
.fil-ariane a:hover { text-decoration: underline; }
.fil-ariane [aria-current] { color: var(--ink); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 60vw; }

/* Encart « À la une » (index.php) : photo avec ruban « Nouveau » en biais, coin haut gauche */
.une-photo { position: relative; display: block; overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.une-photo img { width: 100%; display: block; }
.ruban-nouveau {
  position: absolute; top: 20px; left: -40px; width: 150px; transform: rotate(-45deg);
  background: #E8731F; color: #fff; text-align: center; padding: .35rem 0;
  font-size: .66rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; line-height: 1.2;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .25);
}
@media (min-width: 700px) { .ruban-nouveau { top: 30px; left: -50px; width: 210px; font-size: .92rem; padding: .45rem 0; } }

/* Logos des membres bienfaiteurs (association.php) : clic = logo agrandi dans la visionneuse,
   sur fond blanc avec une marge, et agrandi jusqu'à environ deux fois sa taille d'origine. */
.partner-logo.lightbox-trigger { transition: transform .2s ease; }
.partner-logo.lightbox-trigger:hover { transform: scale(1.06); }
.lightbox-logos .lightbox-img { width: min(72vw, 640px); height: auto; max-height: 60vh; padding: 2rem; box-sizing: border-box; background: #fff; }

/* Petite icône « copier » à côté du numéro SIREN, dans l'en-tête de l'accueil (sans cadre ni fond) */
.copier-siren {
  display: inline-block; vertical-align: -2px; margin-left: .3rem; padding: 0;
  border: none; background: none; cursor: pointer; font-size: .8rem; font-weight: 700; line-height: 1; color: var(--brown-dark);
}
.copier-siren svg { display: block; }
.copier-siren:hover { transform: scale(1.15); }

/* Fil d'Ariane fixé sous le menu (page des statuts) : reste visible pendant la lecture.
   --hauteur-entete est mesurée par assets/js/main.js (l'en-tête n'a pas la même hauteur partout). */
.fil-ariane.fil-fixe { position: sticky; top: var(--hauteur-entete, 77px); z-index: 90; }
@media (min-width: 861px) { .fil-fixe ~ section .statuts-sommaire { top: calc(var(--hauteur-entete, 77px) + 60px); max-height: calc(100vh - var(--hauteur-entete, 77px) - 90px); } }
.fil-fixe ~ section .statuts-texte h2 { scroll-margin-top: calc(var(--hauteur-entete, 77px) + 62px); }

/* ---------- Boutique (maquette du 09/10/2026) ---------- */
.boutique-retrait { background: var(--white); border: 1px solid var(--border); border-left: 4px solid var(--sage); border-radius: var(--radius); padding: 1rem 1.3rem; margin-top: 2rem; line-height: 1.55; }
.boutique-retrait strong { display: block; margin-bottom: .2rem; }
.boutique-photo { display: block; width: 100%; height: 230px; object-fit: contain; background: var(--cream-deep); }
img.boutique-photo { cursor: zoom-in; padding: .9rem; box-sizing: border-box; }
.boutique-photo--vide { display: flex; align-items: center; justify-content: center; color: var(--ink-soft); font-size: .85rem; font-style: italic; }
/* Grille en flex : une dernière rangée incomplète est centrée */
.boutique-grille { display: flex; flex-wrap: wrap; justify-content: center; }
.boutique-grille > * { flex: 0 0 calc((100% - 3.6rem) / 3); min-width: 0; }
@media (max-width: 900px) { .boutique-grille > * { flex-basis: calc((100% - 1.8rem) / 2); } }
@media (max-width: 720px) { .boutique-grille > * { flex-basis: 100%; } }
.boutique-article .card-body { display: flex; flex-direction: column; }
.card p.boutique-prix { margin-top: 1rem; font-size: 1.25rem; font-weight: 700; color: var(--ink); }
.boutique-etiquette { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding: .25rem .7rem; border-radius: 999px; background: var(--ink-soft); color: var(--white); }
.boutique-etiquette--info { background: var(--cream-deep); color: var(--ink); }
.boutique-epuise .boutique-photo, .boutique-epuise h3, .boutique-epuise p:not(.boutique-prix) { opacity: .55; }

/* ---------- Parcours du patrimoine (parcours.php, essai du 11/10/2026) ---------- */
.deamb-encart { background: var(--white); border: 1px solid var(--border); border-left: 4px solid var(--sage); border-radius: var(--radius); padding: 1.1rem 1.4rem; margin-bottom: 2rem; line-height: 1.6; }
.deamb-encart strong { display: block; font-family: var(--font-title); font-size: 1.15rem; margin-bottom: .3rem; }
.deamb-encart p { margin: 0 0 .5rem; }
.deamb-encart p:last-child { margin-bottom: 0; }
.deamb-promenades { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.8rem; }
a.deamb-promenade { display: block; text-decoration: none; color: inherit; }
.deamb-promenade img { width: 100%; height: 260px; object-fit: cover; display: block; }
.deamb-promenade h3 { font-size: 1.3rem; }
.deamb-promenade-lien { display: inline-block; margin-top: 1rem; font-weight: 700; color: var(--sage); }
.parcours-depart-texte { margin: 0 0 1.2rem; color: var(--ink-soft); }
.parcours-retour { margin: 2.2rem 0 0; text-align: center; }
.parcours-barre { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; scroll-margin-top: 9rem; }
.parcours-etat { margin: 0; flex: 1 1 16rem; color: var(--ink-soft); font-size: .95rem; }
.parcours-carte { position: relative; height: min(62vh, 520px); min-height: 320px; overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius); background: var(--cream-deep); touch-action: none; cursor: grab; user-select: none; -webkit-user-select: none; }
.parcours-carte:active { cursor: grabbing; }
.parcours-carte-couche { position: absolute; inset: 0; }
.parcours-tuile { position: absolute; left: 0; top: 0; width: 256px; height: 256px; max-width: none; pointer-events: none; }
.parcours-repere { position: absolute; left: 0; top: 0; width: 30px; height: 30px; margin: -15px 0 0 -15px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: #2F4674; color: #fff; font-size: .85rem; font-weight: 700; text-decoration: none; border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.45); z-index: 2; }
.parcours-repere--proche { background: #B3261E; z-index: 3; }
.parcours-depart { position: absolute; left: 0; top: 0; margin: -11px 0 0 -26px; width: 52px; height: 22px; display: flex; align-items: center; justify-content: center; border-radius: 11px; background: #5E8A63; color: #fff; font-size: .7rem; font-weight: 700; border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.45); z-index: 2; pointer-events: none; }
.parcours-moi { position: absolute; left: 0; top: 0; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; background: #1A73E8; border: 3px solid #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.25); z-index: 4; pointer-events: none; }
.parcours-moi-halo { position: absolute; left: 0; top: 0; border-radius: 50%; background: rgba(26,115,232,.18); z-index: 1; pointer-events: none; }
.parcours-carte-zoom { position: absolute; right: .6rem; top: .6rem; display: grid; gap: .3rem; z-index: 5; }
.parcours-carte-zoom button { width: 40px; height: 40px; border: 1px solid var(--border); border-radius: 8px; background: #fff; color: var(--ink); font-size: 1.4rem; line-height: 1; cursor: pointer; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.parcours-carte-credit { position: absolute; right: 0; bottom: 0; z-index: 5; background: rgba(255,255,255,.85); color: #333; font-size: .7rem; padding: .1rem .4rem; text-decoration: none; }
.parcours-aide { display: none; margin: .6rem 0 0; color: var(--ink-soft); font-size: .85rem; }
.parcours-liste { list-style: none; padding: 0; margin: 1.6rem 0 0; scroll-margin-top: 9rem; display: grid; grid-template-columns: repeat(2, 1fr); gap: .8rem; }
.parcours-site { display: flex; align-items: center; gap: .8rem; padding: .55rem .8rem .55rem .55rem; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); text-decoration: none; color: var(--ink); height: 100%; }
.parcours-site:hover { border-color: var(--sage); }
.parcours-site img { width: 64px; height: 64px; object-fit: cover; border-radius: 6px; flex: none; }
.parcours-numero { flex: none; width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: #2F4674; color: #fff; font-size: .82rem; font-weight: 700; }
.parcours-site-texte { display: grid; gap: .1rem; min-width: 0; }
.parcours-site-distance { color: var(--ink-soft); font-size: .86rem; }
.parcours-site--proche { border-color: #B3261E; }
.parcours-site--proche .parcours-numero { background: #B3261E; }
.parcours-fiche { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 2.2rem; align-items: start; }
.parcours-fiche-photo { width: 100%; max-height: 70vh; object-fit: contain; border-radius: var(--radius); cursor: zoom-in; background: var(--cream-deep); }
.parcours-fiche-vues { display: grid; grid-template-columns: repeat(2, 1fr); gap: .7rem; margin-top: .7rem; }
.parcours-fiche-vues figure { margin: 0; }
.parcours-fiche-vues img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; cursor: zoom-in; display: block; }
.parcours-fiche-vues figcaption { font-size: .78rem; color: var(--ink-soft); line-height: 1.35; margin-top: .25rem; }
.parcours-fiche-texte p { margin: 0 0 .9rem; line-height: 1.65; }
.parcours-plus { font-size: 1.15rem; margin: 1.6rem 0 .7rem; padding-top: 1rem; border-top: 1px solid var(--border); }
.parcours-langues { display: flex; gap: .6rem; margin-bottom: 1.3rem; }
.parcours-langue { display: inline-flex; align-items: center; gap: .45rem; min-height: 44px; padding: .4rem 1rem .4rem .7rem; border: 1px solid var(--border); border-radius: 999px; background: var(--white); color: var(--ink-soft); font: inherit; font-size: .92rem; cursor: pointer; }
.parcours-langue svg { width: 27px; height: 18px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0,0,0,.15); display: block; }
.parcours-langue.active { border-color: var(--sage); color: var(--ink); font-weight: 700; box-shadow: 0 0 0 1px var(--sage); }
.parcours-audio { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: .9rem 1.1rem; margin-bottom: 1.3rem; }
.parcours-audio strong { display: block; margin-bottom: .5rem; }
.parcours-audio audio { display: block; width: 100%; height: 40px; }
.parcours-distance { font-weight: 700; color: var(--sage); }
.parcours-fiche-texte p.parcours-source { color: var(--ink-soft); font-size: .85rem; font-style: italic; }
.parcours-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.2rem; }
.parcours-suite { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 2.4rem; }
.parcours-suite-lien { display: grid; gap: .15rem; padding: .9rem 1.1rem; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); text-decoration: none; color: var(--ink); }
.parcours-suite-lien span { color: var(--ink-soft); font-size: .85rem; }
.parcours-suite-lien--suivant { text-align: right; grid-column: 2; }
.parcours-suite-lien:hover { border-color: var(--sage); }
@media (max-width: 720px) {
  .parcours-liste { grid-template-columns: 1fr; }
  .deamb-promenades { grid-template-columns: 1fr; }
  .deamb-promenade img { height: 200px; }
  .parcours-carte { height: 46vh; min-height: 260px; }
  .parcours-aide { display: block; }
  .parcours-barre { gap: .6rem; }
  .parcours-barre .btn { padding-left: 1rem; padding-right: 1rem; }
  .parcours-fiche { display: flex; flex-direction: column; gap: 1.3rem; }
  .parcours-fiche-photos { display: contents; }
  .parcours-fiche-photo { order: 1; }
  .parcours-fiche-texte { order: 2; }
  .parcours-fiche-vues { order: 3; margin-top: 0; }
  .parcours-fiche-photo { max-height: 55vh; }
  .parcours-suite { grid-template-columns: 1fr; }
  .parcours-suite-lien--suivant { grid-column: auto; }
}

/* Page Adhérer : encadré « Déjà adhérent ? Renouvelez votre adhésion » */
.renouveler { max-width: 640px; margin: 0 auto 3rem; border-top: 4px solid var(--sage); scroll-margin-top: 150px; }
.renouveler h2 { font-size: 1.45rem; margin-bottom: .8rem; }
.renouveler-form { display: flex; flex-wrap: wrap; gap: 0 1rem; align-items: flex-end; }
.renouveler-form .field { flex: 1 1 220px; }
.renouveler-form .btn { margin-bottom: 1rem; }
.renouveler-note { font-size: .9rem; margin: 0; color: var(--ink-soft); }
.cta-actions { display: flex; gap: .8rem; flex-wrap: wrap; justify-content: center; }
.hero-renouveler { margin: .8rem 0 0; text-align: center; font-size: .85rem; }
.hero-renouveler a { color: var(--tan); text-decoration: underline; text-underline-offset: 3px; }
.hero-renouveler a:hover { color: var(--white); }
