/* Page de connexion RESTAULIX (26 nov. 2026) — même maquette que la page de connexion RELIX (validée par Omid),
   thème RESTAULIX : noir chaud et or. Aucune ressource externe (police hébergée) : compatible avec la CSP stricte. */
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("/statique/polices/inter-latin.woff2?v=1") format("woff2");
}
:root {
  color-scheme: dark;
  --cx-fond: #0e0b08; --cx-ligne: rgba(255, 240, 210, .09);
  --cx-or: #e3b54d; --cx-or-2: #c4902a; --cx-or-clair: #f0c766; --cx-texte: #fff8ea; --cx-pale: #bfb29c;
  --cx-champ: rgba(12, 9, 6, .72); --cx-rouge: #ff9a8a; --cx-vert: #8fe3bf; --cx-sur-or: #21170a;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body.cx {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--cx-texte);
  background: radial-gradient(1200px 800px at 18% 8%, #2a2118 0%, rgba(42, 33, 24, 0) 55%),
              radial-gradient(900px 700px at 95% 90%, #261c10 0%, rgba(38, 28, 16, 0) 60%),
              linear-gradient(180deg, #0e0b08 0%, #15110d 100%);
  background-color: var(--cx-fond); min-height: 100vh; overflow-x: hidden; -webkit-font-smoothing: antialiased;
}

/* Décor : grand arc lumineux doré (haut gauche), halo, vague (bas) */
.cx-decor { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 0; }
.cx-arc {
  position: absolute; width: 1100px; height: 1100px; left: -600px; top: -560px; border-radius: 50%;
  border: 2px solid rgba(227, 181, 77, .55);
  box-shadow: 0 0 40px 6px rgba(196, 144, 42, .32), inset 0 0 80px rgba(196, 144, 42, .22);
  background: radial-gradient(circle at 70% 70%, rgba(160, 110, 30, .20), rgba(14, 11, 8, 0) 60%);
}
.cx-halo {
  position: absolute; width: 700px; height: 700px; right: -260px; top: 30%; border-radius: 50%;
  background: radial-gradient(circle, rgba(227, 181, 77, .16) 0%, rgba(227, 181, 77, 0) 65%);
}
.cx-vague { position: absolute; left: 0; right: 0; bottom: -40px; width: 100%; height: 46vh; }

/* Grille : deux colonnes équilibrées */
.cx-grille {
  position: relative; z-index: 1; min-height: 100vh; max-width: 1420px; margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 590px); align-items: center;
  gap: 56px; padding: 56px 72px;
}

/* Colonne gauche : identité */
.cx-marque { padding-left: 8px; }
.cx-logo { display: block; height: 56px; width: auto; margin: 0 0 56px; }
.cx-titre {
  margin: 0; font-weight: 700; letter-spacing: -0.032em; line-height: 1.12; font-size: clamp(38px, 3.35vw, 56px);
}
.cx-titre span { display: block; white-space: nowrap; }
.cx-degrade {
  background: linear-gradient(92deg, #c4902a 0%, #e3b54d 50%, #f6d98a 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.cx-trait { display: block; width: 48px; height: 2px; margin: 44px 0 40px; border-radius: 2px;
  background: linear-gradient(90deg, var(--cx-or), rgba(227, 181, 77, 0)); }
.cx-atouts { list-style: none; margin: 0; padding: 0; display: flex; gap: 24px; flex-wrap: nowrap; }
.cx-atouts li { display: flex; align-items: center; gap: 12px; min-width: 0; white-space: nowrap; }
.cx-pastille {
  flex: none; width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center;
  background: rgba(227, 181, 77, .10); border: 1px solid rgba(227, 181, 77, .22);
}
.cx-pastille svg { width: 20px; height: 20px; fill: none; stroke: var(--cx-or-clair); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cx-atouts b { display: block; font-size: 13.5px; font-weight: 600; color: var(--cx-texte); }
.cx-atouts small { display: block; font-size: 12px; color: var(--cx-pale); margin-top: 2px; }

/* Carte de connexion */
.cx-carte {
  position: relative; width: 100%; max-width: 590px; justify-self: end; padding: 58px 54px 26px;
  background: linear-gradient(180deg, rgba(32, 26, 19, .88), rgba(18, 14, 10, .88)); border-radius: 24px;
  border: 1px solid rgba(227, 181, 77, .38);
  box-shadow: 0 0 0 1px rgba(196, 144, 42, .08), 0 0 60px rgba(196, 144, 42, .16), 0 30px 80px rgba(0, 0, 0, .5);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.cx-logo-mobile { display: none; }
.cx-ecran h2 { margin: 0; font-size: 34px; font-weight: 700; letter-spacing: -0.02em; }
.cx-sous { margin: 10px 0 34px; color: var(--cx-pale); font-size: 16px; line-height: 1.5; }
.cx-champ { display: block; margin-bottom: 22px; }
.cx-champ > span:first-child { display: block; font-size: 15px; font-weight: 500; margin-bottom: 9px; color: #f3e9d6; }
.cx-saisie {
  position: relative; display: flex; align-items: center; height: 54px; border-radius: 10px;
  background: var(--cx-champ); border: 1px solid rgba(255, 240, 210, .13); transition: border-color .15s, box-shadow .15s;
}
.cx-saisie:focus-within { border-color: rgba(227, 181, 77, .85); box-shadow: 0 0 0 3px rgba(196, 144, 42, .24); }
.cx-ico { flex: none; width: 20px; height: 20px; margin-left: 16px; fill: none; stroke: #a89a83; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.cx-saisie input {
  flex: 1; min-width: 0; height: 100%; padding: 0 16px 0 12px; border: 0; outline: 0; background: transparent;
  color: var(--cx-texte); font: inherit; font-size: 16px;
}
.cx-saisie input::placeholder { color: #8a7d69; }
.cx-saisie input.cx-code { letter-spacing: .32em; font-size: 20px; padding-left: 16px; }
.cx-oeil {
  flex: none; width: 48px; height: 100%; border: 0; background: transparent; color: #a89a83; cursor: pointer;
  display: grid; place-items: center; border-radius: 0 10px 10px 0;
}
.cx-oeil svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.cx-oeil[aria-pressed="true"] .cx-barre { display: none; }
.cx-oeil:hover, .cx-oeil:focus-visible { color: var(--cx-or-clair); outline: 0; }
.cx-ligne { display: flex; justify-content: flex-end; margin: -6px 0 26px; }
.cx-centre { justify-content: center; margin: 22px 0 0; }
.cx-lien { color: var(--cx-or); font-size: 14.5px; font-weight: 500; text-decoration: none; }
.cx-lien:hover, .cx-lien:focus-visible { color: var(--cx-or-clair); text-decoration: underline; outline: 0; }
.cx-bouton {
  width: 100%; height: 56px; border: 0; border-radius: 10px; cursor: pointer; font: inherit; font-size: 17px; font-weight: 600;
  color: var(--cx-sur-or); display: flex; align-items: center; justify-content: center; gap: 10px; text-decoration: none;
  background: linear-gradient(90deg, #c4902a 0%, #e3b54d 100%);
  box-shadow: 0 10px 30px rgba(196, 144, 42, .32), inset 0 1px 0 rgba(255, 255, 255, .25);
  transition: transform .12s, box-shadow .15s, filter .15s;
}
.cx-bouton svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cx-bouton:hover { filter: brightness(1.07); box-shadow: 0 12px 36px rgba(196, 144, 42, .42), inset 0 1px 0 rgba(255, 255, 255, .28); }
.cx-bouton:active { transform: translateY(1px); }
.cx-bouton:focus-visible { outline: 2px solid var(--cx-or-clair); outline-offset: 3px; }
.cx-bouton[disabled] { opacity: .65; cursor: progress; }
.cx-message { margin: -8px 0 18px; padding: 10px 14px; border-radius: 10px; font-size: 14px; line-height: 1.45;
  color: var(--cx-rouge); background: rgba(255, 110, 90, .08); border: 1px solid rgba(255, 130, 110, .25); }
.cx-message.cx-info { color: var(--cx-vert); background: rgba(52, 211, 153, .08); border-color: rgba(110, 231, 183, .25); }
.cx-regle { margin: -10px 0 20px; font-size: 13px; color: var(--cx-pale); }
.cx-qr { display: grid; place-items: center; margin: 0 0 14px; }
.cx-qr img { width: 176px; height: 176px; border-radius: 12px; background: #fff; padding: 8px; image-rendering: pixelated; }
.cx-cle { margin: 0 0 22px; text-align: center; font-size: 13px; color: var(--cx-pale); word-break: break-all; }
.cx-cle code { color: var(--cx-texte); font-size: 13px; letter-spacing: .08em; }
.cx-securite {
  display: flex; align-items: center; gap: 14px; margin-top: 60px; padding: 18px 18px; border-radius: 12px;
  background: rgba(255, 240, 210, .03); border: 1px solid var(--cx-ligne);
}
.cx-bouclier { flex: none; width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center;
  background: linear-gradient(180deg, rgba(227, 181, 77, .18), rgba(227, 181, 77, .06)); border: 1px solid rgba(227, 181, 77, .26); }
.cx-bouclier svg { width: 22px; height: 22px; fill: rgba(227, 181, 77, .16); stroke: var(--cx-or-clair); stroke-width: 1.7; stroke-linejoin: round; stroke-linecap: round; }
.cx-securite b { display: block; font-size: 15px; font-weight: 600; }
.cx-securite small { display: block; margin-top: 3px; font-size: 13.5px; line-height: 1.45; color: var(--cx-pale); }

/* Poste de développement seulement : comptes simulés (aucun mot de passe) */
.cx-avis { margin: 0 0 16px; padding: 10px 14px; border-radius: 10px; font-size: 13.5px; line-height: 1.45;
  color: var(--cx-or-clair); background: rgba(227, 181, 77, .08); border: 1px solid rgba(227, 181, 77, .25); }
.cx-dev { margin-top: 22px; }
.cx-dev summary { cursor: pointer; color: var(--cx-pale); font-size: 13.5px; }
.cx-comptes { display: grid; gap: 10px; margin-top: 12px; }
.cx-comptes form { margin: 0; }
.cx-compte {
  width: 100%; min-height: 48px; padding: 10px 14px; border-radius: 10px; cursor: pointer; font: inherit; font-size: 15px;
  text-align: left; color: var(--cx-texte); background: var(--cx-champ); border: 1px solid rgba(255, 240, 210, .13);
  overflow-wrap: anywhere;
}
.cx-compte small { color: var(--cx-pale); }
.cx-compte:hover, .cx-compte:focus-visible { border-color: rgba(227, 181, 77, .85); outline: 0; }
[hidden] { display: none !important; }

/* Tablette */
@media (max-width: 1240px) {
  .cx-grille { grid-template-columns: minmax(0, 1fr) minmax(0, 500px); gap: 40px; padding: 48px 40px; }
  .cx-carte { padding: 48px 40px 26px; }
  .cx-atouts { flex-wrap: wrap; gap: 18px 22px; }
  .cx-titre span { white-space: normal; }
}
/* Cellulaire et petite tablette : une colonne, la CARTE D'ABORD (logo en tête), l'identité ensuite */
@media (max-width: 900px) {
  .cx-grille { grid-template-columns: minmax(0, 1fr); gap: 36px; padding: 24px 16px 40px; align-content: start; }
  .cx-carte { order: -1; justify-self: center; max-width: 520px; padding: 28px 20px 22px; border-radius: 20px; }
  .cx-logo-mobile { display: block; height: 40px; width: auto; margin: 0 auto 22px; }
  .cx-marque { padding: 0; text-align: center; }
  .cx-logo { display: none; }
  .cx-titre { font-size: clamp(26px, 7.5vw, 40px); }
  .cx-trait { margin: 24px auto; }
  .cx-atouts { flex-direction: column; align-items: center; gap: 14px; }
  .cx-atouts li { text-align: left; width: min(100%, 300px); white-space: normal; }
  .cx-ecran h2 { font-size: 28px; }
  .cx-sous { margin-bottom: 24px; font-size: 15px; }
  .cx-securite { margin-top: 28px; }
  .cx-arc { width: 760px; height: 760px; left: -470px; top: -470px; }
  .cx-vague { height: 30vh; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
