/**
 * RadioSports Tours de France 2027.
 * Design autonome inspiré du dossier Vuelta 2026, sans dépendance externe.
 */

.rs-tour-2027 {
    --rst-accent: #f7df00;
    --rst-accent-strong: #e7ca00;
    --rst-accent-ink: #181818;
    --rst-ink: #141414;
    --rst-panel: #232323;
    --rst-panel-soft: #2d2d2d;
    --rst-text: #fff;
    --rst-muted: #d5d5d5;
    --rst-line: rgba(255, 255, 255, .14);
    background:
        radial-gradient(circle at 8% 2%, rgba(247, 223, 0, .2), transparent 31rem),
        radial-gradient(circle at 94% 11%, rgba(255, 255, 255, .07), transparent 28rem),
        var(--rst-ink);
    color: var(--rst-text);
    min-height: 100vh;
    padding: 26px 0 72px;
}

.rs-tour-2027[data-race="women"] {
    --rst-accent: #ffe25a;
    --rst-accent-strong: #f1cc19;
    background:
        radial-gradient(circle at 8% 2%, rgba(255, 226, 90, .2), transparent 31rem),
        radial-gradient(circle at 94% 11%, rgba(255, 255, 255, .07), transparent 28rem),
        #17151a;
}

.rs-tour-2027 *,
.rs-tour-2027 *::before,
.rs-tour-2027 *::after {
    box-sizing: border-box;
}

.rs-tour-2027__shell {
    margin: 0 auto;
    max-width: 1280px;
    padding: 0 24px;
}

.rs-tour-2027 a { color: inherit; }

.rs-tour-2027 h1,
.rs-tour-2027 h2,
.rs-tour-2027 h3,
.rs-tour-2027 p { margin-top: 0; }

.rs-tour-2027 h1,
.rs-tour-2027 h2,
.rs-tour-2027 h3 { color: #fff; }

.rs-tour-2027 h1 {
    font-size: clamp(2.1rem, 5.5vw, 4.55rem);
    letter-spacing: -.045em;
    line-height: .99;
    margin-bottom: 22px;
    max-width: 980px;
}

.rs-tour-2027 h2 {
    font-size: clamp(1.55rem, 3vw, 2.5rem);
    letter-spacing: -.03em;
    line-height: 1.08;
}

.rs-tour-2027 h3 {
    font-size: 1.18rem;
    line-height: 1.25;
}

.rs-tour-2027-breadcrumb {
    align-items: center;
    color: var(--rst-muted);
    display: flex;
    flex-wrap: wrap;
    font-size: .88rem;
    gap: 8px;
    margin-bottom: 24px;
}

.rs-tour-2027-breadcrumb a:hover,
.rs-tour-2027-breadcrumb a:focus-visible { color: #fff; }

.rs-tour-2027-hero {
    background:
        linear-gradient(112deg, rgba(247, 223, 0, .17), transparent 48%),
        linear-gradient(315deg, rgba(255, 255, 255, .06), transparent 42%),
        var(--rst-panel);
    border: 1px solid var(--rst-line);
    border-radius: 22px;
    display: grid;
    gap: 34px;
    grid-template-columns: minmax(0, 1.65fr) minmax(260px, .6fr);
    overflow: hidden;
    padding: clamp(30px, 5vw, 66px);
    position: relative;
}

.rs-tour-2027-hero::before,
.rs-tour-2027-hero::after {
    border: 20px solid rgba(255, 255, 255, .035);
    border-radius: 50%;
    content: "";
    position: absolute;
}

.rs-tour-2027-hero::before { height: 250px; right: -70px; top: -88px; width: 250px; }
.rs-tour-2027-hero::after { bottom: -155px; height: 320px; left: 46%; width: 320px; }
.rs-tour-2027-hero__content,
.rs-tour-2027-hero__aside { position: relative; z-index: 1; }

.rs-tour-2027-kicker {
    color: var(--rst-accent);
    font-size: .75rem;
    font-weight: 850;
    letter-spacing: .11em;
    margin-bottom: 11px;
    text-transform: uppercase;
}

.rs-tour-2027-hero__lead {
    color: var(--rst-muted);
    font-size: clamp(1.02rem, 1.8vw, 1.25rem);
    line-height: 1.58;
    max-width: 780px;
}

.rs-tour-2027-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 27px;
}

.rs-tour-2027-button {
    align-items: center;
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 999px;
    display: inline-flex;
    font-weight: 800;
    justify-content: center;
    min-height: 47px;
    padding: 10px 20px;
    text-decoration: none;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.rs-tour-2027-button.is-primary {
    background: var(--rst-accent);
    border-color: var(--rst-accent);
    color: var(--rst-accent-ink);
}

.rs-tour-2027-button.is-dark { background: var(--rst-ink); border-color: var(--rst-ink); color: #fff; }

.rs-tour-2027-button:hover,
.rs-tour-2027-button:focus-visible {
    border-color: var(--rst-accent);
    box-shadow: 0 0 0 3px rgba(247, 223, 0, .22);
    transform: translateY(-1px);
}

.rs-tour-2027-hero__aside {
    align-self: end;
    background: rgba(8, 8, 8, .64);
    border: 1px solid var(--rst-line);
    border-radius: 16px;
    padding: 22px;
}

.rs-tour-2027-hero__aside strong,
.rs-tour-2027-hero__aside p { display: block; }
.rs-tour-2027-hero__aside strong { font-size: 1.05rem; margin: 13px 0 8px; }
.rs-tour-2027-hero__aside p { color: var(--rst-muted); line-height: 1.5; margin-bottom: 0; }

.rs-tour-2027-hero__media {
    border: 1px solid var(--rst-line);
    border-radius: 11px;
    display: block;
    height: auto;
    margin: 0 0 18px;
    width: 100%;
}

.rs-tour-2027-status,
.rs-tour-2027-badge {
    background: rgba(247, 223, 0, .1);
    border: 1px solid rgba(247, 223, 0, .45);
    border-radius: 999px;
    color: var(--rst-accent);
    display: inline-block;
    font-size: .72rem;
    font-weight: 850;
    line-height: 1.25;
    padding: 6px 10px;
    text-transform: uppercase;
}

.rs-tour-2027-tabs {
    display: flex;
    gap: 10px;
    margin: 18px 0 34px;
    overflow-x: auto;
    padding: 4px 2px 8px;
}

.rs-tour-2027-tabs a,
.rs-tour-2027-tabs span {
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .11);
    border-radius: 999px;
    flex: 0 0 auto;
    font-size: .9rem;
    font-weight: 800;
    padding: 10px 16px;
    text-decoration: none;
}

.rs-tour-2027-tabs a[aria-current="page"] { background: #fff; color: var(--rst-ink) !important; }
.rs-tour-2027-tabs .is-disabled { opacity: .55; }

.rs-tour-2027-stats {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 0 0 34px;
}

.rs-tour-2027-stats article {
    background: var(--rst-panel-soft);
    border: 1px solid var(--rst-line);
    border-radius: 16px;
    min-width: 0;
    padding: 22px;
}

.rs-tour-2027-stats strong,
.rs-tour-2027-stats span { display: block; }
.rs-tour-2027-stats strong { font-size: clamp(1.14rem, 2.3vw, 1.75rem); line-height: 1.12; margin-bottom: 8px; }
.rs-tour-2027-stats span { color: var(--rst-muted); font-size: .88rem; line-height: 1.4; }

.rs-tour-2027-section {
    background: var(--rst-panel);
    border: 1px solid var(--rst-line);
    border-radius: 20px;
    margin: 0 0 28px;
    padding: clamp(24px, 4vw, 44px);
}

.rs-tour-2027-section--accent {
    align-items: center;
    background: var(--rst-accent);
    border-color: var(--rst-accent);
    color: var(--rst-accent-ink);
    display: flex;
    gap: 28px;
    justify-content: space-between;
}

.rs-tour-2027-section--accent h2,
.rs-tour-2027-section--accent .rs-tour-2027-kicker { color: var(--rst-accent-ink); }
.rs-tour-2027-section--accent p { margin-bottom: 0; max-width: 850px; }

.rs-tour-2027-section--empty {
    background: linear-gradient(135deg, rgba(247, 223, 0, .11), rgba(255, 255, 255, .025)), var(--rst-panel);
    border-style: dashed;
    text-align: center;
}

.rs-tour-2027-section--empty p { color: var(--rst-muted); margin-left: auto; margin-right: auto; max-width: 760px; }
.rs-tour-2027-section__heading { margin-bottom: 24px; max-width: 940px; }
.rs-tour-2027-section__heading h2 { margin-bottom: 12px; }
.rs-tour-2027-section__heading > p:last-child { color: var(--rst-muted); line-height: 1.65; }
.rs-tour-2027-prose { color: var(--rst-muted); font-size: 1.03rem; line-height: 1.72; max-width: 900px; }

.rs-tour-2027-grid { display: grid; gap: 16px; }
.rs-tour-2027-grid--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.rs-tour-2027-card {
    background: var(--rst-panel-soft);
    border: 1px solid var(--rst-line);
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 22px;
}

.rs-tour-2027-card__label { color: var(--rst-accent); font-size: .72rem; font-weight: 850; letter-spacing: .09em; margin-bottom: 12px; text-transform: uppercase; }
.rs-tour-2027-card p { color: var(--rst-muted); line-height: 1.58; }
.rs-tour-2027-card a { color: var(--rst-accent); font-weight: 800; margin-top: auto; }

.rs-tour-2027-checklist { list-style: none; margin: 0; padding: 0; }
.rs-tour-2027-checklist li { color: var(--rst-muted); line-height: 1.55; padding: 8px 0 8px 31px; position: relative; }
.rs-tour-2027-checklist li::before { color: var(--rst-accent); content: "✓"; font-weight: 900; left: 2px; position: absolute; }

.rs-tour-2027-notice {
    background: rgba(247, 223, 0, .08);
    border-left: 4px solid var(--rst-accent);
    color: var(--rst-muted);
    line-height: 1.62;
    margin: 0;
    padding: 18px 20px;
}

.rs-tour-2027-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.rs-tour-2027-table { border-collapse: collapse; min-width: 980px; width: 100%; }
.rs-tour-2027-table th,
.rs-tour-2027-table td { border-bottom: 1px solid var(--rst-line); padding: 14px 12px; text-align: left; vertical-align: middle; }
.rs-tour-2027-table thead th { color: var(--rst-accent); font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; }
.rs-tour-2027-table tbody td { color: var(--rst-muted); }
.rs-tour-2027-table tbody tr:hover { background: rgba(255, 255, 255, .035); }

.rs-tour-2027-stage-list { display: grid; gap: 18px; }

.rs-tour-2027-stage-card {
    background: var(--rst-panel-soft);
    border: 1px solid var(--rst-line);
    border-radius: 16px;
    display: grid;
    gap: 24px;
    grid-template-columns: minmax(220px, .72fr) minmax(0, 1.65fr);
    padding: 24px;
}

.rs-tour-2027-stage-card__heading span {
    color: var(--rst-accent);
    display: block;
    font-size: .72rem;
    font-weight: 850;
    letter-spacing: .09em;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.rs-tour-2027-stage-card__heading h3 { margin-bottom: 9px; }
.rs-tour-2027-stage-card__heading p,
.rs-tour-2027-stage-card__body p,
.rs-tour-2027-stage-card__body li { color: var(--rst-muted); line-height: 1.58; }
.rs-tour-2027-stage-card__heading p { font-weight: 800; margin-bottom: 0; }
.rs-tour-2027-stage-card__body > p { margin-bottom: 16px; }
.rs-tour-2027-stage-card__body strong { display: block; margin-bottom: 9px; }
.rs-tour-2027-stage-card__body ul { columns: 2; gap: 28px; margin: 0; padding-left: 20px; }
.rs-tour-2027-stage-card__body li { break-inside: avoid; margin-bottom: 7px; }

.rs-tour-2027-stage-card__media {
    display: grid;
    gap: 16px;
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.rs-tour-2027-stage-card__media figure,
.rs-tour-2027-route-media {
    background: #fff;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 13px;
    margin: 0;
    overflow: hidden;
}

.rs-tour-2027-stage-card__media a,
.rs-tour-2027-route-media a { display: block; }

.rs-tour-2027-stage-card__media img,
.rs-tour-2027-route-media img {
    aspect-ratio: 16 / 9;
    display: block;
    height: auto;
    object-fit: contain;
    width: 100%;
}

.rs-tour-2027-stage-card__media figcaption,
.rs-tour-2027-route-media figcaption {
    background: #202020;
    color: var(--rst-muted);
    font-size: .78rem;
    line-height: 1.45;
    padding: 11px 13px;
}

.rs-tour-2027-route-media { margin-top: 22px; }

.rs-tour-2027-faq { display: grid; gap: 12px; }
.rs-tour-2027-faq details { background: var(--rst-panel-soft); border: 1px solid var(--rst-line); border-radius: 13px; padding: 17px 19px; }
.rs-tour-2027-faq summary { cursor: pointer; font-weight: 800; }
.rs-tour-2027-faq p { color: var(--rst-muted); line-height: 1.6; margin: 14px 0 0; }

.rs-tour-2027-sources ul { columns: 2; gap: 36px; margin-bottom: 22px; padding-left: 19px; }
.rs-tour-2027-sources li { break-inside: avoid; margin-bottom: 10px; }
.rs-tour-2027-sources a { text-decoration-thickness: 1px; text-underline-offset: 3px; }
.rs-tour-2027-source-note { border-top: 1px solid var(--rst-line); color: var(--rst-muted); font-size: .9rem; margin: 22px 0 0; padding-top: 18px; }

@media (max-width: 900px) {
    .rs-tour-2027-hero { grid-template-columns: 1fr; }
    .rs-tour-2027-hero__aside { max-width: 520px; }
    .rs-tour-2027-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .rs-tour-2027-grid--three { grid-template-columns: 1fr; }
    .rs-tour-2027-stage-card { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    .rs-tour-2027 { padding-top: 18px; }
    .rs-tour-2027__shell { padding: 0 14px; }
    .rs-tour-2027-hero { border-radius: 16px; padding: 27px 20px; }
    .rs-tour-2027-section { border-radius: 15px; padding: 22px 18px; }
    .rs-tour-2027-section--accent { align-items: flex-start; flex-direction: column; }
    .rs-tour-2027-stats { grid-template-columns: 1fr; }
    .rs-tour-2027-stats article { padding: 18px; }
    .rs-tour-2027-actions { align-items: stretch; flex-direction: column; }
    .rs-tour-2027-button { width: 100%; }
    .rs-tour-2027-sources ul { columns: 1; }
    .rs-tour-2027-stage-card { padding: 19px; }
    .rs-tour-2027-stage-card__body ul { columns: 1; }
    .rs-tour-2027-stage-card__media { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    .rs-tour-2027-button { transition: none; }
}
