.season-arrow-wrapper {
    width: 100%;
    overflow-x: auto;
    overflow-y: visible;
    padding: 30px 0 50px 0;
}

.season-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 980px;
    width: fit-content;
    margin: 0 auto;
    position: relative;
}

.season-phase {
    position: relative;
    width: 170px;
    height: 90px;
    border: 2px solid #163047;
    border-right: none;
    background-color: #f3f7f9;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 10px;
    box-sizing: border-box;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
    cursor: pointer;
    z-index: 2;
}

.season-phase span {
    font-size: 14px;
    font-weight: 600;
    color: #163047;
    line-height: 1.3;
}

.season-phase-small {
    width: 95px;
}

.season-phase:hover {
    transform: scale(1.08);
    box-shadow: 0 10px 24px rgba(22, 48, 71, 0.18);
    z-index: 10;
}

.season-arrow-head {
    position: relative;
    width: 0;
    height: 0;
    border-top: 62px solid transparent;
    border-bottom: 62px solid transparent;
    border-left: 125px solid #f3f7f9;
    transition: transform 0.25s ease, filter 0.25s ease;
    cursor: pointer;
    z-index: 2;
}

.season-arrow-head::before {
    content: "";
    position: absolute;
    top: -66px;
    left: -129px;
    width: 0;
    height: 0;
    border-top: 66px solid transparent;
    border-bottom: 66px solid transparent;
    border-left: 129px solid #163047;
    z-index: -1;
}

.season-arrow-head:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 10px 24px rgba(22, 48, 71, 0.18));
    z-index: 10;
}

/* Tooltip flottante globale */
.season-floating-tooltip {
    position: fixed;
    top: 0;
    left: 0;
    width: 260px;
    background-color: #ffffff;
    border: 1px solid #d7e5ea;
    border-radius: 14px;
    box-shadow: 0 14px 28px rgba(22, 48, 71, 0.16);
    padding: 14px 16px;
    text-align: left;
    z-index: 999999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    pointer-events: none;
}

.season-floating-tooltip.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.season-floating-tooltip::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 8px;
    border-style: solid;
    border-color: #ffffff transparent transparent transparent;
}

.season-floating-tooltip.below::after {
    top: auto;
    bottom: 100%;
    border-color: transparent transparent #ffffff transparent;
}

.season-floating-tooltip strong {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    color: #1b55c5;
}

.season-floating-tooltip p {
    margin: 0;
    font-size: 13px;
    line-height: 1.4;
    color: #163047;
}

.season-floating-tooltip .season-dates {
    margin-bottom: 6px;
    color: #55c02c;
    font-weight: 600;
}

/* Phases passées */
.season-phase.done {
    background: linear-gradient(135deg, #1b55c5 0%, #2f7df6 100%);
}

.season-phase.done span {
    color: #ffffff;
}

/* Phase actuelle */
.season-phase.current {
    background: linear-gradient(135deg, #55c02c 0%, #8adf47 100%);
}

.season-phase.current span {
    color: #163047;
}

/* Phase future */
.season-phase.future {
    background-color: #f3f7f9;
}

.season-phase.future span {
    color: #163047;
}

.season-arrow-head.done {
    border-left-color: #1b55c5;
}

.season-arrow-head.current {
    border-left-color: #55c02c;
}

.season-arrow-head.future {
    border-left-color: #f3f7f9;
}

@media (max-width: 900px) {
    .season-arrow-wrapper {
        padding: 20px 0 35px 0;
    }

    .season-arrow {
        justify-content: flex-start;
        padding-left: 10px;
        padding-right: 20px;
    }

    .season-phase {
        width: 140px;
        height: 80px;
    }

    .season-phase-small {
        width: 85px;
    }

    .season-phase span {
        font-size: 12px;
    }

    .season-arrow-head {
        border-top: 52px solid transparent;
        border-bottom: 52px solid transparent;
        border-left: 100px solid #f3f7f9;
    }

    .season-arrow-head::before {
        top: -56px;
        left: -104px;
        border-top: 56px solid transparent;
        border-bottom: 56px solid transparent;
        border-left: 104px solid #163047;
    }

    .season-floating-tooltip {
        width: 220px;
    }
}
