
:root { --nuit: #11273C; --nuit-2: #0D2030; --creme: #FFFFFF; --or: #C6A96B; --or-clair: #E8D6A8; --texte-2: rgba(255,255,255,0.72); --trait: rgba(255,255,255,0.18);
  --f-titre: "Playfair Display", Georgia, serif; --f-texte: "Montserrat", Arial, sans-serif; }
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: var(--nuit); color: var(--creme); font-family: var(--f-texte);
  -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent; }
#scene { position: fixed; inset: 0; width: 100%; height: 100%; touch-action: none; cursor: grab; }
.haut { position: fixed; z-index: 2; left: 0; right: 0; top: 0; display: flex; justify-content: space-between; align-items: flex-start; pointer-events: none;
  padding: max(20px, env(safe-area-inset-top)) max(44px, env(safe-area-inset-right)) 0 max(28px, env(safe-area-inset-left));
  background: linear-gradient(180deg, rgba(13,32,48,0.75), rgba(13,32,48,0)); padding-bottom: 40px; }
.marque { display: flex; align-items: center; gap: 16px; pointer-events: auto; }
a.logo-lien { display: block; pointer-events: auto; } .logo-mdv { width: 110px; height: 110px; display: block; }
.marque h1 { margin: 0; font-family: var(--f-titre); font-weight: 400; font-size: clamp(20px, 2.3vw, 30px); text-shadow: 0 2px 12px rgba(0,0,0,0.5); }
.marque h1 em { color: var(--or-clair); }
.marque small { display: block; font-size: 10px; letter-spacing: 0.3em; color: var(--or); margin-bottom: 4px; }
.btn-plus { pointer-events: auto; border: 1px solid var(--trait); background: rgba(13,32,48,0.55); color: var(--creme); font: 500 12px var(--f-texte); letter-spacing: 0.12em; text-transform: uppercase;
  padding: 12px 18px; border-radius: 999px; cursor: pointer; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.btn-plus[aria-pressed="true"] { background: var(--creme); color: var(--nuit); }
.lien-accueil { pointer-events: auto; color: var(--texte-2); text-decoration: none; font-size: 12px; border: 1px solid var(--trait); border-radius: 999px; padding: 8px 12px; margin-left: 10px; }
.dans-app .lien-accueil { display: none; }
.bas { position: fixed; z-index: 2; left: 0; right: 0; bottom: 0; display: flex; justify-content: center; gap: clamp(8px, 1.6vw, 22px); pointer-events: none;
  padding: 70px 40px max(18px, env(safe-area-inset-bottom)); background: linear-gradient(0deg, rgba(13,32,48,0.96) 35%, rgba(13,32,48,0)); }
.mode { position: fixed; z-index: 3; left: 50%; transform: translateX(-50%); bottom: calc(max(18px, env(safe-area-inset-bottom)) + 150px); display: flex; padding: 4px; gap: 2px; border-radius: 999px;
  background: rgba(13,32,48,0.78); border: 1px solid var(--trait); }
.mode button { border: none; background: none; color: var(--texte-2); font: 500 12px var(--f-texte); letter-spacing: 0.04em; padding: 8px 16px; border-radius: 999px; cursor: pointer; touch-action: manipulation; transition: background 0.25s ease, color 0.25s ease; }
.mode button[aria-pressed="true"] { background: var(--creme); color: var(--nuit); }
.verre-btn { pointer-events: auto; display: flex; flex-direction: column; align-items: center; gap: 6px; border: none; background: none; color: var(--texte-2); font: 500 13px var(--f-texte); cursor: grab; padding: 4px 6px; border-radius: 16px; touch-action: none; transition: transform 0.25s ease; }
.verre-btn img { width: clamp(70px, 8vw, 104px); display: block; filter: drop-shadow(0 6px 10px rgba(0,0,0,0.35)); pointer-events: none; }
.verre-btn[aria-pressed="true"] { color: var(--creme); transform: translateY(-4px); }
.verre-btn[aria-pressed="true"] span { border-bottom: 1px solid var(--or); }
.aide { position: fixed; z-index: 2; left: 50%; bottom: calc(max(18px, env(safe-area-inset-bottom)) + 200px); transform: translateX(-50%); font-size: 11px; letter-spacing: 0.08em; color: var(--texte-2); pointer-events: none; transition: opacity 0.6s ease; white-space: nowrap; text-shadow: 0 1px 6px rgba(0,0,0,0.6); }
.aide.cache { opacity: 0; }
.plus { position: fixed; z-index: 3; right: max(44px, env(safe-area-inset-right)); top: 150px; width: min(360px, 38vw); max-height: calc(100% - 330px); overflow: auto;
  background: rgba(13,32,48,0.86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid var(--trait); border-radius: 22px; padding: 22px; display: flex; flex-direction: column; gap: 14px; }
/* panneau « Les + » : il se déploie depuis le bouton, puis son contenu arrive en cascade */
.plus { transform-origin: 92% 0; transition: opacity 0.32s ease, transform 0.55s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s linear 0s; }
.plus[hidden] { display: flex !important; opacity: 0; transform: translateY(-14px) scale(0.92); visibility: hidden; pointer-events: none;
  transition: opacity 0.2s ease, transform 0.3s ease, visibility 0s linear 0.3s; }
.plus > *, .plus ul > li { transition: opacity 0.45s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1); }
.plus[hidden] > *, .plus[hidden] ul > li { opacity: 0; transform: translateY(10px); transition-duration: 0.15s; transition-delay: 0s !important; }
.plus > :nth-child(1) { transition-delay: 0.06s; } .plus > :nth-child(2) { transition-delay: 0.12s; } .plus > :nth-child(3) { transition-delay: 0.18s; }
.plus > :nth-child(4) { transition-delay: 0.24s; } .plus > :nth-child(5) { transition-delay: 0.30s; } .plus > :nth-child(6) { transition-delay: 0.36s; }
.plus ul > li:nth-child(1) { transition-delay: 0.16s; } .plus ul > li:nth-child(2) { transition-delay: 0.22s; } .plus ul > li:nth-child(3) { transition-delay: 0.28s; }
.plus ul > li:nth-child(4) { transition-delay: 0.34s; } .plus ul > li:nth-child(5) { transition-delay: 0.40s; }
@media (prefers-reduced-motion: reduce) { .plus, .plus > *, .plus ul > li { transition: none !important; } }
.plus .t span { display: block; font-size: 10px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--or); }
.plus .t strong { font-family: var(--f-titre); font-weight: 400; font-size: 26px; }
.plus p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--texte-2); }
.spec { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 13px; color: var(--texte-2); }
.spec b { color: var(--creme); font-weight: 600; }
.spec i { display: inline-block; width: 12px; height: 12px; border-radius: 50%; vertical-align: -2px; margin-right: 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips span { font-size: 11px; color: var(--creme); border: 1px solid var(--trait); border-radius: 999px; padding: 5px 10px; }
.badge-g { align-self: flex-start; font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--nuit); background: var(--or-clair); border-radius: 999px; padding: 7px 14px; font-weight: 600; }
.plus small { font-size: 10.5px; color: rgba(255,255,255,0.5); line-height: 1.4; }
.mention-demo { position: fixed; z-index: 50; top: 50%; right: max(6px, env(safe-area-inset-right, 0px)); margin: 0; transform: translateY(-50%) rotate(180deg); writing-mode: vertical-rl; font: 400 10px/1.3 "Montserrat", Arial, sans-serif; letter-spacing: 0.04em; color: rgba(255,255,255,0.55); pointer-events: none; white-space: nowrap; text-shadow: 0 1px 4px rgba(0,0,0,0.6); }

.options { position: fixed; z-index: 2; left: max(28px, env(safe-area-inset-left)); top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 10px; }
.opt { display: flex; align-items: center; gap: 12px; min-width: 230px; border: 1px solid var(--trait); background: rgba(13,32,48,0.62); color: var(--creme);
  font: 500 14px var(--f-texte); padding: 12px 16px; border-radius: 16px; cursor: pointer; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); text-align: left; transition: background 0.3s ease, border-color 0.3s ease; }
.opt .sw { flex: none; width: 34px; height: 20px; border-radius: 10px; background: rgba(255,255,255,0.25); position: relative; transition: background 0.3s ease; }
.opt .sw::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: var(--creme); transition: transform 0.3s cubic-bezier(.3,.7,.2,1); }
.opt[aria-pressed="true"] { border-color: var(--or); background: rgba(13,32,48,0.8); }
.opt[aria-pressed="true"] .sw { background: var(--or); }
.opt[aria-pressed="true"] .sw::after { transform: translateX(14px); }
.opt small { display: block; font-size: 11px; color: var(--texte-2); font-weight: 400; margin-top: 2px; }
.chargement { position: fixed; inset: 0; z-index: 10; background: var(--nuit); display: flex; align-items: center; justify-content: center; transition: opacity 0.5s ease; }
.chargement.fini { opacity: 0; pointer-events: none; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--or-clair); outline-offset: 2px; }

/* Matières et options : boutons de scène avec picto, au-dessus des verres */
.mode button { display: inline-flex; align-items: center; gap: 8px; }
.mode button svg { width: 18px; height: 18px; flex: none; }
.retour-mat { pointer-events: auto; color: var(--texte-2); text-decoration: none; font-size: 12px; border: 1px solid var(--trait); border-radius: 999px; padding: 8px 12px; margin-left: 10px; }
.dans-app .retour-mat { display: none; }
.niveau { min-width: 210px; }
.niveau .ico { flex: none; width: 26px; height: 26px; display: grid; place-items: center; color: var(--or-clair); }
.niveau .ico svg { width: 22px; height: 22px; }
.niveau[aria-pressed="true"] { border-color: var(--or); background: rgba(13,32,48,0.85); }
.teinte-ligne { font-size: 13px; color: var(--texte-2); } .teinte-ligne b { color: var(--creme); font-weight: 600; }
