/* Styles pour la page des groupes. */

/* Introduction des groupes */
.groups-intro {
    text-align: center;
    margin-bottom: 50px;
    padding: 0 20px;
}

.groups-intro h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--dark-color);
    position: relative;
    display: inline-block;
}

.groups-intro h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: var(--primary-color);
}

.groups-intro p {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-color);
}

/* Grille des groupes */
.groups-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

/* Carte de groupe */
.group-card {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    background: white;
}

.group-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

/* En-tête de groupe */
.group-header {
    padding: 20px;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    text-align: center;
}

.group-badge {
    width: 150px;
    height: 150px;
    object-fit: contain;
}

.group-header h3 {
    width: 100%;
}

/* Niveaux de difficulté avec dégradé*/
.level-1 { 
    background: linear-gradient(135deg, #88b38a, #2E7D32);
}
.level-2 {
    background: linear-gradient(135deg, #bd9a7d, #a05518);
}
.level-3 {
    background: linear-gradient(135deg, #698f9c, #325a6a);
}
.level-4 {
    background: linear-gradient(135deg, #d89d99, #B71C1C);
}
.level-5 {
    background: linear-gradient(135deg, #998d71, #765c25);
}
.level-e {
    background: linear-gradient(135deg, #FF9800, #E65100);
}

.group-header h3 {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 600;
}

.group-level {
    font-size: 0.9rem;
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    font-weight: 500;
}

/* Corps de la carte */
.group-body {
    padding: 25px;
    background: white;
}

.group-body p {
    margin: 0;
    color: var(--text-color);
    line-height: 1.6;
}

.group-body strong {
    color: var(--dark-color);
}

/* Section de conclusion */
.groups-conclusion {
    text-align: center;
    margin: 40px auto;
    padding: 25px;
    background-color: #f8f9fa;
    border-radius: var(--border-radius);
    font-style: italic;
    max-width: 900px;
    box-shadow: var(--box-shadow);
}

.groups-conclusion p {
    margin: 0;
    color: var(--gray-color);
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Guide visuel des niveaux */
.levels-guide {
    margin: 50px 0;
    padding: 30px;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.levels-guide h3 {
    text-align: center;
    margin-bottom: 25px;
    color: var(--dark-color);
    font-size: 1.5rem;
}

.levels-table {
    width: 100%;
    border-collapse: collapse;
}

.levels-table th,
.levels-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.levels-table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: var(--dark-color);
}

.levels-table tr:last-child td {
    border-bottom: none;
}

.level-indicator {
    display: inline-block;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    margin-right: 8px;
}

.level-indicator.beginner { background-color: #88b38a; }
.level-indicator.beginner-plus { background-color: #bd9a7d; }
.level-indicator.intermediate { background-color: #698f9c; }
.level-indicator.advanced { background-color: #d89d99; }
.level-indicator.expert { background-color: #998d71; }
.level-indicator.e-bike { background-color: #FF9800; }

/* Responsive */
@media (max-width: 1024px) {
    .groups-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .groups-grid {
        grid-template-columns: 1fr;
    }
    
    .groups-intro h2 {
        font-size: 1.8rem;
    }
    
    .levels-table th,
    .levels-table td {
        padding: 10px;
    }
    
    .levels-table {
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .group-header {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .group-level {
        align-self: center;
    }
}