/*
Theme Name: GeneratePress TPSF
Theme URI: https://tennispadelsixfours.fr/
Description: Thème enfant GeneratePress pour Tennis Padel Six-Fours.
Author: TPSF
Template: generatepress
Version: 1.0.0
Text Domain: generatepress-tpsf
*/

/*
--------------------------------------------------------------
TPSF - CSS PERSONNALISÉ
--------------------------------------------------------------
Le CSS du site sera ajouté ici.
Le thème parent GeneratePress peut être mis à jour sans écraser ce fichier.
*/

:root {
    --tpsf-blue: #1f78bd;
    --tpsf-cream: #f7f4ee;
    --tpsf-white: #ffffff;
    --tpsf-text: #222222;
}
/* ==========================================================
   HEADER TPSF
   ========================================================== */

/* On masque l'ancien en-tête GeneratePress.
   La navigation reste indépendante et sera conservée. */

/* On masque seulement l'identité native GeneratePress,
   mais on conserve la navigation principale */

.site-header .site-branding,
.site-header .site-logo {
    display: none;
}

.tpsf-header {
    width: 100%;
    background: var(--tpsf-white);
}

.tpsf-header-inner {
    width: min(1200px, calc(100% - 40px));
    margin: 0 auto;
    min-height: 190px;

    display: grid;
    grid-template-columns: 220px 1fr 280px;
    gap: 45px;

    align-items: center;
}

.tpsf-header-logo {
    text-align: left;
}

.tpsf-header-logo a {
    display: inline-block;
}

.tpsf-header-logo-img {
    display: block;
    width: 150px;
    height: auto;
}

.tpsf-header-infos {
    font-size: 16px;
    line-height: 1.65;
    color: var(--tpsf-text);
}

.tpsf-header-contact {
    text-align: right;
}

.tpsf-header-reserver {
    display: inline-block;
    margin-bottom: 18px;
    padding: 11px 22px;

    background: var(--tpsf-blue);
    color: #fff;
    text-decoration: none;
    font-weight: 600;

    transition: opacity .2s ease;
}

.tpsf-header-reserver:hover,
.tpsf-header-reserver:focus {
    color: #fff;
    opacity: .85;
}

.tpsf-header-coordonnees {
    font-size: 14px;
    line-height: 1.65;
    color: var(--tpsf-text);
}


/* TABLETTE */
@media (max-width: 900px) {

    .tpsf-header-inner {
        grid-template-columns: 160px 1fr;
        gap: 25px;
        padding: 20px 0;
    }

    .tpsf-header-logo-img {
        width: 125px;
    }

    .tpsf-header-contact {
        grid-column: 1 / -1;
        text-align: center;
    }

}


/* =========================================================
   TPSF - HEADER MOBILE
   ========================================================= */

@media (max-width: 768px) {

    .tpsf-header-inner {
    width: calc(100% - 24px);
    min-height: 0;
    margin: 0 auto;
    padding: 6px 0 0;

    display: grid;
    grid-template-columns: 46% 54%;
    gap: 8px;
    align-items: center;
	}

    .tpsf-header-logo {
        text-align: left;
    }

    .tpsf-header-logo-img {
        display: block;
        width: 125px;
        height: auto;
        margin: 0;
    }

    .tpsf-header-infos {
        display: none;
    }

	.tpsf-header-contact {
    grid-column: auto;
    text-align: right;
    align-self: center;
    padding-right: 12px;
	}

    .tpsf-header-reserver {
        display: inline-block;
        margin: 0 0 10px;
        padding: 10px 13px;

        font-size: 14px;
        line-height: 1.2;
        white-space: nowrap;
    }

    .tpsf-header-coordonnees {
    display: block;
    font-size: 12px;
    line-height: 1.3;
	}

    .tpsf-header-telephone {
        display: block;
    }

    .tpsf-header-telephone a {
        color: var(--tpsf-text);
        text-decoration: none;
        font-weight: 600;
    }

	.tpsf-header-horaires,
	.tpsf-header-clubhouse {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    line-height: 1.25;
	}

}
/* =========================================================
   TPSF - NAVIGATION PRINCIPALE
   ========================================================= */

.main-navigation {
    width: 100%;
    background: #ffffff;
    margin-top: 10px;
}

.main-navigation .inside-navigation {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
}

.main-navigation .main-nav {
    width: 100%;
}

.main-navigation .main-nav > ul {
    width: 100%;
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: stretch;
}

/* Liens */
.main-navigation .main-nav ul li > a {
    color: var(--tpsf-blue) !important;
    background-color: #ffffff !important;

    font-size: 15px;
    font-weight: 600;

    padding: 16px 17px;
    line-height: 1.3;
    white-space: nowrap;

    transition: background-color .2s ease, color .2s ease;
}

/* SURVOL */
.main-navigation .main-nav ul li:hover > a,
.main-navigation .main-nav ul li > a:hover,
.main-navigation .main-nav ul li.sfHover > a {
    background-color: var(--tpsf-blue) !important;
    color: #ffffff !important;
}

/* PAGE ACTIVE */
.main-navigation .main-nav ul li.current-menu-item > a,
.main-navigation .main-nav ul li.current_page_item > a,
.main-navigation .main-nav ul li.current-menu-ancestor > a {
    background-color: var(--tpsf-blue) !important;
    color: #ffffff !important;
}

/* Écrans un peu moins larges */
@media (max-width: 1350px) {
    .main-navigation .main-nav ul li > a {
        font-size: 14px;
        padding-left: 11px;
        padding-right: 11px;
    }
}
/* =========================================================
   TPSF - HOME - SLIDER
   ========================================================= */

.tpsf-home {
    width: 100%;
}

.tpsf-home-slider {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #000;
}

.tpsf-slider-track {
    position: relative;
    width: 100%;
    height: 100%;
}

.tpsf-slide {
    position: absolute;
    inset: 0;

    opacity: 0;
    visibility: hidden;

    transition: opacity .8s ease;
}

.tpsf-slide.is-active {
    opacity: 1;
    visibility: visible;
}

.tpsf-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* FLÈCHES */

.tpsf-slider-prev,
.tpsf-slider-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);

    width: 46px;
    height: 60px;

    padding: 0;
    border: 0;

    background: rgba(0, 0, 0, .28);
    color: #fff;

    font-size: 38px;
    font-weight: 300;
    line-height: 1;

    cursor: pointer;

    transition: background .2s ease;
}

.tpsf-slider-prev {
    left: 0;
}

.tpsf-slider-next {
    right: 0;
}

.tpsf-slider-prev:hover,
.tpsf-slider-next:hover {
    background: rgba(0, 0, 0, .5);
}


/* POINTS */

.tpsf-slider-dots {
    position: absolute;
    left: 50%;
    bottom: 18px;
    transform: translateX(-50%);

    display: flex;
    gap: 9px;
}

.tpsf-slider-dots button {
    width: 9px;
    height: 9px;

    padding: 0;

    border: 1px solid #fff;
    border-radius: 50%;

    background: transparent;
    cursor: pointer;
}

.tpsf-slider-dots button.is-active {
    background: #fff;
}


/* MOBILE */

@media (max-width: 650px) {

    .tpsf-slider-prev,
    .tpsf-slider-next {
        width: 36px;
        height: 50px;
        font-size: 30px;
    }

    .tpsf-slider-dots {
        bottom: 12px;
    }
}
/* =========================================================
   TPSF - HOME - INTRODUCTION
   ========================================================= */

.tpsf-home-intro {
    max-width: 900px;
    margin: 0 auto;
    padding: 55px 30px 60px;
    text-align: center;
}

.tpsf-home-intro h1 {
    margin: 0 0 22px;

    color: var(--tpsf-blue);

    font-size: 30px;
    font-weight: 600;
    line-height: 1.25;
}

.tpsf-home-intro p {
    margin: 0;

    color: var(--tpsf-text);

    font-size: 17px;
    line-height: 1.75;
}


/* MOBILE */

@media (max-width: 650px) {

    .tpsf-home-intro {
        padding: 38px 22px 42px;
    }

    .tpsf-home-intro h1 {
        font-size: 25px;
    }

    .tpsf-home-intro p {
        font-size: 16px;
        line-height: 1.65;
    }
}
/* =========================================================
   TPSF - HOME - 3 ENTRÉES
   ========================================================= */

.tpsf-home-entrees {
    padding: 10px 45px 65px;
}

.tpsf-home-entrees-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px;
}

.tpsf-home-entree {
    text-align: center;
}

.tpsf-home-entree-image {
    position: relative;
    display: block;
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

.tpsf-home-entree-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;

    transition: transform .35s ease;
}

.tpsf-home-entree-image span {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 22px;

    color: #fff;

    font-size: 25px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: .5px;

    text-shadow: 0 1px 5px rgba(0, 0, 0, .65);
}

.tpsf-home-entree-image:hover img {
    transform: scale(1.025);
}

.tpsf-home-entree-lien {
    display: inline-block;
    margin-top: 16px;

    color: var(--tpsf-blue);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
}

.tpsf-home-entree-lien:hover {
    text-decoration: underline;
}


/* TABLETTE */

@media (max-width: 900px) {

    .tpsf-home-entrees {
        padding-left: 30px;
        padding-right: 30px;
    }

    .tpsf-home-entrees-grid {
        gap: 20px;
    }

    .tpsf-home-entree-image span {
        font-size: 21px;
    }
}


/* MOBILE */

@media (max-width: 650px) {

    .tpsf-home-entrees {
        padding: 5px 22px 45px;
    }

    .tpsf-home-entrees-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .tpsf-home-entree-image span {
        font-size: 24px;
    }
}
/* =========================================================
   HOME - NOS ENSEIGNANTS
   ========================================================= */

.tpsf-home-coachs {
    padding: 45px 30px 55px;
    text-align: center;
}

.tpsf-home-coachs h2 {
    margin: 0 0 35px;
    color: var(--tpsf-blue);
    font-size: 30px;
    font-weight: 600;
    line-height: 1.25;
}

.tpsf-home-coachs-grid {
    max-width: 850px;
    margin: 0 auto;

    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 60px;
}

.tpsf-home-coach {
    text-align: center;
}

.tpsf-home-coach-photo {
    display: block;

    width: 155px;
    height: 155px;
    margin: 0 auto 18px;

    border-radius: 50%;
    object-fit: cover;
}

.tpsf-home-coach h3 {
    margin: 0 0 7px;

    color: var(--tpsf-blue);
    font-size: 18px;
    font-weight: 600;
}

.tpsf-home-coach p {
    margin: 0;

    font-size: 14px;
    line-height: 1.5;
}


/* MOBILE */

@media (max-width: 600px) {

    .tpsf-home-coachs {
        padding: 35px 20px 45px;
    }

    .tpsf-home-coachs h2 {
        margin-bottom: 30px;
        font-size: 27px;
    }

    .tpsf-home-coachs-grid {
        gap: 18px;
    }

    .tpsf-home-coach-photo {
        width: 105px;
        height: 105px;
        margin-bottom: 12px;
    }

    .tpsf-home-coach h3 {
        font-size: 14px;
    }

    .tpsf-home-coach p {
        font-size: 12px;
        line-height: 1.4;
    }

}

/* =========================================================
   TPSF - HOME - À VENIR
   ========================================================= */

.tpsf-home-avenir {
    padding: 10px 45px 70px;
}

.tpsf-home-avenir h2 {
    margin: 0 0 35px;

    color: var(--tpsf-blue);

    font-size: 30px;
    font-weight: 600;
    line-height: 1.25;

    text-align: center;
}

.tpsf-home-avenir-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 45px;

    max-width: 1050px;
    margin: 0 auto;
}

.tpsf-home-avenir-item {
    text-align: center;
}

.tpsf-home-avenir-item a {
    display: block;
}

.tpsf-home-avenir-item img {
    display: block;

    width: 100%;
    height: auto;

    transition: transform .25s ease;
}

.tpsf-home-avenir-item a:hover img {
    transform: scale(1.015);
}


/* TABLETTE */

@media (max-width: 900px) {

    .tpsf-home-avenir {
        padding-left: 30px;
        padding-right: 30px;
    }

    .tpsf-home-avenir-grid {
        gap: 25px;
    }
}


/* MOBILE */

@media (max-width: 650px) {

    .tpsf-home-avenir {
        padding: 5px 22px 50px;
    }

    .tpsf-home-avenir h2 {
        margin-bottom: 25px;
        font-size: 25px;
    }

    .tpsf-home-avenir-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}
/* =========================================================
   TPSF - HOME - DERNIÈRES ACTUALITÉS
   ========================================================= */

.tpsf-home-actualites {
    padding: 10px 45px 75px;
}

.tpsf-home-actualites h2 {
    margin: 0 0 35px;
    color: var(--tpsf-blue);
    font-size: 30px;
    font-weight: 600;
	line-height: 1.25;

    text-align: center;
}

.tpsf-home-actualites-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px;
}

.tpsf-home-actu {
    text-align: left;
}

.tpsf-home-actu-image {
    display: block;

    aspect-ratio: 1 / 1;

    overflow: hidden;
}

.tpsf-home-actu-image img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform .3s ease;
}

.tpsf-home-actu-image:hover img {
    transform: scale(1.025);
}

.tpsf-home-actu-image-vide {
    width: 100%;
    height: 100%;

    background: #eee;
}

.tpsf-home-actu-date {
    margin-top: 15px;

    color: #666;

    font-size: 14px;
}

.tpsf-home-actu h3 {
    margin: 6px 0 0;

    font-size: 19px;
    font-weight: 600;
    line-height: 1.35;
}

.tpsf-home-actu h3 a {
    color: var(--tpsf-text);
    text-decoration: none;
}

.tpsf-home-actu h3 a:hover {
    color: var(--tpsf-blue);
}


/* TABLETTE */

@media (max-width: 900px) {

    .tpsf-home-actualites {
        padding-left: 30px;
        padding-right: 30px;
    }

    .tpsf-home-actualites-grid {
        gap: 20px;
    }
}


/* MOBILE */

@media (max-width: 650px) {

    .tpsf-home-actualites {
        padding: 5px 22px 50px;
    }

    .tpsf-home-actualites h2 {
        margin-bottom: 25px;
        font-size: 25px;
    }

    .tpsf-home-actualites-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }
}
/* =========================================================
   TPSF - HOME - RÉSEAUX SOCIAUX
   ========================================================= */

.tpsf-home-social {
    padding: 10px 45px 70px;
    text-align: center;
}

.tpsf-home-social h2 {
    margin: 0 0 35px;

    color: var(--tpsf-blue);

    font-size: 30px;
    font-weight: 600;
    line-height: 1.25;
}

.tpsf-home-social-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 45px;
}

.tpsf-home-social-grid a {
    display: block;
}

.tpsf-home-social-grid img {
    display: block;

    width: 130px;
    height: 130px;

    object-fit: contain;

    transition: transform .2s ease;
}

.tpsf-home-social-grid a:hover img {
    transform: scale(1.04);
}


/* MOBILE */

@media (max-width: 650px) {

    .tpsf-home-social {
        padding: 5px 22px 50px;
    }

    .tpsf-home-social h2 {
        margin-bottom: 25px;
        font-size: 25px;
    }

    .tpsf-home-social-grid {
        display: grid;
        grid-template-columns: repeat(2, 120px);
        justify-content: center;
        gap: 25px;
    }

    .tpsf-home-social-grid img {
        width: 120px;
        height: 120px;
    }
}
/* =========================================================
   TPSF - HOME - PARTENAIRES
   ========================================================= */

.tpsf-home-partenaires {
    padding: 10px 45px 5px;
    text-align: center;
}

.tpsf-home-partenaires h2 {
    margin: 0 0 35px;

    color: var(--tpsf-blue);

    font-size: 30px;
    font-weight: 600;
    line-height: 1.25;
}

.tpsf-home-partenaires-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 45px;

    max-width: 1000px;
    margin: 0 auto;

    align-items: center;
}

.tpsf-home-partenaire {
    height: 120px;

    display: flex;
    align-items: center;
    justify-content: center;
}

.tpsf-home-partenaire img {
    display: block;

    max-width: 100%;
    max-height: 100px;

    width: auto;
    height: auto;

    object-fit: contain;
}


/* MOBILE */

@media (max-width: 650px) {

    .tpsf-home-partenaires {
        padding: 5px 22px 50px;
    }

    .tpsf-home-partenaires h2 {
        margin-bottom: 25px;
        font-size: 25px;
    }

    .tpsf-home-partenaires-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px 30px;
    }

    .tpsf-home-partenaire {
        height: 100px;
    }

    .tpsf-home-partenaire img {
        max-height: 80px;
    }
}

/* =========================================================
   TPSF - DOUBLE VAGUE + FOOTER
   ========================================================= */

/* VAGUE AU-DESSUS DU FOOTER */

.tpsf-footer-wave {
    width: min(1200px, 100%);
    margin: 0 auto;
    line-height: 0;
}

.tpsf-footer-wave img {
    display: block;
    width: 100%;
    height: auto;
}


/* =========================================================
   TPSF - FOOTER
   ========================================================= */

.tpsf-footer {
    background: var(--tpsf-blue);
    color: #ffffff;
}

.tpsf-footer-inner {
    width: min(1200px, calc(100% - 60px));
    margin: 0 auto;
    padding: 38px 0 28px;

    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 55px;
}


/* TITRES */

.tpsf-footer h3 {
    margin: 0 0 14px;

    color: #ffffff;

    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
}


/* LISTES */

.tpsf-footer ul {
    margin: 0;
    padding: 0;

    list-style: none;
}

.tpsf-footer li {
    margin: 0 0 6px;
    padding: 0;

    font-size: 14px;
    line-height: 1.4;
}

.tpsf-footer a {
    color: #ffffff;
    text-decoration: none;
}

.tpsf-footer a:hover,
.tpsf-footer a:focus {
    text-decoration: underline;
}


/* RÉSEAUX SOCIAUX */

.tpsf-footer-social li {
    margin-bottom: 8px;
}

.tpsf-footer-social a {
    display: flex;
    align-items: center;
    gap: 9px;
}

.tpsf-footer-social img {
    display: block;

    width: 26px;
    height: 26px;

    object-fit: cover;
}


/* COORDONNÉES */

.tpsf-footer-contact {
    width: min(1200px, calc(100% - 60px));
    margin: 0 auto;

    padding: 18px 0;

    border-top: 1px solid rgba(255, 255, 255, .30);

    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;

    color: #ffffff;

    font-size: 13px;
}

.tpsf-footer-contact span:not(:last-child)::after,
.tpsf-footer-contact a:not(:last-child)::after {
    content: "·";
    margin-left: 12px;
}


/* LIGNE LÉGALE */

.tpsf-footer-legal {
    padding: 14px 20px;

    border-top: 1px solid rgba(255, 255, 255, .18);

    display: flex;
    justify-content: center;
    align-items: center;
    gap: 18px;

    color: rgba(255, 255, 255, .85);

    font-size: 12px;
}

.tpsf-footer-legal a {
    color: rgba(255, 255, 255, .85);
}


/* =========================================================
   FOOTER - TABLETTE
   ========================================================= */

@media (max-width: 900px) {

    .tpsf-footer-inner {
        grid-template-columns: repeat(2, 1fr);
        gap: 35px 50px;
    }

}


/* =========================================================
   FOOTER - MOBILE
   ========================================================= */

@media (max-width: 600px) {

    .tpsf-footer-inner {
        width: calc(100% - 44px);
        padding: 30px 0 25px;

        grid-template-columns: repeat(2, 1fr);
        gap: 30px 20px;
    }

    .tpsf-footer h3 {
        font-size: 15px;
    }

    .tpsf-footer li {
        font-size: 13px;
    }

    .tpsf-footer-social img {
        width: 24px;
        height: 24px;
    }

    .tpsf-footer-contact {
        width: calc(100% - 44px);

        flex-direction: column;
        gap: 3px;

        text-align: center;
    }

    .tpsf-footer-contact span::after,
    .tpsf-footer-contact a::after {
        display: none;
    }

    .tpsf-footer-legal {
        flex-direction: column;
        gap: 5px;

        text-align: center;
    }

}
.site-info {
    display: none;
}

/* =========================================================
   TPSF - COMPOSANTS COMMUNS DES PAGES
   =========================================================
   À utiliser désormais dans les pages PHP/HTML :
   .tpsf-page
   .tpsf-hero
   .tpsf-intro
   .tpsf-page-title
   .tpsf-section
   .tpsf-section-title
   .tpsf-split / .tpsf-split-reverse
   .tpsf-native-image
   .tpsf-cards / .tpsf-cards-2 / .tpsf-cards-3
   .tpsf-card
   .tpsf-button
   .tpsf-highlight
   .tpsf-price-grid / .tpsf-price-grid-3 / .tpsf-price-grid-5
   .tpsf-price-card

   Les anciennes classes Tennis et Cours collectifs sont conservées
   comme alias : le rendu actuel ne casse pas pendant la migration.
   ========================================================= */

/* ---------- CONTENEURS / IMAGES ---------- */

.tpsf-page,
.tpsf-tennis-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 35px 30px 70px;
}

.tpsf-cours-collectifs {
    max-width: 1280px;
    margin: 0 auto;
}

.tpsf-hero img,
.tpsf-tennis-hero img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.tpsf-native-image,
.tpsf-native-image img,
.tpsf-cc-hero img,
.tpsf-cc-image img,
.tpsf-cc-final > img,
.tpsf-tennis-card-image {
    display: block;
    width: 100%;
    height: auto;
}

/* ---------- TITRES / INTRO / TEXTE ---------- */

.tpsf-intro,
.tpsf-tennis-intro {
    max-width: 900px;
    margin: 45px auto 55px;
    text-align: center;
}

/* Exception pour le titre de la page Compétition */
.tpsf-competition-title {
    margin: 15px auto 25px;
    padding: 0;
}

.tpsf-page-title,
.tpsf-tennis-intro h1,
.tpsf-cc-intro h1 {
    color: var(--tpsf-blue);
    font-weight: 600;
}

.tpsf-page-title,
.tpsf-tennis-intro h1 {
    margin: 0 0 20px;
    font-size: 36px;
}

.tpsf-intro p,
.tpsf-tennis-intro p,
.tpsf-cc-intro p {
    font-size: 18px;
    line-height: 1.7;
}

.tpsf-intro p,
.tpsf-tennis-intro p {
    margin: 0;
}

.tpsf-section-title,
.tpsf-cc-text h2,
.tpsf-cc-final-text h2 {
    color: var(--tpsf-blue);
    font-size: 30px;
    font-weight: 600;
    line-height: 1.2;
}

.tpsf-body-text,
.tpsf-cc-text p,
.tpsf-cc-final-text p {
    font-size: 17px;
    line-height: 1.7;
}

/* ---------- SECTIONS ---------- */

.tpsf-section,
.tpsf-tennis-section {
    margin: 65px 0;
}

.tpsf-section > h2,
.tpsf-tennis-section > h2,
.tpsf-tennis-partners > h2 {
    margin: 0 0 30px;
    color: var(--tpsf-blue);
    font-size: 26px;
    text-align: center;
}

/* ---------- PHOTO + TEXTE ---------- */

.tpsf-split,
.tpsf-cc-split {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 55px;
    align-items: center;
}

.tpsf-split-reverse,
.tpsf-cc-split-reverse {
    grid-template-columns: 0.85fr 1.15fr;
}

.tpsf-split img {
    display: block;
    width: 100%;
    height: auto;
}

/* ---------- CARTES ---------- */

.tpsf-cards,
.tpsf-tennis-cards {
    display: grid;
    gap: 25px;
}

.tpsf-cards-3,
.tpsf-tennis-cards {
    grid-template-columns: repeat(3, 1fr);
}

.tpsf-cards-2,
.tpsf-tennis-cards-2 {
    grid-template-columns: repeat(2, 1fr);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.tpsf-card,
.tpsf-tennis-card {
    display: block;
    padding: 35px 30px;
    background: #ffffff;
    text-align: center;
    text-decoration: none;
    color: inherit;
    transition: transform .2s ease;
}

.tpsf-card:hover,
.tpsf-tennis-card:hover {
    transform: translateY(-4px);
}

.tpsf-card h3,
.tpsf-tennis-card h3 {
    margin: 0 0 15px;
    color: var(--tpsf-blue);
    font-size: 19px;
}

.tpsf-card p,
.tpsf-tennis-card p {
    margin: 0;
    line-height: 1.5;
}

.tpsf-card img,
.tpsf-tennis-card img {
    width: 100%;
    display: block;
    margin-bottom: 20px;
}

.tpsf-tennis-card-image {
    margin-bottom: 24px;
}

/* ---------- BOUTON COMMUN TPSF ---------- */

.tpsf-button,
.tpsf-tennis-button,
.tpsf-cc-button {
    display: inline-block;
    padding: 10px 22px;
    background: var(--tpsf-blue);
    color: #ffffff !important;
    text-decoration: none;
    font-weight: 600;
    line-height: 1.3;
    transition: opacity .2s ease;
}

.tpsf-button:hover,
.tpsf-button:focus,
.tpsf-tennis-button:hover,
.tpsf-tennis-button:focus,
.tpsf-cc-button:hover,
.tpsf-cc-button:focus {
    color: #ffffff !important;
    opacity: .85;
}

/* ---------- MISE EN AVANT / PHRASE FORTE ---------- */

.tpsf-highlight,
.tpsf-cc-quote {
    max-width: 900px;
    margin: 100px auto;
    padding: 35px 55px;
    border-left: 5px solid var(--tpsf-blue);
}

.tpsf-highlight p,
.tpsf-cc-quote p {
    margin: 0;
    color: var(--tpsf-blue);
    font-size: 25px;
    line-height: 1.5;
    font-weight: 600;
}

/* ---------- TARIFS ---------- */

.tpsf-price-grid,
.tpsf-cc-tarif-grid {
    display: grid;
    gap: 18px;
}

.tpsf-price-grid-3,
.tpsf-cc-tarif-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.tpsf-price-grid-5,
.tpsf-cc-tarif-grid-5 {
    grid-template-columns: repeat(5, 1fr);
}

.tpsf-price-card,
.tpsf-cc-tarif {
    background: #ffffff;
    padding: 28px 18px;
    text-align: center;
    display: flex;
    flex-direction: column;
    min-height: 210px;
}

.tpsf-price-card h4,
.tpsf-cc-tarif h4 {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.3;
    margin: 0 0 15px;
}

.tpsf-price-card p,
.tpsf-cc-tarif p {
    font-size: 15px;
    line-height: 1.5;
    margin: 0 0 20px;
}

.tpsf-price-card strong,
.tpsf-cc-tarif strong {
    color: var(--tpsf-blue);
    font-size: 24px;
    margin-top: auto;
}

/* =========================================================
   ARTICLES / ACTUALITÉS TPSF
   ========================================================= */

.tpsf-actu-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 60px 60px;
    background: var(--tpsf-cream);
    box-sizing: border-box;
}

.tpsf-actu-hero {
    margin-bottom: 35px;
}

.tpsf-actu-hero img,
.tpsf-actu-gallery-item img {
    display: block;
    width: 100%;
    height: auto;
}

.tpsf-actu-title {
    margin: 0 0 25px;
    text-align: center;
    color: var(--tpsf-blue);
    font-size: 32px;
    line-height: 1.25;
    font-weight: 600;
}

.tpsf-actu-intro {
    max-width: 900px;
    margin: 0 auto 40px;
    text-align: center;
    font-size: 19px;
    line-height: 1.6;
}

.tpsf-actu-section-title {
    margin: 40px 0 18px;
    color: var(--tpsf-blue);
    font-size: 23px;
    line-height: 1.3;
    font-weight: 600;
}

.tpsf-actu-page p,
.tpsf-actu-page li {
    font-size: 17px;
    line-height: 1.65;
}

.tpsf-actu-page ul {
    margin: 15px 0 25px 25px;
}

.tpsf-actu-button {
    text-align: center;
    margin: 30px 0;
}
/* Galerie Niuk : 3 images sur une seule ligne, proportions conservées */
.tpsf-actu-gallery.tpsf-actu-gallery-3 {
    display: flex;
    flex-wrap: nowrap;
    align-items: flex-start;
    justify-content: center;
    gap: 20px;
}

.tpsf-actu-gallery.tpsf-actu-gallery-3 .tpsf-actu-gallery-item {
    width: auto;
    max-width: none;
    flex: 0 0 auto;
    height: auto;
}

.tpsf-actu-gallery.tpsf-actu-gallery-3 .tpsf-actu-gallery-item img {
    width: auto;
    max-width: none;
    height: 300px;
    display: block;
}
/* Le rouge des CTA d'actualité est volontairement conservé. */
.tpsf-actu-button a {
    display: inline-block;
    background-color: var(--tpsf-blue);
    color: #fff;
    padding: 10px 22px;
    text-decoration: none;
    font-weight: 600;
}

.tpsf-actu-button a:hover {
    opacity: .85;
}

.tpsf-actu-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 25px;
}

.tpsf-news-card img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

/* =========================================================
   PAGE TENNIS - SPÉCIFIQUE
   ========================================================= */

/* Bloc Nathan : spécifique à la page Tennis. */

.tpsf-tennis-coach {
    display: grid;
    grid-template-columns: 42% 58%;
    align-items: stretch;
    margin: 0 0 65px;
    background: #ffffff;
}

.tpsf-tennis-coach-photo {
    overflow: hidden;
}

.tpsf-tennis-coach-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 1 / 1;
}

.tpsf-tennis-coach-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 45px 55px;
}

.tpsf-tennis-label {
    margin-bottom: 12px;
    color: var(--tpsf-blue);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 1px;
}

.tpsf-tennis-coach-content h2 {
    margin: 0 0 5px;
    color: var(--tpsf-blue);
    font-size: 32px;
}

.tpsf-tennis-coach-content h3 {
    margin: 0 0 22px;
    font-size: 18px;
    font-weight: 600;
}

.tpsf-tennis-coach-content p {
    margin: 0 0 28px;
    font-size: 17px;
    line-height: 1.6;
}

/* Deux blocs simples de liens : conservés pour compatibilité. */

.tpsf-tennis-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.tpsf-tennis-links a {
    display: flex;
    flex-direction: column;
    padding: 30px;
    background: #ffffff;
    text-decoration: none;
    color: inherit;
}

.tpsf-tennis-links strong {
    margin-bottom: 8px;
    color: var(--tpsf-blue);
    font-size: 18px;
}

.tpsf-tennis-links span {
    font-size: 16px;
}

.tpsf-tennis-partners {
    margin-top: 70px;
    padding: 45px;
    background: #ffffff;
    text-align: center;
}

.tpsf-tennis-partners p {
    max-width: 650px;
    margin: 0 auto 25px;
    font-size: 17px;
}

.tpsf-tennis-partners .tpsf-tennis-button {
    align-self: auto;
}

/* =========================================================
   COURS COLLECTIFS - SPÉCIFIQUE
   =========================================================
   Tout ce qui peut être commun à d'autres pages a été remonté
   dans les composants TPSF ci-dessus.
   ========================================================= */

.page .tpsf-cours-collectifs {
    margin-top: 0;
}

body:has(.tpsf-cours-collectifs) .entry-header {
    display: none;
}

.tpsf-cc-intro {
    max-width: 900px;
    margin: 55px auto 80px;
    text-align: center;
}

.tpsf-cc-intro h1 {
    font-size: 38px;
    margin: 0 0 30px;
}

.tpsf-cc-intro p {
    margin: 0 0 18px;
}

.tpsf-cc-section {
    margin: 90px 0;
}

.tpsf-cc-text h2 {
    margin: 0 0 28px;
}

.tpsf-cc-text p {
    margin: 0 0 20px;
}

.tpsf-cc-tarifs {
    margin-top: 100px;
}

.tpsf-cc-tarifs > h2 {
    color: var(--tpsf-blue);
    text-align: center;
    font-size: 34px;
    font-weight: 600;
    margin-bottom: 50px;
}

.tpsf-cc-tarifs > h3 {
    color: var(--tpsf-blue);
    text-align: center;
    font-size: 23px;
    font-weight: 600;
    margin: 55px 0 22px;
}
.tpsf-cc-final {
    margin-bottom: 35px;
}

.tpsf-cc-final-text {
    max-width: 760px;
    margin: 25px auto 0;
    text-align: center;
}

.tpsf-cc-final-text h2 {
    margin-bottom: 18px;
}

.tpsf-cc-final-text p {
    margin-bottom: 20px;
}
/* =========================================================
   RESPONSIVE - PAGES / COMPOSANTS
   ========================================================= */

@media (max-width: 900px) {

    .tpsf-cards-2,
    .tpsf-tennis-cards-2 {
        max-width: 100%;
    }

    .tpsf-split,
    .tpsf-split-reverse,
    .tpsf-cc-split,
    .tpsf-cc-split-reverse {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .tpsf-split-reverse .tpsf-split-text,
    .tpsf-cc-split-reverse .tpsf-cc-text {
        order: 2;
    }

    .tpsf-split-reverse .tpsf-split-image,
    .tpsf-cc-split-reverse .tpsf-cc-image {
        order: 1;
    }

    .tpsf-price-grid-5,
    .tpsf-cc-tarif-grid-5 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {

    .tpsf-page,
    .tpsf-tennis-page {
        padding: 20px 15px 50px;
    }

    .tpsf-intro,
    .tpsf-tennis-intro {
        margin: 30px auto 40px;
    }

    .tpsf-tennis-coach {
        grid-template-columns: 1fr;
    }

    .tpsf-tennis-coach-photo img {
        aspect-ratio: 1 / 1;
    }

    .tpsf-tennis-coach-content {
        padding: 30px 25px;
    }

    .tpsf-cards-3,
    .tpsf-tennis-cards,
    .tpsf-tennis-links {
        grid-template-columns: 1fr;
    }

    .tpsf-tennis-partners {
        padding: 35px 25px;
    }

    .tpsf-actu-page {
        padding: 25px 28px 40px;
    }

    .tpsf-actu-title {
        font-size: 25px;
    }

    .tpsf-actu-intro {
        font-size: 17px;
        margin-bottom: 30px;
    }

    .tpsf-actu-section-title {
        font-size: 20px;
        margin-top: 32px;
    }

    .tpsf-actu-page p,
    .tpsf-actu-page li {
        font-size: 16px;
    }

    .tpsf-actu-gallery {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

@media (max-width: 650px) {

    .tpsf-cards-2,
    .tpsf-tennis-cards-2 {
        grid-template-columns: 1fr;
    }

    .tpsf-cc-intro {
        margin: 40px auto 60px;
        text-align: left;
    }

    .tpsf-cc-intro h1 {
        font-size: 30px;
        text-align: center;
    }

    .tpsf-cc-section {
        margin: 65px 0;
    }

    .tpsf-section-title,
    .tpsf-cc-text h2 {
        font-size: 25px;
    }

    .tpsf-highlight,
    .tpsf-cc-quote {
        margin: 70px 0;
        padding: 25px;
    }

    .tpsf-highlight p,
    .tpsf-cc-quote p {
        font-size: 21px;
    }

    .tpsf-price-grid-3,
    .tpsf-price-grid-5,
    .tpsf-cc-tarif-grid-3,
    .tpsf-cc-tarif-grid-5 {
        grid-template-columns: 1fr;
    }

    .tpsf-price-card,
    .tpsf-cc-tarif {
        min-height: 0;
    }
}
/* Bouton Nathan : largeur ajustée au contenu */
.tpsf-tennis-coach-content .tpsf-button {
    align-self: flex-start;
}

.tpsf-cours-collectifs {
    padding-bottom: 20px;
}
.tpsf-cc-button {
    display: inline-block;
    padding: 15px 22px;
    background: var(--tpsf-blue);
    color: #ffffff !important;
    text-decoration: none;
    font-weight: 600;
    line-height: 0.4;
    transition: opacity .2s ease;
}
/* =========================================================
   PAGE EN CONSTRUCTION
   ========================================================= */

.tpsf-construction-hero img {
    display: block;
    width: 100%;
    height: auto;
}

.tpsf-construction-content {
    max-width: 850px;
    margin: 55px auto 40px;
    text-align: center;
}

.tpsf-construction-content h1 {
    margin: 0 0 18px;
    color: var(--tpsf-blue);
    font-size: 34px;
    font-weight: 600;
}

.tpsf-construction-content h2 {
    margin: 0 0 25px;
    color: var(--tpsf-blue);
    font-size: 20px;
    font-weight: 600;
}

.tpsf-construction-content p {
    margin: 0 auto 15px;
    font-size: 17px;
    line-height: 1.7;
}

.tpsf-construction-page {
    padding-bottom: 30px;
}
/* =========================================================
   NIVEAUX DE PADEL
   ========================================================= */

.tpsf-niveaux-hero img {
    display: block;
    width: 100%;
    height: auto;
}

.tpsf-niveaux-intro {
    max-width: 900px;
    margin: 45px auto 55px;
    text-align: center;
}

.tpsf-niveaux-intro p {
    margin: 0;
    font-size: 17px;
    line-height: 1.7;
}


/* ----- Un niveau ----- */

.tpsf-niveau-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 45px;
    margin: 0 0 60px;
}

.tpsf-niveau-reverse .tpsf-niveau-content {
    order: 2;
}

.tpsf-niveau-reverse .tpsf-niveau-photo {
    order: 1;
}


/* ----- Texte ----- */

.tpsf-niveau-content h2 {
    margin: 0 0 8px;
    color: var(--tpsf-blue);
    font-size: 25px;
    line-height: 1.25;
}

.tpsf-niveau-intro {
    margin: 0 0 24px;
    font-size: 17px;
    line-height: 1.5;
}

.tpsf-niveau-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.tpsf-niveau-columns h3 {
    margin: 0 0 10px;
    font-size: 16px;
    font-weight: 600;
}

.tpsf-niveau-columns ul {
    margin: 0;
    padding-left: 20px;
}

.tpsf-niveau-columns li {
    margin-bottom: 6px;
    line-height: 1.45;
}

.tpsf-niveau-classement {
    margin: 22px 0 0;
    color: var(--tpsf-blue);
    font-weight: 600;
}


/* ----- Photos : format natif ----- */

.tpsf-niveau-photo img {
    display: block;
    width: 100%;
    height: auto;
}


/* ----- Téléchargement PDF ----- */

.tpsf-niveaux-pdf {
    max-width: 700px;
    margin: 20px auto 30px;
    text-align: center;
}

.tpsf-niveaux-pdf-link {
    display: inline-flex;
    align-items: center;
    gap: 18px;
    padding: 18px 24px;
    color: var(--tpsf-blue);
    text-decoration: none;
}

.tpsf-niveaux-pdf-link img {
    width: 52px;
    height: auto;
    flex: 0 0 auto;
}

.tpsf-niveaux-pdf-link span {
    text-align: left;
}

.tpsf-niveaux-pdf-link strong {
    display: block;
    margin-bottom: 4px;
    font-size: 17px;
}

.tpsf-niveaux-pdf-link small {
    display: block;
    color: var(--tpsf-text);
    font-size: 14px;
    line-height: 1.4;
}

.tpsf-niveaux-pdf-link:hover {
    opacity: .8;
}


/* ----- Mobile ----- */

@media (max-width: 768px) {

    .tpsf-niveaux-intro {
        margin: 30px auto 40px;
    }

    .tpsf-niveau-row {
        display: block;
        margin-bottom: 45px;
    }

    .tpsf-niveau-photo {
        display: none;
    }

    .tpsf-niveau-columns {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .tpsf-niveau-content h2 {
        font-size: 22px;
    }

    .tpsf-niveaux-pdf-link {
        padding-left: 0;
        padding-right: 0;
    }
}
/* =====================================================
   LIGHTBOX - AFFICHES À VENIR
   ===================================================== */

.tpsf-lightbox {
    position: fixed;
    inset: 0;
    z-index: 99999;

    display: none;
    align-items: center;
    justify-content: center;

    padding: 30px;
    background: rgba(0, 0, 0, 0.88);
}

.tpsf-lightbox.is-open {
    display: flex;
}

.tpsf-lightbox img {
    display: block;
    max-width: 95vw;
    max-height: 92vh;
    width: auto;
    height: auto;
    object-fit: contain;
    box-shadow: 0 8px 35px rgba(0, 0, 0, 0.45);
}

.tpsf-lightbox-close {
    position: absolute;
    top: 15px;
    right: 25px;

    border: 0;
    padding: 0;
    background: transparent;

    color: #fff;
    font-size: 48px;
    font-weight: 300;
    line-height: 1;
    cursor: pointer;
}

.tpsf-lightbox-close:hover {
    opacity: 0.7;
}

body.tpsf-lightbox-active {
    overflow: hidden;
}

.tpsf-home-avenir-item .tpsf-avenir-lightbox {
    cursor: zoom-in;
}
/* =====================================================
   PAGE COMPÉTITION
   ===================================================== */


/* TENNIS / PADEL - HAUT DE PAGE */

.tpsf-competition-entrees {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
}

.tpsf-competition-entrees-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.tpsf-competition-entree {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 9;
}

.tpsf-competition-entree img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.tpsf-competition-entree span {
    position: absolute;
    inset: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #fff;
    font-size: 34px;
    font-weight: 700;
    letter-spacing: 2px;

    background: rgba(0, 0, 0, 0.18);
}

.tpsf-competition-entree:hover img {
    transform: scale(1.025);
}


/* INTRODUCTION */

.tpsf-competition-intro {
    padding-top: 45px;
    padding-bottom: 50px;
}

.tpsf-competition-intro h2 {
    margin-bottom: 18px;
}


/* MOBILE */

@media (max-width: 768px) {

    .tpsf-competition-entrees {
        padding: 0 20px;
    }

    .tpsf-competition-entrees-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .tpsf-competition-entree span {
        font-size: 28px;
    }

}
/* =====================================================
   COMPÉTITION - SECTIONS TENNIS / PADEL
   ===================================================== */

.tpsf-competition-sport {
    max-width: 1200px;
    margin: 30px auto 70px;
    padding: 0 30px;

    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 55px;
    align-items: center;
}

.tpsf-competition-sport-image img {
    display: block;
    width: 100%;
    height: auto;
}

.tpsf-competition-sport-content {
    text-align: left;
}

.tpsf-competition-label {
    display: inline-block;
    margin-bottom: 10px;

    color: #287fbd;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 1.5px;
}

.tpsf-competition-sport-content h2 {
    margin: 0 0 20px;

    font-size: 30px;
    line-height: 1.2;
}

.tpsf-competition-sport-content p {
    margin: 0 0 28px;
    line-height: 1.7;
}


/* ACCÈS PRINCIPAUX */

.tpsf-competition-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tpsf-competition-links-main {
    margin-bottom: 22px;
}

.tpsf-competition-links-main a {
    display: inline-block;
    padding: 10px 15px;

    border: 1px solid #287fbd;

    color: #287fbd;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.tpsf-competition-links-main a:hover {
    color: #fff;
    background: #287fbd;
}


/* ACCÈS SECONDAIRES */

.tpsf-competition-links-secondary {
    gap: 0;
}

.tpsf-competition-links-secondary a {
    color: #555;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

.tpsf-competition-links-secondary a:not(:last-child)::after {
    content: " · ";
    margin: 0 8px;
    color: #999;
}

.tpsf-competition-links-secondary a:hover {
    color: #287fbd;
}


/* MOBILE */

@media (max-width: 768px) {

    .tpsf-competition-sport,
    .tpsf-competition-sport-reverse {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-bottom: 55px;
        padding: 0 20px;
    }

    .tpsf-competition-sport-reverse .tpsf-competition-sport-content {
        order: 2;
    }

    .tpsf-competition-sport-reverse .tpsf-competition-sport-image {
        order: 1;
    }

    .tpsf-competition-sport-content h2 {
        font-size: 25px;
    }

}
/* =====================================================
   COMPÉTITION - À VENIR
   ===================================================== */

.tpsf-competition-avenir {
    max-width: 1200px;
    margin: 85px auto 70px;
    padding: 0 30px;
}

.tpsf-competition-avenir > h2 {
    margin-bottom: 40px;
    text-align: center;
}

.tpsf-competition-avenir-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    align-items: start;
}

.tpsf-competition-avenir-colonne > h3 {
    margin: 0 0 25px;
    padding-bottom: 10px;

    border-bottom: 2px solid #287fbd;

    color: #287fbd;
    font-size: 22px;
    letter-spacing: 1px;
}

.tpsf-competition-avenir-affiches {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    align-items: start;
}

.tpsf-competition-avenir-item {
    min-width: 0;
}

.tpsf-competition-avenir-item a {
    display: block;
    cursor: zoom-in;
}

.tpsf-competition-avenir-item img {
    display: block;
    width: 100%;
    height: auto;
}

.tpsf-competition-avenir-vide {
    grid-column: 1 / -1;
    margin: 0;

    color: #777;
    font-size: 14px;
    font-style: italic;
}


/* MOBILE */

@media (max-width: 768px) {

    .tpsf-competition-avenir {
        margin-top: 60px;
        padding: 0 20px;
    }

    .tpsf-competition-avenir-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .tpsf-competition-avenir-affiches {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}
/* =====================================================
   COMPÉTITION - ACTUALITÉS
   ===================================================== */

.tpsf-competition-actualites {
    max-width: 1200px;
    margin: 85px auto 5px;
    padding: 0 30px;
}

.tpsf-competition-actualites-header {
    max-width: 800px;
    margin: 0 auto 40px;
    text-align: center;
}

.tpsf-competition-actualites-header h2 {
    margin: 0 0 15px;
}

.tpsf-competition-actualites-header p {
    margin: 0;
    line-height: 1.7;
}

.tpsf-competition-actualites-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.tpsf-competition-actu {
    min-width: 0;
}

.tpsf-competition-actu-image {
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 9;
}

.tpsf-competition-actu-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.tpsf-competition-actu-image:hover img {
    transform: scale(1.025);
}

.tpsf-competition-actu-content {
    padding-top: 18px;
}

.tpsf-competition-actu-label {
    display: inline-block;
    margin-bottom: 8px;

    color: #287fbd;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.4px;
}

.tpsf-competition-actu h3 {
    margin: 0 0 12px;
    font-size: 20px;
    line-height: 1.3;
}

.tpsf-competition-actu h3 a {
    color: inherit;
    text-decoration: none;
}

.tpsf-competition-actu h3 a:hover {
    color: #287fbd;
}

.tpsf-competition-actu-extrait {
    color: #555;
    font-size: 14px;
    line-height: 1.6;
}

.tpsf-competition-actualites-footer {
    margin-top: 35px;
    text-align: center;
}

.tpsf-competition-actualites-footer a {
    display: inline-block;
    padding: 10px 16px;

    border: 1px solid #287fbd;

    color: #287fbd;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

.tpsf-competition-actualites-footer a:hover {
    color: #fff;
    background: #287fbd;
}
.tpsf-competition-page {
    padding-bottom: 15px;
}

/* MOBILE */

@media (max-width: 768px) {

    .tpsf-competition-actualites {
        margin-top: 60px;
        padding: 0 20px;
    }

    .tpsf-competition-actualites-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
	 }
	/* =====================================================
   TOURNOI D'AUTOMNE TENNIS
   ===================================================== */

.tpsf-tournoi-automne-page {
    padding-bottom: 15px;
}


/* PHOTO 16/9 */

.tpsf-tournoi-hero {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.tpsf-tournoi-hero img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* TITRE */

.tpsf-tournoi-title {
    margin: 35px auto 40px;
    padding: 0;
}


/* AFFICHE + INFORMATIONS */

.tpsf-tournoi-presentation {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    gap: 40px;
    align-items: start;

    margin: 0 auto 70px;
}

.tpsf-tournoi-affiche img {
    display: block;
    width: 100%;
    height: auto;
}


/* COLONNE INFORMATIONS */

.tpsf-tournoi-infos h2 {
    margin: 0 0 12px;

    font-size: 30px;
    line-height: 1.2;
}

.tpsf-tournoi-organisateur {
    margin-bottom: 28px;

    color: #555;
    font-size: 14px;
    line-height: 1.6;
}

.tpsf-tournoi-organisateur strong {
    color: #287fbd;
    font-size: 16px;
}


/* INFORMATIONS PRINCIPALES */

.tpsf-tournoi-infos-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 30px;

    border-top: 1px solid #ddd;
}


.tpsf-tournoi-info {
    display: flex;
    flex-direction: column;
    gap: 3px;

    padding: 14px 0;

    border-bottom: 1px solid #ddd;
}

.tpsf-tournoi-info-label {
    color: #287fbd;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.3px;
}

.tpsf-tournoi-info > span:not(.tpsf-tournoi-info-label) {
    font-size: 15px;
    font-weight: 600;
}

.tpsf-tournoi-info small {
    margin-top: 3px;

    color: #666;
    font-size: 12px;
    line-height: 1.4;
}

.tpsf-tournoi-info-full {
    margin-top: 0;
}


/* CONTACT */

.tpsf-tournoi-contact {
    display: flex;
    flex-wrap: wrap;
    gap: 5px 18px;

    padding: 14px 0;

    border-bottom: 1px solid #ddd;
}

.tpsf-tournoi-contact .tpsf-tournoi-info-label {
    flex-basis: 100%;
}

.tpsf-tournoi-contact a {
    color: #333;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.tpsf-tournoi-contact a:hover {
    color: #287fbd;
}


/* ÉPREUVES */

.tpsf-tournoi-epreuves {
    margin-top: 30px;
}

.tpsf-tournoi-epreuves > h3 {
    margin: 0 0 18px;

    color: #287fbd;
    font-size: 18px;
    letter-spacing: 1px;
}

.tpsf-tournoi-epreuves-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 35px;
}

.tpsf-tournoi-epreuves h4 {
    margin: 0 0 8px;

    font-size: 13px;
    letter-spacing: 1px;
}

.tpsf-tournoi-epreuves p {
    margin: 3px 0;

    color: #555;
    font-size: 14px;
}

.tpsf-tournoi-doubles {
    display: flex;
    gap: 15px;

    margin-top: 18px;
    padding-top: 15px;

    border-top: 1px solid #ddd;

    font-size: 14px;
}

.tpsf-tournoi-doubles strong {
    color: #287fbd;
    font-size: 12px;
    letter-spacing: 1px;
}


/* BOUTON TEN'UP */

.tpsf-tournoi-inscription {
    display: inline-block;

    margin-top: 30px;
    padding: 12px 20px;

    border: 1px solid #287fbd;

    color: #287fbd;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-decoration: none;

    transition: background 0.2s ease, color 0.2s ease;
}

.tpsf-tournoi-inscription:hover {
    color: #fff;
    background: #287fbd;
}


/* MOBILE */

@media (max-width: 768px) {

    .tpsf-tournoi-presentation {
        grid-template-columns: 1fr;
        gap: 35px;
        margin-bottom: 55px;
    }

    .tpsf-tournoi-affiche {
        max-width: 420px;
        margin: 0 auto;
    }

    .tpsf-tournoi-infos h2 {
        font-size: 25px;
    }

    .tpsf-tournoi-infos-grid {
        grid-template-columns: 1fr;
    }

}
/* =====================================================
   PRÉVISIONS D'ENTRÉE - TOURNOI D'AUTOMNE
   ===================================================== */

.tpsf-tournoi-previsions {
    margin: 80px auto 70px;
}

.tpsf-tournoi-previsions > h2 {
    margin: 0 0 15px;
    text-align: center;
}

.tpsf-tournoi-previsions-intro {
    max-width: 800px;
    margin: 0 auto 45px;
    text-align: center;
    line-height: 1.7;
}


/* TABLEAUX */

.tpsf-previsions-tableau {
    margin-bottom: 45px;
}

.tpsf-previsions-tableau h3 {
    margin: 0 0 15px;
    padding-bottom: 10px;

    border-bottom: 2px solid #287fbd;

    color: #287fbd;
    font-size: 20px;
    letter-spacing: 1px;
}


/* SCROLL HORIZONTAL SI NÉCESSAIRE */

.tpsf-previsions-scroll {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
}


/* TABLE */

.tpsf-previsions-tableau table {
    width: max-content;
    min-width: 100%;

    border-collapse: separate;
    border-spacing: 0;
    table-layout: auto;
}

.tpsf-previsions-tableau th:not(.tpsf-previsions-categorie),
.tpsf-previsions-tableau td {
    min-width: 70px;
    width: 70px;
}

.tpsf-previsions-categorie {
    position: sticky;
    left: 0;
    z-index: 2;

    width: 130px;
    min-width: 130px;
    max-width: 130px;
}

.tpsf-previsions-tableau thead .tpsf-previsions-categorie {
    z-index: 3;
}

.tpsf-previsions-tableau th,
.tpsf-previsions-tableau td {
    padding: 12px 8px;

    border: 1px solid #ddd;

    text-align: center;
    vertical-align: middle;
    white-space: nowrap;
}


/* DATES */

.tpsf-previsions-tableau thead th {
    background: #f4f4f4;

    font-size: 13px;
    font-weight: 700;
}


/* PREMIÈRE COLONNE */

.tpsf-previsions-categorie {
    width: 105px;

    background: #f4f4f4;

    font-size: 13px;
    font-weight: 700;
    text-align: left !important;
}


/* CLASSEMENTS */

.tpsf-previsions-tableau td {
    font-size: 14px;
    font-weight: 600;
}
.tpsf-previsions-tableau {
    width: 100%;
    min-width: 0;
    overflow: hidden;
}
.tpsf-tournoi-automne-page {
    min-width: 0;
    width: 100%;
    overflow: hidden;
}

.tpsf-tournoi-previsions {
    min-width: 0;
    width: 100%;
    max-width: 100%;
}
/* MOBILE */

@media (max-width: 768px) {

    .tpsf-tournoi-previsions {
        margin-top: 60px;
    }

    .tpsf-previsions-tableau table {
        min-width: 700px;
    }

}
/* Journées Interclubs Seniors+ */

.tpsf-previsions-tableau .tpsf-jour-interclubs {
    background: #e8f2f8;
}

.tpsf-previsions-tableau thead .tpsf-jour-interclubs {
    background: #dcecf5;
}

.tpsf-date {
    display: block;
}

.tpsf-interclubs-label {
    display: block;
    margin-top: 4px;

    color: #287fbd;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.5px;
}
/* =========================================================
   STAGES TENNIS
   ========================================================= */

.tpsf-stages-page {
	max-width: 1400px;
	margin: 0 auto;
	background: #f7f4ee;
	padding-bottom: 80px;
}


/* PHOTO 16/9 */

.tpsf-stage-hero {
	max-width: 1200px;
	margin: 0 auto;
}

.tpsf-stage-hero img {
	display: block;
	width: 100%;
	height: auto;
}


/* INTRODUCTION */

.tpsf-stage-intro {
	max-width: 1050px;
	margin: 65px auto 75px;
	padding: 0 30px;
	text-align: center;
}

.tpsf-stage-intro h1 {
	margin: 0 0 35px;
	color: #1683c5;
	font-size: 40px;
	font-weight: 600;
	line-height: 1.2;
}

.tpsf-stage-intro-texte {
	max-width: 900px;
	margin: 0 auto;
}

.tpsf-stage-intro p {
	margin: 0 0 22px;
	font-size: 19px;
	line-height: 1.75;
}


/* BLOCS PHOTO + TEXTE */

.tpsf-stage-bloc {
	display: flex;
	align-items: center;
	gap: 60px;
	max-width: 1200px;
	margin: 0 auto 85px;
	padding: 0 30px;
}

.tpsf-stage-photo,
.tpsf-stage-texte {
	flex: 1 1 0;
	min-width: 0;
}

.tpsf-stage-photo img {
	display: block;
	width: 100%;
	height: auto;
}

.tpsf-stage-texte h2 {
	margin: 0 0 30px;
	color: #1683c5;
	font-size: 32px;
	font-weight: 500;
	line-height: 1.25;
}

.tpsf-stage-texte p {
	margin: 0 0 22px;
	font-size: 18px;
	line-height: 1.7;
}


/* DEUXIÈME BLOC */

.tpsf-stage-bloc-inverse {
	margin-top: 20px;
}


/* PROCHAINS STAGES */

.tpsf-stages-prochains {
	max-width: 1200px;
	margin: 100px auto 0;
	padding: 0 30px;
}

.tpsf-stages-prochains > h2 {
	margin: 0 0 45px;
	padding-bottom: 14px;
	border-bottom: 2px solid #1683c5;
	color: #1683c5;
	font-size: 30px;
	font-weight: 500;
}

.tpsf-stages-affiches {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 35px;
}

.tpsf-stages-affiches img {
	display: block;
	width: 100%;
	height: auto;
}


/* =========================================================
   TABLETTE / MOBILE
   ========================================================= */

@media (max-width: 900px) {

	.tpsf-stage-intro {
		margin: 45px auto 55px;
	}

	.tpsf-stage-intro h1 {
		font-size: 32px;
	}

	.tpsf-stage-bloc,
	.tpsf-stage-bloc-inverse {
		flex-direction: column;
		gap: 35px;
		margin-bottom: 60px;
	}

	.tpsf-stage-bloc-inverse .tpsf-stage-texte {
		order: 2;
	}

	.tpsf-stage-bloc-inverse .tpsf-stage-photo {
		order: 1;
	}

	.tpsf-stage-texte h2 {
		font-size: 27px;
	}

	.tpsf-stages-affiches {
		grid-template-columns: 1fr;
		max-width: 520px;
		margin: 0 auto;
	}

}


@media (max-width: 600px) {

	.tpsf-stage-intro,
	.tpsf-stage-bloc,
	.tpsf-stage-bloc-inverse,
	.tpsf-stages-prochains {
		padding-left: 20px;
		padding-right: 20px;
	}

	.tpsf-stage-intro h1 {
		font-size: 28px;
	}

	.tpsf-stage-intro p,
	.tpsf-stage-texte p {
		font-size: 17px;
	}

	.tpsf-stage-texte h2 {
		font-size: 25px;
	}

	.tpsf-stages-prochains {
		margin-top: 70px;
	}

}
/* =========================================================
   AFFICHES DES STAGES
   ========================================================= */

.tpsf-stages-prochains {
    margin-top: 70px;
    text-align: center;
}

.tpsf-stages-prochains > h2 {
    margin-bottom: 40px;
}

.tpsf-stages-affiches {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.tpsf-stage-affiche {
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.tpsf-stage-affiche img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
}


/* TABLETTE */

@media (max-width: 900px) {

    .tpsf-stages-affiches {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

}


/* MOBILE */

@media (max-width: 600px) {

    .tpsf-stages-affiches {
        grid-template-columns: 1fr;
        gap: 30px;
    }

}
/* =========================================================
   HOME - STAGES DES VACANCES
   ========================================================= */

.tpsf-home-stages {
    max-width: 1200px;
    margin: 70px auto;
    text-align: center;
}

.tpsf-home-stages h2 {
    margin: 0 0 35px;
    color: var(--tpsf-blue);
    font-size: 30px;
	    font-weight: 600;
    line-height: 1.25;
}

.tpsf-home-stages-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.tpsf-home-stage img {
    display: block;
    width: 100%;
    height: auto;
}


/* TABLETTE */

@media (max-width: 900px) {

    .tpsf-home-stages-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

}


/* MOBILE */

@media (max-width: 600px) {

    .tpsf-home-stages {
        margin: 50px auto;
        padding-left: 20px;
        padding-right: 20px;
    }

    .tpsf-home-stages-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

}
/* =========================================================
   PAGE ÉQUIPE TENNIS
   ========================================================= */

.tpsf-equipe-page {
    width: 100%;
}

.tpsf-equipe-hero {
    width: 100%;
    overflow: hidden;
}

.tpsf-equipe-hero img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.tpsf-equipe-intro,
.tpsf-equipe-joueuses {
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 30px;
    padding-right: 30px;
}

.tpsf-equipe-intro {
    padding-top: 55px;
    padding-bottom: 55px;
    text-align: center;
}

.tpsf-equipe-intro h1 {
    margin: 0 0 12px;
    color: var(--tpsf-blue);
    font-size: 38px;
    font-weight: 600;
}

.tpsf-equipe-championnat {
    margin: 0;
    font-size: 20px;
}

.tpsf-equipe-joueuses {
    padding-bottom: 70px;
}

.tpsf-equipe-joueuses > h2 {
    margin: 0 0 35px;
    color: var(--tpsf-blue);
    font-size: 30px;
    font-weight: 600;
    text-align: center;
}

.tpsf-joueuses-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
}

.tpsf-joueuse-card {
    overflow: hidden;
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.10);
}

.tpsf-joueuse-photo {
    aspect-ratio: 4 / 5;
    overflow: hidden;
}

.tpsf-joueuse-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tpsf-joueuse-infos {
    position: relative;
    padding: 18px;
}

.tpsf-joueuse-infos h3 {
    margin: 0 0 8px;
    color: var(--tpsf-blue);
    font-size: 19px;
    font-weight: 600;
}

.tpsf-joueuse-infos p {
    margin: 0;
    font-size: 16px;
}

.tpsf-joueuse-classement {
    display: inline-block;
    margin-top: 12px;
    padding: 4px 11px;
    background: var(--tpsf-blue);
    color: #fff;
    border-radius: 20px;
    font-weight: 600;
}

.tpsf-joueuse-mention {
    margin-top: 12px;
    font-size: 14px;
    font-weight: 600;
}

/* TABLETTE */

@media (max-width: 900px) {

    .tpsf-joueuses-grid {
        grid-template-columns: repeat(3, 1fr);
    }

}

/* MOBILE */

@media (max-width: 600px) {

    .tpsf-equipe-intro,
    .tpsf-equipe-joueuses {
        padding-left: 20px;
        padding-right: 20px;
    }

    .tpsf-equipe-intro h1 {
        font-size: 28px;
    }

    .tpsf-joueuses-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .tpsf-joueuse-infos {
        padding: 12px;
    }

    .tpsf-joueuse-infos h3 {
        font-size: 16px;
    }

}
/* =====================================================
   RENCONTRES
   ===================================================== */

.tpsf-equipe-rencontres {
	margin-top: 80px;
}

.tpsf-equipe-rencontres h2,
.tpsf-equipe-classement h2 {
	margin: 0 0 35px;
	color: var(--tpsf-blue);
	font-size: 30px;
	font-weight: 600;
	text-align: center;
}

.tpsf-rencontres-liste {
	max-width: 1080px;
	margin: 0 auto;
	display: grid;
	gap: 16px;
}

.tpsf-rencontre-card {
	display: grid;
	grid-template-columns: 220px 1fr;
	align-items: center;
	min-height: 82px;
	background: #fff;
	border-radius: 6px;
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
	overflow: hidden;
}

.tpsf-rencontre-date {
	align-self: stretch;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 18px;
	background: var(--tpsf-blue);
	color: #fff;
	font-weight: 600;
	text-align: center;
}

.tpsf-rencontre-equipes {
	display: grid;
	grid-template-columns: 1fr 70px 1fr;
	align-items: center;
	padding: 20px 30px;
}

.tpsf-rencontre-club {
	font-size: 19px;
	font-weight: 600;
	text-align: center;
}

.tpsf-rencontre-vs {
	color: var(--tpsf-blue);
	font-size: 15px;
	font-weight: 600;
	text-align: center;
}

.tpsf-rencontre-exempte {
	padding: 20px 30px;
	color: var(--tpsf-blue);
	font-size: 18px;
	font-weight: 600;
	text-align: center;
}


/* =====================================================
   CLASSEMENT
   ===================================================== */

.tpsf-equipe-classement {
	margin-top: 70px;
	text-align: center;
}

.tpsf-equipe-classement p {
	max-width: 700px;
	margin: 0 auto;
	font-size: 17px;
	line-height: 1.6;
}


/* =====================================================
   MOBILE
   ===================================================== */

@media (max-width: 700px) {

	.tpsf-rencontre-card {
		grid-template-columns: 1fr;
	}

	.tpsf-rencontre-date {
		padding: 12px 15px;
	}

	.tpsf-rencontre-equipes {
		grid-template-columns: 1fr;
		gap: 8px;
		padding: 20px;
	}

	.tpsf-rencontre-vs {
		font-size: 13px;
	}

}
/* =====================================================
   RENCONTRES
   ===================================================== */

.tpsf-equipe-rencontres {
	margin-top: 80px;
}

.tpsf-equipe-rencontres h2,
.tpsf-equipe-classement h2 {
	margin: 0 0 35px;
	color: var(--tpsf-blue);
	font-size: 30px;
	font-weight: 600;
	text-align: center;
}


/* Liste */

.tpsf-rencontres-liste {
	max-width: 1080px;
	margin: 0 auto;
	display: grid;
	gap: 16px;
}


/* =====================================================
   CARTE RENCONTRE
   ===================================================== */

.tpsf-rencontre-card {
	display: grid;
	grid-template-columns: 220px 1fr;
	background: #fff;
	border-radius: 6px;
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
	overflow: hidden;
}


/* Date */

.tpsf-rencontre-date {
	display: flex;
	align-items: center;
	justify-content: center;
	align-self: stretch;
	padding: 18px;
	background: var(--tpsf-blue);
	color: #fff;
	font-weight: 600;
	text-align: center;
}


/* Clubs + score général */

.tpsf-rencontre-equipes {
	display: grid;
	grid-template-columns: 1fr 90px 1fr;
	align-items: center;
	min-height: 82px;
	padding: 20px 30px;
}

.tpsf-rencontre-club {
	font-size: 19px;
	font-weight: 600;
	text-align: center;
}

.tpsf-rencontre-vs {
	color: var(--tpsf-blue);
	font-size: 15px;
	font-weight: 600;
	text-align: center;
}

.tpsf-rencontre-score-general {
	color: var(--tpsf-blue);
	font-size: 19px;
	font-weight: 700;
}


/* Exempte */

.tpsf-rencontre-exempte {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 82px;
	padding: 20px 30px;
	color: var(--tpsf-blue);
	font-size: 18px;
	font-weight: 600;
	text-align: center;
}


/* =====================================================
   DÉTAIL DES RÉSULTATS
   ===================================================== */

.tpsf-rencontre-resultats {
	grid-column: 1 / -1;
	border-top: 1px solid #e6e6e6;
	padding: 6px 28px 10px;
	background: #fff;
}


/* Une ligne = un match */

.tpsf-resultat-ligne {
	display: grid;
	grid-template-columns: 105px minmax(0, 1fr) 150px minmax(0, 1fr);
	align-items: center;
	min-height: 52px;
	padding: 9px 0;
	border-bottom: 1px solid #eeeeee;
}

.tpsf-resultat-ligne:last-child {
	border-bottom: 0;
}


/* Simple 1 / Simple 2 / Simple 3 / Double */

.tpsf-resultat-type {
	color: var(--tpsf-blue);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.03em;
}


/* Joueuse TPSF */

.tpsf-resultat-tpsf {
	padding: 0 18px;
	font-size: 16px;
	font-weight: 600;
	text-align: center;
}


/* Score individuel */

.tpsf-resultat-score {
	color: var(--tpsf-blue);
	font-size: 16px;
	font-weight: 700;
	text-align: center;
	white-space: nowrap;
}


/* Adversaire */

.tpsf-resultat-adversaire {
	padding: 0 18px;
	font-size: 16px;
	font-weight: 500;
	text-align: center;
}


/* =====================================================
   MOBILE
   ===================================================== */

@media (max-width: 700px) {

	.tpsf-equipe-rencontres {
		margin-top: 55px;
	}

	.tpsf-equipe-rencontres h2,
	.tpsf-equipe-classement h2 {
		margin-bottom: 25px;
		font-size: 25px;
	}


	/* Carte */

	.tpsf-rencontre-card {
		grid-template-columns: 1fr;
	}


	/* Date */

	.tpsf-rencontre-date {
		padding: 12px 15px;
	}


	/* Rencontre */

	.tpsf-rencontre-equipes {
		grid-template-columns: 1fr 60px 1fr;
		min-height: auto;
		padding: 18px 12px;
	}

	.tpsf-rencontre-club {
		font-size: 15px;
	}

	.tpsf-rencontre-score-general {
		font-size: 17px;
	}

	.tpsf-rencontre-vs {
		font-size: 13px;
	}


	/* Exempte */

	.tpsf-rencontre-exempte {
		min-height: 60px;
		padding: 15px;
	}


	/* Résultats */

	.tpsf-rencontre-resultats {
		grid-column: auto;
		padding: 5px 15px 10px;
	}

	.tpsf-resultat-ligne {
		grid-template-columns: 1fr;
		gap: 4px;
		padding: 14px 0;
		text-align: center;
	}

	.tpsf-resultat-type {
		margin-bottom: 4px;
		text-align: center;
	}

	.tpsf-resultat-tpsf,
	.tpsf-resultat-adversaire {
		padding: 0;
		text-align: center;
	}

	.tpsf-resultat-score {
		margin: 3px 0;
		font-size: 17px;
	}

}
/* =========================================================
   PAGE NOS ÉQUIPES – CARTES COMPACTES
   ========================================================= */
.tpsf-nos-equipes-section {
    max-width: 900px;
    margin: 0 auto 45px;
}
.tpsf-nos-equipes-section > h2 {
    margin: 0 0 24px;
    color: var(--tpsf-blue);
    font-size: 26px;
    font-weight: 600;
    text-align: center;
}
.tpsf-nos-equipes-grid {
    gap: 16px;
}
.tpsf-nos-equipes-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 22px;
    text-align: left;
    color: var(--tpsf-text);
    font-weight: 600;
}
.tpsf-nos-equipes-arrow {
    color: var(--tpsf-blue);
    font-size: 26px;
    line-height: 1;
}
@media (max-width: 650px) {
    .tpsf-nos-equipes-section { margin-bottom: 35px; }
    .tpsf-nos-equipes-card { padding: 16px 18px; }
}
/* TPSF — Page Tarifs et inscriptions uniquement */
.tpsf-tarifs-wrapper {max-width:1200px; padding-top:45px;}
.tpsf-tarifs-page {color:var(--tpsf-text,#222);}
.tpsf-tarifs-page > h1 {color:var(--tpsf-blue,#1f78bd);text-align:center;font-size:clamp(27px,3vw,36px);margin:0 0 50px;font-weight:650;}
.tpsf-tarifs-section-title {color:var(--tpsf-blue,#1f78bd);text-align:center;font-size:clamp(23px,2.3vw,29px);line-height:1.3;margin:62px 0 28px;font-weight:650;}
.tpsf-tarifs-grid {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px;}
.tpsf-tarifs-course-row {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;margin-bottom:24px;}
.tpsf-tarifs-card {background:#fff;border:1px solid #e7e8e8;border-radius:13px;overflow:hidden;box-shadow:0 7px 22px rgba(20,37,50,.065);min-width:0;}
.tpsf-tarifs-card > h2,.tpsf-tarifs-card > h3 {background:var(--tpsf-blue,#1f78bd);color:white;text-align:center;margin:0;padding:16px 12px;font-size:20px;line-height:1.25;font-weight:700;}
.tpsf-tarifs-card.padel > h2,.tpsf-tarifs-card.padel > h3 {background:#1bada8;}
.tpsf-tarifs-card.combo > h2 {background:#dfa900;}
.tpsf-tarifs-line {display:flex;align-items:baseline;justify-content:space-between;gap:16px;padding:15px 19px;border-bottom:1px solid #eaeaea;font-size:15px;line-height:1.4;}
.tpsf-tarifs-line:last-child {border-bottom:0;}
.tpsf-tarifs-line > span:first-child {min-width:0;}
.tpsf-tarifs-line small {display:block;font-size:13px;color:#656565;margin-top:3px;line-height:1.4;}
.tpsf-tarifs-line .tpsf-tarifs-bold {font-size:19px;font-weight:750;white-space:nowrap;color:#172d3d;}
.tpsf-tarifs-information,.tpsf-tarifs-notes,.tpsf-tarifs-docs {margin-top:48px;}
.tpsf-tarifs-information p,.tpsf-tarifs-notes li {font-size:16px;line-height:1.7;}
.tpsf-tarifs-notes {background:var(--tpsf-cream,#f7f4ee);padding:22px 30px;border-radius:10px;}
.tpsf-tarifs-notes ul {margin-bottom:0;}
.tpsf-tarifs-adresse {padding:18px 24px;border-left:4px solid var(--tpsf-blue,#1f78bd);background:var(--tpsf-cream,#f7f4ee);margin:18px 0;line-height:1.7;}
.tpsf-tarifs-docs-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px;}
.tpsf-tarifs-doc {display:flex;align-items:center;gap:12px;padding:17px;border:1px solid #e5e5e5;border-radius:9px;background:#fff;text-decoration:none;flex-wrap:wrap;}
.tpsf-tarifs-doc-icon {width:35px;height:auto;}
.tpsf-tarifs-doc-title {font-weight:700;color:var(--tpsf-blue,#1f78bd);}
.tpsf-tarifs-doc-subtitle {font-size:13px;color:#555;}
@media(max-width:850px){.tpsf-tarifs-grid {grid-template-columns:1fr;}.tpsf-tarifs-course-row {grid-template-columns:1fr;}.tpsf-tarifs-wrapper {padding-left:20px;padding-right:20px;}}
@media(max-width:560px){.tpsf-tarifs-line {padding:13px 12px;gap:8px;font-size:14px;}.tpsf-tarifs-line .tpsf-tarifs-bold {font-size:17px;}.tpsf-tarifs-docs-grid {grid-template-columns:1fr;}}




/* ==========================================
   TOURNOI D'AUTOMNE - PROGRAMME & RÉSULTATS
   ========================================== */

.tpsf-tournoi-documents {
    margin: 55px auto;
    max-width: 1200px;
    padding: 0 20px;
}

.tpsf-tournoi-documents h2 {
    text-align: center;
    margin-bottom: 30px;
    color: var(--tpsf-blue);
    font-weight: 600;
}

.tpsf-tournoi-documents-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 25px;
}

/* Un seul document : centré */
.tpsf-tournoi-document:only-child {
    grid-column: 1 / -1;
    width: 100%;
    max-width: 550px;
    justify-self: center;
}

.tpsf-tournoi-document {
    background: #f7f7f7;
    border: 1px solid #e2e2e2;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    box-sizing: border-box;
}

.tpsf-tournoi-document h3 {
    margin: 0 0 15px;
    color: var(--tpsf-blue);
    font-weight: 600;
}

.tpsf-tournoi-document p {
    margin-bottom: 25px;
}

/* Bouton : bleu officiel TPSF */
.tpsf-tournoi-document-btn {
    display: inline-block;
    padding: 13px 22px;
    background: var(--tpsf-blue);
    color: #fff !important;
    text-decoration: none;
    font-weight: 600;
    line-height: 1.3;
    transition: opacity .2s ease;
}

.tpsf-tournoi-document-btn:hover,
.tpsf-tournoi-document-btn:focus {
    color: #fff !important;
    opacity: .85;
}

@media (max-width: 768px) {
    .tpsf-tournoi-documents-grid {
        grid-template-columns: 1fr;
    }

    .tpsf-tournoi-document {
        padding: 22px 15px;
    }
}

/* ==========================================
   TPSF - PARTENAIRES COMMUNS
   ========================================== */

.tpsf-partenaires {
    max-width: 1100px;
    margin: 55px auto;
    padding: 0 20px;
    text-align: center;
}

.tpsf-partenaires h2 {
    margin: 0 0 30px;
    color: var(--tpsf-blue);
}

.tpsf-partenaires-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
}

.tpsf-partenaire {
    flex: 0 1 calc((100% - 75px) / 4);
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tpsf-partenaire img {
    display: block;
    width: 85%;
    height: auto;
    object-fit: contain;
}

@media (max-width: 650px) {
    .tpsf-partenaires {
        margin: 40px auto;
    }

    .tpsf-partenaires-grid {
        gap: 20px;
    }

    .tpsf-partenaire {
        flex-basis: calc((100% - 20px) / 2);
    }
}


