/* Service d'identité EZOS — charte reprise de web.ezos.com (styles.css du site) :
   mêmes couleurs, police système Segoe UI (aucune police à télécharger), formes arrondies, dégradés.
   Le site est en thème clair uniquement : ces pages aussi. */
:root {
  --navy: #0a336f;
  --blue: #0461a8;
  --cyan: #1eb0f0;
  --ink: #0f1b2d;
  --muted: #4a5a70;
  --line: #dfe6ef;
  --bg: #ffffff;
  --bg-soft: #f3f7fc;
  --card: #ffffff;
  --ok: #11804a;
  --ok-soft: #e7f7ee;
  --warn: #8a5a00;
  --warn-soft: #fff6e0;
  --danger: #b42318;
  --danger-soft: #fdecea;
  --radius: 14px;
  --radius-lg: 22px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg-soft);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; border-radius: 6px; }

.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; background: #fff; padding: 8px 12px; z-index: 10; }

/* Fond : les deux halos du bandeau d'accueil de web.ezos.com */
.backdrop {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(900px 420px at 85% -10%, rgba(30, 176, 240, .22), transparent 60%),
    radial-gradient(700px 380px at -10% 110%, rgba(4, 97, 168, .14), transparent 60%),
    var(--bg-soft);
}

.brand-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  width: 100%; max-width: 1120px; margin: 0 auto; padding: 20px 16px;
}
.brand img { height: 30px; width: auto; }

.shell { flex: 1; width: 100%; max-width: 480px; margin: 0 auto; padding: 8px 16px 48px; }
.shell.wide { max-width: 760px; }

/* Carte principale */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px 22px;
  box-shadow: 0 30px 60px -28px rgba(10, 51, 111, .28);
}
.card + .card { margin-top: 18px; }
.card.soft { background: var(--bg-soft); box-shadow: none; }

.eyebrow {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--blue); background: rgba(4, 97, 168, .08); padding: 5px 12px; border-radius: 999px;
}
.pill {
  font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px;
  background: var(--warn-soft); color: var(--warn);
}

h1 { font-size: clamp(26px, 6vw, 32px); line-height: 1.15; margin: 14px 0 10px; color: var(--navy); letter-spacing: -.02em; }
h1 .accent { background: linear-gradient(90deg, var(--blue), var(--cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; }
h2 { font-size: 19px; margin: 0 0 10px; color: var(--navy); }
p { margin: 0 0 14px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }

/* Symbole EZOS (pages d'attente) */
.symbol {
  width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; margin-bottom: 6px;
  background: linear-gradient(135deg, rgba(4, 97, 168, .12), rgba(30, 176, 240, .22)); color: var(--blue);
}
.symbol svg { width: 30px; height: 30px; }

/* Boutons (pilules, dégradé bleu → cyan) */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; min-height: 48px; padding: 12px 22px; border-radius: 999px;
  font: inherit; font-weight: 600; font-size: 16px; text-decoration: none; cursor: pointer;
  border: 1.5px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
}
.btn-primary { background: linear-gradient(135deg, var(--blue), var(--cyan)); color: #fff; box-shadow: 0 6px 18px rgba(4, 97, 168, .28); }
.btn-primary:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 10px 24px rgba(4, 97, 168, .34); }
.btn-ghost { background: #fff; border-color: var(--blue); color: var(--blue); }
.btn-ghost:hover { background: var(--blue); color: #fff; }
.btn-quiet { background: transparent; color: var(--muted); border-color: var(--line); }
.btn-quiet:hover { color: var(--navy); border-color: var(--navy); }
.actions { display: grid; gap: 12px; margin-top: 22px; }
form { margin: 0; }

/* Champs (pour les étapes suivantes : connexion, inscription, profil) */
label { display: block; font-weight: 600; font-size: 15px; margin-bottom: 6px; color: var(--navy); }
input[type="text"], input[type="email"], input[type="password"], input[type="tel"], select {
  width: 100%; min-height: 48px; padding: 11px 14px; font: inherit; color: var(--ink);
  background: #fff; border: 1.5px solid var(--line); border-radius: 12px;
}
input:focus { border-color: var(--blue); outline: 3px solid rgba(30, 176, 240, .35); outline-offset: 0; }
.field { margin-bottom: 16px; }

/* Messages */
.notice { border-radius: var(--radius); padding: 12px 14px; font-size: 15px; margin: 0 0 16px; }
.notice.ok { background: var(--ok-soft); color: var(--ok); }
.notice.warn { background: var(--warn-soft); color: var(--warn); }
.notice.error { background: var(--danger-soft); color: var(--danger); }

/* Fiche « qui est connecté » */
.facts { display: grid; gap: 0; margin: 0; }
.facts div { display: grid; gap: 2px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.facts div:last-child { border-bottom: 0; }
.facts dt { font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 0; font-weight: 600; color: var(--navy); overflow-wrap: anywhere; }
.status { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; padding: 4px 12px; border-radius: 999px; }
.status.on { background: var(--ok-soft); color: var(--ok); }
.status.off { background: #fff; color: var(--muted); border: 1px solid var(--line); }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }

details { margin-top: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-soft); }
summary { cursor: pointer; padding: 12px 14px; font-weight: 600; color: var(--navy); }
pre { margin: 0; padding: 0 14px 14px; font-size: 13px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }

.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.checklist li { display: flex; gap: 10px; align-items: baseline; font-size: 15px; }
.checklist .tag { flex: none; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--muted); }

.site-footer { text-align: center; padding: 20px 16px 28px; font-size: 13px; color: var(--muted); }

@media (min-width: 640px) {
  .card { padding: 36px 34px; }
  .actions.row { grid-template-columns: 1fr 1fr; }
  .facts div { grid-template-columns: 200px 1fr; align-items: baseline; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* Formulaires (lot I2b) */
.field-error { display: block; margin-top: 6px; font-size: 14px; color: var(--danger); }
.field-error:empty { display: none; }
.input-validation-error { border-color: var(--danger) !important; }
fieldset.choice { border: 0; padding: 0; margin: 0 0 16px; }
fieldset.choice legend { font-weight: 600; font-size: 15px; color: var(--navy); margin-bottom: 8px; padding: 0; }
.option { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; color: var(--ink); cursor: pointer;
  padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 12px; margin-bottom: 8px; background: #fff; }
.option:has(input:checked) { border-color: var(--blue); background: rgba(4, 97, 168, .05); }
.option input { margin-top: 4px; accent-color: var(--blue); width: 18px; height: 18px; flex: none; }
.field > .option { border: 0; padding: 0; background: transparent; font-size: 15px; }
/* Inscription Personnel / Professionnel (V2.7), sans script. Professionnel : entreprise, adresse du siège,
   contact de l'entreprise, puis la personne. Personnel : la personne puis son adresse, recopiées dans l'organisation. */
.blocs-inscription { display: flex; flex-direction: column; }
.bloc { margin: 4px 0 8px; }
.bloc-titre { font-weight: 600; font-size: 15px; color: var(--navy); margin: 8px 0 10px; }
form:has(input[name$="Type"][value="organisation"]:checked) .bloc-entreprise,
form:has(input[name$="Type"][value="organisation"]:checked) .bloc-adresse,
form:has(input[name$="Type"][value="organisation"]:checked) .bloc-contact-entreprise { border-left: 3px solid rgba(30, 176, 240, .45); padding-left: 14px; }
.bloc-entreprise { order: 1; } .bloc-adresse { order: 2; } .bloc-contact-entreprise { order: 3; } .bloc-personne { order: 4; }
form:has(input[name$="Type"][value="individuel"]:checked) .bloc-personne { order: 1; }
form:has(input[name$="Type"][value="individuel"]:checked) .bloc-adresse { order: 2; }
form:has(input[name$="Type"][value="individuel"]:checked) :is(.bloc-entreprise, .bloc-contact-entreprise, .si-pro) { display: none; }
form:has(input[name$="Type"][value="organisation"]:checked) .si-perso { display: none; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
@media (max-width: 480px) { .field-row { grid-template-columns: 1fr; } }
.code-input { font-size: 26px !important; letter-spacing: 10px; text-align: center; font-family: Consolas, Menlo, monospace; }
.inline-form { margin-top: 10px; }
.inline-form .btn { width: 100%; }
.links { display: flex; flex-wrap: wrap; gap: 6px 16px; justify-content: space-between; margin: 18px 0 0; }
code { font-family: Consolas, Menlo, monospace; font-size: 13px; background: var(--bg-soft); padding: 1px 6px; border-radius: 6px; }

/* Connexion Microsoft et Google (lot I2c) */
.external { display: grid; gap: 10px; margin: 18px 0 6px; }
.btn-provider { background: #fff; color: var(--ink); border-color: var(--line); justify-content: center; }
.btn-provider:hover { border-color: var(--navy); color: var(--navy); background: #fff; }
.btn-provider svg { width: 20px; height: 20px; flex: none; }
.separator { display: flex; align-items: center; gap: 12px; margin: 10px 0 6px; color: var(--muted); font-size: 14px; }
.separator::before, .separator::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.readonly { margin: 0; padding: 11px 14px; border: 1.5px dashed var(--line); border-radius: 12px; background: var(--bg-soft); color: var(--navy); font-weight: 600; overflow-wrap: anywhere; }

/* Profil (lot I2d) */
.list { list-style: none; padding: 0; margin: 0 0 6px; }
.list li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.list li:last-child { border-bottom: 0; }
.list .what { flex: 1; min-width: 0; }
.list .what strong { display: block; color: var(--navy); overflow-wrap: anywhere; }
.list .what span { display: block; font-size: 14px; color: var(--muted); overflow-wrap: anywhere; }
.list svg { width: 22px; height: 22px; flex: none; }
.list .icon { width: 22px; height: 22px; flex: none; display: grid; place-items: center; color: var(--blue); }
.list .side { flex: none; display: flex; gap: 8px; align-items: center; }
.btn-small { width: auto; min-height: 36px; padding: 6px 14px; font-size: 14px; }
.badge { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; margin-left: 6px; vertical-align: middle; }
.badge.ok { background: var(--ok-soft); color: var(--ok); }
.badge.warn { background: var(--warn-soft); color: var(--warn); }
.back { display: inline-block; margin-bottom: 12px; font-size: 14px; text-decoration: none; }
