/* ==========================================================================
   components.css — Éléments réutilisables sur plusieurs pages
   Boutons, pastilles, cartes, formulaires, avis, horaires, bloc Halloween
   ========================================================================== */

/* --- Boutons ------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 24px; border-radius: 999px; border: 0; cursor: pointer;
  font-weight: 700; font-size: .95rem; white-space: nowrap;
  transition: transform .15s, background .15s, border-color .15s;
}
@media (hover: hover) { .btn:hover { transform: translateY(-2px); } }
.btn:active { transform: scale(.98); }
.btn--gold   { background: var(--brass); color: var(--ink); }
.btn--gold:hover { background: var(--brass-2); }
.btn--ghost  { background: var(--glass); color: var(--cream); border: 1px solid var(--line-2); }
.btn--ghost:hover { border-color: var(--brass); }
.btn--pumpkin { background: var(--pumpkin); color: #1a0b03; }
.btn--sm { padding: 10px 18px; font-size: .88rem; }
.btn--block { width: 100%; justify-content: center; }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }

/* --- Pastilles ----------------------------------------------------------- */
.chips { display: flex; gap: 10px; flex-wrap: wrap; }
.chip { font-size: .82rem; padding: 7px 14px; border-radius: 99px; background: rgba(244, 234, 216, .1); border: 1px solid rgba(244, 234, 216, .18); }

/* --- Cartes -------------------------------------------------------------- */
.card { background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.card__photo { background: var(--ink-3) center / cover no-repeat; aspect-ratio: 4 / 3; }
.card__body { padding: 24px; }
.card h3 { font-size: 1.5rem; margin: 8px 0 10px; }
.card p { color: var(--cream-2); }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }

/* --- Formulaires --------------------------------------------------------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; background: var(--ink); color: var(--cream);
  border: 1px solid var(--line-2); border-radius: 10px; padding: 12px 14px; font-size: .95rem;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: rgba(171, 156, 131, .7); }
input[type="checkbox"], input[type="radio"] { accent-color: var(--brass); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brass); }
/* Champs sur fond sombre : calendrier et listes déroulantes en thème sombre,
   icône du calendrier en blanc (sinon invisible) */
.field input, .field select { color-scheme: dark; }
.field input[type="date"]::-webkit-calendar-picker-indicator { filter: brightness(0) invert(1); opacity: 1; cursor: pointer; }

.stepper { display: flex; align-items: center; justify-content: space-between; background: var(--ink); border: 1px solid var(--line-2); border-radius: 10px; padding: 6px; }
.stepper button { width: 42px; height: 42px; border-radius: 8px; border: 0; background: var(--ink-3); font-size: 1.2rem; cursor: pointer; }
.stepper output { font-weight: 700; }

.tabs { display: grid; grid-template-columns: 1fr 1fr; background: var(--ink); border-radius: var(--radius-sm); padding: 4px; margin-bottom: 16px; }
.tabs button { background: none; border: 0; color: var(--muted); padding: 10px; border-radius: 9px; font-weight: 600; font-size: .88rem; cursor: pointer; }
.tabs button[aria-selected="true"] { background: var(--ink-3); color: var(--cream); }

.notice { font-size: .84rem; margin: 14px 0; padding: 10px 12px; border-radius: 10px; background: rgba(91, 212, 122, .1); color: #bfe8c9; }
.notice--warn { background: rgba(212, 162, 76, .12); color: var(--brass-2); }

/* Carte de réservation (accueil + contact) */
.booking { background: rgba(31, 26, 21, .94); border: 1px solid rgba(212, 162, 76, .3); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); backdrop-filter: blur(10px); }
.booking h2, .booking h3 { font-size: 1.5rem; margin-bottom: 4px; }
.booking__sub { font-size: .85rem; color: var(--muted); margin-bottom: 18px; }
.confirm { margin-top: 14px; padding: 14px; border-radius: var(--radius-sm); background: rgba(91, 212, 122, .12); color: #bfe8c9; font-size: .92rem; }
.confirm--error { background: rgba(226, 100, 90, .14); color: #f3b7b0; }
.booking__alt { text-align: center; font-size: .84rem; color: var(--muted); margin-top: 10px; }
.booking__alt a { color: var(--cream); font-weight: 700; }

/* --- Avis ---------------------------------------------------------------- */
.review { padding: 26px; border-radius: var(--radius); background: var(--ink-2); border: 1px solid var(--line); }
.review__stars { color: var(--brass); letter-spacing: 3px; margin-bottom: 12px; }
.review blockquote { font-family: var(--font-display); font-size: 1.1rem; line-height: 1.45; margin-bottom: 16px; }
.review cite { font-style: normal; font-size: .85rem; color: var(--muted); }

/* --- Horaires ------------------------------------------------------------ */
.hours-table { width: 100%; border-collapse: collapse; margin: 16px 0 24px; }
.hours-table td { padding: 9px 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.hours-table td:last-child { text-align: right; color: var(--cream-2); }
.hours-table .is-closed-text { color: var(--muted); }
.hours-table tr.hours-table__note td { border-bottom: 0; padding-top: 12px; font-size: .8rem; line-height: 1.45; color: var(--muted); text-align: left; }
.notice a { color: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; }
.hours-table tr.is-today td { color: var(--brass); font-weight: 700; }

.map-embed { border-radius: var(--radius); overflow: hidden; min-height: 380px; background: var(--ink-3); }
.map-embed iframe { width: 100%; height: 100%; min-height: 380px; border: 0; filter: grayscale(.5) invert(.9) hue-rotate(180deg); }

/* --- Bloc Halloween ------------------------------------------------------ */
.halloween {
  position: relative; overflow: hidden; border-radius: 28px;
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center;
  padding: 56px; border: 1px solid rgba(255, 122, 26, .3);
  background: radial-gradient(circle at 75% 30%, #5a2207 0%, #1c0b04 55%, #0b0604 100%);
}
.halloween::before {
  content: ""; position: absolute; width: 340px; height: 340px; border-radius: 50%; right: 8%; top: -80px;
  background: radial-gradient(circle, #ffb35c 0%, var(--pumpkin) 35%, transparent 70%); opacity: .35; filter: blur(10px);
}
.halloween > * { position: relative; }
.halloween .eyebrow { color: var(--pumpkin); }
.halloween h2 { font-size: clamp(2.4rem, 5vw, 4.2rem); margin: 12px 0 16px; }
.halloween h2 em { color: var(--pumpkin); }
.halloween p { color: #f1d6bd; margin-bottom: 24px; max-width: 480px; }

.countdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.countdown div { background: rgba(0, 0, 0, .35); border: 1px solid rgba(255, 122, 26, .25); border-radius: 14px; padding: 18px 6px; text-align: center; }
.countdown b { display: block; font-family: var(--font-display); font-size: 2.4rem; color: #ffd2a6; }
.countdown small { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: #c99a76; }

/* --- Responsive ---------------------------------------------------------- */
@media (max-width: 960px) {
  .grid-2, .halloween { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .halloween { padding: 32px 22px; }
}
@media (max-width: 520px) {
  .grid-4, .form-grid { grid-template-columns: 1fr; }
  .countdown b { font-size: 1.9rem; }
}

/* ==========================================================================
   Téléphone — règles communes à toutes les pages
   ========================================================================== */

/* Empêche un élément de grille de déborder de l'écran */
.grid-2 > *, .grid-3 > *, .grid-4 > *, .m-carousel > * { min-width: 0; }

/* Carrousel horizontal : sur téléphone, les cartes défilent au doigt
   au lieu de s'empiler (salles, avis, festivals, incontournables). */
.carousel-dots { display: none; }

@media (max-width: 720px) {
  /* « div. » : priorité sur les grilles propres à chaque page (ex. .festivals) */
  div.m-carousel {
    display: grid; grid-template-columns: none;
    grid-auto-flow: column; grid-auto-columns: 82%;
    gap: 14px; overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; scroll-padding: 0 var(--gutter);
    margin: 0 calc(-1 * var(--gutter)); padding: 2px var(--gutter) 6px;
    scrollbar-width: none;
  }
  .m-carousel::-webkit-scrollbar { display: none; }
  .m-carousel > * { scroll-snap-align: start; }

  .carousel-dots { display: flex; justify-content: center; gap: 6px; margin-top: 14px; }
  .carousel-dots span { width: 6px; height: 6px; border-radius: 99px; background: var(--line-2); transition: width .2s, background .2s; }
  .carousel-dots span.is-active { width: 18px; background: var(--brass); }

  /* Titres et en-têtes de section plus compacts */
  .section-head { margin-bottom: 28px; gap: 14px; }
  .section-head h2 { font-size: clamp(1.75rem, 7.4vw, 2.2rem); }

  /* Boutons : pleine largeur, faciles à toucher */
  .btn-row { flex-direction: column; }
  .btn-row .btn { width: 100%; justify-content: center; }
  .btn { min-height: 48px; }

  /* Champs à 16 px minimum : évite le zoom automatique sur iPhone */
  .field input, .field select, .field textarea { font-size: 16px; min-height: 48px; }
  .booking { padding: 20px; }

  .card__body { padding: 20px; }
  .card h3 { font-size: 1.3rem; }
  .review { padding: 22px; }
  .review blockquote { font-size: 1.02rem; }
  .halloween h2 { font-size: 2.4rem; }
  .countdown div { padding: 14px 4px; }
}

/* ==========================================================================
   Note et avis Google
   ========================================================================== */
.stars { color: var(--brass); letter-spacing: 2px; }
.stars__off { color: rgba(244, 234, 216, .2); }
.review__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.review__g {
  width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  background: #fff; color: #4285f4; font: 700 .9rem/1 var(--font-body);
}

.rating { display: flex; align-items: center; gap: 22px; }
.rating__score { font-family: var(--font-display); font-size: 4.2rem; font-weight: 900; line-height: 1; color: var(--brass); }
.rating__score small { font-size: 1.4rem; color: var(--muted); font-weight: 500; }
.rating__meta .stars { font-size: 1.3rem; }
.rating__meta p { margin-top: 4px; font-size: .92rem; }

.rating-bars { display: grid; gap: 8px; }
.rating-bar { display: grid; grid-template-columns: 38px 1fr 44px; gap: 12px; align-items: center; font-size: .85rem; color: var(--cream-2); }
.rating-bar span:last-child { text-align: right; color: var(--muted); }
.rating-bar__track { height: 8px; border-radius: 99px; background: var(--glass); overflow: hidden; }
.rating-bar__fill { height: 100%; border-radius: 99px; background: var(--brass); }

@media (max-width: 720px) {
  .rating__score { font-size: 3.4rem; }
}

/* ==========================================================================
   Utilitaires (remplacent les styles en ligne : compatibles avec une
   politique de sécurité CSP stricte, sans 'unsafe-inline')
   ========================================================================== */
.u-mt-10 { margin-top: 10px; }
.u-mt-26 { margin-top: 26px; }
.u-mt-28 { margin-top: 28px; }
.u-mt-36 { margin-top: 36px; }
.u-mt-40 { margin-top: 40px; }
.u-mb-0 { margin-bottom: 0; }
.u-center { justify-content: center; }
.u-self-start { align-self: flex-start; }
.u-h-sm { font-size: 1.4rem; }
.u-note { font-size: .9rem; margin: 4px 0 18px; }
.u-link-brass { color: var(--brass); font-weight: 600; }
.u-eyebrow-light { color: #bfe0b0; }

/* Champ piège anti-robots (invisible pour les humains) */
.u-honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* --- Version 2 : compte, réservation, légal ------------------------------- */
.btn--danger { background: #b8453b; color: #fff; }
.btn--danger:hover { background: #cf564b; }
.btn:disabled, .btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; }
.link-btn { background: none; border: 0; padding: 0; color: var(--brass); font: inherit; font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.field__hint { color: var(--muted); font-size: .8rem; }
.field__label { font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.field input[type="number"] { appearance: textfield; }

.account-link { position: relative; display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; color: var(--cream-2); border: 1px solid var(--line-2); }
.account-link:hover, .account-link[aria-current="page"] { color: var(--brass); border-color: var(--brass); }
.account-link__dot { position: absolute; top: 7px; right: 7px; width: 8px; height: 8px; border-radius: 50%; background: #5bd47a; box-shadow: 0 0 0 2px var(--ink); }
.site-footer__legal a { color: var(--muted); }
.site-footer__legal a:hover { color: var(--brass); }
.page-hero--short { padding: 90px 0 54px; }
@media (max-width: 720px) { .page-hero--short { padding: 48px 0 34px; } }
.contact-card--book { border-color: rgba(212, 162, 76, .4); background: linear-gradient(140deg, rgba(47, 70, 31, .6), var(--ink-2) 70%); }

/* ==========================================================================
   Écrans tactiles (téléphone, tablette) : cibles de 44 px minimum
   ========================================================================== */
@media (pointer: coarse) {
  .btn--sm { min-height: 44px; }
  .link-btn { padding: 10px 0; }
  .tabs button { min-height: 44px; }
  .chip { min-height: 32px; display: inline-flex; align-items: center; }
  input[type="checkbox"], input[type="radio"] { width: 20px; height: 20px; flex-shrink: 0; }
  .acc-delete summary, .acc-adminbox summary, .acc-card summary { padding: 10px 0; }
  .menu-item__more { padding: 10px 0; }
}

/* Pastilles et boutons avec icône */
.chip { display: inline-flex; align-items: center; gap: 7px; }
.chip .icon { color: var(--brass); }
.btn .icon { width: 18px; height: 18px; }
/* Pastille ronde d'icône (promesses, règles de la maison…) */
.icon-dot { width: 44px; height: 44px; border-radius: 50%; display: inline-grid; place-items: center; flex-shrink: 0;
  color: var(--brass); background: rgba(212, 162, 76, .1); border: 1px solid rgba(212, 162, 76, .3); }
.btn--lg { padding: 16px 28px; font-size: 1rem; }


/* Carte large (accueil : la terrasse) — photo à gauche, texte à droite */
.card--wide { display: grid; grid-template-columns: 1.3fr 1fr; align-items: stretch; }
.card--wide .card__photo { aspect-ratio: auto; min-height: 340px; height: 100%; }
.card--wide .card__body { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 4px; padding: 40px; }
.card--wide h3 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
.card--wide .btn { margin-top: 18px; }
@media (max-width: 720px) {
  .card--wide { grid-template-columns: 1fr; }
  .card--wide .card__photo { min-height: 0; aspect-ratio: 16 / 10; }
  .card--wide .card__body { padding: 22px 20px 24px; }
  .card--wide .btn { width: 100%; justify-content: center; }
}
.hours-table__special { display: block; font-size: .74rem; font-weight: 600; color: var(--brass-2); }
.bk-offline__title { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; margin-bottom: 8px; color: var(--cream); }
