/* Armil — prototype. Deux habillages : .club (membres et borne) et .poste (personnel). */
:root { --fond: #151311; --or: #CBA267; --or-clair: #E0C38D; --or-sombre: #8E6F3F; --gris: #2B2622;
        --texte: #EDE6D8; --doux: #9A9284; --rouge: #C41E2E; --vert: #3FB56F; --carte: #1E1B18; }
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--fond); }
body { color: var(--texte); font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; font-size: 17px; line-height: 1.45; }
a { color: var(--or-clair); }
button, input { font: inherit; }
.titre { font-family: "Cinzel", "Trajan Pro", Georgia, "Times New Roman", serif; letter-spacing: .2em; text-transform: uppercase; color: var(--or-clair); font-weight: 400; }

/* ── pages membres ── */
.club main { max-width: 460px; margin: 0 auto; padding: 16px 20px 40px; display: flex; flex-direction: column; align-items: center; gap: 22px; }
.club .logo { width: min(52vw, 220px); height: auto; mix-blend-mode: lighten; }
.club h1 { font-size: 19px; margin: 0; text-align: center; }
.club h2 { font-size: 14px; margin: 0 0 10px; }
.bloc { width: 100%; background: var(--carte); border: 1px solid var(--gris); border-radius: 10px; padding: 18px; }
.bloc p { margin: 0 0 8px; }
.bloc p:last-child { margin-bottom: 0; }
.doux { color: var(--doux); font-size: 15px; }
form.fiche { width: 100%; display: flex; flex-direction: column; gap: 14px; }
form.fiche label { display: flex; flex-direction: column; gap: 6px; font-size: 15px; color: var(--doux); }
form.fiche input[type=text], form.fiche input[type=password] { background: #0E0C0B; color: var(--texte); border: 1px solid var(--or-sombre); border-radius: 6px; padding: 13px 12px; font-size: 18px; }
form.fiche .case { flex-direction: row; align-items: flex-start; gap: 10px; color: var(--texte); }
form.fiche .case input { width: 22px; height: 22px; margin-top: 2px; accent-color: var(--or); }
.bouton { display: inline-block; text-align: center; text-decoration: none; cursor: pointer; background: var(--or); color: #1A1410; border: 0; border-radius: 6px; padding: 14px 20px; font-size: 17px; font-weight: 600; }
.bouton.creux { background: transparent; color: var(--or-clair); border: 1px solid var(--or-sombre); font-weight: 400; }
.bouton.large { width: 100%; }
.alerte { width: 100%; background: #3A1418; border: 1px solid var(--rouge); color: #F3C9CD; border-radius: 6px; padding: 12px 14px; }
.info { width: 100%; background: #16261C; border: 1px solid var(--vert); color: #CFEBD9; border-radius: 6px; padding: 12px 14px; }
.qr { background: #F5F3EE; border-radius: 12px; padding: 14px; width: min(72vw, 280px); }
.qr img { display: block; width: 100%; height: auto; }
.code { font-family: ui-monospace, Consolas, monospace; font-size: 26px; letter-spacing: .22em; color: var(--or-clair); text-align: center; }
.lignes { list-style: none; margin: 0; padding: 0; }
.lignes li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid var(--gris); }
.lignes li:first-child { border-top: 0; }
.lignes .total { font-weight: 600; color: var(--or-clair); }
.pied { color: var(--doux); font-size: 13px; text-align: center; }

/* ── poste du personnel ── */
.poste { --fond: #101114; background: #101114; }
.poste main { max-width: 620px; margin: 0 auto; padding: 10px 14px 60px; }
.bandeau { background: #2A2410; color: #EFD98A; font-size: 13px; text-align: center; padding: 6px 10px; }
.modes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 10px 0; }
.modes button { background: #1C1E24; color: #C9CCD4; border: 1px solid #2C2F38; border-radius: 8px; padding: 12px 4px; font-size: 15px; cursor: pointer; }
.modes button.actif { background: #E9E4D8; color: #101114; border-color: #E9E4D8; font-weight: 600; }
.zone { background: #181A20; border: 1px solid #2C2F38; border-radius: 12px; padding: 18px; min-height: 250px; }
.zone h2 { margin: 0 0 4px; font-size: 20px; }
.consigne { font-size: 22px; font-weight: 600; margin: 14px 0; color: #FFFFFF; }
.message { margin-top: 12px; border-radius: 10px; padding: 14px 16px; font-size: 18px; min-height: 54px; }
.message.ok { background: #153222; color: #BFEFD2; }
.message.ko { background: #3B151A; color: #F6C6CC; }
.message.vide { background: transparent; }
.grille { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.grille button { background: #22252D; color: #F1F1F1; border: 1px solid #343843; border-radius: 10px; padding: 14px 10px; text-align: left; cursor: pointer; font-size: 16px; }
.grille button small { display: block; color: #A7ABB6; margin-top: 2px; }
.panier { margin: 12px 0 0; padding: 10px 12px; background: #0F1014; border-radius: 8px; font-size: 16px; }
.rangee { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.poste .bouton { background: #E9E4D8; color: #101114; }
.poste .bouton.creux { background: transparent; color: #E9E4D8; border: 1px solid #4A4E5A; }
.poste .bouton.danger { background: #B4232F; color: #fff; }
.poste input[type=text], .poste input[type=password] { background: #0F1014; color: #fff; border: 1px solid #4A4E5A; border-radius: 6px; padding: 12px; font-size: 18px; width: 100%; }
.badge { display: inline-block; border-radius: 99px; padding: 2px 10px; font-size: 13px; background: #2C2F38; color: #C9CCD4; }
.badge.ok { background: #153222; color: #BFEFD2; }
.badge.ko { background: #3B151A; color: #F6C6CC; }
video.camera { width: 100%; border-radius: 10px; background: #000; margin-top: 10px; }
details.outils { margin-top: 18px; color: #8B8F9A; font-size: 14px; }
details.outils summary { cursor: pointer; padding: 6px 0; }
table.liste { width: 100%; border-collapse: collapse; font-size: 15px; }
table.liste th, table.liste td { text-align: left; padding: 7px 6px; border-top: 1px solid #2C2F38; vertical-align: top; }
table.liste th { color: #8B8F9A; font-weight: 500; border-top: 0; }
.liens { display: flex; gap: 14px; flex-wrap: wrap; font-size: 14px; margin: 6px 0 0; }

/* ── borne ── */
.borne { display: flex; flex-direction: column; align-items: center; min-height: 100vh; padding: 12px 20px 16px; color: var(--or-clair); font-family: "Cinzel", "Trajan Pro", Georgia, "Times New Roman", serif; overflow: hidden; }
.borne .logo { width: min(52vw, 230px); max-height: 30vh; object-fit: contain; height: auto; display: block; mix-blend-mode: lighten; }
.borne main { flex: 1; width: 100%; max-width: 520px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; padding: 4px 0 8px; }
.coeur { width: min(60vw, 240px, 34vh); height: auto; display: block; overflow: visible; }
.moitie { fill: var(--gris); stroke: var(--gris); stroke-width: 3; stroke-linejoin: round; transition: fill .15s, stroke .15s, transform .35s ease-out; }
.moitie.pret { fill: transparent; stroke: var(--rouge); }
.moitie.lu { fill: var(--rouge); stroke: var(--rouge); }
.moitie.ok { fill: var(--or); stroke: var(--or-clair); }
.coeur.uni #g { transform: translateX(3px); }
.coeur.uni #d { transform: translateX(-3px); }
@keyframes battement { 0% { transform: scale(1); } 40% { transform: scale(1.1); } 100% { transform: scale(1); } }
@keyframes appel { 0%, 100% { opacity: 1; } 50% { opacity: .4; } }
@media (prefers-reduced-motion: no-preference) {
  .coeur.uni { animation: battement .5s ease-out .3s; }
  .moitie.pret { animation: appel 1.4s ease-in-out infinite; }
}
#etat { width: 100%; display: flex; align-items: center; justify-content: center; gap: 14px; font-size: 15px; letter-spacing: .2em; text-transform: uppercase; text-align: center; min-height: 28px; white-space: nowrap; }
#etat::before, #etat::after { content: ""; flex: 0 1 46px; min-width: 0; height: 1px; background: var(--or-sombre); }
#etat.alerte { white-space: normal; color: #E9A3AA; font-size: 15px; letter-spacing: .04em; text-transform: none; font-family: system-ui, sans-serif; }
#etat.alerte::before, #etat.alerte::after { display: none; }
.piste { width: 180px; height: 2px; background: var(--gris); }
#barre { height: 2px; width: 0; background: var(--or); }
#suite { font-family: Georgia, "Times New Roman", serif; font-style: italic; font-size: 17px; line-height: 1.35; color: var(--or); min-height: 46px; max-width: 420px; text-align: center; opacity: 0; transition: opacity .4s; }
#suite.visible { opacity: 1; }
#demarrer { background: transparent; color: var(--or); border: 1px solid var(--or); border-radius: 0; font-family: inherit; font-size: 15px; letter-spacing: .2em; text-transform: uppercase; padding: 13px 24px; cursor: pointer; }
.borne .bracelet { width: min(70vw, 300px); max-height: 18vh; object-fit: contain; height: auto; display: block; mix-blend-mode: lighten;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 58%, transparent 71%); mask-image: radial-gradient(ellipse at center, #000 58%, transparent 71%); }
#compteur { font-family: system-ui, sans-serif; font-size: 13px; letter-spacing: .08em; color: var(--or-sombre); min-height: 18px; }
#reseau { position: fixed; right: 10px; bottom: 8px; font-family: system-ui, sans-serif; font-size: 12px; color: #7A6A50; }
.borne details { width: 100%; max-width: 520px; font-family: system-ui, sans-serif; color: #77736B; font-size: 13px; }
.borne summary { cursor: pointer; text-align: center; padding: 4px; list-style: none; }
.borne summary::-webkit-details-marker { display: none; }
.simu { display: flex; gap: 8px; margin-top: 8px; }
.simu button { flex: 1; background: var(--gris); color: #D9D4C8; border: 0; border-radius: 6px; padding: 11px 0; font-size: 14px; cursor: pointer; }

/* ── réglages du membre ── */
.choix { display: flex; flex-direction: column; gap: 12px; margin: 12px 0; }
.choix label, form.fiche .choix label { display: flex; flex-direction: row; align-items: flex-start; gap: 10px; color: var(--texte); font-size: 16px; }
.choix input[type=checkbox], .choix input[type=radio] { width: 22px; height: 22px; margin-top: 2px; flex: none; accent-color: var(--or); }
.choix small { display: block; color: var(--doux); font-size: 14px; }
.canaux { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.canaux label, form.fiche .canaux label { justify-content: center; text-align: center; align-items: center; border: 1px solid var(--or-sombre); border-radius: 6px; padding: 11px 4px; cursor: pointer; }
.canaux input { position: absolute; opacity: 0; pointer-events: none; }
.canaux label:has(input:checked) { background: var(--or); color: #1A1410; font-weight: 600; }
.bouton.petit { padding: 7px 12px; font-size: 14px; }
.bouton.danger { background: #8E1D28; color: #fff; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.lignes li.colonne { flex-direction: column; align-items: flex-start; gap: 4px; }
form.enligne { display: inline; }
