/* Polices : facultatif — déposer les fichiers dans fonts/ pour retrouver la typo du musée hors ligne */
@font-face { font-family: 'Playfair Display'; src: url('fonts/PlayfairDisplay.woff2') format('woff2'); font-weight: 500 700; }
@font-face { font-family: 'Inter'; src: url('fonts/Inter.woff2') format('woff2'); font-weight: 400 600; }

:root{
  --bg:#efeae0; --card:#faf7f1; --ink:#2b2620; --muted:#7a7266;
  --accent:#7a1f2d; --line:#e2dbcd;
}
*{box-sizing:border-box; -webkit-tap-highlight-color:transparent;}
html,body{margin:0; height:100%;}
/* Tablette Lenovo Tab M11 (TB311FU) : 1920x1200 physiques, environ 1280x800 px CSS en paysage, 800x1280 en portrait */
body{ display:flex; flex-direction:column; height:100vh; height:100dvh; overflow:hidden; overscroll-behavior:none; touch-action:manipulation; }
#app{ flex:1; min-height:0; display:flex; flex-direction:column; }
body{ background:var(--bg); color:var(--ink); font-family:'Inter',system-ui,-apple-system,'Segoe UI',Roboto,sans-serif; user-select:none; }
h1,h2,h3{ font-family:'Playfair Display',Georgia,'Times New Roman',serif; font-weight:600; margin:0; }
button{ font-family:inherit; color:inherit; }

.top{ flex:none; display:flex; align-items:center; justify-content:space-between; padding:18px 36px; border-bottom:1px solid var(--line); }
.brand{ display:flex; align-items:center; gap:12px; }
.mark{ width:42px; height:42px; font-size:14px; border-radius:50%; border:1.5px solid var(--accent); display:flex; align-items:center; justify-content:center; font-family:'Playfair Display',Georgia,serif; color:var(--accent); }
.name{ font-size:18px; } .tag{ font-size:10px; letter-spacing:.1em; color:var(--muted); }
.crumb{ font-size:14px; color:var(--muted); }

main{ flex:1; min-height:0; overflow-y:auto; width:100%; padding:32px 40px; max-width:1200px; margin:0 auto; box-sizing:border-box; }
.eyebrow{ color:var(--accent); font-size:12px; letter-spacing:.06em; margin-bottom:6px; }
.lead{ color:var(--muted); font-size:16px; margin:8px 0 0; }
.card{ background:var(--card); border:1px solid var(--line); border-radius:12px; }

.langues{ display:grid; grid-template-columns:repeat(3,1fr); gap:28px; margin-top:52px; }
.langue{ padding:48px 30px; cursor:pointer; display:flex; flex-direction:column; align-items:center; text-align:center; transition:border-color .15s, transform .15s; }
.langue:active{ border-color:var(--accent); transform:scale(.98); }
.langue .nom{ display:flex; align-items:center; gap:18px; font-family:'Playfair Display',Georgia,serif; font-size:38px; }
.langue .action{ font-size:17px; margin-top:14px; }
.drapeau{ display:inline-flex; flex-shrink:0; width:60px; height:40px; border-radius:5px; overflow:hidden; box-shadow:0 0 0 1px var(--line); }
.drapeau svg{ width:100%; height:100%; display:block; }

/* Bloc centré verticalement dans l'espace sous l'en-tête (main occupe toute la hauteur restante) */
.accueil{ text-align:center; max-width:1160px; display:flex; flex-direction:column; justify-content:safe center; }
.accueil > .lead{ font-size:18px; }
.titre-salle{ font-size:44px; line-height:1.25; }
.lecteur{ position:fixed; inset:0; background:#000; display:flex; flex-direction:column; }
.lecteur video{ flex:1; width:100%; min-height:0; background:#000; object-fit:contain; }
.barre{ flex:none; display:flex; align-items:center; justify-content:space-between; gap:16px; padding:0 28px; background:var(--card); box-sizing:border-box; }
/* Paysage 1280x800 : barre de 80 px, la vidéo 16:9 occupe exactement 1280x720 */
@media (orientation: landscape){ .barre{ height:80px; } }
.btn{ background:var(--accent); color:#fff; border:none; border-radius:8px; padding:14px 26px; min-height:56px; font-size:18px; cursor:pointer; }
.btn.ghost{ background:transparent; color:var(--accent); border:1px solid var(--accent); }
.lien{ background:none; border:none; color:var(--muted); font-size:14px; cursor:pointer; padding:8px 0; }

.fin{ position:fixed; inset:0; background:rgba(43,38,32,.55); display:flex; align-items:center; justify-content:center; }
.fin .card{ padding:36px 40px; max-width:520px; text-align:center; }
.lancer{ position:absolute; left:50%; top:40%; transform:translate(-50%,-50%); font-size:22px; padding:20px 34px; }

/* Tablette en portrait (800x1280) : langues empilées, vidéo en haut et commandes en dessous */
@media (orientation: portrait){
  .langues{ grid-template-columns:1fr; gap:20px; margin-top:36px; }
  .langue{ padding:36px 24px; }
  .titre-salle{ font-size:34px; }
  main{ padding:32px 34px; }
  .lecteur{ justify-content:center; }
  .lecteur video{ flex:none; height:auto; max-height:70%; aspect-ratio:16/9; }
  .barre{ flex-direction:column; align-items:stretch; gap:18px; padding:28px 34px; }
  .barre .btn{ width:100%; }
}
.hors-ligne{ text-align:center; color:var(--muted); font-size:13px; margin-top:28px; min-height:18px; }
