/* Mise en page commune à toutes les familles. Les couleurs et polices viennent de famille.css. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--police-texte);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--texte);
  background: var(--fond);
}
h1, h2, h3 { font-family: var(--police-titres); line-height: 1.2; color: var(--titres, var(--texte)); }
h1 {
  font-size: clamp(2.1rem, 8vw, var(--taille-titre-max, 3.25rem)); line-height: 1.08; margin: .2em 0;
  text-transform: var(--casse-titres, none); letter-spacing: var(--espacement-titres, normal);
}
h2 { font-size: clamp(1.5rem, 5vw, 2rem); margin: 0 0 .75em; }
a { color: var(--lien); text-underline-offset: .2em; }
img { max-width: 100%; height: auto; display: block; }
main { max-width: 60rem; margin: 0 auto; }

.bloc { padding: 2.5rem 1.25rem; }
.bloc + .bloc { border-top: 1px solid var(--separateur); }
.entete { text-align: var(--alignement-entete, left); padding-top: 3.5rem; }
.entete .actions { justify-content: var(--alignement-entete, flex-start); }
.type-salon { text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; margin: 0; color: var(--secondaire); }
.accroche { font-size: 1.15rem; color: var(--secondaire); }
/* Adresse et lien vers les horaires, juste sous le titre : l'info pratique se voit tout de suite. */
.infos-pratiques { margin: .75rem 0 0; color: var(--secondaire); }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }

.bouton {
  display: inline-block;
  padding: .8rem 1.3rem;
  border-radius: var(--arrondi-bouton);
  border: 2px solid var(--accent);
  color: var(--accent);
  background: transparent;
  text-decoration: none;
  font-weight: 600;
  min-height: 48px; /* taille confortable pour un doigt */
}
.bouton.principal { background: var(--accent); color: var(--sur-accent); }
/* Un seul gros bouton par écran : « Appeler » reste un lien facile à toucher, mais discret. */
.lien-appel { display: inline-block; padding: .75rem .25rem; font-weight: 600; } /* ~50 px de haut : facile au pouce */
.bouton:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid var(--secondaire); outline-offset: 2px; }

.liste-prestations { list-style: none; padding: 0; margin: 0; }
.prestation { padding: .9rem 0; border-bottom: 1px dashed var(--separateur); }
.prestation-titre { display: flex; justify-content: space-between; gap: 1rem; font-weight: 600; }
.prix { white-space: nowrap; color: var(--accent-texte, var(--accent)); font-variant-numeric: tabular-nums; }
.detail { margin: .2rem 0 0; font-size: .92rem; color: var(--secondaire); }

.table-horaires { border-collapse: collapse; width: 100%; max-width: 28rem; }
.table-horaires th, .table-horaires td { text-align: left; padding: .45rem 0; border-bottom: 1px solid var(--separateur); }
.table-horaires th { font-weight: 600; padding-right: 1rem; }
.liste-fermetures { padding-left: 1.2rem; }

.grille-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .75rem; }
.grille-photos img { width: 100%; aspect-ratio: var(--forme-photo, 1); object-fit: cover; border-radius: var(--arrondi-photo); }

.liste-avis { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.avis-carte { margin: 0; padding: 1.2rem; background: var(--fond-carte); border-radius: var(--arrondi-photo); }
.avis-carte blockquote { margin: .5rem 0; }
/* Étoiles des avis : dessin Nudrel (branches courtes et arrondies), pas le caractère ★ qui change selon le téléphone. */
.etoiles { color: var(--accent-texte, var(--accent)); margin: 0; display: flex; gap: .15rem; }
.etoile { width: 1.1rem; height: 1.1rem; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; opacity: .45; }
.etoile.pleine { fill: currentColor; opacity: 1; }

address { font-style: normal; }
.petit { font-size: .9rem; color: var(--secondaire); }
.pied { text-align: center; padding: 2rem 1rem 6rem; font-size: .9rem; color: var(--secondaire); }

.bandeau-brouillon { background: #b00020; color: #fff; padding: .6rem 1rem; font-size: .9rem; text-align: center; }
.bandeau-statut { background: var(--accent); color: var(--sur-accent); padding: .8rem 1rem; text-align: center; font-weight: 600; }
.texte-legal { max-width: 46rem; margin: 0 auto; }

/* Chatbot */
.chat { position: fixed; right: 1rem; bottom: 1rem; z-index: 10; font-family: var(--police-texte); }
.chat-ouvrir {
  border: 0; border-radius: 999px; padding: .9rem 1.3rem; min-height: 48px;
  background: var(--accent); color: var(--sur-accent); font-weight: 700; font-size: 1rem;
  box-shadow: 0 1px 3px rgba(0,0,0,.18), 0 6px 16px rgba(0,0,0,.18); cursor: pointer;
}
.chat-fenetre {
  position: fixed; right: 1rem; bottom: 1rem; width: min(24rem, calc(100vw - 2rem));
  height: min(34rem, calc(100vh - 2rem)); display: flex; flex-direction: column;
  background: var(--fond); color: var(--texte); border: 1px solid var(--separateur);
  border-radius: 14px; box-shadow: 0 2px 6px rgba(0,0,0,.15), 0 12px 32px rgba(0,0,0,.25); overflow: hidden;
}
.chat-fenetre[hidden] { display: none; }
.chat-entete { display: flex; justify-content: space-between; align-items: center; padding: .7rem 1rem; background: var(--accent); color: var(--sur-accent); }
.chat-fermer { background: none; border: 0; color: inherit; font-size: 1.6rem; cursor: pointer; min-width: 44px; min-height: 44px; }
.chat-messages { flex: 1; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: .6rem; }
.msg { margin: 0; padding: .6rem .8rem; border-radius: 12px; max-width: 88%; white-space: pre-wrap; overflow-wrap: anywhere; }
.msg.bot { background: var(--fond-carte); align-self: flex-start; }
.msg.client { background: var(--accent); color: var(--sur-accent); align-self: flex-end; }
.chat-avertissement { margin: 0; padding: .3rem 1rem; font-size: .78rem; color: var(--secondaire); }
.chat-formulaire { display: flex; gap: .5rem; padding: .6rem; border-top: 1px solid var(--separateur); }
.chat-formulaire input { flex: 1; min-width: 0; padding: .7rem; font-size: 1rem; border: 1px solid var(--separateur); border-radius: 8px; background: var(--fond); color: var(--texte); }
.chat-formulaire button { border: 0; border-radius: 8px; padding: 0 1rem; background: var(--accent); color: var(--sur-accent); font-weight: 600; min-height: 44px; cursor: pointer; }
.chat-humain { display: flex; gap: .5rem; padding: 0 .6rem .6rem; }
.chat-humain .bouton { flex: 1; text-align: center; padding: .55rem; font-size: .9rem; min-height: 44px; }
.visuellement-cache { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

@media (min-width: 48rem) {
  .bloc { padding: 3.5rem 2rem; }
}

/* Menu des langues (touristes) : sans JavaScript, en haut à droite. */
.choix-langue { max-width: 60rem; margin: 0 auto; padding: .5rem 1.25rem 0; text-align: end; font-size: .9rem; }
.choix-langue summary { cursor: pointer; display: inline-block; padding: .5rem .75rem; min-height: 44px; color: var(--secondaire); }
.choix-langue ul { list-style: none; margin: .25rem 0 0; padding: .5rem; display: flex; flex-wrap: wrap; gap: .25rem .75rem; justify-content: flex-end; }
/* La langue choisie est soulignée (pas en gras) : le menu ne bouge pas. */
.choix-langue a { display: inline-block; padding: .35rem .25rem; text-decoration: none; }
.choix-langue a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; }
/* Questions fréquentes : se déplient d'un toucher, sans JavaScript. */
.faq .question { border-bottom: 1px solid var(--separateur); padding: .25rem 0; }
.faq summary { cursor: pointer; font-weight: 600; padding: .75rem 0; min-height: 44px; }
.faq .question p { margin: 0 0 .75rem; color: var(--secondaire); }

/* Le chat montre « … » pendant qu'il répond (pulsation douce, coupée si le téléphone demande moins d'animations). */
.msg.ecrit { letter-spacing: .2em; font-weight: 700; animation: ecrit-pulse 1s ease-in-out infinite; }
@keyframes ecrit-pulse { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .msg.ecrit { animation: none; } }
/* Titres équilibrés sur plusieurs lignes, césure propre dans les textes (ignorés sans risque par les vieux navigateurs). */
h1, h2, h3, .prestation-titre .nom { text-wrap: balance; }
.accroche, .detail, .faq p, .reservation p { hyphens: auto; -webkit-hyphens: auto; }
/* Le bloc « Réserver » dans l'ambiance inverse (fond sombre, ou clair pour le style sombre), sur toute la largeur. */
.bloc.reservation {
  background: var(--fond-inverse); color: var(--texte-inverse); border-top: 0;
  box-shadow: 0 0 0 100vmax var(--fond-inverse); clip-path: inset(0 -100vmax);
}
.bloc.reservation + .bloc { border-top: 0; }
.reservation h2 { color: var(--texte-inverse); }
.reservation .bouton.principal { background: var(--accent-inverse); border-color: var(--accent-inverse); color: var(--sur-accent-inverse); }
.reservation .petit { color: var(--secondaire-inverse); }
.reservation a:not(.bouton) { color: var(--accent-inverse); }
.reservation :focus-visible { outline-color: var(--texte-inverse); }
/* Barre du haut (plan design P1) : nom du salon à gauche, « Réserver » à droite, reste visible en descendant.
   Le petit bouton apparaît seulement quand le gros bouton de l'en-tête n'est plus à l'écran (chat.js) :
   un seul bouton principal à la fois. Sans JavaScript, il est simplement toujours visible. */
.barre-salon {
  position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 1rem;
  padding: .5rem 1.25rem; background: var(--fond); border-bottom: 1px solid var(--separateur);
}
.barre-nom { font-family: var(--police-titres); font-weight: 700; color: var(--titres, var(--texte)); text-decoration: none;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.barre-liens { display: none; gap: 1.25rem; margin-left: auto; }
.barre-liens a { color: var(--secondaire); text-decoration: none; padding: .5rem 0; }
.barre-reserver {
  flex: none; padding: .55rem 1rem; min-height: 44px; display: inline-flex; align-items: center;
  border-radius: var(--arrondi-bouton); background: var(--accent); color: var(--sur-accent); font-weight: 600; text-decoration: none;
  transition: opacity .2s, visibility .2s, max-width .2s, padding .2s;
}
/* Caché = ne prend aucune place (sinon un trou à droite de la barre). */
.barre-reserver { white-space: nowrap; max-width: 14rem; overflow: hidden; }
.barre-salon.attend .barre-reserver { opacity: 0; visibility: hidden; max-width: 0; padding-left: 0; padding-right: 0; }
@media (min-width: 48rem) {
  .barre-salon { padding: .6rem 2rem; }
  .barre-liens { display: flex; }
}
@media (prefers-reduced-motion: reduce) { .barre-reserver { transition: none; } }
/* Grande photo du salon dans l'en-tête (plan design P2) : à droite sur ordinateur, sous le bouton sur téléphone. */
.entete.avec-photo { display: grid; gap: 1.75rem; }
.entete-photo { width: 100%; aspect-ratio: 4 / 5; max-height: 34rem; object-fit: cover; border-radius: var(--arrondi-photo); }
@media (min-width: 48rem) {
  .entete.avec-photo { grid-template-columns: 1.15fr .85fr; align-items: center; }
}
/* Menu des langues rangé dans la barre du haut : code court (FR) sur téléphone, nom complet sur ordinateur. */
.barre-salon .choix-langue { position: relative; margin: 0 0 0 auto; padding: 0; max-width: none; flex: none; }
.barre-salon .choix-langue summary { padding: .5rem .25rem; display: inline-flex; align-items: center; }
.barre-salon .choix-langue ul {
  position: absolute; right: 0; top: calc(100% + .4rem); width: min(19rem, 88vw); z-index: 6;
  background: var(--fond); border: 1px solid var(--separateur); border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,.08), 0 10px 28px rgba(0,0,0,.14); padding: .6rem .75rem;
}
.langue-code { font-weight: 700; letter-spacing: .04em; }
.langue-libelle { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (min-width: 48rem) {
  .barre-salon .choix-langue { margin-left: 0; }
  .langue-libelle { position: static; width: auto; height: auto; overflow: visible; clip: auto; }
  .langue-code { display: none; }
}
