/* Saison 2026-2027 */

.saison-hero {
    background: linear-gradient(160deg, #0f0a14 0%, #1a0f24 40%, #12081a 100%);
    position: relative;
    overflow: hidden;
}

.saison-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 15% 30%, rgba(236, 72, 153, 0.18) 0%, transparent 45%),
        radial-gradient(circle at 85% 70%, rgba(168, 85, 247, 0.15) 0%, transparent 40%);
    pointer-events: none;
}

.saison-hero-path-deco {
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(to bottom, transparent, #0a0610);
    pointer-events: none;
}

/* Bandeau accueil */
.home-saison-banner {
    background: linear-gradient(135deg, #1a0a20 0%, #2d0f35 50%, #1a0825 100%);
    position: relative;
    overflow: hidden;
}

.home-saison-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 0 Q45 15 30 30 Q15 45 30 60' stroke='%23ec4899' stroke-width='1' fill='none' opacity='0.12'/%3E%3C/svg%3E");
    opacity: 0.6;
    pointer-events: none;
}

.home-saison-trail {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    flex-wrap: wrap;
}

.home-saison-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ec4899, #a855f7);
    box-shadow: 0 0 12px rgba(236, 72, 153, 0.6);
    animation: saisonDotPulse 2s ease-in-out infinite;
}

.home-saison-dot:nth-child(odd) {
    animation-delay: 0.3s;
}

.home-saison-connector {
    width: 18px;
    height: 2px;
    background: linear-gradient(90deg, #ec4899, #a855f7);
    opacity: 0.5;
    border-radius: 1px;
}

@keyframes saisonDotPulse {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.25); opacity: 1; }
}

/* Timeline */
.saison-trail {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 1rem 0;
}

.saison-trail-boundary {
    text-align: center;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
    margin: 0;
    padding: 0 1rem;
}

.saison-trail-boundary--end {
    color: rgba(249, 168, 212, 0.65);
}

.saison-timeline {
    --saison-axis: 48px;
    position: relative;
    padding: 1.5rem 0;
    isolation: isolate;
}

/* Ligne verticale continue */
.saison-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    transform: translateX(-50%);
    background: linear-gradient(
        to bottom,
        transparent 0%,
        #ec4899 4%,
        #a855f7 50%,
        #ec4899 96%,
        transparent 100%
    );
    opacity: 0.55;
    border-radius: 1px;
    z-index: 0;
    pointer-events: none;
}

/* Vague décorative en arrière-plan (non liée aux nœuds) */
.saison-timeline::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 80px;
    transform: translateX(-50%);
    background-image: url("data:image/svg+xml,%3Csvg width='80' height='200' viewBox='0 0 80 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M40 0 C58 25 22 50 40 75 C58 100 22 125 40 150 C58 175 22 200 40 200' stroke='%23ec4899' stroke-width='1.5' fill='none' opacity='0.2' stroke-dasharray='8 6'/%3E%3C/svg%3E");
    background-repeat: repeat-y;
    background-size: 80px 200px;
    pointer-events: none;
    opacity: 0.35;
    z-index: 0;
}

.saison-stop {
    display: grid;
    grid-template-columns: 1fr var(--saison-axis) 1fr;
    align-items: center;
    margin-bottom: 2.75rem;
    position: relative;
    z-index: 1;
}

.saison-stop-marker,
.saison-stop-card-wrap {
    position: relative;
    z-index: 1;
}

.saison-stop:last-child {
    margin-bottom: 0;
}

.saison-stop-marker {
    grid-column: 2;
    grid-row: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.saison-stop-node {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #0a0610;
    border: 3px solid #ec4899;
    box-shadow: 0 0 14px rgba(236, 72, 153, 0.5);
    flex-shrink: 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.saison-stop:hover .saison-stop-node {
    transform: scale(1.15);
    box-shadow: 0 0 22px rgba(236, 72, 153, 0.7);
}

.saison-stop--marathon .saison-stop-node {
    border-color: #8b5cf6;
    box-shadow: 0 0 14px rgba(139, 92, 246, 0.5);
}

.saison-stop--tolosa .saison-stop-node {
    width: 26px;
    height: 26px;
    border-color: #f59e0b;
    box-shadow: 0 0 18px rgba(245, 158, 11, 0.55);
}

.saison-stop--gala .saison-stop-node {
    border-color: #38bdf8;
    box-shadow: 0 0 16px rgba(56, 189, 248, 0.45);
}

.saison-stop-card-wrap {
    grid-row: 1;
}

.saison-stop--left .saison-stop-card-wrap {
    grid-column: 1;
    justify-self: end;
    padding-right: 1.25rem;
}

.saison-stop--right .saison-stop-card-wrap {
    grid-column: 3;
    justify-self: start;
    padding-left: 1.25rem;
}

.saison-stop-card {
    display: block;
    width: 100%;
    max-width: 340px;
    padding: 1.25rem 1.5rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1.25rem;
    backdrop-filter: blur(12px);
    text-decoration: none;
    color: inherit;
    transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease, background 0.35s ease;
}

a.saison-stop-card:hover {
    transform: translateY(-4px);
    border-color: rgba(236, 72, 153, 0.4);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35), 0 0 30px rgba(236, 72, 153, 0.12);
    background: rgba(255, 255, 255, 0.07);
}

.saison-stop--marathon a.saison-stop-card:hover {
    border-color: rgba(139, 92, 246, 0.45);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35), 0 0 24px rgba(139, 92, 246, 0.15);
}

.saison-stop--tolosa a.saison-stop-card:hover {
    border-color: rgba(245, 158, 11, 0.45);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35), 0 0 24px rgba(245, 158, 11, 0.15);
}

.saison-stop-card--static {
    cursor: default;
}

.saison-stop-card--static:hover {
    transform: none;
    box-shadow: none;
}

.saison-stop-date {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #f9a8d4;
    margin-bottom: 0.35rem;
}

.saison-stop--marathon .saison-stop-date { color: #c4b5fd; }
.saison-stop--tolosa .saison-stop-date { color: #fcd34d; }

.saison-stop-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.saison-stop-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.2rem 0.65rem;
    border-radius: 9999px;
    margin-bottom: 0.5rem;
}

.saison-badge-volume { background: rgba(236, 72, 153, 0.2); color: #fbcfe8; border: 1px solid rgba(236, 72, 153, 0.35); }
.saison-badge-classic { background: rgba(236, 72, 153, 0.15); color: #f9a8d4; }
.saison-badge-collector { background: rgba(245, 158, 11, 0.2); color: #fde68a; border: 1px solid rgba(245, 158, 11, 0.35); }
.saison-badge-gala { background: rgba(190, 24, 93, 0.3); color: #fce7f3; border: 1px solid rgba(236, 72, 153, 0.5); }
.saison-badge-marathon { background: rgba(139, 92, 246, 0.2); color: #ddd6fe; border: 1px solid rgba(139, 92, 246, 0.35); }
.saison-badge-tolosa { background: rgba(245, 158, 11, 0.2); color: #fde68a; border: 1px solid rgba(245, 158, 11, 0.35); }

.saison-stop-hint {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.45);
    margin-top: 0.35rem;
}

.saison-stop-hint--link {
    color: #f9a8d4;
    font-weight: 600;
}

a.saison-stop-card:hover .saison-stop-hint--link {
    color: #fbcfe8;
}

/* Légende */
.saison-legend-panel {
    margin-top: 3rem;
    padding: 1.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 1rem;
}

.saison-legend {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem 1.5rem;
}

.saison-legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
}

.saison-legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid;
    background: transparent;
}

.saison-legend-dot--gala {
    border-color: #38bdf8;
}

/* Mobile */
@media (max-width: 640px) {
    .saison-timeline {
        --saison-axis: 40px;
    }

    .saison-stop {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
        gap: 0.75rem;
        z-index: 2;
    }

    .saison-stop-marker {
        grid-column: 1;
        grid-row: 1;
        z-index: 3;
    }

    .saison-stop-card-wrap {
        grid-column: 1 !important;
        grid-row: 2;
        justify-self: center !important;
        padding: 0 !important;
        width: 100%;
        z-index: 2;
    }

    .saison-stop-card {
        max-width: 100%;
        background: rgba(12, 8, 20, 0.97);
    }
}

/* Animation d'entrée */
.saison-stop {
    animation: saisonFadeUp 0.7s ease-out both;
}

.saison-stop:nth-child(1) { animation-delay: 0.05s; }
.saison-stop:nth-child(2) { animation-delay: 0.1s; }
.saison-stop:nth-child(3) { animation-delay: 0.15s; }
.saison-stop:nth-child(4) { animation-delay: 0.2s; }
.saison-stop:nth-child(5) { animation-delay: 0.25s; }
.saison-stop:nth-child(6) { animation-delay: 0.3s; }
.saison-stop:nth-child(7) { animation-delay: 0.35s; }
.saison-stop:nth-child(8) { animation-delay: 0.4s; }

@keyframes saisonFadeUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .saison-stop,
    .home-saison-dot {
        animation: none;
    }
}

/* Bouton & modal calendrier */
.saison-calendar-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.25rem;
    padding: 0.65rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 700;
    color: #f9a8d4;
    background: rgba(236, 72, 153, 0.1);
    border: 1px solid rgba(236, 72, 153, 0.35);
    border-radius: 9999px;
    cursor: pointer;
    transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.saison-calendar-btn:hover {
    background: rgba(236, 72, 153, 0.18);
    border-color: rgba(236, 72, 153, 0.55);
    color: #fbcfe8;
    transform: translateY(-1px);
}

.saison-calendar-modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.saison-calendar-modal.hidden {
    display: none;
}

.saison-calendar-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
}

.saison-calendar-modal-panel {
    position: relative;
    width: 100%;
    max-width: 420px;
    max-height: min(90vh, 640px);
    overflow-y: auto;
    padding: 1.5rem;
    background: #12081a;
    border: 1px solid rgba(236, 72, 153, 0.25);
    border-radius: 1.25rem;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}

.saison-calendar-modal-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: #fff;
    margin: 0 0 0.35rem;
}

.saison-calendar-modal-subtitle {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    margin: 0 0 1.25rem;
    line-height: 1.5;
}

.saison-calendar-download {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.85rem 1rem;
    margin-bottom: 1.25rem;
    font-size: 0.9rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    background: linear-gradient(135deg, #ec4899, #a855f7);
    border-radius: 0.75rem;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.saison-calendar-download:hover {
    opacity: 0.92;
    transform: translateY(-1px);
}

.saison-calendar-providers {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.saison-calendar-provider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 0.9rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0.65rem;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.saison-calendar-provider:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(236, 72, 153, 0.3);
}

.saison-calendar-provider-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.5rem;
    flex-shrink: 0;
    overflow: hidden;
    padding: 0.2rem;
}

.saison-calendar-provider-icon svg,
.saison-calendar-provider-icon img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

.saison-calendar-provider-icon--apple {
    background: #fff;
    color: #000;
    padding: 0.35rem;
}

.saison-calendar-provider-icon--google {
    background: #f1f3f4;
    padding: 0.25rem;
}

.saison-calendar-provider-icon--other {
    background: rgba(236, 72, 153, 0.15);
    color: #f9a8d4;
    padding: 0.35rem;
}

.saison-calendar-hint {
    margin: 1rem 0 0;
    font-size: 0.75rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.4);
}

.saison-calendar-url {
    display: inline-block;
    margin-top: 0.35rem;
    padding: 0.15rem 0.4rem;
    font-size: 0.68rem;
    word-break: break-all;
    color: #f9a8d4;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 0.35rem;
}

.saison-calendar-close {
    display: block;
    width: 100%;
    margin-top: 1.25rem;
    padding: 0.65rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.55);
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.65rem;
    cursor: pointer;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.saison-calendar-close:hover {
    color: rgba(255, 255, 255, 0.8);
    border-color: rgba(255, 255, 255, 0.2);
}
