 body {
            margin: 0;
            padding: 0;
            background-color: #0B0B0B;
            color: #EDEDED;
            font-family: 'EB Garamond', serif;
			
        }
        header {
            text-align: center;
            padding: 50px 20px 20px 20px;
        }
        header h1 {
            font-family: 'Cinzel Decorative', cursive;
            color: #C9B037;
            font-size: 3em;
            margin-bottom: 10px;
        }
        header h2 {
            font-family: 'Cinzel Decorative', cursive;
            color: #5C0A0A;
            font-size: 1.8em;
            margin-top: 0;
        }
        section {
            text-align: center;
            padding: 30px;
        }
        p {
            font-size: 1.2em;
            margin: 20px auto;
            max-width: 700px;
            line-height: 1.6;
        }
        .btn-entrer {
            margin-top: 30px;
            padding: 12px 25px;
            background-color: #5C0A0A;
            color: #EDEDED;
            text-decoration: none;
            font-weight: bold;
            border-radius: 5px;
            transition: background-color 0.3s;
        }
        .btn-entrer:hover {
            background-color: #7A1212;
        }
    
    /* ====== Base ====== */
    /*html, body {
      margin: 0;
      padding: 0;
      background: #0b0b0f;
      color: #e9e7e1;
      font-family: 'Cinzel Decorative', cursive;
    }*/
    .wrap {
    
      display: grid;
      place-items: center;
      padding: 32px 16px;
      background:
        radial-gradient(1200px 600px at 80% -10%, rgba(212,175,55,0.06), transparent 60%),
        radial-gradient(900px 500px at -10% 110%, rgba(107,15,26,0.10), transparent 60%),
        linear-gradient(180deg, #13131a, #0b0b0f);
    }
   
    .card {
      width: 100%;
      max-width: 720px;
      border: 1px solid rgba(212,175,55,0.28);
      border-radius: 14px;
      background: rgba(19,19,26,0.78);
      box-shadow: 0 18px 40px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.03);
      padding: 22px;
    }
	
    .card__title {
      margin: 0 0 14px;
      color: #d4af37;
      font-variant: small-caps;
      letter-spacing: .06em;
      border-left: 4px solid #6b0f1a;
      padding-left: 10px;
      text-shadow: 0 0 10px rgba(212,175,55,.22);
      font-weight: 700;
    }

    /* Bloc MetaMask */
    .mm-block {
      display: grid;
      gap: 10px;
      margin-bottom: 18px;
      padding: 14px;
      background: rgba(19,19,26,0.55);
      border: 1px dashed rgba(212,175,55,0.25);
      border-radius: 10px;
    }
    #btn-metamask {
      border: 1px solid #d4af37;
      background: linear-gradient(180deg, rgba(212,175,55,0.18), rgba(212,175,55,0.08));
      color: #d4af37;
      font-weight: 700;
      padding: 10px 16px;
      border-radius: 999px;
      cursor: pointer;
      transition: transform .06s ease, box-shadow .2s ease, background .2s ease;
    }
    #btn-metamask:hover {
      transform: translateY(-1px);
      box-shadow: 0 0 0 4px rgba(212,175,55,0.18);
      background: linear-gradient(180deg, rgba(212,175,55,0.24), rgba(212,175,55,0.10));
    }
    #mm-help {
      margin: 0;
      font-size: .95rem;
      color: #bdb8aa;
    }

    /* Formulaire */
    .form {
      display: grid;
      gap: 16px;
      padding: 14px;
      background: rgba(19,19,26,0.55);
      border: 1px solid rgba(107,15,26,0.35);
      border-radius: 10px;
    }
    .form__row {
      display: block;
      gap: 6px;
    }
    .form__label {
      color: #e9e7e1;
      font-weight: 700;
      letter-spacing: .02em;
    }
    .form__input {
      width: 100%;
      padding: 10px 12px;
      border-radius: 10px;
      border: 1px solid rgba(212,175,55,0.28);
      background: rgba(11,11,15,0.9);
      color: #e9e7e1;
      outline: none;
      transition: box-shadow .2s ease, border-color .2s ease;
    }
    .form__input::placeholder { color: #9a968a; }
    .form__input:focus {
      border-color: #d4af37;
      box-shadow: 0 0 0 4px rgba(212,175,55,0.18);
    }
    .form__hint {
      margin: 0;
      font-size: .9rem;
      color: #bdb8aa;
    }

    .form__actions {
      display: flex;
      gap: 10px;
      justify-content: flex-end;
      margin-top: 4px;
    }
    .btn {
      border: 1px solid #6b0f1a;
      background: linear-gradient(180deg, rgba(107,15,26,0.55), rgba(107,15,26,0.35));
      color: #e9e7e1;
      padding: 10px 16px;
      border-radius: 999px;
      cursor: pointer;
      font-weight: 700;
      letter-spacing: .02em;
      transition: transform .06s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
    }
    .btn:hover {
      transform: translateY(-1px);
      border-color: #d4af37;
      box-shadow: 0 0 0 4px rgba(107,15,26,0.25);
    }
    .btn--ghost {
      border-color: rgba(212,175,55,0.28);
      background: transparent;
      color: #d4af37;
    }
    .btn--ghost:hover {
      background: rgba(212,175,55,0.08);
      box-shadow: 0 0 0 4px rgba(212,175,55,0.16);
    }
	/* CSS POPUP */ 
	
	/* ---- Overlay sombre ---- */
.popup-overlay {
  position: fixed;          /* recouvre toute la fenêtre */
  inset: 0;                 /* top:0; right:0; bottom:0; left:0 */
  background: rgba(0,0,0,.6); /* fond gris transparent */
  display: none;            /* masqué par défaut */
  align-items: center;      /* centre verticalement */
  justify-content: center;  /* centre horizontalement */
  z-index: 1000;            /* au-dessus du reste */
}

/* ---- Boîte popup ---- */
.popup-box {
  background: #fff;               /* fond blanc */
  border-radius: 10px;            /* coins arrondis */
  width: 90%; max-width: 420px;   /* adaptatif */
  box-shadow: 0 8px 24px rgba(0,0,0,.25); /* ombre pro */
  overflow: hidden;               /* pas de débordement */
  font-family: "Segoe UI", Arial, sans-serif;
}

/* ---- En-tête du popup ---- */
.popup-header {
  display: flex;
  justify-content: space-between; /* titre à gauche, croix à droite */
  align-items: center;
  padding: 12px 16px;
  background: #f8f9fa;
  border-bottom: 1px solid #eee;
}

.popup-title {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: #333;
}

/* Bouton croix (fermer) */
.popup-close {
  background: transparent;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: #666;
}
.popup-close:hover { color: #000; }

/* ---- Corps ---- */
.popup-body {
  padding: 18px;
  font-size: 14px;
  color: #444;
  line-height: 1.4;
  text-align: center;
}

/* ---- Pied avec boutons ---- */
.popup-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 12px 16px;
  background: #f8f9fa;
  border-top: 1px solid #eee;
}

.popup-footer button {
  padding: 8px 14px;
  border-radius: 6px;
  border: 1px solid #ccc;
  cursor: pointer;
  font-size: 14px;
}

/* Bouton Annuler */
.popup-cancel {
  background: #eee;
}

/* Bouton OK (style pro bleu) */
.popup-ok {
  background: #007bff;
  border-color: #007bff;
  color: #fff;
}
.popup-ok:hover { background: #0069d9; }