/* Crèche bio-écologique Gekko — refonte 2026. Site statique, sans CMS. */

:root {
  --vert: #168238;          /* vert du logo */
  --vert-fonce: #0f5f29;
  --foret: #143524;
  --foret-2: #1c4530;
  --pre: #e7f1de;
  --pre-2: #d6e8c8;
  --papier: #f8f5ee;
  --blanc: #ffffff;
  --bois: #a8753f;
  --bois-pale: #f3e8d8;
  --rouge: #b3263e;         /* façade de la maison */
  --rouge-pale: #f9e4e7;
  --soleil: #f2b632;
  --soleil-pale: #fdf1d2;
  --ciel-pale: #e2eff4;
  --texte: #1d2b21;
  --texte-doux: #56655a;
  --trait: #e3dfd2;

  --r: 22px;
  --r-btn: 14px;
  --ombre: 0 1px 2px rgba(20, 53, 36, .06), 0 10px 30px -12px rgba(20, 53, 36, .18);

  --titre: "Fraunces", Georgia, serif;
  --corps: "Figtree", system-ui, sans-serif;
  --main: "Caveat", "Figtree", cursive;
  --largeur: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--corps);
  font-size: 17px;
  line-height: 1.65;
  color: var(--texte);
  background: var(--papier);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--vert-fonce); }
h1, h2, h3, h4 {
  font-family: var(--titre); font-optical-sizing: auto; font-weight: 600;
  color: var(--foret); line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.01em;
}
h1 { font-size: clamp(2.4rem, 5.6vw, 4.4rem); }
h2 { font-size: clamp(1.9rem, 3.8vw, 3rem); }
h3 { font-size: 1.32rem; }
h1 em, h2 em { font-style: italic; color: var(--vert); font-weight: 500; }
p { margin: 0 0 1em; }
.wrap { width: min(100% - 32px, var(--largeur)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.surtitre {
  display: inline-flex; align-items: center; gap: .5em;
  font-size: .82rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--vert); margin-bottom: .9em;
}
.surtitre::before {
  content: ""; width: 22px; height: 22px; flex: none;
  background: currentColor;
  -webkit-mask: url(img/gecko.svg) center / contain no-repeat;
          mask: url(img/gecko.svg) center / contain no-repeat;
}
.main { font-family: var(--main); font-size: 1.6rem; line-height: 1.1; color: var(--bois); }
.chapo { font-size: 1.18rem; color: var(--texte-doux); max-width: 40em; }

/* ---------- Boutons : rayon franc, survol = teinte seulement ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55em;
  font-family: var(--corps); font-weight: 700; font-size: 1rem;
  padding: .85em 1.35em; border-radius: var(--r-btn);
  text-decoration: none; border: 2px solid transparent; cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.btn svg { width: 1.15em; height: 1.15em; flex: none; }
.btn-vert { background: var(--vert); color: #fff; }
.btn-vert:hover { background: var(--vert-fonce); }
.btn-blanc { background: #fff; color: var(--foret); }
.btn-blanc:hover { background: var(--pre); }
.btn-contour { border-color: var(--foret); color: var(--foret); background: transparent; }
.btn-contour:hover { background: var(--pre); }
.btn-verre { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.55); }
.btn-verre:hover { background: rgba(255,255,255,.26); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- En-tête : barre flottante au-dessus du visuel ---------- */
.entete {
  position: sticky; top: 14px; z-index: 50;
  margin: 14px 0 -90px; pointer-events: none;
}
.entete .wrap {
  pointer-events: auto; position: relative;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  min-height: 70px; padding: 0 12px 0 20px;
  background: rgba(255, 255, 255, .93);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(20, 53, 36, .08); border-radius: 20px;
  box-shadow: 0 10px 30px -12px rgba(14, 38, 25, .35);
}
.logo img { height: 48px; width: auto; }
.nav { display: flex; align-items: center; gap: 2px; }
.nav a {
  font-weight: 600; font-size: .98rem; color: var(--foret); text-decoration: none;
  padding: .5em .8em; border-radius: 10px;
  transition: background-color .2s ease, color .2s ease;
}
.nav a:hover { background: var(--pre); }
.nav a[aria-current="page"] { color: var(--vert); background: var(--pre); }
.nav .btn { margin-left: 10px; padding: .6em 1.1em; color: #fff; }
.nav .btn:hover { background: var(--vert-fonce); }
.burger {
  display: none; width: 46px; height: 46px; border-radius: 12px;
  border: 1.5px solid var(--trait); background: var(--blanc); cursor: pointer;
  align-items: center; justify-content: center;
}
.burger span, .burger span::before, .burger span::after {
  display: block; width: 20px; height: 2.5px; border-radius: 2px; background: var(--foret);
  position: relative; transition: transform .25s ease, background-color .25s ease;
}
.burger span::before, .burger span::after { content: ""; position: absolute; left: 0; }
.burger span::before { top: -7px; }
.burger span::after { top: 7px; }
.menu-ouvert .burger span { background: transparent; }
.menu-ouvert .burger span::before { transform: translateY(7px) rotate(45deg); }
.menu-ouvert .burger span::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1080px) {
  .entete { top: 10px; margin-top: 10px; }
  .entete .wrap { min-height: 64px; padding: 0 9px 0 14px; }
  .logo img { height: 42px; }
  .burger { display: inline-flex; }
  .nav {
    position: absolute; top: calc(100% + 8px); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    padding: 12px; background: var(--blanc); border-radius: 20px;
    border: 1px solid rgba(20, 53, 36, .08);
    box-shadow: 0 18px 40px -16px rgba(14, 38, 25, .45);
    opacity: 0; visibility: hidden; transition: opacity .2s ease, visibility .2s;
  }
  .menu-ouvert .nav { opacity: 1; visibility: visible; }
  .nav a { font-size: 1.1rem; padding: .7em 1em; }
  .nav .btn { margin: 6px 0 0; justify-content: center; }
}

/* ---------- Hero de l'accueil : la maison vue du ciel ---------- */
.hero {
  position: relative; color: #fff; isolation: isolate;
  min-height: min(88vh, 820px); display: flex; align-items: flex-end;
  padding: 170px 0 150px;
}
.hero > img, .hero > video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(14, 38, 25, .82) 0%, rgba(14, 38, 25, .55) 45%, rgba(14, 38, 25, 0) 75%),
    linear-gradient(0deg, rgba(14, 38, 25, .55) 0%, rgba(14, 38, 25, 0) 40%);
}
.hero h1 { color: #fff; max-width: 13em; }
.hero h1 em { color: #bfe3a5; }
.hero .chapo { color: rgba(255,255,255,.88); max-width: 34em; }
.hero .surtitre { color: #bfe3a5; }
.hero .actions { margin-top: 28px; }
.hero .legende {
  position: absolute; right: 24px; bottom: 120px;
  font-family: var(--main); font-size: 1.5rem; color: #fff; transform: rotate(-3deg);
  text-shadow: 0 1px 8px rgba(0,0,0,.35);
}
@media (max-width: 760px) {
  .hero { padding: 130px 0 130px; min-height: 0; }
  .hero .legende { display: none; }
  .hero::before, .entete-page::before { background: linear-gradient(0deg, rgba(14, 38, 25, .88) 0%, rgba(14, 38, 25, .62) 100%); }
}

/* Fiche chiffres, à cheval sur le hero */
.chiffres {
  position: relative; z-index: 2; margin-top: -86px;
}
.chiffres ul {
  list-style: none; margin: 0; padding: 26px 10px;
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--blanc); border-radius: var(--r); box-shadow: var(--ombre);
}
.chiffres li { padding: 4px 22px; border-left: 1px solid var(--trait); }
.chiffres li:first-child { border-left: 0; }
.chiffres b { display: block; font-family: var(--titre); font-weight: 600; font-size: 2.1rem; color: var(--vert); line-height: 1.1; }
.chiffres span { color: var(--texte-doux); font-size: .95rem; }
@media (max-width: 820px) {
  .chiffres ul { grid-template-columns: 1fr 1fr; row-gap: 18px; }
  .chiffres li:nth-child(3) { border-left: 0; }
  .chiffres li { padding: 4px 14px; }
  .chiffres b { font-size: 1.45rem; }
}

/* Bandeau des langues */
.langues {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px;
  padding: 34px 0 10px; margin: 0; list-style: none;
  font-family: var(--titre); font-size: 1.35rem; color: var(--texte-doux);
}
.langues li { white-space: nowrap; }
.langues li span { font-family: var(--corps); font-size: .72rem; font-weight: 700; letter-spacing: .1em; color: var(--vert); margin-left: .35em; vertical-align: .35em; }
.langues-note { text-align: center; color: var(--texte-doux); margin: 0; font-size: .98rem; }

/* ---------- Sections ---------- */
.bloc { padding: clamp(64px, 9vw, 112px) 0; }
.bloc-blanc { background: var(--blanc); }
.bloc-pre { background: var(--pre); }
.bloc-bois { background: var(--bois-pale); }
.bloc-foret { background: var(--foret); color: rgba(255,255,255,.86); }
.bloc-foret h2, .bloc-foret h3 { color: #fff; }
.bloc-foret h2 em { color: #bfe3a5; }
.bloc-foret .surtitre { color: #bfe3a5; }
.bloc-foret .chapo { color: rgba(255,255,255,.78); }
.tete-section { max-width: 44em; margin-bottom: 44px; }
.tete-section.centre { text-align: center; margin-inline: auto; }
.tete-section.centre .chapo { margin-inline: auto; }

.deux-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.deux-col.inverse > :first-child { order: 2; }
@media (max-width: 860px) {
  .deux-col { grid-template-columns: 1fr; }
  .deux-col.inverse > :first-child { order: 0; }
}

.photo { border-radius: var(--r); overflow: hidden; background: var(--pre-2); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo-legende { position: relative; }
.photo-legende .main { position: absolute; left: 18px; bottom: -34px; transform: rotate(-3deg); }

/* Polaroïds du jardin */
.polas { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; align-items: start; }
.pola {
  margin: 0; background: #fff; padding: 10px 10px 4px; border-radius: 6px;
  box-shadow: 0 12px 30px -14px rgba(0,0,0,.45);
}
.pola img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; border-radius: 2px; }
.pola figcaption { font-family: var(--main); font-size: 1.45rem; color: var(--foret); text-align: center; padding: 4px 0 2px; }
.pola:nth-child(1) { grid-column: 1 / span 5; rotate: -2.5deg; margin-top: 20px; }
.pola:nth-child(2) { grid-column: 6 / span 4; rotate: 1.8deg; }
.pola:nth-child(3) { grid-column: 10 / span 3; rotate: -1.2deg; margin-top: 40px; }
.pola:nth-child(3) img { aspect-ratio: 3 / 4; }
.pola:nth-child(4) { grid-column: 2 / span 4; rotate: 1.5deg; }
.pola:nth-child(5) { grid-column: 6 / span 3; rotate: -2deg; margin-top: 12px; }
.pola:nth-child(5) img { aspect-ratio: 3 / 4; }
.pola:nth-child(6) { grid-column: 9 / span 4; rotate: 2.2deg; margin-top: -30px; }
@media (max-width: 760px) {
  .polas { grid-template-columns: 1fr 1fr; gap: 14px; }
  .pola:nth-child(n) { grid-column: auto; margin-top: 0; }
  .pola:nth-child(n) img { aspect-ratio: 1; }
  .pola figcaption { font-size: 1.2rem; }
}

.atouts { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 14px; }
.atouts li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; align-items: start; }
.atouts li::before {
  content: ""; width: 22px; height: 22px; margin-top: 3px; background: var(--vert);
  -webkit-mask: url(img/gecko.svg) center / contain no-repeat;
          mask: url(img/gecko.svg) center / contain no-repeat;
}
.bloc-foret .atouts li::before { background: #bfe3a5; }
.atouts b { color: inherit; }

.grands-chiffres { display: flex; flex-wrap: wrap; gap: 14px 40px; margin: 6px 0 30px; }
.grands-chiffres div { font-size: .95rem; }
.grands-chiffres b { display: block; font-family: var(--titre); font-size: 2.6rem; font-weight: 600; line-height: 1.05; color: #bfe3a5; }

/* ---------- Pourquoi Gekko ---------- */
.pourquoi { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.medaillon {
  position: relative; aspect-ratio: 1; border-radius: 50%; background: var(--pre);
  display: grid; place-items: center; max-width: 440px; width: 100%; margin-inline: auto;
}
.medaillon img { width: 58%; transform: rotate(-12deg); }
.medaillon .main { position: absolute; right: -4%; bottom: 8%; transform: rotate(-6deg); color: var(--vert-fonce); font-size: 1.7rem; }
.traits { list-style: none; padding: 0; margin: 22px 0 22px; display: grid; gap: 10px; }
.traits li {
  background: var(--blanc); border: 1px solid var(--trait); border-radius: 14px;
  padding: 12px 16px; display: grid; grid-template-columns: 32px 1fr; gap: 10px; align-items: center;
}
.traits li b { font-family: var(--titre); color: var(--vert); font-size: 1.3rem; text-align: center; }
@media (max-width: 860px) { .pourquoi { grid-template-columns: 1fr; } .medaillon { max-width: 300px; } }

/* ---------- Vidéo (façade légère : YouTube ne charge qu'au clic) ---------- */
.video {
  position: relative; aspect-ratio: 16 / 9; border-radius: var(--r); overflow: hidden;
  background: #0b1f14; box-shadow: var(--ombre);
}
.video img, .video iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.video button {
  position: absolute; inset: 0; width: 100%; border: 0; padding: 0; cursor: pointer;
  background: linear-gradient(0deg, rgba(10, 30, 19, .55), rgba(10, 30, 19, .05) 55%);
  display: flex; align-items: flex-end; justify-content: flex-start; gap: 16px;
  padding: clamp(18px, 3vw, 32px); color: #fff; text-align: left;
  font: inherit;
}
.video .lecture {
  width: 76px; height: 76px; border-radius: 50%; flex: none;
  background: var(--vert); display: grid; place-items: center;
  transition: background-color .2s ease;
}
.video button:hover .lecture { background: var(--vert-fonce); }
.video .lecture svg { width: 30px; height: 30px; margin-left: 4px; }
.video .titre-video { font-family: var(--titre); font-size: clamp(1.2rem, 2.4vw, 1.7rem); font-weight: 600; line-height: 1.2; }
.video .titre-video small { display: block; font-family: var(--corps); font-size: .9rem; font-weight: 500; opacity: .85; }
.note-video { font-size: .88rem; color: var(--texte-doux); margin-top: 12px; }

/* ---------- Cartes ---------- */
.cartes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.cartes.trois { grid-template-columns: repeat(3, 1fr); }
.carte {
  background: var(--blanc); border-radius: var(--r); padding: 28px 24px 24px;
  border: 1px solid var(--trait);
}
.carte p { margin: 0; color: var(--texte-doux); font-size: .98rem; }
.carte h3 { margin-bottom: .4em; }
.icone {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  margin-bottom: 18px; background: var(--pre); color: var(--vert);
}
.icone svg { width: 28px; height: 28px; }
.icone.rouge { background: var(--rouge-pale); color: var(--rouge); }
.icone.soleil { background: var(--soleil-pale); color: #b07a06; }
.icone.ciel { background: var(--ciel-pale); color: #2a6f8c; }
.icone.bois { background: var(--bois-pale); color: var(--bois); }
@media (max-width: 1000px) { .cartes, .cartes.trois { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .cartes, .cartes.trois { grid-template-columns: 1fr; } }

/* ---------- Groupes ---------- */
.groupes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; position: relative; }
.groupes::before {
  content: ""; position: absolute; left: 0; right: 0; top: 27px; height: 3px;
  background: repeating-linear-gradient(90deg, var(--pre-2) 0 10px, transparent 10px 18px);
}
.groupe { position: relative; padding: 0 18px 0 0; }
.groupe .num {
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: var(--vert); color: #fff; font-family: var(--titre); font-weight: 600; font-size: 1.4rem;
  margin-bottom: 18px; position: relative; border: 5px solid var(--papier);
}
.bloc-blanc .groupe .num { border-color: var(--blanc); }
.groupe .age { font-weight: 700; color: var(--vert); font-size: .95rem; }
.groupe p { color: var(--texte-doux); font-size: .97rem; }
@media (max-width: 900px) {
  .groupes { grid-template-columns: 1fr 1fr; row-gap: 28px; }
  .groupes::before { display: none; }
}
@media (max-width: 520px) { .groupes { grid-template-columns: 1fr; } }

/* ---------- Équipe ---------- */
.visages { display: flex; padding-left: 14px; margin: 0 0 26px; }
.visages img {
  width: 64px; height: 64px; border-radius: 50%; object-fit: cover; object-position: center 25%;
  border: 3px solid var(--papier); margin-left: -14px; background: var(--pre-2);
}
.bloc-pre .visages img { border-color: var(--pre); }
.visages .plus {
  width: 64px; height: 64px; border-radius: 50%; margin-left: -14px; border: 3px solid var(--pre);
  background: var(--vert); color: #fff; display: grid; place-items: center; font-weight: 700;
}
.equipe-grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 22px; }
.membre { margin: 0; }
.membre img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 18px; background: var(--pre-2); }
.membre figcaption { padding: 12px 4px 0; }
.membre b { display: block; font-family: var(--titre); font-size: 1.18rem; font-weight: 600; color: var(--foret); }
.membre span { color: var(--texte-doux); font-size: .93rem; }
.direction { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.direction .membre { background: var(--blanc); border-radius: var(--r); padding: 14px 14px 20px; border: 1px solid var(--trait); }
.direction .membre figcaption { padding: 14px 6px 0; }
.direction .membre em { display: block; font-style: normal; color: var(--vert); font-weight: 700; font-size: .93rem; margin-top: 2px; }
@media (max-width: 860px) { .direction { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .direction { grid-template-columns: 1fr; } .equipe-grille { grid-template-columns: 1fr 1fr; gap: 16px; } }

/* ---------- Frise horaire ---------- */
.frise { list-style: none; padding: 0; margin: 0; position: relative; }
.frise::before { content: ""; position: absolute; left: 86px; top: 8px; bottom: 8px; width: 2px; background: var(--pre-2); }
.frise li { display: grid; grid-template-columns: 72px 1fr; gap: 34px; padding: 10px 0; position: relative; }
.frise li::after {
  content: ""; position: absolute; left: 80px; top: 18px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--papier); border: 3px solid var(--vert);
}
.bloc-blanc .frise li::after { background: var(--blanc); }
.frise time { font-family: var(--titre); font-weight: 600; color: var(--vert); font-size: 1.15rem; text-align: right; }
.frise b { color: var(--foret); }
.frise p { margin: 2px 0 0; color: var(--texte-doux); font-size: .97rem; }

/* ---------- En-tête des pages intérieures ---------- */
.entete-page { position: relative; color: #fff; isolation: isolate; padding: clamp(150px, 16vw, 210px) 0 clamp(54px, 7vw, 80px); }
.entete-page > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.entete-page::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(14, 38, 25, .85) 0%, rgba(14, 38, 25, .5) 55%, rgba(14, 38, 25, .15) 100%);
}
.entete-page h1 { color: #fff; font-size: clamp(2.2rem, 5vw, 3.6rem); max-width: 14em; }
.entete-page h1 em { color: #bfe3a5; }
.entete-page .surtitre { color: #bfe3a5; }
.entete-page .chapo { color: rgba(255,255,255,.86); }

/* ---------- Carte du jardin vue du ciel ---------- */
.plan { position: relative; border-radius: var(--r); overflow: hidden; box-shadow: var(--ombre); }
.plan > img { width: 100%; }
.repere {
  position: absolute; transform: translate(-50%, -50%);
  width: 38px; height: 38px; border-radius: 50%; border: 3px solid #fff;
  background: var(--vert); color: #fff; font-weight: 800; font-size: 1rem;
  display: grid; place-items: center; cursor: pointer; padding: 0;
  box-shadow: 0 4px 14px rgba(0,0,0,.35);
  transition: background-color .2s ease;
}
.repere:hover, .repere[aria-pressed="true"] { background: var(--rouge); }
.legende-plan { list-style: none; padding: 0; margin: 22px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.legende-plan li {
  display: grid; grid-template-columns: 30px 1fr; gap: 10px; align-items: start;
  padding: 12px 14px; border-radius: 14px; background: var(--blanc); border: 1px solid var(--trait);
  transition: background-color .2s ease, border-color .2s ease;
}
.legende-plan li.actif { background: var(--pre); border-color: var(--pre-2); }
.legende-plan li > span {
  width: 28px; height: 28px; border-radius: 50%; background: var(--vert); color: #fff;
  display: grid; place-items: center; font-weight: 800; font-size: .85rem;
}
.legende-plan li.actif > span { background: var(--rouge); }
.legende-plan b { display: block; color: var(--foret); }
.legende-plan small { color: var(--texte-doux); font-size: .9rem; line-height: 1.45; display: block; }
@media (max-width: 600px) { .repere { width: 28px; height: 28px; font-size: .8rem; border-width: 2px; } }

/* ---------- Galerie + visionneuse ---------- */
.galerie { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; gap: 14px; }
.galerie button { padding: 0; border: 0; border-radius: 16px; overflow: hidden; cursor: zoom-in; background: var(--pre-2); }
.galerie img { width: 100%; height: 100%; object-fit: cover; transition: opacity .2s ease; }
.galerie button:hover img { opacity: .88; }
.galerie .grand { grid-column: span 2; grid-row: span 2; }
.galerie .large { grid-column: span 2; }
.galerie .haut { grid-row: span 2; }
@media (max-width: 760px) {
  .galerie { grid-template-columns: 1fr 1fr; grid-auto-rows: 150px; }
}
.visionneuse {
  border: 0; padding: 0; background: transparent; max-width: min(1100px, 94vw); max-height: 92vh; overflow: visible;
}
.visionneuse::backdrop { background: rgba(10, 25, 16, .88); }
.visionneuse img { max-width: 100%; max-height: 82vh; border-radius: 14px; margin-inline: auto; }
.visionneuse p { color: #fff; text-align: center; margin: 12px 0 0; font-family: var(--main); font-size: 1.5rem; }
.visionneuse button {
  position: fixed; border: 0; background: rgba(255,255,255,.14); color: #fff; cursor: pointer;
  width: 48px; height: 48px; border-radius: 12px; font-size: 1.7rem; line-height: 1;
  transition: background-color .2s ease;
}
.visionneuse button:hover { background: rgba(255,255,255,.28); }
.visionneuse .fermer { top: 18px; right: 18px; }
.visionneuse .prec { left: 18px; top: 50%; }
.visionneuse .suiv { right: 18px; top: 50%; }

/* ---------- Encadré citation ---------- */
.citation {
  margin: 0; padding: 34px 36px; border-radius: var(--r); background: var(--foret); color: rgba(255,255,255,.9);
  position: relative;
}
.citation p { font-family: var(--titre); font-size: 1.3rem; line-height: 1.45; font-style: italic; margin: 0 0 .6em; }
.citation footer { font-size: .92rem; color: #bfe3a5; font-weight: 600; }

.liste-coche { list-style: none; padding: 0; margin: 0 0 1.2em; display: grid; gap: 10px; }
.liste-coche li { padding-left: 32px; position: relative; }
.liste-coche li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 6px;
  background: var(--pre) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23168238' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 14px no-repeat;
}

/* ---------- Infos pratiques / conditions générales ---------- */
.fiches { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 960px) { .fiches { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .fiches { grid-template-columns: 1fr; } }
.etapes { counter-reset: e; list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.etapes li { counter-increment: e; background: var(--blanc); border-radius: var(--r); padding: 24px 22px; border: 1px solid var(--trait); }
.etapes li::before {
  content: counter(e); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px;
  background: var(--vert); color: #fff; font-weight: 800; margin-bottom: 14px;
}
.etapes b { display: block; color: var(--foret); font-family: var(--titre); font-size: 1.15rem; margin-bottom: 4px; }
.etapes p { margin: 0; color: var(--texte-doux); font-size: .96rem; }
@media (max-width: 960px) { .etapes { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .etapes { grid-template-columns: 1fr; } }

.cg-liste { display: grid; gap: 10px; max-width: 900px; }
.cg { background: var(--blanc); border: 1px solid var(--trait); border-radius: 16px; }
.cg summary {
  list-style: none; cursor: pointer; padding: 16px 20px; font-weight: 700; color: var(--foret);
  display: flex; justify-content: space-between; align-items: center; gap: 12px; border-radius: 16px;
  transition: background-color .2s ease;
}
.cg summary::-webkit-details-marker { display: none; }
.cg summary:hover { background: var(--pre); }
.cg summary::after { content: "+"; font-size: 1.4rem; color: var(--vert); font-weight: 500; line-height: 1; }
.cg[open] summary::after { content: "–"; }
.cg[open] summary { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.cg-corps { padding: 4px 22px 18px; color: var(--texte-doux); font-size: .97rem; }
.cg-corps ul { padding-left: 1.2em; }
.cg-corps li { margin-bottom: .35em; }

/* ---------- Contact ---------- */
.contact-grille { display: grid; grid-template-columns: 1fr 1.2fr; gap: 28px; align-items: stretch; }
.contact-infos { display: grid; gap: 14px; align-content: start; }
.contact-ligne { display: grid; grid-template-columns: 52px 1fr; gap: 16px; align-items: center; background: var(--blanc); border: 1px solid var(--trait); border-radius: 18px; padding: 16px 18px; }
.contact-ligne .icone { margin: 0; }
.contact-ligne b { display: block; color: var(--foret); }
.contact-ligne a { font-weight: 600; }
.carte-geo { border-radius: var(--r); overflow: hidden; min-height: 380px; background: var(--pre-2); border: 1px solid var(--trait); }
.carte-geo iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; }
@media (max-width: 860px) { .contact-grille { grid-template-columns: 1fr; } }

/* ---------- Appel final ---------- */
.appel { padding: 0 0 clamp(64px, 8vw, 100px); }
.appel .boite {
  background: var(--vert); color: #fff; border-radius: 28px;
  padding: clamp(32px, 5vw, 56px); display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center;
  position: relative; overflow: hidden;
}
.appel .boite::after {
  content: ""; position: absolute; right: -40px; bottom: -60px; width: 260px; height: 260px; background: rgba(255,255,255,.08);
  -webkit-mask: url(img/gecko.svg) center / contain no-repeat; mask: url(img/gecko.svg) center / contain no-repeat;
  transform: rotate(-20deg); pointer-events: none;
}
.appel h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.3rem); margin-bottom: .3em; }
.appel p { margin: 0; color: rgba(255,255,255,.9); }
.appel .gecko { width: 74px; filter: brightness(0) invert(1); transform: rotate(-12deg); }
.appel .actions { position: relative; z-index: 1; }
@media (max-width: 860px) { .appel .boite { grid-template-columns: 1fr; } .appel .gecko { width: 56px; } }

/* ---------- Pied de page ---------- */
.pied { background: var(--foret); color: rgba(255,255,255,.78); padding: 70px 0 28px; font-size: .97rem; }
.pied .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 34px; }
.pied h4 { color: #fff; font-family: var(--corps); font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 1em; }
.pied ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.pied a { color: rgba(255,255,255,.86); text-decoration: none; }
.pied a:hover { color: #fff; text-decoration: underline; }
.logo-pied { display: inline-block; background: #fff; padding: 12px 16px; border-radius: 14px; margin-bottom: 16px; }
.logo-pied img { height: 40px; width: auto; }
.social { display: flex; gap: 10px; margin-top: 16px; }
.social a {
  width: 42px; height: 42px; border-radius: 12px; background: rgba(255,255,255,.1);
  display: grid; place-items: center; transition: background-color .2s ease;
}
.social a:hover { background: rgba(255,255,255,.2); }
.social svg { width: 20px; height: 20px; fill: #fff; }
.pied .bas { grid-template-columns: 1fr auto; margin-top: 46px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); font-size: .88rem; }
@media (max-width: 900px) { .pied .wrap { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .pied .wrap { grid-template-columns: 1fr; } }

/* ---------- Apparition au défilement (sobre) ---------- */
.js .revele { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js .revele.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .revele { opacity: 1; transform: none; transition: none; }
}
