/* ============================================================
   TROP COOL — styles.css
   Refonte responsive complète — mobile-first
   Breakpoints : 480 / 768 / 1024 / 1280
   ============================================================ */

/* ============================================================
   1. VARIABLES
   ============================================================ */
:root {
  --primary:  #F9B233;
  --accent:   #6BBF59;
  --brown:    #5A3A1C;
  --bg:       #FFF8EC;
  --text:     #1F2328;
  --muted:    #6B6F76;
  --panel:    rgba(255,255,255,.88);
  --border:   rgba(0,0,0,.08);
  --radius:   16px;
  --shadow:   0 8px 24px rgba(0,0,0,.08);
}

/* ============================================================
   2. RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  cursor: url('../image/curseur.png'), auto;
  overflow-x: hidden;        /* pas de scroll horizontal */
}
body.forest {
  background: url('../image/fondesite.png') center/cover fixed no-repeat;
}
a { color: var(--primary); }
h1, h2, h3 { line-height: 1.2; margin: .2rem 0 .6rem; }
img { max-width: 100%; height: auto; display: block; }
p { margin: .2rem 0 .6rem; }

/* ============================================================
   3. LAYOUT
   ============================================================ */
.wrap {
  width: 92%;
  max-width: 1100px;
  margin-inline: auto;
}
.row { display: flex; gap: .6rem; flex-wrap: wrap; }

/* ============================================================
   4. ACCESSIBILITÉ
   ============================================================ */
.skip { position: absolute; left: -9999px; }
.skip:focus {
  left: 1rem; top: 1rem;
  background: #000; color: #fff;
  padding: .5rem 1rem; border-radius: 8px; z-index: 99;
}
:target { scroll-margin-top: 80px; }

/* ============================================================
   5. HEADER / NAV
   ============================================================ */
.top {
  position: sticky;
  top: 0;
  background: var(--panel);
  border-bottom: 1px solid var(--border);
  backdrop-filter: saturate(1.1) blur(6px);
  -webkit-backdrop-filter: saturate(1.1) blur(6px);
  z-index: 100;
  overflow: visible; /* évite que body>*{overflow-x:hidden} clipe le menu dropdown */
}
.top .wrap {
  display: flex;
  align-items: center;
  gap: .8rem;
  padding-block: .5rem;
}
.brand { flex: 0 0 auto; }
.brand .logo { height: 52px; }

/* Actions (switch thème + burger) */
.actions { margin-left: auto; display: flex; align-items: center; gap: .5rem; }
.switch { display: none; } /* masqué jusqu'à implémentation */
.burger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  background: transparent;
  border-radius: 10px;
  padding: .4rem .7rem;
  font-size: 1.25rem;
  cursor: pointer;
  line-height: 1;
}

/* Nav — mobile : position:fixed → sort du header, pas de scroll horizontal */
.nav {
  display: none;
  position: fixed;           /* indépendant du header, positionné sur le viewport */
  top: 62px;                 /* hauteur réelle du header mobile */
  right: 1rem;
  width: calc(100vw - 2rem); /* pleine largeur mobile avec marges */
  max-width: 320px;          /* pas trop large sur grand écran intermédiaire */
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: .5rem;
  flex-direction: column;
  gap: .25rem;
  box-shadow: var(--shadow);
  z-index: 9999;
  max-height: calc(100vh - 74px); /* ne déborde pas en bas de l'écran */
  overflow-y: auto;
}
.nav.open { display: flex; }
.nav a {
  display: flex;
  align-items: center;
  gap: .45rem;
  padding: .5rem .7rem;
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  font-size: 1rem;
  white-space: nowrap;
}
.nav a:hover {
  background: color-mix(in srgb, var(--primary) 12%, transparent);
}
.nav a .ico {
  width: 20px; height: 20px;
  flex: 0 0 20px;
  object-fit: contain;
  display: inline-block;
}
/* Fallback emoji ico */
.nav a .ico:not(img) {
  display: inline-grid;
  place-items: center;
  font-size: 18px;
  line-height: 1;
}

/* ============================================================
   6. BOUTONS
   ============================================================ */
.btn {
  display: inline-block;
  border-radius: 14px;
  padding: .85rem 1.15rem;
  border: 1px solid var(--border);
  font-weight: 900;
  text-decoration: none;
  background: transparent;
  cursor: pointer;
  font-size: 1rem;
  font-family: inherit;
}
.btn.primary { background: var(--primary); color: #fff; border-color: transparent; }
.btn.ghost   { background: transparent; border-color: var(--border); }
.btn.buy-btn { background: #ff9900 !important; color: #fff !important; border: none; }
.btn.buy-btn:hover { filter: brightness(.9); }
.btn.alt { background: #fff !important; color: #ff9900 !important; border: 2px solid #ff9900; }
.btn.alt:hover { background: #ff9900 !important; color: #fff !important; }

/* ============================================================
   7. HERO (.hero.intro — page d'accueil)
   ============================================================ */
.hero.intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 5rem 0 2rem;
  gap: 1.5rem;
}
.hero .gauche { display: flex; justify-content: center; }
.hero .gauche img {
  width: min(240px, 65vw);
  height: auto;
  filter: drop-shadow(0 10px 24px rgba(0,0,0,.18));
}
.hero .droite { width: 100%; }
.hero .droite .bloc {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 1.2rem 1rem;
}
.hero .droite h1        { font-size: clamp(1.8rem, 6vw, 3.4rem); margin: .2rem 0 .6rem; }
.hero .droite p.lead    { font-size: clamp(1rem, 3vw, 1.2rem); color: var(--text); margin: .2rem 0 1rem; }
.hero .cta              { display: flex; flex-wrap: wrap; gap: .7rem; justify-content: center; }
.hero .cta .btn         { padding: .9rem 1.1rem; font-size: 1rem; }
.hero .droite .info-inline { margin-top: .6rem; color: var(--muted); font-size: .95rem; }

/* ============================================================
   8. NOTICE
   ============================================================ */
.wrap.center { display: grid; place-items: center; text-align: center; }
.notice {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: .7rem 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  text-align: center;
}
.notice .pill {
  background: #FFE2A7;
  color: #7a4b00;
  border-radius: 999px;
  padding: .1rem .55rem;
  border: 1px solid rgba(0,0,0,.05);
}
.warn { background: #FFF4E5; border: 1px solid #FFD8A8; }

/* ============================================================
   9. GRILLES
   ============================================================ */
/* Mobile : 1 colonne par défaut */
.grid2 { display: grid; grid-template-columns: 1fr;          gap: 1.2rem; }
.grid3 { display: grid; grid-template-columns: 1fr;          gap: 1.2rem; margin-bottom: 1.5rem; }

/* ============================================================
   10. CARDS
   ============================================================ */
.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
  overflow: hidden;
  text-align: center;
}
.card img {
  display: block;
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}
.card h3, .card p { padding: 0 .8rem; }

/* ============================================================
   11. PANELS
   ============================================================ */
.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 1rem 1.2rem;
  text-align: center;
}
.panel.compact { padding: .8rem 1rem; }

/* ============================================================
   12. FEATURES
   ============================================================ */
.features { display: grid; grid-template-columns: 1fr; gap: 1.2rem; }
.feature {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1rem 1.2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .3rem;
}
.feature b { display: block; font-size: 1.05rem; margin: .2rem 0; }
.feature-link { color: inherit; text-decoration: none; display: block; }
.feature-link:hover .feature { outline: 2px solid var(--primary); }

/* ============================================================
   13. SLIDER
   ============================================================ */
.slider {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--panel);
}
.slider-track { display: flex; transition: transform .4s ease; }
.slider .slide { flex: 0 0 100%; min-width: 100%; padding: .3rem; }
.slider .slide img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: 12px;
  display: block;
  max-height: 260px;
}
.slider .ctrl {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  background: rgba(0,0,0,.5); color: #fff;
  border: none; border-radius: 999px;
  width: 40px; height: 40px;
  display: grid; place-items: center;
  cursor: pointer; z-index: 5;
}
.slider .prev { left: 8px; }
.slider .next { right: 8px; }
/* dots */
.slider .dots { position: absolute; left: 0; right: 0; bottom: 8px; display: flex; gap: 6px; justify-content: center; }
.slider .dot  { width: 8px; height: 8px; border-radius: 50%; background: #fff8; border: 1px solid #0003; }
.slider .dot.active { background: #fff; }
/* multi-vue (data-per) */
.slider[data-per="3"] .slide { width: 100%; }
.slider[data-per="1"] .slide { width: 100%; }

/* ============================================================
   14. SECTIONS GÉNÉRIQUES
   ============================================================ */
.alt     { background: transparent; padding: 1.5rem 0; }
.section { padding: 1.6rem 0; }
.strip   { display: none; }
.section-cards { padding: 1.5rem 0; }
.section-cards h2 { text-align: center; }

/* ============================================================
   15. TARIFS
   ============================================================ */
.prices { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.p {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1rem; text-align: center;
}
.p .amount { font-size: 2rem; font-weight: 900; color: var(--primary); }
.p.hit { outline: 2px solid var(--accent); }
.opts { display: grid; grid-template-columns: 1fr; gap: .6rem; margin-top: .5rem; }
.opts > div {
  display: flex; justify-content: space-between;
  border: 1px dashed var(--border); border-radius: 12px; padding: .5rem .7rem;
}

.price-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem; margin: 1.2rem 0;
}
.price-card {
  background: var(--panel);
  border: 2px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 6px 14px rgba(0,0,0,.08);
  padding: 1rem; text-align: center;
  transition: .3s;
}
.price-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 10px 18px rgba(0,0,0,.12);
  border-color: var(--primary);
}
.price-card h3  { font-size: 1.1rem; margin-bottom: .4rem; }
.price-card p   { font-size: 1rem; font-weight: 600; color: var(--accent); }
.price-card:nth-child(2) {
  background: color-mix(in srgb, var(--panel) 85%, #FFF2CC 25%);
}

/* ============================================================
   16. FORMULAIRES
   ============================================================ */
.form { display: grid; grid-template-columns: 1fr; gap: .8rem; }
.form .full { grid-column: 1 / -1; }
.form label { font-weight: 600; }
.form input, .form select, .form textarea {
  width: 100%; padding: .68rem .8rem;
  border: 1px solid var(--border);
  border-radius: 12px; background: #fff;
  color: inherit; font: inherit;
}

.contact-form { max-width: 900px; margin: 0 auto; padding: 16px 0; }
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
.contact-grid .field { display: flex; flex-direction: column; }
.contact-grid .field.full { grid-column: 1 / -1; }
.contact-grid label { font-weight: 700; margin-bottom: 6px; }
.contact-grid input,
.contact-grid textarea,
.contact-grid select {
  border: 1px solid #ddd; border-radius: 10px;
  padding: 10px 12px; font: inherit;
}
.contact-form .btn { margin-top: 8px; }
.contact-form .btn[type="submit"] { background: #ff69b4; color: #fff; }
.contact-form .btn[type="submit"]:hover { background: #ff85c1; }

.contact-topline {
  display: flex; align-items: center; justify-content: center;
  flex-wrap: wrap; gap: 14px; margin: 24px 0;
}
.contact-topline h1 { margin: 0; font-size: clamp(22px, 4vw, 34px); }
.contact-topline .sep { opacity: .4; }

/* ============================================================
   17. CARTE / LOCALISATION
   ============================================================ */
.map {
  position: relative; padding-top: 56%;
  border: 1px solid var(--border);
  border-radius: 16px; overflow: hidden; margin: 1rem 0;
}
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map.hero-map { height: 50vh; padding-top: 0; }
.hero-actions { display: flex; gap: .6rem; flex-wrap: wrap; margin: .8rem 0; }
.loc-photos   { display: grid; grid-template-columns: 1fr; gap: .6rem; }

/* ============================================================
   18. GALERIE
   ============================================================ */
.row.gallery-band {
  display: grid;
  grid-template-columns: 1fr;
  gap: .6rem;
}
.row.gallery-band img {
  width: 100%; aspect-ratio: 16/9;
  object-fit: cover; border-radius: 12px;
}
.gallery-title {
  text-align: center;
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  margin-top: 1rem;
}

/* ============================================================
   19. COMPOSANTS DIVERS
   ============================================================ */
.badge-list { display: grid; grid-template-columns: 1fr; gap: .6rem; }

.table { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; }
.table th, .table td { border: 1px solid var(--border); padding: .6rem .7rem; text-align: left; }
.table th { background: color-mix(in srgb, var(--bg) 60%, white); }

.kbd {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: .9em;
  background: color-mix(in srgb, var(--bg) 60%, white);
  border: 1px solid var(--border);
  border-radius: 6px; padding: .05rem .35rem;
}

details {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: .8rem; margin: .6rem 0;
}
details[open] { outline: 2px solid color-mix(in srgb, var(--primary) 35%, transparent); }
details summary { cursor: pointer; font-weight: 700; }

.toc { display: grid; gap: .4rem; margin: .4rem 0 0 .2rem; padding-left: 1rem; }
.toc.two-cols { grid-template-columns: 1fr; }

.bubble-sommaire {
  display: flex; flex-wrap: wrap; gap: .8rem;
  justify-content: center; margin: 1rem 0;
}
.bubble-sommaire .bubble {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .6rem 1rem; border-radius: 999px;
  background: var(--panel); color: var(--text);
  border: 2px solid var(--primary);
  font-weight: 700; text-decoration: none;
  transition: .25s; font-size: 1rem;
  flex: 0 0 auto;
}
.bubble-sommaire .bubble:hover {
  background: var(--primary); color: #fff;
  transform: scale(1.08);
  box-shadow: 0 6px 14px rgba(0,0,0,.2);
}

.full-width {
  width: 100%; height: auto; display: block;
  border-radius: 16px; border: 1px solid var(--border);
}
.img-wide {
  width: 100%; max-height: min(52vh, 520px);
  object-fit: cover; border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
  aspect-ratio: 16/9;
}

/* ============================================================
   20. FOOTER
   ============================================================ */
.foot { border-top: 1px solid var(--border); background: var(--panel); margin-top: 2rem; }
.legal {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: .5rem;
  border-top: 1px solid var(--border);
  padding: .75rem 0; color: var(--muted);
}

/* ============================================================
   21. BOUTON RETOUR EN HAUT
   ============================================================ */
#backTop {
  position: fixed; right: 18px; bottom: 18px;
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  background: var(--panel);
  cursor: pointer;
  display: none;
  align-items: center; justify-content: center;
  font-size: 22px; z-index: 50;
}
#backTop.show { display: flex; }

/* ============================================================
   22. STICKER
   ============================================================ */
.sticker {
  position: fixed; left: 14px; bottom: 14px;
  padding: .3rem; border-radius: 14px;
  background: var(--panel); border: 1px solid var(--border);
  box-shadow: var(--shadow); z-index: 20;
}
.sticker img { width: 70px; }

/* ============================================================
   23. VALIDATION FORMULAIRE
   ============================================================ */
.field-error { color: #c62828; margin-top: 6px; display: block; font-size: .9rem; }
input.invalid, textarea.invalid, select.invalid {
  border-color: #c62828;
  box-shadow: 0 0 0 3px rgba(198,40,40,.08);
}

/* ============================================================
   24. ANNIVERSAIRES
   ============================================================ */
.form-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 10px; }
.form-actions .btn.pay { background: #f5f5f5; color: #000; border: 1px solid #ddd; }
.form-actions .btn.pay:hover { background: #eee; }
.form-actions .note-inline { color: #c62828; font-weight: 700; font-size: .95rem; }
.note-pay { color: #c62828; font-weight: 700; margin-top: 10px; }

.page-anniv .anniv-title {
  font-weight: 800;
  font-size: clamp(1.45rem, 4vw, 1.9rem);
  line-height: 1.2;
  margin: .8rem 0 1rem;
  display: flex; align-items: center; gap: .6rem;
}

/* ============================================================
   25. UTILITAIRES
   ============================================================ */
.muted        { color: var(--muted); }
.fixed-black  { color: #1F2328 !important; }
.no-theme-color { color: inherit; }
.clean-list   { margin: .4rem 0 .6rem; padding-left: 1.1rem; }
.clean-list li { margin: .35rem 0; }
.price        { font-weight: 800; margin: .2rem 0 .6rem; }
.grid3.centered { justify-items: center; }

/* Anniversaires panneaux */
.grid2 > .panel {
  display: flex; flex-direction: column;
  justify-content: space-between;
  padding: 1.1rem 1.2rem;
}
.grid2 > .panel h3   { margin-top: .2rem; margin-bottom: .4rem; text-align: center; }
.grid2 > .panel ul   { margin: .3rem 0 .6rem 1.1rem; }
.grid2 > .panel p    { margin: .25rem 0; }
.grid2 > .panel.highlight {
  background: color-mix(in srgb, var(--panel) 80%, #F9B233 6%);
  border-color: color-mix(in srgb, var(--border) 90%, #F9B233 20%);
  outline: 2px solid color-mix(in srgb, #F9B233 40%, transparent);
}


/* ============================================================
   BREAKPOINTS — MOBILE-FIRST
   ============================================================ */

/* ── 480px : petits mobiles → mobiles courants ── */
@media (min-width: 480px) {
  .features     { grid-template-columns: repeat(2, 1fr); }
  .price-cards  { grid-template-columns: repeat(2, 1fr); }
  .row.gallery-band { grid-template-columns: repeat(2, 1fr); }
  .sticker img  { width: 80px; }
}

/* ── 768px : tablette ── */
@media (min-width: 768px) {
  .brand .logo { height: 70px; }
  :target { scroll-margin-top: 100px; }

  /* Hero : passe en 2 colonnes */
  .hero.intro {
    flex-direction: row;
    text-align: left;
    align-items: center;
    padding: 5rem 0;
    min-height: 70vh;
    gap: 2rem;
  }
  .hero .gauche { flex: 0 0 auto; }
  .hero .gauche img { width: min(320px, 40vw); }
  .hero .droite { flex: 1; min-width: 0; }
  .hero .cta { justify-content: flex-start; }
  .hero .droite .bloc { padding: 1.4rem 1.6rem; }

  /* Grilles */
  .grid2        { grid-template-columns: repeat(2, 1fr); }
  .grid3        { grid-template-columns: repeat(2, 1fr); }
  .prices       { grid-template-columns: repeat(2, 1fr); }
  .opts         { grid-template-columns: repeat(2, 1fr); }
  .form         { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: repeat(2, 1fr); }
  .loc-photos   { grid-template-columns: repeat(2, 1fr); }
  .badge-list   { grid-template-columns: repeat(2, 1fr); }
  .toc.two-cols { grid-template-columns: repeat(2, 1fr); }
  .row.gallery-band { grid-template-columns: repeat(2, 1fr); }

  /* Slider */
  .slider .slide img          { max-height: 320px; }
  .slider[data-per="3"] .slide { width: calc(100% / 2); }

  /* Carte */
  .map.hero-map { height: 60vh; }
}

/* ── 1024px : desktop ── */
@media (min-width: 1024px) {

  /* Nav : abandonne le burger, affiche la nav horizontale */
  .burger { display: none; }
  .nav {
    display: flex !important;
    position: static;
    flex-direction: row;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    gap: .5rem;
    min-width: unset;
    flex: 1;
    justify-content: center;
    align-items: center;
    /* reset des propriétés mobile-only */
    width: auto;
    max-width: none;
    max-height: none;
    overflow-y: visible;
    top: auto;
    right: auto;
  }
  .nav a {
    font-size: .92rem;
    padding: .2rem .45rem;
    white-space: nowrap;
  }
  .top .wrap { gap: 1rem; }

  /* Logo */
  .brand .logo { height: 90px; }
  :target { scroll-margin-top: 120px; }

  /* Hero */
  .hero.intro {
    min-height: 84vh;
    padding: 5rem 0;
    gap: 2.5rem;
  }
  .hero .gauche img { width: min(460px, 42vw); }
  .hero .droite .bloc { padding: 1.5rem 1.8rem; border-radius: 26px; }
  .hero .droite h1 { font-size: clamp(2.4rem, 4.5vw, 3.4rem); }

  /* Grilles 3 colonnes */
  .grid3    { grid-template-columns: repeat(3, 1fr); }
  .features { grid-template-columns: repeat(4, 1fr); }
  .prices   { grid-template-columns: repeat(3, 1fr); }
  .price-cards { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
  .loc-photos  { grid-template-columns: repeat(3, 1fr); }
  .row.gallery-band { grid-template-columns: repeat(4, 1fr); }

  /* Slider */
  .slider .slide img           { max-height: 400px; }
  .slider[data-per="3"] .slide { width: calc(100% / 3); }

  /* Carte */
  .map.hero-map { height: 65vh; }
}

/* ── 1280px : grand écran ── */
@media (min-width: 1280px) {
  .wrap { width: 88%; }
  .hero.intro { min-height: 90vh; }
}


/* ============================================================
   SYMÉTRIE COMPLÈTE — toutes les grilles de la page index
   Uniquement sur desktop (≥ 1024px) pour ne pas casser le mobile
   ============================================================ */
@media (min-width: 1024px) {

/* ── 1. CARDS (Piscine, Parcours, Espace famille) ─────────── */
.grid3 {
  grid-template-columns: repeat(3, 1fr);
  align-items: stretch;
}
.grid3 .card {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.grid3 .card img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  flex-shrink: 0;
}
.grid3 .card h3 {
  margin: .7rem .8rem .3rem;
  font-size: 1rem;
  font-weight: 800;
}
.grid3 .card p {
  margin: 0 .8rem .8rem;
  font-size: .9rem;
  color: var(--muted);
  flex: 1;
}

/* ── 2. FEATURES (Anniversaires, Resto, Propreté, Confort) ── */
.features {
  grid-template-columns: repeat(4, 1fr);
  align-items: stretch;
}
.feature-link {
  display: flex;
  height: 100%;
}
.feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  padding: 1.4rem 1rem;
  width: 100%;
  height: 100%;
  gap: 0;
}
.feature > div:first-child {
  font-size: 2rem;
  line-height: 1;
  margin-bottom: .6rem;
  flex-shrink: 0;
}
.feature b {
  font-size: .95rem;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: .4rem;
  display: block;
}
.feature span {
  font-size: .88rem;
  color: var(--muted);
  line-height: 1.5;
  margin-top: auto;
  display: block;
}

/* ── 3. PANELS (Horaires, Adresse, Contact) ──────────────── */
.wrap.grid3 {
  grid-template-columns: repeat(3, 1fr);
  align-items: stretch;
}
.wrap.grid3 > .panel,
.wrap.grid3 > .panel.compact {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.5rem 1.2rem;
  height: 100%;
}
.wrap.grid3 > .panel h3 {
  font-size: 1rem;
  font-weight: 800;
  margin: 0 0 .7rem;
}
.wrap.grid3 > .panel p {
  font-size: .9rem;
  margin: .2rem 0;
  line-height: 1.55;
  width: 100%;
}
.wrap.grid3 > .panel p:last-child {
  margin-top: auto;
}

} /* fin @media (min-width: 1024px) */


/* ============================================================
   ANTI SCROLL HORIZONTAL — mobile
   ============================================================ */

/* Verrouillage sur html ET body (requis sur Safari iOS) */
html {
  overflow-x: hidden;
  max-width: 100%;
}
body {
  overflow-x: hidden;
  max-width: 100%;
}

/* Aucun enfant direct ne peut dépasser la largeur du viewport */
body > * {
  max-width: 100%;
  overflow-x: hidden;
}

/* Tous les éléments restent dans leur boîte */
*,
*::before,
*::after {
  min-width: 0;
  box-sizing: border-box;
}

/* Les images ne débordent jamais */
img, video, iframe, embed, object {
  max-width: 100% !important;
}

/* Exception : le slider-track est plus large que 100% par design (JS)
   — on laisse overflow:hidden sur .slider gérer l'affichage */
.slider { overflow: hidden; max-width: 100%; }
.slider-track { max-width: none; }   /* la track déborde DANS le slider clipé */
