/* Page de connexion : liste des comptes fictifs de développement, avec les jetons de connexion.css (RELIX). */
.cx-comptes { margin-top: 30px; }
.cx-comptes-titre { margin: 0 0 12px; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--cx-pale); }
.cx-comptes ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.cx-comptes form { margin: 0; }
.cx-compte { width: 100%; text-align: left; cursor: pointer; font: inherit; color: var(--cx-texte); padding: 11px 16px; border-radius: 10px;
  background: var(--cx-champ); border: 1px solid rgba(255, 255, 255, .12); transition: border-color .15s, box-shadow .15s; }
.cx-compte:hover, .cx-compte:focus-visible { border-color: rgba(255, 149, 69, .85); box-shadow: 0 0 0 3px rgba(242, 106, 13, .28); outline: 0; }
.cx-compte b { display: block; font-size: 14.5px; font-weight: 600; }
.cx-compte small { display: block; margin-top: 2px; font-size: 12.5px; color: var(--cx-pale); }
.cx-securite { margin-top: 34px; }

/* C.0 : bouton-lien de connexion OIDC, message d'erreur en tête de carte, fournisseur simulé */
a.cx-bouton { text-decoration: none; }
.cx-alerte { margin: 0 0 18px; }
.idp-bandeau { margin: 0 0 18px; padding: 8px 12px; border-radius: 10px; font-size: 13px; font-weight: 600; letter-spacing: .02em;
  color: #fbbf24; background: rgba(251, 191, 36, .08); border: 1px dashed rgba(251, 191, 36, .45); text-align: center; }
.cx-grille-seule { grid-template-columns: minmax(0, 480px); justify-content: center; }
.idp-portees { border: 1px solid rgba(255,255,255,.12); border-radius: 10px; margin: 0 0 18px; padding: 10px 14px; display: grid; gap: 8px; color: inherit; font-size: 14px; }
.idp-portees label { display: flex; gap: 10px; align-items: flex-start; }
.idp-refuser { display: block; margin: 14px auto 0; background: none; border: 0; cursor: pointer; font: inherit; }

/* Marque Legalix (2 nov. 2026) : logo officiel complet (icône + mot, texte blanc) ; la page est toujours sombre. */
.cx-logo-legalix { display: flex; align-items: center; height: 74px; }
.cx-logo-legalix img { display: block; height: 74px; width: auto; max-width: 100%; }
@media (max-width: 900px) { .cx-logo-legalix { justify-content: center; height: 56px; } .cx-logo-legalix img { height: 56px; } }
/* Ordinateur moyen (≤ 1 440 px) : le titre et les atouts passent à la ligne au lieu de glisser sous la carte. */
@media (max-width: 1440px) { .cx-titre span { white-space: normal; } .cx-atouts { flex-wrap: wrap; gap: 18px 22px; } }

/* Couleur de la marque = ORANGE du logo (2 nov. 2026) : surcharge des jetons et décors violets de connexion.css (copie
   de RELIX, non modifiée). Fond brun-noir du logo. Contrastes : texte blanc sur le bouton (#C2410C → #C8470B) ≥ 4,8:1 ;
   liens #FF9545 ≥ 7:1 et texte pâle #B3A79C ≥ 7:1 sur la carte ; focus #FFB067 visible. */
:root { --cx-fond: #0B0806; --cx-violet: #F26A0D; --cx-violet-2: #FF9545; --cx-lavande: #FFB067; --cx-texte: #F7F3EF;
  --cx-pale: #B3A79C; --cx-champ: rgba(20, 13, 8, .72); }
body.cx {
  background: radial-gradient(1200px 800px at 18% 8%, #2A1408 0%, rgba(42, 20, 8, 0) 55%),
              radial-gradient(900px 700px at 95% 90%, #241006 0%, rgba(36, 16, 6, 0) 60%),
              linear-gradient(180deg, #0D0907 0%, #0B0806 100%);
  background-color: var(--cx-fond);
}
.cx-arc { border-color: rgba(255, 149, 69, .5); box-shadow: 0 0 40px 6px rgba(242, 106, 13, .3), inset 0 0 80px rgba(242, 106, 13, .2);
  background: radial-gradient(circle at 70% 70%, rgba(194, 65, 12, .2), rgba(20, 10, 4, 0) 60%); }
.cx-halo { background: radial-gradient(circle, rgba(242, 106, 13, .18) 0%, rgba(242, 106, 13, 0) 65%); }
.cx-degrade { background: linear-gradient(92deg, #F26A0D 0%, #FF9545 55%, #FFC58A 100%); -webkit-background-clip: text; background-clip: text; }
.cx-trait { background: linear-gradient(90deg, var(--cx-violet), rgba(242, 106, 13, 0)); }
.cx-pastille { background: rgba(242, 106, 13, .10); border-color: rgba(255, 149, 69, .2); }
.cx-carte { background: linear-gradient(180deg, rgba(34, 22, 14, .88), rgba(16, 11, 8, .88)); border-color: rgba(255, 149, 69, .32);
  box-shadow: 0 0 0 1px rgba(242, 106, 13, .08), 0 0 60px rgba(242, 106, 13, .14), 0 30px 80px rgba(0, 0, 0, .5); }
.cx-espace { background: rgba(242, 106, 13, .12); border-color: rgba(255, 149, 69, .35); }
.cx-champ > span:first-child { color: #EFE7E0; }
.cx-saisie:focus-within { border-color: rgba(255, 149, 69, .85); box-shadow: 0 0 0 3px rgba(242, 106, 13, .25); }
.cx-ico, .cx-oeil { stroke: #A89C92; color: #A89C92; }
.cx-saisie input::placeholder { color: #8C8178; }
.cx-bouton { background: linear-gradient(90deg, #C2410C 0%, #C8470B 100%);
  box-shadow: 0 10px 30px rgba(242, 106, 13, .28), inset 0 1px 0 rgba(255, 255, 255, .16); }
.cx-bouton:hover { filter: none; background: linear-gradient(90deg, #B53F09 0%, #BC420A 100%);
  box-shadow: 0 12px 36px rgba(242, 106, 13, .38), inset 0 1px 0 rgba(255, 255, 255, .18); }

/* Page de connexion Legalix (nov. 2026) : formulaire dans la page (SRP → Cognito), bouton clair / sombre, logo selon le
   thème. Le mode sombre ci-dessus reste celui d'origine (aussi sans JavaScript) ; le mode clair est posé par
   connexion-theme.js (html[data-mode="light"]). Contrastes du mode clair sur la carte blanche : texte #1E1611 ≥ 15:1,
   texte pâle #685A4F ≥ 6:1, liens #B33F0A ≥ 5,5:1, accent #C2410C ≥ 5:1, bouton blanc sur #C8470B ≥ 4,8:1. */
.cx-logo-legalix .cx-logo-clair { display: none; }
.cx-mode { position: fixed; top: 18px; right: 18px; z-index: 2; width: 42px; height: 42px; border-radius: 50%; cursor: pointer;
  display: grid; place-items: center; color: var(--cx-pale); background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .12); transition: color .15s, border-color .15s; }
.cx-mode:hover, .cx-mode:focus-visible { color: var(--cx-lavande); border-color: rgba(255, 149, 69, .6); outline: 0; }
.cx-mode svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cx-mode .cx-mode-lune { display: none; }
.cx-cle code { overflow-wrap: anywhere; }

html[data-mode="light"] { color-scheme: light; --cx-fond: #FBF7F3; --cx-texte: #1E1611; --cx-pale: #685A4F;
  --cx-violet-2: #B33F0A; --cx-lavande: #C2410C; --cx-champ: #FFFFFF; --cx-ligne: rgba(30, 22, 17, .09);
  --cx-rouge: #B42318; --cx-vert: #067647; }
html[data-mode="light"] body.cx {
  background: radial-gradient(1200px 800px at 18% 8%, #FFE9D6 0%, rgba(255, 233, 214, 0) 55%),
              radial-gradient(900px 700px at 95% 90%, #FFEFE2 0%, rgba(255, 239, 226, 0) 60%),
              linear-gradient(180deg, #FDFAF7 0%, #FBF7F3 100%);
  background-color: var(--cx-fond); }
html[data-mode="light"] .cx-arc { border-color: rgba(242, 106, 13, .32); box-shadow: 0 0 40px 6px rgba(242, 106, 13, .12), inset 0 0 80px rgba(242, 106, 13, .08);
  background: radial-gradient(circle at 70% 70%, rgba(255, 176, 103, .16), rgba(255, 255, 255, 0) 60%); }
html[data-mode="light"] .cx-halo { background: radial-gradient(circle, rgba(242, 106, 13, .10) 0%, rgba(242, 106, 13, 0) 65%); }
html[data-mode="light"] .cx-vague { opacity: .55; }
html[data-mode="light"] .cx-logo-legalix img { display: none; }
html[data-mode="light"] .cx-logo-legalix .cx-logo-clair { display: block; }
html[data-mode="light"] .cx-degrade { background: linear-gradient(92deg, #B33F0A 0%, #D9520C 55%, #F26A0D 100%);
  -webkit-background-clip: text; background-clip: text; }
html[data-mode="light"] .cx-pastille { background: rgba(242, 106, 13, .08); border-color: rgba(194, 65, 12, .18); }
html[data-mode="light"] .cx-carte { background: rgba(255, 255, 255, .94); border-color: rgba(194, 65, 12, .22);
  box-shadow: 0 0 0 1px rgba(242, 106, 13, .05), 0 24px 60px rgba(120, 60, 20, .12), 0 2px 8px rgba(30, 22, 17, .05); }
html[data-mode="light"] .cx-espace { background: rgba(242, 106, 13, .08); border-color: rgba(194, 65, 12, .28); }
html[data-mode="light"] .cx-champ > span:first-child { color: #3A2E26; }
html[data-mode="light"] .cx-saisie { border-color: rgba(30, 22, 17, .16); }
html[data-mode="light"] .cx-saisie:focus-within { border-color: #C2410C; box-shadow: 0 0 0 3px rgba(242, 106, 13, .18); }
html[data-mode="light"] .cx-ico, html[data-mode="light"] .cx-oeil { stroke: #7A6A5E; color: #7A6A5E; }
html[data-mode="light"] .cx-saisie input::placeholder { color: #9A8B80; }
html[data-mode="light"] .cx-bouton { box-shadow: 0 10px 24px rgba(194, 65, 12, .22), inset 0 1px 0 rgba(255, 255, 255, .16); }
html[data-mode="light"] .cx-message { background: rgba(180, 35, 24, .06); border-color: rgba(180, 35, 24, .25); }
html[data-mode="light"] .cx-message.cx-info { background: rgba(6, 118, 71, .07); border-color: rgba(6, 118, 71, .25); }
html[data-mode="light"] .cx-securite { background: rgba(30, 22, 17, .025); }
html[data-mode="light"] .cx-bouclier { background: rgba(6, 118, 71, .08); border-color: rgba(6, 118, 71, .22); }
html[data-mode="light"] .cx-bouclier svg { fill: rgba(6, 118, 71, .12); stroke: #067647; }
html[data-mode="light"] .cx-qr img { border: 1px solid rgba(30, 22, 17, .12); }
html[data-mode="light"] .cx-compte { border-color: rgba(30, 22, 17, .14); }
html[data-mode="light"] .cx-mode { background: rgba(255, 255, 255, .8); border-color: rgba(30, 22, 17, .14); }
html[data-mode="light"] .cx-mode .cx-mode-soleil { display: none; }
html[data-mode="light"] .cx-mode .cx-mode-lune { display: block; }
@media (max-width: 900px) { .cx-mode { top: 12px; right: 12px; width: 38px; height: 38px; } }
