/* === CONTENEUR PRINCIPAL === */
.container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 2rem;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* === TABLES D'EN-TÊTE === */
.tableentete {
    width: 100%;
    border-collapse: collapse;
    border: 0;
    margin-bottom: 1rem;
}

.trentete {
    padding: 0;
    margin: 0;
    vertical-align: middle;
}

.tdentete {
    padding: 0.5rem;
    margin: 0;
    vertical-align: middle;
}

/* === NAVIGATION === */
nav {
    background-color: #e97eb5;
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    align-items: center;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

nav ul li {
    margin: 0;
}

nav ul li a {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    border-radius: 4px;
    display: inline-block;
}

nav ul li a:hover {
    background-color: rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

nav ul li a:active {
    transform: translateY(0);
}

/* === SÉLECTEUR D'ANNÉE === */
.year-selector {
    margin: 0;
    padding: 10px;
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 1rem;
}

.year-selector label {
    font-weight: bold;
    color: #2c3e50;
    font-size: 1rem;
    white-space: nowrap;
}

.year-selector select {
    padding: 0.5rem 2.5rem 0.5rem 1rem;
    font-size: 1rem;
    border: 2px solid #3498db;
    border-radius: 4px;
    background-color: white;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%233498db' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.year-selector select:hover {
    border-color: #2980b9;
    box-shadow: 0 2px 4px rgba(52, 152, 219, 0.2);
}

.year-selector select:focus {
    outline: none;
    border-color: #2980b9;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.3);
}

/* === BOÎTE D'INFORMATION === */
.info-box {
    background-color: #ecf0f1;
    padding: 1rem;
    border-radius: 4px;
    margin-top: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    min-width: 300px;
    max-width: 400px;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border: 1px solid #bdc3c7;
    transform: translateY(-10px);
}

.info-box.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.info-box::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 20px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid #bdc3c7;
}

.info-box::after {
    content: '';
    position: absolute;
    top: -7px;
    left: 21px;
    width: 0;
    height: 0;
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    border-bottom: 7px solid #ecf0f1;
}

.info-box p {
    margin: 0.5rem 0;
    color: #2c3e50;
    font-size: 0.95rem;
    line-height: 1.5;
}

.info-box p:first-child {
    margin-top: 0;
}

.info-box p:last-child {
    margin-bottom: 0;
}

.info-box strong {
    color: #3498db;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .container {
        margin: 1rem;
        padding: 1rem;
    }

    nav ul {
        flex-direction: column;
        gap: 0.5rem;
        align-items: stretch;
    }

    nav ul li {
        width: 100%;
    }

    nav ul li a {
        display: block;
        text-align: center;
    }

    .year-selector {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
    }

    .year-selector select {
        width: 100%;
    }

    .info-box {
        left: 0;
        right: 0;
        min-width: auto;
        max-width: none;
    }

    .info-box::before,
    .info-box::after {
        left: 50%;
        transform: translateX(-50%);
    }
}

@media (max-width: 480px) {
    .container {
        margin: 0.5rem;
        padding: 0.75rem;
    }

    nav {
        padding: 0.75rem;
    }

    nav ul li a {
        font-size: 14px;
        padding: 0.4rem 0.75rem;
    }

    .year-selector select {
        font-size: 0.9rem;
        padding: 0.4rem 2rem 0.4rem 0.75rem;
    }
}

/* === UTILITAIRES === */
.text-center {
    text-align: center;
}

.mt-1 {
    margin-top: 0.5rem;
}

.mt-2 {
    margin-top: 1rem;
}

.mb-1 {
    margin-bottom: 0.5rem;
}

.mb-2 {
    margin-bottom: 1rem;
}

/* === ANIMATIONS === */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.3s ease;
}