/* ===== Vitrine « Le Salon » (accueil) =====
 * Le hall d'un grand hôtel : un registre montre les neuf catégories en trois univers, un socle de marbre
 * sous un faisceau de lumière présente la catégorie choisie, et la fiche façon carte de restaurant
 * détaille trois produits réels avec leurs prix. */

/* Teintes animables : la lumière ambiante glisse d'une catégorie à l'autre au lieu de sauter */
@property --teinte { syntax: '<color>'; inherits: true; initial-value: #3b2214; }
@property --reflet { syntax: '<color>'; inherits: true; initial-value: #c89b6d; }

[hidden] { display: none !important; }

.salon {
  position: relative; isolation: isolate; overflow: hidden;
  padding: clamp(56px, 8vw, 112px) 0 clamp(56px, 7vw, 96px);
  transition: --teinte 1.1s var(--courbe), --reflet 1.1s var(--courbe);
}
/* Fond : marbre de la carte VIP à peine perceptible, et halo teinté derrière le socle */
.salon::before {
  content: ''; position: absolute; inset: 0; z-index: -2;
  background: url("../images/marbre-vip-QxB5gSA.webp") 60% 40% / cover; opacity: .12; filter: saturate(.7);
}
.salon::after {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(60% 55% at 50% 62%, color-mix(in srgb, var(--teinte) 85%, transparent), transparent 72%);
}

.salon-entete { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.salon-entete h2 { font-size: clamp(32px, 4.6vw, 60px); line-height: 1.02; margin-top: 12px; letter-spacing: -.01em; }
.salon-entete h2 em { font: italic 500 1.08em/1 var(--police-accent); color: var(--or-clair); }
.salon-entete p { color: var(--texte-doux); max-width: 34ch; font-size: 14px; }

.salon-grille {
  display: grid; grid-template-columns: minmax(220px, .8fr) minmax(320px, 1.15fr) minmax(280px, 1fr);
  gap: clamp(20px, 3vw, 48px); align-items: center; margin-top: clamp(28px, 4vw, 56px);
}

/* ---------- Registre (index toujours visible sur ordinateur) ---------- */
.registre { position: relative; display: grid; gap: 22px; }
.registre h3 {
  font: 500 10.5px/1 var(--police-texte); letter-spacing: .26em; text-transform: uppercase; color: var(--or);
  display: flex; align-items: center; gap: 10px;
}
.registre h3::after { content: ''; flex: 1; height: 1px; background: var(--ligne); }
.registre ul { list-style: none; margin: 8px 0 0; padding: 0; }
.entree {
  position: relative; width: 100%; display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  min-height: 40px; padding: 8px 0 8px 18px; border: 0; background: none; cursor: pointer; text-align: left;
  color: var(--or-pale); font: 400 15px/1.3 var(--police-texte);
  transition: color .3s, transform .45s var(--courbe);
}
.entree small { color: var(--texte-doux); font-size: 12px; white-space: nowrap; transition: color .3s; }
.entree:hover { color: var(--creme); transform: translateX(4px); }
.entree[aria-current="true"] { color: var(--creme); font-weight: 500; }
.entree[aria-current="true"] small { color: var(--or); }
.entree:focus-visible { outline: 1px solid var(--or-clair); outline-offset: 2px; }
/* Filet d'or qui glisse jusqu'à l'entrée active */
.repere {
  position: absolute; left: 0; top: 0; width: 2px; height: 24px; border-radius: var(--rayon-petit);
  background: var(--degrade-metal); box-shadow: 0 0 12px rgba(240, 210, 137, .55);
  transition: transform .55s cubic-bezier(.3, 1.25, .5, 1); pointer-events: none;
}

/* ---------- Scène : faisceau, socle de marbre, visuel ---------- */
.scene-salon { position: relative; height: clamp(420px, 44vw, 560px); display: flex; justify-content: center; }
.faisceau {
  position: absolute; top: -12%; left: 50%; width: 120%; height: 100%; translate: -50% 0; pointer-events: none;
  background: conic-gradient(from 180deg at 50% 0%, transparent 158deg, rgba(240, 210, 137, .07) 166deg,
    rgba(255, 236, 196, .2) 180deg, rgba(240, 210, 137, .07) 194deg, transparent 202deg);
  -webkit-mask: linear-gradient(#000 30%, transparent 92%); mask: linear-gradient(#000 30%, transparent 92%);
  mix-blend-mode: screen;
}
.socle { position: absolute; bottom: 0; left: 50%; width: min(78%, 340px); translate: -50% 0; aspect-ratio: 340 / 120; }
.socle .face {
  position: absolute; inset: 22% 0 0; border-radius: 0 0 50% 50% / 0 0 38% 38%;
  background: linear-gradient(90deg, #050403, #2a2116 38%, #3a2e1c 50%, #1d170e 68%, #040302),
    url("../images/marbre-vip-QxB5gSA.webp") center / cover;
  background-blend-mode: overlay;
}
.socle .dessus {
  position: absolute; inset: 0 0 56%; border-radius: 50%;
  background: radial-gradient(ellipse at 50% 40%, #2a2216, #0d0a07 70%), url("../images/marbre-vip-QxB5gSA.webp") center / cover;
  background-blend-mode: screen;
  box-shadow: inset 0 1px 0 rgba(240, 210, 137, .55), 0 0 0 1px rgba(191, 145, 73, .35);
}
/* Flaque de lumière sur le dessus du socle, teintée par la catégorie */
.socle .dessus::after {
  content: ''; position: absolute; inset: 8% 14%; border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--reflet) 45%, transparent), transparent);
  opacity: .55;
}
/* Filet d'or au pied du socle */
.socle .face::after { content: ''; position: absolute; inset: auto 0 0; height: 100%; border-radius: inherit; box-shadow: inset 0 -1px 0 rgba(191, 145, 73, .5); }
/* Liseré d'or : il s'allume à chaque changement, comme une lampe qu'on règle */
.socle .lisere {
  position: absolute; inset: 0 0 56%; border-radius: 50%; pointer-events: none;
  box-shadow: 0 -1px 0 var(--or-clair), 0 -6px 24px -6px var(--reflet);
  opacity: .5;
}
.scene-salon.allume .socle .lisere { animation: allume 1.1s var(--courbe); }
@keyframes allume { 30% { opacity: 1; } }

.plateau { position: absolute; inset: 0 0 16%; display: flex; justify-content: center; align-items: flex-end; }
.piece {
  position: absolute; bottom: 0; left: 50%; translate: -50% 0;
  height: 78%; display: flex; align-items: flex-end; justify-content: center;
  transform: translate3d(var(--px, 0px), var(--py, 0px), 0); transition: transform .9s var(--courbe);
}
.piece img { height: 100%; width: auto; max-width: none; filter: drop-shadow(0 30px 26px rgba(0, 0, 0, .7)); }
.piece.large img { height: auto; width: min(118%, 420px); } /* plats plus larges que hauts : poutine */
.piece .medaillon { width: clamp(170px, 17vw, 240px); margin-bottom: 9%; }
/* Entrée et sortie : l'ancien descend dans l'ombre, le nouveau monte dans la lumière */
.piece.entre { animation: monte .85s cubic-bezier(.16, 1, .3, 1) .12s both; }
.piece.sort { animation: descend .42s cubic-bezier(.5, 0, .75, 0) both; }
@keyframes monte { from { opacity: 0; transform: translate3d(0, 46px, 0) scale(.95); filter: brightness(.4); } }
@keyframes descend { to { opacity: 0; transform: translate3d(0, 26px, 0) scale(.97); filter: brightness(.3) blur(3px); } }
/* Respiration très lente une fois en place */
.piece.pose > * { animation: flotte 7s ease-in-out infinite; }
@keyframes flotte { 50% { transform: translateY(-5px); } }

.commandes {
  position: absolute; bottom: -4px; left: 0; right: 0; display: flex; justify-content: space-between; align-items: center;
  pointer-events: none;
}
.commandes button {
  pointer-events: auto; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--ligne); background: rgba(11, 9, 6, .6); color: var(--creme); cursor: pointer; font-size: 16px;
  transition: border-color .3s, background .3s, transform .3s var(--courbe);
}
.commandes button:hover { border-color: var(--or); background: rgba(191, 145, 73, .14); }
.commandes button:active { transform: scale(.94); }
.compteur { position: absolute; top: 0; right: 0; font: italic 500 15px/1 var(--police-accent); color: var(--or-pale); }
.compteur b { font: italic 500 30px/1 var(--police-accent); color: var(--or-clair); }

/* ---------- Fiche (carte de restaurant) ---------- */
.fiche-salon { position: relative; }
.fiche-salon .surtitre { display: block; }
.fiche-salon h3 { font-size: clamp(28px, 3vw, 42px); line-height: 1.05; margin-top: 10px; letter-spacing: -.01em; }
.masque { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: .08em; margin-bottom: -.08em; }
.masque > span { display: inline-block; }
.fiche-salon.revele .masque > span { animation: ligne .75s cubic-bezier(.16, 1, .3, 1) calc(var(--m) * 45ms + 120ms) both; }
@keyframes ligne { from { transform: translateY(105%); } }
.fiche-salon .meta { margin-top: 10px; color: var(--or-pale); font-size: 14px; }
.carte-mets { list-style: none; margin: 26px 0 0; padding: 18px 0 0; border-top: 1px solid var(--ligne); display: grid; gap: 14px; }
.carte-mets li { display: grid; grid-template-columns: auto 1fr auto; align-items: baseline; gap: 10px; }
.carte-mets .nom { color: var(--creme); font-weight: 500; }
.carte-mets .groupe { display: block; color: var(--texte-doux); font-size: 11.5px; font-weight: 400; letter-spacing: .04em; }
.carte-mets .conduite { border-bottom: 1px dotted rgba(191, 145, 73, .45); transform: translateY(-4px); }
.carte-mets .prix { color: var(--or-clair); font-variant-numeric: tabular-nums; white-space: nowrap; }
.fiche-salon.revele .carte-mets li { animation: glisse .6s var(--courbe) calc(var(--i) * 70ms + 260ms) both; }
@keyframes glisse { from { opacity: 0; transform: translateX(14px); } }
.fiche-salon .lien-carte { margin-top: 28px; }
.coeur-signe { color: var(--or-clair); margin-left: .3em; font-size: .85em; }

/* Lien vers la carte complète */
.lien-carte {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 44px; padding: 0 22px;
  border: 1px solid var(--ligne-forte); border-radius: var(--rayon-image);
  color: var(--creme); font-weight: 500; font-size: 14px;
  transition: background .25s, border-color .25s, color .25s;
}
.lien-carte span { transition: transform .3s var(--courbe); }
.lien-carte:hover { background: var(--or); border-color: var(--or); color: var(--noir); }
.lien-carte:hover span { transform: translateX(4px); }

/* Médaillon doré : catégories sans photo réelle */
.medaillon {
  position: relative; display: grid; place-items: center; aspect-ratio: 1; border-radius: 50%;
  background:
    radial-gradient(circle at 50% 38%, rgba(240, 210, 137, .16), transparent 62%),
    url("../images/marbre-vip-QxB5gSA.webp") center / 260% auto, #0d0b08;
  box-shadow: inset 0 0 0 1px rgba(240, 210, 137, .1), 0 30px 60px -20px rgba(0, 0, 0, .8);
}
.medaillon .anneau { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; stroke: var(--or); stroke-width: .6; }
.medaillon .anneau .guilloche { stroke-width: 2.2; stroke-dasharray: .6 1.6; stroke: var(--or-pale); opacity: .55; }
.medaillon .icone { width: 46%; color: var(--or-clair); }
.medaillon .icone svg { width: 100%; height: auto; display: block; }

/* ---------- Mobile et tablette : registre en pastilles, scène, puis fiche ---------- */
.pastilles-salon { display: none; }
@media (max-width: 959px) {
  .salon-grille { grid-template-columns: 1fr; gap: 18px; }
  .registre { display: none; }
  .pastilles-salon {
    display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 22px calc(var(--gouttiere) * -1) 0;
    padding: 4px var(--gouttiere); scroll-snap-type: x proximity;
  }
  .pastilles-salon::-webkit-scrollbar { display: none; }
  .pastilles-salon .sep { flex: 0 0 1px; background: var(--ligne-forte); margin: 8px 4px; }
  .pastilles-salon button {
    flex: 0 0 auto; scroll-snap-align: center; min-height: 44px; padding: 0 16px; border-radius: var(--rayon-image);
    border: 1px solid var(--ligne); background: transparent; color: var(--or-pale);
    font: 500 13.5px/1 var(--police-texte); white-space: nowrap; cursor: pointer; transition: all .3s;
  }
  .pastilles-salon button[aria-current="true"] { background: var(--degrade-metal); color: var(--noir); border-color: transparent; }
  .scene-salon { height: min(92vw, 400px); }
  .piece .medaillon { width: min(48vw, 210px); }
  .fiche-salon { text-align: left; }
}

/* Mouvement réduit : aucun déplacement, seulement des fondus courts */
@media (prefers-reduced-motion: reduce) {
  .salon, .repere, .entree { transition-duration: .01s; }
  .piece { transition: none; }
  .piece.entre { animation: fondu .25s ease-out both; }
  .piece.sort { animation: fondu .2s ease-in reverse both; }
  .piece.pose > *, .scene-salon.allume .socle .lisere { animation: none; }
  .fiche-salon.revele .masque > span, .fiche-salon.revele .carte-mets li { animation: fondu .25s ease-out both; }
  @keyframes fondu { from { opacity: 0; } }
}

/* Harmonisation des rayons : .carte-mets */
.carte-mets { border-radius: var(--rayon-carte); }
