/* ===========================================
   STYLES GLOBAUX
   =========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* ===========================================
   STRUCTURE SÉMANTIQUE HTML5
   =========================================== */
main {
    flex: 1;
}

footer {
    text-align: center;
    padding: 20px 30px;
    background: #f8f9fa;
    color: #666;
    font-size: 14px;
    border-top: 1px solid #e9ecef;
}

footer p {
    margin: 0;
}

/* ===========================================
   CONTENEUR PRINCIPAL
   =========================================== */
.container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 600px;
    width: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* ===========================================
   EN-TÊTE
   =========================================== */
.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px 30px;
    text-align: center;
}

.header h1 {
    font-size: 32px;
    margin-bottom: 10px;
}

.header p {
    font-size: 16px;
    opacity: 0.9;
}

/* En-tête de succès */
.header.success {
    background: linear-gradient(135deg, #4caf50 0%, #45a049 100%);
}

.success-icon {
    font-size: 80px;
    margin-bottom: 20px;
}

/* En-tête d'annulation */
.header.cancel {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
}

.cancel-icon {
    font-size: 80px;
    margin-bottom: 20px;
}

/* ===========================================
   INFORMATIONS ÉVÉNEMENT
   =========================================== */
main .event-info {
    background: #f8f9fa;
    padding: 25px;
    border-left: 4px solid #667eea;
    margin-bottom: 20px;
}

.event-info {
    background: #f8f9fa;
    padding: 25px;
    border-left: 4px solid #667eea;
}

.event-info h2 {
    color: #333;
    font-size: 20px;
    margin-bottom: 15px;
}

.info-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    color: #555;
}

.info-item strong {
    color: #333;
    margin-right: 8px;
    min-width: 80px;
}

/* ===========================================
   COMPTEUR DE PARTICIPANTS
   =========================================== */
main .participants-counter,
.participants-counter {
    background: #f8f9fa;
    padding: 20px 25px;
    margin: 20px 0;
    border-radius: 10px;
    border: 2px solid #667eea;
    text-align: center;
}

.participants-count {
    font-size: 40px;
    font-weight: bold;
    line-height: 1.1;
    color: #667eea;
}

.participants-label {
    color: #555;
    font-size: 16px;
    margin-top: 4px;
}

.participants-max {
    color: #888;
    font-size: 14px;
    margin-top: 10px;
}

/* ===========================================
   TARIFICATION
   =========================================== */
main .pricing {
    background: #fff3cd;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 10px;
    border: 2px solid #ffc107;
}

.pricing {
    background: #fff3cd;
    padding: 20px;
    margin: 20px 0;
    border-radius: 10px;
    border: 2px solid #ffc107;
}

.pricing h3 {
    color: #856404;
    margin-bottom: 10px;
}

.price-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    color: #856404;
}

.price-item span:last-child {
    font-weight: bold;
    font-size: 18px;
}

/* ===========================================
   FORMULAIRES
   =========================================== */
.form-section {
    padding: 0;
}

main .form-section {
    padding: 0;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 600;
    font-size: 14px;
}

input[type="text"],
input[type="email"],
input[type="number"] {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="number"]:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.number-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

/* ===========================================
   TOTAL ET PAIEMENT
   =========================================== */
.total-section {
    background: #e8f5e9;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    border: 2px solid #4caf50;
}

.total-section h3 {
    color: #2e7d32;
    margin-bottom: 10px;
}

.total-amount {
    font-size: 32px;
    font-weight: bold;
    color: #1b5e20;
    text-align: center;
}

/* Box de total sur page succès */
.total-box {
    background: linear-gradient(135deg, #4caf50 0%, #45a049 100%);
    color: white;
    padding: 25px;
    text-align: center;
    border-radius: 10px;
    margin-bottom: 30px;
}

.total-box h3 {
    font-size: 18px;
    margin-bottom: 10px;
    opacity: 0.9;
}

.total-box .total-amount {
    font-size: 42px;
    font-weight: bold;
    color: white;
}

/* ===========================================
   BOUTONS
   =========================================== */
.submit-btn,
.btn {
    padding: 15px;
    border: none;
    border-radius: 10px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.submit-btn {
    width: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
}

.submit-btn:active {
    transform: translateY(0);
}

.submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.btn-home {
    display: block;
    width: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-home:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
}

.btn-primary {
    flex: 1;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-secondary {
    flex: 1;
    background: #f5f5f5;
    color: #333;
    border: 2px solid #e0e0e0;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* ===========================================
   BOÎTES D'INFORMATION
   =========================================== */
.info-box {
    background: #f9f9f9;
    padding: 25px;
    margin-bottom: 20px;
    border-radius: 10px;
    border: 1px solid #e0e0e0;
}

.info-box h2 {
    color: #667eea;
    font-size: 20px;
    margin-bottom: 15px;
}

.info-box .info-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e0e0e0;
}

.info-box .info-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.info-box .info-item strong {
    color: #333;
}

.info-box .info-item span {
    color: #666;
}

/* ===========================================
   MESSAGES ET NOTIFICATIONS
   =========================================== */
.alert {
    padding: 20px 25px;
    margin-bottom: 25px;
    border-radius: 10px;
    border-left: 4px solid;
}

.alert h3 {
    margin-bottom: 10px;
    font-size: 20px;
}

.alert p {
    line-height: 1.6;
    margin-bottom: 10px;
}

.alert ul {
    margin: 10px 0;
    padding-left: 25px;
}

.alert li {
    margin-bottom: 5px;
}

.alert-info {
    background: #e3f2fd;
    border-color: #2196f3;
    color: #0d47a1;
}

.alert-info h3 {
    color: #1565c0;
}

.success-message {
    background: #e8f5e9;
    border-left: 4px solid #4caf50;
    padding: 20px;
    margin-bottom: 30px;
    border-radius: 5px;
}

.success-message p {
    color: #2e7d32;
    line-height: 1.6;
}

.email-notice {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 20px;
    margin-bottom: 30px;
    border-radius: 5px;
}

.email-notice p {
    color: #856404;
}

.email-notice.error {
    background: #ffebee;
    border-color: #f44336;
}

.email-notice.error p {
    color: #c62828;
}

.message {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 20px;
    margin-bottom: 30px;
    border-radius: 5px;
    text-align: left;
}

.message p {
    color: #856404;
    line-height: 1.8;
}

/* ===========================================
   DÉTAILS ÉVÉNEMENT (PAGE SUCCÈS)
   =========================================== */
.event-details {
    background: #f5f5f5;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.event-details h3 {
    color: #667eea;
    margin-bottom: 15px;
}

.event-detail-item {
    margin-bottom: 10px;
    color: #555;
}

/* ===========================================
   CONTENU (PAGES SUCCÈS/ANNULATION)
   =========================================== */
.content {
    padding: 40px 30px;
}

.content.centered {
    text-align: center;
}

/* ===========================================
   LAYOUT DES BOUTONS
   =========================================== */
.buttons {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

/* ===========================================
   ERREURS
   =========================================== */
.error {
    color: #d32f2f;
    font-size: 14px;
    margin-top: 5px;
}

/* ===========================================
   RESPONSIVE
   =========================================== */
@media (max-width: 600px) {
    .container {
        border-radius: 0;
    }

    .number-inputs {
        grid-template-columns: 1fr;
    }

    .buttons {
        flex-direction: column;
    }
}
