/* Style global */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    color: #2d3748;
    line-height: 1.6;
    padding: 20px;
}

/* En-tête */
h1.text-primary {
    color: #2c5282 !important;
    font-size: 2.8rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);
    margin-bottom: 0.5rem;
    text-align: center;
    padding: 1rem;
}

h2.text-secondary {
    color: #4a5568 !important;
    margin: 1rem 0;
    font-size: 1.8rem;
    text-align: center;
}

/* Séparateur stylisé */
.separator {
    border: none;
    height: 1px;
    background: linear-gradient(to right, transparent, #a0aec0, transparent);
    margin: 2rem auto;
    max-width: 80%;
}

/* Conteneurs principaux */
.container {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    margin-bottom: 2rem;
    backdrop-filter: blur(5px);
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* Colonnes */
.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -10px;
}

.col {
    flex: 1;
    padding: 0 15px;
    margin-bottom: 1.5rem;
    min-width: 300px;
}

/* Cartes de catégories */
.col h2 {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white !important;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
}

/* Liens de navigation */
.col h5 {
    margin-bottom: 1.2rem;
}

.project-link {
    display: block;
    padding: 12px 20px;
    background: white;
    border-radius: 8px;
    text-decoration: none;
    color: #4a5568;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
    margin-bottom: 10px;
}

.project-link:before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 5px;
    background: linear-gradient(to bottom, #667eea, #764ba2);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    color: #2d3748;
    border-color: #c3cfe2;
}

.project-link:hover:before {
    opacity: 1;
}

/* Style pour les résultats */
.result-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-left: 8px;
    float: right;
}

/* Couleurs selon le score */
.score-0-5 {
    background-color: #EF4444; /* Rouge */
    color: white;
}

.score-6-10 {
    background-color: #F97316; /* Orange */
    color: white;
}

.score-11-15 {
    background-color: #F59E0B; /* Jaune */
    color: white;
}

.score-16-20 {
    background-color: #10B981; /* Vert */
    color: white;
}

.result-badge i {
    margin-right: 4px;
}

/* Animation d'entrée */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

.container {
    animation: fadeIn 0.5s ease-out;
}

.col {
    animation: fadeIn 0.5s ease-out 0.2s both;
}

.col:nth-child(2) {
    animation-delay: 0.3s;
}

.col:nth-child(3) {
    animation-delay: 0.4s;
}

/* Logo */
.logo-container {
    text-align: center;
    margin: 1rem 0;
}

.logo {
    width: 300px;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

/* Responsive design */
@media (max-width: 992px) {
    .row {
        flex-direction: column;
    }

    .col {
        margin-bottom: 2rem;
    }

    h1.text-primary {
        font-size: 2.2rem;
    }

    h2.text-secondary {
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 1rem;
        border-radius: 10px;
    }

    h1.text-primary {
        font-size: 1.8rem;
        padding: 1rem !important;
    }

    .col h2 {
        font-size: 1.3rem;
    }

    .project-link {
        padding: 10px 15px;
        font-size: 0.9rem;
    }

    .logo {
        width: 250px;
    }
}