/* LA CONNEXION ET LES PAGES D'ÉTAT (abonnement échu, accès suspendu) :
   en-tête réduit, chouette à gauche, carte à droite ; fenêtres « mot de
   passe oublié » et CGU. Maquette : .agent/maquette-connexion.html. */

body.cx { min-height: 100vh; display: flex; flex-direction: column; }
.vt-tete .back { margin-left: auto; color: var(--muted); text-decoration: none; font-size: 14px; }
.vt-tete .back:hover { color: var(--accent); }

.cx-scene-wrap { flex: 1; display: grid; place-items: center; padding: 48px 24px; }
.cx-scene { display: grid; grid-template-columns: 1fr 400px; gap: 64px; align-items: center; max-width: 920px; width: 100%; }
.cx-owl { text-align: center; }
.cx-owl img { width: 100%; max-width: 320px; }
.cx-owl p { margin: 18px 0 0; font-size: 22px; font-weight: 800; line-height: 1.3; letter-spacing: -.01em; }
.cx-owl p span { color: var(--gold); }

.cx-carte { background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--gold); border-radius: 10px; padding: 32px; box-shadow: var(--ombre-flottante); }
.cx-carte h1 { font-size: 24px; margin: 0 0 4px; }
.cx-carte .sub { color: var(--muted); font-size: 14px; margin: 0 0 24px; }
.cx-carte .f { margin-bottom: 16px; }
.cx-carte label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 5px; }
.cx-carte input[type=email], .cx-carte input[type=password], .cx-carte input[type=text] {
  width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: 6px; font: inherit; background: var(--surface); color: var(--ink); }
.cx-carte input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.cx-carte .btn { display: block; width: 100%; padding: 12px 20px; }
.cx-carte .btn + .btn { margin-top: 10px; }
.cx-carte .btn-o { border-color: var(--line); color: var(--ink); background: var(--surface); }
.pw { position: relative; }
.pw input { padding-right: 44px; }
.pw button { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; background: none; color: var(--muted); cursor: pointer; padding: 6px; }
.cx-ligne { display: flex; align-items: center; justify-content: space-between; margin: 4px 0 20px; font-size: 14px; }
.check { display: flex; align-items: center; gap: 8px; font-weight: 400 !important; margin: 0 !important; font-size: 14px !important; }
.check input { accent-color: var(--accent); width: 16px; height: 16px; }
.lnk { background: none; border: 0; color: var(--accent); cursor: pointer; font: inherit; padding: 0; }
.cx-msg { border-radius: 6px; padding: 10px 12px; font-size: 14px; margin-bottom: 18px; }
.cx-msg.err { background: rgba(179,65,47,.08); color: var(--err); }
.cx-msg.info { background: var(--gold-soft); color: var(--gold-ink); }
.code { font-size: 26px !important; letter-spacing: 10px; text-align: center; font-family: ui-monospace, Consolas, monospace; }
.qr { display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px; padding: 16px; margin-bottom: 16px; }
.qr img { max-width: 180px; }
.qr small { color: var(--muted); margin-top: 10px; font-size: 12px; user-select: all; }
[hidden] { display: none !important; }

/* pages d'état */
.cx-etat { text-align: center; max-width: 480px; }
.cx-etat img { width: 120px; margin-bottom: 8px; }
.cx-etat h1 { font-size: 28px; }
.cx-etat p { color: var(--muted); margin: 0 0 24px; }

/* ── fenêtres ── */
.cx-voile { position: fixed; inset: 0; background: rgba(30,30,25,.45); display: none; place-items: center; padding: 16px; z-index: 20; }
.cx-voile.on { display: grid; }
.fen { background: var(--surface); border-radius: 12px; border-top: 3px solid var(--gold); box-shadow: 0 8px 34px rgba(20,22,26,.28); width: 100%; max-width: 440px; }
.fen-tete { display: flex; align-items: center; justify-content: space-between; padding: 18px 24px 0; }
.fen h2 { font-size: 17px; margin: 0; }
.fen .x { border: 0; background: none; font-size: 22px; line-height: 1; color: var(--muted); cursor: pointer; }
.fen-corps { padding: 14px 24px 22px; }
.fen dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 10px 16px; }
.fen dt { font-weight: 700; } .fen dd { margin: 0; color: var(--muted); }
.fen.cgu { max-width: 520px; }
.cgu .vers { font-weight: 400; color: var(--muted); font-size: 12px; margin-left: 6px; }
.cgu .zone { height: 280px; overflow-y: auto; padding: 4px 24px 14px; font-size: 13.5px; color: #4a4f57; border-bottom: 1px solid var(--line); }
.cgu .zone p { margin: 10px 0 0; }
.cgu .zone h3 { font-size: 13.5px; color: var(--ink); margin: 14px 0 4px; }
.cgu .zone ul { margin: 0; padding-left: 18px; }
.cgu .zone li { margin-bottom: 3px; }
.cgu .zone li::marker { color: var(--gold); }
.cgu .hint { text-align: center; font-size: 12px; color: #8a8f96; padding: 6px; transition: opacity .4s; }
.cgu .hint.off { opacity: 0; }
.cgu .pied { padding: 16px 24px 20px; }
.cgu .pied .check { margin-bottom: 14px !important; }
.cgu .check:has(input:disabled) { opacity: .5; }
.cgu .pied .btn { display: block; width: 100%; padding: 12px; }
.cgu .refus { display: block; text-align: center; margin-top: 10px; font-size: 13px; color: var(--muted); }


@media (max-width: 860px) {
  .cx-scene { grid-template-columns: 1fr; gap: 24px; }
  .cx-owl img { max-width: 140px; } .cx-owl p { font-size: 18px; }
  .cx-carte { padding: 24px; }
}
