/* hifishop · page d'attente */
:root {
  --vert: #16785F; --vert-nuit: #0B3B30; --vert-clair: #EAF3F0;
  --orange: #E2610A; --orange-fonce: #B84C05; --erreur: #FFB4A9;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { min-height: 100%; }
body {
  font-family: Archivo, system-ui, -apple-system, sans-serif; color: #fff; -webkit-font-smoothing: antialiased;
  background: radial-gradient(120% 90% at 75% 45%, #145f4c 0%, var(--vert-nuit) 60%, #072a22 100%) fixed;
  display: flex; flex-direction: column; min-height: 100svh; overflow-x: hidden;
}
a { color: inherit; }
button, input { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 4px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
[hidden] { display: none !important; }

/* En-tête */
.haut { display: flex; justify-content: space-between; align-items: center; padding: 22px clamp(20px, 4vw, 48px); position: relative; z-index: 10; }
.logo { display: flex; align-items: center; gap: 9px; font-size: 22px; font-weight: 700; letter-spacing: -.04em; }
.acces { position: relative; }
.acces-btn {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .18); color: rgba(255, 255, 255, .7);
  transition: background .2s, color .2s;
}
.acces-btn:hover, .acces-btn[aria-expanded="true"] { background: rgba(255, 255, 255, .14); color: #fff; }
.acces-form {
  position: absolute; right: 0; top: 48px; width: 240px; padding: 14px; border-radius: 10px;
  background: #fff; color: #151A19; box-shadow: 0 14px 40px rgba(0, 0, 0, .35); animation: apparait .2s ease-out;
}
.acces-form label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.acces-ligne { display: flex; gap: 6px; }
.acces-ligne input { flex: 1; min-width: 0; height: 40px; padding: 0 10px; border: 1px solid #DDE2E0; border-radius: 8px; font-size: 16px; }
.acces-ligne input:focus { outline: none; border-color: var(--vert); }
.acces-ligne input[aria-invalid="true"] { border-color: #B3261E; }
.acces-ligne button { width: 40px; border: 0; border-radius: 8px; background: var(--vert); color: #fff; font-size: 18px; cursor: pointer; }
.acces-ligne button:hover { background: #0F5745; }
.acces-err { color: #B3261E; font-size: 13px; margin-top: 8px; }
@keyframes apparait { from { opacity: 0; transform: translateY(-4px); } }

/* Scène */
.scene {
  flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); align-items: center; gap: clamp(24px, 5vw, 72px);
  width: 100%; max-width: 1240px; margin: 0 auto; padding: 8px clamp(20px, 4vw, 48px) 32px;
}
.surtitre { font-size: 12.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: #F0A46E; margin-bottom: 16px; }
h1 { font-size: clamp(40px, 6vw, 76px); line-height: 1.02; letter-spacing: -.04em; font-weight: 700; margin-bottom: 20px; }
.chapeau { font-size: 18px; line-height: 1.55; color: rgba(255, 255, 255, .78); max-width: 44ch; margin-bottom: 30px; }

.prevenir { max-width: 460px; margin-bottom: 28px; position: relative; }
.prevenir label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.prevenir-ligne { display: flex; gap: 8px; }
.prevenir-ligne input {
  flex: 1; min-width: 0; height: 50px; padding: 0 16px; border-radius: 10px; font-size: 16px;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .25); color: #fff;
}
.prevenir-ligne input::placeholder { color: rgba(255, 255, 255, .45); }
.prevenir-ligne input:focus { outline: none; border-color: #fff; background: rgba(255, 255, 255, .12); }
.prevenir-ligne button {
  height: 50px; padding: 0 20px; border: 0; border-radius: 10px; background: var(--orange); color: #fff; font-weight: 600; cursor: pointer;
  white-space: nowrap; transition: background .15s;
}
.prevenir-ligne button:hover { background: var(--orange-fonce); }
.prevenir-msg { font-size: 14px; margin-top: 10px; min-height: 1.2em; color: rgba(255, 255, 255, .85); }
.prevenir-msg.ko { color: var(--erreur); }
.piege { position: absolute; left: -9999px; }

.contact { list-style: none; font-size: 14px; color: rgba(255, 255, 255, .6); line-height: 1.8; }
.contact a { text-decoration: none; color: rgba(255, 255, 255, .85); }
.contact a:hover { text-decoration: underline; }

/* Platine */
.platine-zone { display: flex; flex-direction: column; align-items: center; }
.platine { width: 100%; max-width: 640px; height: auto; display: block; user-select: none; -webkit-user-select: none; touch-action: none; }
.prise { cursor: grab; }
.prise:active, .prise.tient { cursor: grabbing; }
.prise:focus { outline: none; }
.prise:focus-visible { stroke: var(--orange); stroke-width: 3; }
.bras { cursor: pointer; }
.bras:focus { outline: none; }
.bras:focus-visible .bras-zone { stroke: rgba(226, 97, 10, .25); }
.touche { cursor: pointer; }
.touche:focus { outline: none; }
.touche-fond { fill: #e8e4dc; stroke: #c4bfb5; stroke-width: 1.2; transition: fill .15s; }
.touche:hover .touche-fond { fill: #f1eee8; }
.touche[aria-pressed="true"] .touche-fond { fill: #d9d4ca; stroke: #aaa59b; }
.touche:focus-visible .touche-fond { stroke: #E2610A; stroke-width: 2.5; }
.touche:active .touche-fond { transform: translateY(1px); }
.touche-txt { font-family: Archivo, sans-serif; font-size: 13px; font-weight: 600; fill: #6b706e; pointer-events: none; }
.touche[aria-pressed="true"] .touche-txt { fill: #2b2f2e; }
.voyant { fill: #bdb8ae; transition: fill .2s; }
.touche[aria-pressed="true"] .voyant { fill: #E2610A; filter: drop-shadow(0 0 3px rgba(226, 97, 10, .9)); }
.commandes { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 18px; }
.vitesses { display: flex; gap: 4px; }
.cmd {
  height: 38px; min-width: 52px; padding: 0 14px; border-radius: 999px; cursor: pointer; font-size: 14px; font-weight: 600;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .22); color: rgba(255, 255, 255, .8);
  transition: background .15s, color .15s;
}
.cmd:hover { background: rgba(255, 255, 255, .14); color: #fff; }
.cmd[aria-pressed="true"] { background: #fff; color: var(--vert-nuit); border-color: #fff; }
.indice { margin-top: 12px; font-size: 13px; color: rgba(255, 255, 255, .5); transition: opacity .6s; }
.indice.vu { opacity: 0; }

.bas { display: flex; justify-content: space-between; gap: 16px; padding: 18px clamp(20px, 4vw, 48px) 22px; font-size: 12px; letter-spacing: .14em; color: rgba(255, 255, 255, .45); }
.bas a { text-decoration: none; letter-spacing: normal; }
.credit { letter-spacing: normal; font-size: 11.5px; text-align: center; flex: 1; }
.credit a { text-decoration: underline; text-underline-offset: 2px; }
.bas a:hover { color: #fff; }

@media (max-width: 860px) {
  .scene { grid-template-columns: 1fr; padding-top: 0; }
  .platine-zone { order: -1; }
  .platine { max-width: 460px; }
  .texte { text-align: left; }
}
@media (max-width: 640px) {
  .bas { flex-wrap: wrap; }
  .credit { order: 3; flex-basis: 100%; }
}
@media (max-width: 480px) {
  .prevenir-ligne { flex-direction: column; }
  .prevenir-ligne input { flex: none; }
  .prevenir-ligne button { width: 100%; }
  .chapeau { font-size: 16.5px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
