/* Styles pour la page Catégories Kid VTT */

.categories-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 0 60px;
}

.categories-intro {
    text-align: center;
    margin-bottom: 40px;
    padding: 25px;
    background-color: #f5f5f5;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.categories-intro h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--dark-color);
    position: relative;
    display: inline-block;
}

.categories-intro h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--primary-color);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.category-card {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.category-header {
    padding: 18px 20px;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.u15 .category-header { background: linear-gradient(135deg, #F44336, #D32F2F); }
.u13 .category-header { background: linear-gradient(135deg, #FF9800, #F57C00); }
.u11 .category-header { background: linear-gradient(135deg, #FFEB3B, #FBC02D); color: #333; }
.u9 .category-header { background: linear-gradient(135deg, #4CAF50, #388E3C); }
.u7 .category-header { background: linear-gradient(135deg, #2196F3, #1976D2); }

.category-header h3 {
    margin: 0;
    font-size: 1.7rem;
    font-weight: 700;
}

.category-age {
    font-size: 0.95rem;
    padding: 5px 12px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    font-weight: 500;
}

.u11 .category-age {
    background: rgba(0, 0, 0, 0.1);
}

.category-content {
    padding: 25px;
    background: white;
}

.category-years, .category-time {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    font-size: 1.05rem;
}

.category-years i, .category-time i {
    margin-right: 10px;
    color: #666;
    font-size: 1.2rem;
    width: 25px;
    text-align: center;
}

.category-illustration {
    margin-top: 25px;
    display: flex;
    justify-content: center;
}

.bike-icon {
    width: 80px;
    height: 80px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.7;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.category-card:hover .bike-icon {
    opacity: 1;
    transform: scale(1.1);
}

.u15-icon { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 640 512'%3E%3Cpath fill='%23D32F2F' d='M512 224c-17.7 0-33.9 6.6-46.4 17.3L445.5 192H416c-5.9 0-11.3-3.2-14.1-8.5l-32-64c-4.1-8.2-14.3-11.7-22.8-8.2L183.8 174.7l45.1 69.8L201.2 299 345.9 211.7l-12.2-31.4-30.4 10.2c-11.2-25.5-33.2-44.3-60.2-48.3l-66.2-9.9zM512 288a63.9 63.9 0 0 0-59.1 88.2L408.1 420l16.5 33H384v32h68.6l29.2-58.4L539 366.2A64 64 0 1 0 512 288zM399.8 293.6L277.7 368.3c-9.8 6-22.9 4.2-30.1-4.4l-25.3-30.3 27.6-54.5 72.3-24.2-25.2-64.3-111.9 37.3c-9.6 3.2-16.5 12-16.5 22.3 0 4.1 1 8.1 3.1 11.4L237.7 350c16.3 19.5 41.7 25.1 63 15.6l120.7-73.7 15.6-11.3 14.9-10.7c8-5.9 9.9-17.2 4-25.2l-56-75.7zM8 96h65.3C66 106.5 64 118 64 130v214h32V130c0-26.5 21.5-48 48-48h32L134.5 6.1C131.8 2.3 127.1 0 122.1 0H8C3.6 0 0 3.6 0 8v80c0 4.4 3.6 8 8 8zm115.4 200l-60.7 75.9c-3.3 4.1-2.6 10.1 1.5 13.4s10.1 2.6 13.4-1.5L128 330.5V296h-4.6z'/%3E%3C/svg%3E"); }
.u13-icon { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 640 512'%3E%3Cpath fill='%23F57C00' d='M512 224c-17.7 0-33.9 6.6-46.4 17.3L445.5 192H416c-5.9 0-11.3-3.2-14.1-8.5l-32-64c-4.1-8.2-14.3-11.7-22.8-8.2L183.8 174.7l45.1 69.8L201.2 299 345.9 211.7l-12.2-31.4-30.4 10.2c-11.2-25.5-33.2-44.3-60.2-48.3l-66.2-9.9zM512 288a63.9 63.9 0 0 0-59.1 88.2L408.1 420l16.5 33H384v32h68.6l29.2-58.4L539 366.2A64 64 0 1 0 512 288zM399.8 293.6L277.7 368.3c-9.8 6-22.9 4.2-30.1-4.4l-25.3-30.3 27.6-54.5 72.3-24.2-25.2-64.3-111.9 37.3c-9.6 3.2-16.5 12-16.5 22.3 0 4.1 1 8.1 3.1 11.4L237.7 350c16.3 19.5 41.7 25.1 63 15.6l120.7-73.7 15.6-11.3 14.9-10.7c8-5.9 9.9-17.2 4-25.2l-56-75.7zM8 96h65.3C66 106.5 64 118 64 130v214h32V130c0-26.5 21.5-48 48-48h32L134.5 6.1C131.8 2.3 127.1 0 122.1 0H8C3.6 0 0 3.6 0 8v80c0 4.4 3.6 8 8 8zm115.4 200l-60.7 75.9c-3.3 4.1-2.6 10.1 1.5 13.4s10.1 2.6 13.4-1.5L128 330.5V296h-4.6z'/%3E%3C/svg%3E"); }
.u11-icon { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 640 512'%3E%3Cpath fill='%23FBC02D' d='M512 224c-17.7 0-33.9 6.6-46.4 17.3L445.5 192H416c-5.9 0-11.3-3.2-14.1-8.5l-32-64c-4.1-8.2-14.3-11.7-22.8-8.2L183.8 174.7l45.1 69.8L201.2 299 345.9 211.7l-12.2-31.4-30.4 10.2c-11.2-25.5-33.2-44.3-60.2-48.3l-66.2-9.9zM512 288a63.9 63.9 0 0 0-59.1 88.2L408.1 420l16.5 33H384v32h68.6l29.2-58.4L539 366.2A64 64 0 1 0 512 288zM399.8 293.6L277.7 368.3c-9.8 6-22.9 4.2-30.1-4.4l-25.3-30.3 27.6-54.5 72.3-24.2-25.2-64.3-111.9 37.3c-9.6 3.2-16.5 12-16.5 22.3 0 4.1 1 8.1 3.1 11.4L237.7 350c16.3 19.5 41.7 25.1 63 15.6l120.7-73.7 15.6-11.3 14.9-10.7c8-5.9 9.9-17.2 4-25.2l-56-75.7zM8 96h65.3C66 106.5 64 118 64 130v214h32V130c0-26.5 21.5-48 48-48h32L134.5 6.1C131.8 2.3 127.1 0 122.1 0H8C3.6 0 0 3.6 0 8v80c0 4.4 3.6 8 8 8zm115.4 200l-60.7 75.9c-3.3 4.1-2.6 10.1 1.5 13.4s10.1 2.6 13.4-1.5L128 330.5V296h-4.6z'/%3E%3C/svg%3E"); }
.u9-icon { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 640 512'%3E%3Cpath fill='%23388E3C' d='M512 224c-17.7 0-33.9 6.6-46.4 17.3L445.5 192H416c-5.9 0-11.3-3.2-14.1-8.5l-32-64c-4.1-8.2-14.3-11.7-22.8-8.2L183.8 174.7l45.1 69.8L201.2 299 345.9 211.7l-12.2-31.4-30.4 10.2c-11.2-25.5-33.2-44.3-60.2-48.3l-66.2-9.9zM512 288a63.9 63.9 0 0 0-59.1 88.2L408.1 420l16.5 33H384v32h68.6l29.2-58.4L539 366.2A64 64 0 1 0 512 288zM399.8 293.6L277.7 368.3c-9.8 6-22.9 4.2-30.1-4.4l-25.3-30.3 27.6-54.5 72.3-24.2-25.2-64.3-111.9 37.3c-9.6 3.2-16.5 12-16.5 22.3 0 4.1 1 8.1 3.1 11.4L237.7 350c16.3 19.5 41.7 25.1 63 15.6l120.7-73.7 15.6-11.3 14.9-10.7c8-5.9 9.9-17.2 4-25.2l-56-75.7zM8 96h65.3C66 106.5 64 118 64 130v214h32V130c0-26.5 21.5-48 48-48h32L134.5 6.1C131.8 2.3 127.1 0 122.1 0H8C3.6 0 0 3.6 0 8v80c0 4.4 3.6 8 8 8zm115.4 200l-60.7 75.9c-3.3 4.1-2.6 10.1 1.5 13.4s10.1 2.6 13.4-1.5L128 330.5V296h-4.6z'/%3E%3C/svg%3E"); }
.u7-icon { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 640 512'%3E%3Cpath fill='%231976D2' d='M512 224c-17.7 0-33.9 6.6-46.4 17.3L445.5 192H416c-5.9 0-11.3-3.2-14.1-8.5l-32-64c-4.1-8.2-14.3-11.7-22.8-8.2L183.8 174.7l45.1 69.8L201.2 299 345.9 211.7l-12.2-31.4-30.4 10.2c-11.2-25.5-33.2-44.3-60.2-48.3l-66.2-9.9zM512 288a63.9 63.9 0 0 0-59.1 88.2L408.1 420l16.5 33H384v32h68.6l29.2-58.4L539 366.2A64 64 0 1 0 512 288zM399.8 293.6L277.7 368.3c-9.8 6-22.9 4.2-30.1-4.4l-25.3-30.3 27.6-54.5 72.3-24.2-25.2-64.3-111.9 37.3c-9.6 3.2-16.5 12-16.5 22.3 0 4.1 1 8.1 3.1 11.4L237.7 350c16.3 19.5 41.7 25.1 63 15.6l120.7-73.7 15.6-11.3 14.9-10.7c8-5.9 9.9-17.2 4-25.2l-56-75.7zM8 96h65.3C66 106.5 64 118 64 130v214h32V130c0-26.5 21.5-48 48-48h32L134.5 6.1C131.8 2.3 127.1 0 122.1 0H8C3.6 0 0 3.6 0 8v80c0 4.4 3.6 8 8 8zm115.4 200l-60.7 75.9c-3.3 4.1-2.6 10.1 1.5 13.4s10.1 2.6 13.4-1.5L128 330.5V296h-4.6z'/%3E%3C/svg%3E"); }

.categories-note {
    background-color: #f5f5f5;
    border-left: 4px solid var(--primary-color);
    padding: 18px 20px;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    font-style: italic;
    margin-top: 30px;
    box-shadow: var(--box-shadow);
}

.categories-note i {
    color: var(--primary-color);
    margin-right: 8px;
}

/* Tableau comparatif des catégories */
.category-comparison {
    margin-top: 50px;
    padding: 30px;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.category-comparison h3 {
    text-align: center;
    margin-bottom: 25px;
    color: var(--dark-color);
    font-size: 1.5rem;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.category-comparison h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary-color);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.comparison-table th,
.comparison-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.comparison-table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: var(--dark-color);
}

.comparison-table tr:last-child td {
    border-bottom: none;
}

.comparison-table tr:nth-child(even) {
    background-color: #f9fafb;
}

.comparison-table tr:hover {
    background-color: #f3f4f6;
}

/* Media queries */
@media (max-width: 1024px) {
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .category-comparison {
        padding: 20px;
    }
}

@media (max-width: 768px) {
    .categories-grid {
        grid-template-columns: 1fr;
    }
    
    .categories-intro h2 {
        font-size: 1.8rem;
    }
    
    .comparison-table {
        font-size: 0.9rem;
    }
    
    .comparison-table th,
    .comparison-table td {
        padding: 10px;
    }
}

@media (max-width: 576px) {
    .category-header {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .category-age {
        align-self: center;
    }
    
    .comparison-table {
        display: block;
        overflow-x: auto;
    }
}