/* ==========================================================================
   CHARTE GRAPHIQUE ROYALE & GOLD PREMIUM
   Couleurs principales : Pourpre (#4b0f5c) & Or (#E6C76B)
   ========================================================================== */

   :root {
    --royal-purple-dark: #270631;
    --royal-purple: #4b0f5c;
    --royal-purple-light: #6a1a82;
    --gold-primary: #E6C76B;
    --gold-light: #f5e4ab;
    --gold-dark: #b8983f;
    --bg-dark: #120317;
    --card-bg: rgba(39, 6, 49, 0.65);
    --input-bg: rgba(18, 3, 23, 0.85);
    --border-gold: rgba(230, 199, 107, 0.25);
    --border-gold-focus: rgba(230, 199, 107, 0.8);
    --text-light: #f8fafc;
    --text-muted: #c4b5fd;
  }
  
  * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }
  
  body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-dark);
    background-image: 
      radial-gradient(circle at 50% 0%, rgba(106, 26, 130, 0.35) 0%, transparent 70%),
      radial-gradient(circle at 100% 100%, rgba(230, 199, 107, 0.08) 0%, transparent 50%);
    color: var(--text-light);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
  }
  
  .container {
    width: 100%;
    max-width: 850px;
  }
  
  /* Header */
  .header-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
  }
  
  @media (min-width: 768px) {
    .header-wrapper {
      flex-direction: row;
      align-items: center;
      justify-content: space-between;
    }
  }
  
  .badge-gold {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.85rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    background: rgba(230, 199, 107, 0.12);
    color: var(--gold-primary);
    border: 1px solid var(--border-gold);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
  }
  
  .title-royal {
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff;
    background: linear-gradient(135deg, #ffffff 0%, var(--gold-light) 50%, var(--gold-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
  }
  
  .subtitle {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-top: 0.25rem;
  }
  
  .btn-back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.25rem;
    border-radius: 0.75rem;
    background: rgba(75, 15, 92, 0.4);
    border: 1px solid var(--border-gold);
    color: var(--gold-primary);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
  }
  
  .btn-back:hover {
    background: var(--royal-purple);
    color: #ffffff;
    border-color: var(--gold-primary);
    box-shadow: 0 0 15px rgba(230, 199, 107, 0.2);
  }
  
  /* Carte Formulaire Premium */
  .royal-card {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-gold);
    border-radius: 1.5rem;
    padding: 2rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 30px rgba(75, 15, 92, 0.3);
  }
  
  @media (min-width: 768px) {
    .royal-card {
      padding: 2.5rem;
    }
  }
  
  /* Sections & Titres */
  .form-section {
    margin-bottom: 2rem;
  }
  
  .section-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-gold);
    margin-bottom: 1.5rem;
  }
  
  .step-number {
    width: 2rem;
    height: 2rem;
    border-radius: 0.5rem;
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-dark));
    color: #120317;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    box-shadow: 0 2px 10px rgba(230, 199, 107, 0.3);
  }
  
  .section-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--gold-light);
  }
  
  /* Grilles & Formulaires */
  .grid-2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  
  .grid-3 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  
  @media (min-width: 768px) {
    .grid-2 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(3, 1fr); }
    .col-span-2 { grid-column: span 2 / span 2; }
  }
  
  .form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .form-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--gold-light);
    letter-spacing: 0.02em;
  }
  
  .required {
    color: #ef4444;
  }
  
  /* Inputs & Selects */
  .input-royal {
    width: 100%;
    background: var(--input-bg);
    border: 1px solid var(--border-gold);
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    color: #ffffff;
    outline: none;
    transition: all 0.3s ease;
  }
  
  .input-royal::placeholder {
    color: #7e6388;
  }
  
  .input-royal:focus {
    border-color: var(--gold-primary);
    box-shadow: 0 0 12px rgba(230, 199, 107, 0.3);
    background: rgba(27, 4, 34, 0.95);
  }
  
  select.input-royal option {
    background-color: var(--bg-dark);
    color: var(--text-light);
  }
  
  /* Options Radios Personnalisées */
  .radio-group {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
  }
  
  .radio-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background: var(--input-bg);
    border: 1px solid var(--border-gold);
    border-radius: 0.75rem;
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
  }
  
  .radio-btn:hover {
    border-color: var(--gold-primary);
    color: #ffffff;
  }
  
  .radio-btn input[type="radio"] {
    accent-color: var(--gold-primary);
  }
  
  .radio-btn:has(input:checked) {
    background: linear-gradient(135deg, rgba(75, 15, 92, 0.8), rgba(106, 26, 130, 0.8));
    border-color: var(--gold-primary);
    color: var(--gold-light);
    box-shadow: 0 0 10px rgba(230, 199, 107, 0.2);
  }
  
  /* Saisie du Montant */
  .amount-wrapper {
    position: relative;
  }
  
  .amount-wrapper .input-royal {
    padding-right: 4rem;
  }
  
  .currency-badge {
    position: absolute;
    right: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--gold-primary);
  }
  
  /* Checkboxes & Actions */
  .checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding-top: 0.5rem;
  }
  
  @media (min-width: 768px) {
    .checkbox-group {
      flex-direction: row;
      gap: 1.5rem;
    }
  }
  
  .checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    cursor: pointer;
  }
  
  .checkbox-label input[type="checkbox"] {
    width: 1rem;
    height: 1rem;
    accent-color: var(--gold-primary);
    border-radius: 0.25rem;
  }
  
  /* Footer & Boutons d'Action */
  .form-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-gold);
  }
  
  .btn-reset {
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    border: 1px solid transparent;
    background: transparent;
    color: var(--text-muted);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
  }
  
  .btn-reset:hover {
    color: #ffffff;
  }
  
  .btn-submit-gold {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 2rem;
    border-radius: 0.75rem;
    border: none;
    background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold-primary) 50%, var(--gold-dark) 100%);
    color: #120317;
    font-size: 0.875rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(230, 199, 107, 0.3);
    transition: all 0.3s ease;
  }
  
  .btn-submit-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(230, 199, 107, 0.5);
    filter: brightness(1.1);
  }
  
  /* Alertes */
  .alert {
    padding: 1rem;
    border-radius: 0.75rem;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
  }
  
  .alert-error {
    background: rgba(225, 29, 72, 0.15);
    border: 1px solid rgba(225, 29, 72, 0.4);
    color: #fca5a5;
  }
  
  .alert-success {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: #6ee7b7;
  }