/*
Theme Name: Tripp Sport Blog
Theme URI: https://trippsport.fr/blog/
Author: Tripp Sport
Description: Thème sur mesure du blog Tripp Sport : running, trail, triathlon et analyse de foulée.
Version: 1.0.0
Text Domain: trippsport-blog
*/


/* ============================================================
   TRIPP SPORT BLOG — HOME V2
   Septembre 2026
   ============================================================ */


/* ---------- HERO COMPACT ---------- */

.ts-home-hero {
    background: #026168;
    color: #fff;
    padding: 38px 0 28px !important;
}

.ts-home-hero-inner {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 40px;
}

.ts-home-hero-copy {
    max-width: 820px;
}

.ts-home-hero .ts-kicker {
    display: block;
    margin-bottom: 10px;
    color: #ffb80c;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .12em;
}

.ts-home-hero h1 {
    margin: 0 !important;
    color: #fff;
    font-size: clamp(34px, 4.2vw, 62px) !important;
    line-height: .98 !important;
    letter-spacing: -.035em;
}

.ts-home-hero h1 span {
    display: inline;
}

.ts-home-hero h1 span:not(:last-child) {
    margin-right: .14em;
}

.ts-home-hero p {
    max-width: 760px;
    margin: 16px 0 0;
    color: rgba(255,255,255,.84);
    font-size: 16px;
    line-height: 1.55;
}

.ts-home-hero-actions {
    display: flex;
    flex-direction: column;
    flex: 0 0 auto;
    gap: 10px;
    min-width: 220px;
}

.ts-home-hero-actions .ts-btn {
    text-align: center;
    white-space: nowrap;
}


/* ---------- NAVIGATION RAPIDE ---------- */

.ts-quick-nav {
    position: relative;
    z-index: 3;
    background: #fff;
    border-bottom: 1px solid #e6ebeb;
    box-shadow: 0 6px 20px rgba(0,0,0,.035);
}

.ts-quick-nav-inner {
    display: flex;
    align-items: center;
    gap: 6px;
    padding-top: 10px;
    padding-bottom: 10px;
    overflow-x: auto;
    scrollbar-width: none;
}

.ts-quick-nav-inner::-webkit-scrollbar {
    display: none;
}

.ts-quick-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 8px 15px;
    border: 1px solid #d9e2e2;
    border-radius: 999px;
    color: #173c3f;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    transition: .18s ease;
}

.ts-quick-nav a:hover {
    background: #026168;
    border-color: #026168;
    color: #fff;
}


/* ---------- ARTICLES PRIORITAIRES ---------- */

.ts-latest-priority {
    padding-top: 38px !important;
    padding-bottom: 50px !important;
    background: #f7f9f9;
}

.ts-section-title-compact {
    margin-bottom: 22px !important;
}

.ts-section-title-compact span {
    color: #026168;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .12em;
}

.ts-section-title-compact h2 {
    margin: 5px 0 0 !important;
    color: #132e30;
    font-size: clamp(27px, 3vw, 40px);
    line-height: 1.08;
}

.ts-posts-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px !important;
}

.ts-post-card {
    overflow: hidden;
    background: #fff;
    border: 1px solid #e3e8e8;
    border-radius: 14px;
    box-shadow: 0 8px 26px rgba(13,53,56,.055);
    transition: transform .2s ease, box-shadow .2s ease;
}

.ts-post-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(13,53,56,.09);
}

.ts-post-image,
.ts-post-placeholder {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.ts-post-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .25s ease;
}

.ts-post-card:hover .ts-post-image img {
    transform: scale(1.025);
}

.ts-post-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #026168;
    color: #fff;
    font-weight: 800;
    text-decoration: none;
}

.ts-post-content {
    padding: 20px !important;
}

.ts-post-meta {
    margin-bottom: 8px;
    color: #02777f;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.ts-post-content h3 {
    margin: 0 0 10px !important;
    font-size: 21px;
    line-height: 1.15;
}

.ts-post-content h3 a {
    color: #132e30;
    text-decoration: none;
}

.ts-post-content p {
    margin: 0 0 16px !important;
    color: #59686a;
    font-size: 14px;
    line-height: 1.5;
}

.ts-read-more {
    color: #026168;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
}

.ts-pagination {
    grid-column: 1 / -1;
    margin-top: 20px;
}

.ts-pagination .nav-links {
    display: flex;
    justify-content: center;
    gap: 6px;
}

.ts-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    background: #fff;
    border: 1px solid #dbe3e3;
    border-radius: 8px;
    color: #026168;
    text-decoration: none;
}

.ts-pagination .page-numbers.current {
    background: #026168;
    border-color: #026168;
    color: #fff;
}


/* ---------- EXPERTISE APRÈS LES ARTICLES ---------- */

.ts-home-expertise {
    padding: 52px 0;
    background: #fff;
}

.ts-home-expertise-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(260px, .7fr);
    gap: 26px;
    align-items: stretch;
}

.ts-home-expertise-main,
.ts-home-store {
    border-radius: 14px;
}

.ts-home-expertise-main {
    padding: 32px;
    background: #eef5f5;
}

.ts-home-expertise-main h2 {
    max-width: 780px;
    margin: 8px 0 12px;
    color: #132e30;
    font-size: clamp(28px, 3vw, 42px);
    line-height: 1.08;
}

.ts-home-expertise-main > p {
    max-width: 820px;
    margin: 0;
    color: #506164;
    line-height: 1.65;
}

.ts-home-expertise-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 22px;
}

.ts-home-store {
    padding: 30px;
    background: #026168;
    color: #fff;
}

.ts-home-store > strong {
    display: block;
    margin-bottom: 15px;
    color: #ffb80c;
    font-size: 18px;
}

.ts-home-store p {
    color: rgba(255,255,255,.88);
    line-height: 1.55;
}

.ts-home-store-note {
    padding-top: 14px;
    border-top: 1px solid rgba(255,255,255,.18);
    font-size: 13px;
}


/* ---------- FOOTER V2 ---------- */

.ts-footer-v2 {
    margin-top: 0 !important;
    padding: 48px 0 0 !important;
    background: #082f32 !important;
    color: #fff;
}

.ts-footer-grid-v2 {
    display: grid;
    grid-template-columns: 1.45fr 1fr 1fr 1fr;
    gap: 44px;
    padding-bottom: 40px;
}

.ts-footer-logo {
    display: block;
    margin-bottom: 10px;
    color: #ffb80c;
    font-size: 22px;
    letter-spacing: .02em;
}

.ts-footer-brand p {
    max-width: 320px;
    margin: 0 0 12px;
    color: rgba(255,255,255,.72);
    font-size: 14px;
    line-height: 1.55;
}

.ts-footer-address {
    font-size: 13px !important;
}

.ts-footer-column {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 9px;
}

.ts-footer-column > strong {
    margin-bottom: 5px;
    color: #fff;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.ts-footer-column a,
.ts-footer-column span {
    color: rgba(255,255,255,.68);
    font-size: 13px;
    line-height: 1.4;
    text-decoration: none;
}

.ts-footer-column a:hover {
    color: #ffb80c;
}

.ts-footer-bottom-v2 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding-top: 18px;
    padding-bottom: 18px;
    border-top: 1px solid rgba(255,255,255,.12);
    color: rgba(255,255,255,.55);
    font-size: 12px;
}

.ts-footer-bottom-v2 a {
    color: rgba(255,255,255,.75);
    text-decoration: none;
}


/* ---------- RESPONSIVE ---------- */

@media (max-width: 980px) {

    .ts-home-hero-inner {
        display: block;
    }

    .ts-home-hero-actions {
        flex-direction: row;
        flex-wrap: wrap;
        margin-top: 22px;
    }

    .ts-posts-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ts-home-expertise-grid {
        grid-template-columns: 1fr;
    }

    .ts-footer-grid-v2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}


@media (max-width: 640px) {

    .ts-home-hero {
        padding: 26px 0 22px !important;
    }

    .ts-home-hero h1 {
        font-size: 36px !important;
    }

    .ts-home-hero h1 span {
        display: block;
    }

    .ts-home-hero p {
        margin-top: 12px;
        font-size: 14px;
    }

    .ts-home-hero-actions {
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
        margin-top: 18px;
    }

    .ts-home-hero-actions .ts-btn {
        width: 100%;
    }

    .ts-quick-nav-inner {
        padding-top: 8px;
        padding-bottom: 8px;
    }

    .ts-quick-nav a {
        min-height: 34px;
        padding: 7px 12px;
        font-size: 12px;
    }

    .ts-latest-priority {
        padding-top: 28px !important;
        padding-bottom: 34px !important;
    }

    .ts-posts-grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }

    .ts-post-content {
        padding: 17px !important;
    }

    .ts-post-content h3 {
        font-size: 19px;
    }

    .ts-home-expertise {
        padding: 32px 0;
    }

    .ts-home-expertise-main,
    .ts-home-store {
        padding: 22px;
    }

    .ts-footer-v2 {
        padding-top: 34px !important;
    }

    .ts-footer-grid-v2 {
        grid-template-columns: 1fr 1fr;
        gap: 28px 20px;
        padding-bottom: 30px;
    }

    .ts-footer-brand {
        grid-column: 1 / -1;
    }

    .ts-footer-bottom-v2 {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

}



/* ============================================================
   TRIPP SPORT BLOG — CORRECTIFS HOME/FOOTER
   ============================================================ */

body .ts-home-hero {
    background: #026168 !important;
    color: #ffffff !important;
}

body .ts-home-hero .container {
    max-width: 1180px;
}

body .ts-home-hero h1,
body .ts-home-hero p {
    color: #ffffff !important;
}

body .ts-home-hero .ts-kicker {
    color: #ffb80c !important;
}


/* boutons hero */

body .ts-home-hero .ts-btn-outline {
    border: 1px solid rgba(255,255,255,.55) !important;
    color: #ffffff !important;
    background: transparent !important;
}

body .ts-home-hero .ts-btn-outline:hover {
    background: #ffffff !important;
    color: #026168 !important;
}


/* nav univers */

body .ts-quick-nav-inner {
    display: flex !important;
    flex-wrap: nowrap !important;
}

body .ts-quick-nav-inner > a {
    display: inline-flex !important;
}


/* expertise */

body .ts-home-expertise-grid {
    display: grid !important;
    grid-template-columns: minmax(0, 1.7fr) minmax(280px, .7fr) !important;
    gap: 28px !important;
}

body .ts-home-store {
    background: #026168 !important;
    color: #ffffff !important;
}


/* footer */

body .ts-footer-v2 {
    background: #102124 !important;
    padding-top: 46px !important;
}

body .ts-footer-v2 .ts-footer-grid-v2 {
    display: grid !important;
    grid-template-columns: 1.45fr 1fr 1fr 1fr !important;
    gap: 48px !important;
    align-items: start !important;
}

body .ts-footer-v2 .ts-footer-column {
    display: flex !important;
    flex-direction: column !important;
    gap: 9px !important;
}

body .ts-footer-v2 .ts-footer-column a,
body .ts-footer-v2 .ts-footer-column span {
    display: block !important;
}

body .ts-footer-v2 .ts-footer-logo {
    color: #ffb80c !important;
}

body .ts-footer-v2 .ts-footer-bottom-v2 {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
}


/* tablette */

@media (max-width: 980px) {

    body .ts-home-expertise-grid {
        grid-template-columns: 1fr !important;
    }

    body .ts-footer-v2 .ts-footer-grid-v2 {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

}


/* mobile */

@media (max-width: 640px) {

    body .ts-home-hero {
        padding: 24px 0 !important;
    }

    body .ts-home-hero h1 {
        font-size: 34px !important;
        line-height: 1.05 !important;
    }

    body .ts-home-hero h1 span {
        display: block !important;
    }

    body .ts-home-hero-actions {
        display: grid !important;
        grid-template-columns: 1fr !important;
    }

    body .ts-footer-v2 .ts-footer-grid-v2 {
        grid-template-columns: 1fr !important;
        gap: 24px !important;
    }

    body .ts-footer-v2 .ts-footer-brand {
        grid-column: auto !important;
    }

    body .ts-footer-v2 .ts-footer-bottom-v2 {
        flex-direction: column !important;
        align-items: flex-start !important;
    }

}



/* ============================================================
   TRIPP SPORT — HOME MAGAZINE
   ============================================================ */

html {
    scroll-behavior: smooth;
}

.ts-mag-featured,
.ts-mag-section {
    padding: 48px 0;
}

.ts-mag-featured {
    background: #f5f8f8;
}

.ts-mag-section:nth-of-type(even) {
    background: #fafcfc;
}


/* En-têtes de rubriques */

.ts-mag-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 22px;
}

.ts-mag-eyebrow {
    display: block;
    margin-bottom: 5px;
    color: #02777f;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .12em;
}

.ts-mag-section-head h2 {
    margin: 0;
    color: #173538;
    font-size: clamp(27px, 3vw, 39px);
    line-height: 1.05;
}

.ts-mag-view-all {
    flex: 0 0 auto;
    color: #026168;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
}

.ts-mag-view-all:hover {
    text-decoration: underline;
}


/* À la une */

.ts-mag-featured-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(290px, .8fr);
    grid-template-rows: repeat(3, auto);
    gap: 18px;
}

.ts-mag-featured-main {
    grid-row: 1 / 4;
}

.ts-mag-featured-main .ts-mag-card {
    height: 100%;
}

.ts-mag-featured-main .ts-mag-card-image {
    aspect-ratio: 16 / 8.5;
}

.ts-mag-featured-side .ts-mag-card-small {
    display: grid;
    grid-template-columns: 135px minmax(0, 1fr);
    min-height: 100%;
}

.ts-mag-featured-side .ts-mag-card-image {
    height: 100%;
    min-height: 120px;
    aspect-ratio: auto;
}

.ts-mag-featured-side .ts-mag-card-body {
    padding: 15px;
}

.ts-mag-featured-side .ts-mag-card-body p {
    display: none;
}

.ts-mag-featured-side .ts-mag-card-body h3 {
    font-size: 17px;
}


/* Grilles rubriques */

.ts-mag-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}


/* Cartes */

.ts-mag-card {
    overflow: hidden;
    background: #fff;
    border: 1px solid #e2e9e9;
    border-radius: 13px;
    box-shadow: 0 7px 24px rgba(18,59,62,.045);
    transition:
        transform .18s ease,
        box-shadow .18s ease;
}

.ts-mag-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 11px 30px rgba(18,59,62,.085);
}

.ts-mag-card-image {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #026168;
}

.ts-mag-card-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .24s ease;
}

.ts-mag-card:hover .ts-mag-card-image img {
    transform: scale(1.025);
}

.ts-mag-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #fff;
    font-weight: 800;
}

.ts-mag-card-body {
    padding: 19px;
}

.ts-mag-category {
    display: block;
    margin-bottom: 7px;
    color: #02777f;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .09em;
}

.ts-mag-card h3 {
    margin: 0 0 9px;
    font-size: 20px;
    line-height: 1.16;
}

.ts-mag-card h3 a {
    color: #173538;
    text-decoration: none;
}

.ts-mag-card p {
    margin: 0 0 15px;
    color: #5b696b;
    font-size: 13.5px;
    line-height: 1.5;
}


/* Grand article */

.ts-mag-card-lead .ts-mag-card-body {
    padding: 24px;
}

.ts-mag-card-lead h3 {
    font-size: clamp(26px, 2.4vw, 36px);
}

.ts-mag-card-lead p {
    max-width: 760px;
    font-size: 15px;
}


/* Ancres */

#chaussures,
#running,
#trail,
#foulee,
#triathlon,
#guides {
    scroll-margin-top: 90px;
}


/* Responsive */

@media (max-width: 980px) {

    .ts-mag-featured-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .ts-mag-featured-main {
        grid-row: auto;
    }

    .ts-mag-featured-side .ts-mag-card-small {
        grid-template-columns: 180px minmax(0, 1fr);
    }

    .ts-mag-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}


@media (max-width: 640px) {

    .ts-mag-featured,
    .ts-mag-section {
        padding: 32px 0;
    }

    .ts-mag-section-head {
        align-items: flex-start;
        flex-direction: column;
        gap: 7px;
        margin-bottom: 16px;
    }

    .ts-mag-section-head h2 {
        font-size: 27px;
    }

    .ts-mag-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .ts-mag-featured-side .ts-mag-card-small {
        grid-template-columns: 115px minmax(0, 1fr);
    }

    .ts-mag-featured-side .ts-mag-card-image {
        min-height: 110px;
    }

    .ts-mag-featured-side .ts-mag-card-body {
        padding: 12px;
    }

    .ts-mag-featured-side .ts-mag-card-body h3 {
        font-size: 15px;
    }

    .ts-mag-featured-side .ts-read-more {
        display: none;
    }

    .ts-mag-card-body {
        padding: 16px;
    }

}



/* ============================================================
   HOME MAGAZINE — FINITIONS
   ============================================================ */

/* Bloc expertise plus compact */

body .ts-home-expertise {
    padding-top: 38px !important;
    padding-bottom: 38px !important;
}

body .ts-home-expertise-main {
    padding: 26px 30px !important;
}

body .ts-home-store {
    padding: 26px 28px !important;
}

body .ts-home-expertise-main h2 {
    margin-top: 7px !important;
    margin-bottom: 10px !important;
    font-size: clamp(27px, 2.6vw, 38px) !important;
    line-height: 1.06 !important;
}

body .ts-home-expertise-main > p {
    font-size: 14px !important;
    line-height: 1.55 !important;
}

body .ts-home-expertise-links {
    margin-top: 18px !important;
}

body .ts-home-store > strong {
    margin-bottom: 11px !important;
}

body .ts-home-store p {
    margin-top: 8px !important;
    margin-bottom: 10px !important;
}

body .ts-home-store-note {
    padding-top: 11px !important;
}


/* Mobile */

@media (max-width: 640px) {

    body .ts-home-expertise {
        padding-top: 28px !important;
        padding-bottom: 28px !important;
    }

    body .ts-home-expertise-main,
    body .ts-home-store {
        padding: 20px !important;
    }

    body .ts-home-expertise-main h2 {
        font-size: 28px !important;
    }

}



/* ============================================================
   TRIPP SPORT — COURSES DU WEEK-END
   ============================================================ */

.ts-weekend-races {
    padding: 42px 0;
    background: #f3f7f7;
    border-top: 1px solid #e1ebeb;
    border-bottom: 1px solid #e1ebeb;
}

.ts-weekend-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 22px;
}

.ts-weekend-head h2 {
    margin: 5px 0 5px;
    color: #173538;
    font-size: clamp(28px, 3vw, 40px);
    line-height: 1.05;
}

.ts-weekend-head p {
    max-width: 680px;
    margin: 0;
    color: #637174;
    font-size: 14px;
    line-height: 1.5;
}

.ts-weekend-date {
    flex: 0 0 auto;
    padding: 9px 14px;
    border-radius: 999px;
    background: #026168;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.ts-weekend-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.ts-race-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 17px 18px;
    background: #fff;
    border: 1px solid #dde8e8;
    border-radius: 13px;
    box-shadow: 0 3px 12px rgba(15, 55, 58, .035);
    transition: transform .18s ease, box-shadow .18s ease;
}

.ts-race-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 20px rgba(15, 55, 58, .08);
}

.ts-race-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}

.ts-race-day {
    color: #026168;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .035em;
}

.ts-race-type {
    padding: 4px 7px;
    border-radius: 5px;
    background: #edf5f5;
    color: #026168;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .06em;
}

.ts-race-near {
    align-self: flex-start;
    margin: -2px 0 8px;
    padding: 4px 7px;
    border-radius: 5px;
    background: #fff3d6;
    color: #875d00;
    font-size: 9px;
    font-weight: 800;
}

.ts-race-card h3 {
    margin: 0 0 8px;
    color: #173538;
    font-size: 18px;
    line-height: 1.18;
}

.ts-race-city {
    margin-bottom: 8px;
    color: #46595b;
    font-size: 12.5px;
    font-weight: 700;
}

.ts-race-distance {
    min-height: 36px;
    margin-bottom: 14px;
    color: #697779;
    font-size: 12px;
    line-height: 1.45;
}

.ts-race-footer {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 8px;
    margin-top: auto;
    padding-top: 11px;
    border-top: 1px solid #edf1f1;
}

.ts-race-link {
    color: #026168;
    font-size: 11px;
    font-weight: 900;
    text-decoration: none;
}

.ts-race-link:hover {
    text-decoration: underline;
}

.ts-race-source {
    color: #929d9e;
    font-size: 8.5px;
    text-align: right;
}


@media (max-width: 980px) {

    .ts-weekend-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}


@media (max-width: 640px) {

    .ts-weekend-races {
        padding: 29px 0;
    }

    .ts-weekend-head {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
        margin-bottom: 15px;
    }

    .ts-weekend-head h2 {
        font-size: 27px;
    }

    .ts-weekend-date {
        padding: 7px 11px;
        font-size: 10px;
    }

    .ts-weekend-grid {
        display: flex;
        gap: 11px;
        overflow-x: auto;
        padding-bottom: 7px;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
    }

    .ts-race-card {
        flex: 0 0 82%;
        padding: 15px;
        scroll-snap-align: start;
    }

    .ts-race-card h3 {
        font-size: 17px;
    }

    .ts-race-distance {
        min-height: 0;
    }
}

/* =========================================================
   TRIPP SPORT - AGENDA COURSES 59 / 62
   ========================================================= */

.ts-agenda-page {
    background: #f5f7f7;
}

.ts-agenda-wrap {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.ts-agenda-hero {
    background: #026168;
    color: #fff;
    padding: 54px 0 44px;
}

.ts-agenda-kicker {
    display: inline-block;
    margin-bottom: 10px;
    color: #ffb80c;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .08em;
}

.ts-agenda-hero h1 {
    margin: 0;
    max-width: 850px;
    color: #fff;
    font-size: clamp(32px, 5vw, 54px);
    line-height: 1.05;
}

.ts-agenda-intro {
    max-width: 760px;
    margin: 18px 0 0;
    font-size: 18px;
    line-height: 1.55;
    opacity: .92;
}

.ts-agenda-stats {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-top: 26px;
}

.ts-agenda-stats strong {
    color: #ffb80c;
    font-size: 34px;
}

.ts-agenda-controls {
    position: sticky;
    top: 0;
    z-index: 20;
    padding: 18px 0;
    background: rgba(255,255,255,.96);
    border-bottom: 1px solid #e1e7e7;
    backdrop-filter: blur(8px);
}

.ts-agenda-search input {
    width: 100%;
    padding: 13px 16px;
    border: 1px solid #cad5d5;
    border-radius: 9px;
    font-size: 16px;
}

.ts-agenda-filter-group,
.ts-agenda-secondary {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.ts-agenda-filter {
    border: 1px solid #ccd7d7;
    border-radius: 999px;
    background: #fff;
    padding: 8px 13px;
    cursor: pointer;
    font-weight: 700;
}

.ts-agenda-filter:hover,
.ts-agenda-filter.is-active {
    border-color: #026168;
    background: #026168;
    color: #fff;
}

.ts-agenda-near {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 13px;
    border-radius: 999px;
    background: #fff4d7;
    font-weight: 700;
    cursor: pointer;
}

.ts-agenda-results {
    padding: 32px 0 50px;
}

.ts-agenda-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.ts-agenda-card {
    display: flex;
    flex-direction: column;
    min-height: 250px;
    padding: 20px;
    border: 1px solid #e0e7e7;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 5px 20px rgba(0,0,0,.045);
}

.ts-agenda-card[hidden] {
    display: none !important;
}

.ts-agenda-card-top {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: center;
}

.ts-agenda-date {
    font-size: 13px;
    font-weight: 800;
    color: #026168;
    text-transform: uppercase;
}

.ts-agenda-type {
    padding: 5px 8px;
    border-radius: 999px;
    background: #eff5f5;
    color: #026168;
    font-size: 11px;
    font-weight: 800;
}

.ts-agenda-card h2 {
    margin: 18px 0 14px;
    font-size: 20px;
    line-height: 1.25;
}

.ts-agenda-meta {
    display: grid;
    gap: 8px;
    color: #526060;
    font-size: 14px;
}

.ts-agenda-near-badge {
    color: #026168;
    font-weight: 800;
}

.ts-agenda-card-footer {
    margin-top: auto;
    padding-top: 18px;
}

.ts-agenda-link {
    color: #026168;
    font-weight: 800;
    text-decoration: none;
}

.ts-agenda-link:hover {
    text-decoration: underline;
}

.ts-agenda-no-results,
.ts-agenda-empty {
    padding: 30px;
    border-radius: 12px;
    background: #fff;
    text-align: center;
}

.ts-agenda-seo {
    padding: 42px 0 60px;
    background: #fff;
}

.ts-agenda-seo h2 {
    max-width: 750px;
    margin-top: 0;
    font-size: 30px;
}

.ts-agenda-seo p {
    max-width: 850px;
    line-height: 1.7;
}

@media (max-width: 900px) {
    .ts-agenda-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {

    .ts-agenda-wrap {
        width: min(100% - 20px, 1180px);
    }

    .ts-agenda-hero {
        padding: 34px 0;
    }

    .ts-agenda-grid {
        grid-template-columns: 1fr;
    }

    .ts-agenda-controls {
        position: static;
    }

    .ts-agenda-filter-group {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 5px;
    }

    .ts-agenda-filter-group .ts-agenda-filter {
        flex: 0 0 auto;
    }
}

/* =========================================================
   TRIPP SPORT AGENDA V2 — DENSITE + CARTE
   ========================================================= */

.ts-agenda-hero {
    padding-top: 42px;
    padding-bottom: 36px;
}

.ts-agenda-intro {
    margin-top: 14px;
    max-width: 800px;
}

.ts-agenda-stats {
    margin-top: 18px;
}


/* FILTRES */

.ts-agenda-controls {
    padding: 13px 0 14px;
}

.ts-agenda-search input {
    height: 44px;
    padding: 9px 14px;
    background: #f7f9f9;
}

.ts-agenda-filter-group,
.ts-agenda-secondary {
    margin-top: 9px;
    gap: 6px;
}

.ts-agenda-filter {
    padding: 6px 11px;
    font-size: 13px;
}

.ts-agenda-near {
    padding: 6px 11px;
    font-size: 13px;
}


/* CARTE */

.ts-agenda-map-section {
    padding: 28px 0 8px;
    background: #f5f7f7;
}

.ts-agenda-map-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 20px;
    margin-bottom: 14px;
}

.ts-agenda-map-kicker {
    display: block;
    margin-bottom: 4px;
    color: #026168;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .08em;
}

.ts-agenda-map-heading h2 {
    margin: 0;
    font-size: 24px;
}

.ts-agenda-map-count {
    flex: 0 0 auto;
    color: #526060;
    font-size: 13px;
}

.ts-agenda-map-count strong {
    color: #026168;
    font-size: 20px;
}

.ts-agenda-map {
    width: 100%;
    height: 460px;
    overflow: hidden;
    border: 1px solid #d9e2e2;
    border-radius: 15px;
    background: #e9eeee;
    box-shadow: 0 6px 24px rgba(0,0,0,.06);
}

.ts-agenda-map-note {
    margin: 8px 2px 0;
    color: #748080;
    font-size: 12px;
}

.ts-map-popup {
    min-width: 190px;
    line-height: 1.35;
}

.ts-map-popup strong {
    display: block;
    margin: 3px 0 5px;
    color: #1e2929;
    font-size: 14px;
}

.ts-map-popup-date {
    color: #026168;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.ts-map-popup-city {
    margin-bottom: 7px;
    color: #637070;
    font-size: 12px;
}

.ts-map-popup a {
    color: #026168;
    font-weight: 800;
    text-decoration: none;
}


/* RESULTATS */

.ts-agenda-results {
    padding-top: 22px;
}

.ts-agenda-grid {
    grid-template-columns:
        repeat(4, minmax(0, 1fr));
    gap: 11px;
}

.ts-agenda-card {
    min-height: 205px;
    padding: 15px;
    border-radius: 11px;
}

.ts-agenda-card-top {
    align-items: flex-start;
}

.ts-agenda-date {
    font-size: 11px;
}

.ts-agenda-type {
    padding: 4px 7px;
    font-size: 10px;
}

.ts-agenda-card h2 {
    margin: 12px 0 9px;
    font-size: 17px;
    line-height: 1.22;
}

.ts-agenda-meta {
    gap: 5px;
    font-size: 12.5px;
    line-height: 1.3;
}

.ts-agenda-near-badge {
    display: inline-flex;
    width: max-content;
    max-width: 100%;
    padding: 3px 7px;
    border-radius: 999px;
    background: #fff3d2;
    color: #775500;
    font-size: 11px;
}

.ts-agenda-card-footer {
    padding-top: 12px;
}

.ts-agenda-link {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 34px;
    padding: 7px 11px;
    border-radius: 7px;
    background: #ffb80c;
    color: #172020;
    font-size: 12px;
    font-weight: 900;
    text-decoration: none;
}

.ts-agenda-link:hover {
    background: #026168;
    color: #fff;
    text-decoration: none;
}


/* TABLETTE */

@media (max-width: 1100px) {

    .ts-agenda-grid {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 850px) {

    .ts-agenda-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .ts-agenda-map {
        height: 390px;
    }
}


/* MOBILE */

@media (max-width: 600px) {

    .ts-agenda-map-heading {
        display: block;
    }

    .ts-agenda-map-count {
        display: block;
        margin-top: 5px;
    }

    .ts-agenda-map {
        height: 330px;
        border-radius: 11px;
    }

    .ts-agenda-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .ts-agenda-card {
        min-height: 0;
        padding: 13px;
    }

    .ts-agenda-card h2 {
        margin: 9px 0 7px;
        font-size: 16px;
    }
}

/* AGENDA V3 - DISTANCES */

.ts-agenda-distance {
    color: #026168;
    font-weight: 800;
}

.ts-agenda-near-badge {
    border: 1px solid rgba(255, 184, 12, .42);
}

/* =========================================================
   TRIPP SPORT — SINGLE COURSE
   ========================================================= */

.ts-course-single {
    background: #f5f7f7;
}

.ts-course-wrap {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
}

.ts-course-hero {
    padding: 34px 0 38px;
    background: #026168;
    color: #fff;
}

.ts-course-breadcrumb {
    margin-bottom: 22px;
}

.ts-course-breadcrumb a {
    color: rgba(255,255,255,.8);
    text-decoration: none;
    font-size: 13px;
}

.ts-course-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 30px;
}

.ts-course-type {
    display: inline-flex;
    margin-bottom: 10px;
    padding: 5px 9px;
    border-radius: 999px;
    background: #ffb80c;
    color: #172020;
    font-size: 11px;
    font-weight: 900;
}

.ts-course-heading h1 {
    margin: 0;
    max-width: 800px;
    color: #fff;
    font-size: clamp(30px, 5vw, 48px);
    line-height: 1.07;
}

.ts-course-main-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 16px;
    color: rgba(255,255,255,.9);
}

.ts-course-primary-action {
    flex: 0 0 auto;
    padding: 12px 18px;
    border-radius: 9px;
    background: #ffb80c;
    color: #172020;
    font-weight: 900;
    text-decoration: none;
}

.ts-course-alert {
    margin-bottom: 15px;
    padding: 10px 14px;
    border-radius: 8px;
    background: #b42318;
    font-weight: 900;
}

.ts-course-content {
    padding: 30px 0 60px;
}

.ts-course-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(260px, .8fr);
    gap: 22px;
}

.ts-course-main {
    display: grid;
    gap: 18px;
}

.ts-course-info-card,
.ts-course-map-section,
.ts-course-links,
.ts-course-shop-card {
    padding: 22px;
    border: 1px solid #dfe7e7;
    border-radius: 14px;
    background: #fff;
}

.ts-course-info-card h2,
.ts-course-map-section h2,
.ts-course-links h2,
.ts-course-shop-card h2 {
    margin-top: 0;
}

.ts-course-info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.ts-course-info-grid > div {
    padding: 13px;
    border-radius: 9px;
    background: #f5f8f8;
}

.ts-course-info-label {
    display: block;
    margin-bottom: 4px;
    color: #6b7777;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.ts-course-section-heading {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    align-items: center;
}

.ts-course-near {
    padding: 5px 9px;
    border-radius: 999px;
    background: #fff3d2;
    color: #755300;
    font-size: 11px;
    font-weight: 900;
}

.ts-course-map {
    width: 100%;
    height: 390px;
    margin-top: 13px;
    border-radius: 10px;
    overflow: hidden;
}

.ts-course-links {
    display: grid;
    gap: 9px;
}

.ts-course-links h2 {
    margin-bottom: 5px;
}

.ts-course-link-card {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 3px 15px;
    padding: 13px 15px;
    border: 1px solid #dce5e5;
    border-radius: 9px;
    color: #233;
    text-decoration: none;
}

.ts-course-link-card strong {
    grid-column: 1;
}

.ts-course-link-card span {
    grid-column: 1;
    color: #6c7777;
    font-size: 12px;
}

.ts-course-link-card b {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: center;
}

.ts-course-link-primary {
    border-color: #ffb80c;
    background: #fff8e5;
}

.ts-course-sidebar {
    align-self: start;
    position: sticky;
    top: 20px;
}

.ts-course-shop-card {
    background: #026168;
    color: #fff;
}

.ts-course-shop-card h2 {
    color: #fff;
}

.ts-course-shop-kicker {
    display: inline-block;
    margin-bottom: 8px;
    color: #ffb80c;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .08em;
}

.ts-course-shop-card p {
    line-height: 1.6;
}

.ts-course-shop-button {
    display: inline-flex;
    margin-top: 8px;
    padding: 9px 13px;
    border-radius: 7px;
    background: #ffb80c;
    color: #172020;
    font-weight: 900;
    text-decoration: none;
}

.ts-course-nearby {
    margin-top: 32px;
}

.ts-course-nearby-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.ts-course-nearby-card {
    display: grid;
    gap: 6px;
    padding: 14px;
    border: 1px solid #dfe7e7;
    border-radius: 10px;
    background: #fff;
    color: #233;
    text-decoration: none;
}

.ts-course-nearby-card span {
    color: #026168;
    font-size: 10px;
    font-weight: 900;
}

.ts-course-nearby-card small {
    color: #687575;
}

@media (max-width: 800px) {

    .ts-course-heading {
        display: block;
    }

    .ts-course-primary-action {
        display: inline-flex;
        margin-top: 20px;
    }

    .ts-course-layout {
        grid-template-columns: 1fr;
    }

    .ts-course-sidebar {
        position: static;
    }

    .ts-course-nearby-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {

    .ts-course-wrap {
        width: min(100% - 20px, 1120px);
    }

    .ts-course-info-grid {
        grid-template-columns: 1fr;
    }

    .ts-course-map {
        height: 300px;
    }

    .ts-course-nearby-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   COURSE — PUB CONTEXTUELLE TRIPP SPORT
   ========================================================= */

.ts-course-random-ad {
    position: relative;
    overflow: hidden;
}

.ts-course-random-ad::after {
    content: "";
    position: absolute;
    right: -45px;
    bottom: -55px;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: rgba(255, 184, 12, .09);
    pointer-events: none;
}

.ts-course-random-ad .ts-course-shop-button {
    position: relative;
    z-index: 1;
}

.ts-course-ad-note {
    display: block;
    margin-top: 13px;
    color: rgba(255,255,255,.6);
    font-size: 10px;
}
