/* ===========================
   VARIABLES & RESET
=========================== */
:root {
    --purple:       #6c63d5;
    --purple-dark:  #5a52c0;
    --white:        #ffffff;
    --green:        #4caf50;
    --green-dark:   #388e3c;
    --stat-green:   #6ddb6d;
    --orange:       #f97316;
    --text-gray:    #888;
    --font:         'Nunito', sans-serif;
  }
  
  *, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }
  
  body {
    font-family: var(--font);
    background: var(--purple);
    min-height: 100vh;
    color: var(--white);
  }
  
  /* ===========================
     HERO
  =========================== */
  .hero {
    background: var(--purple);
    padding: 48px 20px 32px;
    text-align: center;
  }
  
  .hero__inner {
    max-width: 480px;
    margin: 0 auto;
  }
  
  .hero__icon {
    font-size: 3.5rem;
    color: var(--white);
    margin-bottom: 12px;
    animation: floatShield 3s ease-in-out infinite;
  }
  
  @keyframes floatShield {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-8px); }
  }
  
  .hero__title {
    font-size: clamp(2rem, 7vw, 2.6rem);
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: -0.5px;
    margin-bottom: 14px;
  }
  
  .hero__sub {
    font-size: 1rem;
    opacity: 0.9;
    line-height: 1.5;
    margin-bottom: 24px;
  }
  
  .badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 32px;
  }
  
  .badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.18);
    border: 1.5px solid rgba(255,255,255,0.35);
    border-radius: 30px;
    padding: 8px 18px;
    font-size: 0.88rem;
    font-weight: 700;
    backdrop-filter: blur(6px);
    transition: background 0.2s;
  }
  
  .badge i { font-size: 1rem; }
  .badge:hover { background: rgba(255,255,255,0.28); }
  
  /* Stats card */
  .stats-card {
    background: rgba(255,255,255,0.18);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 20px;
    padding: 28px 20px;
    max-width: 480px;
    margin: 0 auto;
    backdrop-filter: blur(10px);
  }
  
  .stat { margin-bottom: 20px; }
  .stat:last-child { margin-bottom: 0; }
  
  .stat__number {
    display: block;
    font-size: clamp(2.4rem, 9vw, 3.2rem);
    font-weight: 900;
    color: var(--stat-green);
    line-height: 1;
    margin-bottom: 4px;
  }
  
  .stat__label {
    display: block;
    font-size: 0.95rem;
    color: rgba(255,255,255,0.85);
  }
  
  /* ===========================
     MÉTHODES DE PAIEMENT
  =========================== */
  .methods {
    padding: 32px 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 540px;
    margin: 0 auto;
  }
  
  .method-card {
    background: var(--white);
    border-radius: 20px;
    padding: 24px 20px 20px;
    color: #1a1a2e;
    position: relative;
    border-left: 5px solid var(--purple);
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    cursor: pointer;
    opacity: 0;
    transform: translateY(20px);
    transition: transform 0.2s, box-shadow 0.2s;
  }
  
  .method-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.18);
  }
  
  .method__secure {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--green);
    color: white;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 5px 12px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
  }
  
  .method__logo {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 14px;
    border: 2px solid rgba(0,0,0,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
  }
  
  .method__logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  .method__name {
    font-size: 1.25rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 4px;
    color: #1a1a2e;
  }
  
  .method__desc {
    text-align: center;
    color: var(--text-gray);
    font-size: 0.88rem;
    margin-bottom: 14px;
  }
  
  .method__tags {
    display: flex;
    justify-content: center;
    gap: 10px;
  }
  
  .tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border: 1.5px solid #e0e0e0;
    border-radius: 20px;
    padding: 5px 14px;
    font-size: 0.82rem;
    font-weight: 700;
    color: #333;
    background: #fafafa;
  }
  
  .tag i { color: var(--green); font-size: 0.95rem; }
  
  /* ===========================
     SÉCURITÉ
  =========================== */
  .security {
    padding: 40px 16px 60px;
    max-width: 540px;
    margin: 0 auto;
  }
  
  .security__title {
    font-size: clamp(1.7rem, 6vw, 2.2rem);
    font-weight: 900;
    text-align: center;
    margin-bottom: 28px;
    line-height: 1.2;
  }
  
  .security__title i {
    font-size: 2rem;
    vertical-align: middle;
    margin-right: 8px;
  }
  
  .security__cards {
    display: flex;
    flex-direction: column;
    gap: 14px;
  }
  
  .sec-card {
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 18px;
    padding: 24px 20px;
    text-align: center;
    backdrop-filter: blur(8px);
    opacity: 0;
    transform: translateY(20px);
    transition: background 0.2s, opacity 0.5s ease, transform 0.5s ease;
  }
  
  .sec-card:hover { background: rgba(255,255,255,0.22); }
  
  .sec-card__icon {
    width: 60px;
    height: 60px;
    background: var(--green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: white;
    margin: 0 auto 14px;
    box-shadow: 0 4px 16px rgba(76,175,80,0.4);
  }
  
  .sec-card h3 {
    font-size: 1.05rem;
    font-weight: 800;
    margin-bottom: 8px;
  }
  
  .sec-card p {
    font-size: 0.86rem;
    opacity: 0.85;
    line-height: 1.5;
  }
  
  /* ===========================
     MODAL
  =========================== */
  .modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(20, 18, 50, 0.78);
    backdrop-filter: blur(4px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
  }
  
  .modal-overlay.active {
    display: flex;
  }
  
  .modal {
    background: var(--white);
    border-radius: 24px;
    padding: 32px 24px 28px;
    width: 100%;
    max-width: 420px;
    max-height: 92vh;
    overflow-y: auto;
    color: #1a1a2e;
    position: relative;
    animation: modalIn 0.3s ease;
  }
  
  @keyframes modalIn {
    from { opacity: 0; transform: scale(0.92) translateY(20px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
  }
  
  .modal__close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.8rem;
    color: #999;
    line-height: 1;
    transition: color 0.2s;
  }
  
  .modal__close:hover { color: #333; }
  
  .modal__title {
    font-size: 1.4rem;
    font-weight: 900;
    text-align: center;
    margin-bottom: 18px;
    padding-right: 24px;
    color: #1a1a2e;
    line-height: 1.3;
  }
  
  .modal__ssl-badge {
    background: var(--green);
    color: white;
    text-align: center;
    font-weight: 800;
    font-size: 0.95rem;
    padding: 12px;
    border-radius: 12px;
    margin-bottom: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
  }
  
  /* Champs formulaire */
  .form-group { margin-bottom: 18px; }
  
  .form-label {
    display: flex;
    align-items: center;
    gap: 7px;
    font-weight: 800;
    font-size: 0.95rem;
    margin-bottom: 8px;
    color: #1a1a2e;
  }
  
  .form-label i { color: var(--green); font-size: 1.1rem; }
  
  .input-wrap {
    position: relative;
    display: flex;
    align-items: center;
  }
  
  .input-wrap input {
    width: 100%;
    padding: 14px 48px 14px 16px;
    border: 1.5px solid #e0e0e0;
    border-radius: 12px;
    font-size: 0.95rem;
    font-family: var(--font);
    color: #333;
    background: #fafafa;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
  }
  
  .input-wrap input:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(76,175,80,0.15);
    background: white;
  }
  
  .input-wrap input::placeholder { color: #bbb; }
  
  .input-icon {
    position: absolute;
    right: 14px;
    color: var(--green);
    font-size: 1.1rem;
    pointer-events: none;
  }
  
  .input-suffix {
    position: absolute;
    right: 14px;
    font-size: 0.8rem;
    font-weight: 800;
    color: #555;
    display: flex;
    align-items: center;
    gap: 4px;
    pointer-events: none;
  }
  
  .input-suffix i { color: var(--green); }
  
  .form-hint {
    margin-top: 6px;
    font-size: 0.8rem;
    color: var(--green-dark);
    display: flex;
    align-items: center;
    gap: 5px;
  }
  
  /* Bouton Valider */
  .btn-valider {
    width: 100%;
    padding: 15px;
    background: var(--orange);
    color: white;
    border: none;
    border-radius: 14px;
    font-size: 1.05rem;
    font-weight: 900;
    font-family: var(--font);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.2s, transform 0.15s;
    margin-top: 4px;
  }
  
  .btn-valider:hover  { background: #ea6005; transform: translateY(-1px); }
  .btn-valider:active { transform: translateY(0); }
  .btn-valider:disabled { background: #ccc; cursor: not-allowed; }
  
  /* Message succès */
  .modal__success {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    padding: 18px;
    background: #f0fdf4;
    border: 1.5px solid #86efac;
    border-radius: 12px;
    color: var(--green-dark);
    font-weight: 700;
    text-align: center;
  }
  
  .modal__success i   { font-size: 2.4rem; color: var(--green); }
  .modal__success.show { display: flex; }
  
  /* ===========================
     RESPONSIVE
  =========================== */
  @media (min-width: 600px) {
    .hero, .methods, .security {
      max-width: 600px;
      margin-left: auto;
      margin-right: auto;
    }
    .security__cards {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 14px;
    }
  }
  