/* Style professionnel pour Exercice 1 - TP2 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(135deg, #0066cc 0%, #003366 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    position: relative;
}

/* Lien de retour */
.return-link {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1000;
}

.return-link a {
    background: white;
    color: #0066cc;
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.return-link a:hover {
    background: #f0f7ff;
    transform: translateY(-2px);
}

.return-link i {
    color: #ff9900;
}

/* Carte principale */
.exercice-container {
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 51, 102, 0.2);
    padding: 35px;
    max-width: 550px;
    width: 100%;
}

/* En-tête optimisé */
.exercice-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #0066cc;
}

.exercice-number {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #0066cc;
    color: white;
    padding: 8px 18px;
    border-radius: 40px;
    font-size: 18px;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(0,102,204,0.3);
}

.exercice-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.exercice-title h1 {
    color: #0066cc;
    font-size: 24px;
    font-weight: 600;
    margin: 0;
}

.exercice-title i {
    color: #ff9900;
    font-size: 28px;
}


/* Radio group */
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: #f5f9ff;
    padding: 12px;
    border-radius: 8px;
    margin-top: 5px;
}

.radio-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.radio-item input[type="radio"] {
    accent-color: #0066cc;
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.radio-item label {
    display: flex;
    align-items: center;
    gap: 5px;
    margin: 0;
    cursor: pointer;
    font-weight: normal;
}

.radio-item i.fa-sun {
    color: #ff9900;
}

.radio-item i.fa-moon {
    color: #0066cc;
}

/* Double champ */
.double-field {
    display: flex;
    gap: 15px;
    margin: 20px 0;
}

.double-field .form-group {
    flex: 1;
    margin-bottom: 0;
}

/* Checkbox stylisée */
.checkbox-wrapper {
    background: #f5f9ff;
    padding: 15px;
    border-radius: 8px;
    margin: 20px 0;
    border-left: 4px solid #28a745;
}

.checkbox-wrapper label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    margin: 0;
}

.checkbox-wrapper input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #28a745;
    cursor: pointer;
}

.checkbox-wrapper span {
    font-weight: 500;
    color: #444;
}

.checkbox-wrapper i.fa-check-circle {
    color: #28a745;
    margin-right: 5px;
}

/* Message d'aide */
.help-message {
    text-align: center;
    margin-top: 15px;
    font-size: 12px;
    color: #6c757d;
}

.help-message i {
    color: #ff9900;
    margin-right: 3px;
}

/* Formulaire */
.exercice-form {
    margin-top: 15px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    color: #444;
    font-weight: 500;
    font-size: 14px;
}

.form-group label i {
    margin-right: 6px;
    color: #0066cc;
}

/* Champs de texte */
.form-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #d0dbe8;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.2s ease;
}

.form-input:focus {
    outline: none;
    border-color: #0066cc;
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

/* Zone de texte destination */
.input-destination .form-input {
    background: #f5f9ff;
    border-color: #b8d1f0;
}

/* Bouton */
.button-group {
    text-align: center;
    margin: 25px 0 15px;
}

.btn {
    background: #0066cc;
    color: white;
    border: none;
    padding: 14px 35px;
    border-radius: 40px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 180px;
    box-shadow: 0 4px 10px rgba(0, 102, 204, 0.3);
}
.btnSuivant {
    background:rgba(0, 102, 204, 0.3);

    border: none;
    padding: 14px 35px;
    border-radius: 40px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 180px;
}

.btn:hover {
    background: #0052a3;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 102, 204, 0.4);
}

.btn i {
    font-size: 16px;
}
        /* Styles minimaux supplémentaires */
        .event-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 15px;
            margin: 20px 0;
        }
        
        .event-card {
            background: #f8f9fa;
            border-radius: 10px;
            padding: 15px;
            border: 1px solid #e0e0e0;
        }
        
        .event-card h3 {
            color: #0066cc;
            font-size: 16px;
            margin-bottom: 10px;
            border-bottom: 1px solid #0066cc;
            padding-bottom: 5px;
        }
        
        .mouse-demo-btn {
            width: 100%;
            padding: 15px;
            border: none;
            border-radius: 8px;
            background: #0066cc;
            color: white;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s ease;
        }
        
        .form-row {
            display: flex;
            gap: 10px;
            margin: 15px 0;
            flex-wrap: wrap;
        }

/* Responsive */
@media (max-width: 480px) {
    .exercice-container {
        padding: 20px;
    }
    
    .exercice-header {
        flex-direction: column;
        text-align: center;
    }
    
    .exercice-title h1 {
        font-size: 20px;
    }
    
    .btn {
        padding: 12px 25px;
        font-size: 15px;
        min-width: 160px;
    }
    
    .double-field {
        flex-direction: column;
        gap: 15px;
    }
}