/* ============================================================
   STYLE GENERAL
   ============================================================ */
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  color: #1a1a1a;
  background: #f5f7fa;
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body > main, body > .container, body > .lookup-page { flex: 1 0 auto; }
body > footer { margin-top: auto; }

.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
}

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

/* ---------- HEADER ---------- */
.header {
  background: #151515;
  color: white;
  padding: 16px 0;
}
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.header-row { display: flex; align-items: center; gap: 12px; }
.menu-toggle {
  display: none; /* visible seulement en mobile, voir media query plus bas */
  background: none;
  border: none;
  color: white;
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
}
.logo { font-size: 1.4rem; }
.logo { display: flex; align-items: center; gap: 10px; color: white; }
.logo img { height: 40px; width: 40px; border-radius: 8px; object-fit: cover; }
.header nav a {
  margin-left: 20px;
  font-weight: 600;
}
.header nav a:hover { text-decoration: underline; }
.header nav a.nav-actif {
  text-decoration: underline;
  color: #e63946;
}

/* ---------- HERO ---------- */
.hero {
  background: linear-gradient(135deg, #151515, #c81e1e);
  color: white;
  padding: 60px 0;
  text-align: center;
}
.hero h2 { font-size: 2rem; margin-bottom: 10px; }
.hero p { margin-bottom: 20px; font-size: 1.1rem; }

.hero-image {
  background-size: cover;
  background-position: center;
  padding: 90px 0;
}

/* ---------- SERVICES ---------- */
.services-section { padding: 50px 20px; }
.section-titre {
  text-align: center;
  font-size: 1.8rem;
  color: #151515;
  margin-bottom: 6px;
}
.section-soustitre {
  text-align: center;
  color: #666;
  margin-bottom: 30px;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
}
.service-card img {
  width: 100%;
  height: 170px;
  object-fit: cover;
}
.service-content {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.service-content h3 { margin-bottom: 8px; font-size: 1.05rem; }
.service-content p { font-size: 0.9rem; color: #555; flex: 1; margin-bottom: 14px; }
.btn-lien-contact {
  display: inline-block;
  padding: 10px 16px;
  background: #e63946;
  color: white;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.85rem;
  text-align: center;
}

/* ---------- GALERIE ---------- */
.galerie-section { padding: 20px 20px 50px; }
.galerie-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.galerie-grid img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 12px;
}

/* ---------- BOUTONS ---------- */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.1s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: #e63946;
  color: white;
}
.btn-paiement {
  background: #151515;
  color: white;
  margin: 6px;
}
.btn-paiement:hover { background: #c81e1e; }
.btn-paiement:disabled { opacity: .55; cursor: wait; transform: none; }

/* ---------- INFO CARDS (accueil) ---------- */
.info-section {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding: 40px 20px;
}
.card {
  background: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

/* ---------- PAGE RESERVATION ---------- */
main.container { padding: 30px 20px 60px; }
main h2 { margin-bottom: 20px; }

.filtres {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.filtres label { display: block; font-weight: 600; margin-bottom: 4px; }
.filtres select, .filtres input {
  padding: 8px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 1rem;
}

/* Chips de date : plus simple à comprendre qu'un champ date brut */
.date-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 6px 2px 14px;
  margin-bottom: 4px;
}
.date-chip {
  flex: 0 0 auto;
  padding: 10px 14px;
  border-radius: 10px;
  background: white;
  border: 2px solid #e0e0e0;
  cursor: pointer;
  text-align: center;
  min-width: 70px;
  font-size: 0.85rem;
}
.date-chip .jour-nom { display: block; font-weight: 700; text-transform: capitalize; }
.date-chip .jour-num { display: block; font-size: 1.2rem; font-weight: 700; }
.date-chip:hover { border-color: #151515; }
.date-chip.selectionne { background: #151515; border-color: #151515; color: white; }
.btn-lien {
  background: none;
  border: none;
  color: #151515;
  text-decoration: underline;
  cursor: pointer;
  font-size: 0.9rem;
  margin-bottom: 16px;
  display: inline-block;
}
.date-lisible {
  font-weight: 600;
  margin: 10px 0;
  color: #151515;
}
.aide-champ {
  font-size: 0.85rem;
  color: #666;
  margin-top: -8px;
  margin-bottom: 14px;
}
.creneau.plage { background: #151515; color: white; }

/* Grille des créneaux : le "calendrier" */
.creneaux-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}
.creneau {
  padding: 14px 8px;
  text-align: center;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.1s ease;
}
.creneau:hover { transform: scale(1.03); }
.creneau.libre { background: #ffffff; color: #151515; border: 2px solid #151515; }
.creneau.libre:hover { background: #f0f0f0; }
.creneau.en_attente { background: #fff3cd; color: #8a6d00; cursor: not-allowed; border: 2px solid #fff3cd; pointer-events: none; }
.creneau.passe { background: #eceef1; color: #98a2b3; cursor: not-allowed; border: 2px solid #eceef1; pointer-events: none; text-decoration: line-through; }
.creneau.passe .creneau-status { color:#98a2b3; text-decoration:none; }
.creneau.occupe { background: #b3151b; color: white; cursor: not-allowed; border: 2px solid #b3151b; font-weight: 700; pointer-events: none; }
.creneau.selectionne { border-color: #e63946; background: #151515; color: white; }

.legende { display: flex; gap: 20px; margin-bottom: 30px; font-size: 0.9rem; }
.pastille {
  display: inline-block;
  width: 12px; height: 12px;
  border-radius: 50%;
  margin-right: 6px;
}
.pastille.libre { background: white; border: 2px solid #151515; }
.pastille.en_attente { background: #f1b100; }
.pastille.occupe { background: #b3151b; }

/* Formulaires */
.form-reservation { margin-top: 20px; }
.form-reservation label {
  display: block;
  margin-bottom: 12px;
  font-weight: 600;
}
.form-reservation input {
  width: 100%;
  padding: 10px;
  margin-top: 4px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 1rem;
}
.recap { margin-bottom: 16px; font-size: 1.05rem; }
.moyens-paiement { display: flex; flex-wrap: wrap; }
.statut-paiement { margin-top: 14px; font-weight: 600; }

.confirmation {
  background: #e9fbee;
  border: 2px solid #151515;
}
.confirmation h3 { color: #151515; margin-bottom: 8px; }

/* ---------- FOOTER ---------- */
.footer {
  background: #111;
  color: #fff;
  text-align: center;
  padding: 28px 0;
  margin-top: 55px;
  border-top: 3px solid #e00000;
}
.footer p { margin: 0; opacity: .9; }

/* ---------- ETAT DES RESERVATIONS ---------- */
.creneau { position: relative; min-height: 72px; display:flex; flex-direction:column; justify-content:center; gap:3px; }
.creneau .creneau-horaire { font-size:1rem; font-weight:900; }
.creneau .creneau-status { font-size:.72rem; font-weight:800; text-transform:uppercase; letter-spacing:.04em; opacity:.85; }
.creneau.libre .creneau-status { color:#1f7a45; }
.creneau.en_attente .creneau-status { color:#8a5b00; }
.creneau.occupe .creneau-status { color:#fff; }
.creneau.selectionne .creneau-status, .creneau.plage .creneau-status { color:#fff; }
.reservation-status-banner{display:flex;align-items:center;gap:14px;padding:16px 18px;border-radius:16px;margin:18px 0;background:#fff;border:1px solid #e5e5e5;box-shadow:0 8px 22px rgba(0,0,0,.05)}
.reservation-status-dot{width:13px;height:13px;border-radius:50%;flex:0 0 auto}.reservation-status-banner strong{display:block}.reservation-status-banner span{font-size:.86rem;color:#666}.reservation-status-banner.confirmed{border-left:5px solid #198754}.reservation-status-banner.confirmed .reservation-status-dot{background:#198754}.reservation-status-banner.pending{border-left:5px solid #f1b100}.reservation-status-banner.pending .reservation-status-dot{background:#f1b100}.reservation-status-banner.cancelled{border-left:5px solid #d00000}.reservation-status-banner.cancelled .reservation-status-dot{background:#d00000}

/* ---------- ACCUEIL KARSY ---------- */
.home-hero{position:relative;min-height:570px;display:flex;align-items:center;background-size:cover;background-position:center;color:#fff;overflow:hidden}
.home-hero:after{content:"";position:absolute;inset:0;background:radial-gradient(circle at 75% 35%,rgba(224,0,0,.28),transparent 34%);pointer-events:none}
.home-hero .container{position:relative;z-index:1;width:100%;max-width:1120px}
.home-eyebrow{display:inline-flex;align-items:center;gap:8px;background:rgba(224,0,0,.92);padding:8px 13px;border-radius:999px;font-size:.76rem;font-weight:900;letter-spacing:.08em;text-transform:uppercase;margin-bottom:18px}
.home-hero h1{font-size:clamp(2.6rem,6vw,5.2rem);line-height:.98;max-width:760px;margin:0 0 20px;font-weight:950;letter-spacing:-.04em}.home-hero h1 span{color:#ff1a1a}.home-hero p{font-size:1.12rem;max-width:680px;color:rgba(255,255,255,.86);line-height:1.75;margin-bottom:28px}.home-actions{display:flex;gap:12px;flex-wrap:wrap}.home-actions .btn{padding:14px 24px;border-radius:12px}.btn-outline-light{border:1px solid rgba(255,255,255,.55);color:#fff;background:rgba(0,0,0,.25)}.btn-outline-light:hover{background:#fff;color:#111}
.home-stats{position:relative;z-index:2;max-width:1050px;margin:-48px auto 0;padding:0 20px}.home-stats-grid{display:grid;grid-template-columns:repeat(4,1fr);background:#fff;border-radius:20px;box-shadow:0 18px 45px rgba(0,0,0,.12);overflow:hidden}.home-stat{padding:22px;text-align:center;border-right:1px solid #eee}.home-stat:last-child{border-right:0}.home-stat strong{display:block;font-size:1.45rem;font-weight:950}.home-stat span{color:#777;font-size:.82rem}
.home-section{max-width:1120px;margin:0 auto;padding:80px 20px}.home-section-head{text-align:center;max-width:720px;margin:0 auto 36px}.home-section-head .eyebrow{color:#d00000;font-size:.78rem;font-weight:900;letter-spacing:.1em;text-transform:uppercase}.home-section-head h2{font-size:2.2rem;margin:9px 0}.home-section-head p{color:#666;line-height:1.7}
.home-activity-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px}.home-activity{position:relative;min-height:300px;border-radius:22px;overflow:hidden;color:#fff;text-decoration:none;background:#111;box-shadow:0 12px 30px rgba(0,0,0,.1)}.home-activity img{width:100%;height:100%;position:absolute;inset:0;object-fit:cover;transition:transform .35s}.home-activity:hover img{transform:scale(1.05)}.home-activity-placeholder{position:absolute;inset:0;display:grid;place-items:center;background:linear-gradient(135deg,#111 0%,#2b2b2b 55%,#e00000 150%);transition:transform .35s}.home-activity-placeholder span{font-size:5rem;filter:drop-shadow(0 10px 18px rgba(0,0,0,.35));transition:transform .35s}.home-activity:hover .home-activity-placeholder{transform:scale(1.05)}.home-activity:hover .home-activity-placeholder span{transform:scale(1.08) rotate(-3deg)}.home-activity:after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,transparent 25%,rgba(0,0,0,.9) 100%)}.home-activity-content{position:absolute;z-index:1;left:0;right:0;bottom:0;padding:24px}.home-activity-content h3{font-size:1.35rem;margin-bottom:6px}.home-activity-content p{color:rgba(255,255,255,.78);font-size:.9rem;margin-bottom:13px}.home-activity-content span{font-weight:900;color:#ff2a2a}
.home-feature-grid{display:grid;grid-template-columns:1.2fr .8fr;gap:24px;align-items:stretch}.home-feature-dark{background:linear-gradient(135deg,#0a0a0a,#1d1d1d);color:#fff;border-radius:24px;padding:34px}.home-feature-dark h3{font-size:1.8rem;margin-bottom:12px}.home-feature-dark p{color:#ccc;line-height:1.7}.home-feature-list{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:24px}.home-feature-list div{background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.1);padding:14px;border-radius:12px;font-weight:800}.home-feature-red{border-radius:24px;background:#e00000;color:#fff;padding:34px;display:flex;flex-direction:column;justify-content:center}.home-feature-red h3{font-size:1.8rem;margin-bottom:10px}.home-feature-red p{color:#ffe5e5;line-height:1.7;margin-bottom:20px}
.home-cta{background:#111;color:#fff;border-radius:25px;padding:38px;display:flex;justify-content:space-between;align-items:center;gap:20px}.home-cta h2{font-size:2rem;margin-bottom:5px}.home-cta p{color:#bbb}.home-cta .btn{flex:0 0 auto}
@media(max-width:1000px){.home-activity-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:850px){.home-stats-grid{grid-template-columns:repeat(2,1fr)}.home-stat:nth-child(2){border-right:0}.home-stat:nth-child(-n+2){border-bottom:1px solid #eee}.home-feature-grid{grid-template-columns:1fr}.home-cta{flex-direction:column;align-items:flex-start}.home-hero{min-height:520px}}
@media(max-width:600px){.home-stats{margin-top:-28px}.home-stats-grid{grid-template-columns:1fr}.home-stat{border-right:0!important;border-bottom:1px solid #eee}.home-stat:last-child{border-bottom:0}.home-section{padding:55px 14px}.home-feature-list{grid-template-columns:1fr}.home-hero{min-height:570px}.home-hero p{font-size:1rem}}

/* ---------- ADMIN ---------- */
.admin-login {
  max-width: 400px;
  margin: 60px auto;
  background: white;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.admin-login input {
  width: 100%;
  padding: 10px;
  margin: 8px 0 16px;
  border-radius: 6px;
  border: 1px solid #ccc;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 20px 0 30px;
}
.stat-card {
  background: white;
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.stat-card .valeur { font-size: 1.8rem; font-weight: 700; color: #151515; }

.table-wrapper {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 10px;
}

table.admin-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: 10px;
  overflow: hidden;
}
table.admin-table th, table.admin-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #eee;
  text-align: left;
  font-size: 0.9rem;
}
table.admin-table th { background: #f0f0f0; }
.badge {
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
}
.badge.confirmee { background: #f5dede; color: #151515; }
.badge.en_attente { background: #fff3cd; color: #8a6d00; }
.badge.en_attente_paiement { background: #ffe0b2; color: #8a4b00; }
.badge.annulee { background: #e0e0e0; color: #666; text-decoration: line-through; }

/* ============================================================
   RESPONSIVE — Tablette (≤ 900px)
   ============================================================ */
@media (max-width: 900px) {
  .info-section { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   RESPONSIVE — Mobile (≤ 600px)
   ============================================================ */
@media (max-width: 600px) {
  .container { padding: 0 14px; }

  /* Header : le menu devient un menu burger */
  .header-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .header-row {
    width: 100%;
    justify-content: space-between;
  }
  .logo { font-size: 1.15rem; }
  .menu-toggle { display: block; }
  .header nav#nav-menu {
    display: none;
    flex-direction: column;
    width: 100%;
    margin-top: 10px;
    padding-bottom: 10px;
  }
  .header nav#nav-menu.nav-ouvert { display: flex; }
  .header nav#nav-menu a {
    margin-left: 0;
    font-size: 0.95rem;
    padding: 12px 4px;
    border-top: 1px solid rgba(255,255,255,0.15);
  }

  /* Hero */
  .hero { padding: 36px 0; }
  .hero h2 { font-size: 1.4rem; }
  .hero p { font-size: 0.95rem; }
  .btn { width: 100%; text-align: center; }

  /* Cartes d'info accueil */
  .info-section { grid-template-columns: 1fr; padding: 24px 14px; }

  /* Services et galerie */
  .services-grid { grid-template-columns: 1fr; }
  .galerie-grid { grid-template-columns: 1fr; }
  .hero-image { padding: 50px 0; }
  .section-titre { font-size: 1.4rem; }

  /* Filtres (zone / date) */
  .filtres { flex-direction: column; gap: 12px; }
  .filtres select, .filtres input { width: 100%; }

  /* Grille de créneaux : plus petite sur mobile pour tout voir sans trop scroller */
  .creneaux-grid { grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 8px; }
  .creneau { padding: 10px 4px; font-size: 0.85rem; }

  .legende { flex-direction: column; gap: 8px; font-size: 0.85rem; }

  /* Chips de date : garde le scroll horizontal, juste un peu plus compact */
  .date-chip { min-width: 60px; padding: 8px 10px; font-size: 0.8rem; }

  /* Paiement : boutons empilés et pleine largeur, plus faciles à toucher */
  .moyens-paiement { flex-direction: column; }
  .btn-paiement { width: 100%; margin: 4px 0; }

  /* Formulaires */
  .form-reservation { padding: 16px; }

  /* Admin */
  .admin-login { margin: 30px 14px; padding: 20px; }
  .stats-grid { grid-template-columns: 1fr; }
  table.admin-table { font-size: 0.8rem; }
  table.admin-table th, table.admin-table td { padding: 8px; white-space: nowrap; }
}


/* Code unique de réservation */
.code-reservation{margin:18px 0;padding:16px;border:1px dashed #e5b700;background:#fff8df;border-radius:14px;text-align:center}.code-reservation span,.code-reservation small{display:block;color:#667085}.code-reservation strong{display:block;color:#0b3d91;font-size:1.45rem;letter-spacing:2px;margin:5px 0}

/* ============================================================
   KARSY — RESPONSIVITÉ MOBILE V2
   ============================================================ */
html { overflow-x: hidden; }
body { overflow-x: hidden; }
img { max-width: 100%; }
button, input, select { max-width: 100%; }

@media (max-width: 760px) {
  .header { padding: 10px 0; position: relative; z-index: 100; }
  .header .container { padding-left: 14px; padding-right: 14px; }
  .header-row { min-height: 44px; }
  .logo { min-width: 0; max-width: calc(100% - 52px); font-size: 1.02rem; font-weight: 800; }
  .logo img { width: 34px; height: 34px; flex: 0 0 34px; }
  .menu-toggle { width: 42px; height: 42px; padding: 0; display: grid; place-items: center; border-radius: 9px; background: rgba(255,255,255,.06); }
  .header nav#nav-menu { margin-top: 8px; padding: 4px 0 8px; gap: 0; }
  .header nav#nav-menu a { display: block; width: 100%; padding: 12px 6px; margin: 0; border-top: 1px solid rgba(255,255,255,.1); }
  .header nav#nav-menu a:last-child { border-bottom: 1px solid rgba(255,255,255,.1); }

  main.container { padding: 22px 14px 45px; }
  main h2 { font-size: 1.45rem; }
  .footer { margin-top: 35px; padding: 20px 14px; font-size: .84rem; }

  /* Accueil */
  .home-hero { min-height: 520px; background-position: 58% center; padding: 45px 0 75px; }
  .home-hero .container { padding: 0 18px; }
  .home-eyebrow { font-size: .68rem; padding: 7px 10px; max-width: 100%; }
  .home-hero h1 { font-size: clamp(2.25rem, 12vw, 3.7rem); max-width: 100%; }
  .home-hero p { font-size: .96rem; line-height: 1.6; max-width: 100%; }
  .home-actions { display: grid; grid-template-columns: 1fr; width: 100%; }
  .home-actions .btn { width: 100%; padding: 13px 16px; }
  .home-stats { margin-top: -24px; padding: 0 14px; }
  .home-stats-grid { border-radius: 16px; }
  .home-stat { padding: 17px 10px; }
  .home-stat strong { font-size: 1.12rem; }
  .home-stat span { font-size: .74rem; line-height: 1.3; }
  .home-section { padding: 48px 14px; }
  .home-section-head h2 { font-size: 1.75rem; }
  .home-section-head p { font-size: .92rem; }
  .home-activity-grid { gap: 14px; }
  .home-activity { min-height: 245px; border-radius: 17px; }
  .home-activity-content { padding: 18px; }
  .home-activity-content h3 { font-size: 1.2rem; }
  .home-feature-grid { gap: 14px; }
  .home-feature-dark, .home-feature-red { border-radius: 18px; padding: 22px 18px; }
  .home-feature-dark h3, .home-feature-red h3 { font-size: 1.45rem; }
  .home-feature-list { gap: 8px; }
  .home-feature-list div { padding: 11px; font-size: .86rem; }
  .home-cta { border-radius: 18px; padding: 24px 18px; }
  .home-cta h2 { font-size: 1.55rem; }
  .home-cta .btn { width: 100%; }

  /* Réservation / choix d'activité */
  .reservation-choice { margin: 22px 0 42px; padding: 0; }
  .reservation-choice-head { margin-bottom: 22px; }
  .reservation-choice-head h1 { font-size: 1.85rem; line-height: 1.15; }
  .reservation-choice-head p { font-size: .92rem; }
  .choice-grid { grid-template-columns: 1fr; gap: 13px; }
  .choice-card { min-height: 205px; border-radius: 17px; padding: 21px 18px; }
  .choice-icon { font-size: 2.5rem; }
  .choice-card h2 { font-size: 1.25rem; margin: 12px 0 5px; }
  .choice-card p { font-size: .86rem; }
  .choice-arrow { margin-top: 12px; font-size: .9rem; }
  .reservation-gate { margin: 22px 0 42px; border-radius: 18px; padding: 28px 18px; }
  .reservation-gate .gate-icon { width: 58px; height: 58px; font-size: 26px; }
  .reservation-gate h2 { font-size: 1.45rem; }
  .gate-actions { display: grid; grid-template-columns: 1fr; }
  .gate-actions a { width: 100%; text-align: center; }
  .filtres { gap: 10px; }
  .filtres > div { width: 100%; }
  .filtres select, .filtres input { min-height: 46px; }
  .date-chips { gap: 7px; margin-right: -2px; padding-bottom: 11px; }
  .date-chip { min-width: 66px; padding: 8px 8px; }
  .date-chip .jour-num { font-size: 1.05rem; }
  .creneaux-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .creneau { min-height: 66px; padding: 8px 4px; border-radius: 9px; }
  .creneau .creneau-horaire { font-size: .84rem; line-height: 1.15; }
  .creneau .creneau-status { font-size: .62rem; }
  .legende { display: grid; grid-template-columns: 1fr; gap: 7px; margin-bottom: 20px; }
  .form-reservation { padding: 15px; border-radius: 14px; }
  .compte-connecte { flex-wrap: wrap; }
  .compte-connecte div:nth-child(2) { min-width: 0; }
  .compte-modifier { width: 100%; margin-left: 57px; }
  .moyens-paiement { display: grid; grid-template-columns: 1fr; gap: 7px; }
  .btn-paiement { width: 100%; margin: 0; }
  .confirmation { overflow-wrap: anywhere; }

  /* Connexion */
  .auth-page { margin: 22px auto 45px; padding: 0 12px; }
  .auth-shell { border-radius: 18px; }
  .auth-visual { min-height: auto; padding: 26px 20px; }
  .auth-visual h1 { font-size: 1.9rem; margin: 16px 0 10px; }
  .auth-visual p { font-size: .9rem; line-height: 1.55; }
  .auth-points { gap: 8px; margin-top: 15px; font-size: .88rem; }
  .auth-form { padding: 23px 18px; }
  .auth-form:before { margin-bottom: 17px; }
  .auth-form h2 { font-size: 1.55rem; }
  .auth-tabs { margin-bottom: 19px; }
  .auth-tab { padding: 10px 6px; font-size: .86rem; }
  .auth-panel input { height: 46px; font-size: .95rem; }
  .auth-btn { height: 48px; }
  .my-grid { grid-template-columns: 1fr; }
  .client-head { border-radius: 15px; padding: 18px; }
  .client-head h2 { font-size: 1.3rem; }
  .logout-btn { width: 100%; }
  .my-card { padding: 15px; }
  .my-card .top { flex-direction: column; align-items: flex-start; }

  /* Mes réservations */
  .lookup-page { width: auto; margin: 22px 12px 45px; }
  .lookup-hero { border-radius: 18px; padding: 27px 16px; }
  .lookup-hero h1 { font-size: 1.65rem; }
  .lookup-hero p { font-size: .9rem; line-height: 1.55; }
  .lookup-form { width: 100%; gap: 8px; margin-top: 20px; }
  .lookup-form input { min-height: 46px; width: 100%; }
  .lookup-form button { width: 100%; }
  .reservation-card { padding: 17px; border-radius: 16px; }
  .resa-head { gap: 10px; }
  .resa-code { font-size: 1.1rem; overflow-wrap: anywhere; }
  .resa-status { min-width: 0; width: fit-content; }
  .resa-grid { grid-template-columns: 1fr; gap: 9px; }
  .resa-item { padding: 12px; }
  .code-box { padding: 15px 10px; }
  .code-box strong { font-size: 1.2rem; overflow-wrap: anywhere; }

  /* Admin */
  .admin-topbar { min-height: 68px; height: auto; padding: 12px 14px; gap: 10px; }
  .admin-topbar h1 { font-size: 1.08rem; }
  .admin-user { gap: 8px; min-width: 0; }
  .admin-user > div:last-child { min-width: 0; }
  .admin-user strong { display: block; max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .85rem; }
  .admin-avatar { width: 34px; height: 34px; }
  .admin-content { padding: 14px; }
  .admin-welcome { border-radius: 17px; padding: 19px; margin-bottom: 15px; }
  .admin-welcome h2 { font-size: 1.25rem; line-height: 1.25; }
  .admin-welcome p { font-size: .84rem; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 9px; margin-bottom: 15px; }
  .stat-card { border-radius: 13px; padding: 14px 11px; }
  .stat-card .valeur { font-size: 1.25rem; overflow-wrap: anywhere; }
  .stat-card .libelle { font-size: .74rem; }
  .admin-section { border-radius: 16px; padding: 15px; margin-bottom: 15px; }
  .section-head { align-items: flex-start; flex-direction: column; margin-bottom: 13px; }
  .section-head h3 { font-size: 1.1rem; }
  .admin-filter { width: 100%; display: grid; grid-template-columns: 1fr auto; align-items: end; }
  .admin-filter > div { min-width: 0; }
  .admin-filter input { width: 100%; min-width: 0; min-height: 43px; }
  .btn-admin { min-height: 43px; }
  .table-wrapper { margin: 0 -2px; border-radius: 11px; }
  table.admin-table { min-width: 900px; }
  table.admin-table th, table.admin-table td { padding: 9px 10px; font-size: .78rem; }
  .admin-sidebar { display: none; }
}

@media (max-width: 430px) {
  .container { padding-left: 12px; padding-right: 12px; }
  .home-hero { min-height: 500px; padding-top: 36px; }
  .home-hero h1 { font-size: 2.35rem; }
  .home-eyebrow { font-size: .61rem; letter-spacing: .05em; }
  .home-stat { padding: 14px 7px; }
  .home-stat strong { font-size: 1rem; }
  .home-stat span { font-size: .68rem; }
  .home-section { padding-left: 12px; padding-right: 12px; }
  .home-feature-list { grid-template-columns: 1fr; }
  .reservation-choice-head h1 { font-size: 1.65rem; }
  .creneaux-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .creneau .creneau-horaire { font-size: .78rem; }
  .auth-page { padding: 0 8px; }
  .auth-form { padding: 20px 15px; }
  .auth-tabs { gap: 4px; }
  .auth-tab { font-size: .8rem; }
  .stats-grid { grid-template-columns: 1fr; }
  .admin-filter { grid-template-columns: 1fr; }
  .admin-filter .btn-admin { width: 100%; }
}


/* ============================================================
   KARSY — COUCHE RESPONSIVE FINALE
   Couvre les petits écrans (320px → 760px) sans casser le desktop.
   ============================================================ */
@media (max-width: 760px) {
  *, *::before, *::after { max-width: 100%; }
  .container { width: 100%; max-width: 100%; }
  .header-inner { width: 100%; }
  .header nav#nav-menu { width: 100%; overflow: hidden; }
  .header nav#nav-menu a { white-space: normal; overflow-wrap: anywhere; }

  main.container { width: 100%; min-width: 0; }
  main.container > * { min-width: 0; }
  .card, .form-reservation, .confirmation { width: 100%; max-width: 100%; }

  .home-activity-grid { grid-template-columns: 1fr; }
  .home-activity { min-width: 0; min-height: 230px; }
  .home-activity-content { padding: 18px; }
  .home-activity-content h3 { overflow-wrap: anywhere; }
  .home-activity-content p { overflow-wrap: anywhere; }
  .home-stats-grid { width: 100%; }
  .home-stat { min-width: 0; }

  .reservation-choice, .reservation-gate { width: 100%; max-width: 100%; }
  .choice-card { min-width: 0; }
  .choice-card p, .choice-card h2 { overflow-wrap: anywhere; }
  .filtres, .filtres > div { width: 100%; min-width: 0; }
  .filtres select, .filtres input, #date-select { width: 100%; max-width: 100%; }
  .date-chips { width: 100%; max-width: 100%; overscroll-behavior-x: contain; }
  .creneaux-grid { width: 100%; min-width: 0; }
  .creneau { min-width: 0; overflow: hidden; }
  .creneau-horaire, .creneau-status { overflow-wrap: anywhere; }

  .compte-connecte { width: 100%; min-width: 0; }
  .compte-connecte div:nth-child(2) { overflow: hidden; }
  .compte-connecte strong, .compte-connecte span { overflow-wrap: anywhere; }
  .compte-modifier { overflow-wrap: anywhere; }
  .moyens-paiement { width: 100%; }
  .btn-paiement { min-height: 48px; touch-action: manipulation; }

  .auth-page { width: 100%; max-width: 100%; }
  .auth-shell, .auth-visual, .auth-form { min-width: 0; width: 100%; }
  .auth-panel input, .auth-btn { max-width: 100%; }
  .client-head { min-width: 0; }
  .my-card { min-width: 0; overflow-wrap: anywhere; }

  .lookup-page { width: auto; max-width: none; }
  .lookup-hero, .reservation-card { min-width: 0; }
  .lookup-form { width: 100%; }
  .lookup-form input, .lookup-form button { min-width: 0; width: 100%; }

  .table-wrapper { max-width: 100%; overflow-x: auto; }
  table.admin-table { width: max-content; min-width: 820px; }
}

@media (max-width: 380px) {
  .logo { font-size: .92rem; }
  .logo img { width: 31px; height: 31px; flex-basis: 31px; }
  .menu-toggle { width: 38px; height: 38px; }
  .home-hero h1 { font-size: 2.1rem; }
  .home-eyebrow { font-size: .56rem; }
  .home-section-head h2 { font-size: 1.5rem; }
  .choice-card { padding: 18px 15px; }
  .creneaux-grid { gap: 6px; }
  .creneau { min-height: 62px; }
  .creneau .creneau-horaire { font-size: .72rem; }
  .creneau .creneau-status { font-size: .55rem; }
  .btn { padding-left: 14px; padding-right: 14px; }
}

.news-grid-home{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.news-home-card{background:#fff;border:1px solid #e8e8e8;border-radius:18px;overflow:hidden;box-shadow:0 8px 25px rgba(0,0,0,.06)}.news-home-card .media{height:180px;background:#111;display:flex;align-items:center;justify-content:center;color:#fff}.news-home-card img,.news-home-card video{width:100%;height:100%;object-fit:cover}.news-home-card .body{padding:15px}.news-home-card .tag{font-size:.72rem;font-weight:900;color:#d50000;text-transform:uppercase}.news-home-card h3{margin:7px 0;font-size:1.05rem}.news-home-card p{margin:0;color:#6b7280;font-size:.9rem;line-height:1.5}.news-home-empty{grid-column:1/-1;text-align:center;color:#777;padding:30px}@media(max-width:800px){.news-grid-home{grid-template-columns:1fr}}

/* QR code de réservation */
.qr-reservation{margin:18px 0;padding:18px;border:1px dashed #e5b700;background:#fff8df;border-radius:14px;text-align:center}
.qr-reservation span{display:block;font-weight:800;color:#111;margin-bottom:10px}
.qr-reservation img{display:block;margin:0 auto;width:200px;max-width:70%;height:auto;background:#fff;padding:8px;border-radius:12px;border:1px solid #eee}
.qr-reservation small{display:block;color:#667085;margin-top:10px}

/* --- Réservation : choix intégral / acompte --- */
.types-reservation{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:14px 0 6px}
.type-resa{position:relative;display:flex;flex-direction:column;gap:4px;padding:14px 16px 14px 44px;border:2px solid #e3e3e3;border-radius:14px;background:#fff;cursor:pointer;transition:.15s}
.type-resa:hover{border-color:#d50000}
.type-resa.actif{border-color:#d50000;background:#fff6f6;box-shadow:0 0 0 3px rgba(213,0,0,.08)}
.type-resa input{position:absolute;left:14px;top:18px;width:18px;height:18px;accent-color:#d50000}
.type-titre{font-weight:800;color:#111}
.type-montant{font-size:1.25rem;font-weight:900;color:#c40000}
.type-aide{font-size:.82rem;color:#666;line-height:1.45}
.titre-moyen{margin:18px 0 8px;font-size:1rem}
.recap-reste{display:block;margin-top:4px;color:#8a4b00;font-weight:700}
.qr-paiement{margin-top:10px;padding:10px 12px;border-radius:10px;font-size:.9rem;font-weight:700;text-align:center}
.qr-paiement.complet{background:#effaf2;color:#15803d}
.qr-paiement.acompte{background:#fff4e0;color:#8a4b00}
@media(max-width:600px){.types-reservation{grid-template-columns:1fr}}
.bandeau-test{margin:10px 0;padding:10px 12px;border-radius:10px;background:#eef4ff;color:#1d4ed8;font-weight:700;font-size:.9rem;border:1px dashed #93b4f5}

/* ============================================================
   MENU DE NAVIGATION (v2) : aéré, avec sous-menu « Réserver »
   et bouton de compte mis en avant
   ============================================================ */
.header nav#nav-menu{display:flex;align-items:center;gap:4px}
.header nav#nav-menu a{margin:0;padding:9px 13px;border-radius:9px;font-weight:600;font-size:.95rem;color:#fff;white-space:nowrap;transition:background .15s}
.header nav#nav-menu a:hover{background:rgba(255,255,255,.1);text-decoration:none}
.header nav#nav-menu a:focus-visible{outline:2px solid #ff5a5a;outline-offset:2px}
.header nav#nav-menu a.nav-actif{color:#ff5a5a;text-decoration:none;background:rgba(224,0,0,.14)}
.header nav#nav-menu a.nav-compte{margin-left:10px;padding:9px 18px;border-radius:999px;background:#e00000;color:#fff}
.header nav#nav-menu a.nav-compte:hover{background:#c40000}
.header nav#nav-menu a.nav-compte.nav-actif{background:#e00000;color:#fff;box-shadow:0 0 0 2px rgba(255,255,255,.35)}
.nav-groupe{position:relative}
.nav-groupe > a::after{content:"";display:inline-block;margin-left:7px;border:4px solid transparent;border-top-color:currentColor;border-bottom:0;vertical-align:middle}
.nav-sous{position:absolute;top:100%;left:0;min-width:210px;padding:8px;background:#1d1d1d;border:1px solid rgba(255,255,255,.1);border-radius:12px;box-shadow:0 14px 30px rgba(0,0,0,.35);display:none;z-index:50}
.nav-groupe:hover .nav-sous,.nav-groupe:focus-within .nav-sous{display:block}
.nav-sous a{display:block;width:100%}

@media (max-width: 900px){
  .header-inner{flex-direction:column;align-items:stretch;gap:0}
  .header-row{width:100%;justify-content:space-between}
  .menu-toggle{display:grid;place-items:center;width:42px;height:42px;padding:0;font-size:1.5rem;border-radius:9px;background:rgba(255,255,255,.08)}
  .header nav#nav-menu{display:none;flex-direction:column;align-items:stretch;gap:0;width:100%;margin-top:10px;padding-bottom:8px}
  .header nav#nav-menu.nav-ouvert{display:flex}
  .header nav#nav-menu a{padding:13px 6px;border-radius:0;border-top:1px solid rgba(255,255,255,.12);white-space:normal}
  .header nav#nav-menu a:hover{background:none}
  .nav-groupe > a::after{display:none}
  .nav-sous{position:static;display:block;min-width:0;padding:0 0 0 16px;background:none;border:0;box-shadow:none}
  .nav-sous a:first-child{display:none}
  .header nav#nav-menu .nav-sous a{border-top:1px solid rgba(255,255,255,.07);color:rgba(255,255,255,.75);font-weight:500}
  .header nav#nav-menu a.nav-compte{margin:12px 0 0;border-top:0;border-radius:12px;text-align:center}
}

/* ===== Mobile : champs à 16 px (évite le zoom automatique d'iOS à la saisie) ===== */
@media (max-width: 600px) {
  input, select, textarea { font-size: 16px; }
  .auth-panel input { font-size: 1rem; }
}

/* Déconnexion visible pour les clients connectés dans la navigation */
.header nav#nav-menu a.nav-deconnexion{background:#333;color:#fff;border:1px solid #e00000}
.header nav#nav-menu a.nav-deconnexion:hover{background:#e00000;color:#fff}
@media(max-width:794px){.header nav#nav-menu a.nav-deconnexion{margin:8px 0 0;border-radius:12px;text-align:center}}


/* KARSY — correction globale de l’en-tête : logo séparé des liens */
.header .container.header-inner {
  width: min(100% - 40px, 1500px);
  max-width: 1500px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(18px, 2vw, 36px);
}
.header .header-row { flex: 0 0 auto; min-width: max-content; }
.header .logo {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  width: max-content;
  max-width: none;
  white-space: nowrap;
  gap: 10px;
}
.header .logo img { flex: 0 0 40px; }
.header nav#nav-menu {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 1 1 auto;
  min-width: 0;
  gap: clamp(10px, 1.25vw, 22px);
}
.header nav#nav-menu > a, .header nav#nav-menu .nav-groupe > a {
  margin-left: 0;
  white-space: nowrap;
}
@media (max-width: 760px) {
  .header .container.header-inner { width: 100%; max-width: 100%; gap: 0; }
  .header .header-row { min-width: 0; width: 100%; }
  .header .logo { min-width: 0; max-width: calc(100% - 54px); width: auto; white-space: nowrap; }
  .header nav#nav-menu { flex: none; align-items: stretch; }
}
@media (min-width: 761px) and (max-width: 1100px) {
  .header .container.header-inner { width: calc(100% - 28px); gap: 14px; }
  .header .logo { font-size: 1.05rem; gap: 7px; }
  .header .logo img { width: 34px; height: 34px; flex-basis: 34px; }
  .header nav#nav-menu { gap: 10px; font-size: .88rem; }
}

/* Écrans moyens : menu plus compact quand les boutons Mon espace + Déconnexion sont présents */
@media (min-width: 795px) and (max-width: 1260px) {
  .header nav#nav-menu a { padding: 8px 9px; font-size: .88rem; }
  .header nav#nav-menu a.nav-compte { padding: 8px 14px; margin-left: 4px; }
  .header .logo { font-size: 1.1rem; }
}


/* ============================================================
   NAVIGATION KARSY — harmonisée, lisible et responsive
   ============================================================ */
.header { position: sticky; top: 0; z-index: 1000; padding: 12px 0; box-shadow: 0 5px 22px rgba(0,0,0,.18); }
.header-inner { width: min(1240px, 100%); gap: 22px; }
.header-row { flex: 0 0 auto; min-width: 0; }
.logo { font-size: 1.12rem; font-weight: 800; letter-spacing: .035em; white-space: nowrap; }
.logo img { width: 42px; height: 42px; border: 1px solid rgba(255,255,255,.18); }
.header nav#nav-menu { display:flex; align-items:center; justify-content:flex-end; flex-wrap:wrap; gap:4px; min-width:0; }
.header nav#nav-menu > a, .header nav#nav-menu .nav-groupe > a { display:inline-flex; align-items:center; justify-content:center; min-height:40px; margin:0; padding:9px 11px; border-radius:9px; font-size:.91rem; font-weight:650; color:#f7f7f7; white-space:nowrap; transition:background .18s ease, color .18s ease, transform .18s ease; }
.header nav#nav-menu > a:hover, .header nav#nav-menu .nav-groupe > a:hover { background:rgba(255,255,255,.10); text-decoration:none; }
.header nav#nav-menu > a.nav-actif, .header nav#nav-menu .nav-groupe > a.nav-actif { background:rgba(224,0,0,.16); color:#ff6969; text-decoration:none; }
.header nav#nav-menu > a.nav-compte { padding:10px 17px; margin-left:5px; background:#e00000; color:#fff; border-radius:999px; box-shadow:0 4px 12px rgba(224,0,0,.2); }
.header nav#nav-menu > a.nav-compte:hover { background:#c40000; transform:translateY(-1px); }
.nav-groupe { position:relative; }
.nav-groupe > a::after { content:""; display:inline-block; margin:3px 0 0 8px; border:4px solid transparent; border-top-color:currentColor; border-bottom:0; }
.nav-sous { top:calc(100% + 8px); min-width:225px; padding:7px; background:#202020; border:1px solid rgba(255,255,255,.12); border-radius:12px; box-shadow:0 16px 34px rgba(0,0,0,.3); }
.nav-sous a { display:block; width:100%; padding:11px 12px !important; margin:0 !important; border-radius:8px; white-space:normal !important; }
.nav-sous a:hover { background:rgba(255,255,255,.09); }
.menu-toggle { border:1px solid rgba(255,255,255,.18); transition:background .18s ease; }
.menu-toggle:hover { background:rgba(255,255,255,.12); }
@media (max-width: 1050px) {
  .header-inner { flex-direction:column; align-items:stretch; gap:8px; }
  .header-row { justify-content:space-between; }
  .menu-toggle { display:grid; place-items:center; width:42px; height:42px; padding:0; border-radius:10px; font-size:1.45rem; }
  .header nav#nav-menu { display:none; flex-direction:column; align-items:stretch; justify-content:flex-start; gap:2px; width:100%; margin-top:5px; padding:8px 0 4px; border-top:1px solid rgba(255,255,255,.12); }
  .header nav#nav-menu.nav-ouvert { display:flex; }
  .header nav#nav-menu > a, .header nav#nav-menu .nav-groupe > a { display:flex; justify-content:flex-start; width:100%; min-height:44px; padding:12px 13px; border-radius:8px; white-space:normal; }
  .header nav#nav-menu > a.nav-compte { justify-content:center; margin:8px 0 0; }
  .nav-groupe > a::after { margin-left:auto; }
  .nav-sous { position:static; display:block; min-width:0; margin:0 0 4px 12px; padding:2px 0 2px 10px; border:0; border-left:2px solid rgba(224,0,0,.7); border-radius:0; background:transparent; box-shadow:none; }
  .nav-sous a { min-height:40px; padding:10px 12px !important; }
}
@media (prefers-reduced-motion: reduce) { .header nav#nav-menu a, .menu-toggle { transition:none; } }

/* ===== Menu « Réserver » : il ne se ferme plus quand la souris traverse l'espace entre le lien et le sous-menu ===== */
@media (min-width: 1051px) {
  .nav-sous { display:block; opacity:0; visibility:hidden; pointer-events:none; transform:translateY(-4px);
    transition:opacity .15s ease .3s, transform .15s ease .3s, visibility 0s linear .45s; }
  /* pont invisible qui comble l'espace entre « Réserver » et le sous-menu : le survol n'est jamais perdu */
  .nav-sous::before { content:""; position:absolute; left:-14px; right:-14px; top:-16px; height:16px; }
  .nav-groupe:hover .nav-sous, .nav-groupe:focus-within .nav-sous { opacity:1; visibility:visible; pointer-events:auto; transform:none; transition-delay:0s; }
}
@media (min-width: 1051px) and (prefers-reduced-motion: reduce) { .nav-sous { transition:none; } }
