/* ==========================================================================
   Thème CTSPR - Club de tir sportif du pays romanais
   Couleurs tirées du logo du club (bleu, jaune) + bleu marine.
   Pour changer les couleurs, modifiez uniquement le bloc :root ci-dessous.
   ========================================================================== */

@font-face {
    font-family: "Barlow Condensed";
    src: url("../fonts/barlow-condensed-800.woff") format("woff");
    font-weight: 800; font-style: normal; font-display: swap;
}
@font-face {
    font-family: "Barlow Condensed";
    src: url("../fonts/barlow-condensed-800-italic.woff") format("woff");
    font-weight: 800; font-style: italic; font-display: swap;
}
@font-face {
    font-family: "Barlow Condensed";
    src: url("../fonts/barlow-condensed-600.woff") format("woff");
    font-weight: 600; font-style: normal; font-display: swap;
}

:root {
    --ct-bleu: #1039b5;          /* bleu du logo */
    --ct-bleu-vif: #2360f0;      /* bleu clair (dégradés, survols) */
    --ct-marine: #071a4a;        /* fond de l'en-tête, des bandeaux, du pied de page */
    --ct-marine-2: #0c2a75;      /* bleu marine plus clair */
    --ct-jaune: #e5f229;         /* jaune du logo (accent) */
    --ct-jaune-clair: #f4ff6b;   /* jaune au survol */
    --ct-fond: #eef2fb;          /* fond des pages */
    --ct-blanc: #ffffff;
    --ct-texte: #0d1b3d;
    --ct-texte-doux: #55607d;
    --ct-bordure: #d5ddf0;

    --ct-police: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --ct-titres: "Barlow Condensed", "Arial Narrow", Bahnschrift, system-ui, sans-serif;
    --ct-coupe: polygon(12px 0, 100% 0, calc(100% - 12px) 100%, 0 100%); /* forme "parallélogramme" des boutons */
}

/* ---------- Base ---------- */
body {
    font-family: var(--ct-police);
    color: var(--ct-texte);
    background: var(--ct-fond);
    line-height: 1.65;
}
a { color: var(--ct-bleu); text-underline-offset: 3px; }
a:hover, a:focus { color: var(--ct-bleu-vif); }

h1, h2, h3, h4 {
    font-family: var(--ct-titres);
    color: var(--ct-marine);
    line-height: 1.05;
    font-weight: 800;
}

/* ---------- Largeur générale ---------- */
.container.grid-lg { max-width: 1100px; }

/* ---------- En-tête ---------- */
body #header,
body.header-dark #header,
body.header-dark #header:not(.scrolled),
body.header-dark #header.scrolled {
    background: rgba(7, 26, 74, .94);
    -webkit-backdrop-filter: saturate(140%) blur(10px);
    backdrop-filter: saturate(140%) blur(10px);
    border-bottom: 0;
    box-shadow: 0 4px 24px rgba(3, 12, 40, .35);
}
#header::after {
    content: "";
    position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
    background: linear-gradient(90deg, var(--ct-bleu-vif), var(--ct-jaune) 50%, var(--ct-bleu-vif));
}

.ctspr-brand {
    display: inline-flex; align-items: center; gap: .8rem;
    color: #fff !important; text-decoration: none;
}
.ctspr-logo { height: 50px; width: 50px; transition: transform .35s ease, height .3s ease, width .3s ease; }
.ctspr-brand:hover .ctspr-logo { transform: rotate(-10deg) scale(1.08); }
body.header-fixed.header-animated #header.scrolled .ctspr-logo { height: 34px; width: 34px; }
.ctspr-brand-text { display: flex; flex-direction: column; line-height: 1; }
.ctspr-brand-text strong {
    font-family: var(--ct-titres); font-weight: 800; font-style: italic;
    font-size: 1.9rem; letter-spacing: .06em; color: #fff;
}
.ctspr-brand-text small {
    font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ct-jaune); margin-top: .15rem;
}
.ctspr-brand-text small { display: none; }

body #header .dropmenu ul li a,
body.header-dark #header .dropmenu ul li a {
    position: relative;
    font-family: var(--ct-titres); font-weight: 600;
    text-transform: uppercase; letter-spacing: .04em; font-size: .88rem;
    color: #dbe4fb !important; background: transparent; border: 0;
    padding: .45rem .42rem;
    transition: color .2s;
}
body #header .dropmenu ul li a::after {
    content: "";
    position: absolute; left: .42rem; right: .42rem; bottom: .05rem; height: 3px;
    background: var(--ct-jaune);
    transform: scaleX(0) skewX(-30deg); transform-origin: left; transition: transform .25s ease;
}
body #header .dropmenu ul li a:hover,
body #header .dropmenu ul li:not(:last-child).active > a,
body.header-dark #header .dropmenu ul li:not(:last-child) a.active { color: #fff !important; background: transparent; }
body #header .dropmenu ul li a:hover::after,
body #header .dropmenu ul li.active > a::after { transform: scaleX(1) skewX(-30deg); }

/* "Contact" : bouton d'action dans le menu */
body #header .dropmenu > ul > li:last-child > a,
body.header-dark #header .dropmenu > ul > li:last-child > a,
body.header-dark #header .dropmenu > ul > li:last-child > a.active,
body #header .dropmenu > ul > li:last-child.active > a {
    background: var(--ct-jaune) !important; color: var(--ct-marine) !important;
    clip-path: var(--ct-coupe);
    padding: .45rem 1.1rem; margin-left: .3rem;
}
body #header .dropmenu > ul > li:last-child > a::after { display: none; }
body #header .dropmenu > ul > li:last-child > a:hover,
body #header .dropmenu > ul > li:last-child.active > a:hover { background: #fff !important; color: var(--ct-marine) !important; }

/* ---------- Boutons ---------- */
.btn, a.btn, button.btn {
    font-family: var(--ct-titres); font-weight: 800; font-size: 1.1rem;
    text-transform: uppercase; letter-spacing: .07em;
    border: 0; border-radius: 0;
    padding: .6rem 1.9rem; height: auto; line-height: 1.3;
    clip-path: var(--ct-coupe);
    background: #dfe7fb; color: var(--ct-marine);
    transition: background .18s, color .18s, transform .18s;
}
.btn:hover, a.btn:hover, .btn:focus { background: var(--ct-marine); color: #fff; transform: translateY(-2px); }

.btn.btn-primary, a.btn-primary, button.btn-primary, .button-wrapper .btn {
    background: var(--ct-bleu); color: #fff;
}
.btn.btn-primary:hover, a.btn-primary:hover, .button-wrapper .btn:hover { background: var(--ct-marine); color: #fff; }

.btn.btn-accent, a.btn-accent { background: var(--ct-jaune); color: var(--ct-marine); }
.btn.btn-accent:hover, a.btn-accent:hover { background: #fff; color: var(--ct-marine); }

.btn.btn-ghost, a.btn-ghost { background: rgba(255, 255, 255, .16); color: #fff; }
.btn.btn-ghost:hover, a.btn-ghost:hover { background: #fff; color: var(--ct-marine); }

/* ---------- Bandeau d'accueil ---------- */
.ctspr-hero {
    position: relative; overflow: hidden; color: #fff;
    background: linear-gradient(115deg, var(--ct-marine) 0%, var(--ct-marine-2) 55%, var(--ct-bleu) 100%);
    padding: 8.5rem 0 10rem;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 5vw), 0 100%);
}
.ctspr-hero::before {            /* grande bande inclinée */
    content: ""; position: absolute; top: -10%; right: -6%; width: 48%; height: 125%;
    background: linear-gradient(170deg, rgba(35, 96, 240, .6), rgba(16, 57, 181, 0));
    transform: skewX(-16deg);
}
.ctspr-hero::after {             /* traits jaunes "vitesse" */
    content: ""; position: absolute; top: 0; bottom: 0; left: 64%; width: 10px;
    background: var(--ct-jaune); transform: skewX(-16deg);
    box-shadow: 22px 0 0 -4px rgba(229, 242, 41, .55);
    opacity: .9;
}
.ctspr-hero-grid {
    position: relative; z-index: 1;
    display: grid; grid-template-columns: 1.3fr .7fr; gap: 2rem; align-items: center;
}
.ctspr-hero .hero-kicker {
    display: inline-block;
    font-family: var(--ct-titres); font-weight: 600; text-transform: uppercase;
    letter-spacing: .2em; font-size: 1.1rem; color: var(--ct-jaune); margin: 0 0 .8rem;
    animation: ctUp .7s ease both;
}
.ctspr-hero h1 {
    color: #fff; font-style: italic; text-transform: uppercase;
    font-size: clamp(3rem, 7.2vw, 6rem); line-height: .92; letter-spacing: .01em;
    margin: 0 0 1.4rem; padding: 0;
    animation: ctUp .7s .1s ease both;
}
.ctspr-hero h1::after { content: none; }
.ctspr-hero h1 .accent { display: block; color: var(--ct-jaune); }
.ctspr-hero .hero-lead {
    font-size: 1.2rem; max-width: 34rem; color: #d3ddfa; margin: 0 0 2rem;
    animation: ctUp .7s .2s ease both;
}
.ctspr-hero .hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin: 0; animation: ctUp .7s .3s ease both; }

.ctspr-hero-badge {
    position: relative; width: min(100%, 380px); aspect-ratio: 1 / 1; margin-left: auto;
    display: grid; place-items: center;
}
.ctspr-hero-badge img {
    position: relative; width: 74%; height: auto; border-radius: 50%;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .5), 0 0 0 6px rgba(255, 255, 255, .12);
    animation: ctFloat 6s ease-in-out infinite;
}
.ctspr-hero-badge .ring {
    position: absolute; inset: 13%; border: 2px solid var(--ct-jaune); border-radius: 50%; opacity: 0;
    animation: ctRing 4.5s ease-out infinite;
}
.ctspr-hero-badge .r2 { animation-delay: 1.5s; }
.ctspr-hero-badge .r3 { animation-delay: 3s; }

@keyframes ctUp { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes ctFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes ctRing { 0% { transform: scale(.85); opacity: .75; } 100% { transform: scale(1.5); opacity: 0; } }

/* ---------- Chiffres clés ---------- */
.ctspr-stats { position: relative; z-index: 3; margin-top: -7.5rem; }
.ctspr-stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; }
.ctspr-stat {
    position: relative; overflow: hidden;
    background: var(--ct-blanc); border-radius: 4px;
    padding: 1.3rem 1.4rem 1.2rem;
    border-bottom: 5px solid var(--ct-jaune);
    box-shadow: 0 14px 34px rgba(7, 26, 74, .16);
    transition: transform .22s ease, box-shadow .22s ease;
}
.ctspr-stat::before {           /* petite bande inclinée décorative */
    content: ""; position: absolute; top: 0; right: -18px; width: 46px; height: 100%;
    background: var(--ct-fond); transform: skewX(-16deg);
}
.ctspr-stat:hover { transform: translateY(-7px); box-shadow: 0 20px 40px rgba(7, 26, 74, .24); }
.stat-value { position: relative; font-family: var(--ct-titres); font-weight: 800; font-style: italic; color: var(--ct-bleu); line-height: .95; }
.stat-value [data-count], .stat-value { font-size: 4rem; }
.stat-unit { font-size: 2rem; margin-left: .2rem; color: var(--ct-marine); }
.stat-label { position: relative; margin-top: .3rem; font-family: var(--ct-titres); font-weight: 800; font-size: 1.3rem; text-transform: uppercase; letter-spacing: .03em; color: var(--ct-marine); }
.stat-detail { position: relative; font-size: .88rem; color: var(--ct-texte-doux); }

/* ---------- Bandeau des pages intérieures ---------- */
.ctspr-band {
    position: relative; overflow: hidden; color: #fff;
    background: linear-gradient(115deg, var(--ct-marine) 0%, var(--ct-marine-2) 60%, var(--ct-bleu) 100%);
    padding: 8rem 0 6rem;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 3.5vw), 0 100%);
}
.ctspr-band::after {
    content: ""; position: absolute; top: 0; bottom: 0; right: 22%; width: 9px;
    background: var(--ct-jaune); transform: skewX(-16deg);
    box-shadow: 20px 0 0 -3px rgba(229, 242, 41, .5);
}
.ctspr-band-target {
    position: absolute; right: -60px; top: 50%; width: 420px; aspect-ratio: 1 / 1;
    transform: translateY(-50%); background: url("../images/cible.svg") center / contain no-repeat; pointer-events: none;
}
.ctspr-band .container { position: relative; z-index: 1; }
.ctspr-band h1 {
    color: #fff; font-style: italic; text-transform: uppercase;
    font-size: clamp(2.4rem, 5.5vw, 4rem); line-height: .95; margin: 0; padding: 0;
    animation: ctUp .6s ease both;
}
.ctspr-band h1::after { content: none; }
.ctspr-band p { color: #d3ddfa; max-width: 36rem; margin: .9rem 0 0; animation: ctUp .6s .1s ease both; }
.ctspr-band .band-sub { font-size: 1.15rem; }
.ctspr-band .blog-date, .ctspr-band .blog-date * { color: var(--ct-jaune); }

/* ---------- Contenu ---------- */
#body-wrapper { background: var(--ct-fond); padding: 7.5rem 0 4rem; }
.ctspr-band + #start #body-wrapper { padding-top: 0; }
.ctspr-stats + #start #body-wrapper { padding-top: 3.5rem; }

#body-wrapper > .container {
    background: var(--ct-blanc);
    border-radius: 4px;
    border-top: 5px solid var(--ct-jaune);
    box-shadow: 0 12px 34px rgba(7, 26, 74, .1);
    padding: 2.6rem 2.8rem;
}
.ctspr-band + #start #body-wrapper > .container { position: relative; z-index: 2; margin-top: -2.6rem; }
#body-wrapper > .container > :first-child,
.ctspr-page > :first-child { margin-top: 0; }
#body-wrapper > .container p,
#body-wrapper > .container ul,
#body-wrapper > .container ol,
#body-wrapper > .container blockquote,
#body-wrapper > .container form { max-width: 48rem; }
#body-wrapper > .container .columns p,
#body-wrapper > .container .card p { max-width: none; }
.ctspr-page .btn { margin: 0 .6rem .8rem 0; }

/* Accueil : le contenu n'est pas dans une carte, il est en deux colonnes */
#body-wrapper.ctspr-home-body > .container {
    background: transparent; box-shadow: none; border: 0; padding: 0 1rem;
}
.ctspr-stats + #start #body-wrapper { padding-bottom: 1rem; }
.ctspr-home { max-width: 50rem; margin: 0 auto; }
.ctspr-home p, .ctspr-home ul { max-width: none !important; }

h1 { font-style: italic; text-transform: uppercase; font-size: 2.4rem; }
h2 {
    font-size: 2rem; text-transform: uppercase; letter-spacing: .01em;
    margin: 2.4rem 0 .9rem; color: var(--ct-marine);
}
h2::before {                      /* petite barre jaune inclinée */
    content: ""; display: inline-block; width: .38em; height: .8em; margin-right: .5rem;
    background: var(--ct-jaune); box-shadow: 4px 0 0 var(--ct-bleu);
    transform: skewX(-18deg); vertical-align: -.05em;
}
h3 { font-size: 1.5rem; text-transform: uppercase; color: var(--ct-bleu); }
ul li::marker { color: var(--ct-bleu); }

blockquote {
    background: #f1f5ff; border: 0; border-left: 5px solid var(--ct-bleu);
    margin: 1.5rem 0; padding: 1rem 1.3rem; color: var(--ct-texte);
}
blockquote p { margin: 0; }

table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: .97rem; }
table thead th, table th {
    background: var(--ct-marine); color: #fff;
    font-family: var(--ct-titres); font-weight: 600; font-size: 1.05rem;
    text-transform: uppercase; letter-spacing: .07em;
    padding: .7rem .95rem; text-align: left; border: 0;
}
table td { padding: .7rem .95rem; border: 0; border-bottom: 1px solid var(--ct-bordure); }
table tbody tr:nth-child(even) { background: #f5f8ff; }

/* ---------- Bandeau d'appel (accueil) ---------- */
.ctspr-cta {
    position: relative; overflow: hidden; color: #fff; margin-top: 1rem;
    background: linear-gradient(110deg, var(--ct-bleu) 0%, var(--ct-marine-2) 100%);
    padding: 7rem 0 4.5rem;
    clip-path: polygon(0 5vw, 100% 0, 100% 100%, 0 100%);
}
.ctspr-cta::before {
    content: ""; position: absolute; top: 0; bottom: 0; right: 14%; width: 90px;
    background: var(--ct-jaune); transform: skewX(-16deg); opacity: .95;
}
.ctspr-cta::after {
    content: ""; position: absolute; top: 0; bottom: 0; right: 8%; width: 30px;
    background: rgba(229, 242, 41, .45); transform: skewX(-16deg);
}
.ctspr-cta .cta-inner { position: relative; z-index: 1; display: flex; align-items: center; gap: 3rem; flex-wrap: wrap; }
.ctspr-cta .cta-text { flex: 0 1 34rem; }
.ctspr-cta h2 { color: #fff; font-size: clamp(2.2rem, 4.5vw, 3.4rem); font-style: italic; margin: 0 0 .5rem; }
.ctspr-cta h2::before { content: none; }
.ctspr-cta p { color: #d3ddfa; font-size: 1.15rem; margin: 0; max-width: 34rem; }
.ctspr-cta .btn { position: relative; z-index: 1; font-size: 1.3rem; padding: .8rem 2.4rem; }

/* ---------- Formulaire ---------- */
label, .form-label { font-weight: 700; color: var(--ct-marine); }
.required, .form-label .required, label .required { color: #d6231f; }
.form-input, .form-select, input[type=text], input[type=email], textarea, select {
    border: 2px solid var(--ct-bordure); border-radius: 3px; background: #fff; color: var(--ct-texte);
    transition: border-color .15s, box-shadow .15s;
}
.form-input:invalid, input:invalid, textarea:invalid, select:invalid { border-color: var(--ct-bordure); box-shadow: none; }
.form-input:focus, .form-select:focus, input:focus, textarea:focus, select:focus {
    border-color: var(--ct-bleu); box-shadow: 0 0 0 4px rgba(16, 57, 181, .14); outline: 0;
}
.notices, .alert { border-radius: 3px; }

/* ---------- Actualités ---------- */
.blog-listing #body-wrapper, .blog-listing { background: var(--ct-fond); }
.card {
    border: 0; border-radius: 4px; background: #fff;
    box-shadow: 0 8px 24px rgba(7, 26, 74, .1); border-top: 4px solid var(--ct-jaune);
    transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-5px); box-shadow: 0 16px 34px rgba(7, 26, 74, .18); }
.card .card-title h5, .card .card-title a { font-family: var(--ct-titres); font-weight: 800; font-size: 1.6rem; text-transform: uppercase; color: var(--ct-marine); }
.card .blog-date, .card .blog-date * { color: var(--ct-bleu); font-weight: 700; }
.label { border-radius: 2px; }

/* ---------- Pied de page ---------- */
.ctspr-footer {
    background: var(--ct-marine); color: #b7c4ea; border-top: 4px solid var(--ct-jaune);
    padding: 3rem 0 1.2rem; font-size: .95rem; text-align: left;
}
.ctspr-footer, .ctspr-footer .container, .ctspr-footer .column, .ctspr-footer p { text-align: left; }
.ctspr-footer a { color: #fff; }
.ctspr-footer a:hover { color: var(--ct-jaune); }
.ctspr-footer .footer-title {
    display: block; font-family: var(--ct-titres); font-weight: 800; font-size: 1.25rem;
    text-transform: uppercase; letter-spacing: .06em; color: var(--ct-jaune); margin-bottom: .4rem;
}
.ctspr-footer .footer-brand { display: flex; align-items: center; gap: 1rem; }
.ctspr-footer .footer-brand img { width: 64px; height: 64px; }
.ctspr-footer .footer-brand p { margin: 0; }
.ctspr-footer p { margin: 0 0 1rem; }
.ctspr-footer .footer-copy { border-top: 1px solid rgba(255, 255, 255, .12); padding-top: 1rem; margin: 1rem 0 0; font-size: .8rem; color: #8797c4; }

/* ---------- Apparition au défilement ---------- */
.ct-reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.ct-reveal.ct-in { opacity: 1; transform: none; }
.ctspr-stat.ct-in:hover { transform: translateY(-7px); }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .ct-reveal { opacity: 1; transform: none; }
}

/* ---------- Menu mobile ---------- */
.mobile-menu .button_container span,
.mobile-menu .button_container.active .top,
.mobile-menu .button_container.active .bottom { background: #fff !important; }
.mobile-container .overlay, .mobile-container .overlay-menu { background: var(--ct-marine); }
.mobile-container .overlay-menu a {
    font-family: var(--ct-titres); font-weight: 800; font-size: 1.6rem; text-transform: uppercase; letter-spacing: .06em; color: #fff;
}
.mobile-container .overlay-menu li.active > a,
.mobile-container .overlay-menu a.active,
.mobile-container .overlay-menu a:hover { color: var(--ct-jaune) !important; }

/* ---------- Tablette et mobile ---------- */
@media (max-width: 960px) {
    .ctspr-hero-grid { grid-template-columns: 1fr; }
    .ctspr-hero-badge { width: 220px; margin: 1rem auto 0; order: -1; }
    .ctspr-hero::after, .ctspr-cta::after { display: none; }
    .ctspr-hero::before { opacity: .6; }
    .ctspr-cta::before { right: -30px; width: 60px; opacity: .8; }
    .ctspr-band::after { right: 6%; }
    .ctspr-stats-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 840px) {
    .ctspr-logo { height: 40px; width: 40px; }
    .ctspr-brand-text strong { font-size: 1.6rem; }
    .ctspr-hero { padding: 6.5rem 0 8rem; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 8vw), 0 100%); }
    .ctspr-stats { margin-top: -5.5rem; }
    .ctspr-band { padding: 6.5rem 0 4.5rem; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 6vw), 0 100%); }
    .ctspr-band-target { width: 260px; right: -90px; opacity: .6; }
    .ctspr-cta { clip-path: polygon(0 8vw, 100% 0, 100% 100%, 0 100%); padding-top: 6rem; }
    #body-wrapper > .container { padding: 1.7rem 1.3rem; }
    #body-wrapper.ctspr-home-body > .container { padding: 0 .4rem; }
    h1 { font-size: 2rem; }
    h2 { font-size: 1.7rem; }
    table { display: block; overflow-x: auto; }
    table td, table th { min-width: 7rem; }
}
@media (max-width: 480px) {
    .stat-value, .stat-value [data-count] { font-size: 3rem; }
    .stat-unit { font-size: 1.5rem; }
    .ctspr-stat { padding: 1rem; }
    .stat-label { font-size: 1.1rem; }
}

/* ---------- Page Horaires : frise hebdomadaire ---------- */
.ctspr-horaires .sch-status {
    display: inline-block; margin: 0 0 1.2rem; padding: .35rem 1rem .35rem .8rem; border-radius: 2px;
    font-weight: 700; font-size: .85rem; background: #eef2fb; color: var(--ct-marine);
    border-left: 5px solid var(--ct-texte-doux); max-width: none !important;
}
.ctspr-horaires .sch-status.is-open { background: #e9f8d8; border-left-color: #3fa20b; color: #1d4d05; }
.ctspr-horaires .sch-status.is-closed { background: #fff3e0; border-left-color: #e08a00; color: #6b3f00; }

.sch { --row-h: 3.6rem; margin: 0 0 1rem; }
.sch-axis, .sch-row { display: grid; grid-template-columns: 6rem 1fr; align-items: stretch; }
.sch-ticks, .sch-lanes { margin-right: 1.4rem; }
.sch-ticks { position: relative; height: 1.5rem; }
.sch-ticks i {
    position: absolute; top: 0; transform: translateX(-50%); font-style: normal;
    font-family: var(--ct-titres); font-weight: 600; font-size: .95rem; color: var(--ct-texte-doux);
}
.sch-row { border-top: 1px solid var(--ct-bordure); position: relative; }
.sch-row:last-child { border-bottom: 1px solid var(--ct-bordure); }
.sch-day {
    display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; padding: .3rem .8rem .3rem 0;
    font-family: var(--ct-titres); font-weight: 800; font-size: 1.3rem; text-transform: uppercase; color: var(--ct-marine);
}
.sch-day em {
    font-style: normal; font-family: var(--ct-police); font-weight: 700; font-size: .6rem; letter-spacing: .04em;
    background: var(--ct-jaune); color: var(--ct-marine); padding: .1rem .5rem; clip-path: var(--ct-coupe); text-transform: none;
}
.sch-lanes {
    padding: .25rem 0;
    background-image: linear-gradient(90deg, var(--ct-bordure) 1px, transparent 1px);
    background-size: calc(100% / var(--hours)) 100%;
    border-right: 1px solid var(--ct-bordure);
}
.sch-lane { position: relative; height: var(--row-h); }
.sch-off { display: flex; align-items: center; padding-left: .8rem; color: #9aa5c4; font-size: .85rem; font-style: italic; }
.sch-row.is-closed .sch-lane { height: 2.2rem; }

.sch-slot {
    position: absolute; top: 0; bottom: 0; left: var(--l); width: calc(var(--w) - 4px);
    display: flex; flex-direction: column; justify-content: center; min-width: 0;
    padding: 0 .45rem 0 .85rem; overflow: hidden; white-space: nowrap; box-sizing: border-box;
    clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
    background: var(--ct-marine); color: #fff;
    transform-origin: left center; animation: schBar .6s calc(.15s + var(--i) * .08s) cubic-bezier(.2, .8, .2, 1) both;
    transition: filter .15s;
}
.sch-slot:hover { filter: brightness(1.12); }
.sch-slot b { font-family: var(--ct-titres); font-weight: 800; font-size: .95rem; line-height: 1.1; letter-spacing: 0; }
.sch-slot span { font-size: .7rem; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; }
.sch-slot span.ac { font-weight: 700; }
.cat-10m { background: var(--ct-bleu-vif); color: #fff; }
.cat-25m { background: var(--ct-jaune); color: var(--ct-marine); }
.cat-longue { background: var(--ct-marine); color: #fff; }
.cat-ecole { background: #cfe0ff; color: var(--ct-marine-2); box-shadow: inset 0 -4px 0 var(--ct-bleu-vif); }
.sch-legend i.cat-ecole { box-shadow: none; background: #cfe0ff; outline: 1px solid var(--ct-bleu-vif); outline-offset: -1px; }
@keyframes schBar { from { transform: scaleX(0); opacity: 0; } to { transform: none; opacity: 1; } }

.sch-row.is-today { background: linear-gradient(90deg, rgba(229, 242, 41, .28), rgba(229, 242, 41, 0) 60%); }
.sch-row.is-today::before { content: ""; position: absolute; left: 0; top: -1px; bottom: 0; width: 5px; background: var(--ct-jaune); box-shadow: 3px 0 0 var(--ct-bleu); }
.sch-row.is-today .sch-day { padding-left: .9rem; }

.sch-legend { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem 1.6rem; margin: 1.1rem 0 0 !important; padding: 0; max-width: none !important; font-size: .82rem; color: var(--ct-texte-doux); }
.sch-legend li { display: flex; align-items: center; gap: .5rem; margin: 0; }
.sch-legend i { display: inline-block; width: 1.6rem; height: .8rem; clip-path: polygon(5px 0, 100% 0, calc(100% - 5px) 100%, 0 100%); }

.sch-note {
    display: flex; gap: .8rem; align-items: flex-start; margin: 1.6rem 0 0; padding: 1rem 1.2rem;
    background: #f1f5ff; border-left: 5px solid var(--ct-bleu); max-width: 48rem;
}
.sch-note .fa { font-size: 1.6rem; color: var(--ct-bleu); line-height: 1; }
.sch-note p { margin: 0; }

/* ---------- Page Horaires : adresse et plan ---------- */
.acces { display: grid; grid-template-columns: minmax(16rem, 21rem) 1fr; gap: 1.5rem; align-items: stretch; margin-top: 1rem; }
.acces-card {
    background: var(--ct-marine); color: #d3ddfa; padding: 1.6rem 1.6rem 1.2rem; border-radius: 4px; position: relative; overflow: hidden;
    border-bottom: 5px solid var(--ct-jaune);
}
.acces-card::after {
    content: ""; position: absolute; top: 0; bottom: 0; right: 14%; width: 26px; background: rgba(229, 242, 41, .13); transform: skewX(-16deg); pointer-events: none;
}
.acces-card address { font-style: normal; line-height: 1.5; margin-bottom: 1rem; position: relative; z-index: 1; }
.acces-card address strong {
    display: block; font-family: var(--ct-titres); font-weight: 800; font-size: 1.45rem; line-height: 1.05;
    text-transform: uppercase; color: var(--ct-jaune); margin-bottom: .4rem;
}
.acces-list { list-style: none; margin: 0 0 1rem !important; padding: 0; position: relative; z-index: 1; }
.acces-list li { display: flex; align-items: center; gap: .6rem; margin: .35rem 0; }
.acces-list .fa { font-size: 1.2rem; width: 1.4rem; text-align: center; color: var(--ct-jaune); }
.ctspr-horaires .acces-card a:not(.btn) { color: #fff; font-weight: 700; }
.ctspr-horaires .acces-card a:not(.btn):hover { color: var(--ct-jaune); }
.acces-buttons { margin: 1rem 0 0 !important; position: relative; z-index: 1; }
.ctspr-horaires .acces-card .btn { margin: 0 .5rem .6rem 0; font-size: 1rem; padding: .5rem 1.3rem; }
.ctspr-horaires .acces-card .btn.btn-primary { background: var(--ct-jaune); color: var(--ct-marine); }
.ctspr-horaires .acces-card .btn.btn-primary:hover { background: #fff; }
.ctspr-horaires .acces-card .btn:not(.btn-primary) { background: rgba(255, 255, 255, .14); color: #fff; }
.ctspr-horaires .acces-card .btn:not(.btn-primary):hover { background: #fff; color: var(--ct-marine); }

.acces-map { position: relative; min-height: 22rem; border-radius: 4px; overflow: hidden; box-shadow: 0 8px 24px rgba(7, 26, 74, .14); background: #dfe7fb; }
.acces-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.ctspr-horaires .acces-map-link {
    position: absolute; right: .6rem; bottom: .6rem; z-index: 2; background: #fff; color: var(--ct-marine); font-weight: 700; font-size: .75rem;
    padding: .35rem .9rem; clip-path: var(--ct-coupe); text-decoration: none; box-shadow: 0 2px 8px rgba(0, 0, 0, .2);
}
.ctspr-horaires .acces-map-link:hover { background: var(--ct-jaune); color: var(--ct-marine); }
.acces-extra { margin-top: 1.5rem; }

@media (max-width: 840px) {
    .acces { grid-template-columns: 1fr; }
    .acces-map { min-height: 17rem; }
}

/* Mobile : chaque jour devient une petite carte, les créneaux s'empilent */
@media (max-width: 760px) {
    .sch-axis { display: none; }
    .sch-row, .sch-row:last-child { grid-template-columns: 1fr; border: 0; margin-bottom: .7rem; background: #f5f8ff; border-radius: 3px; overflow: hidden; }
    .sch-row.is-today { background: #f6fbc8; }
    .sch-row.is-today::before { top: 0; }
    .sch-day { background: var(--ct-marine); color: #fff; padding: .35rem .9rem; font-size: 1.25rem; }
    .sch-row.is-today .sch-day { padding-left: 1.2rem; background: var(--ct-bleu); }
    .sch-day em { margin-left: auto; }
    .sch-lanes { margin: 0; padding: .5rem .6rem .6rem; background: none; border: 0; }
    .sch-lane { height: auto; margin-top: .4rem; }
    .sch-lane:first-child { margin-top: 0; }
    .sch-slot {
        position: static; width: auto; clip-path: none; border-radius: 3px; animation: none;
        flex-direction: row; justify-content: space-between; align-items: center; gap: .8rem; padding: .55rem .9rem;
    }
    .sch-slot b { font-size: 1.3rem; }
    .sch-slot span { font-size: .85rem; text-align: right; white-space: normal; }
    .sch-slot + .sch-slot { margin-top: .4rem; }
    .sch-slot span:first-of-type { margin-left: auto; }
    .sch-slot span.ac { margin-left: 0; }
    .sch-slot span.ac::before { content: "· "; }
    .sch-row.is-closed { display: flex; justify-content: space-between; align-items: center; opacity: .75; }
    .sch-row.is-closed .sch-day { background: transparent; color: var(--ct-texte-doux); flex: 0 0 auto; }
    .sch-row.is-closed .sch-lanes { padding: 0 .9rem 0 0; }
    .sch-row.is-closed .sch-lane { height: auto; margin: 0; }
    .sch-off { padding: 0; }
}

/* ---------- Page Adhésion : tarifs ---------- */
.tarifs-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(14.5rem, 1fr)); gap: 1.2rem; margin: 1.4rem 0 0; max-width: none; }
.tarif-card {
    background: #f5f8ff; border-radius: 4px; overflow: hidden; display: flex; flex-direction: column;
    box-shadow: 0 8px 22px rgba(7, 26, 74, .08);
}
.ctspr-page .tarif-card h3 {
    position: relative; margin: 0; padding: 1rem 2.6rem 1.5rem 1.2rem; color: #fff; background: var(--ct-marine);
    font-size: 1.55rem; line-height: 1.05; font-style: italic;
    background: linear-gradient(115deg, var(--ct-marine), var(--ct-marine-2));
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 14px), 0 100%);
}
.tarif-card h3::after {
    content: ""; position: absolute; right: 1.2rem; top: 0; bottom: 0; width: 7px; background: var(--ct-jaune); transform: skewX(-16deg);
}
.ctspr-page .tarif-card ul { list-style: none; margin: 0; padding: .3rem 1.2rem .8rem; max-width: none !important; flex: 1; }
.tarif-card li {
    display: flex; align-items: baseline; justify-content: space-between; gap: .8rem;
    padding: .75rem 0; border-bottom: 1px solid var(--ct-bordure); margin: 0;
}
.tarif-card li:last-child { border-bottom: 0; }
.tarif-label { font-size: .88rem; line-height: 1.25; color: var(--ct-texte); }
.tarif-price {
    flex: 0 0 auto; font-family: var(--ct-titres); font-weight: 800; font-style: italic; font-size: 1.75rem; line-height: 1;
    color: var(--ct-bleu); white-space: nowrap;
}

.tarif-entry {
    display: flex; align-items: center; gap: 1.4rem; margin-top: 1.4rem; padding: 1rem 1.6rem 1rem 0; overflow: hidden;
    background: var(--ct-marine); color: #d3ddfa; border-radius: 4px; border-bottom: 5px solid var(--ct-jaune);
}
.tarif-entry-amount {
    flex: 0 0 auto; align-self: stretch; display: flex; align-items: center; padding: 0 2.2rem 0 1.6rem;
    background: var(--ct-jaune); color: var(--ct-marine); clip-path: polygon(0 0, 100% 0, calc(100% - 18px) 100%, 0 100%);
    font-family: var(--ct-titres); font-weight: 800; font-style: italic; font-size: 2.6rem; line-height: 1; margin: -1rem 0;
    padding-top: 1rem; padding-bottom: 1rem;
}
.tarif-entry-text { display: flex; flex-direction: column; gap: .2rem; font-size: .92rem; line-height: 1.3; }
.tarif-entry-text strong { font-family: var(--ct-titres); font-weight: 800; font-size: 1.4rem; text-transform: uppercase; color: #fff; }

@media (max-width: 600px) {
    .tarif-entry { flex-direction: column; align-items: stretch; gap: .8rem; padding: 0 1.2rem 1rem; }
    .tarif-entry-amount { margin: 0 -1.2rem; padding: .7rem 1.6rem; clip-path: none; font-size: 2.2rem; }
}

/* ---------- Page Calendrier ---------- */
.ctspr-calendrier { --t-competition: #e5f229; --t-animation: #2360f0; --t-club: #071a4a; --t-ferme: #d6231f; }

.cal-top { display: flex; flex-direction: column; gap: .8rem; margin-bottom: 1.2rem; }
.cal-next {
    display: flex; align-items: stretch; background: var(--ct-marine); color: #d3ddfa; border-radius: 4px; overflow: hidden;
    border-bottom: 5px solid var(--ct-jaune);
}
.cal-next[hidden], .cal-status[hidden], .cal-month[hidden], .cal-ev[hidden], .cal-past-toggle[hidden] { display: none !important; }
.cal-next-date {
    flex: 0 0 auto; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 1rem 2.4rem 1rem 1.8rem;
    background: var(--ct-jaune); color: var(--ct-marine); clip-path: polygon(0 0, 100% 0, calc(100% - 20px) 100%, 0 100%);
    font-family: var(--ct-titres); font-weight: 800; font-style: italic; text-transform: uppercase; line-height: 1;
}
.cal-next-date strong { font-size: 3.6rem; }
.cal-next-date span { font-size: 1.2rem; letter-spacing: .05em; }
.cal-next-text { display: flex; flex-direction: column; justify-content: center; gap: .15rem; padding: 1rem 1.6rem; }
.cal-next-text em { font-style: normal; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ct-jaune); }
.cal-next-text strong { font-family: var(--ct-titres); font-weight: 800; font-style: italic; text-transform: uppercase; font-size: 1.9rem; line-height: 1.05; color: #fff; }
.cal-next-text span { font-size: .95rem; }

.ctspr-page .cal-status {
    margin: 0; padding: .55rem 1rem; border-left: 5px solid var(--ct-texte-doux); background: #eef2fb; font-weight: 700; font-size: .85rem; max-width: none !important;
}
.cal-status.is-closed { background: #fdeceb; border-left-color: var(--ct-ferme, #d6231f); color: #7a120f; }
.cal-status.is-soon { background: #fff3e0; border-left-color: #e08a00; color: #6b3f00; }

.cal-filters { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin: 0 0 .4rem; }
.cal-chip, .cal-past-toggle {
    font-family: var(--ct-titres); font-weight: 800; font-size: .95rem; text-transform: uppercase; letter-spacing: .04em; cursor: pointer;
    padding: .3rem 1rem .3rem .8rem; border: 0; clip-path: var(--ct-coupe); transition: opacity .15s, filter .15s;
    display: inline-flex; align-items: center; gap: .45rem; line-height: 1.2;
}
.cal-chip::before { content: ""; width: .6rem; height: .6rem; border-radius: 50%; background: currentColor; }
.cal-chip.t-competition { background: var(--t-competition); color: var(--ct-marine); }
.cal-chip.t-animation { background: var(--t-animation); color: #fff; }
.cal-chip.t-club { background: var(--t-club); color: #fff; }
.cal-chip.t-ferme { background: var(--t-ferme); color: #fff; }
.cal-chip[aria-pressed="false"] { opacity: .35; filter: grayscale(.6); }
.cal-chip[aria-pressed="false"]::before { background: transparent; box-shadow: inset 0 0 0 2px currentColor; }
.cal-past-toggle { margin-left: auto; background: #dfe7fb; color: var(--ct-marine); }
.cal-past-toggle:hover { background: var(--ct-marine); color: #fff; }

.cal-month { display: grid; grid-template-columns: 17rem 1fr; gap: 1.8rem; padding: 1.6rem 0; border-top: 1px solid var(--ct-bordure); margin-top: .8rem; }
.cal-month.is-empty { display: none; }
.cal-mini { align-self: start; position: sticky; top: 5rem; background: #f5f8ff; border-radius: 4px; padding: .9rem .9rem 1rem; }
.ctspr-page .cal-mini h3 { margin: 0 0 .6rem; font-size: 1.6rem; line-height: 1; text-transform: uppercase; color: var(--ct-marine); font-style: italic; }
.cal-mini h3 span { color: var(--ct-bleu); font-size: 1.2rem; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.cal-dow { text-align: center; font-family: var(--ct-titres); font-weight: 600; font-size: .8rem; color: var(--ct-texte-doux); }
.cal-d {
    aspect-ratio: 1 / 1; display: grid; place-items: center; border-radius: 2px; background: #fff;
    font-family: var(--ct-titres); font-weight: 600; font-size: .95rem; color: var(--ct-texte);
}
.cal-d.t-competition { background: var(--t-competition); color: var(--ct-marine); font-weight: 800; }
.cal-d.t-animation { background: var(--t-animation); color: #fff; font-weight: 800; }
.cal-d.t-club { background: var(--t-club); color: #fff; font-weight: 800; }
.cal-d.t-ferme { background: #fbd9d7; color: #8a1410; }
.cal-d.is-today { outline: 3px solid var(--ct-bleu); outline-offset: 1px; position: relative; z-index: 1; }

.cal-list { display: flex; flex-direction: column; gap: .8rem; }
.cal-ev {
    display: grid; grid-template-columns: 4.6rem 1fr; gap: 1rem; background: #fff; border: 1px solid var(--ct-bordure);
    border-left: 6px solid var(--ct-marine); border-radius: 3px; padding: .9rem 1.1rem .9rem .9rem; box-shadow: 0 4px 14px rgba(7, 26, 74, .06);
}
.cal-ev.t-competition { border-left-color: #b9c500; }
.cal-ev.t-animation { border-left-color: var(--t-animation); }
.cal-ev.t-club { border-left-color: var(--t-club); }
.cal-ev.t-ferme { border-left-color: var(--t-ferme); background: #fff8f8; box-shadow: none; }
.cal-ev.is-past { opacity: .55; }
.cal-badge {
    display: flex; flex-direction: column; align-items: center; justify-content: center; align-self: start; width: 4.6rem; padding: .35rem 0 .3rem;
    font-family: var(--ct-titres); font-weight: 800; font-style: italic; text-transform: uppercase; line-height: 1; clip-path: var(--ct-coupe);
    background: var(--ct-marine); color: #fff;
}
.cal-badge strong { font-size: 2.3rem; }
.cal-badge span { font-size: .95rem; letter-spacing: .04em; }
.cal-ev.t-competition .cal-badge { background: var(--t-competition); color: var(--ct-marine); }
.cal-ev.t-animation .cal-badge { background: var(--t-animation); }
.cal-ev.t-ferme .cal-badge { background: var(--t-ferme); }
.cal-tag { display: inline-block; font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ct-texte-doux); }
.ctspr-page .cal-ev h4 { margin: .1rem 0 .25rem; font-family: var(--ct-titres); font-weight: 800; font-size: 1.45rem; line-height: 1.1; text-transform: uppercase; color: var(--ct-marine); }
.ctspr-page .cal-ev p { margin: 0; max-width: none !important; }
.cal-meta { font-size: .88rem; font-weight: 700; color: var(--ct-bleu); }
.cal-ev.t-ferme .cal-meta { color: #8a1410; }
.cal-desc { font-size: .88rem; margin-top: .3rem !important; color: var(--ct-texte); }
.cal-link { margin-top: .3rem !important; font-size: .88rem; font-weight: 700; }
.cal-note { margin-top: 1.4rem; }

@media (max-width: 840px) {
    .cal-month { grid-template-columns: 1fr; gap: 1rem; }
    .cal-mini { position: static; max-width: 22rem; }
    .cal-next { flex-direction: column; }
    .cal-next-date { flex-direction: row; gap: .6rem; justify-content: flex-start; padding: .6rem 1.4rem; clip-path: none; }
    .cal-next-date strong { font-size: 2.6rem; }
}
@media (max-width: 480px) {
    .cal-ev { grid-template-columns: 1fr; gap: .6rem; }
    .cal-badge { flex-direction: row; gap: .5rem; width: auto; padding: .3rem 1rem; align-self: start; }
    .cal-badge strong { font-size: 1.7rem; }
}
