:root{
  /* Palette */
  --bg: #DFF1E7;

  --surface: rgba(255,255,255,.72);
  --surface-strong: rgba(255,255,255,.84);
  --border: rgba(0,0,0,.06);

  --accent: #7EAC92;
  --accent-2: #7cb58a;

  --text: #152018;
  --muted: rgba(21,32,24,.70);

  --max: 980px;

  /* Pattes */
  --paw-opacity: .20;

  /* Hero images */
  --hero-bg-home: url("assets/home-bg.jpg");
  --hero-bg-presentation: url("assets/cascade.jpeg");
  --hero-bg-education: url("assets/ban3.jpeg");
  --hero-bg-balades: url("assets/cara_ban.jpeg");
  --hero-bg-garde: url("assets/ban4.jpeg");
  --hero-bg-temoignages: url("assets/ban5.jpeg");

  /* HERO sizing */
  --hero-h: clamp(520px, 72vh, 900px);

  /* centrage vertical */
  --hero-pad-top: 22px;
  --hero-pad-bottom: 22px;

  /* =========================
     FEUILLES (collées au LOGO)
     ========================= */
  --leaf-img: url("assets/leaf_transparent.png");
  --leaf-w: 320px;      /* taille */
  --leaf-x: 18px;       /* pousse vers l'intérieur/extérieur */
  --leaf-y: 10px;       /* descend/monte */
  --leaf-rot: -18deg;   /* inclinaison */
  --leaf-opacity: .75;  /* opacité */
}

*{ box-sizing: border-box; }
html, body{ height: 100%; }

body{
  margin: 0;
  font-family: "Lato", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

a{ color: inherit; text-decoration: none; }

.container{
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.page{
  position: relative;
  min-height: 100vh;
  overflow-x: clip;
  overflow-y: visible;
}

/* ✅ Si tu as encore le vieux HTML <div class="leaves">…</div>,
      on le neutralise pour éviter les conflits */
.leaves{ display:none !important; }

/* =========================
   PATTES
   ========================= */
.paw-trail1{
  position: absolute;
  top: -54%;
  left: 122%;
  width: 2400px;
  height: 130%;
  transform: translateX(-80%) rotate(20deg);

  background-image: url("assets/paw_transparent.png");
  background-repeat: repeat-y;
  background-size: 100% auto;

  opacity: var(--paw-opacity);
  pointer-events: none;
  z-index: 0;
}

.paw-trail2{
  position: absolute;
  top: -43%;
  left: 50%;
  width: 2400px;
  height: 130%;
  transform: translateX(-80%) rotate(-20deg);

  background-image: url("assets/paw_transparent.png");
  background-repeat: repeat-y;
  background-size: 100% auto;

  opacity: var(--paw-opacity);
  pointer-events: none;
  z-index: 0;
}

/* =========================
   HEADER
   ========================= */
.header{
  padding-top: 26px;
  padding-bottom: 10px;
  text-align: center;
  position: relative;
  z-index: 3;
  background: transparent;
}

.header__inner{
  display: grid;
  justify-items: center;
  gap: 10px;
}

/* LOGO */
.logo{
  width: min(var(--max), calc(100% - 40px));
  height: 100px;
  margin: 0 auto;

  background: var(--accent-2);
  border-radius: 16px;
  box-shadow: 0 14px 30px rgba(0,0,0,.12);

  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;

  position: relative;
  overflow: visible; /* permet aux feuilles de dépasser */
}

/* ✅ Feuilles collées au logo (base de tige sur les coins) */
.logo::before,
.logo::after{
  content: "";
  position: absolute;
  top: 0;

  width: var(--leaf-w);
  aspect-ratio: 1 / 1;

  background: var(--leaf-img) no-repeat;
  background-size: contain;
  background-position: bottom center; /* base de tige = bas */

  opacity: var(--leaf-opacity);
  pointer-events: none;

  transform-origin: 50% 100%; /* pivot sur la base */
  z-index: 0; /* derrière le contenu du logo */
}

/* gauche : coin haut gauche */
/* gauche : coin haut gauche (MIROIR HORIZONTAL) */
.logo::before{
  left: 0;
  transform:
    translate(calc(-50% + var(--leaf-x)), calc(-100% + var(--leaf-y)))
    scaleX(-1)
    rotate(var(--leaf-rot));
}

/* droite : coin haut droit (SANS miroir) */
.logo::after{
  right: 0;
  transform:
    translate(calc(50% - var(--leaf-x)), calc(-100% + var(--leaf-y)))
    rotate(var(--leaf-rot));
}


/* le contenu du logo au-dessus des feuilles */
.logo > *{
  position: relative;
  z-index: 1;
}

.logo img{
  max-width: 92%;
  max-height: 92%;
  height: auto;
  width: auto;
  display: block;
}

/* LOGO responsive */
@media (max-width: 900px){
  :root{ --leaf-w: 260px; --leaf-x: 14px; --leaf-y: 8px; }

  .logo{
    height: 92px;
    padding: 0 18px;
    border-radius: 14px;
  }
  .logo img{
    max-width: 90%;
    max-height: 90%;
  }
}

@media (max-width: 620px){
  :root{ --leaf-w: 220px; --leaf-x: 12px; --leaf-y: 6px; }

  .logo{
    height: 78px;
    padding: 0 14px;
    border-radius: 14px;
  }
  .logo img{
    max-width: 88%;
    max-height: 88%;
  }
}

@media (max-width: 420px){
  :root{ --leaf-w: 190px; --leaf-x: 10px; --leaf-y: 5px; }

  .logo{
    height: 70px;
    padding: 0 12px;
    border-radius: 12px;
  }
  .logo img{
    max-width: 86%;
    max-height: 86%;
  }
}

/* =========================
   NAV
   ========================= */
.navwrap{
  position: relative;
  z-index: 4;
  margin-top: 6px;
  margin-bottom: 14px;
}

.nav{
  width: fit-content;
  margin: 0 auto;

  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;

  padding: 10px 12px;
  border-radius: 999px;

  background: var(--surface);
  border: 1px solid rgba(255,255,255,.35);
  box-shadow: 0 14px 34px rgba(0,0,0,.10);
  backdrop-filter: blur(6px);
}

.nav__link{
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;

  padding: 8px 10px;
  border-radius: 999px;

  color: rgba(21,32,24,.82);
  transition: background .2s ease, transform .12s ease, color .2s ease;
}

.nav__link:hover{
  background: rgba(126,172,146,.18);
  transform: translateY(-1px);
}

.nav__link.is-active{
  background: rgba(126,172,146,.30);
  font-weight: 900;
}

/* =====================================================
   HERO — unique partout
   ===================================================== */
.page--home{ --hero-bg: var(--hero-bg-home); }
.page--presentation{ --hero-bg: var(--hero-bg-presentation); }
.page--education{ --hero-bg: var(--hero-bg-education); }
.page--balades{ --hero-bg: var(--hero-bg-balades); }
.page--garde{ --hero-bg: var(--hero-bg-garde); }
.page--temoignages{ --hero-bg: var(--hero-bg-temoignages); }

.hero{
  position: relative;
  z-index: 2;

  width: 100%;
  margin: 14px 0 22px;
  overflow: hidden;

  border-top: 1px solid rgba(255,255,255,.25);
  border-bottom: 1px solid rgba(0,0,0,.06);

  min-height: var(--hero-h);

  background-image: var(--hero-bg, var(--hero-bg-home));
  background-size: cover;
  background-position: center 50%;
  background-repeat: no-repeat;
}

.page--presentation .hero{ background-position: center 45%; }

.hero__overlay{
  position: absolute;
  inset: 0;
  background: radial-gradient(900px 420px at 50% 35%, rgba(255,255,255,.10), rgba(255,255,255,0));
  pointer-events: none;
  z-index: 1;
}

.hero .container{
  position: relative;
  z-index: 2;
}

.hero__inner{
  min-height: inherit;
  display: grid;
  place-items: center;
  padding: var(--hero-pad-top) 0 var(--hero-pad-bottom);
}

/* descendre la card sur certaines pages */
.page--education{ --hero-pad-top: 60px; --hero-pad-bottom: 22px; }
.page--balades{ --hero-pad-top: 60px; --hero-pad-bottom: 22px; }
.page--garde{ --hero-pad-top: 60px; --hero-pad-bottom: 22px; }
.page--home{ --hero-pad-top: 22px; --hero-pad-bottom: 22px; }

.hero__inner--split{
  place-items: stretch;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 24px;
}

.hero__card{
  width: min(620px, 100%);
  background: rgba(255,255,255,.76);
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 16px;
  padding: 18px;

  box-shadow: 0 16px 34px rgba(0,0,0,.12);
  backdrop-filter: blur(6px);

  transform: none;
  margin: 0;
}

.hero__card--vertical{
  width: min(420px, 100%);
  justify-self: start;
}

.hero__kicker{
  margin: 0 0 6px;
  font-size: 12px;
  letter-spacing: .10em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero__title{
  margin: 0 0 8px;
  font-family: "Lato", serif;
  font-size: 34px;
  line-height: 1.05;
}

.hero__text{
  margin: 0;
  line-height: 1.6;
  color: rgba(21,32,24,.90);
}

.hero__actions{
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero__media{
  justify-self: end;
  display: flex;
  justify-content: flex-end;
  margin: 0;
}

.hero__media img{
  width: 420px;
  max-width: 100%;
  height: min(520px, 58vh);

  object-fit: cover;
  object-position: center;

  border-radius: 18px;
  box-shadow: 0 18px 40px rgba(0,0,0,.18);
  border: 4px solid rgba(255,255,255,.35);
  display: block;
}

/* =========================
   BUTTONS
   ========================= */
.btn{
  display: inline-block;
  padding: 11px 16px;
  border-radius: 999px;

  background: var(--accent-2);
  color: rgba(255,255,255,.95);

  border: 1px solid rgba(255,255,255,.18);
  box-shadow: 0 14px 28px rgba(0,0,0,.10);

  font-weight: 900;
  letter-spacing: .02em;
  transition: transform .12s ease, filter .2s ease;
}

.btn:hover{
  transform: translateY(-1px);
  filter: saturate(1.05);
}

.btn--ghost{
  background: rgba(255,255,255,.45);
  color: rgba(21,32,24,.90);
  border: 1px solid rgba(0,0,0,.10);
}

/* =========================
   MAIN + SECTIONS
   ========================= */
.main{
  position: relative;
  z-index: 2;
}

.main__inner{
  padding-bottom: 28px;
}

.section{
  padding: 18px 0 6px;
  position: relative;
  z-index: 2;
}

.section__title{
  margin: 0 0 14px;
  font-family: "Lato", serif;
  font-size: 34px;
  text-align: center;
}

/* Cards */
.cards{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.card{
  padding: 16px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 12px 28px rgba(0,0,0,.08);
}

.card h3{
  margin: 0 0 6px;
  font-size: 18px;
}

.card p{
  margin: 0;
  line-height: 1.55;
  color: rgba(21,32,24,.88);
}

/* Steps */
.steps{
  display: grid;
  gap: 12px;
  max-width: 820px;
  margin: 0 auto;
}

.step{
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 12px;
  align-items: start;

  padding: 14px 14px;
  border-radius: 16px;

  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 10px 24px rgba(0,0,0,.07);
}

.step__num{
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: grid;
  place-items: center;

  background: rgba(126,172,146,.30);
  border: 1px solid rgba(0,0,0,.06);
  font-weight: 900;
}

.step__title{
  margin: 0 0 4px;
  font-size: 18px;
}

.step__text{
  margin: 0;
  line-height: 1.6;
  color: rgba(21,32,24,.88);
}

/* Panel */
.panel{
  margin: 0 auto;
  max-width: 820px;
  padding: 18px 18px;

  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 12px 28px rgba(0,0,0,.08);
}

.panel p{
  margin: 0;
  line-height: 1.7;
  color: rgba(21,32,24,.88);
}

.actions{
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

/* =========================
   FOOTER
   ========================= */
.footer{
  padding: 12px 0 18px;
  position: relative;
  z-index: 2;
}

.footer__inner{
  text-align: center;
}

.footer__text{
  margin: 0;
  font-size: 12px;
  letter-spacing: .03em;
  color: rgba(21,32,24,.70);
}

/* =========================
   REVEAL / SLIDE-IN
   ========================= */
.reveal{
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s ease, transform .6s ease;
  will-change: opacity, transform;
}
.reveal--left{ transform: translateX(-22px); }
.reveal--right{ transform: translateX(22px); }

.reveal.is-visible{
  opacity: 1;
  transform: translate(0,0);
}

.delay-1{ transition-delay: .08s; }
.delay-2{ transition-delay: .16s; }
.delay-3{ transition-delay: .24s; }

@media (prefers-reduced-motion: reduce){
  .reveal, .reveal.is-visible{
    transition: none;
    transform: none;
    opacity: 1;
  }
}

/* =========================
   RESPONSIVE GLOBAL
   ========================= */
@media (max-width: 900px){
  .hero__title{ font-size: 28px; }

  .hero__inner--split{
    grid-template-columns: 1fr;
    gap: 16px;
    place-items: center;
  }

  .hero__card--vertical{
    justify-self: center;
    align-items: center;
    width: min(620px, 100%);
  }

  .hero__media{
    justify-self: center;
    justify-content: center;
  }

  .hero__media img{
    width: min(340px, 100%);
    height: 420px;
  }
}

@media (max-width: 860px){
  .cards{ grid-template-columns: 1fr; }
  .section__title{ font-size: 30px; }
}

/* =========================
   PRICING
   ========================= */
.pricing{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin: 0 auto;
  max-width: 980px;
}

.price-card{
  padding: 16px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 12px 28px rgba(0,0,0,.08);
  text-align: left;
}

.price-card__head{
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.price-card__title{
  margin: 0;
  font-size: 18px;
}

.price-card__meta{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.price-card__price{
  font-weight: 900;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(126,172,146,.22);
  border: 1px solid rgba(0,0,0,.06);
}

.price-card__time{
  font-weight: 700;
  color: rgba(21,32,24,.70);
}

.price-card__text{
  margin: 0;
  line-height: 1.6;
  color: rgba(21,32,24,.88);
}

.price-card__actions{
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Cas : 1 seule carte */
.pricing:has(.price-card:only-child){
  grid-template-columns: 1fr;
  justify-items: center;
}

.pricing:has(.price-card:only-child) .price-card{
  max-width: 480px;
  width: 100%;
}

/* Cas : 3 cartes → centrer la 3e */
.pricing > .price-card:last-child:nth-child(odd){
  grid-column: 1 / -1;
  justify-self: center;
}

/* Mobile */
@media (max-width: 860px){
  .pricing{
    grid-template-columns: 1fr;
  }
}

/* =====================================================
   TÉMOIGNAGES — BASE (1 seule version)
   ===================================================== */
.page--temoignages .testimonials{
  width: min(860px, 100%);
  margin: 0 auto;
}

.page--temoignages .testimonials__top{
  width: min(760px, 100%);
  margin: 0 auto 12px;
  padding: 14px 16px;
  border-radius: 18px;

  background: rgba(255,255,255,.78);
  border: 1px solid rgba(255,255,255,.35);
  box-shadow: 0 16px 34px rgba(0,0,0,.12);
  backdrop-filter: blur(6px);

  text-align: center;
}

.page--temoignages .t-carousel{
  position: relative;
  border-radius: 18px;
  overflow: hidden;

  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.25);
  box-shadow: 0 18px 42px rgba(0,0,0,.14);
  backdrop-filter: blur(6px);

  width: 100%;
  max-width: 860px;
  margin: 0 auto;
}

/* structure robuste (anti décalage) */
.page--temoignages .tcar__viewport{
  width: 100%;
  overflow: hidden;
  touch-action: pan-y;
}

.page--temoignages .tcar__track{
  display: flex;
  flex-wrap: nowrap;
  width: 100%;
  transition: transform .45s ease;
  will-change: transform;
}

.page--temoignages .tcar__slide{
  flex: 0 0 100%;
  min-width: 100%;
  width: 100%;
  padding: 18px;

  display: grid;
  gap: 12px;
  justify-items: center;
}

.page--temoignages .tcar__media{
  width: clamp(220px, 42vw, 320px);
  height: clamp(220px, 42vw, 320px);

  border-radius: 999px;
  overflow: hidden;

  border: 4px solid rgba(255,255,255,.40);
  box-shadow: 0 18px 40px rgba(0,0,0,.18);
  background: rgba(255,255,255,.22);
}

.page--temoignages .tcar__media img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.page--temoignages .tcar__card{
  width: min(760px, 100%);
  margin: 0 auto;

  background: rgba(255,255,255,.78);
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 16px;
  padding: 14px 14px;
  box-shadow: 0 12px 28px rgba(0,0,0,.10);
  backdrop-filter: blur(6px);

  text-align: left;
}

.page--temoignages .tcar__title{
  margin: 0 0 6px;
  font-weight: 900;
  letter-spacing: .02em;
  text-align: center;
}

.page--temoignages .tcar__text{
  margin: 0;
  line-height: 1.65;
  color: rgba(21,32,24,.90);
}

.page--temoignages .t-nav{
  position: absolute;
  top: 42%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.35);
  background: rgba(255,255,255,.78);
  box-shadow: 0 14px 28px rgba(0,0,0,.10);
  cursor: pointer;
  z-index: 3;

  font-size: 22px;
  line-height: 1;
  display: grid;
  place-items: center;
}

.page--temoignages .t-nav--prev{ left: 12px; }
.page--temoignages .t-nav--next{ right: 12px; }

.page--temoignages .t-nav:hover{ transform: translateY(-50%) scale(1.03); }
.page--temoignages .t-nav:disabled{ opacity: .45; cursor: default; }

.page--temoignages .tcar__dots{
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 10px 12px 12px;
  background: rgba(255,255,255,.20);
  border-top: 1px solid rgba(255,255,255,.22);
}

.page--temoignages .tcar__dots button{
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.65);
  background: rgba(255,255,255,.55);
  cursor: pointer;
  padding: 0;
}

.page--temoignages .tcar__dots button.is-active{
  background: rgba(126,172,146,.55);
  border-color: rgba(255,255,255,.85);
}

.page--temoignages .testimonials__cta{
  margin-top: 12px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

@media (min-width: 860px){
  .page--temoignages .tcar__slide{ padding: 20px; }
}

/* =====================================================
   TÉMOIGNAGES — MOBILE
   ===================================================== */
@media (max-width: 600px){
  .page--temoignages{
    --hero-h: auto;
    --hero-pad-top: 0px;
    --hero-pad-bottom: 0px;
  }

  .page--temoignages .hero{
    background: var(--bg) !important;
    background-image: none !important;
    min-height: unset !important;
    margin: 12px 0 18px;
    border-top: 0;
    border-bottom: 0;
    overflow: visible;
  }

  .page--temoignages .hero__overlay{ display: none; }

  .page--temoignages .hero__inner{
    display: block;
    padding: 0;
  }

  .page--temoignages .testimonials{
    width: 100%;
    margin: 0;
  }

  .page--temoignages .testimonials__top{
    width: 100%;
    margin: 0 0 12px;
    padding: 12px 12px;
    border-radius: 16px;
  }

  .page--temoignages .t-carousel{
    width: 100%;
    max-width: none;
    margin: 0;
    border-radius: 16px;
  }

  .page--temoignages .tcar__slide{
    padding: 12px;
    gap: 10px;
  }

  .page--temoignages .tcar__media{
    width: 180px;
    height: 180px;
    border-width: 3px;
  }

  .page--temoignages .tcar__card{
    width: 100%;
    padding: 12px;
    border-radius: 14px;
  }

  .page--temoignages .tcar__title{ font-size: 16px; }

  .page--temoignages .tcar__text{
    font-size: 14px;
    line-height: 1.55;
  }

  .page--temoignages .t-nav{
    top: auto;
    bottom: 54px;
    transform: none;
    width: 40px;
    height: 40px;
    font-size: 20px;
  }

  .page--temoignages .t-nav--prev{ left: 10px; }
  .page--temoignages .t-nav--next{ right: 10px; }
  .page--temoignages .t-nav:hover{ transform: none; }

  .page--temoignages .tcar__dots{ gap: 10px; }
  .page--temoignages .tcar__dots button{
    width: 12px;
    height: 12px;
  }
}

/* =====================================================
   DECOR LAYER — PHOTOS EN CERCLES AUTOUR DU MAIN
   ===================================================== */
.main-layer{
  position: relative;
  z-index: 2;
}

.decor-layer{
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.decor-orbit{
  position: absolute;

  width: var(--d-size, 180px);
  height: var(--d-size, 180px);
  border-radius: 999px;
  overflow: hidden;

  border: 4px solid rgba(255,255,255,.45);
  box-shadow: 0 18px 40px rgba(0,0,0,.14);
  background: rgba(255,255,255,.18);

  left: var(--d-x, auto);
  right: var(--d-xr, auto);
  top: var(--d-y, 0);

  transform: translate(var(--d-tx, 0), var(--d-ty, 0));
  opacity: var(--d-op, .95);
}

.decor-orbit img{
  width: 100%;
  height: 100%;
  display: block;

  object-fit: cover;
  object-position: var(--d-pos-x, 50%) var(--d-pos-y, 50%);

  image-orientation: from-image;

  transform: rotate(var(--d-rot, 0deg)) scale(var(--d-zoom, 1));
  transform-origin: center;
}

@media (max-width: 900px){
  .decor-orbit[data-hide="md"]{ display:none; }
}
@media (max-width: 620px){
  .decor-layer{ display:none; }
}

/* =========================
   GALERIE
   ========================= */
.page--galerie{ --hero-bg: none; }

.page--galerie .hero{ background: var(--bg); }

.page--galerie .section{ padding-top: 28px; }

.gallery-grid{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.gallery-grid img{
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 16px;
  cursor: pointer;

  border: 4px solid rgba(255,255,255,.35);
  box-shadow: 0 14px 28px rgba(0,0,0,.15);
  transition: transform .2s ease, box-shadow .2s ease;
}

.gallery-grid img:hover{
  transform: scale(1.03);
  box-shadow: 0 18px 36px rgba(0,0,0,.22);
}

.lightbox{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.75);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  cursor: zoom-out;
}

.lightbox img{
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 18px;
  box-shadow: 0 20px 60px rgba(0,0,0,.4);
}

/* =====================================================
   BALADES — recadrage photo + card à droite + card carrée
   ===================================================== */
.page--balades .hero{
  background-position: center 50%;
}

.page--balades .hero__inner{
  justify-items: end;
  padding-right: 24px;
}

.page--balades .hero__card{
  width: min(460px, 100%);
  padding: 18px 18px;
  transform: translate(-50px,110px);
}

.page--balades .hero__text{
  max-width: 42ch;
}

@media (max-width: 900px){
  .page--balades .hero{
    background-position: center 50%;
  }
  .page--balades .hero__inner{
    justify-items: center;
    padding-right: 0;
  }
  .page--balades .hero__card{
    width: min(620px, 100%);
  }
  .page--balades .hero__text{
    max-width: none;
  }
}


/* =====================================================
   FIX FEUILLES / HEADER — une seule source de vérité
   (feuilles via .logo::before / .logo::after)
   ===================================================== */

/* On neutralise définitivement le vieux bloc HTML .leaves */
.leaves { display: none !important; }

/* Header au-dessus du fond/hero, mais pas besoin de re-définir 15 fois */
.header{
  position: relative;
  z-index: 5;
  background: transparent;
}

/* Le logo crée le repère pour les feuilles */
.logo{
  position: relative;
  z-index: 2;
  overflow: visible;
}

/* Feuilles derrière le contenu du logo, mais visibles au-dessus du header */
.logo::before,
.logo::after{
  z-index: 0;            /* derrière les images du logo */
  pointer-events: none;
}

/* Le contenu du logo passe au-dessus des feuilles */
.logo > *{
  position: relative;
  z-index: 1;
}

/* =====================================================
   HERO — centrage vertical parfait
   (pages Éducation + Garde)
   ===================================================== */
.page--education .hero__inner,
.page--garde .hero__inner{
  padding: 0;                  /* supprime le faux décalage */
  min-height: var(--hero-h);
  display: grid;
  place-items: center;         /* centre X + Y */
}


/* =========================================
   BALADES — HERO mobile: le texte doit être lisible
   ========================================= */
@media (max-width: 600px){
  .page--balades .hero__inner{
    justify-items: center;
    padding-right: 0;
  }

  .page--balades .hero__card{
    transform: none !important;      /* <- supprime le décalage */
    width: min(92vw, 520px);         /* <- évite de déborder */
    margin: 0 auto;
  }
}

/* =========================================
   BALADES — centrage parfait de la hero card (mobile)
   ========================================= */
@media (max-width: 600px){
  .page--balades .hero .container{
    padding-left: 0;
    padding-right: 0;
  }

  .page--balades .hero__inner{
    width: 100%;
    display: grid;
    place-items: center;
  }

  .page--balades .hero__card{
    width: min(92%, 520px);
    margin-left: auto;
    margin-right: auto;
  }
}

/* =========================================
   DÉSACTIVATION TOTALE DES FEUILLES
   ========================================= */

/* feuilles générées via le logo */
.logo::before,
.logo::after{
  display: none !important;
}

/* anciens blocs éventuels */
.leaves,
.leaf,
[class*="leaf"]{
  display: none !important;
}


/* =========================================
   FIX GALERIE — visible même si JS plante
   (problème réel mobile)
   ========================================= */
.page--galerie .reveal{
  opacity: 1 !important;
  transform: none !important;
}
