:root {
  --fond: #0a0c0f; --panneau: #0f1217; --filet: #262b33; --texte: #e6e8eb; --gris: #8a919c;
  --vert: #3ecf8e; --ambre: #f5a524; --rouge: #ef4444; --orange: #ff6a13;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--fond); color: var(--texte); font: 15px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif; }
a { color: var(--orange); }
h1 { font-size: 1.6rem; font-weight: 600; margin: 0 0 .25rem; }
h2, h3, label, th, .marque, .nav a, .etiquette, summary .gris, .lien, button {
  font-family: var(--mono); text-transform: uppercase; letter-spacing: .08em; font-size: .75rem;
}
h2 { margin: 0 0 .75rem; color: var(--gris); font-weight: 500; }
h3 { color: var(--orange); margin: 1rem 0 .25rem; font-weight: 500; }
.sous, .gris { color: var(--gris); }
.sous { margin: 0 0 1.25rem; }
.marque { color: var(--orange); font-weight: 700; letter-spacing: .15em; }

.coque { display: grid; grid-template-columns: 200px 1fr; min-height: 100vh; }
.nav { border-right: 1px solid var(--filet); padding: 1.25rem 1rem; display: flex; flex-direction: column; gap: .25rem; }
.nav a { color: var(--gris); text-decoration: none; padding: .6rem .5rem; border: 1px solid transparent; border-radius: 2px; }
.nav a.actif { color: var(--texte); border-color: var(--filet); border-left: 2px solid var(--orange); background: var(--panneau); }
.nav form { margin-top: auto; }
.nav .marque { margin-bottom: 1rem; }
main { padding: 1.5rem; max-width: 960px; width: 100%; }
@media (max-width: 720px) {
  .coque { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .nav { flex-direction: row; flex-wrap: wrap; align-items: center; align-content: flex-start; border-right: 0; border-bottom: 1px solid var(--filet); padding: .75rem; }
  .nav .marque { margin: 0 .5rem 0 0; }
  .nav form { margin: 0 0 0 auto; }
  main { padding: 1rem; }
}

.panneau, .case, details.menu { background: var(--panneau); border: 1px solid var(--filet); border-radius: 2px; padding: 1rem; margin-bottom: 1rem; }
.grille { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--filet); border: 1px solid var(--filet); }
.grille .case { border: 0; margin: 0; }
@media (max-width: 720px) { .grille { grid-template-columns: 1fr 1fr; } }
.vide { border: 1px dashed var(--filet); padding: 1.5rem 1rem; color: var(--gris); text-align: center; }

.etiquette { display: inline-block; padding: .15rem .5rem; border: 1px solid var(--filet); border-radius: 2px; color: var(--gris); }
.etiquette.vert { color: var(--vert); border-color: var(--vert); }
.etiquette.ambre { color: var(--ambre); border-color: var(--ambre); }
.etiquette.rouge { color: var(--rouge); border-color: var(--rouge); }
.etiquette.orange { color: var(--orange); border-color: var(--orange); }

input { width: 100%; background: var(--fond); color: var(--texte); border: 1px solid var(--filet); border-radius: 2px; padding: .6rem; font: inherit; font-size: 16px; /* 16px : évite le zoom auto d'iOS */ }
input:focus, button:focus-visible, a:focus-visible, summary:focus-visible { outline: 1px solid var(--orange); outline-offset: 1px; }
label { display: block; color: var(--gris); }
label input { margin-top: .35rem; }
.ligne { display: flex; flex-wrap: wrap; gap: 1rem; align-items: end; }
.ligne label { flex: 1 1 220px; }
button { cursor: pointer; border-radius: 2px; border: 1px solid var(--filet); background: var(--panneau); color: var(--texte); padding: .65rem 1rem; min-height: 44px; }
button.primaire { background: var(--orange); border-color: var(--orange); color: #000; font-weight: 700; }
button.lien { border: 0; background: none; color: var(--gris); padding: .5rem; min-height: 0; text-decoration: underline; }
.puces { list-style: none; padding: 0; margin: 0 0 1rem; display: flex; flex-wrap: wrap; gap: .5rem; }
.puces form { display: flex; align-items: center; }

table { width: 100%; border-collapse: collapse; margin-bottom: 1rem; }
th, td { text-align: left; padding: .5rem; border-bottom: 1px solid var(--filet); vertical-align: middle; }
th { color: var(--gris); font-weight: 500; }
.jeton { display: block; padding: .75rem; border: 1px solid var(--orange); border-radius: 2px; font-family: var(--mono); word-break: break-all; user-select: all; }

summary { cursor: pointer; display: flex; flex-wrap: wrap; gap: .5rem .75rem; align-items: center; }
.plats { list-style: none; padding: 0; margin: 0; }
.plats li { display: flex; justify-content: space-between; gap: 1rem; padding: .4rem 0; border-bottom: 1px solid var(--filet); }
.plats li > span:last-child { font-family: var(--mono); white-space: nowrap; }

.connexion { max-width: 380px; margin: 12vh auto 0; padding: 1.5rem; }
.connexion .primaire { width: 100%; margin-top: 1rem; }
