/* Page de connexion « l'arène » (26/09/2026) : les gradins du logo, agrandis en
   décor. Couleurs de MARQUE = les --pa-* de shell.css, que la charte graphique
   en base surcharge (shell.js) : panneau = couleur principale, gradins et
   numéros = couleur secondaire. Polices : celles de la charte, si elle en porte
   (ses règles l'emportent sur h1/h2 et body ci-dessous). */
:root {
  --fond: #f5f1e8; --champ: #fffdf8; --encre: #1c2430; --gris: #5a6472; --bord: #cfc7b6; --filet: #e2dccf;
  --err: #b42318; --err-bg: #fdeceb;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --fond: #10161f; --champ: #0c1219; --encre: #e6ebf2; --gris: #9aa7b6; --bord: #2c3746; --filet: #222c38;
    --err: #ff7b70; --err-bg: #2c1614;
  }
}
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  font-family: "Source Sans 3", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--encre); background: var(--fond); -webkit-font-smoothing: antialiased;
}
h1, h2 { font-family: "Fraunces", Georgia, serif; font-weight: 500; }

.page { display: grid; grid-template-columns: minmax(0, 1fr) minmax(380px, 520px); min-height: 100vh; min-height: 100dvh; }

/* ── L'arène ── */
.arene {
  position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; gap: 40px;
  padding: 56px clamp(28px, 5vw, 72px) 64px;
  background: var(--pa-brand); color: var(--pa-on-brand);
}
.gradins { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.arc { fill: none; stroke: currentColor; stroke-opacity: .16; stroke-width: 1; }
.arc--or { stroke: var(--pa-brand-2-sur-brand); stroke-opacity: .6; stroke-width: 1.6; }
.arene > *:not(.gradins) { position: relative; }

.marque { display: flex; align-items: center; gap: 12px; }
.marque .logo {
  width: 44px; height: 44px; flex: none; border-radius: 12px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--pa-on-brand) 12%, transparent);
}
.marque .logo svg { width: 26px; height: 26px; }
/* Logo de la charte (shell.js) : une image sur fond blanc, à sa largeur. */
.marque .logo.a-image { width: auto; max-width: 190px; padding: 6px 10px; background: #fff; }
.marque .logo.a-image img { display: block; height: 32px; width: auto; max-width: 170px; object-fit: contain; }
.marque .nom { display: block; font-size: 17px; font-weight: 700; }
.marque .sous { display: block; font-size: 13px; opacity: .72; }

.accroche { display: flex; flex-direction: column; gap: 22px; max-width: 700px; }
.surtitre { font-size: 13px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--pa-brand-2-sur-brand); }
.accroche h1 { margin: 0; font-size: clamp(40px, 5.2vw, 76px); line-height: 1.03; letter-spacing: -.02em; }
.accroche p { margin: 0; max-width: 560px; font-size: 20px; line-height: 1.5; opacity: .84; }

.etapes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.etapes li {
  display: flex; flex-direction: column; gap: 6px; padding-top: 14px;
  border-top: 1px solid color-mix(in srgb, var(--pa-on-brand) 24%, transparent);
}
.etapes .n { font-family: "Fraunces", Georgia, serif; font-size: 15px; color: var(--pa-brand-2-sur-brand); }
.etapes .t { font-size: 16px; font-weight: 600; }
.etapes .d { font-size: 14px; opacity: .74; }

/* ── Connexion ── */
.connexion { display: flex; flex-direction: column; justify-content: center; gap: 28px; padding: 64px clamp(28px, 5vw, 72px); }
.connexion h2 { margin: 0 0 8px; font-size: 38px; letter-spacing: -.01em; color: var(--pa-brand-texte); }
.connexion .lead { margin: 0; font-size: 16px; color: var(--gris); }
form { display: flex; flex-direction: column; gap: 10px; }
label { font-size: 14px; font-weight: 600; }
input[type=password] {
  height: 52px; padding: 0 16px; font: inherit; font-size: 16px; color: var(--encre);
  border: 1px solid var(--bord); border-radius: 12px; background: var(--champ); outline: none;
  transition: border-color .15s, box-shadow .15s;
}
input[type=password]:focus { border-color: var(--pa-brand-ui); box-shadow: 0 0 0 3px var(--pa-brand-tint-fort); }
button {
  margin-top: 12px; height: 54px; border: 0; border-radius: 12px; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  font: inherit; font-size: 16px; font-weight: 700;
  background: var(--pa-brand-ui); color: var(--pa-on-brand-ui); transition: background .15s;
}
button:hover { background: var(--pa-brand-ui-hover); }
button svg { width: 18px; height: 18px; }
button:focus-visible, input:focus-visible { outline: 2px solid var(--pa-brand-texte); outline-offset: 2px; }
.denied { padding: 10px 12px; font-size: 14px; background: var(--err-bg); color: var(--err); border: 1px solid color-mix(in srgb, var(--err) 30%, transparent); border-radius: 10px; }
.pied { display: flex; align-items: center; gap: 12px; padding-top: 20px; border-top: 1px solid var(--filet); font-size: 14px; color: var(--gris); }
.pied i { width: 8px; height: 8px; border-radius: 50%; background: var(--pa-brand-2); flex: none; }

@media (max-width: 1100px) {
  .etapes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .page { grid-template-columns: minmax(0, 1fr); }
  .arene { padding-bottom: 40px; }
  .accroche p { font-size: 17px; }
  .etapes { display: none; }
  .connexion { padding-top: 40px; }
}
