/* Démonstration immersive Gyp Sea : l'écran d'abord. Charte gypsea-stbarth.com
   (Playfair Display / Albert Sans, marine #305371, ciel #5F9BC6, ivoire #F8F6F3 / #F1ECE6). */
:root { --ivory: #F8F6F3; --sand: #F1ECE6; --navy: #305371; --navy-d: #25425C; --sky: #5F9BC6; --muted: #6E879E; --line: rgba(48, 83, 113, .18); }
* { box-sizing: border-box; }
html, body { margin: 0; width: 100%; height: 100%; overflow: hidden; background: var(--sand); color: var(--navy); font-family: 'GS Sans', system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
button { font: inherit; color: inherit; cursor: pointer; }
button:focus-visible, summary:focus-visible, a:focus-visible { outline: 2px solid var(--sky); outline-offset: 4px; }

/* fond : ivoire chaud, ou la salle du restaurant en mode « dans le lieu » */
.ambience { position: fixed; inset: 0; background: linear-gradient(90deg, rgba(37, 66, 92, .62), rgba(37, 66, 92, .18) 50%, rgba(37, 66, 92, .62)), url('../assets/photos/restaurant.jpg') center 55% / cover; opacity: 0; transition: opacity .5s; pointer-events: none; }
.context .ambience { opacity: 1; }

.top { position: fixed; top: 20px; left: 28px; right: 28px; z-index: 3; display: flex; align-items: flex-start; justify-content: space-between; pointer-events: none; }
.brand h1 { margin: 0; display: flex; align-items: center; gap: 12px; font-weight: 400; }
.brand h1 img { height: 46px; width: auto; display: block; }
.brand .lg-white { display: none; }
.context .brand .lg-blue { display: none; }
.context .brand .lg-white { display: block; }
.brand .tag { font: italic 400 22px/1 'GS Serif', serif; color: var(--sky); }
.context .brand .tag { color: var(--ivory); }
.brand p { font-size: 10px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; margin: 10px 0 0; color: var(--muted); }
.context .brand p { color: rgba(248, 246, 243, .85); }
.contextbutton { pointer-events: auto; font-size: 10px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; padding: 11px 16px; background: var(--ivory); color: var(--navy); border: 1px solid var(--navy); }
.contextbutton:hover { background: var(--navy); color: var(--ivory); }

/* l'écran : 80 à 88 % de la hauteur */
.layout { position: fixed; inset: 12px 12px 108px; display: grid; place-items: center; }
.layout > .center { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.screen { position: relative; width: min(calc((100dvh - 120px) * 9 / 16), calc(100vw - 40px)); aspect-ratio: 9 / 16; flex: none; background: #000; overflow: hidden; border-radius: 4px;
  box-shadow: 0 0 0 8px #1D2F3F, 0 0 0 9px rgba(48, 83, 113, .35), 0 24px 70px rgba(37, 66, 92, .35); }
.stagehost { position: absolute; inset: 0; overflow: hidden; }
.stagehost .st { position: absolute; left: 0; top: 0; }
.vid { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; display: none; background: #FAF0E7; }
.screen.video .vid { display: block; }
.screen.video .stagehost { visibility: hidden; }
.fsclose { display: none; }

/* barre de lecture discrète */
.dock { position: fixed; bottom: 0; left: 0; right: 0; z-index: 4; display: flex; align-items: center; flex-direction: column; padding: 10px 20px 12px; gap: 8px; background: linear-gradient(0deg, rgba(241, 236, 230, .98), rgba(241, 236, 230, .92) 80%, rgba(241, 236, 230, 0)); }
.context .dock { background: linear-gradient(0deg, rgba(248, 246, 243, .97), rgba(248, 246, 243, .9) 80%, rgba(248, 246, 243, 0)); }
.controls { display: flex; align-items: center; gap: 12px; width: min(560px, 100%); }
.ic { border: 1px solid var(--navy); background: transparent; border-radius: 50%; width: 34px; height: 34px; padding: 0; display: grid; place-items: center; flex: none; }
.ic:hover { background: rgba(48, 83, 113, .08); }
.ic svg { width: 15px; height: 15px; fill: var(--navy); }
.ic.big { background: var(--navy); width: 40px; height: 40px; }
.ic.big svg { fill: var(--ivory); width: 17px; height: 17px; }
.ic.big:hover { background: var(--navy-d); }
.i-play { display: none; } body.paused .i-play { display: block; } body.paused .i-pause { display: none; }
.prog { position: relative; flex: 1; display: flex; align-items: center; height: 26px; touch-action: none; cursor: pointer; }
.prog::after { content: ''; position: absolute; left: 0; right: 0; height: 2px; background: var(--line); }
.bar { position: relative; z-index: 1; background: var(--navy); height: 2px; width: 0; }
.time { font-variant-numeric: tabular-nums; color: var(--muted); font-size: 11px; min-width: 75px; text-align: right; }
.rubriques { display: flex; align-items: center; gap: 4px; max-width: calc(100vw - 40px); overflow: auto; scrollbar-width: none; padding: 2px; }
.rubriques::-webkit-scrollbar { display: none; }
#chips { display: contents; }
.chip { border: 1px solid transparent; background: transparent; color: var(--navy); padding: 8px 12px; white-space: nowrap; flex: none; font-size: 10.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; transition: background .15s, color .15s; }
.chip:hover { background: rgba(48, 83, 113, .07); }
.chip.on { background: var(--navy); color: var(--ivory); }
.chip em, .chip .dot { display: none; }
.chip.loop { border-color: var(--navy); }

/* panneau infos & vidéos */
.settings { position: fixed; bottom: 112px; right: 22px; z-index: 10; }
.settings > summary { list-style: none; font-size: 10px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; cursor: pointer; padding: 10px 14px; background: var(--ivory); color: var(--navy); border: 1px solid var(--line); }
.settings > summary::-webkit-details-marker { display: none; }
.settingspanel { position: absolute; bottom: 46px; right: 0; width: min(400px, calc(100vw - 32px)); max-height: calc(100dvh - 210px); overflow: auto; padding: 26px; background: var(--ivory); border: 1px solid var(--line); box-shadow: 0 20px 60px rgba(37, 66, 92, .25); }
.closeSettings { display: block; margin: 0 0 18px auto; background: transparent; border: 0; color: var(--muted); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.info .cat { font-size: 10px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--sky); margin: 0 0 8px; }
.info h2 { font: 400 26px/1.15 'GS Serif', serif; text-transform: uppercase; margin: 0 0 12px; }
.info p { font-size: 14px; line-height: 1.6; color: #45657F; }
.info .weather { font-size: 12px; color: var(--muted); font-style: italic; }
.files { border-top: 1px solid var(--line); margin-top: 20px; padding-top: 14px; font-size: 13px; }
.files summary { cursor: pointer; font-size: 10px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.files ul { padding: 0; list-style: none; }
.files li { margin: 10px 0; overflow-wrap: anywhere; }
.files a { color: var(--navy); }
.files li span { display: block; font-size: 11px; color: var(--muted); margin-top: 3px; }
.files .small { font-size: 11px; color: var(--muted); }
.toggles { display: flex; flex-direction: column; gap: 14px; border-top: 1px solid var(--line); padding-top: 18px; margin-top: 18px; font-size: 13px; }
.sw { display: flex; gap: 10px; align-items: center; cursor: pointer; }
.sw input { accent-color: var(--navy); width: 17px; height: 17px; }
.sw span { display: none; }
.foot { font-size: 11px; line-height: 1.6; color: var(--muted); margin-top: 20px; }
.foot a { display: block; color: var(--navy); margin-top: 6px; font-weight: 600; }
#hotellink { color: var(--navy); font-size: 13px; font-weight: 600; }
#hotellink[hidden] { display: none; }

/* fichier TV paysage tourné */
.screen.techon { aspect-ratio: 16 / 9; width: min(1100px, calc(100vw - 64px), calc((100dvh - 124px) * 16 / 9)); }
.screen.techon .stagehost, .screen.techon .vid { display: none; }
.tech { position: absolute; inset: 0; background: #0E1A24; display: flex; align-items: center; justify-content: center; }
.tech[hidden] { display: none; }
.tech video { width: 100%; height: 100%; object-fit: contain; }
.techlabel { position: absolute; left: 12px; right: 12px; bottom: 8px; background: rgba(14, 26, 36, .78); color: #DCE7F0; padding: 6px 10px; font-size: 10px; }
.missing { padding: 24px; color: #DCE7F0; }

/* plein écran */
.screen:fullscreen, .screen.pseudo { width: 100vw !important; height: 100dvh !important; max-width: none; aspect-ratio: auto; border-radius: 0; box-shadow: none; background: #000; }
.screen.pseudo { position: fixed; inset: 0; z-index: 100; }
.screen:fullscreen .fsclose, .screen.pseudo .fsclose { display: grid; position: absolute; top: 14px; right: 14px; z-index: 5; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .45); color: #fff; font-size: 18px; place-items: center; opacity: 0; transition: opacity .2s; }
.screen:fullscreen:hover .fsclose, .screen.pseudo:hover .fsclose, .screen.showui .fsclose { opacity: 1; }
.pseudofs .dock, .pseudofs .settings, .pseudofs .top { visibility: hidden; }

@media (min-width: 1200px) { .layout { inset: 12px 12px 98px; } .screen { width: min(calc((100dvh - 110px) * 9 / 16), calc(100vw - 40px)); } .settings { bottom: 104px; } }
@media (max-width: 900px) {
  .top { top: 10px; left: 12px; right: 12px; }
  .brand h1 img { height: 30px; }
  .brand .tag, .brand p { display: none; }
  .contextbutton { font-size: 9px; padding: 8px 10px; }
  .layout { inset: 48px 0 102px; }
  .screen { width: min(calc((100dvh - 150px) * 9 / 16), calc(100vw - 16px)); box-shadow: 0 0 0 4px #1D2F3F, 0 10px 40px rgba(37, 66, 92, .3); }
  .dock { padding: 6px 8px max(8px, env(safe-area-inset-bottom)); gap: 6px; }
  .controls { gap: 9px; width: min(420px, 100%); }
  .chip { padding: 8px 10px; font-size: 10px; letter-spacing: .12em; }
  .rubriques { max-width: 100%; width: 100%; }
  .settings { bottom: 106px; right: 9px; }
  .settings > summary { font-size: 9px; padding: 7px 10px; }
  .settingspanel { bottom: 38px; max-height: calc(100dvh - 200px); }
  .screen.techon { width: calc(100vw - 16px); }
  .time { font-size: 10px; min-width: 68px; }
}
@media (prefers-reduced-motion: reduce) { .ambience, .chip, .fsclose { transition: none; } }
@media (max-width: 900px) {
  .settings { top: 10px; bottom: auto; right: 112px; }
  .settingspanel { top: 40px; bottom: auto; right: -100px; }
}
