/* 1. BASE & TYPOGRAPHIE */
body {
    font-family: 'Segoe UI', 'Roboto', sans-serif;
    background-color: #f0f2f5;
    margin: 0;
    padding: 40px 20px;
    color: #333;
    line-height: 1.6;
}

/* 2. CONTENEUR PRINCIPAL (La "Carte" blanche) */
.container {
    background: white;
    max-width: 500px;
    margin: 0 auto;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

/* Hero container pour l'accueil (plus large) */
.hero-container {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    padding: 50px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

/* 3. TITRES & TEXTES */
h1 { color: #2c3e50; font-size: 1.8em; margin-top: 0; text-align: center; }
h2 { color: #34495e; font-size: 1.5em; margin-bottom: 20px; text-align: center; }
h3 { color: #2c3e50; font-size: 1.2em; margin-top: 20px; margin-bottom: 10px; }
p { color: #666; font-size: 0.95em; margin-bottom: 15px; }

/* 4. FORMULAIRES (C'est ici que ça change tout pour le Vendeur) */
form { margin-top: 20px; }

label {
    display: block; /* Met le label au-dessus du champ */
    font-weight: 600;
    color: #34495e;
    margin-bottom: 8px;
    margin-top: 20px;
}

input[type="text"],
input[type="number"], 
select {
    width: 100%;
    padding: 14px;
    border: 2px solid #e1e4e8;
    border-radius: 8px;
    font-size: 16px;
    box-sizing: border-box; /* Empêche le débordement */
    transition: border-color 0.3s;
    background-color: #fafbfc;
}

input:focus, select:focus {
    border-color: #3498db;
    outline: none;
    background-color: white;
}

/* 5. BOUTONS */
button {
    width: 100%;
    background-color: #3498db;
    color: white;
    font-weight: 700;
    padding: 16px;
    margin-top: 25px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.2s;
}

button:hover { background-color: #2980b9; }

/* Bouton spécifique "Payer" */
.btn-pay { background-color: #27ae60; }
.btn-pay:hover { background-color: #219150; }

/* Bouton secondaire (liens) */
.btn-secondary {
    display: inline-block;
    text-decoration: none;
    color: #3498db;
    border: 2px solid #3498db;
    padding: 10px 20px;
    border-radius: 6px;
    margin-top: 10px;
    font-weight: 600;
}
.btn-secondary:hover { background: #3498db; color: white; }

/* 6. ÉLÉMENTS D'INTERFACE (Alertes, Badges) */
.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75em;
    font-weight: bold;
    text-transform: uppercase;
    color: white;
    background: #95a5a6;
    vertical-align: middle;
}

.success-box, .error-box, .info-box {
    padding: 15px;
    border-radius: 8px;
    margin: 20px 0;
    text-align: center;
}

.success-box { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.error-box { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }
.info-box { background: #e2e3e5; color: #383d41; border: 1px solid #d6d8db; }

/* Zone dynamique de dépôt (Paiement) */
.deposit-box {
    background: #f1f9ff;
    border: 2px dashed #3498db;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    margin-top: 20px;
}
.deposit-box h2 { color: #2980b9; margin: 10px 0; font-size: 2em; letter-spacing: 1px; }
.warning-text { color: #e67e22; font-size: 0.9em; font-weight: bold; }
.hidden { display: none; }

/* 7. DÉTAILS TRANSACTION */
.details-box {
    background: #fafbfc;
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
    border: 1px solid #eee;
}
.row { display: flex; justify-content: space-between; margin-bottom: 8px; }
.price { color: #27ae60; font-weight: bold; font-size: 1.2em; }

/* Liens discrets */
a { color: #3498db; text-decoration: none; }
a:hover { text-decoration: underline; }

/* Pied de page */
footer { text-align: center; margin-top: 50px; color: #b0b8c1; font-size: 0.85em; }