/* Pages de connexion, comptes et espace vendeur (autonome : ne dépend pas de app.css). */
:root { --vin: #7a1f35; --gris: #6b6b6b; --fond: #f6f3ef; --trait: #d9d3cb; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; font: 17px/1.45 system-ui, -apple-system, sans-serif; background: var(--fond); color: #222; }
.haut { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; padding: 12px 20px; background: #fff; border-bottom: 1px solid var(--trait); }
.marque { font-weight: 700; color: var(--vin); }
.haut nav { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; }
a { color: var(--vin); }
.lien { background: none; border: 0; color: var(--vin); font: inherit; text-decoration: underline; cursor: pointer; padding: 8px 0; }
main { margin: 24px auto; padding: 0 16px 90px; }
main.carte { max-width: 440px; }
main.large { max-width: 980px; }
h1 { font-size: 1.6rem; margin: 0 0 12px; }
h2 { font-size: 1.15rem; margin: 24px 0 8px; }
label { display: block; margin: 12px 0; font-weight: 600; }
input:not([type=checkbox]) { display: block; width: 100%; margin-top: 4px; padding: 12px; font: inherit; border: 1px solid #aaa; border-radius: 8px; background: #fff; }
.bouton { padding: 12px 22px; font: inherit; font-weight: 600; color: #fff; background: var(--vin); border: 0; border-radius: 8px; cursor: pointer; min-height: 48px; }
.bouton.secondaire { background: #fff; color: var(--vin); border: 2px solid var(--vin); }
.bouton:disabled { opacity: .45; cursor: not-allowed; }
.petit { padding: 6px 10px; font: inherit; font-size: .85rem; border: 1px solid #aaa; border-radius: 6px; background: #fff; cursor: pointer; }
.erreur { padding: 10px 12px; background: #fde8e8; border-left: 4px solid #b3261e; border-radius: 4px; }
.info { padding: 10px 12px; background: #e9f1fb; border-left: 4px solid #2a62a8; border-radius: 4px; }
.ok { padding: 10px 12px; background: #e6f3eb; border-left: 4px solid #1d6b3f; border-radius: 4px; }
#resultat { position: fixed; left: 16px; right: 16px; bottom: 84px; max-width: 640px; margin: 0 auto; z-index: 5; font-weight: 600; box-shadow: 0 6px 18px rgba(0,0,0,.18); }
.secret { padding: 12px; background: #fff7d6; border: 2px solid #c9a400; border-radius: 8px; }
code { font-size: 1.15rem; user-select: all; word-break: break-all; }
.qr svg { width: 220px; height: 220px; display: block; margin: 12px 0; border: 1px solid var(--trait); }
table { width: 100%; border-collapse: collapse; background: #fff; }
th, td { padding: 8px 10px; border-bottom: 1px solid var(--trait); text-align: left; vertical-align: top; }
tr.inactif td { color: var(--gris); }
.actions { display: flex; flex-wrap: wrap; gap: 6px; }
.ligne { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; }
.ligne label { flex: 1 1 220px; margin: 0; }
/* Espace vendeur : cibles tactiles >= 48 px pour l'iPad */
.tarifs { display: flex; flex-wrap: wrap; gap: 12px; }
.tarif { min-height: 56px; padding: 12px 26px; font: inherit; font-weight: 600; background: #fff; border: 2px solid var(--trait); border-radius: 12px; cursor: pointer; }
.tarif[aria-checked=true] { border-color: var(--vin); background: #f7e8ec; color: var(--vin); }
.groupe { margin: 10px 0; background: #fff; border: 1px solid var(--trait); border-radius: 12px; }
.entete { display: flex; align-items: center; gap: 14px; margin: 0; padding: 12px 16px; min-height: 56px; cursor: pointer; }
.plage { margin-left: auto; font-weight: 400; color: var(--gris); }
input[type=checkbox] { width: 28px; height: 28px; flex: none; accent-color: var(--vin); }
details { padding: 0 16px 10px; }
summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; color: var(--vin); }
.pages { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; }
.page { display: flex; flex-direction: column; align-items: center; gap: 6px; margin: 0; padding: 8px; border: 1px solid var(--trait); border-radius: 8px; font-weight: 400; cursor: pointer; }
.vignette { display: block; width: 100%; }
.vignette:empty { display: none; }
.vignette img { width: 100%; display: block; }
.barre { position: fixed; left: 0; right: 0; bottom: 0; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: flex-end; padding: 12px 20px; background: #fff; border-top: 1px solid var(--trait); }
.barre span { margin-right: auto; font-weight: 600; }

/* Pages de connexion, comptes et espace vendeur : mouvements courts, coupés si la personne demande moins de mouvement. */
.page:has(input:checked) { border-color: var(--vin); background: #f7e8ec; box-shadow: 0 0 0 1px var(--vin); }
#groupes.charge .vignette:empty { display: block; aspect-ratio: 793.7 / 1122.5; background: #ece8e2; }
@media (prefers-reduced-motion: no-preference) {
  .bouton, .tarif, .petit, .lien { transition: background-color .15s ease-out, border-color .15s ease-out, color .15s ease-out, transform .12s ease-out, opacity .15s ease-out; }
  .bouton:active:not(:disabled), .tarif:active, .page:active { transform: scale(.97); }
  input:not([type=checkbox]) { transition: border-color .15s ease-out, box-shadow .15s ease-out; }
  input:not([type=checkbox]):focus { border-color: var(--vin); box-shadow: 0 0 0 3px rgba(122, 31, 53, .15); outline: none; }
  .page { transition: border-color .15s ease-out, background-color .15s ease-out, box-shadow .15s ease-out, transform .12s ease-out; }
  .groupe { transition: border-color .15s ease-out; }
  .erreur, .info, .ok, .secret, #selection, .barre:not([hidden]) { animation: monte .22s ease-out; }
  .vignette img { animation: fond .25s ease-out; }
  #groupes.charge .vignette:empty { background: linear-gradient(100deg, #ece8e2 30%, #f7f4ef 50%, #ece8e2 70%) 100% 0 / 300% 100%; animation: reflet 1.4s linear infinite; }
  .tarif[aria-checked=true] { animation: pose-choix .2s ease-out; }
  .bouton.occupe { animation: respire 1.2s ease-in-out infinite; }
}
@keyframes monte { from { opacity: 0; transform: translateY(6px); } }
@keyframes fond { from { opacity: 0; } }
@keyframes reflet { to { background-position: -100% 0; } }
@keyframes pose-choix { from { transform: scale(.96); } }
@keyframes respire { 50% { opacity: .6; } }
