@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700;900&display=swap');

    :root {
      --yellow: #FFFC00;
      --bg: #0a0a0a;
      --card: #111111;
      --border: #1e1e1e;
      --text: #ffffff;
      --muted: #666;
    }

    * { box-sizing: border-box; margin: 0; padding: 0; }

    body {
      font-family: 'Inter', sans-serif;
      background: var(--bg);
      color: var(--text);
      min-height: 100vh;
      overflow-x: hidden;
    }

    /* ── BANDEAU PÉDAGOGIQUE ── */
    #bandeau {
      position: fixed;
      top: 0; left: 0; right: 0;
      z-index: 9999;
      background: #b91c1c;
      color: #fff;
      text-align: center;
      padding: 8px 20px;
      font-size: 0.78rem;
      font-weight: 700;
      letter-spacing: 0.6px;
    }

    /* ── ÉCRANS (plein page) ── */
    .screen {
      display: none;
      min-height: 100vh;
      padding-top: 36px;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      padding-left: 20px;
      padding-right: 20px;
      animation: fadeIn 0.4s ease;
    }
    .screen.active { display: flex; }

    @keyframes fadeIn {
      from { opacity: 0; transform: translateY(18px); }
      to   { opacity: 1; transform: translateY(0); }
    }

    /* ── LOGO ── */
    .logo {
      display: flex;
      align-items: center;
      justify-content: center;
      margin-bottom: 48px;
    }

    /* ── TITRES ── */
    h1 {
      font-size: clamp(2rem, 5vw, 3.5rem);
      font-weight: 900;
      text-align: center;
      line-height: 1.1;
      margin-bottom: 16px;
      max-width: 700px;
    }
    h1 span { color: var(--yellow); }

    .subtitle {
      font-size: clamp(0.95rem, 2vw, 1.15rem);
      color: var(--muted);
      text-align: center;
      margin-bottom: 48px;
      max-width: 500px;
      line-height: 1.6;
    }

    /* ── INPUT ── */
    .input-wrap {
      width: 100%;
      max-width: 480px;
      position: relative;
      margin-bottom: 16px;
    }
    .input-wrap input {
      width: 100%;
      padding: 18px 24px;
      background: var(--card);
      border: 2px solid var(--border);
      border-radius: 14px;
      color: #fff;
      font-size: 1.1rem;
      font-family: inherit;
      outline: none;
      transition: border 0.2s;
    }
    .input-wrap input::placeholder { color: #444; }
    .input-wrap input:focus { border-color: var(--yellow); }

    /* Code input */
    .input-code {
      text-align: center !important;
      font-size: 1.6rem !important;
      letter-spacing: 8px !important;
      font-weight: 700 !important;
      text-transform: uppercase;
    }

    /* ── BOUTON ── */
    .btn {
      width: 100%;
      max-width: 480px;
      padding: 18px;
      background: var(--yellow);
      color: #000;
      border: none;
      border-radius: 14px;
      font-size: 1.05rem;
      font-weight: 800;
      cursor: pointer;
      letter-spacing: 0.2px;
      transition: transform 0.15s, box-shadow 0.15s, opacity 0.15s;
      box-shadow: 0 0 40px rgba(255,252,0,0.2);
    }
    .btn:hover {
      transform: translateY(-2px);
      box-shadow: 0 0 60px rgba(255,252,0,0.35);
    }
    .btn:active { transform: translateY(0); opacity: 0.9; }

    /* ── LOADER ── */
    #screen-loader {
      gap: 28px;
    }
    .loader-ring {
      width: 80px; height: 80px;
      border: 5px solid #1a1a1a;
      border-top: 5px solid var(--yellow);
      border-radius: 50%;
      animation: spin 0.75s linear infinite;
    }
    @keyframes spin { to { transform: rotate(360deg); } }
    .loader-label {
      font-size: 1rem;
      color: var(--muted);
      text-align: center;
    }
    .loader-label span { color: var(--yellow); font-weight: 700; }

    /* ── BLOC SMS ── */
    .sms-block {
      background: var(--card);
      border: 2px solid var(--border);
      border-radius: 20px;
      padding: 36px 40px;
      max-width: 560px;
      width: 100%;
      text-align: center;
      margin-bottom: 32px;
    }
    .sms-step {
      display: flex;
      align-items: center;
      gap: 16px;
      margin-bottom: 24px;
      text-align: left;
    }
    .sms-step:last-child { margin-bottom: 0; }
    .step-num {
      min-width: 40px; height: 40px;
      background: var(--yellow);
      color: #000;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      font-weight: 900;
      font-size: 1rem;
    }
    .step-text { font-size: 0.95rem; color: #ccc; line-height: 1.5; }
    .step-text strong { color: #fff; }
    .numero-pill {
      display: inline-block;
      background: #1a1a1a;
      border: 1px solid #333;
      color: var(--yellow);
      font-size: 2rem;
      font-weight: 900;
      letter-spacing: 6px;
      padding: 12px 28px;
      border-radius: 12px;
      margin: 8px 0;
    }
    .message-pill {
      display: inline-block;
      background: #1a2a1a;
      border: 1px solid #2d4a2d;
      color: #4ade80;
      font-size: 1rem;
      font-weight: 700;
      padding: 8px 20px;
      border-radius: 8px;
      letter-spacing: 2px;
    }

    /* Mention facturation discrète */
    .facturation {
      font-size: 0.62rem;
      color: #333;
      text-align: center;
      margin-top: 10px;
      max-width: 480px;
    }

    /* ── COMPTEUR ── */
    .compteur {
      display: flex;
      align-items: center;
      gap: 8px;
      margin-bottom: 20px;
    }
    .compteur-dot {
      width: 10px; height: 10px;
      border-radius: 50%;
      background: #222;
      transition: background 0.3s;
    }
    .compteur-dot.done { background: var(--yellow); }
    .compteur-dot.current {
      background: var(--yellow);
      box-shadow: 0 0 8px var(--yellow);
    }

    /* ── FIN ── */
    .recap-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 16px;
      max-width: 640px;
      width: 100%;
      margin: 32px 0;
    }
    @media (max-width: 600px) { .recap-grid { grid-template-columns: 1fr; } }
    .recap-card {
      background: var(--card);
      border: 1px solid var(--border);
      border-radius: 16px;
      padding: 20px;
    }
    .recap-card .rc-label {
      font-size: 0.7rem;
      color: var(--muted);
      text-transform: uppercase;
      letter-spacing: 1px;
      margin-bottom: 6px;
    }
    .recap-card .rc-val {
      font-size: 1.1rem;
      font-weight: 700;
      color: #fff;
      word-break: break-all;
    }
    .recap-card.danger { border-color: #b91c1c; }
    .recap-card.danger .rc-val { color: #f87171; font-size: 1.5rem; }

    /* ── ANNOTATION ── */
    .anno {
      background: #1a1500;
      border-left: 3px solid #ca8a04;
      border-radius: 6px;
      padding: 10px 14px;
      max-width: 480px;
      width: 100%;
      font-size: 0.78rem;
      color: #d97706;
      line-height: 1.5;
      margin-bottom: 20px;
    }
    .anno strong { color: #fbbf24; display: block; margin-bottom: 3px; }

    /* ── SECTION TECHNIQUE ── */
    #screen-fin .tech {
      background: #0d0d1a;
      border: 1px solid #1e1e3a;
      border-radius: 16px;
      padding: 24px;
      max-width: 640px;
      width: 100%;
      margin-top: 8px;
    }
    .tech h3 { color: #89b4fa; font-size: 0.9rem; margin-bottom: 12px; }
    .code-block {
      background: #050510;
      border-radius: 8px;
      padding: 14px;
      font-family: monospace;
      font-size: 0.73rem;
      color: #a6e3a1;
      white-space: pre-wrap;
      line-height: 1.7;
    }
    .cc { color: #444; }
    .ck { color: #89b4fa; }
    .cv { color: #f38ba8; }

    .legal-box {
      background: #1a0a0a;
      border: 1px solid #b91c1c44;
      border-radius: 12px;
      padding: 16px;
      font-size: 0.78rem;
      color: #fca5a5;
      line-height: 1.6;
      margin-top: 12px;
    }
    .legal-box strong { color: #fff; }
    .legal-box a { color: #89b4fa; text-decoration: none; }

    /* ── DIVIDER ── */
    .divider {
      width: 100%;
      max-width: 480px;
      height: 1px;
      background: var(--border);
      margin: 32px 0;
    }