/* Définition des variables pour les deux thèmes */
:root {
    /* Thème sombre par défaut */
    --bg-color: #0d1117;
    --card-bg-color: #161b22;
    --border-color: #30363d;
    --accent-color: #238636;
    --text-primary: #c9d1d9;
    --text-secondary: #8b949e;
    --shadow-color: rgba(35, 134, 54, 0.3);
    --font-family: 'Poppins', sans-serif;
}

/* NOUVEAU : Variables pour le thème clair */
[data-theme="light"] {
    --bg-color: #f6f8fa;
    --card-bg-color: #ffffff;
    --border-color: #d0d7de;
    --accent-color: #2c974b;
    --text-primary: #1f2328;
    --text-secondary: #57606a;
    --shadow-color: rgba(44, 151, 75, 0.15);
}

/* Réinitialisation de base et styles globaux */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-color);
    color: var(--text-primary);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 2rem;
    transition: background-color 0.3s ease, color 0.3s ease; /* Animation douce */
}

/* NOUVEAU : Style du bouton de changement de thème */
.theme-switcher {
    position: fixed; /* Reste visible même en scrollant */
    top: 2rem;
    right: 2rem;
}

#theme-toggle {
    background: var(--card-bg-color);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
}

#theme-toggle:hover {
    color: var(--accent-color);
    border-color: var(--accent-color);
}

.container {
    width: 100%;
    max-width: 1200px;
}

header {
    text-align: center;
    margin-bottom: 3rem;
}
header h1 {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}
header p {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.card {
    background-color: var(--card-bg-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    text-decoration: none;
    color: var(--text-primary);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, background-color 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 0.5s forwards;
}

.card:hover {
    transform: translateY(-8px);
    border-color: var(--accent-color);
    box-shadow: 0 10px 20px var(--shadow-color);
}

.card i {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}

.card:hover i {
    transform: scale(1.1);
}

.card h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.card p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

footer {
    text-align: center;
    margin-top: 4rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
