/* Variables de couleurs */
:root {
    --primary-color: #4a6fa5;
    --accent-color: #5c7fa3;
    --text-color: #2d3748;
    --card-bg: rgba(255, 255, 255, 0.98);
    --background: #f0f4f8;
    --card-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    --icon-bg: rgba(74, 111, 165, 0.1);
    --icon-hover-bg: rgba(74, 111, 165, 0.2);
}

/* Réinitialisation des styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Styles de base */
body {
    background-color: var(--background);
    color: var(--text-color);
    line-height: 1.6;
    padding: 40px 20px;
    min-height: 100vh;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* En-tête */
header {
    text-align: center;
    margin-bottom: 40px;
    padding: 20px 0;
    border-bottom: 2px solid var(--accent-color);
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: var(--accent-color);
}

header p {
    font-size: 1.2rem;
    color: #bdc3c7;
}

/* Grille des services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
    padding: 20px 0;
}

/* Carte de service */
.service-card {
    display: flex;
    flex-direction: column;
    background: var(--card-bg);
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    color: var(--text-color);
    height: 300px;
    position: relative;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
    padding: 30px;
    text-align: center;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    border-color: rgba(0, 0, 0, 0.1);
}

.icon-container {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: var(--icon-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.service-card:hover .icon-container {
    background: var(--icon-hover-bg);
    transform: scale(1.1);
}

.service-card .icon {
    font-size: 2rem;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.service-card:hover .icon {
    color: var(--accent-color);
}

.service-card h3 {
    margin: 0 0 15px;
    font-size: 1.5rem;
    color: var(--text-color);
    font-weight: 600;
    transition: all 0.3s ease;
}

.service-card p {
    color: #666;
    font-size: 1rem;
    margin: 0;
    line-height: 1.6;
    transition: all 0.3s ease;
}

.service-card:hover p {
    color: #444;
}

/* Effet de bordure animée */
.service-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.service-card:hover::after {
    transform: scaleX(1);
}

/* Pied de page */
footer {
    text-align: center;
    margin-top: 60px;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #7f8c8d;
    font-size: 0.9rem;
}

/* Réactivité */
@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    .service-card {
        padding: 20px 15px;
        min-height: 180px;
    }
    
    .service-card h3 {
        font-size: 1.3rem;
    }
}

/* Animation de chargement */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.service-card {
    animation: fadeIn 0.6s ease-out forwards;
    opacity: 0;
}

/* Délai d'animation pour chaque carte */
.service-card:nth-child(1) { animation-delay: 0.1s; }
.service-card:nth-child(2) { animation-delay: 0.2s; }
.service-card:nth-child(3) { animation-delay: 0.3s; }
.service-card:nth-child(4) { animation-delay: 0.4s; }
.service-card:nth-child(5) { animation-delay: 0.5s; }
