/* inscription.css */

<style>
    @import url('https://fonts.googleapis.com/css2?family=Bitter:wght@700;800;900&family=Nunito:wght@400;500;600;700;800&display=swap');

    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
    /* ── Réinitialisation — base.css impose height:100%;overflow:hidden
       sur html et body, ce qui bloque le scroll de la page. ── */
    html {
      height: auto !important;
      overflow-y: auto !important;
      overflow-x: hidden !important;
      scroll-behavior: smooth;
    }
    body {
      height: auto !important;
      overflow: visible !important;
    }

    :root {
      --cream:        #FDF8F3;
      --green-dark:   #0D3B11;
      --green-mint:   #73C698;
      --salmon:       #EA966C;
      --salmon-dark:  #d6824f;
      --green-light:  #EAF7EF;
      --cream-dark:   #F0E8DE;
      --text:         #1a2e1a;
      --text-muted:   #5a7060;
      --shadow:       0 4px 24px rgba(13,59,17,.08);
      --shadow-lg:    0 12px 48px rgba(13,59,17,.16);
    }

    body {
      font-family: 'Nunito', sans-serif;
      color: var(--text);
      background: var(--cream);
      min-height: 100vh;
      display: flex;
      flex-direction: column;
    }
    h1, h2 { font-family: 'Bitter', serif; font-weight: 800; }
    a { color: var(--green-dark); text-decoration: none; }

    /* ── Nav ── */
    nav {
      background: rgba(253,248,243,.95);
      backdrop-filter: blur(14px);
      border-bottom: 1px solid var(--cream-dark);
    }
    .nav-inner {
      max-width: 1100px; margin: 0 auto; padding: 0 28px;
      display: flex; align-items: center; justify-content: space-between; height: 64px;
    }
    .nav-logo svg { height: 32px; width: auto; }
    .nav-back {
      display: flex; align-items: center; gap: 7px;
      font-size: .88rem; font-weight: 700; color: var(--text-muted);
      transition: color .15s;
    }
    .nav-back:hover { color: var(--green-dark); }
    .nav-back svg { width: 16px; height: 16px; }

    /* ── Main layout ── */
    .main {
      flex: 1;
      display: grid;
      grid-template-columns: 1fr 420px;
      max-width: 1000px;
      margin: 0 auto;
      padding: 52px 28px 80px;
      gap: 52px;
      width: 100%;
      align-items: start;
    }

    /* ── Left panel ── */
    .left-panel { padding-top: 8px; }

    /* Stepper */
    .stepper {
      display: flex;
      align-items: flex-start;
      gap: 0;
      margin-bottom: 44px;
    }
    .step {
      display: flex;
      flex-direction: column;
      align-items: center;
      flex: 1;
      position: relative;
    }
    .step:not(:last-child)::after {
      content: '';
      position: absolute;
      top: 17px;
      left: calc(50% + 18px);
      right: calc(-50% + 18px);
      height: 2px;
      background: var(--cream-dark);
      z-index: 0;
    }
    .step.done:not(:last-child)::after { background: var(--green-mint); }

    .step-dot {
      width: 36px; height: 36px;
      border-radius: 50%;
      display: flex; align-items: center; justify-content: center;
      font-weight: 800; font-size: .88rem;
      background: var(--cream-dark);
      color: var(--text-muted);
      border: 2px solid var(--cream-dark);
      position: relative; z-index: 1;
      transition: all .3s;
    }
    .step.active .step-dot {
      background: var(--green-dark);
      color: #fff;
      border-color: var(--green-dark);
      box-shadow: 0 0 0 4px rgba(13,59,17,.1);
    }
    .step.done .step-dot {
      background: var(--green-mint);
      color: var(--green-dark);
      border-color: var(--green-mint);
    }
    .step-label {
      margin-top: 8px;
      font-size: .78rem;
      font-weight: 700;
      color: var(--text-muted);
      text-align: center;
    }
    .step.active .step-label { color: var(--green-dark); }
    .step.done .step-label { color: var(--green-mint); }

    /* Form card */
    .form-card {
      background: #fff;
      border-radius: 24px;
      padding: 36px;
      box-shadow: var(--shadow-lg);
    }
    .form-title {
      font-size: 1.5rem;
      color: var(--green-dark);
      margin-bottom: 6px;
    }
    .form-sub { font-size: .92rem; color: var(--text-muted); margin-bottom: 28px; }

    .form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
    .form-group { display: flex; flex-direction: column; gap: 6px; }
    .form-group.full { grid-column: 1 / -1; }

    label { font-size: .83rem; font-weight: 700; color: var(--text-muted); }
    input[type="text"], input[type="email"], input[type="password"], input[type="tel"] {
      width: 100%; padding: 12px 14px;
      border: 1.5px solid var(--cream-dark);
      border-radius: 10px;
      font-family: 'Nunito', sans-serif;
      font-size: .95rem; color: var(--text);
      background: var(--cream);
      outline: none;
      transition: border-color .15s, box-shadow .15s;
    }
    input:focus { border-color: var(--green-mint); box-shadow: 0 0 0 3px rgba(115,198,152,.15); }
    input.error { border-color: #e74c3c; }

    .divider {
      display: flex; align-items: center; gap: 12px;
      margin: 22px 0; color: var(--text-muted); font-size: .82rem; font-weight: 600;
    }
    .divider::before, .divider::after { content:''; flex:1; height:1px; background:var(--cream-dark); }

    .btn {
      display: flex; align-items: center; justify-content: center; gap: 8px;
      width: 100%; padding: 14px 24px;
      border-radius: 12px; border: none; cursor: pointer;
      font-family: 'Nunito', sans-serif; font-size: 1rem; font-weight: 700;
      transition: transform .15s, box-shadow .15s, background .15s; line-height: 1;
    }
    .btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-lg); }
    .btn-green { background: var(--green-mint); color: var(--green-dark); }
    .btn-green:hover { background: #5db882; }
    .btn-salmon { background: var(--salmon); color: #fff; }
    .btn-salmon:hover { background: var(--salmon-dark); }
    .btn-outline {
      background: transparent; color: var(--text-muted);
      border: 1.5px solid var(--cream-dark);
    }
    .btn-outline:hover { border-color: var(--green-mint); color: var(--green-dark); box-shadow: none; }

    .btn-google {
      background: #fff; color: var(--text);
      border: 1.5px solid var(--cream-dark);
    }
    .btn-google:hover { border-color: var(--green-mint); box-shadow: none; }

    /* Password strength */
    .pw-strength { display: flex; gap: 4px; margin-top: 7px; }
    .pw-dot { height: 4px; flex: 1; border-radius: 99px; background: var(--cream-dark); transition: background .3s; }
    .pw-dot.weak { background: #e74c3c; }
    .pw-dot.medium { background: var(--salmon); }
    .pw-dot.strong { background: var(--green-mint); }
    .pw-hint { font-size: .75rem; color: var(--text-muted); margin-top: 5px; }

    .form-footer {
      margin-top: 18px;
      text-align: center;
      font-size: .83rem;
      color: var(--text-muted);
    }
    .form-footer a { color: var(--green-dark); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

    .terms-note {
      font-size: .78rem; color: var(--text-muted);
      text-align: center; margin-top: 14px; line-height: 1.5;
    }
    .terms-note a { color: var(--text-muted); text-decoration: underline; text-underline-offset: 2px; }

    /* ── Payment specific ── */
    .card-input-wrap {
      position: relative;
    }
    .card-input-wrap input { padding-right: 48px; }
    .card-icons {
      position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
      display: flex; gap: 4px;
    }
    .card-icon {
      width: 28px; height: 18px; border-radius: 3px;
      display: flex; align-items: center; justify-content: center;
      font-size: .55rem; font-weight: 900; letter-spacing: -.02em;
    }
    .card-icon.visa { background: #1a1f71; color: #fff; }
    .card-icon.mc { background: #eb001b; color: #fff; }

    .secure-note {
      display: flex; align-items: center; gap: 6px;
      font-size: .78rem; color: var(--text-muted);
      background: var(--green-light);
      border-radius: 8px; padding: 8px 12px; margin-bottom: 20px;
    }
    .secure-note svg { width: 14px; height: 14px; color: var(--green-mint); flex-shrink: 0; }

    /* ── Right panel — Plan summary ── */
    .plan-summary {
      background: #fff;
      border-radius: 24px;
      padding: 28px;
      box-shadow: var(--shadow);
      position: sticky;
      top: 80px;
    }
    .plan-summary-label {
      font-size: .75rem; font-weight: 700; text-transform: uppercase;
      letter-spacing: .07em; color: var(--text-muted); margin-bottom: 16px;
    }
    .plan-summary-name {
      font-family: 'Bitter', serif; font-size: 1.4rem; font-weight: 900;
      color: var(--green-dark); margin-bottom: 4px;
    }
    .plan-summary-tagline { font-size: .88rem; color: var(--text-muted); margin-bottom: 20px; }

    .plan-badge-free {
      display: inline-flex; align-items: center; gap: 6px;
      background: var(--green-light); color: var(--green-dark);
      font-size: .78rem; font-weight: 800; padding: 4px 12px; border-radius: 99px;
      margin-bottom: 20px;
    }
    .plan-badge-paid {
      display: inline-flex; align-items: center; gap: 6px;
      background: #FEF2EC; color: var(--salmon-dark);
      font-size: .78rem; font-weight: 800; padding: 4px 12px; border-radius: 99px;
      margin-bottom: 20px;
    }

    .plan-price-box {
      background: var(--green-dark);
      border-radius: 14px; padding: 18px 20px;
      margin-bottom: 20px;
    }
    .plan-price-row {
      display: flex; justify-content: space-between; align-items: center;
    }
    .plan-price-label { font-size: .85rem; color: rgba(255,255,255,.6); }
    .plan-price-amount {
      font-family: 'Bitter', serif; font-size: 1.6rem; font-weight: 900; color: #fff;
    }
    .plan-price-period { font-size: .78rem; color: rgba(255,255,255,.5); margin-top: 2px; text-align: right; }
    .plan-trial-note {
      background: rgba(115,198,152,.15);
      border-radius: 8px; padding: 8px 12px; margin-top: 10px;
      font-size: .8rem; color: var(--green-mint); font-weight: 700;
      text-align: center;
    }

    .plan-features-mini { list-style: none; margin-bottom: 20px; }
    .plan-features-mini li {
      display: flex; gap: 8px; align-items: flex-start;
      font-size: .88rem; color: var(--text-muted); margin-bottom: 9px;
    }
    .plan-features-mini li svg { width: 15px; height: 15px; flex-shrink: 0; margin-top: 2px; color: var(--green-mint); }

    .plan-summary-divider { height: 1px; background: var(--cream-dark); margin: 18px 0; }

    .summary-link {
      display: block; text-align: center;
      font-size: .82rem; font-weight: 700; color: var(--text-muted);
      text-decoration: underline; text-underline-offset: 3px;
    }
    .summary-link:hover { color: var(--green-dark); }

    /* ── Success screen ── */
    .success-screen {
      text-align: center; padding: 20px 0;
    }
    .success-icon {
      width: 72px; height: 72px; border-radius: 50%;
      background: var(--green-light);
      display: flex; align-items: center; justify-content: center;
      margin: 0 auto 24px;
    }
    .success-icon svg { width: 36px; height: 36px; color: var(--green-mint); }
    .success-title { font-size: 1.6rem; color: var(--green-dark); margin-bottom: 10px; }
    .success-sub { font-size: .95rem; color: var(--text-muted); margin-bottom: 28px; }

    /* Panels visibility */
    .panel { display: none; }
    .panel.active { display: block; }

    .nav-links { display: flex; align-items: center; gap: 32px; list-style: none; }
    .nav-links a { font-size: .9rem; font-weight: 600; color: #5a7060; transition: color .15s; }
    .nav-links a:hover { color: #0D3B11; }

    @media (max-width: 820px) {
      .main { grid-template-columns: 1fr; gap: 20px; }
      .plan-summary { position: static; order: -1; max-width: 100%; }
      .nav-links { display: none; }
    }

    @media (max-width: 520px) {
      .form-grid { grid-template-columns: 1fr; }
      .form-card { padding: 22px 18px; border-radius: 18px; }
      .main { padding: 24px 14px 60px; }
      .nav-inner { padding: 0 18px; height: 58px; }
      input, select, textarea { padding: 14px 12px; font-size: 1rem; -webkit-appearance: none; }
      .btn { min-height: 50px; font-size: 1rem; }
      .step-header { padding: 20px 18px 14px; }
    }

    @media (max-width: 380px) {
      .form-card { padding: 18px 14px; }
      .main { padding: 18px 10px 60px; }
    }

    /* Évite le zoom iOS */
    @supports (-webkit-touch-callout: none) {
      input, select, textarea { font-size: 16px; }
    }

    /* ── Sélecteur de rôle ── */
    .role-selector {
      display: grid;
      grid-template-columns: 1fr 1fr 1fr;
      gap: 10px;
      margin-bottom: 22px;
    }
    @media (max-width: 520px) {
      .role-selector { grid-template-columns: 1fr; }
    }
    .role-card {
      border: 2px solid var(--cream-dark);
      border-radius: 12px;
      padding: 14px 16px;
      cursor: pointer;
      transition: border-color .15s, background .15s;
      text-align: center;
      background: var(--cream);
    }
    .role-card:hover { border-color: var(--green-mint); background: var(--green-light); }
    .role-card.selected { border-color: var(--green-dark); background: var(--green-light); }
    .role-card-icon { font-size: 22px; margin-bottom: 5px; }
    .role-card-title { font-weight: 800; font-size: .9rem; color: var(--green-dark); }
    .role-card-sub { font-size: .75rem; color: var(--text-muted); margin-top: 2px; }

    /* ── Panel groupe ── */
    #panel-groupe .form-grid { grid-template-columns: 1fr 1fr; }
    .key-field { position: relative; }
    .key-field input { padding-right: 100px; }
    .key-verify-btn {
      position: absolute;
      right: 6px; top: 50%; transform: translateY(-50%);
      background: var(--green-dark); color: #fff;
      border: none; border-radius: 8px;
      padding: 6px 12px; font-size: .78rem; font-weight: 700;
      cursor: pointer; transition: opacity .15s;
    }
    .key-verify-btn:hover { opacity: .85; }
    .key-status { font-size: .78rem; font-weight: 700; margin-top: 5px; }
    .key-status.ok { color: var(--green-mint); }
    .key-status.err { color: #e74c3c; }
  
    /* ── Nav / Footer shared styles ── */
    .container { max-width: 1100px; margin: 0 auto; padding: 0 28px; }
    .nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
    .btn-mon-espace { display: inline-flex; align-items: center; gap: 7px; background: var(--green-dark, #0D3B11); color: #fff; padding: 9px 18px; border-radius: 50px; font-family: 'Nunito', sans-serif; font-size: .85rem; font-weight: 700; cursor: pointer; border: none; transition: background .2s; text-decoration: none; white-space: nowrap; }
    .btn-mon-espace:hover { background: #1a5e20; }
    footer { background: #0D3B11; padding: 40px 0; }
    .footer-inner { display: flex; justify-content: space-between; align-items: center; }
    .footer-links { display: flex; gap: 28px; }
    .footer-links a { font-size: .85rem; font-weight: 600; color: rgba(255,255,255,.45); transition: color .15s; }
    .footer-links a:hover { color: #fff; }
    .footer-copy { font-size: .82rem; color: rgba(255,255,255,.3); }
  </style>
