/* ====== Base ====== */
:root {
  --bg: #fdeff3; /* rose pastel clair */
  --bg2: #fff7fa; /* encore plus clair pour le grain */
  --fg: #1b1b1b;
  --muted: #6a6a6a;
  --brand: #6ea49a; /* vert sauge */
  --brand-dark: #4c7d73;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  --radius: 16px;
  --maxw: 1180px;
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  padding: 0;
}
body {
  font: 16px/1.65 ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto,
    Inter, Arial, sans-serif;
  color: var(--fg);
  background: radial-gradient(
      1200px 600px at 20% 10%,
      var(--bg2),
      transparent 60%
    ),
    radial-gradient(1200px 800px at 90% 90%, var(--bg2), transparent 60%),
    linear-gradient(180deg, var(--bg), var(--bg));
}
img {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
  text-decoration: none;
}
.container {
  max-width: var(--maxw);
  margin-inline: auto;
  padding: 0 20px;
}
.muted {
  color: var(--muted);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--brand);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 0.7rem 1.1rem;
  font-weight: 700;
  box-shadow: var(--shadow);
  cursor: pointer;
}
.btn:hover {
  background: var(--brand-dark);
}
.btn-ghost {
  background: transparent;
  color: var(--brand);
  border: 2px solid var(--brand);
}
.only-mobile {
  display: none;
}

/* ====== Header ====== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.header-bar {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  font-weight: 800;
  letter-spacing: 0.5px;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 18px;
}
.main-nav a {
  padding: 0.4rem 0.6rem;
  border-radius: 10px;
}
.main-nav a:hover {
  background: rgba(0, 0, 0, 0.05);
}

/* ====== Decorative leaves (bottom-right) ====== */
.leaves {
  position: fixed;
  right: -40px;
  bottom: -60px;
  width: 360px;
  height: auto;
  pointer-events: none;
  opacity: 0.7;
}
@media (max-width: 900px) {
  .leaves {
    width: 260px;
    opacity: 0.55;
  }
}

/* ====== Hero ====== */
.hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
  align-items: center;
  padding: 36px 0 8px;
}
.display {
  font-size: clamp(34px, 4.6vw, 52px);
  margin: 0;
}
.subhead {
  font-size: clamp(16px, 2.2vw, 20px);
  margin: 0.5rem 0 0;
}
.oval-photo {
  justify-self: center;
  inline-size: 280px;
  block-size: 280px;
  border-radius: 50%;
  padding: 14px;
  position: relative;
  background: radial-gradient(ellipse at center, #fff, #f2dfe8);
  border: 2px dotted #3b2d33;
  box-shadow: var(--shadow);
}
.oval-photo img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 50%;
}
.intro-note {
  margin: 8px 0 26px;
  color: #7d6b72;
  font-weight: 600;
}

/* ===== CAROUSEL ===== */
.carousel {
  position: relative;
  overflow: hidden;
  border-radius: 12px; /* pour arrondir un peu comme tes cards */
}

/* Bande qui contient toutes les slides */
.carousel .track {
  display: flex;
  transition: transform 0.4s ease;
  width: 100%;
}

/* Chaque slide prend toute la largeur de son parent */
.carousel .slide {
  min-width: 100%;
  box-sizing: border-box;
}

/* Image dedans */
.carousel img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain; /* tu peux mettre cover si tu préfères */
}

/* Boutons de navigation */
.carousel .nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  border: none;
  color: #fff;
  font-size: 24px;
  padding: 8px;
  cursor: pointer;
  border-radius: 50%;
}

.carousel .prev {
  left: 10px;
}
.carousel .next {
  right: 10px;
}

/* Dots */
.carousel .dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
}

.carousel .dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.6);
  cursor: pointer;
}

.carousel .dots button[aria-current="true"] {
  background: #fff;
}

/* Uniformise toutes les slides (images + vidéos) */
.carousel .slide {
  min-width: 100%;
  aspect-ratio: 16/10; /* même cadre partout */
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f3f3f3;
}

.carousel img,
.carousel video {
  width: 100%;
  height: 100%;
  object-fit: cover; /* ou 'contain' si tu préfères tout voir */
  object-position: center;
  display: block;
}

/* Centrage strict dans les carrousels des space-cards */
.space-card .carousel .slide {
  min-width: 100%;
  aspect-ratio: 16/10; /* ou 4/3 si tes photos sont plus carrées */
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f3f3f3;
}

.space-card .carousel img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover; /* pas de zoom */
  object-position: center; /* centre explicite */
}

/* ====== Blocks ====== */
.block {
  margin: 28px 0 40px;
}
.block-title {
  font-family: "Pacifico", cursive;
  font-size: clamp(22px, 3vw, 30px);
  margin: 0 0 12px;
  text-decoration: underline 0.12em;
  text-underline-offset: 6px;
}
.grid-thera {
  display: grid;
  grid-template-columns: 240px 240px 1fr;
  gap: 28px;
  align-items: start;
}
.photo-card {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.photo-card figcaption {
  padding: 10px 12px;
  font-weight: 600;
}
.block-text {
  background: #fff6f9;
  border: 1px dashed rgba(0, 0, 0, 0.15);
  border-radius: 14px;
  padding: 14px 16px;
  color: #3b2d33;
}

.grid-espaces {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: start;
}
.space-card {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.space-card figcaption {
  padding: 8px 12px;
  font-weight: 600;
}
.space-card.taped {
  position: relative;
}
.space-card.taped::before {
  content: "";
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%) rotate(-3deg);
  width: 86px;
  height: 22px;
  background: rgba(189, 173, 155, 0.8);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12);
  border-radius: 4px;
}

.block-text.right {
  grid-column: 2;
}

/* Carte photo */
.photo-card {
  position: relative; /* permet de positionner le bouton par rapport à la carte */
  overflow: hidden; /* masque ce qui dépasse (coins arrondis, bouton) */
  border-radius: 16px; /* coins arrondis comme sur ta maquette */
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
  background: #fff;
}

/* Image centrée et recadrée proprement */
.photo-card img {
  display: block; /* supprime l’espace inline */
  width: 100%; /* prend toute la largeur de la carte */
  aspect-ratio: 3/4; /* ratio stable (ajuste 4/5, 2/3, etc. si tu préfères) */
  object-fit: cover; /* remplit sans déformation */
  object-position: center; /* centre le sujet dans le cadre */
}

/* Zone du bouton, centrée en bas de la photo */
.photo-card figcaption {
  position: absolute; /* on le place par rapport à .photo-card */
  left: 50%; /* point d’ancrage horizontal */
  bottom: 14px; /* espace depuis le bas de l’image */
  transform: translateX(-50%); /* centre exactement */
  width: auto; /* pas de bande sur toute la largeur */
  text-align: center; /* centre le contenu à l’intérieur */
}

/* Bouton plus petit (style pill) */
.caption-btn {
  display: inline-block; /* permet padding + centrage */
  padding: 0.45rem 0.9rem; /* bouton plus petit */
  font-size: 0.95rem; /* texte un peu réduit */
  font-weight: 600;
  color: #fff; /* texte blanc */
  background: #78a690; /* vert doux (ajuste si besoin) */
  border-radius: 12px; /* arrondi “pill” */
  text-decoration: none; /* pas de soulignement */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.caption-btn:hover {
  transform: translateY(-1px); /* léger lift au survol */
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.2);
  background: #6a9785; /* un peu plus foncé au survol */
}

.caption-btn:focus-visible {
  outline: 2px solid #6a9785; /* focus clavier visible */
  outline-offset: 3px;
}

/* Option: si ta grille doit centrer chaque carte visuellement */
.grid-thera {
  display: grid;
  grid-template-columns: repeat(
    auto-fit,
    minmax(240px, 1fr)
  ); /* colonnes fluides */
  gap: 24px; /* espace entre cartes */
  align-items: start; /* aligne proprement en haut */
}

/* ====== CTA row ====== */
.cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  margin: 10px 0 36px;
}

/* ====== Contact ====== */
.contact-form {
  display: grid;
  gap: 12px;
  max-width: 520px;
}
.contact-form input,
.contact-form textarea {
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  padding: 0.8rem 1rem;
  background: rgba(255, 255, 255, 0.8);
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid rgba(110, 164, 154, 0.35);
}

/* ====== Footer ====== */
.site-footer {
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  padding: 24px 0;
  margin-top: 24px;
  color: #6d6065;
  text-align: center;
}
/* ==== Psychogé page ==== */

/* 1) Ligne “texte | image” */
.para-row {
  display: grid;
  grid-template-columns: 1fr min(32%, 320px); /* texte | image */
  gap: 1.5rem;
  align-items: flex-start;
  max-width: 1000px;
  margin: 1.25rem auto 12px; /* 12px avant le bouton */
  padding: 0 1rem;
}

/* Paragraphe */
.para-row p {
  text-align: center;
  line-height: 1.7;
  margin: 2rem;
  font-size: clamp(16px, 1.6vw, 18px);
  color: #333;
}

/* Logo à droite */
.psycho-logo {
  margin: 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  /* ↓ ajuste cette valeur pour “descendre” le logo au niveau voulu */
  margin-top: 10px; /* essaie 0, 10, 20, 24px… */
}
.psycho-logo img {
  width: 100%;
  max-width: 280px;
  height: auto;
  border-radius: 12px;
  border: 1px solid #ddd;
  object-fit: cover;
}

/* Bouton centré sous le bloc */
.psycho-cta {
  text-align: center;
  margin: 12px 0 24px;
}
#btn-psycho {
  display: inline-block;
}

/* Champs du formulaire d'avis – PsychoG */
.review-form input[type="text"],
.review-form input[type="email"],
.review-form input[type="password"],
.review-form textarea,
.review-form select {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 1px solid rgba(0, 0, 0, 0.18);
  border-radius: 14px; /* ← arrondi plus doux */
  background: #fff;
  outline: none;
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
  font-size: 16px; /* évite le zoom iOS */
}

/* État focus : liseré léger + halo doux (rose/vert selon ton thème) */
.review-form input:focus,
.review-form textarea:focus,
.review-form select:focus {
  border-color: #e4a4c2; /* ajuste la couleur si besoin */
  box-shadow: 0 0 0 3px rgba(228, 164, 194, 0.25);
}

/* Textarea un peu plus “carte postale” */
.review-form textarea {
  min-height: 120px;
  resize: vertical;
  border-radius: 16px; /* encore un poil plus rond si tu veux */
}

/* Placeholders un peu plus discrets */
.review-form ::placeholder {
  color: #8a8a8a;
  opacity: 0.9;
}

/* Alignement des petites étiquettes si tu utilises <label> */
.review-form label {
  font-weight: 600;
  display: grid;
  gap: 6px;
}

/* Si tu veux arrondir aussi les boutons pour matcher */
.review-form .btn,
.review-form .btn-ghost {
  border-radius: 12px;
}

.review-item {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  padding: 12px 14px;
  margin: 10px 0;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
}
.review-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 4px;
}
.review-date {
  color: #666;
  font-size: 0.9rem;
}
.review-rating {
  font-size: 1.1rem;
  letter-spacing: 1px;
  color: #0b7b6b;
}
.review-content {
  margin-top: 6px;
  line-height: 1.6;
}

/* Mobile : on empile */
@media (max-width: 820px) {
  .para-row {
    grid-template-columns: 1fr;
  }
  .psycho-logo {
    justify-content: center;
    margin: 8px auto 0;
  }
  .psycho-logo img {
    max-width: 220px;
  }
}

/* Titre centré */
.titre-section {
  text-align: center;
}

.titre-section {
  text-align: center;
}

#btn-psycho {
  display: inline-block;
  margin: 16px auto 0;
}

/* 4) Mobile : on empile texte puis image */
@media (max-width: 820px) {
  .para-row {
    grid-template-columns: 1fr; /* une seule colonne */
    text-align: center;
  }
  .para-row img {
    max-width: 420px; /* évite les images trop larges */
    margin: 0 auto; /* centre l’image */
  }
}

/* ====== Responsive ====== */
@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .oval-photo {
    inline-size: 240px;
    block-size: 240px;
  }
  .grid-thera {
    grid-template-columns: 1fr 1fr;
    gap: 18px;
  }
  .block-text {
    grid-column: 1 / -1;
  }
  .grid-espaces {
    grid-template-columns: 1fr;
  }
  .block-text.right {
    grid-column: 1;
  }
  .only-mobile {
    display: inline-flex;
  }
}

/* CONTACT — grille 2 colonnes */
.contact-form {
  display: grid;
  grid-template-columns: 16ch minmax(0, 1fr); /* 16ch pour les labels, le reste pour les champs */
  column-gap: 18px;
  row-gap: 14px;
  align-items: center; /* centre verticalement les petites lignes */
  max-width: 720px; /* largeur confortable */
  margin: 20px 0 32px; /* espace autour du formulaire */
}

/* Les labels dans la colonne 1 */
.contact-form label {
  grid-column: 1;
  text-align: right; /* aligne le texte des labels à droite (optionnel mais net) */
  font-weight: 600;
}

/* Les champs dans la colonne 2 */
.contact-form input,
.contact-form textarea {
  grid-column: 2;
  width: 100%;
}

/* Le textarea s’aligne en haut de sa ligne */
.contact-form textarea {
  align-self: start;
  min-height: 140px; /* confort d’écriture */
}

/* Le bouton s’aligne sur la colonne des champs */
.contact-form button {
  grid-column: 2;
  justify-self: start; /* le bouton colle à gauche de la colonne 2 */
}

.contact-form input,
.contact-form textarea {
  outline: 2px solid rgba(149, 206, 206, 0.35); /* contour */
  border-color: rgba(146, 200, 202, 0.8); /* bordure */
  background-color: #e7eeee; /* fond */
}

.contact-teaser {
  margin: 48px auto;
  padding: 24px;
  background: #fdf3f4; /* couleur douce en arrière-plan */
  border-radius: 8px;
  text-align: center;
}

.contact-teaser .btn {
  margin-top: 16px;
  display: inline-block;
}

/* === Réservations : cadre général === */
.reservations {
  margin: 28px 0 40px; /* respiration autour du contenu */
}
.reservations .choix {
  margin-bottom: 14px;
}

/* === Barre de filtres === */
.resa-choix {
  display: flex; /* met les éléments sur une ligne */
  flex-wrap: wrap; /* passe à la ligne si pas la place */
  gap: 12px; /* espace entre chaque contrôle */
  align-items: center;
  margin: 10px 0 16px;
}
.resa-choix select,
.resa-choix button {
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 12px;
  padding: 0.6rem 0.8rem;
  background: rgba(255, 255, 255, 0.9);
  cursor: pointer;
}
#resa-semainedu {
  font-weight: 600;
  padding: 0 0.4rem;
}

/* === Légende couleurs === */
.resa-legende {
  display: flex;
  gap: 16px;
  margin: 12px 0;
  font-size: 0.95rem;
}

.resa-legende span {
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid rgba(0, 0, 0, 0.15);
}

/* Libre = blanc */
.legend-free {
  background: #fff;
  border-color: rgba(0, 0, 0, 0.15);
}

/* En attente = jaune */
.legend-pending {
  background: #fff3cd;
  border-color: #ffe08a;
}

/* Réservé = vert */
.legend-booked {
  background: rgba(110, 164, 154, 0.22);
  border-color: rgba(110, 164, 154, 0.6);
}

/* === Grille du planning === */
.resa-planning {
  display: grid;
  grid-template-columns: 140px repeat(7, minmax(0, 1fr));
  /* 1re colonne = entêtes de lignes (AM/PM), puis 7 colonnes pour Lun..Dim */
  grid-auto-rows: 64px; /* hauteur de base des lignes */
  gap: 8px; /* espace entre les cases */
  align-items: stretch;
}

/* Petite astuce : la première en-tête de jour commence en colonne 2 */
.resa-planning .colhead:first-child {
  grid-column: 2;
}

/* états des slots (public) */
.resa-planning .slot.is-free {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.12);
}
.resa-planning .slot.is-pending {
  background: #fff3cd; /* jaune pâle */
  border: 1px solid #ffe08a;
  font-weight: 600;
  cursor: not-allowed;
  opacity: 0.9;
}
.resa-planning .slot.is-booked {
  background: rgba(110, 164, 154, 0.22); /* vert pâle */
  border: 1px solid rgba(110, 164, 154, 0.6);
  font-weight: 600;
  cursor: not-allowed;
  opacity: 0.95;
}
/* désactivation visuelle */
.resa-planning .slot[disabled] {
  pointer-events: none;
}

/* En-têtes colonne (jours) */
.colhead {
  display: grid;
  place-items: center;
  font-weight: 700;
  background: rgba(46, 128, 112, 0.3);
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 10px;
}

/* En-têtes ligne (AM/PM) */
.rowhead {
  display: grid;
  place-items: center;
  font-weight: 700;
  background: rgba(46, 128, 112, 0.3);
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 10px;
}

/* Les créneaux cliquables */
.slot {
  display: grid;
  place-items: center;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 10px;
  background: #f8fbfb; /* léger vert-gris, cohérent avec ton thème */
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  cursor: pointer;
  font-weight: 600;
}
.slot:hover {
  transform: translateY(-1px);
}
.slot:focus {
  outline: 2px solid rgba(110, 164, 154, 0.35);
}

/* === États de créneau === */
.slot.is-free {
  background: #f0faf8;
  border-color: #cfe7e3;
} /* Libre */
.slot.is-pending {
  background: #fff7e8;
  border-color: #f2d2a3;
} /* En attente */
.slot.is-booked {
  background: #fdecef;
  border-color: #f2b8c2;
} /* Réservé */
.slot.is-blocked {
  background: #f2f4f7;
  border-color: #d1d8e0;
  color: #7a8696;
} /* Bloqué */

.slot:hover {
  transform: translateY(-1px);
}
.slot:focus {
  outline: 2px solid rgba(110, 164, 154, 0.35);
}

/* === Mobile : on autorise un scroll horizontal si besoin === */
@media (max-width: 920px) {
  .res-grid {
    overflow-x: auto;
    padding-bottom: 6px;
  }
  .res-grid .colhead,
  .res-grid .rowhead,
  .res-grid .slot {
    min-width: 110px; /* empêche les cases de devenir illisibles */
  }
}

/* Slot sélectionné */
.slot.is-selected {
  background: rgba(110, 164, 154, 0.25);
  border-color: rgba(110, 164, 154, 0.6);
  box-shadow: 0 0 0 2px rgba(110, 164, 154, 0.25) inset;
}

/* Petit récap en dessous */
.res-summary {
  margin-top: 14px;
  font-weight: 600;
  color: #3b2d33;
}

#res-summary {
  padding: 10px 12px;
  background: rgba(177, 223, 214, 0.15);
  border: 1px solid rgba(110, 164, 154, 0.35);
  border-radius: 8px;
  margin-top: 12px;
}

/* ---- Modal Réservations ---- */
#res-modal {
  padding: 20px 22px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 16px;
  max-width: 520px;
  width: 92vw;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.95),
    rgba(255, 245, 248, 0.95)
  );
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
}

/* Titre/récap en haut du modal */
#res-modal #res-recap {
  font-weight: 700;
  margin: 0 0 10px 0;
  color: #3b2d33;
}

/* Forme des champs dans le modal (cohérent avec Contact) */
#res-modal input,
#res-modal textarea {
  width: 100%;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 12px;
  padding: 0.8rem 1rem;
  background: rgba(255, 255, 255, 0.92);
  margin-top: 6px;
  margin-bottom: 12px;
}
#res-modal input:focus,
#res-modal textarea:focus {
  outline: 2px solid rgba(110, 164, 154, 0.35);
  border-color: transparent;
}

/* Ligne boutons */
#res-modal .actions {
  display: flex;
  gap: 10px;
  margin-top: 6px;
}

/* Boutons “fantôme” plus doux */
.btn.btn-ghost {
  background: transparent;
  border: 1px solid rgba(0, 0, 0, 0.15);
}

/* Fond derrière le modal */
dialog::backdrop {
  background: rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(2px);
}

.msg-list {
  display: grid;
  gap: 12px;
}
.msg {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 12px;
  background: #fff;
}
.msg-head {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
}
.msg-meta {
  font-size: 12px;
  color: #6b7280;
  margin: 6px 0 8px;
}
.btn-danger {
  background: #ef4444;
  color: #fff;
  border: none;
  padding: 6px 10px;
  border-radius: 8px;
  cursor: pointer;
}
.btn-ghost {
  background: #f3f4f6;
  border: none;
  padding: 6px 10px;
  border-radius: 8px;
  cursor: pointer;
}

/* Header fixé en haut */
.site-header {
  position: fixed;
  inset: 0 0 auto 0; /* top:0; left:0; right:0 */
  z-index: 1000;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

/* Hauteur dynamique : on la mesurera et on poussera le contenu */
:root {
  --header-h: 72px;
} /* valeur par défaut si JS indispo */
.has-fixed-header {
  padding-top: var(--header-h);
}

/* Barre interne */
.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: var(--header-h);
}

/* Menu horizontal ; défilable sur mobile si trop long */
.main-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-x: auto; /* permet de “glisser” si ça déborde */
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.main-nav::-webkit-scrollbar {
  display: none;
} /* cache la barre de défilement */

/* Petits écrans : réduis la taille & évite le wrap moche */
@media (max-width: 820px) {
  .main-nav a {
    white-space: nowrap;
    font-size: 0.95rem;
  }
  .brand {
    font-size: 1.05rem;
  }
}

.slot.is-past {
  opacity: 0.45;
  pointer-events: none;
}

.planning .card:first-child {
  position: relative;
  z-index: 2;
}
.planning .card:nth-child(2) {
  position: relative;
  z-index: 1;
}
#btn-next,
#btn-prev,
#btn-today {
  position: relative;
  z-index: 3;
}

/* la card qui contient la grille peut scroller si besoin */
.admin-main .card {
  overflow: auto;
}

/* gabarit de la grille admin (adapté à ta maquette) */
#admin-grid {
  display: grid;
  grid-template-columns: 140px repeat(7, minmax(120px, 1fr));
  grid-auto-rows: 56px; /* hauteur des lignes */
  gap: 8px;
  min-width: 900px; /* pour éviter les colonnes trop étroites */
}

/* sur mobile : autoriser le scroll horizontal */
@media (max-width: 920px) {
  #admin-grid {
    min-width: 750px;
  }
}

.admin-main #admin-grid {
  grid-template-columns: 110px repeat(7, minmax(100px, 1fr)) !important;
  grid-auto-rows: 48px !important;
}

/* === Réservations (publique) : même logique que le dashboard === */

/* Desktop : 7 jours visibles immédiatement, pas de scroll */
@media (min-width: 1201px) {
  /* La grille prend 100% de la carte et répartit les 7 jours */
  #resa-planning {
    width: 100%;
    /* 140px = 1ère colonne (entêtes lignes)
       7 gaps de 8px = 56px  */
    grid-template-columns: 140px repeat(7, calc((100% - 140px - 56px) / 7));
  }
}

/* ≤ 1200px : largeur intrinsèque + scroll horizontal fluide (Dimanche atteignable) */
@media (max-width: 1200px) {
  /* La grille elle-même devient scrollable si elle ne tient pas */
  #resa-planning {
    width: max-content;
    overflow-x: auto; /* ← scroll garanti */
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px; /* petit confort pour le pouce */
  }
}
