/* Reset et styles de base */
* {
    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;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

/* Header */
.header {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: white;
    padding: 40px;
    text-align: center;
    position: relative;
}

.header .logo {
    max-width: 150px;
    margin-bottom: 20px;
    border-radius: 10px;
}

.header h1 {
    font-size: 2.2em;
    margin-bottom: 10px;
    color: white;
}

.subtitle {
    color: #ecf0f1;
    font-size: 1.1em;
    margin-bottom: 20px;
}

/* Boîte d'information */
.info-box {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 25px;
    margin: 20px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.info-box p {
    margin: 10px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1em;
}

.info-box strong {
    font-weight: 600;
}

/* Alerts */
.alert {
    padding: 15px;
    margin: 20px;
    border-radius: 10px;
    text-align: center;
    font-weight: 500;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Formulaire */
.form-container {
    padding: 30px;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 25px;
    position: relative;
}

.form-group.half {
    flex: 1;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 1.1em;
}

.form-group label i {
    color: #667eea;
    margin-right: 10px;
    width: 24px;
    text-align: center;
}

.form-group input[type="text"],
.form-group input[type="tel"],
.form-group input[type="email"],
.form-group select {
    width: 100%;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    background: white;
}

/* Formations */
.formations-section {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 30px;
    border: 1px solid #e9ecef;
}

.formations-section h3 {
    color: #2c3e50;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.formation-note {
    color: #7f8c8d;
    margin-bottom: 20px;
    font-style: italic;
}

.formations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.formation-item {
    display: flex;
    align-items: center;
}

.formation-label {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 18px;
    background: white;
    border-radius: 12px;
    border: 2px solid #e9ecef;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
    font-weight: 500;
}

.formation-label:hover {
    border-color: #667eea;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.formation-item input[type="checkbox"]:checked + .formation-label {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: #667eea;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.formation-label i {
    font-size: 1.5em;
    width: 30px;
}

/* Checkbox WhatsApp */
.checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
}

.checkbox-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    cursor: pointer;
    margin: 0;
}

/* Boutons */
.btn-submit {
    display: block;
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.2em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 30px;
}

.btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.4);
}

.btn-submit:active {
    transform: translateY(-1px);
}

.btn-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.btn-list {
    display: inline-block;
    padding: 15px 30px;
    background: #27ae60;
    color: white;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
    margin: 10px;
}

.btn-list:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Liens */
.links {
    text-align: center;
    padding: 30px;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
}

/* Slogan */
.slogan {
    text-align: center;
    color: #7f8c8d;
    margin-top: 30px;
    font-style: italic;
    font-size: 1em;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
}

/* Erreurs */
.error {
    color: #e74c3c;
    font-size: 0.9em;
    margin-top: 5px;
    display: block;
}

/* Responsive */
@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .formations-grid {
        grid-template-columns: 1fr;
    }
    
    .header {
        padding: 20px;
    }
    
    .header h1 {
        font-size: 1.5em;
    }
    
    .info-box {
        margin: 10px;
        padding: 15px;
    }
    
    .form-container {
        padding: 20px;
    }
    
    .btn-submit {
        padding: 15px;
        font-size: 1em;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }
    
    .container {
        border-radius: 15px;
    }
    
    .info-box p {
        font-size: 1em;
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .formation-label {
        padding: 15px;
    }
    
    .links {
        padding: 20px;
    }
    
    .btn-list {
        display: block;
        margin: 10px 0;
        text-align: center;
    }
}

/* Animation spinner */
.fa-spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}