/* =========================================================
   TT Vannes — Page d'accueil
   Variables de charte, états interactifs, responsive.
   La mise en page de base est portée en styles inline dans
   front-page.php (fidèle à la maquette) ; ce fichier gère
   ce que l'inline ne peut pas faire : :hover, :focus,
   animations, media queries et l'intégration CF7 / Facebook.
   ========================================================= */

:root {
  --tt-blue: #006690;        /* bleu officiel de la charte */
  --tt-blue-d: #014e70;      /* survol */
  --tt-blue-l: #7fcdee;
  --tt-ink: #14181b;
  --tt-dark: #0c2a36;
  --tt-title: "Twentieth Century", "Century Gothic", "Futura", "Trebuchet MS", system-ui, sans-serif;
  --tt-body: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --tt-wrap: min(1400px, 90vw); /* largeur de contenu fluide, plafonnée */
}

/* ---- Largeur du contenu adaptative : élargit les conteneurs (1180px → fluide) ---- */
.tt-home [style*="max-width:1180px"] { max-width: var(--tt-wrap) !important; }

/* ---- Reset doux, limité à la home pour neutraliser le thème parent ---- */
.tt-home { font-family: var(--tt-body); color: var(--tt-ink); line-height: 1.5; background: #fff; }
.tt-home *,
.tt-home *::before,
.tt-home *::after { box-sizing: border-box; }
.tt-home img { max-width: 100%; }
.tt-home a { text-decoration: none; color: inherit; transition: color .18s, background .18s, box-shadow .25s, transform .25s, opacity .18s, border-color .18s; }
.tt-home button { transition: background .18s; }
.tt-home h1, .tt-home h2, .tt-home h3, .tt-home p { margin: 0; }

/* ---- Partie haute en 100vh (en-tête 79px + bandeau 73px) ---- */
.tt-home .tt-hero { min-height: calc(100vh - 152px) !important; }
@media (max-width: 860px) { .tt-home .tt-hero { min-height: auto !important; } }

/* ---- Typographie de la charte : Twentieth Century Bold, en capitales ---- */
.tt-title { font-family: var(--tt-title); text-transform: uppercase; font-weight: 700; }
.tt-num { font-family: var(--tt-title); font-weight: 700; }

/* ---- Bandeau défilant ---- */
@keyframes tt-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---- En-tête « sticky intelligent » : masqué au défilement vers le bas,
       réaffiché dès qu'on remonte (classe .tt-header-hidden pilotée en JS) ---- */
.tt-site-header { transition: transform .35s ease; will-change: transform; }
.tt-site-header.tt-header-hidden { transform: translateY(-100%); }
@media (prefers-reduced-motion: reduce) { .tt-site-header { transition: none; } }

/* ---- États de survol (remplacent les attributs style-hover de la maquette) ---- */
.tt-nav-link:hover { color: var(--tt-blue); }
/* Menu déroulant (sous-menu) */
.tt-nav-item { position: relative; }
.tt-nav-item .tt-nav-link { display: inline-flex; align-items: center; gap: 5px; cursor: pointer; }
.tt-caret { font-size: 10px; transition: transform .2s; }
.tt-subnav { position: absolute; top: 100%; left: -14px; min-width: 200px; background: #fff; border: 1px solid #e7edf0; border-radius: 14px; box-shadow: 0 18px 40px rgba(12,42,54,0.16); padding: 8px; display: none; flex-direction: column; z-index: 60; }
.tt-subnav::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.tt-nav-item:hover .tt-subnav, .tt-nav-item:focus-within .tt-subnav { display: flex; }
.tt-nav-item:hover .tt-caret { transform: rotate(180deg); }
.tt-subnav a { display: block; padding: 9px 14px; font-size: 14.5px; font-weight: 500; color: #3a4a51; border-radius: 9px; white-space: nowrap; }
.tt-subnav a:hover { background: #eef6f9; color: var(--tt-blue); }
.tt-link-fade:hover { opacity: .7; }
.tt-btn-blue:hover { background: var(--tt-blue-d) !important; }
.tt-btn-hero-primary:hover { background: #0a7aab !important; }
.tt-btn-hero-white:hover { background: #eaf2f6 !important; }
.tt-btn-white:hover { background: #e7eff3 !important; }
.tt-btn-soft:hover { background: #e3eff4 !important; }
/* Carte « À la une » (plus marquante, avec photo) */
.tt-ticker {
  flex: 0 0 auto; width: 410px; max-width: 42%; align-self: center;
  background: #fff; border-radius: 22px; overflow: hidden;
  box-shadow: 0 26px 60px rgba(0,0,0,0.34); display: block; z-index: 3;
}
.tt-ticker:hover { box-shadow: 0 34px 76px rgba(0,0,0,0.46); transform: translateY(-3px); }
.tt-ticker-img { position: relative; display: block; height: 240px; overflow: hidden; }
.tt-ticker-img img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.tt-ticker-img .tt-ticker-badge { position: absolute; left: 18px; top: 18px; }
.tt-ticker-badge { display: inline-flex; align-items: center; gap: 8px; background: #006690; color: #fff; font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; padding: 6px 13px; border-radius: 999px; box-shadow: 0 6px 16px rgba(0,0,0,0.18); }
.tt-ticker-badge .dot { width: 7px; height: 7px; border-radius: 999px; background: #7fcdee; }
.tt-ticker-body { display: block; padding: 22px 24px 24px; }
.tt-ticker-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; min-height: 14px; }
.tt-ticker-meta .tt-ticker-badge.static { /* visible seulement sans photo */ }
.tt-ticker-date { font-size: 12.5px; color: #8a9aa1; font-weight: 600; margin-left: auto; }
.tt-ticker-title { display: block; font-size: 21px; line-height: 1.18; color: #14181b; margin-bottom: 16px; }
.tt-ticker-more { display: inline-flex; align-items: center; gap: 9px; font-size: 14px; font-weight: 700; color: #006690; }
.tt-ticker-more .arrow { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 999px; background: #006690; color: #fff; font-size: 13px; transition: transform .2s; }
.tt-ticker:hover .tt-ticker-more .arrow { transform: translateX(3px); }
.tt-salle-card:hover { background: rgba(255,255,255,0.09) !important; }
.tt-social-card { transition: transform .25s, box-shadow .25s; }
.tt-social-card:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(12,42,54,0.13); }
.tt-blog-card:hover { border-color: #cfe0e8 !important; box-shadow: 0 10px 26px rgba(12,42,54,0.08); }
.tt-partner:hover { border-color: #cfe0e8 !important; color: var(--tt-blue) !important; background: #f8fbfc; }
.tt-foot-link:hover { color: #fff; }

/* ---- Formulaire de contact (champs natifs de secours + Contact Form 7) ---- */
.tt-form input,
.tt-form textarea,
.tt-formwrap input[type="text"],
.tt-formwrap input[type="email"],
.tt-formwrap textarea {
  width: 100%;
  font-family: inherit;
  font-size: 15px;
  color: var(--tt-ink);
  padding: 13px 15px;
  border: 1.5px solid #e1e7ea;
  border-radius: 11px;
  outline: none;
  background: #fff;
}
.tt-form input:focus,
.tt-form textarea:focus,
.tt-formwrap input:focus,
.tt-formwrap textarea:focus { border-color: var(--tt-blue); }
.tt-formwrap label { display: block; font-size: 13.5px; font-weight: 600; color: #3a4a51; margin-bottom: 7px; }
.tt-formwrap p { margin: 0 0 18px; }
.tt-form button,
.tt-formwrap input[type="submit"],
.tt-formwrap button {
  font-family: inherit; font-size: 16px; font-weight: 700; color: #fff;
  background: var(--tt-blue); border: none; padding: 15px; border-radius: 11px;
  cursor: pointer; width: 100%;
}
.tt-form button:hover,
.tt-formwrap input[type="submit"]:hover,
.tt-formwrap button:hover { background: var(--tt-blue-d); }
.tt-formwrap .wpcf7-response-output { border-radius: 11px; font-size: 14px; margin: 14px 0 0; }

/* ---- Intégration du flux Facebook (Custom Facebook Feed / Smash Balloon) ----
   Le flux peut être très long et déséquilibrer la section : on le contient dans
   un panneau cadré (comme les autres cartes) à hauteur limitée, avec défilement
   interne. La section reste alignée avec la colonne « Le blog ». */
.tt-social-feed {
  width: 100%;
  max-height: 640px;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  border: 1px solid #e7edf0;
  border-radius: 18px;
  background: #fff;
  padding: 4px 16px;
  /* Barre de défilement fine, sur la charte (Firefox) */
  scrollbar-width: thin;
  scrollbar-color: #c3d3da transparent;
}
/* Neutralise les marges externes que le plugin ajoute en tête/pied de flux */
.tt-social-feed .cff-wrapper,
.tt-social-feed .cff-wrapper-ctn,
.tt-social-feed #cff,
.tt-social-feed .cff { margin: 0 !important; }
/* Barre de défilement fine (Chrome/Edge/Safari) */
.tt-social-feed::-webkit-scrollbar { width: 8px; }
.tt-social-feed::-webkit-scrollbar-track { background: transparent; }
.tt-social-feed::-webkit-scrollbar-thumb { background: #c3d3da; border-radius: 999px; border: 2px solid #fff; }
.tt-social-feed::-webkit-scrollbar-thumb:hover { background: #9fb6c0; }
/* Typographie du flux resserrée (le plugin rend un texte trop grand pour la colonne) */
.tt-social-feed .cff-post-text,
.tt-social-feed .cff-text,
.tt-social-feed .cff-post-desc,
.tt-social-feed .cff-more,
.tt-social-feed .cff-less { font-size: 15.5px !important; line-height: 1.5 !important; }
.tt-social-feed .cff-author-text,
.tt-social-feed .cff-author,
.tt-social-feed .cff-page-name { font-size: 14px !important; }
.tt-social-feed .cff-date { font-size: 12px !important; }
.tt-social-feed .cff-viewpost-facebook,
.tt-social-feed .cff-share-link { font-size: 12.5px !important; }

/* Logos réseaux cliquables (en-tête « Sur les réseaux ») */
.tt-social-badge { transition: transform .2s ease, opacity .2s ease; }
.tt-social-badge:hover { transform: translateY(-2px); opacity: .9; }

/* ---- Mur social (page Actualités) : colonnes Instagram / Facebook ----
   auto-fit : 2 colonnes côte à côte si les 2 flux sont branchés, 1 seule
   (pleine largeur) si un seul, et empilement automatique en mobile. */
.tt-social-wall { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 28px; align-items: start; }
.tt-social-col { min-width: 0; }
.tt-social-col-head { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.tt-social-badge-sm { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 9px; flex-shrink: 0; }
.tt-social-col-title { font-family: var(--tt-title); font-size: 18px; font-weight: 700; color: #14181b; }
.tt-social-more { margin-left: auto; font-size: 13.5px; font-weight: 600; color: var(--tt-blue); white-space: nowrap; }

/* ============================================================
   RESPONSIVE
   La maquette est pensée pour ~1180px ; on l'adapte ici.
   ============================================================ */

/* Menu mobile */
.tt-burger { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.tt-burger span { display: block; width: 24px; height: 2px; background: var(--tt-blue); margin: 5px 0; border-radius: 2px; transition: .25s; }

@media (max-width: 1024px) {
  .tt-hero-grid { padding-top: 84px !important; padding-bottom: 84px !important; }
  .tt-grid-2,
  .tt-salle-grid,
  .tt-actus-grid,
  .tt-res-grid,
  .tt-contact-grid,
  .tt-contact-merged { grid-template-columns: 1fr !important; gap: 40px !important; }
  .tt-formules-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .tt-partners-grid { grid-template-columns: repeat(3, 1fr) !important; }
  /* Flux Facebook empilé (1 colonne) : panneau un peu plus court */
  .tt-social-feed { max-height: 560px; }
}

@media (max-width: 860px) {
  /* Navigation repliée */
  .tt-nav { position: absolute; top: 78px; left: 0; right: 0;
    flex-direction: column !important; align-items: stretch !important;
    gap: 0 !important; background: #fff; border-bottom: 1px solid #e7edf0;
    padding: 8px 0; display: none !important; box-shadow: 0 16px 30px rgba(0,0,0,.08); }
  .tt-nav.is-open { display: flex !important; }
  .tt-nav a { padding: 13px 32px !important; }
  /* Sous-menus : affichés en liste indentée dans le panneau mobile */
  .tt-nav-item { width: 100%; }
  .tt-caret { display: none; }
  .tt-subnav { position: static; display: flex !important; border: none; box-shadow: none; padding: 0 0 6px 0; min-width: 0; }
  .tt-subnav::before { display: none; }
  .tt-subnav a { padding: 10px 48px !important; font-size: 14px; color: #5d6f77; }
  .tt-header-cta { display: none !important; }
  .tt-burger { display: block; }

  /* Hero : on empile contenu + carte « À la une » */
  .tt-hero-grid { flex-direction: column !important; align-items: flex-start !important; }
  .tt-ticker { width: 100% !important; max-width: 100% !important; margin-top: 36px; }
  .tt-hero h1 { font-size: 44px !important; }
  .tt-hero-stats { gap: 28px !important; flex-wrap: wrap; }

  /* Galerie en pile simple */
  .tt-gallery-grid { grid-template-columns: 1fr 1fr !important; grid-auto-rows: 170px !important; }
  .tt-gallery-grid > * { grid-column: auto !important; grid-row: auto !important; }
  .tt-gallery-pano { grid-column: 1 / 3 !important; }
}

@media (max-width: 600px) {
  .tt-formules-grid { grid-template-columns: 1fr !important; }
  .tt-partners-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .tt-section-pad { padding-left: 20px !important; padding-right: 20px !important; }
  .tt-hero h1 { font-size: 36px !important; }
  .tt-h2 { font-size: 32px !important; }
  .tt-footer-row { flex-direction: column !important; align-items: flex-start !important; }
}

/* ---- Cartes « organisation » (Partenaires & Instances sportives) ---- */
.tt-orgcards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(216px, 1fr));
  gap: 20px;
}
.tt-orgcard {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px;
  background: #fff; border: 1px solid #eef1f3; border-radius: 18px;
  padding: 28px 22px 22px; height: 100%;
}
.tt-orgcard:hover { border-color: #cfe0e8; box-shadow: 0 16px 36px rgba(12,42,54,0.10); transform: translateY(-4px); }
.tt-orgcard-logo { height: 76px; display: flex; align-items: center; justify-content: center; }
.tt-orgcard-logo img { max-height: 76px; max-width: 150px; width: auto; object-fit: contain; display: block; }
.tt-orgcard-logotext { font-family: var(--tt-title); text-transform: uppercase; font-weight: 700; font-size: 15px; color: var(--tt-blue); line-height: 1.25; }
.tt-orgcard-name { font-weight: 700; font-size: 14.5px; color: #14181b; line-height: 1.3; }
.tt-orgcard-addr { display: flex; align-items: flex-start; justify-content: center; gap: 6px; font-size: 12.5px; color: #8a9aa1; line-height: 1.4; }
.tt-orgcard-addr svg { flex-shrink: 0; margin-top: 2px; color: #9fb6c0; }
.tt-orgcard-link { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--tt-blue); padding-top: 6px; }
.tt-orgcard:hover .tt-orgcard-link { gap: 10px; }

/* ============================================================
   ARTICLE (single) — coordonné avec la page d'accueil
   ============================================================ */
.tt-single-hero { position: relative; min-height: 420px; display: flex; align-items: flex-end; overflow: hidden; background: var(--tt-dark); }
.tt-single-hero .tt-single-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.tt-single-hero .tt-single-ovl { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6,24,31,0.30) 0%, rgba(6,24,31,0.55) 55%, rgba(6,24,31,0.88) 100%); z-index: 1; }
.tt-single-hero-inner { position: relative; z-index: 2; max-width: 1180px; margin: 0 auto; width: 100%; padding: 56px 32px; }
.tt-single-cat { display: inline-flex; align-items: center; gap: 8px; background: var(--tt-blue); color: #fff; font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; padding: 6px 14px; border-radius: 999px; }
.tt-single-title { font-family: var(--tt-title); text-transform: uppercase; font-weight: 700; color: #fff; font-size: 46px; line-height: 1.05; letter-spacing: -0.01em; margin: 18px 0 14px; text-wrap: balance; }
.tt-single-meta { font-size: 14px; color: #bcd3dd; }
.tt-article { max-width: 1180px; margin: 0 auto; padding: 56px 32px 80px; }
.tt-article-body { max-width: 760px; margin: 0 auto; font-size: 17px; line-height: 1.7; color: #2a3a41; }
.tt-article-body > * { margin: 0 0 22px; }
.tt-article-body h2 { font-family: var(--tt-title); text-transform: uppercase; font-weight: 700; font-size: 26px; color: #14181b; margin: 38px 0 14px; }
.tt-article-body h3 { font-family: var(--tt-title); text-transform: uppercase; font-weight: 700; font-size: 20px; color: #14181b; margin: 30px 0 12px; }
.tt-article-body a { color: var(--tt-blue); text-decoration: underline; }
.tt-article-body ul, .tt-article-body ol { padding-left: 22px; }
.tt-article-body li { margin: 0 0 8px; }
.tt-article-body img, .tt-article-body .wp-block-image img { border-radius: 16px; height: auto; }
.tt-article-body figure.aligncenter { text-align: center; }
.tt-article-body .wp-block-button__link { background: var(--tt-blue); color: #fff; font-weight: 700; padding: 14px 28px; border-radius: 999px; text-decoration: none; display: inline-block; box-shadow: 0 10px 26px rgba(0,102,144,0.28); }
.tt-article-body .wp-block-button__link:hover { background: var(--tt-blue-d); }
.tt-article-back { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 14px; font-weight: 700; color: var(--tt-blue); }

/* ---- Carte Leaflet (section Contact + accès) ---- */
.tt-leaflet { height: 340px; width: 100%; border-radius: 18px; overflow: hidden; border: 1px solid rgba(255,255,255,0.14); background: #13323f; z-index: 1; }
.tt-leaflet .leaflet-control-attribution { font-size: 10px; }
.tt-marker b {
  display: flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; background: var(--tt-blue); color: #fff;
  border: 2px solid #fff; border-radius: 999px;
  font-family: var(--tt-title); font-weight: 700; font-size: 14px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.35);
}
.leaflet-popup-content { font-family: var(--tt-body); font-size: 13.5px; line-height: 1.45; }
.leaflet-popup-content strong { color: #14181b; }

/* Lien « Itinéraire » (Google Maps) dans les cartes de salles */
.tt-salle-itin { flex-shrink: 0; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: #7fcdee; white-space: nowrap; padding: 8px 13px; border: 1px solid rgba(255,255,255,0.18); border-radius: 999px; transition: background .18s, color .18s, border-color .18s; }
.tt-salle-itin:hover { background: rgba(255,255,255,0.10); color: #fff; border-color: rgba(255,255,255,0.32); }
@media (max-width: 520px) { .tt-salle-itin .tt-itin-label { display: none; } }
@media (max-width: 600px) {
  .tt-single-title { font-size: 32px; }
  .tt-single-hero-inner, .tt-article { padding-left: 20px; padding-right: 20px; }
}

/* ---- Carrousel photos de la salle (auto-défilant) ---- */
.tt-salle-carousel { position: relative; width: 100%; height: 460px; border-radius: 20px; overflow: hidden; }
.tt-salle-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .9s ease; }
.tt-salle-slide.is-active { opacity: 1; }
.tt-salle-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tt-salle-dots { position: absolute; left: 0; right: 0; bottom: 16px; display: flex; justify-content: center; gap: 9px; z-index: 2; }
.tt-salle-dots button { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 999px; background: rgba(255,255,255,0.55); cursor: pointer; transition: background .2s, transform .2s; }
.tt-salle-dots button:hover { background: rgba(255,255,255,0.85); }
.tt-salle-dots button.is-active { background: #fff; transform: scale(1.25); }

/* ---- Bouton "Voir les créneaux" (section Contact, sous les salles) ---- */
.tt-creneaux-block { margin-top: 26px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.12); }
.tt-home a.tt-creneaux-btn { display: inline-flex; align-items: center; gap: 10px; margin-top: 16px; padding: 13px 24px; background: #fff; color: #0c2a36; font-weight: 700; font-size: 15px; border-radius: 999px; box-shadow: 0 8px 22px rgba(0,0,0,0.22); transition: background .18s, transform .2s; }
.tt-home a.tt-creneaux-btn:hover { background: #e7eff3; transform: translateY(-2px); color: #0c2a36; }
.tt-creneaux-btn span { color: #0c2a36; }
.tt-creneaux-btn svg { color: #006690; flex-shrink: 0; }

/* ---- Note sous les formules (tarifs annexes / conditions) ---- */
.tt-formules-note { max-width: 760px; margin: 36px auto 0; text-align: center; font-size: 13.5px; line-height: 1.6; color: #8a9aa1; }

/* ============================================================
   SECTION FORMULES — refonte : onglets horaires + tableau tarifs
   ============================================================ */
.tt-block-title { font-family: var(--tt-title); text-transform: uppercase; font-weight: 700; font-size: 27px; letter-spacing: -0.01em; color: #14181b; text-align: center; margin: 0 0 26px; }
.tt-block-title::after { content: ""; display: block; width: 54px; height: 3px; background: #006690; border-radius: 3px; margin: 14px auto 0; }

/* Onglets */
.tt-tabs-wrap { display: flex; justify-content: center; margin-bottom: 30px; }
.tt-tabs { display: inline-flex; gap: 4px; background: #eef4f7; border: 1px solid #e0eaef; border-radius: 999px; padding: 5px; }
.tt-tab { font-family: inherit; font-size: 15px; font-weight: 700; color: #5a6b72; background: none; border: 0; cursor: pointer; padding: 11px 30px; border-radius: 999px; transition: background .2s, color .2s, box-shadow .2s; }
.tt-tab:hover { color: #006690; }
.tt-tab.is-active { background: #006690; color: #fff; box-shadow: 0 6px 16px rgba(0,102,144,0.28); }

/* Panneaux d'onglet */
.tt-tabpanel { display: none; }
.tt-tabpanel.is-active { display: block; animation: tt-fade .25s ease; }
@keyframes tt-fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* Liste des créneaux */
.tt-creneau-list { list-style: none; margin: 0 auto; padding: 0; max-width: 920px; display: flex; flex-direction: column; gap: 10px; }
.tt-creneau { display: grid; grid-template-columns: 104px 132px 1fr auto; align-items: center; gap: 10px 18px; background: #fff; border: 1px solid #e7edf0; border-radius: 14px; padding: 15px 20px; transition: border-color .18s, box-shadow .18s; }
.tt-creneau:hover { border-color: #cfe0e8; box-shadow: 0 8px 22px rgba(12,42,54,0.07); }
.tt-creneau-day { font-family: var(--tt-title); text-transform: uppercase; font-weight: 700; font-size: 16px; color: #006690; }
.tt-creneau-hours { font-weight: 700; font-size: 15.5px; color: #14181b; }
.tt-creneau-place { display: inline-flex; align-items: center; gap: 7px; font-size: 14.5px; color: #5a6b72; }
.tt-creneau-place svg { color: #9fb3bc; flex-shrink: 0; }
.tt-creneau-level { font-size: 13px; color: #8a9aa1; }
.tt-creneau-type { justify-self: end; font-size: 12px; font-weight: 700; letter-spacing: 0.02em; padding: 5px 12px; border-radius: 999px; white-space: nowrap; }
.tt-creneau-type.is-dirige { background: #e4f1f7; color: #006690; }
.tt-creneau-type.is-libre { background: #f0f2f4; color: #6b7b82; }

/* Note lieux */
.tt-lieux-note { max-width: 880px; margin: 26px auto 0; text-align: center; font-size: 14px; line-height: 1.7; color: #6b7b82; }

/* Tableau des tarifs */
.tt-tarifs-wrap { max-width: 980px; margin: 0 auto; overflow-x: auto; border: 1px solid #e7edf0; border-radius: 16px; }
.tt-tarifs { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.tt-tarifs thead th { background: #f4f8fa; text-align: left; font-weight: 700; color: #3a4a51; padding: 14px 18px; border-bottom: 1px solid #e7edf0; white-space: nowrap; }
.tt-tarifs thead th:last-child { text-align: right; }
.tt-tarifs tbody td { padding: 14px 18px; border-bottom: 1px solid #eef2f4; color: #4a5a61; vertical-align: middle; }
.tt-tarifs tbody tr:last-child td { border-bottom: 0; }
.tt-tarifs tbody tr:nth-child(even) td { background: #fafcfd; }
.tt-tarifs td:first-child { font-weight: 600; color: #14181b; }
.tt-tarif-price { text-align: right; font-family: var(--tt-title); font-weight: 700; font-size: 19px; color: #006690; white-space: nowrap; }

/* Tarifs annexes */
.tt-tarifs-extras { max-width: 980px; margin: 18px auto 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.tt-extra { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: #f7fafb; border: 1px solid #e7edf0; border-radius: 12px; padding: 13px 18px; }
.tt-extra span { font-size: 13.5px; color: #4a5a61; }
.tt-extra strong { font-family: var(--tt-title); font-size: 17px; color: #006690; white-space: nowrap; }

/* Responsive formules */
@media (max-width: 720px) {
  .tt-creneau { grid-template-columns: 1fr auto; row-gap: 4px; }
  .tt-creneau-day { grid-column: 1; }
  .tt-creneau-type { grid-row: 1; grid-column: 2; }
  .tt-creneau-hours { grid-column: 1 / -1; }
  .tt-creneau-place { grid-column: 1 / -1; }
  .tt-creneau-level { grid-column: 1 / -1; }
  .tt-tarifs-extras { grid-template-columns: 1fr; }
  /* Tableau tarifs en cartes empilées */
  .tt-tarifs-wrap { border: 0; overflow: visible; }
  .tt-tarifs thead { position: absolute; left: -9999px; }
  .tt-tarifs, .tt-tarifs tbody, .tt-tarifs tr, .tt-tarifs td { display: block; width: 100%; }
  .tt-tarifs tr { border: 1px solid #e7edf0; border-radius: 14px; margin-bottom: 14px; padding: 6px 4px; }
  .tt-tarifs tbody tr:nth-child(even) td { background: transparent; }
  .tt-tarifs td { border: 0 !important; display: flex; justify-content: space-between; gap: 16px; padding: 8px 16px; text-align: right; }
  .tt-tarifs td::before { content: attr(data-label); font-weight: 700; color: #8a9aa1; text-align: left; }
  .tt-tarif-price { text-align: right; }
}

/* ============================================================
   PAGE « LE CLUB » (template page-le-club.php)
   ============================================================ */
@keyframes floaty { 0% { transform: translateY(0); } 50% { transform: translateY(-12px); } 100% { transform: translateY(0); } }
.tt-club-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.tt-club-hermine { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 64px; align-items: center; }
.tt-club-fusion { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; }
.tt-club-timeline-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.tt-club-salle-intro { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.tt-club-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.tt-club-access { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; align-items: stretch; }
.tt-club .tt-leaflet { height: 100%; min-height: 360px; }
@media (max-width: 880px) {
  .tt-club-stats { grid-template-columns: repeat(2, 1fr); }
  .tt-club-hermine, .tt-club-fusion, .tt-club-salle-intro, .tt-club-gallery, .tt-club-access { grid-template-columns: 1fr; }
  .tt-club-timeline-grid { grid-template-columns: repeat(2, 1fr); gap: 34px 0; }
  .tt-club-timeline-line { display: none; }
  .tt-club .tt-leaflet { min-height: 280px; }
}
@media (max-width: 520px) {
  .tt-club-stats { grid-template-columns: 1fr; }
  .tt-club-timeline-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   PAGE « NOS PRATIQUES » (template page-nos-pratiques.php)
   ============================================================ */
.tt-prat summary { list-style: none; cursor: pointer; outline: none; }
.tt-prat summary::-webkit-details-marker { display: none; }
.tt-prat details[open] summary svg.faq-chev { transform: rotate(180deg); }
.tt-prat details summary:hover { color: #006690; }

/* Hero : 3 cartes qui débordent sur la section suivante */
.tt-prat-hero-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; transform: translateY(40px); }
.tt-prat-hcard { transition: transform .25s, box-shadow .25s; }
.tt-prat-hcard:hover { transform: translateY(-4px); box-shadow: 0 26px 54px rgba(0,0,0,0.28) !important; }

/* Sections pratiques : 2 colonnes */
.tt-prat-split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.tt-prat-loisir-text { order: 2; }
.tt-prat-loisir-aside { order: 1; }
/* Colonne info collante : reste visible jusqu'à la fin de la colonne planning/FAQ */
.tt-prat-sticky { position: sticky; top: 90px; align-self: start; }

/* Défilement animé lors d'un clic sur un lien d'ancre (cards, menu…).
   Respecte le scroll-margin-top des sections ; désactivé si « animations réduites ». */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

/* Apparition au défilement (sobre) — n'agit que si le JS est actif (html.tt-reveal-on)
   et si l'utilisateur n'a pas demandé à réduire les animations. */
@media (prefers-reduced-motion: no-preference) {
  html.tt-reveal-on .tt-reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s cubic-bezier(.22,.61,.36,1), transform .8s cubic-bezier(.22,.61,.36,1); will-change: opacity, transform; }
  html.tt-reveal-on .tt-reveal.tt-in { opacity: 1; transform: none; }
}

/* Mini-stats compétition + conditions tarifs */
.tt-prat-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tt-prat-cond { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 32px; }

/* Planning (colonnes par jour) */
.tt-prat-plan { display: grid; grid-template-columns: repeat(auto-fit, minmax(185px, 1fr)); gap: 16px; }
.tt-prat-tarifs-wrap { width: 100%; overflow-x: auto; }

/* Mobile : élargir le contenu (réduire les marges latérales) sur toutes les pages.
   Les conteneurs ont un padding latéral de 32px en ligne -> ramené à 18px ici. */
@media (max-width: 600px) {
  [style*="max-width:1180px"], [style*="max-width: 1180px"] { padding-left: 18px !important; padding-right: 18px !important; }
  .tt-logo-img { height: 46px !important; }
  /* Vie sportive : carte Planning en colonne, bouton pleine largeur (texte long) */
  .tt-vie-plan { flex-direction: column; align-items: stretch !important; gap: 22px !important; padding: 26px 22px !important; }
  .tt-vie-plan > div { min-width: 0 !important; }
  .tt-vie-plan .tt-btn-blue { flex-shrink: 1 !important; width: 100%; justify-content: center; white-space: normal; text-align: center; }
}

@media (max-width: 880px) {
  .tt-prat-hero-cards { grid-template-columns: 1fr; gap: 14px; transform: none; margin-top: 36px; }
  .tt-prat-split { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .tt-prat-loisir-text, .tt-prat-loisir-aside { order: 0; }
  .tt-prat-sticky { position: static; top: auto; }
  /* Tableau tarifs -> cartes empilées */
  .tt-prat-tarifs thead { position: absolute; left: -9999px; }
  .tt-prat-tarifs, .tt-prat-tarifs tbody, .tt-prat-tarifs tr, .tt-prat-tarifs td { display: block; width: 100%; }
  .tt-prat-tarifs td { border: 0 !important; display: flex; justify-content: space-between; gap: 16px; padding: 8px 18px !important; text-align: right; }
  .tt-prat-tarifs td[data-label]::before { content: attr(data-label); font-weight: 700; color: #8a9aa1; text-align: left; }
  .tt-prat-tarifs tr { padding: 6px 0; border-bottom: 8px solid #f1f7fa; }
  .tt-prat-tarifs tr:has(td[colspan]) td { background: #f6f9fb; justify-content: flex-start; }
  .tt-prat-tarifs td[colspan]::before { content: none; }
}
@media (max-width: 480px) {
  .tt-prat-stats, .tt-prat-cond { grid-template-columns: 1fr; }
}

/* ============================================================
   PAGE CONTACT (template page-contact.php)
   ============================================================ */
.tt-contact-grid2 { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 48px; align-items: start; }
.tt-coord { transition: background .18s; }
.tt-coord:hover { background: rgba(255,255,255,0.09) !important; }
.tt-coord-cta:hover { background: #0a7aab !important; }
.tt-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
/* Select du formulaire CF7 (mêmes styles que les inputs) */
.tt-formwrap select { width: 100%; font-family: inherit; font-size: 15px; color: var(--tt-ink); padding: 13px 15px; border: 1.5px solid #e1e7ea; border-radius: 11px; outline: none; background: #fff; }
.tt-formwrap select:focus { border-color: var(--tt-blue); }
.tt-formwrap label { width: 100%; }
@media (max-width: 880px) {
  .tt-contact-grid2 { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 520px) {
  .tt-form-row { grid-template-columns: 1fr; }
}

/* ============================================================
   PAGE ACTUALITÉS (template page-actualites.php)
   ============================================================ */
.tt-blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.tt-cat-btn { font-family: inherit; font-size: 14px; font-weight: 600; color: #5d6f77; background: #fff; border: 1.5px solid #e1e7ea; padding: 9px 18px; border-radius: 999px; cursor: pointer; transition: border-color .18s, color .18s, background .18s; }
.tt-cat-btn:hover { border-color: #cfe0e8; color: #006690; }
.tt-cat-btn.is-active { font-weight: 700; color: #fff; background: #006690; border-color: #006690; }
.tt-actu-card { background: #fff; border: 1px solid #e7edf0; border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s; color: inherit; }
.tt-actu-card:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(12,42,54,0.12); }
.tt-actu-thumb { width: 100%; height: 180px; overflow: hidden; background: #0c2a36; position: relative; }
.tt-actu-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s; }
.tt-actu-card:hover .tt-actu-thumb img { transform: scale(1.04); }
.tt-actu-thumb-ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #0c2a36, #006690); }
.tt-actu-thumb-ph svg { width: 92px; height: 92px; opacity: .28; }
.tt-actu-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.tt-actu-meta { display: flex; align-items: center; gap: 9px; margin-bottom: 11px; }
.tt-actu-cat { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: #006690; background: #eef6f9; padding: 3px 10px; border-radius: 999px; }
.tt-actu-date { font-size: 12.5px; color: #9aa7ad; font-weight: 600; }
.tt-actu-title { font-weight: 700; font-size: 18px; line-height: 1.25; color: #14181b; margin: 0 0 9px; }
.tt-actu-excerpt { font-size: 14.5px; line-height: 1.55; color: #5d6f77; margin: 0 0 18px; }
.tt-actu-more { margin-top: auto; font-size: 14px; font-weight: 700; color: #006690; }
@media (max-width: 900px) { .tt-blog-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .tt-blog-grid { grid-template-columns: 1fr; } }

/* Bandeau réseaux (Actualités) : cartes IG/FB côte à côte sur ordi */
.tt-actu-social { display: flex; flex-direction: row; gap: 12px; }
.tt-actu-social > a { flex: 1; min-width: 170px; }
@media (max-width: 560px) { .tt-actu-social { flex-direction: column; } }

/* ============================================================
   PAGE VIE SPORTIVE (template page-vie-sportive.php)
   ============================================================ */
.tt-vie-hub { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 48px; }
.tt-vie-quick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.tt-vie-card { display: block; background: #fff; border: 1px solid #e7edf0; border-radius: 20px; padding: 30px 28px; transition: transform .25s, box-shadow .25s, border-color .2s; color: inherit; }
.tt-vie-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(12,42,54,0.12); border-color: #cfe0e8; }
@media (max-width: 860px) {
  .tt-vie-hub { grid-template-columns: 1fr; gap: 32px; }
  .tt-vie-quick { grid-template-columns: 1fr; }
}
@media (max-width: 600px) and (min-width: 481px) {
  .tt-vie-quick { grid-template-columns: 1fr 1fr; }
}

/* ============================================================
   PIED DE PAGE riche (commun) — ttv_footer()
   ============================================================ */
.tt-footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 40px; }
.tt-footer-col-title { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #5fb4d6; margin-bottom: 18px; }
.tt-footer-col .tt-foot-link { display: block; font-size: 15px; color: #bcd0d8; margin-bottom: 13px; }
.tt-footer .tt-foot-link:hover { color: #fff; }
.tt-foot-soc { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 12px; background: rgba(255,255,255,0.06); color: #cbd9df; transition: background .2s, color .2s, transform .2s; }
.tt-foot-soc:hover { background: rgba(95,180,214,0.18); color: #7fcdee; transform: translateY(-2px); }
.tt-foot-contact { display: flex; align-items: center; gap: 12px; font-size: 15px; color: #bcd0d8; margin-bottom: 15px; }
.tt-foot-contact:hover { color: #fff; }
.tt-foot-ico { flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 10px; background: rgba(95,180,214,0.14); color: #7fcdee; }
.tt-foot-contact span { line-height: 1.5; }
@media (max-width: 920px) {
  .tt-footer-grid { grid-template-columns: 1fr 1fr; gap: 36px 28px; }
  .tt-footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .tt-footer-grid { grid-template-columns: 1fr; }
  .tt-footer-bottom { justify-content: flex-start; }
}
