/* 1. Style Global */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f0f2f5;
    color: #333;
    margin: 0;
    padding: 20px;
}

/* 2. En-tête */
h1 {
    text-align: center;
    color: #2c3e50;
    border-bottom: 3px solid #e67e22;
    padding-bottom: 10px;
}

/* 3. Modèle de Boîte appliqué aux sections */
.card {
    background: white;
    margin: 20px auto;    /* Margin : espace extérieur */
    padding: 20px;         /* Padding : espace intérieur */
    max-width: 500px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

h2 {
    color: #e67e22;
    margin-top: 0;
}

/* 4. Boutons et Interactivité */
button {
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease; /* Animation fluide */
}

.btn-on {
    background-color: #27ae60;
    color: white;
}

.btn-off {
    background-color: #e74c3c;
    color: white;
    margin-left: 10px;
}

/* Effets au survol (Hover) */
button:hover {
    opacity: 0.8;
    transform: translateY(-2px); /* Petit effet de levier */
}