/* ==========================================================================
   INFOS PRATIQUES — déroulement, ce qui est compris, FAQ, avis, barre mobile
   ========================================================================== */

/* ---- Déroulement en quatre étapes --------------------------------------
   Un rail numéroté, pas une grille de cartes : les chiffres portent la
   hiérarchie et le filet relie les étapes entre elles.
   ---------------------------------------------------------------------- */

.process {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: clamp(1.6rem, 1rem + 2.4vw, 3rem);
  list-style: none;
}

.step__head {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 0.9rem;
}

.step__num {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 1.6rem + 2.4vw, 3.6rem);
  font-weight: 800;
  line-height: 0.85;
  letter-spacing: -0.02em;
  color: var(--orange);
}
/* Chiffres évidés là où c'est supporté ; pleins ailleurs, jamais invisibles. */
@supports (-webkit-text-stroke: 2px currentColor) {
  .step__num {
    color: transparent;
    -webkit-text-stroke: 2px var(--orange);
  }
}

.step__rule {
  flex: 1 1 auto;
  height: 1px;
  background: linear-gradient(90deg, rgba(11, 11, 11, 0.18), rgba(11, 11, 11, 0));
}
.process .step:last-child .step__rule { display: none; }

.step__title {
  font-size: clamp(1.1rem, 1rem + 0.5vw, 1.4rem);
  margin-bottom: 0.45rem;
}
.step__text {
  color: var(--ink-muted);
  font-size: 0.95rem;
  max-width: 34ch;
}

/* ---- Compris / à prévoir ------------------------------------------------ */

.checklists {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: clamp(1.4rem, 1rem + 2vw, 3rem);
  margin-top: clamp(2.6rem, 2rem + 2.4vw, 4.5rem);
  padding: clamp(1.5rem, 1.2rem + 1.6vw, 2.6rem);
  background: var(--grey-100);
  border-radius: var(--radius-lg);
}

.checklist__title {
  margin-bottom: 1rem;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}
.checklist__items { display: grid; gap: 0.65rem; }
.checklist__items li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.95rem;
  line-height: 1.5;
}
.checklist__items li::before {
  content: '';
  flex: 0 0 auto;
  margin-top: 0.4em;
}

/* Compris : coche orange pleine */
.checklist--in .checklist__items li::before {
  width: 18px;
  height: 18px;
  margin-top: 0.2em;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ffffff'%3E%3Cpath d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center / 11px no-repeat,
    linear-gradient(140deg, var(--orange), var(--red));
}

/* À prévoir : losange creux, volontairement plus discret */
.checklist--out .checklist__items li::before {
  width: 9px;
  height: 9px;
  border: 2px solid var(--grey-300);
  border-radius: 2px;
  transform: rotate(45deg);
}

@media (min-width: 720px) {
  .checklists > .checklist + .checklist {
    padding-left: clamp(1.4rem, 1rem + 2vw, 3rem);
    border-left: 1px solid var(--line);
  }
}

/* ---- FAQ ----------------------------------------------------------------
   Colonne de gauche fixe pendant la lecture, questions à droite. Pas de
   cartes : des filets, comme un sommaire.
   ---------------------------------------------------------------------- */

.faq {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.5fr);
  gap: clamp(1.6rem, 1rem + 3vw, 4.5rem);
  align-items: start;
}

.faq__aside { position: sticky; top: calc(var(--header-h) + 2rem); }
.faq__ask {
  margin-top: 1.6rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
}
.faq__ask p { margin-bottom: 0.9rem; color: var(--ink-muted); font-size: 0.95rem; }

.faq-item { border-top: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 1px solid var(--line); }

.faq-item__q {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.15rem 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1rem + 0.4vw, 1.28rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.015em;
  transition: color 0.2s var(--ease);
}
.faq-item__q::-webkit-details-marker { display: none; }
.faq-item__q::marker { content: ''; }
.faq-item__q:hover { color: var(--orange); }
.faq-item__q:focus-visible { outline-offset: -2px; }

/* Le « + » pivote en « × » à l'ouverture. */
.faq-item__sign {
  position: relative;
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin-top: 0.2rem;
  transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1);
}
.faq-item__sign::before,
.faq-item__sign::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  border-radius: 1px;
  background: var(--orange);
}
.faq-item__sign::before { width: 15px; height: 2px; margin: -1px 0 0 -7.5px; }
.faq-item__sign::after { width: 2px; height: 15px; margin: -7.5px 0 0 -1px; }
.faq-item[open] .faq-item__sign { transform: rotate(135deg); }

/* Ouverture et fermeture animées via grid-template-rows (jamais la hauteur).
   `@starting-style` anime l'ouverture sans JavaScript ; le JS ne sert qu'à
   retarder la fermeture, que le navigateur ne sait pas animer seul. */
.faq-item__body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.38s cubic-bezier(0.25, 1, 0.5, 1);
}
.faq-item[open] .faq-item__body { grid-template-rows: 1fr; }
@starting-style {
  .faq-item[open] .faq-item__body { grid-template-rows: 0fr; }
}
.faq-item.is-closing .faq-item__body { grid-template-rows: 0fr; }
.faq-item__inner { overflow: hidden; }
.faq-item__inner p {
  max-width: 62ch;
  padding-bottom: 1.35rem;
  color: var(--ink-muted);
  font-size: 0.97rem;
}

/* ---- Avis clients ------------------------------------------------------- */

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--gap);
}
.review {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin: 0;
  padding: clamp(1.3rem, 1rem + 1vw, 2rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
}
.review--featured {
  grid-column: 1 / -1;
  background: var(--black);
  color: var(--white);
  border-color: transparent;
}
.stars { display: inline-flex; gap: 2px; color: var(--orange); }
.review__text {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.6;
  max-width: 62ch;
}
.review--featured .review__text { font-size: clamp(1.15rem, 1rem + 0.9vw, 1.65rem); line-height: 1.45; }
.review__meta {
  margin-top: auto;
  font-size: 0.85rem;
  color: var(--ink-muted);
  letter-spacing: 0.02em;
}
.review--featured .review__meta { color: rgba(255, 255, 255, 0.6); }

.reviews-source {
  display: inline-block;
  margin-top: 1.4rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.reviews-source:hover { color: var(--orange); }

/* ---- Barre d'action mobile ---------------------------------------------
   Le pouce reste sur « Réserver » quelle que soit la position dans la page.
   Absente sur ordinateur : le bouton du header y suffit.
   ---------------------------------------------------------------------- */

.action-bar { display: none; }

@media (max-width: 900px) {
  .action-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 95;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.7rem clamp(0.9rem, 4vw, 1.4rem) calc(0.7rem + env(safe-area-inset-bottom, 0px));
    background: rgba(11, 11, 11, 0.94);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    transform: translateY(115%);
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  }
  .action-bar.is-visible { transform: none; }
  body.is-nav-open .action-bar,
  body.is-locked .action-bar { transform: translateY(115%); }

  .action-bar__book { flex: 1 1 auto; }
  .action-bar__wa {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 50%;
    color: var(--white);
    transition: background-color 0.25s var(--ease), color 0.25s var(--ease);
  }
  .action-bar__wa:hover { background: var(--white); color: var(--black); }

  /* Le footer ne doit jamais passer sous la barre. */
  body { padding-bottom: 74px; }
}

@media (max-width: 900px) {
  .faq { grid-template-columns: 1fr; }
  .faq__aside { position: static; }
}

@media (prefers-reduced-motion: reduce) {
  .faq-item__body { transition: none; }
  .action-bar { transition: none; }
}

/* ==========================================================================
   PAGE INFORMATIONS LÉGALES
   ========================================================================== */

.legal-page { background: var(--white); }

.legal-bar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--black);
  color: var(--white);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.legal-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}
.legal-bar .btn--ghost { --btn-fg: var(--white); --btn-border: rgba(255, 255, 255, 0.3); }
.legal-bar .btn--ghost:hover { --btn-bg: var(--white); --btn-fg: var(--black); }

.legal { padding-block: clamp(2.5rem, 2rem + 3vw, 5rem); }
.legal__head { max-width: 60ch; margin-bottom: clamp(2rem, 1.5rem + 2vw, 3.5rem); }
.legal__head .section-lead { font-size: var(--step-0); }

.legal__toc {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.6rem;
}
.legal__toc a {
  padding: 0.5rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.legal__toc a:hover { background: var(--black); border-color: var(--black); color: var(--white); }

.legal__section {
  max-width: 72ch;
  padding-top: clamp(2rem, 1.5rem + 2vw, 3.4rem);
  margin-top: clamp(2rem, 1.5rem + 2vw, 3.4rem);
  border-top: 1px solid var(--line);
  scroll-margin-top: calc(var(--header-h) + 24px);
}
.legal__section h2 { font-size: var(--step-2); margin-bottom: 1.2rem; }
.legal__section h3 {
  margin: 2rem 0 0.6rem;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  color: var(--grey-700);
}
.legal__section p,
.legal__section li { color: var(--ink-muted); font-size: 0.97rem; }
.legal__section p + p { margin-top: 0.8rem; }
.legal__section ul { display: grid; gap: 0.6rem; margin-top: 0.6rem; padding-left: 1.2rem; list-style: disc; }
.legal__section a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
.legal__section a:hover { color: var(--orange); }

.legal__list { display: grid; gap: 0.5rem; margin-top: 0.6rem; }
.legal__list > div {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px dashed var(--line);
}
.legal__list dt { flex: 0 0 14rem; font-weight: 600; }
.legal__list dd { margin: 0; color: var(--ink-muted); }

.legal__notice {
  padding: 1rem 1.2rem;
  margin: 1.2rem 0 1.6rem;
  border: 1px solid var(--orange);
  border-radius: var(--radius-sm);
  background: var(--orange-soft);
  color: var(--grey-900);
  font-size: 0.92rem;
}
.legal__notice strong { display: block; margin-bottom: 0.2rem; }

.legal__back { margin-top: clamp(2.5rem, 2rem + 2vw, 4rem); }

.legal-foot {
  padding-block: 1.6rem;
  background: var(--black);
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.85rem;
}
.legal-foot__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.legal-foot a { color: rgba(255, 255, 255, 0.8); }
.legal-foot a:hover { color: var(--orange); }

@media (max-width: 640px) {
  .legal__list dt { flex-basis: 100%; }
}

/* ==========================================================================
   RÉSERVATION — bloc d'invitation et fenêtre flottante
   ========================================================================== */

.booking-invite {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(1.2rem, 1rem + 2vw, 3.5rem);
  align-items: center;
  padding: clamp(1.4rem, 1.2rem + 1.4vw, 2.6rem);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.booking-invite__points { display: grid; gap: 0.6rem; }
.booking-invite__points li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.98rem;
}
.booking-invite__points li::before {
  content: '';
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-top: 0.15em;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ffffff'%3E%3Cpath d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center / 11px no-repeat,
    linear-gradient(140deg, var(--orange), var(--red));
}
.booking-invite__cta { display: grid; justify-items: stretch; gap: 0.7rem; }
.booking-invite__note {
  max-width: 24ch;
  font-size: 0.84rem;
  color: var(--ink-muted);
  text-align: center;
}

/* ---- La fenêtre elle-même ----------------------------------------------
   <dialog> natif : focus piégé, fermeture par Échap, fond inerte, le tout
   sans une ligne de JavaScript en plus.
   ---------------------------------------------------------------------- */

.sheet {
  width: min(980px, calc(100vw - 2rem));
  max-height: min(88vh, 920px);
  padding: 0;
  border: 0;
  border-radius: var(--radius-lg);
  background: var(--bg-alt);
  color: var(--ink);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.sheet[open] { display: flex; flex-direction: column; }
.sheet::backdrop {
  background: rgba(5, 5, 5, 0.72);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.sheet__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: clamp(1rem, 0.9rem + 0.8vw, 1.6rem) clamp(1.1rem, 1rem + 1vw, 2rem);
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.sheet__eyebrow {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--orange);
}
.sheet__title { margin-top: 0.25rem; font-size: clamp(1.35rem, 1.2rem + 1vw, 2rem); }

.sheet .modal__close { color: var(--ink); border-color: var(--line); }
.sheet .modal__close:hover { background: var(--red); border-color: var(--red); color: var(--white); }

.sheet__body {
  padding: clamp(1.1rem, 1rem + 1vw, 2rem);
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
/* Le récapitulatif colle en haut de la fenêtre, pas du document. */
.sheet .booking__summary { top: 0; }

/* « Gérer ma réservation » : deux champs et une fiche, pas un parcours en cinq
   étapes. La même fenêtre, ramenée à la largeur de son contenu, sinon les deux
   champs se perdent dans 980 px de vide. */
.sheet--narrow { width: min(620px, calc(100vw - 2rem)); }
.sheet__lead {
  margin: 0 0 1.3rem;
  max-width: 46ch;
  color: var(--ink-muted);
}

@media (max-width: 640px) {
  /* Sur mobile la fenêtre devient une feuille ancrée en bas, arrondie en haut :
     le pouce reste près des champs et du bouton d'envoi. */
  .sheet {
    width: 100vw;
    max-width: 100vw;
    max-height: 92vh;
    max-height: 92dvh;
    margin: auto auto 0;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  }
  .booking-invite { grid-template-columns: 1fr; }
  .booking-invite__note { max-width: none; text-align: left; }
}

@media (max-width: 760px) {
  .booking-invite { grid-template-columns: 1fr; }
}

/* Repli quand l'application ne démarre pas.
   L'ancien formulaire était écrit en dur dans le HTML : on pouvait l'afficher
   tel quel dans la page, et une règle le faisait. Le parcours actuel est
   entièrement construit par JavaScript (calendrier, stocks, montants) et
   interroge le serveur : l'afficher en statique ne montrerait qu'une coquille
   vide surmontée d'un bouton mort. La règle a donc été retirée et la fenêtre
   reste fermée.

   Il reste alors la section #reservation avec ses arguments. Les coordonnées
   de contact, elles, sont injectées par `site-info.js` : sans JavaScript, le
   site n'affiche aucun lien de contact. Limite connue et antérieure à la
   réservation en ligne — voir README §16. */

/* ---- Informations légales : ce qui reste à compléter -------------------- */

/* Points a renseigner pendant relecture. Affichage public pilote par
   le modificateur legal-page--hide-drafts selon demande de l'exploitant. */
.legal__todo {
  padding: 0.7rem 0.9rem;
  background: var(--orange-soft);
  border-radius: 8px;
  font-size: 0.92rem;
}
.legal__hint { font-size: 0.9rem; color: var(--ink-muted); }

/* Notes de preparation conservees, masquees a la demande de l'exploitant.
   Retirer le modificateur du body pour les afficher pendant la relecture. */
.legal-page--hide-drafts .legal__notice,
.legal-page--hide-drafts .legal__todo { display: none; }

#preferences-dialog button[type="submit"] {
  margin-block-start: 1rem;
}
