﻿/* =====================================================================
   Pages de connexion, « Mot de passe oublié » et déconnexion (Extranet et Intranet).
   Gestion des utilisateurs Extranet, sous-lot U3d (décisions 45, 57 à 60 ; maquette Connexion.dc.html).
   Préfixe cx- ; fichier copié à l'identique dans login/css de chaque site (dossier ouvert sans connexion).
   ===================================================================== */
:root {
  --cx-orange: #f97216;
  --cx-orange-fonce: #b5500e;
  --cx-encre: #2b2622;
  --cx-encre-douce: #6b625b;
  --cx-sable: #faf6f2;
  --cx-filet: #d9cfc6;
  --cx-champ: #8c827a;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body.cx-body { font-family: 'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif; font-size: 16px; line-height: 1.5; color: var(--cx-encre); background: var(--cx-sable); }
.cx-body a { color: var(--cx-orange-fonce); }
.cx-body a:hover { color: var(--cx-encre); }
.cx-body form { min-height: 100vh; display: flex; flex-direction: column; }
.cx-test { background: var(--cx-encre); color: #fff; text-align: center; font-size: 13px; padding: 6px; letter-spacing: .04em; }
.cx-haut { display: flex; align-items: center; gap: 16px; padding: 16px 32px; background: #fff; border-bottom: 1px solid var(--cx-filet); }
.cx-haut img { width: 56px; height: auto; }
.cx-haut b { font-size: 18px; font-weight: 600; }
.cx-centre { flex: 1; display: flex; align-items: center; justify-content: center; padding: 32px 16px; }
.cx-grille { display: flex; flex-wrap: wrap; gap: 32px; align-items: stretch; max-width: 980px; width: 100%; }
.cx-accroche { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 12px; }
.cx-accroche h1 { margin: 0; font-size: 36px; line-height: 44px; font-weight: 300; }
.cx-accroche p { margin: 0; color: var(--cx-encre-douce); }
.cx-carte { flex: 1 1 360px; min-width: 0; max-width: 440px; background: #fff; border: 1px solid var(--cx-filet); border-top: 6px solid var(--cx-orange); border-radius: 8px; padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.cx-carte h2 { margin: 0; font-size: 24px; font-weight: 600; }
.cx-carte p { margin: 0; font-size: 14px; }
.cx-champ { display: flex; flex-direction: column; gap: 6px; }
.cx-champ label { font-weight: 600; font-size: 14px; }
.cx-champ input[type=text], .cx-champ input[type=password] { min-height: 48px; border: 1px solid var(--cx-champ); border-radius: 4px; padding: 10px 12px; font: inherit; font-size: 16px; width: 100%; background: #fff; color: var(--cx-encre); }
.cx-champ input:focus { outline: 2px solid var(--cx-orange); outline-offset: 1px; border-color: var(--cx-orange-fonce); }
.cx-mdp { display: flex; }
.cx-mdp input { flex: 1; min-width: 0; border-radius: 4px 0 0 4px !important; }
.cx-mdp button { min-width: 96px; border: 1px solid var(--cx-champ); border-left: 0; border-radius: 0 4px 4px 0; background: var(--cx-sable); font: inherit; font-size: 14px; color: var(--cx-encre); cursor: pointer; }
.cx-case { display: flex; gap: 8px; align-items: center; font-size: 14px; }
.cx-case input { width: 18px; height: 18px; margin: 0; }
.cx-case label { margin: 0; font-weight: 400; }
.cx-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; border-radius: 4px; border: 1px solid var(--cx-orange-fonce); background: var(--cx-orange-fonce); color: #fff !important; font: inherit; font-weight: 600; font-size: 16px; cursor: pointer; text-decoration: none; padding: 0 20px; width: 100%; }
.cx-btn:hover { background: #8f3f0b; }
.cx-btn.cx-sec { background: #fff; color: var(--cx-orange-fonce) !important; }
.cx-btn.cx-sec:hover { background: var(--cx-sable); }
.cx-erreur { background: #f9e1de; border: 1px solid #eebcb5; color: #962419; border-radius: 4px; padding: 10px 12px; font-size: 14px; }
.cx-erreur:empty { display: none; }
.cx-ok { background: #e3f1e8; border: 1px solid #b9dcc6; color: #1f5f3a; border-radius: 4px; padding: 10px 12px; font-size: 14px; }
.cx-petit { font-size: 14px; color: var(--cx-encre-douce); }
.cx-pied { padding: 16px 32px; font-size: 12px; color: var(--cx-encre-douce); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; border-top: 1px solid var(--cx-filet); background: #fff; }
@media (max-width: 600px) {
  .cx-haut, .cx-pied { padding: 12px 16px; }
  .cx-accroche h1 { font-size: 28px; line-height: 36px; }
  .cx-carte { padding: 20px; }
}
