  :root {
    --ink: #111827;
    --ink-soft: #1f2937;
    --muted: #6b7280;
    --faint: #9ca3af;
    --line: #e5e7eb;
    --field-bg: #f8fafc;
    --accent: #e74011;
    --accent-soft: rgba(231, 64, 17, 0.14);
    --error-bg: #fef2f2;
    --error-text: #dc2626;
    --success-bg: #f0fdf4;
    --success-text: #16a34a;
    --serif: 'Cormorant Garamond', Georgia, serif;
    --sans: 'Poppins', system-ui, sans-serif;
  }

  * { box-sizing: border-box; }
  html, body { height: 100%; margin: 0; }

  body {
    font-family: var(--sans);
    background: #0b1020;
    color: var(--ink);
    display: flex;
    min-height: 100vh;
  }

  /* ───────── Panneau formulaire (gauche) ───────── */
  .lg-form-side {
    width: 42.5%;
    min-width: 480px;
    max-width: 760px;
    background: #fff;
    display: flex;
    flex-direction: column;
    padding: 62px 78px 40px;
    z-index: 3;
    position: relative;
  }
  .lg-form-inner { width: 100%; max-width: 523px; margin: 0 auto; flex: 1; display: flex; flex-direction: column; }

  .lg-brand-logo { display: block; max-height: 150px; max-width: 250px; margin: 0; }

  .lg-form-container { margin: auto 0; padding: 24px 0 0; }

  .lg-steps-indicator { display: flex; gap: 6px; margin-bottom: 36px; }
  .lg-step-bar { flex: 1; height: 2px; background: #e8ebf0; border-radius: 2px; overflow: hidden; }
  .lg-step-bar span { display: block; height: 100%; width: 0; background: var(--ink); transition: width .3s ease; }
  .lg-step-bar.lg-active span, .lg-step-bar.lg-done span { width: 100%; }

  .lg-eyebrow {
    font-size: 0.6875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.28em;
    color: var(--faint);
    margin-bottom: 14px;
  }

  .lg-page h1 {
    font-family: "CVM Sans", "Google Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
    font-size: 3.6rem;
    font-weight: 400;
    line-height: 1;
    color: var(--ink);
    margin: 0 0 18px;
    letter-spacing: -0.01em;
  }

  .lg-lead { font-size: 0.875rem; color: var(--muted); line-height: 1.65; margin: 0 0 30px; max-width: 400px; }
  .lg-lead strong { color: var(--ink); font-weight: 500; }

  label.lg-field-label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--ink-soft);
    margin-bottom: 8px;
  }

  /* Champs avec icône */
  .lg-field { position: relative; margin-bottom: 20px; }
  .lg-field > svg.lg-ico {
    position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
    width: 18px; height: 18px; color: var(--faint); pointer-events: none;
    transition: color .2s;
  }
  .lg-page .lg-field input[type] { margin-bottom: 0; padding-left: 48px; }
  .lg-field:focus-within > svg.lg-ico { color: var(--accent); }
  .lg-page .lg-field--eye input[type] { padding-right: 48px; }
  .lg-eye-btn {
    position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
    width: 36px; height: 36px; display: grid; place-items: center;
    background: none; border: 0; border-radius: 8px; cursor: pointer; color: var(--faint);
    min-height: 0; padding: 0; box-shadow: none;
  }
  .lg-eye-btn:hover { color: var(--ink); background: transparent; }
  .lg-eye-btn svg { width: 18px; height: 18px; }

  .lg-page input[type="password"], .lg-page input[type="email"], .lg-page input[type="text"] {
    width: 100%;
    height: 52px;
    padding: 0 16px;
    background: var(--field-bg);
    border: 1px solid var(--line);
    border-radius: 14px;
    font-family: var(--sans);
    font-size: 0.9375rem;
    color: var(--ink);
    margin-bottom: 20px;
    transition: border-color .2s, box-shadow .2s, background .2s;
  }
  .lg-page input::placeholder { color: #b6bcc7; }
  .lg-page input#code { text-align: center; letter-spacing: 10px; font-weight: 600; font-size: 1.25rem; }
  .lg-page input:focus {
    outline: none;
    background: #fff;
    border-color: var(--accent);
    box-shadow: 0 0 0 1px var(--accent), 0 0 0 5px var(--accent-soft);
  }

  /* Boutons */
  .lg-page button[type="submit"] {
    width: 100%;
    min-height: 56px;
    padding: 0 20px;
    display: flex; align-items: center; justify-content: center; gap: 10px;
    background: var(--ink);
    color: #fff;
    border: 0;
    border-radius: 14px;
    font-family: var(--sans);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background .2s, transform .1s, box-shadow .2s;
    box-shadow: 0 12px 28px -12px rgba(17, 24, 39, 0.55);
  }
  .lg-page button[type="submit"] svg { width: 18px; height: 18px; transition: transform .2s; }
  .lg-page button[type="submit"]:hover { background: #000; }
  .lg-page button[type="submit"]:hover svg { transform: translateX(3px); }
  .lg-page button[type="submit"]:active { transform: scale(.99); }

  .lg-link-btn--cta {
    display: flex; align-items: center; justify-content: center; gap: 12px;
    width: 100%;
    min-height: 56px;
    margin-top: 12px;
    background: #fff;
    color: var(--ink);
    border: 1px solid var(--line);
    border-radius: 14px;
    font-family: var(--sans);
    font-size: 0.9375rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    user-select: none;
    transition: border-color .2s, background .2s, transform .1s;
  }
  .lg-link-btn--cta svg { width: 18px; height: 18px; color: var(--accent); }
  .lg-link-btn--cta:hover { border-color: var(--accent); background: #fffaf8; }
  .lg-link-btn--cta:active { transform: scale(.99); }

  /* Liens */
  .lg-link-btn {
    display: inline-block;
    background: none; border: 0; padding: 0 0 1px;
    color: var(--muted);
    font-family: var(--sans);
    font-size: 0.8125rem;
    cursor: pointer;
    text-decoration: none;
    border-bottom: 1px solid #d1d5db;
    user-select: none;
    transition: color .2s, border-color .2s;
  }
  .lg-link-btn:hover { color: var(--accent); border-color: var(--accent); }
  .lg-link-btn--faint { font-size: 0.75rem; opacity: .75; }
  .lg-link-btn--faint:hover { opacity: 1; }

  .lg-switch-link { text-align: center; margin-top: 28px; font-size: 0.875rem; color: var(--muted); }
  .lg-switch-link .lg-link-btn { font-size: 0.875rem; }
  .lg-switch-link .lg-link-btn.lg-is-accent { color: var(--accent); border-color: var(--accent); font-weight: 500; }
  .lg-switch-link--right { text-align: right; margin: -8px 0 28px; }
  .lg-switch-link--tight { margin-top: -8px; }

  .lg-alert { padding: 12px 16px; border-radius: 12px; font-size: 0.8125rem; margin-bottom: 20px; line-height: 1.45; }
  .lg-alert.lg-error { background: var(--error-bg); color: var(--error-text); }
  .lg-alert.lg-info { background: var(--success-bg); color: var(--success-text); }

  .lg-maintenance-block { text-align: center; padding: 12px 0 4px; }
  .lg-maintenance-block svg { width: 40px; height: 40px; color: var(--muted); margin-bottom: 16px; }
  .lg-maintenance-block h1 { font-size: 2.4rem; margin-bottom: 10px; }
  .lg-maintenance-block .lg-lead { margin-bottom: 24px; }

  .lg-resend-wrap { text-align: center; margin-top: 18px; }
  .lg-btn-resend {
    background: none; border: 0; color: var(--muted); font-size: 0.8125rem; cursor: pointer;
    font-family: var(--sans); border-bottom: 1px solid #d1d5db; padding: 0 0 1px;
  }
  .lg-btn-resend:hover { color: var(--accent); border-color: var(--accent); }

  /* Bascule « code d'accès » : retournement 3D, 100 % CSS (pas de JS) */
  .lg-flip-wrap { perspective: 1400px; }
  .lg-flip-inner { position: relative; width: 100%; transition: transform .6s cubic-bezier(.4,.2,.2,1); transform-style: preserve-3d; }
  .lg-reg-toggle { position: absolute; opacity: 0; pointer-events: none; width: 0; height: 0; }
  .lg-reg-toggle:checked ~ .lg-flip-wrap .lg-flip-inner { transform: rotateY(180deg); }
  .lg-flip-face { width: 100%; backface-visibility: hidden; }
  .lg-flip-face.lg-flip-back { position: absolute; top: 0; left: 0; transform: rotateY(180deg); }

  .lg-form-footer { font-size: 0.75rem; color: var(--faint); display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; padding-top: 16px; }
  .lg-form-footer a { color: var(--faint); text-decoration: none; }
  .lg-form-footer a:hover { color: var(--ink); }
  .lg-form-footer i { width: 2px; height: 2px; background: #cbd0d8; border-radius: 50%; display: inline-block; }

  /* ───────── Panneau visuel (droite) ───────── */
  .lg-visual-side {
    flex: 1;
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 52px 66px 44px 64px;
    color: #fff;
    overflow: hidden;
    isolation: isolate;
    background:
      radial-gradient(1200px 700px at 78% 30%, rgba(70, 86, 120, .35), transparent 60%),
      radial-gradient(900px 600px at 20% 80%, rgba(231, 64, 17, .10), transparent 60%),
      linear-gradient(135deg, #131a2c 0%, #0d1322 55%, #0a0f1c 100%);
  }
  /* Photo de fond : image/oubli.png (ou oubli.jpg) */
  .lg-visual-side .lg-hero-photo {
    position: absolute; inset: 0; z-index: -2;
    background: url('../image/oubli.png') center / cover no-repeat, url('../image/oubli.jpg') center / cover no-repeat;
  }
  .lg-visual-side::after {
    content: ''; position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(180deg, rgba(11,16,32,.80) 0%, rgba(11,16,32,.84) 45%, rgba(11,16,32,.95) 100%);
  }
  .lg-visual-side .lg-tri { position: absolute; z-index: -1; right: 6%; top: 18%; width: 360px; opacity: .22; }

  .lg-visual-top { display: flex; justify-content: space-between; align-items: flex-start; }
  .lg-visual-logo { height: 65px; width: 124px; display: block; }
  .lg-secure-pill {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 10px 20px;
    border: 1px solid rgba(255,255,255,.22);
    background: rgba(255,255,255,.06);
    backdrop-filter: blur(10px);
    border-radius: 999px;
    font-size: 0.8125rem; letter-spacing: .04em; color: #e5e7eb;
  }
  .lg-secure-pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); }

  .lg-visual-body { flex: 1; display: flex; align-items: center; justify-content: space-between; gap: 40px; }
  .lg-visual-content { max-width: 680px; }
  .lg-v-eyebrow { font-size: 0.6875rem; font-weight: 500; letter-spacing: .32em; text-transform: uppercase; color: #cbd5e1; margin-bottom: 22px; }
  .lg-visual-side h2 {
    font-family: "CVM Sans", "Google Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
    font-size: clamp(2.4rem, 3.4vw, 3.9rem);
    line-height: 1.08; font-weight: 400; margin: 0 0 26px; letter-spacing: -0.01em;
  }
  .lg-visual-side h2 em { color: var(--accent); font-style: normal; font-weight: 400; }
  .lg-visual-side p.lg-v-lead { font-size: 0.9375rem; line-height: 1.7; color: #aeb7c6; margin: 0 0 34px; font-weight: 300; max-width: 400px; }

  .lg-v-stats { display: flex; }
  .lg-v-stat { padding: 0 24px; border-left: 1px solid rgba(255,255,255,.14); }
  .lg-v-stat:first-child { padding-left: 0; border-left: 0; }
  .lg-v-stat b { display: block; font-size: 0.875rem; font-weight: 500; color: #f3f4f6; margin-bottom: 4px; }
  .lg-v-stat span { font-size: 0.8125rem; color: #8b95a7; }

  .lg-score-card {
    flex: 0 0 220px;
    padding: 22px 22px 20px;
    background: rgba(17, 24, 39, .55);
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 24px;
    backdrop-filter: blur(14px);
    align-self: center;
  }
  .lg-score-card .k { font-size: 0.6875rem; letter-spacing: .22em; text-transform: uppercase; color: #cbd5e1; }
  .lg-score-card .n { font-family: var(--serif); font-size: 3.4rem; line-height: 1; margin: 20px 0 14px; }
  .lg-score-card .n small { font-family: var(--sans); font-size: 0.9375rem; color: #94a3b8; margin-left: 4px; }
  .lg-score-bar { height: 5px; background: rgba(255,255,255,.12); border-radius: 4px; overflow: hidden; margin-bottom: 16px; }
  .lg-score-bar span { display: block; height: 100%; width: 87%; background: var(--accent); border-radius: 4px; }
  .lg-score-card .meta { font-size: 0.8125rem; color: #94a3b8; line-height: 1.6; }

  .lg-visual-footer { display: flex; justify-content: space-between; gap: 20px; font-size: 0.8125rem; color: #9aa4b5; }
  .lg-visual-footer a { color: #cbd5e1; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.25); padding-bottom: 1px; }
  .lg-visual-footer a:hover { color: #fff; }

  /* ───────── Responsive ───────── */
  @media (max-width: 1280px) { .lg-score-card { display: none; } }
  @media (max-width: 1024px) {
    body { flex-direction: column; }
    .lg-visual-side { display: none; }
    .lg-form-side { width: 100%; max-width: none; min-width: 0; padding: 32px 24px 24px; min-height: 100vh; }
    h1 { font-size: 2.9rem; }
  }

  /* ───────── Pages « mot de passe oublié » / « réinitialiser » ───────── */
  .lg-page .lg-form-container { margin: auto 0; padding: 24px 0 0; }
  .lg-badge {
    width: 54px; height: 54px; border-radius: 50%;
    display: grid; place-items: center;
    background: #fdece5; border: 1px solid #f8cdbd; color: var(--accent);
    margin-bottom: 26px;
  }
  .lg-badge svg { width: 22px; height: 22px; }
  .lg-badge--warn { background: #fff7e6; border-color: #f6dca4; color: #d98a00; }

  .lg-recap {
    display: flex; align-items: center; gap: 14px;
    height: 58px; padding: 0 22px 0 20px; margin-bottom: 20px;
    border: 1px solid var(--line); border-radius: 14px; background: #fff;
    font-size: 0.9375rem; color: var(--ink);
  }
  .lg-recap > svg { width: 18px; height: 18px; color: var(--faint); flex: none; }
  .lg-recap > span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .lg-recap a {
    flex: none; font-size: 0.8125rem; color: var(--accent); text-decoration: none;
    border-bottom: 1px solid var(--accent); padding-bottom: 1px;
  }

  .lg-back {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    margin-top: 22px; color: var(--ink); font-size: 0.9375rem; font-weight: 500;
    text-decoration: none; transition: color .2s;
  }
  .lg-back svg { width: 16px; height: 16px; color: var(--muted); transition: transform .2s, color .2s; }
  .lg-back:hover { color: var(--accent); }
  .lg-back:hover svg { transform: translateX(-3px); color: var(--accent); }

  .lg-note {
    display: flex; gap: 14px; align-items: flex-start;
    margin-top: 28px; padding: 18px 20px;
    border: 1px solid #eef0f4; background: #f8fafc; border-radius: 14px;
    font-size: 0.8125rem; line-height: 1.6; color: var(--muted);
  }
  .lg-note svg { width: 18px; height: 18px; color: var(--accent); flex: none; margin-top: 2px; }
  .lg-note b { color: var(--ink-soft); font-weight: 500; }

  .lg-page form.lg-inline { margin: 0; }

  /* Carte « Étapes » (panneau de droite) */
  .lg-steps-card {
    flex: 0 0 300px; align-self: center;
    padding: 24px 24px 12px;
    background: rgba(17, 24, 39, .55);
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 24px; backdrop-filter: blur(14px);
  }
  .lg-steps-card .lg-sc-k { font-size: 0.6875rem; letter-spacing: .22em; text-transform: uppercase; color: #cbd5e1; margin-bottom: 18px; }
  .lg-sc-item { display: flex; align-items: center; gap: 14px; padding: 15px 0; border-top: 1px solid rgba(255,255,255,.12); }
  .lg-sc-dot {
    flex: none; width: 30px; height: 30px; border-radius: 50%;
    display: grid; place-items: center;
    font-size: 0.75rem; font-weight: 500; color: #cbd5e1;
    border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.04);
  }
  .lg-sc-dot svg { width: 14px; height: 14px; }
  .lg-sc-item.is-active .lg-sc-dot { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 0 18px rgba(231,64,17,.55); }
  .lg-sc-item.is-done .lg-sc-dot { color: #fff; }
  .lg-sc-item b { display: block; font-size: 0.875rem; font-weight: 500; color: #f3f4f6; margin-bottom: 2px; overflow-wrap: anywhere; }
  .lg-sc-item span { font-size: 0.78rem; color: #8b95a7; overflow-wrap: anywhere; }
  .lg-sc-item:not(.is-active):not(.is-done) b { color: #aab3c2; }
  @media (max-width: 1280px) { .lg-steps-card { display: none; } }

  /* Bouton d'action en lien (pages de résultat) */
  .lg-page a.lg-cta-dark {
    background: var(--ink); color: #fff; border: 0; margin-top: 4px;
    box-shadow: 0 12px 28px -12px rgba(17, 24, 39, 0.55);
  }
  .lg-page a.lg-cta-dark:hover { background: #000; border-color: transparent; }
  .lg-page a.lg-cta-dark svg { color: #fff; width: 18px; height: 18px; }
