/*
Theme Name: Asnières TT Child
Template: charitable-non-profit
Version: 1.0.89
Description: Thème enfant Asnières TT — styles unifiés + correctifs RGAA.
Author: Asnières TT
*/

/* ==========================================================================
   Asnières TT — design system unifié (thème enfant)
   ========================================================================== */

:root {
  --att-red: #D7282F;
  --att-red-dark: #b51f25;
  --att-ink: #1c1c1e;
  --att-muted: #5f6168;
  --att-line: rgba(28, 28, 30, 0.08);
  --att-radius: 14px;
  --att-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  --att-max: 1100px;
  --att-font-display: "Barlow", sans-serif;
  --att-font-body: "Source Sans 3", sans-serif;
}

/* --------------------------------------------------------------------------
   Typographie
   -------------------------------------------------------------------------- */
body,
button,
input,
select,
textarea {
  font-family: var(--att-font-body) !important;
  color: var(--att-ink);
}
h1, h2, h3, h4, h5, h6,
.elementor-heading-title,
.logo-content a,
.site-title,
.header-image-box h1,
.bottom-header .nav-menu > li > a,
#menu-adresse.nav-menu > li > a {
  font-family: var(--att-font-display) !important;
  letter-spacing: -0.02em;
}
h1, .elementor-widget-heading h1.elementor-heading-title {
  font-weight: 800 !important;
  line-height: 1.1 !important;
}
h2, .elementor-widget-heading h2.elementor-heading-title {
  font-weight: 700 !important;
  line-height: 1.15 !important;
}
h3, .elementor-widget-heading h3.elementor-heading-title {
  font-weight: 700 !important;
}
p, .elementor-widget-text-editor {
  font-family: var(--att-font-body) !important;
  line-height: 1.55;
}

/* --------------------------------------------------------------------------
   Header / logo
   -------------------------------------------------------------------------- */
.logo .custom-logo {
  max-height: 88px;
  width: auto;
  height: auto;
}
/* Titre texte WP : on ne garde que le logo (desktop + mobile) */
.middle-header .logo .logo-content {
  display: none !important;
}
@media (max-width: 767px) {
  .logo .custom-logo { max-height: 68px; }
  .main-header > .container {
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  .middle-header,
  .middle-header .row,
  .middle-header [class*="col-"] {
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  .middle-header {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }
  /* Bandeau : logo agrandi à gauche, hamburger à droite */
  .middle-header .logo {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 10px 14px !important;
    border-radius: 0 !important;
    background: var(--att-red) !important;
  }
  .middle-header .logo.mb-3 { margin-bottom: 0 !important; }
  .middle-header .logo .logo-image {
    flex: 0 0 auto;
    margin: 0 !important;
  }
  .middle-header .logo .logo-image a {
    display: block;
    margin: 0;
    line-height: 0;
  }
  .middle-header .logo .custom-logo {
    max-height: 68px !important;
    width: auto !important;
  }
  .middle-header .logo button.menu-toggle.att-burger {
    flex: 0 0 auto;
    margin-left: auto;
  }
}

.bottom-header .menu-toggle {
  border-radius: 10px;
  letter-spacing: 0.02em;
}

/* --------------------------------------------------------------------------
   Desktop — bandeau rouge unifié (logo + nav), aussi net que le mobile
   -------------------------------------------------------------------------- */
@media (min-width: 992px) {
  header.header#site-navigation {
    display: grid !important;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    column-gap: clamp(20px, 3vw, 40px);
    background: var(--att-red) !important;
    padding: 0 clamp(20px, 3.5vw, 48px);
    min-height: 100px;
    position: relative;
    z-index: 1000;
  }
  /* Au scroll : tout le bandeau (logo + nav) reste fixe — sticky échoue car body trop bas */
  header.header#site-navigation.att-header-fixed {
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    top: 0 !important;
    width: 100% !important;
    z-index: 1001 !important;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.18);
  }
  .admin-bar header.header#site-navigation.att-header-fixed {
    top: 32px !important;
  }
  .att-header-spacer {
    display: none;
    width: 100%;
    pointer-events: none;
  }
  .att-header-spacer.is-on {
    display: block;
  }

.main-header {
    background: transparent !important;
    margin: 0 !important;
  }
  .main-header > .container {
    max-width: none !important;
    width: auto !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  .middle-header {
    padding: 0 !important;
    margin: 0 !important;
  }
  .middle-header .row {
    margin: 0 !important;
    display: block !important;
  }
  .middle-header .col-lg-3 {
    width: auto !important;
    max-width: none !important;
    flex: 0 0 auto !important;
    padding: 0 !important;
    position: static !important;
  }
  .middle-header .col-lg-7,
  .middle-header .col-lg-2 {
    display: none !important;
  }

  /* Logo seul, bien visible dans le bandeau */
  .middle-header .logo {
    position: relative !important;
    left: auto !important;
    top: auto !important;
    right: auto !important;
    transform: none !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 0;
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 8px 0 !important;
    background: transparent !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    text-align: left !important;
  }
  .middle-header .logo.mb-3,
  .middle-header .logo.mb-md-0 {
    margin-bottom: 0 !important;
  }
  .middle-header .logo .logo-image {
    margin: 0 !important;
    line-height: 0;
  }
  .middle-header .logo .logo-image a {
    display: block;
    margin: 0 !important;
    line-height: 0;
  }
  .middle-header .logo .custom-logo {
    max-height: 92px !important;
    width: auto !important;
  }

  /* Nav : groupe compact centré dans l’espace restant (logo à gauche) */
  .bottom-header,
  .bottom-header.sticky-header {
    position: static !important;
    top: auto !important;
    left: auto !important;
    width: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
  }
  .bottom-header .container,
  .bottom-header .row,
  .bottom-header .col-lg-9,
  .bottom-header .col-md-12 {
    max-width: none !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  .bottom-header .col-lg-9 {
    flex: 1 1 auto !important;
  }
  .bottom-header .col-lg-3:empty {
    display: none !important;
  }

  #menu-adresse.nav-menu,
  #main-menu .nav-menu {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: stretch;
    justify-content: center;
    gap: 2px;
    width: 100%;
    margin: 0;
    padding: 0;
  }
  #menu-adresse.nav-menu > li,
  #main-menu .nav-menu > li {
    float: none !important;
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    white-space: nowrap;
    position: relative;
    padding-right: 0 !important;
  }
  /* Flèche parent (thème) : collée au texte, plus à l’extrémité du li */
  #menu-adresse.nav-menu > li.menu-item-has-children::after,
  #main-menu .nav-menu > li.menu-item-has-children::after,
  #main-menu ul > li.menu-item-has-children::after {
    right: 2px !important;
    margin-top: -1px;
    opacity: 0.9;
    border-width: 0 2px 2px 0 !important;
  }
  #menu-adresse.nav-menu > li > a,
  #main-menu .nav-menu > li > a {
    padding: 28px 10px !important;
    font-size: 14px !important;
    letter-spacing: 0.01em;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    color: rgba(255, 255, 255, 0.92) !important;
    text-transform: none !important;
    text-shadow: none !important;
    box-shadow: none !important;
    background: transparent !important;
  }
  #menu-adresse.nav-menu > li.menu-item-has-children > a,
  #main-menu .nav-menu > li.menu-item-has-children > a {
    padding-right: 0.95em !important;
  }
  #menu-adresse.nav-menu > li > a:hover,
  #menu-adresse.nav-menu > li.current-menu-item > a,
  #menu-adresse.nav-menu > li.current-menu-ancestor > a,
  #main-menu .nav-menu > li > a:hover,
  #main-menu .nav-menu > li.current-menu-item > a,
  #main-menu .nav-menu > li.current-menu-ancestor > a {
    color: #fff !important;
    box-shadow: inset 0 -2px 0 #fff !important;
    opacity: 1;
  }

  /* Dropdowns : sous le parent, sans chevauchement */
  #menu-adresse > li > ul.sub-menu,
  #menu-adresse > li > ul.children,
  #main-menu .nav-menu > li > ul.sub-menu,
  #main-menu .nav-menu > li > ul.children,
  #main-menu ul > li > ul.sub-menu,
  #main-menu ul > li > ul.children {
    top: calc(100% + 6px) !important;
    background: #fff !important;
    border: 1px solid var(--att-line) !important;
    border-radius: 12px !important;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.14) !important;
    padding: 8px 0 !important;
    min-width: 230px;
    margin-top: 0 !important;
  }
  /* Pont invisible pour ne pas perdre le hover entre lien et dropdown */
  #menu-adresse > li > ul.sub-menu::before,
  #menu-adresse > li > ul.children::before,
  #main-menu .nav-menu > li > ul.sub-menu::before,
  #main-menu .nav-menu > li > ul.children::before,
  #main-menu ul > li > ul.sub-menu::before,
  #main-menu ul > li > ul.children::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -10px;
    height: 10px;
  }
  #menu-adresse ul.sub-menu li a,
  #main-menu ul.sub-menu li a {
    color: var(--att-ink) !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    padding: 10px 18px !important;
    line-height: 1.35 !important;
    text-shadow: none !important;
  }
  #menu-adresse ul.sub-menu li a:hover,
  #main-menu ul.sub-menu li a:hover {
    color: var(--att-red) !important;
    background: rgba(215, 40, 47, 0.06) !important;
  }

    /* Sticky : le parent fixe .bottom-header → on l’annule pour garder logo+nav ensemble */
  .bottom-header.fixed-header {
    position: static !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    width: auto !important;
    background: transparent !important;
    backdrop-filter: none;
    box-shadow: none !important;
    padding: 0 !important;
    z-index: auto !important;
  }
  .bottom-header.fixed-header .container {
    display: flex;
    justify-content: center;
  }
  .bottom-header.fixed-header #menu-adresse > li > a,
  .bottom-header.fixed-header .nav-menu > li > a {
    color: rgba(255, 255, 255, 0.92) !important;
  }
  .bottom-header.fixed-header #menu-adresse > li > a:hover,
  .bottom-header.fixed-header #menu-adresse > li.current-menu-item > a,
  .bottom-header.fixed-header .nav-menu > li > a:hover,
  .bottom-header.fixed-header .nav-menu > li.current-menu-item > a {
    color: #fff !important;
    box-shadow: inset 0 -2px 0 #fff !important;
  }
}

@media (min-width: 992px) and (max-width: 1199px) {
  #menu-adresse.nav-menu > li > a,
  #main-menu .nav-menu > li > a {
    padding: 26px 7px !important;
    font-size: 13px !important;
  }
  #menu-adresse.nav-menu > li.menu-item-has-children > a,
  #main-menu .nav-menu > li.menu-item-has-children > a {
    padding-right: 0.9em !important;
  }
  .middle-header .logo .custom-logo {
    max-height: 84px !important;
  }
}

/* Sticky fallback (tablettes / si fixed hors desktop grid) */
@media (max-width: 991px) {
  .bottom-header.fixed-header {
    background: rgba(255, 255, 255, 0.96) !important;
    backdrop-filter: blur(8px);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
  }
  .bottom-header.fixed-header #menu-adresse > li > a {
    color: var(--att-ink) !important;
  }
  .bottom-header.fixed-header #menu-adresse > li > a:hover,
  .bottom-header.fixed-header #menu-adresse > li.current-menu-item > a {
    color: var(--att-red) !important;
  }
}

/* --------------------------------------------------------------------------
   Menu mobile — header + panneau allégés
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {
  /* Plus de barre sombre sous le bandeau : burger dans le logo, panneau seul */
  .bottom-header,
  .bottom-header.sticky-header,
  .bottom-header.fixed-header {
    width: 100% !important;
    background: transparent !important;
    border: 0 !important;
    border-bottom: 0 !important;
    box-shadow: none !important;
    min-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    position: static !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
  }
  .bottom-header .container,
  .bottom-header .row,
  .bottom-header .col-lg-9,
  .bottom-header .col-lg-3,
  .bottom-header .col-md-12 {
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin: 0 !important;
  }
  .bottom-header .col-lg-3:empty { display: none !important; }
  /* Burger déjà dans le bandeau rouge : cacher le doublon thème */
  .bottom-header .menu-toggle:not(.att-burger) {
    display: none !important;
  }

  /* Hamburger dans le bandeau rouge */
  button.menu-toggle.att-burger {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 44px !important;
    min-width: 44px !important;
    height: 44px !important;
    margin: 0 !important;
    padding: 0 !important;
    background: rgba(255, 255, 255, 0.12) !important;
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, 0.35) !important;
    border-radius: 10px !important;
    box-shadow: none !important;
    line-height: 1 !important;
  }
  button.menu-toggle.att-burger span {
    position: relative;
    display: block;
    width: 18px;
    height: 2px;
    background: #fff;
    font-size: 0 !important;
    color: transparent !important;
    box-shadow: 0 -6px 0 #fff, 0 6px 0 #fff;
  }
  button.menu-toggle.att-burger[aria-expanded="true"] {
    background: rgba(0, 0, 0, 0.18) !important;
  }

  /* Panneau : fermé par défaut ; jQuery .show() pose style="display: block" */
  nav#main-menu {
    display: none !important;
    width: 100% !important;
    clear: both;
    background: #fff !important;
    margin: 0 !important;
    border-bottom: 1px solid var(--att-line);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
  }
  nav#main-menu[style*="block"] {
    display: block !important;
  }

  #menu-adresse.nav-menu,
  #main-menu .nav-menu {
    display: block !important;
    float: none !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  #menu-adresse.nav-menu > li,
  #main-menu .nav-menu > li,
  #main-menu ul li {
    float: none !important;
    width: 100% !important;
    white-space: normal;
    background: #fff !important; /* tue le zébrage parent */
  }
  #menu-adresse.nav-menu > li > a,
  #main-menu .nav-menu > li > a {
    display: block !important;
    color: var(--att-ink) !important;
    padding: 15px 18px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    line-height: 1.3 !important;
    text-shadow: none !important;
    box-shadow: none !important;
    text-decoration: none !important;
    border-bottom: 1px solid var(--att-line) !important;
    background: transparent !important;
  }
  #menu-adresse.nav-menu > li.current-menu-item > a,
  #main-menu .nav-menu > li.current-menu-item > a {
    color: var(--att-red) !important;
  }
  #menu-adresse.nav-menu > li.menu-item-has-children > a,
  #main-menu .nav-menu > li.menu-item-has-children > a {
    position: relative;
    padding-right: 36px !important;
  }

  /* Sous-menus fermés : pas d'espace fantôme */
  #main-menu ul.sub-menu,
  #main-menu ul.children,
  #menu-adresse > li > ul.sub-menu,
  #menu-adresse > li > ul.children {
    display: none !important;
    position: static !important;
    opacity: 1 !important;
    visibility: visible !important;
    height: auto !important;
    max-height: none !important;
    width: 100% !important;
    left: auto !important;
    top: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    pointer-events: none !important;
  }

  /* Accordéon ouvert */
  #main-menu li.att-open > ul.sub-menu,
  #main-menu li.att-open > ul.children,
  #main-menu li.focus > ul.sub-menu,
  #main-menu li.focus > ul.children,
  #menu-adresse li.att-open > ul.sub-menu,
  #menu-adresse li.att-open > ul.children,
  #menu-adresse li.focus > ul.sub-menu,
  #menu-adresse li.focus > ul.children {
    display: block !important;
    position: relative !important;
    top: 0 !important;
    left: 0 !important;
    right: auto !important;
    width: 100% !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    height: auto !important;
    overflow: visible !important;
    z-index: 2;
    background: #fafafa !important;
  }
  #main-menu ul.sub-menu li,
  #menu-adresse ul.sub-menu li,
  #main-menu ul.children li,
  #menu-adresse ul.children li {
    float: none !important;
    width: 100% !important;
    display: block !important;
    background: transparent !important;
  }
  #main-menu ul.sub-menu li a,
  #menu-adresse ul.sub-menu li a {
    padding: 12px 18px 12px 28px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    color: var(--att-muted) !important;
    border-bottom: 1px solid var(--att-line) !important;
    background: transparent !important;
  }
  #main-menu ul.sub-menu li a:hover,
  #menu-adresse ul.sub-menu li a:hover {
    color: var(--att-red) !important;
  }

  /* Fermer : discret, texte, pas un second pavé rouge */
  nav#main-menu button.close-menu {
    float: none !important;
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 14px 18px !important;
    background: transparent !important;
    color: var(--att-muted) !important;
    border: 0 !important;
    border-top: 1px solid var(--att-line) !important;
    border-radius: 0 !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    letter-spacing: 0.04em;
    text-align: center;
    text-transform: uppercase;
  }
  nav#main-menu button.close-menu:hover {
    color: var(--att-red) !important;
  }
}

/* Sous-menus imbriqués desktop (s'il en reste) */
#main-menu ul.sub-menu li.menu-item-has-children > a,
#menu-adresse ul.sub-menu li.menu-item-has-children > a {
  position: relative;
  padding-right: 28px !important;
}
#main-menu ul.sub-menu li.menu-item-has-children > a::after,
#menu-adresse ul.sub-menu li.menu-item-has-children > a::after {
  content: "\203A";
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  line-height: 1;
  opacity: 0.7;
}
#main-menu ul.sub-menu li.menu-item-has-children > ul.sub-menu,
#menu-adresse ul.sub-menu li.menu-item-has-children > ul.sub-menu {
  left: -9999em !important;
  pointer-events: none;
}
#main-menu ul.sub-menu li.menu-item-has-children:hover > ul.sub-menu,
#main-menu ul.sub-menu li.menu-item-has-children.focus > ul.sub-menu,
#main-menu ul.sub-menu li.menu-item-has-children:focus-within > ul.sub-menu,
#menu-adresse ul.sub-menu li.menu-item-has-children:hover > ul.sub-menu,
#menu-adresse ul.sub-menu li.menu-item-has-children.focus > ul.sub-menu,
#menu-adresse ul.sub-menu li.menu-item-has-children:focus-within > ul.sub-menu {
  top: 0 !important;
  left: 100% !important;
  right: auto !important;
  margin-left: 0 !important;
  pointer-events: auto;
  z-index: 10002;
}

/* --------------------------------------------------------------------------
   Hero intérieur unifié (toutes pages sauf Accueil)
   -------------------------------------------------------------------------- */
body.att-is-interior .header-image-box {
  background-image: linear-gradient(rgba(0, 0, 0, 0.42), rgba(0, 0, 0, 0.52)),
    url(/wp-content/uploads/2026/02/DSC09915-copie.jpg) !important;
  background-position: center 35% !important;
  background-size: cover !important;
  height: 280px !important;
  min-height: 240px;
  display: flex !important;
  visibility: visible !important;
  padding: 24px 12px !important;
  align-items: center;
  justify-content: center;
}

body.att-is-interior .header-image-box h1 {
  font-size: clamp(2rem, 4vw, 2.75rem) !important;
  font-weight: 800 !important;
  letter-spacing: -0.02em !important;
  line-height: 1.15 !important;
  margin: 0 0 0.45em !important;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
  color: #fff !important;
}

body.att-is-interior .header-image-box .crumb-box {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0 !important;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(4px);
  font-size: 13px !important;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: rgba(255, 255, 255, 0.92) !important;
}
body.att-is-interior .header-image-box .crumb-box a {
  color: #fff !important;
  text-decoration: underline;
  text-underline-offset: 2px;
  font-size: 13px !important;
  font-weight: 600;
  letter-spacing: 0.04em;
}
body.att-is-interior .header-image-box .crumb-box a:hover,
body.att-is-interior .header-image-box .crumb-box a:focus-visible {
  color: #fff !important;
  text-decoration-thickness: 2px;
}

/* Menu blanc sur bandeau sombre (desktop/tablette uniquement —
   mobile = panneau blanc, le texte doit rester ink même sans .fixed-header) */
@media (min-width: 768px) {
  body.att-is-interior .bottom-header:not(.fixed-header) #menu-adresse > li > a,
  body.att-is-interior .bottom-header:not(.fixed-header) .nav-menu > li > a {
    color: #fff !important;
  }
}

/* Masquer heroes Elementor custom en double si présents */
body.att-is-interior .att-hero-comp {
  display: none !important;
}

/* --------------------------------------------------------------------------
   Contenu pages — rythme & typo
   -------------------------------------------------------------------------- */
body.att-is-interior .site-main,
body.att-is-interior .site-main,
body.att-is-interior #content {
  color: var(--att-ink);
}

/* Theme parent : #content.mt-5 laisse ~48px de blanc sous le hero */
body.att-is-interior #content,
body.att-is-interior #content.mt-5 {
  margin-top: 0 !important;
}

body.att-is-interior .elementor-widget-heading .elementor-heading-title {
  color: var(--att-ink) !important;
  font-weight: 800 !important;
  letter-spacing: -0.01em;
}
body.att-is-interior .elementor h2.elementor-heading-title {
  font-size: clamp(1.35rem, 2.4vw, 1.75rem) !important;
}

/* Première section Elementor : pas de carte bleue / double H1 */
body.att-is-interior .elementor > .e-con.e-parent:first-of-type {
  background-color: transparent !important;
  background-image: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  margin-top: 0 !important;
  padding-top: 28px !important;
  padding-bottom: 8px !important;
}
body.att-is-interior .elementor > .e-con.e-parent:first-of-type > .e-con-inner {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}
body.att-is-interior .elementor > .e-con.e-parent:first-of-type .elementor-widget-heading:first-child,
body.page-id-845 .elementor > .e-con.e-parent:first-of-type .elementor-widget-heading,
body.page-id-874 .elementor > .e-con.e-parent:first-of-type .elementor-widget-heading,
body.page-id-895 .elementor > .e-con.e-parent:first-of-type .elementor-widget-heading,
body.page-id-909 .elementor > .e-con.e-parent:first-of-type .elementor-widget-heading {
  display: none !important;
}
body.att-is-interior .elementor > .e-con.e-parent:first-of-type .elementor-widget-text-editor {
  color: var(--att-muted);
  font-size: 1.05rem;
  max-width: 40rem;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* Overrides Elementor historiques (IDs stables) */
body.page-id-845 .elementor-element-e856be8,
body.page-id-874 .elementor-element-1c9b0f4,
body.page-id-895 .elementor-element-44f9edf {
  background-color: transparent !important;
  background-image: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding-top: 28px !important;
  padding-bottom: 8px !important;
}
/* Partenaires : 1re section = uniquement le H1 doublé → on la retire */
body.page-id-909 .elementor-element-a8b9bc8c {
  display: none !important;
}
body.page-id-845 .elementor-element-89378f2,
body.page-id-874 .elementor-element-20ee5f5,
body.page-id-909 .elementor-element-1035ba63,
body.page-id-895 .elementor-element-e0800e9 {
  display: none !important;
}

/* Sur Partenaires, resserrer le début du vrai contenu */
body.page-id-909 .elementor > .e-con.e-parent:nth-of-type(2) {
  padding-top: 36px !important;
}


/* --------------------------------------------------------------------------
   Polish UI pages intérieures (rythme, typo, médias)
   -------------------------------------------------------------------------- */
body.att-is-interior .elementor > .e-con.e-parent {
  --att-section-pad: clamp(28px, 4vw, 48px);
}
body.att-is-interior .elementor > .e-con.e-parent:not(:first-of-type) {
  padding-top: var(--att-section-pad) !important;
  padding-bottom: var(--att-section-pad) !important;
}
body.att-is-interior .elementor h2.elementor-heading-title {
  margin-bottom: 0.45em !important;
}
body.att-is-interior .elementor h3.elementor-heading-title {
  font-size: clamp(1.05rem, 1.8vw, 1.25rem) !important;
  font-weight: 700 !important;
  letter-spacing: -0.01em;
  color: var(--att-ink) !important;
}
body.att-is-interior .elementor-widget-text-editor {
  font-size: 1.02rem;
  line-height: 1.65;
  color: var(--att-muted);
}
body.att-is-interior .elementor-widget-text-editor a,
body.att-is-interior .elementor-widget-text-editor a:visited {
  color: var(--att-red) !important;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1.5px;
}
body.att-is-interior .elementor-widget-text-editor a:hover {
  color: var(--att-red-dark) !important;
  text-decoration-thickness: 2px;
}
body.att-is-interior .elementor-widget-text-editor ul,
body.att-is-interior .elementor-widget-text-editor ol {
  padding-left: 1.15em;
  margin: 0.6em 0 0;
}
body.att-is-interior .elementor-widget-text-editor li {
  margin: 0.35em 0;
  line-height: 1.55;
}
body.att-is-interior .elementor-widget-image img,
body.att-is-interior .elementor-widget-google_maps iframe,
body.att-is-interior .elementor iframe[src*="google.com/maps"],
body.att-is-interior .elementor iframe[src*="maps"] {
  border-radius: 14px !important;
  box-shadow: var(--att-shadow);
}
body.att-is-interior .elementor-widget-image img {
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}
body.att-is-interior .elementor-widget-image a:hover img {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.12);
}
/* Formulaire contact — champs lisibles sur fond blanc */
body.att-is-interior .wpforms-container input[type="text"],
body.att-is-interior .wpforms-container input[type="email"],
body.att-is-interior .wpforms-container input[type="tel"],
body.att-is-interior .wpforms-container textarea,
body.att-is-interior .wpforms-container select {
  border: 1.5px solid rgba(28, 28, 30, 0.22) !important;
  border-radius: 10px !important;
  padding: 12px 14px !important;
  font-family: var(--att-font-body) !important;
  background: #f4f4f5 !important;
  color: var(--att-ink) !important;
  box-shadow: none !important;
}
body.att-is-interior .wpforms-container input::placeholder,
body.att-is-interior .wpforms-container textarea::placeholder {
  color: rgba(28, 28, 30, 0.45) !important;
}
body.att-is-interior .wpforms-container input:focus,
body.att-is-interior .wpforms-container textarea:focus,
body.att-is-interior .wpforms-container select:focus {
  background: #fff !important;
  border-color: var(--att-red) !important;
  outline: 3px solid rgba(215, 40, 47, 0.18) !important;
  outline-offset: 0 !important;
}
body.att-is-interior .wpforms-submit {
  background: var(--att-red) !important;
  border: 0 !important;
  border-radius: 10px !important;
  font-family: var(--att-font-display) !important;
  font-weight: 700 !important;
  padding: 12px 22px !important;
  box-shadow: 0 8px 20px rgba(215, 40, 47, 0.28) !important;
}
body.att-is-interior .wpforms-submit:hover {
  background: var(--att-red-dark) !important;
}
body.att-is-interior .header-image-box h1 {
  text-wrap: balance;
}
body.att-is-interior .header-image-box .crumb-box {
  transition: background-color 0.2s ease, transform 0.2s ease;
}
body.att-is-interior .header-image-box .crumb-box:hover {
  background: rgba(0, 0, 0, 0.48);
}
/* --------------------------------------------------------------------------
   Footer 1.0.24 — bande unifiée + nav + a11y
   -------------------------------------------------------------------------- */
footer.footer-side {
  background: #121212;
  color: rgba(255, 255, 255, 0.92);
  margin-top: 0;
  border-top: 3px solid var(--att-red);
}
footer.footer-side .footer-widget {
  background: #121212 !important;
  padding: 8px 0 4px;
}
footer.footer-side .footer-area:empty {
  display: none !important;
}
/* WP custom HTML = widget_text / widget_custom_html (pas toujours .widget) */
footer.footer-side .footer-area.col-lg-12:not(:has(aside)):not(:has(.att-social)):not(:has(.att-footer-nav)) {
  display: none !important;
}
.att-social {
  max-width: 720px;
  margin: 0 auto;
  padding: 32px 16px 8px;
}
.att-footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 18px;
  max-width: 720px;
  margin: 4px auto 18px;
  padding: 0 16px 8px;
  list-style: none;
}
.att-footer-nav a {
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  font-family: var(--att-font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.att-footer-nav a:hover {
  color: #fff;
  border-bottom-color: var(--att-red);
}
.att-footer-nav a:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
  border-radius: 4px;
  color: #fff;
}
footer.footer-side .footer-copyright {
  background: #0c0c0c !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  opacity: 1;
}
footer.footer-side .footer-copyright .container {
  max-width: 1100px;
}
footer.footer-side .footer-copyright .col-lg-6:last-child,
footer.footer-side .footer-copyright a[href*="wordpress.org"],
footer.footer-side .footer-copyright a[href*="wpelemento"] {
  display: none !important;
}
footer.footer-side .footer-copyright .col-lg-6:first-child {
  flex: 0 0 100%;
  max-width: 100%;
  width: 100%;
}
footer.footer-side .att-footer-copy {
  visibility: visible !important;
  text-align: center !important;
  color: rgba(255, 255, 255, 0.78) !important;
  font-size: 12px !important;
  letter-spacing: 0.04em;
  font-weight: 500;
  margin: 0;
  padding: 14px 12px !important;
}
footer.footer-side .scroll-up,
footer.footer-side a.scrollup,
footer.footer-side a[href="#tobottom"] {
  background: var(--att-red) !important;
  color: #fff !important;
  border: 0 !important;
  border-radius: 12px !important;
  box-shadow: 0 8px 20px rgba(215, 40, 47, 0.35) !important;
}
footer.footer-side a[href="#tobottom"]:focus-visible,
footer.footer-side a.scrollup:focus-visible {
  outline: 3px solid #fff !important;
  outline-offset: 3px !important;
}
@media (max-width: 767px) {
  .att-footer-nav {
    gap: 6px 14px;
    margin-bottom: 12px;
  }
  .att-footer-nav a {
    font-size: 13px;
  }
  .att-social {
    padding: 24px 12px 4px;
  }
}

/* Pages légales — desktop + mobile */
body.att-is-interior .att-legal.att-sec{
  max-width:42rem;
  padding-top:clamp(20px,3vw,36px);
  padding-bottom:clamp(36px,6vw,64px);
}
body.att-is-interior .att-legal .att-kicker{
  margin:0 0 .5rem!important;
  color:var(--att-red,#d7282f)!important;
  font-size:.78rem!important;
  font-weight:750!important;
  letter-spacing:.06em;
  text-transform:uppercase;
}
body.att-is-interior .att-legal .att-lead{
  margin:0 0 .85rem!important;
  font-family:var(--att-font-display,"Barlow",sans-serif);
  font-size:clamp(1.35rem,3.2vw,1.75rem)!important;
  font-weight:800!important;
  line-height:1.25!important;
  color:var(--att-ink,#1c1c1e)!important;
}
body.att-is-interior .att-legal .att-fill-note{
  margin:0 0 1.4rem!important;
  padding:10px 12px;
  border-radius:10px;
  background:rgba(215,40,47,.07);
  color:var(--att-muted,#5f6168)!important;
  font-size:.92rem!important;
  line-height:1.45!important;
}
body.att-is-interior .att-legal h2{
  margin:1.55rem 0 .55rem!important;
  font-family:var(--att-font-display,"Barlow",sans-serif)!important;
  font-size:clamp(1.1rem,2.4vw,1.28rem)!important;
  font-weight:800!important;
  color:var(--att-ink,#1c1c1e)!important;
}
body.att-is-interior .att-legal p{
  margin:0 0 .85rem!important;
  font-size:1rem!important;
  line-height:1.6!important;
  color:var(--att-muted,#5f6168)!important;
}
body.att-is-interior .att-legal a{color:var(--att-red-dark,#b51f25);text-underline-offset:2px}
body.att-is-interior .att-legal .att-legal-list{
  list-style:none!important;margin:0 0 .9rem!important;padding:0!important;display:grid;gap:8px
}
body.att-is-interior .att-legal .att-legal-list li{
  margin:0!important;padding:10px 12px;border-radius:10px;
  background:rgba(28,28,30,.03);border:1px solid rgba(28,28,30,.06);
  font-size:.98rem!important;line-height:1.5!important;color:var(--att-ink,#1c1c1e)!important;
  overflow-wrap:anywhere;
}
body.att-is-interior .att-legal .att-legal-list b{
  display:inline-block;min-width:7.5em;margin-right:.35em;
  color:var(--att-muted,#5f6168);font-weight:700;font-size:.86em
}
body.att-is-interior .att-legal mark.att-fill{
  padding:.08em .35em;border-radius:4px;background:#fff3bf;color:#5c4813;font-weight:650
}
@media (max-width:767px){
  body.att-is-interior .att-legal.att-sec{padding-left:14px;padding-right:14px}
  body.att-is-interior .att-legal .att-legal-list b{display:block;min-width:0;margin:0 0 .2em}
  body.att-is-interior .att-legal .att-legal-list li,
  body.att-is-interior .att-legal p{font-size:.95rem!important}
}

@media (prefers-reduced-motion: reduce) {
  body.att-is-interior .elementor-widget-image img,
  body.att-is-interior .header-image-box .crumb-box {
    transition: none;
  }
  body.att-is-interior .elementor-widget-image a:hover img {
    transform: none;
  }
}
/* --------------------------------------------------------------------------
   Layouts pages intérieures (contenu préservé — présentation seule)
   -------------------------------------------------------------------------- */

/* --- Partenaires : texte + logo/CTA en 2 colonnes desktop --- */
@media (min-width: 992px) {
  body.page-id-909 .elementor-element-f5296da > .e-con-inner,
  body.page-id-909 .elementor-element-a6017e85 > .e-con-inner {
    display: grid !important;
    grid-template-columns: minmax(0, 1.25fr) minmax(220px, 280px);
    column-gap: clamp(28px, 4vw, 48px);
    row-gap: 18px;
    align-items: center;
    max-width: 980px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    width: 100%;
  }
  body.page-id-909 .elementor-element-9b4df03,
  body.page-id-909 .elementor-element-929939f6 {
    grid-column: 1;
    grid-row: 1 / span 2;
    align-self: center;
  }
  body.page-id-909 .elementor-element-9aaae8c,
  body.page-id-909 .elementor-element-bf57270 {
    grid-column: 2;
    grid-row: 1;
    justify-self: center;
    margin: 0 !important;
  }
  body.page-id-909 .elementor-element-d0dd6f5,
  body.page-id-909 .elementor-element-2b2dc748 {
    grid-column: 2;
    grid-row: 2;
    justify-self: center;
    margin: 0 !important;
  }
  /* Alternance visuelle 2e partenaire : logo à gauche */
  body.page-id-909 .elementor-element-a6017e85 > .e-con-inner {
    grid-template-columns: minmax(220px, 280px) minmax(0, 1.25fr);
  }
  body.page-id-909 .elementor-element-a6017e85 .elementor-element-bf57270 {
    grid-column: 1;
    grid-row: 1;
  }
  body.page-id-909 .elementor-element-a6017e85 .elementor-element-2b2dc748 {
    grid-column: 1;
    grid-row: 2;
  }
  body.page-id-909 .elementor-element-a6017e85 .elementor-element-929939f6 {
    grid-column: 2;
    grid-row: 1 / span 2;
  }
}
body.page-id-909 .elementor-element-f5296da,
body.page-id-909 .elementor-element-a6017e85 {
  max-width: 1100px;
  margin-left: auto !important;
  margin-right: auto !important;
}
body.page-id-909 .elementor-element-a6017e85 {
  border-top: 1px solid var(--att-line);
}
body.page-id-909 .elementor-widget-image img {
  max-height: 120px;
  width: auto !important;
  object-fit: contain;
  box-shadow: none !important;
  border-radius: 0 !important;
}
body.page-id-909 .elementor-widget-text-editor p[style*="uppercase"],
body.page-id-909 .elementor-widget-text-editor p[style*="letter-spacing"] {
  color: #4a4c52 !important; /* contraste eyebrow */
  font-weight: 600 !important;
  letter-spacing: 0.14em !important;
}
body.page-id-909 .elementor-widget-text-editor h2 {
  font-family: var(--att-font-display) !important;
  color: var(--att-ink) !important;
  font-weight: 800 !important;
  letter-spacing: -0.02em;
  text-align: left !important;
}
body.page-id-909 .elementor-widget-text-editor p {
  text-align: left !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  max-width: none !important;
}
body.page-id-909 .elementor-widget-text-editor p[style*="uppercase"] {
  text-align: left !important;
}
@media (max-width: 991px) {
  body.page-id-909 .elementor-widget-text-editor h2,
  body.page-id-909 .elementor-widget-text-editor p,
  body.page-id-909 .elementor-widget-text-editor p[style*="uppercase"] {
    text-align: center !important;
  }
  body.page-id-909 .elementor-element-f5296da > .e-con-inner,
  body.page-id-909 .elementor-element-a6017e85 > .e-con-inner {
    max-width: 36rem;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}

/* --- Accès & plan : adresse + carte --- */
body.page-id-845 .elementor-element-9a6e78e > .e-con-inner {
  max-width: 1100px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  gap: clamp(24px, 3vw, 40px) !important;
  align-items: start !important;
}
body.page-id-845 .elementor-element-d444339 {
  padding: 8px 4px 8px 0;
}
body.page-id-845 .elementor-element-05bd50f {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--att-ink);
}
body.page-id-845 .elementor-element-05bd50f strong {
  font-family: var(--att-font-display);
  font-weight: 700;
  font-size: 1.15em;
}
body.page-id-845 .elementor-element-e45d31b {
  margin-top: 8px !important;
}
body.page-id-845 .elementor-element-8f520fa iframe {
  min-height: 280px;
  width: 100% !important;
}
body.page-id-845 .elementor-element-af2e2db {
  max-width: 820px;
  margin-left: auto !important;
  margin-right: auto !important;
}
body.page-id-845 .elementor-icon-list-items {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}
body.page-id-845 .elementor-icon-list-item {
  display: flex !important;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px !important;
  border-radius: 12px;
  background: rgba(28, 28, 30, 0.03);
  border: 1px solid var(--att-line);
}
body.page-id-845 .elementor-icon-list-text {
  color: var(--att-ink) !important;
  font-size: 0.98rem !important;
  line-height: 1.55 !important;
}
body.page-id-845 .elementor-icon-list-icon {
  color: var(--att-red) !important;
  margin-top: 2px;
}

/* --- Contact : formulaire recentré, lisible --- */
body.page-id-874 .elementor-element-a9f78fc {
  max-width: 720px;
  margin-left: auto !important;
  margin-right: auto !important;
}
body.page-id-874 .elementor-element-a9f78fc > .e-con-inner {
  display: flex !important;
  flex-direction: column !important;
  gap: 18px !important;
}
/* CTA Accès & plan : sous l’intro (hors flux du formulaire) */
body.page-id-874 .elementor-element-1c9b0f4 .elementor-element-db0a39d {
  margin: 14px auto 4px !important;
  text-align: center !important;
}
body.page-id-874 .elementor-element-1c9b0f4 .elementor-element-db0a39d .elementor-button {
  display: inline-flex !important;
}
/* Filet de secours si le bouton est encore dans le bloc formulaire */
body.page-id-874 .elementor-element-a9f78fc .elementor-element-9aa860b {
  order: 1;
}
body.page-id-874 .elementor-element-a9f78fc .elementor-element-3f54e8d {
  order: 2;
}
body.page-id-874 .elementor-element-a9f78fc .elementor-element-e1560f1 {
  order: 3;
}
body.page-id-874 .elementor-element-a9f78fc .elementor-element-db0a39d {
  order: 4;
  margin: 20px 0 0 !important;
  text-align: center !important;
}
body.page-id-874 .wpforms-container {
  margin-top: 8px !important;
}
/* Champ fantôme WPForms (label aléatoire) : le masquer comme un honeypot */
#wpforms-609-field_4-container {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
}

/* --- Adhésion : CTAs groupés + tableau tarifs --- */
body.page-id-895 .elementor-element-1226614 > .e-con-inner {
  max-width: 920px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 16px !important;
}
body.page-id-895 .elementor-element-e94d8cc,
body.page-id-895 .elementor-element-831835a,
body.page-id-895 .elementor-element-db5a737 {
  align-self: center;
}
body.page-id-895 .elementor-element-e94d8cc {
  margin-bottom: 4px !important;
}
body.page-id-895 .elementor-element-831835a .elementor-button,
body.page-id-895 .elementor-element-db5a737 .elementor-button {
  background: #fff !important;
  color: var(--att-red) !important;
  border: 2px solid var(--att-red) !important;
  box-shadow: none !important;
}
body.page-id-895 .elementor-element-831835a .elementor-button span,
body.page-id-895 .elementor-element-db5a737 .elementor-button span {
  color: var(--att-red) !important;
}
body.page-id-895 .elementor-element-831835a .elementor-button:hover,
body.page-id-895 .elementor-element-db5a737 .elementor-button:hover {
  background: var(--att-red) !important;
  color: #fff !important;
}
body.page-id-895 .elementor-element-831835a .elementor-button:hover span,
body.page-id-895 .elementor-element-db5a737 .elementor-button:hover span {
  color: #fff !important;
}
body.page-id-895 .elementor-element-3c06b80 table {
  width: 100% !important;
  border-collapse: collapse !important;
  font-family: var(--att-font-body) !important;
  font-size: 15px !important;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid var(--att-line) !important;
}
body.page-id-895 .elementor-element-3c06b80 thead tr {
  background: rgba(215, 40, 47, 0.06) !important;
}
body.page-id-895 .elementor-element-3c06b80 th {
  font-family: var(--att-font-display) !important;
  font-weight: 700 !important;
  color: var(--att-ink) !important;
  padding: 14px 16px !important;
  border-bottom: 1px solid var(--att-line) !important;
  text-align: left !important;
}
body.page-id-895 .elementor-element-3c06b80 td {
  padding: 14px 16px !important;
  border-bottom: 1px solid var(--att-line) !important;
  color: var(--att-ink);
  vertical-align: top;
}
body.page-id-895 .elementor-element-3c06b80 tbody tr:last-child td {
  border-bottom: 0 !important;
}
body.page-id-895 .elementor-element-3c06b80 tbody tr:nth-child(even) {
  background: rgba(28, 28, 30, 0.025);
}
body.page-id-895 .elementor-element-9c1ec81 {
  text-align: center;
  margin-top: 8px !important;
}

/* Conteneur page intérieur unifié */
body.att-is-interior #content .container {
  max-width: 1140px !important;
}

/* --------------------------------------------------------------------------
   Footer social
   -------------------------------------------------------------------------- */
.att-social {
  text-align: center;
  padding: 28px 16px 14px;
}
.att-social__label {
  margin: 0 0 16px;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 600;
}
.att-social__links {
  display: flex;
  justify-content: center;
  gap: 16px;
}
.att-social__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  color: #fff;
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease, color 0.2s ease,
    background-color 0.2s ease, box-shadow 0.2s ease;
  background: rgba(255, 255, 255, 0.12);
}
.att-social__link:hover {
  color: #fff;
  border-color: var(--att-red);
  background: var(--att-red);
  transform: translateY(-2px) scale(1.06);
  box-shadow: 0 8px 20px rgba(215, 40, 47, 0.4);
}
.att-social__link:focus-visible {
  color: #fff;
  border-color: #fff;
  background: var(--att-red);
  outline: 3px solid #fff;
  outline-offset: 3px;
  box-shadow: 0 0 0 6px rgba(215, 40, 47, 0.55);
}
.att-social__link svg {
  display: block;
  width: 22px;
  height: 22px;
}
@media (max-width: 767px) {
  .att-social { padding: 22px 12px 10px; }
  .att-social__link { width: 46px; height: 46px; }
}

/* Footer : masquer promo thème / WordPress, garder une ligne club */
.footer-copyright a[href*="wpelemento"],
.footer-copyright a[href*="wordpress.org"] {
  display: none !important;
}
.footer-copyright .col-lg-6:last-child {
  display: none !important;
}
.footer-copyright .col-lg-6:first-child p {
  visibility: hidden; /* texte thème masqué jusqu’à remplacement JS */
  position: relative;
  margin: 0;
  min-height: 1.2em;
}
.footer-copyright .col-lg-6:first-child p.att-footer-copy {
  visibility: visible;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 500;
}
.att-footer-season {
  font-weight: 400;
  letter-spacing: 0.02em;
  opacity: 0.78;
}
.footer-copyright .col-lg-6:first-child p::before {
  content: none !important;
}
@media (min-width: 768px) {
  .footer-copyright .col-lg-6:first-child p {
    text-align: left;
  }
}
@media (max-width: 767px) {
  .footer-copyright .col-lg-6:first-child p {
    text-align: center;
  }
}

/* Scroll-top : moins bruyant */
.scrollup,
a.scrollup,
#scroll-top,
.scroll-top {
  border-radius: 10px !important;
  box-shadow: 0 6px 16px rgba(215, 40, 47, 0.28) !important;
}

/* --------------------------------------------------------------------------
   Timetable (conservé)
   -------------------------------------------------------------------------- */
.mptt-shortcode-table td,
.mptt-shortcode-table th { width: 160px; }
.mptt-menu { display: none; }
.tt-inner {
  position: absolute;
  width: 100%;
  margin: 0;
  padding: 0;
  float: none;
  z-index: 1;
}
.tt-inner .mptt-inner-event-content { font-size: 10px; }
.tt-peek {
  position: relative;
  overflow: hidden;
  max-height: 440px;
  border-radius: 16px;
  box-shadow: var(--att-shadow);
  transition: max-height 0.28s ease, transform 0.28s ease, box-shadow 0.28s ease;
  display: flex;
  justify-content: center;
  align-items: center;
}
.tt-peek .mptt-shortcode-table {
  background: transparent;
  margin: 0 auto;
  float: none;
}
.tt-peek:hover {
  max-height: 520px;
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.14);
  cursor: pointer;
}
@media (max-width: 770px) {
  .tt-inner { width: 100%; }
  .tt-peek .mptt-shortcode-table {
    transform: scale(0.5) translatex(-50%) translatey(-50%);
  }
}
@media (max-width: 350px) {
  .tt-peek .mptt-shortcode-table {
    transform: scale(0.25) translatex(-150%) translatey(-75%);
  }
}
@media (hover: none) {
  .tt-peek { max-height: 520px; transform: none; }
  .tt-peek:hover { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .tt-peek { transition: none; }
}

/* Boutons / liens accent club */
a,
.wp-block-button__link {
  transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}

/* --------------------------------------------------------------------------
   CTA Elementor — charte club (remplace le vert “success” par défaut)
   -------------------------------------------------------------------------- */
.elementor-button,
a.elementor-button,
.elementor-button-link,
.elementor-widget-button .elementor-button,
.elementor-button-success .elementor-button,
.elementor-button-info .elementor-button,
.elementor-button-warning .elementor-button,
.elementor-button-danger .elementor-button {
  background-color: var(--att-red) !important;
  background-image: none !important;
  color: #fff !important;
  fill: #fff !important;
  border: 0 !important;
  border-radius: 10px !important;
  box-shadow: 0 8px 20px rgba(215, 40, 47, 0.28) !important;
  font-family: var(--att-font-display) !important;
  font-weight: 700 !important;
  letter-spacing: 0.01em;
  text-shadow: none !important;
  transition: background-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.elementor-button .elementor-button-text,
.elementor-button .elementor-button-content-wrapper,
.elementor-button .elementor-button-icon,
.elementor-button span {
  color: #fff !important;
  fill: #fff !important;
}
.elementor-button:hover,
.elementor-button:focus,
a.elementor-button:hover,
a.elementor-button:focus,
.elementor-widget-button .elementor-button:hover,
.elementor-button-success .elementor-button:hover,
.elementor-button-info .elementor-button:hover {
  background-color: var(--att-red-dark) !important;
  color: #fff !important;
  box-shadow: 0 10px 24px rgba(181, 31, 37, 0.34) !important;
  transform: translateY(-1px);
}
.elementor-button:focus-visible {
  outline: 3px solid var(--att-red) !important;
  outline-offset: 3px !important;
}
@media (prefers-reduced-motion: reduce) {
  .elementor-button:hover,
  .elementor-button:focus {
    transform: none;
  }
}

/* --------------------------------------------------------------------------
   Accessibilité RGAA (design préservé)
   -------------------------------------------------------------------------- */

/* Liens d’évitement visibles au focus clavier */
a.skip-link.screen-reader-text:focus,
a.att-skip-footer.screen-reader-text:focus {
  position: fixed !important;
  top: 12px !important;
  left: 12px !important;
  z-index: 100000 !important;
  width: auto !important;
  height: auto !important;
  clip: auto !important;
  clip-path: none !important;
  padding: 12px 18px !important;
  margin: 0 !important;
  overflow: visible !important;
  background: #fff !important;
  color: var(--att-ink) !important;
  border: 2px solid var(--att-red) !important;
  border-radius: 10px !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18) !important;
}
a.att-skip-footer.screen-reader-text:focus {
  top: 64px !important; /* sous « Aller au contenu » */
}

/*
 * Sous-menus fermés : hors parcours Tab (le parent utilise left:-9999em + opacity:0,
 * ce qui laisse les liens focusables — d’où le Tab « bizarre »).
 */
#main-menu ul.sub-menu,
#main-menu ul.children,
#menu-adresse ul.sub-menu,
#menu-adresse ul.children {
  visibility: hidden !important;
  pointer-events: none !important;
}
/* Ouvert : hover souris OU .att-open / .focus (clavier). Pas :focus-within seul
   (sinon le sous-menu s’ouvre au Tab sur le parent sans être navigable). */
#main-menu li:hover > ul.sub-menu,
#main-menu li:hover > ul.children,
#main-menu li.att-open > ul.sub-menu,
#main-menu li.att-open > ul.children,
#main-menu li.focus > ul.sub-menu,
#main-menu li.focus > ul.children,
#menu-adresse li:hover > ul.sub-menu,
#menu-adresse li:hover > ul.children,
#menu-adresse li.att-open > ul.sub-menu,
#menu-adresse li.att-open > ul.children,
#menu-adresse li.focus > ul.sub-menu,
#menu-adresse li.focus > ul.children {
  visibility: visible !important;
  pointer-events: auto !important;
  opacity: 1 !important;
}

/* Desktop : ramener le panneau à sa place quand ouvert (le parent le park en left:-9999em) */
@media (min-width: 768px) {
  #main-menu li.att-open > ul.sub-menu,
  #main-menu li.att-open > ul.children,
  #main-menu li.focus > ul.sub-menu,
  #main-menu li.focus > ul.children,
  #main-menu li:hover > ul.sub-menu,
  #main-menu li:hover > ul.children,
  #menu-adresse li.att-open > ul.sub-menu,
  #menu-adresse li.att-open > ul.children,
  #menu-adresse li.focus > ul.sub-menu,
  #menu-adresse li.focus > ul.children,
  #menu-adresse li:hover > ul.sub-menu,
  #menu-adresse li:hover > ul.children {
    left: auto !important;
    right: auto !important;
  }
}

/* Focus clavier lisible (sans changer le look souris) */
a:focus-visible,
button:focus-visible,
.menu-toggle:focus-visible,
.wpforms-submit:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid var(--att-red) !important;
  outline-offset: 2px !important;
}

#menu-adresse.nav-menu > li > a:focus-visible,
#main-menu .nav-menu > li > a:focus-visible,
#main-menu a:focus-visible {
  outline: 3px solid #fff !important;
  outline-offset: 2px !important;
}

@media (max-width: 767px) {
  #menu-adresse.nav-menu > li > a:focus-visible,
  #main-menu .nav-menu > li > a:focus-visible,
  #main-menu a:focus-visible {
    outline-color: var(--att-red) !important;
  }
}

/* H1 démotés (doublons) : même look si jamais visibles */
p.att-demoted-h1.elementor-heading-title,
.header-image-box p.att-demoted-h1 {
  margin: 0;
}

/* Accueil : le H1 thématique « Accueil » est démoté en JS — on le masque visuellement */
body.att-is-home .header-image-box p.att-demoted-h1 {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* --------------------------------------------------------------------------
   Accueil — rythme, a11y code embeds, mobile
   -------------------------------------------------------------------------- */

/* Gap parent .mt-5 sous le header (comme pages intérieures) */
body.att-is-home #content,
body.att-is-home #content.mt-5 {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* Widget HTML home : <p><style>/<script> hors flux + hors a11y
   (les règles CSS / le JS restent actifs) */
body.att-is-home .elementor-element-5cbeb66d > p:has(> style),
body.att-is-home .elementor-element-5cbeb66d > p:has(> script),
body.att-is-home .elementor-element-5cbeb66d > p[hidden] {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
  pointer-events: none !important;
}

/* Conteneur home : pleine largeur propre */
body.att-is-home #content .container {
  max-width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}
body.att-is-home .elementor-element-1f8b7dcb,
body.att-is-home .elementor-element-5cbeb66d {
  max-width: 100%;
}

/* Hero : respiration + CTA */
body.att-is-home .att-hero-in {
  padding-left: clamp(20px, 4vw, 56px) !important;
  padding-right: clamp(20px, 4vw, 56px) !important;
}
body.att-is-home .att-hero h1 {
  letter-spacing: -0.03em;
  text-wrap: balance;
}
body.att-is-home .att-hero .att-ctas {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 12px !important;
  margin-top: 8px;
}
body.att-is-home .att-hero .att-btn {
  min-height: 48px;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* Sections home : rythme vertical unifié */
body.att-is-home .att-sec {
  padding-top: clamp(36px, 5vw, 64px) !important;
  padding-bottom: clamp(36px, 5vw, 64px) !important;
}
body.att-is-home .att-sec .att-kicker {
  letter-spacing: 0.12em;
}
body.att-is-home .att-sec h2 {
  letter-spacing: -0.02em;
  text-wrap: balance;
}

/* Cartes / grilles : hover discret (préserve le look) */
@media (hover: hover) and (pointer: fine) {
  body.att-is-home .att-act,
  body.att-is-home .att-evc,
  body.att-is-home a.att-act {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }
  body.att-is-home .att-act:hover,
  body.att-is-home .att-evc:hover,
  body.att-is-home a.att-act:hover {
    transform: translateY(-2px);
  }
}
@media (prefers-reduced-motion: reduce) {
  body.att-is-home .att-act,
  body.att-is-home .att-evc,
  body.att-is-home a.att-act {
    transition: none;
  }
  body.att-is-home .att-act:hover,
  body.att-is-home .att-evc:hover,
  body.att-is-home a.att-act:hover {
    transform: none;
  }
}

/* Accueil — carrousel : pas de flash pendant le rebuild */
body.att-is-home #att-car-track {
  opacity: 0;
  transition: opacity 0.2s ease;
  min-height: 280px;
}
body.att-is-home #att-car-track.att-car-ready {
  opacity: 1;
}
@media (prefers-reduced-motion: reduce) {
  body.att-is-home #att-car-track {
    transition: none;
  }
}

/* Accueil — photos cartes : bandeau 4/3, texte (tag/titre/résumé) toujours visible */
body.att-is-home .att-car .att-evc {
  height: auto !important;
  overflow: hidden;
}
body.att-is-home .att-evc .att-ph {
  position: relative;
  overflow: hidden;
  padding: 0 !important;
  font-size: 0 !important;
  color: transparent !important;
  background: #e8e4de !important;
  aspect-ratio: 4 / 3;
  flex: 0 0 auto;
  width: 100%;
}
body.att-is-home .att-evc .att-ph.pink,
body.att-is-home .att-evc .att-ph.red,
body.att-is-home .att-evc .att-ph.gold {
  background: #e8e4de !important;
}
/* Sans photo : même emplacement que les images, titre dans le cadre, texte carte intact */
body.att-is-home .att-evc .att-ph:not(:has(img)) {
  display: flex !important;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto !important;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  aspect-ratio: 4 / 3;
  padding: 20px 16px !important;
  font-family: var(--att-font-display, "Barlow", sans-serif) !important;
  font-size: clamp(1.15rem, 2.4vw, 1.45rem) !important;
  font-weight: 800 !important;
  letter-spacing: -0.02em;
  line-height: 1.2 !important;
  text-align: center;
  color: var(--att-red, #d7282f) !important;
  background: #f7f5f2 !important;
}
body.att-is-home .att-evc .att-ph:not(:has(img)).pink,
body.att-is-home .att-evc .att-ph:not(:has(img)).red,
body.att-is-home .att-evc .att-ph:not(:has(img)).gold {
  background: #f7f5f2 !important;
  color: var(--att-red, #d7282f) !important;
}
body.att-is-home .att-car .att-evc > img,
body.att-is-home .att-evc .att-ph img {
  width: 100% !important;
  height: auto !important;
  max-height: none !important;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
  display: block;
  flex: 0 0 auto;
}

/* Accueil — tags alignés comme Vie du club (.att-tag) */
body.att-is-home .att-evc .att-evt {
  display: inline-flex !important;
  align-items: center;
  max-width: 100%;
  font-size: 0.72rem !important;
  font-weight: 750 !important;
  letter-spacing: 0.04em !important;
  text-transform: uppercase;
  padding: 5px 12px !important;
  border-radius: 999px !important;
  margin: 0 0 0.55em !important;
  line-height: 1.25 !important;
  background: rgba(215, 40, 47, 0.1) !important;
  color: var(--att-red, #d7282f) !important;
}
body.att-is-home .att-evc .att-evt.pink {
  color: #e5317a !important;
  background: rgba(229, 49, 122, 0.14) !important;
}
/* .gold = meme rendu que Vie du club (.att-tag.gold sans variante) */
body.att-is-home .att-evc h3 {
  margin: 0 0 0.45em !important;
  line-height: 1.2 !important;
}
body.att-is-home .att-evc > div:not(.att-ph) {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex: 1 1 auto;
  min-height: 0;
}
body.att-is-home .att-evc > div:not(.att-ph) p {
  display: block !important;
  margin: 0 !important;
  opacity: 1 !important;
  visibility: visible !important;
  color: var(--att-muted, #5f6168) !important;
  font-size: 0.92rem !important;
  line-height: 1.4 !important;
}


/* Une place pour chacun : 4 cartes en 1 ligne (desktop / tablette large) */
body.att-is-home .att-g4 {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: clamp(10px, 1.4vw, 16px) !important;
}
body.att-is-home .att-g4 > .att-act {
  min-width: 0;
}
@media (max-width: 720px) {
  body.att-is-home .att-g4 {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}
@media (max-width: 480px) {
  body.att-is-home .att-g4 {
    grid-template-columns: 1fr !important;
  }
}

/* Bandeau Stages jeunes sous les 4 cartes — compact */
body.att-is-home .att-stage-strip {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
  justify-content: space-between;
  background: #fdf4f4;
  border: 1.5px solid var(--att-red, #d7262c);
  border-radius: 14px;
  padding: 12px 16px;
}
body.att-is-home .att-stage-strip > div {
  min-width: 0;
  flex: 1 1 16rem;
}
body.att-is-home .att-stage-strip .dot {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--att-red, #d7262c);
  color: #fff;
  border-radius: 999px;
  padding: 0.25em 0.6em;
  margin: 0 0 4px;
  line-height: 1.2;
}
body.att-is-home .att-stage-strip b {
  display: block;
  font-family: var(--att-font-display, "Barlow", sans-serif);
  font-size: 1.05rem;
  line-height: 1.25;
  color: var(--att-ink, #1c1c1e);
  font-weight: 800;
}
body.att-is-home .att-stage-strip p {
  margin: 2px 0 0;
  color: var(--att-muted, #5f6168);
  font-size: 0.88rem;
  line-height: 1.35;
  max-width: none;
}
body.att-is-home .att-stage-strip .att-btn {
  flex-shrink: 0;
  padding: 0.65em 1.15em !important;
  font-size: 0.92rem !important;
}
@media (max-width: 600px) {
  body.att-is-home .att-stage-strip {
    padding: 12px 14px;
  }
  body.att-is-home .att-stage-strip .att-btn {
    width: 100%;
    justify-content: center;
  }
}

/* Partenaires home */
body.att-is-home .att-spons {
  gap: clamp(20px, 3vw, 40px);
}
body.att-is-home .att-spons img {
  max-height: 72px;
  width: auto;
  object-fit: contain;
}

/* --- Mobile home --- */
@media (max-width: 767px) {
  body.att-is-home .att-hero {
    min-height: min(100svh, 720px) !important;
  }
  body.att-is-home .att-hero-in {
    padding: 220px 18px 56px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-end !important;
  }
  body.att-is-home .att-hero h1 {
    font-size: clamp(1.85rem, 8.2vw, 2.35rem) !important;
    line-height: 1.12 !important;
    max-width: 18ch;
  }
  body.att-is-home .att-hero .att-lead {
    font-size: 1rem !important;
    line-height: 1.5 !important;
    max-width: 36ch;
  }
  body.att-is-home .att-hero .att-ctas {
    flex-direction: column !important;
    align-items: stretch !important;
    width: 100%;
    gap: 10px !important;
  }
  body.att-is-home .att-hero .att-btn {
    width: 100% !important;
    justify-content: center !important;
    text-align: center !important;
    box-sizing: border-box !important;
  }
  body.att-is-home .att-sec {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
  body.att-is-home .att-g4,
  body.att-is-home .att-grid,
  body.att-is-home .att-lvls {
    gap: 12px !important;
  }
  body.att-is-home .att-num {
    border-radius: 16px;
  }
  body.att-is-home .att-une {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  body.att-is-home .att-car {
    margin-inline: -4px;
  }
  body.att-is-home .att-spons {
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px !important;
  }
  body.att-is-home .att-spons img {
    max-height: 56px;
  }

  /* Pages intérieures mobile : padding contenu + CTA pleine largeur */
  body.att-is-interior #content .container {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
  body.att-is-interior .elementor-button-wrapper {
    width: 100%;
  }
  body.att-is-interior .elementor-button {
    width: 100% !important;
    max-width: 100% !important;
    justify-content: center !important;
    box-sizing: border-box !important;
  }
  body.page-id-895 .elementor-element-831835a,
  body.page-id-895 .elementor-element-db5a737,
  body.page-id-895 .elementor-element-e94d8cc {
    width: 100%;
    max-width: 100%;
  }
  body.page-id-845 .elementor-icon-list-item {
    padding: 12px 14px !important;
  }
}

/* --------------------------------------------------------------------------
   Pages secondaires (Équipes, Joueurs, Vie du club, Entraînements…)
   Contenu préservé — présentation + mobile + a11y focus
   -------------------------------------------------------------------------- */

body.att-is-interior .att-sec {
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(16px, 3vw, 24px);
  padding-right: clamp(16px, 3vw, 24px);
  box-sizing: border-box;
}
body.att-is-interior .att-sec > .att-kicker,
body.att-is-interior .att-sec > .att-lead,
body.att-is-interior .att-intro {
  max-width: 46rem;
}
body.att-is-interior .att-sec h2 {
  text-wrap: balance;
}

/* Panneaux d’onglets masqués (JS .att-off sur .att-ev / panels) */
.att-off {
  display: none !important;
}

/* Événements — typo / tags / faits (styles page perdus → thème) */
.att .att-ev > div > .att-tag + h3,
.att .att-ev h3 {
  font-family: var(--att-font-display, "Barlow", sans-serif) !important;
  font-size: clamp(1.28rem, 2.2vw, 1.6rem) !important;
  font-weight: 800 !important;
  letter-spacing: -0.015em;
  line-height: 1.2 !important;
  color: var(--att-ink, #1c1c1e) !important;
  margin: 0 0 0.45em !important;
}
.att .att-ev > div > p {
  font-size: 1.02rem !important;
  line-height: 1.55 !important;
  color: var(--att-muted, #5f6168) !important;
  margin: 0 0 0.9em !important;
}
.att .att-ev > div > p:last-of-type {
  font-size: 0.92rem !important;
  color: #6a6c73 !important;
  margin-bottom: 0 !important;
}
.att .att-tag {
  display: inline-flex !important;
  align-items: center;
  max-width: 100%;
  font-size: 0.72rem !important;
  font-weight: 750 !important;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--att-red, #d7282f) !important;
  background: rgba(215, 40, 47, 0.1) !important;
  padding: 5px 12px !important;
  border-radius: 999px !important;
  margin: 0 0 0.55em !important;
  line-height: 1.25 !important;
}
.att .att-tag.pink {
  color: #e5317a !important;
  background: rgba(229, 49, 122, 0.14) !important;
}
.att .att-facts {
  list-style: none !important;
  margin: 0 0 1rem !important;
  padding: 0 !important;
  display: grid !important;
  gap: 8px !important;
}
.att .att-facts li {
  display: flex !important;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.65rem;
  margin: 0 !important;
  padding: 9px 12px !important;
  background: #f7f5f2 !important;
  border-radius: 12px !important;
  font-size: 0.95rem !important;
  line-height: 1.4 !important;
  color: var(--att-ink, #1c1c1e) !important;
}
.att .att-facts li::marker {
  content: "";
}
.att .att-facts b {
  flex: 0 0 auto;
  min-width: 6.5rem;
  font-weight: 750 !important;
  color: var(--att-ink, #1c1c1e) !important;
}
.att .att-pink,
body.att-is-interior .att-pink {
  width: 100%;
  min-height: 220px;
  height: 100%;
  border-radius: 16px;
  background: linear-gradient(155deg, #f03d86 0%, #e5317a 42%, #c2185b 100%) !important;
  color: #fff !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 22px 16px;
  box-sizing: border-box;
}
.att .att-pink b {
  display: block;
  font-size: 1.2rem;
  font-weight: 800;
  color: #fff !important;
}
.att .att-pink small {
  display: block;
  margin-top: 6px;
  font-size: 0.9rem;
  font-weight: 650;
  color: rgba(255, 255, 255, 0.92) !important;
}
.att .att-pink svg path {
  fill: #fff;
}

/* Placeholder événement sans photo (ex. Assemblée générale) — pages intérieures */
body.att-is-interior .att .att-ph,
body.att-is-interior .att-ph {
  width: 100%;
  min-height: 220px;
  height: 100%;
  border-radius: 16px;
  background: #f7f5f2 !important;
  color: var(--att-ink, #1c1c1e) !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 28px 20px;
  box-sizing: border-box;
  border: 1px solid var(--att-line, rgba(28, 28, 30, 0.1));
  box-shadow: none;
}
body.att-is-interior .att .att-ph b,
body.att-is-interior .att-ph b {
  display: block;
  font-family: var(--att-font-display, "Barlow", sans-serif) !important;
  font-size: clamp(1.35rem, 2.5vw, 1.8rem) !important;
  font-weight: 800 !important;
  letter-spacing: -0.02em;
  line-height: 1.15 !important;
  color: var(--att-red, #d7282f) !important;
}
body.att-is-interior .att-ev-poster .att-ph {
  border-radius: 0;
  min-height: 220px;
}
body.att-is-interior .att-ev-slide .att-ph {
  width: 100%;
  height: 100%;
  min-height: 220px;
  border-radius: 16px;
}


/* Événements — images à gauche / texte à droite + carrousel (sans crop) */
@media (min-width: 768px) {
  body.att-is-interior .att-ev,
  body.att-is-interior .att-ev:nth-of-type(even) {
    grid-template-columns: minmax(260px, 0.92fr) minmax(0, 1.2fr) !important;
    gap: 18px !important;
    align-items: stretch !important;
    padding: 16px !important;
  }
  body.att-is-interior .att-ev:not(:has(.att-ev-media)):not(:has(.att-ev-img)) {
    grid-template-columns: 1fr !important;
  }
  body.att-is-interior .att-ev > .att-ev-media,
  body.att-is-interior .att-ev > .att-ev-img {
    width: auto !important;
    align-self: stretch;
    min-height: 100%;
    height: 100%;
  }
}
body.att-is-interior .att-ev-media--slider,
body.att-is-interior .att-ev-media--slider.att-ev-media--with-poster,
body.att-is-interior .att-ev-media--slider.att-ev-media--shots-only {
  display: flex !important;
  flex-direction: column;
  gap: 8px;
  grid-template-columns: 1fr !important;
  height: 100%;
  min-height: 260px;
}
.att-ev-slider {
  position: relative;
  flex: 1 1 auto;
  min-height: 260px;
  background: #1a1a1c;
  border-radius: 16px;
  overflow: hidden;
}
.att-ev-slide {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 10px;
  background: #1a1a1c;
}
.att-ev-slide.is-on {
  display: flex;
}
.att-ev-slide img {
  max-width: 100% !important;
  max-height: 100% !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
  aspect-ratio: auto !important;
  border-radius: 8px;
  cursor: zoom-in;
  box-shadow: none !important;
}
.att-ev-slide .att-pink {
  width: 100%;
  height: 100%;
  min-height: 0 !important;
  border-radius: 12px;
  cursor: default;
}
.att-ev-slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #1c1c1e;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}
.att-ev-slider-btn:hover {
  background: #fff;
}
.att-ev-slider-btn.prev {
  left: 8px;
}
.att-ev-slider-btn.next {
  right: 8px;
}
.att-ev-slider-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 0 4px;
}
.att-ev-slider-dot {
  width: 8px;
  height: 8px;
  border: 0;
  border-radius: 999px;
  background: rgba(28, 28, 30, 0.22);
  cursor: pointer;
  padding: 0;
}
.att-ev-slider-dot.is-on {
  background: var(--att-red, #d7282f);
  width: 18px;
}
.att-ev-slider-hint {
  margin: 0;
  text-align: center;
  font-size: 0.75rem;
  color: var(--att-muted, #5f6168);
}

/* CTA galerie sous les cartes Ã©vÃ©nement */
.att .att-ev-gal {
  display: inline-flex !important;
  align-items: center;
  gap: 0.4em;
  margin-top: 0.85em;
  padding: 0.55em 1.05em !important;
  border-radius: 999px !important;
  border: 1px solid rgba(215, 40, 47, 0.32) !important;
  background: rgba(215, 40, 47, 0.06) !important;
  color: var(--att-red, #d7282f) !important;
  font-size: 0.9rem !important;
  font-weight: 750 !important;
  line-height: 1.2 !important;
  text-decoration: none !important;
  transition:
    background-color 0.15s ease,
    border-color 0.15s ease,
    transform 0.15s ease;
}
.att .att-ev-gal::after {
  content: "\2192";
  font-weight: 700;
  transition: transform 0.15s ease;
}
.att .att-ev-gal:hover {
  background: rgba(215, 40, 47, 0.12) !important;
  border-color: var(--att-red, #d7282f) !important;
  transform: translateY(-1px);
}
.att .att-ev-gal:hover::after {
  transform: translateX(2px);
}

/* Lightbox agrandissement */
.att-lb[hidden] {
  display: none !important;
}
.att-lb {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(12, 12, 14, 0.92);
  padding: 24px;
}
.att-lb img {
  max-width: min(96vw, 1200px);
  max-height: 88vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
}
.att-lb-close,
.att-lb-nav {
  position: absolute;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  color: #1c1c1e;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}
.att-lb-close {
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  font-size: 1.4rem;
}
.att-lb-nav {
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  font-size: 1.5rem;
}
.att-lb-nav.prev {
  left: 16px;
}
.att-lb-nav.next {
  right: 16px;
}


/* Onglets : pills + scroll horizontal */
body.att-is-interior .att-tabs,
body.att-is-interior .att-stabs,
body.att-is-interior .att-evtabs {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  overscroll-behavior-x: none;
  overscroll-behavior-y: none;
  padding: 8px;
  margin: 0 0 14px;
  scroll-snap-type: none;
  background: #f3f1ed;
  border-radius: 16px;
  border: 1px solid rgba(28, 28, 30, 0.06);
}
@media (min-width: 768px) {
  body.att-is-interior .att-tabs,
  body.att-is-interior .att-stabs,
  body.att-is-interior .att-evtabs {
    scroll-snap-type: x proximity;
  }
}

/* Indice scroll horizontal : dégradé + flèches (desktop) */
body.att-is-interior .att-tabscroll{position:relative;margin:0 0 14px;overflow:hidden;border-radius:16px;overscroll-behavior-x:none}
body.att-is-interior .att-tabscroll>.att-tabs,
body.att-is-interior .att-tabscroll>.att-stabs,
body.att-is-interior .att-tabscroll>.att-evtabs{margin-bottom:0}
body.att-is-interior .att-tabscroll-fade{position:absolute;top:0;bottom:0;width:36px;z-index:2;pointer-events:none;opacity:0}
body.att-is-interior .att-tabscroll-fade.left{left:0;background:linear-gradient(90deg,#f3f1ed 25%,rgba(243,241,237,0))}
body.att-is-interior .att-tabscroll-fade.right{right:0;background:linear-gradient(270deg,#f3f1ed 25%,rgba(243,241,237,0))}
body.att-is-interior .att-tabscroll.has-left .att-tabscroll-fade.left,
body.att-is-interior .att-tabscroll.has-right .att-tabscroll-fade.right{opacity:1}
body.att-is-interior .att-tabscroll-btn{position:absolute;top:50%;transform:translateY(-50%);z-index:3;width:30px;height:30px;padding:0;border:1px solid rgba(28,28,30,.12);border-radius:999px;background:#fff;color:var(--att-ink,#1c1c1e);font-size:1.15rem;line-height:1;box-shadow:0 2px 8px rgba(28,28,30,.1);cursor:pointer;opacity:0;pointer-events:none;transition:background-color .15s ease,color .15s ease,border-color .15s ease}
body.att-is-interior .att-tabscroll-btn.prev{left:6px}
body.att-is-interior .att-tabscroll-btn.next{right:6px}
body.att-is-interior .att-tabscroll.has-left .att-tabscroll-btn.prev,body.att-is-interior .att-tabscroll.has-right .att-tabscroll-btn.next{opacity:1;pointer-events:auto}
body.att-is-interior .att-tabscroll-btn:hover,
body.att-is-interior .att-tabscroll-btn:focus-visible{background:var(--att-red,#d7282f);color:#fff;border-color:var(--att-red,#d7282f);outline:none}
@media(min-width:768px){body.att-is-interior .att-tab,body.att-is-interior .att-stab,body.att-is-interior .att-evtab{scroll-snap-align:center}body.att-is-interior .att-tabscroll.is-scrollable>.att-tabs,body.att-is-interior .att-tabscroll.is-scrollable>.att-stabs,body.att-is-interior .att-tabscroll.is-scrollable>.att-evtabs{scrollbar-width:none}body.att-is-interior .att-tabscroll.is-scrollable>.att-tabs::-webkit-scrollbar,body.att-is-interior .att-tabscroll.is-scrollable>.att-stabs::-webkit-scrollbar,body.att-is-interior .att-tabscroll.is-scrollable>.att-evtabs::-webkit-scrollbar{display:none}}
@media(max-width:767px){body.att-is-interior .att-tabscroll-btn,body.att-is-interior .att-tabscroll-fade{display:none}body.att-is-interior .att-tabs,body.att-is-interior .att-stabs,body.att-is-interior .att-evtabs{scrollbar-width:none}body.att-is-interior .att-tabs::-webkit-scrollbar,body.att-is-interior .att-stabs::-webkit-scrollbar,body.att-is-interior .att-evtabs::-webkit-scrollbar{display:none}}

body.att-is-interior .att-tab,
body.att-is-interior .att-stab,
body.att-is-interior .att-evtab {
  flex: 0 0 auto;
  scroll-snap-align: none;
  cursor: pointer;
  appearance: none !important;
  -webkit-appearance: none !important;
  border: 1px solid rgba(28, 28, 30, 0.1) !important;
  border-radius: 999px !important;
  padding: 9px 15px !important;
  font-family: var(--att-font-body, "Source Sans 3", sans-serif) !important;
  font-size: 0.92rem !important;
  line-height: 1.2 !important;
  color: var(--att-ink, #1c1c1e) !important;
  font-weight: 650 !important;
  background: #fff !important;
  box-shadow: 0 1px 2px rgba(28, 28, 30, 0.04);
  transition:
    background-color 0.15s ease,
    color 0.15s ease,
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    transform 0.15s ease;
}
body.att-is-interior .att-tab.is-on,
body.att-is-interior .att-tab.is-active,
body.att-is-interior .att-tab[aria-selected="true"],
body.att-is-interior .att-stab.is-on,
body.att-is-interior .att-stab.is-active,
body.att-is-interior .att-stab[aria-selected="true"],
body.att-is-interior .att-evtab.is-on,
body.att-is-interior .att-evtab.is-active,
body.att-is-interior .att-evtab[aria-selected="true"] {
  background: var(--att-red) !important;
  border-color: var(--att-red) !important;
  color: #fff !important;
  font-weight: 800 !important;
  box-shadow:
    0 0 0 2px #fff,
    0 0 0 4px var(--att-red),
    0 8px 18px rgba(215, 40, 47, 0.28);
  transform: translateY(-1px);
  position: relative;
  z-index: 1;
}
body.att-is-interior .att-evtab.is-on .att-dot,
body.att-is-interior .att-evtab[aria-selected="true"] .att-dot {
  color: #ffe3e4 !important;
}
body.att-is-interior .att-tab:focus-visible,
body.att-is-interior .att-stab:focus-visible,
body.att-is-interior .att-evtab:focus-visible {
  outline: 3px solid var(--att-red) !important;
  outline-offset: 2px !important;
}

/* Cartes équipes / grilles */
body.att-is-interior .att-teams {
  gap: clamp(14px, 2vw, 20px) !important;
}
body.att-is-interior .att-team {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
@media (hover: hover) and (pointer: fine) {
  body.att-is-interior .att-team:hover {
    transform: translateY(-2px);
    box-shadow: var(--att-shadow);
  }
}
@media (prefers-reduced-motion: reduce) {
  body.att-is-interior .att-team,
  body.att-is-interior .att-tab,
  body.att-is-interior .att-stab,
  body.att-is-interior .att-evtab {
    transition: none;
  }
  body.att-is-interior .att-team:hover {
    transform: none;
  }
}
body.att-is-interior .att-team .att-links a,
body.att-is-interior .att-btn {
  min-height: 44px;
  box-sizing: border-box;
}

/* Entraînements : cartes / planning */
body.att-is-interior .att-cards,
body.att-is-interior .att-sched,
body.att-is-interior .att-coaches,
body.att-is-interior .att-photos {
  gap: clamp(12px, 2vw, 18px);
}
body.att-is-interior .att-card,
body.att-is-interior .att-grp,
body.att-is-interior .att-coach,
body.att-is-interior .att-faq details {
  border-radius: 16px;
}
body.att-is-interior .att-band {
  border-radius: 18px;
}
body.att-is-interior .att-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Galerie Modula */
body.page-id-615 .modula,
body.page-id-615 .modula-gallery {
  max-width: 1100px;
  margin-left: auto !important;
  margin-right: auto !important;
}
body.page-id-615 .modula-item {
  border-radius: 10px;
  overflow: hidden;
}
body.page-id-615 #content .container {
  max-width: 1140px !important;
}

/* Pagination galerie (?gal=N) — Précédent · 1 … n … dernière · Suivant */
body.page-id-615 .att-gal-pager {
  max-width: 1100px;
  margin: 28px auto 8px;
  padding: 0 12px 24px;
  text-align: center;
}
body.page-id-615 .att-gal-pager-meta {
  margin: 0 0 12px;
  font-size: 0.92rem;
  color: var(--att-muted, #5f6168);
}
body.page-id-615 .att-gal-pager-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 6px;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  width: 100%;
}
body.page-id-615 .att-gal-pager-list > li {
  display: flex;
  flex: 0 0 auto;
  width: auto !important;
  max-width: none !important;
  float: none !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}
body.page-id-615 .att-gal-pager-list a,
body.page-id-615 .att-gal-pager-list > li > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid rgba(28, 28, 30, 0.14);
  border-radius: 8px;
  background: #fff;
  color: var(--att-ink, #1c1c1e);
  font-size: 0.95rem;
  font-weight: 650;
  text-decoration: none;
  line-height: 1;
  box-sizing: border-box;
  white-space: nowrap;
}
body.page-id-615 .att-gal-pager-list a:hover,
body.page-id-615 .att-gal-pager-list a:focus-visible {
  border-color: var(--att-red, #d7282f);
  color: var(--att-red, #d7282f);
  outline: none;
}
body.page-id-615 .att-gal-pager-list .is-current {
  background: var(--att-red, #d7282f);
  border-color: var(--att-red, #d7282f);
  color: #fff;
}
body.page-id-615 .att-gal-pager-list .is-disabled {
  opacity: 0.38;
  cursor: not-allowed;
}
body.page-id-615 .att-gal-pager-list .att-gal-pager-ellipsis {
  border: 0;
  background: transparent;
  min-width: 1.1em;
  padding: 0 2px;
  color: var(--att-muted, #5f6168);
}
body.page-id-615 .att-gal-pager-prev,
body.page-id-615 .att-gal-pager-next {
  min-width: auto;
  padding: 0 14px;
  gap: 0;
}
/* Desktop : texte « Précédent / Suivant », flèches masquées */
body.page-id-615 .att-gal-pager-ico {
  display: none;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1;
}

/* Mobile : flèches ‹ › (bonne pratique) + une seule ligne */
@media (max-width: 720px) {
  body.page-id-615 .att-gal-pager {
    margin-top: 18px;
    padding: 0 8px 20px;
  }
  body.page-id-615 .att-gal-pager-meta {
    font-size: 0.85rem;
    margin-bottom: 10px;
  }
  body.page-id-615 .att-gal-pager-list {
    flex-wrap: nowrap;
    justify-content: center;
    gap: 3px;
    overflow: visible;
  }
  body.page-id-615 .att-gal-pager-list a,
  body.page-id-615 .att-gal-pager-list > li > span {
    min-width: 32px;
    min-height: 36px;
    padding: 0 6px;
    font-size: 0.84rem;
    border-radius: 7px;
  }
  body.page-id-615 .att-gal-pager-lbl {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
  body.page-id-615 .att-gal-pager-ico {
    display: inline-block;
  }
  body.page-id-615 .att-gal-pager-prev,
  body.page-id-615 .att-gal-pager-next {
    position: relative;
    min-width: 32px;
    padding: 0;
  }
  body.page-id-615 .att-gal-pager-list .att-gal-pager-ellipsis {
    min-width: 0.7em;
    padding: 0;
  }
}

/* Planning complet — emploi du temps (axe horaire + trous) */
body.page-id-166 #content,
body.page-id-166 #content.mt-5 {
  margin-top: 0 !important;
  padding-top: 0 !important;
}
body.page-id-166 #content .container {
  max-width: min(1480px, 100%) !important;
  padding-left: clamp(10px, 1.4vw, 22px) !important;
  padding-right: clamp(10px, 1.4vw, 22px) !important;
}
body.page-id-166 .elementor > .e-con.e-parent:first-of-type {
  padding-top: 6px !important;
  padding-bottom: 4px !important;
}
body.page-id-166 .att-plan-wrap {
  --tt-start: 600;   /* 10h00 en minutes */
  --tt-end: 1350;    /* 22h30 */
  --tt-range: 750;
  max-width: 1480px;
  margin: 0 auto;
  padding: 0 0 8px;
}
body.page-id-166 .att-plan-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 12px;
  margin-bottom: 6px;
}
body.page-id-166 .att-plan-head h2 {
  margin: 0 !important;
  font-family: var(--att-font-display) !important;
  font-size: clamp(1.1rem, 1.7vw, 1.35rem) !important;
  font-weight: 800 !important;
  letter-spacing: -0.02em;
  color: var(--att-ink) !important;
}
body.page-id-166 .att-plan-season {
  font-family: var(--att-font-display);
  font-weight: 800;
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  color: var(--att-red);
}

/* Légende des groupes (nouveaux adhérents) */
body.page-id-166 .att-plan-legend {
  margin: 0 0 14px;
  padding: 12px 14px 14px;
  border: 1px solid rgba(28, 28, 30, 0.12);
  border-radius: 12px;
  background: #faf9f7;
}
body.page-id-166 .att-plan-legend-sum {
  cursor: pointer;
  list-style: none;
  font-family: var(--att-font-display);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--att-ink, #1c1c1e);
  line-height: 1.3;
}
body.page-id-166 .att-plan-legend-sum::-webkit-details-marker {
  display: none;
}
body.page-id-166 .att-plan-legend-sum::after {
  content: " ▾";
  font-size: 0.85em;
  color: var(--att-muted, #5f6168);
  font-weight: 700;
}
body.page-id-166 .att-plan-legend[open] > .att-plan-legend-sum::after {
  content: " ▴";
}
body.page-id-166 .att-plan-legend-lead {
  margin: 10px 0 12px;
  font-size: 0.92rem;
  color: var(--att-muted, #5f6168);
  line-height: 1.45;
}
body.page-id-166 .att-plan-legend-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 18px;
  margin: 0;
}
body.page-id-166 .att-plan-legend-list > div {
  margin: 0;
  padding: 0;
}
body.page-id-166 .att-plan-legend-list dt {
  margin: 0 0 2px;
  font-size: 0.9rem;
  font-weight: 750;
  color: var(--att-ink, #1c1c1e);
  line-height: 1.3;
}
body.page-id-166 .att-plan-legend-list dd {
  margin: 0;
  font-size: 0.86rem;
  color: var(--att-muted, #5f6168);
  line-height: 1.4;
}

@media (max-width: 720px) {
  body.page-id-166 .att-plan-legend {
    margin-bottom: 12px;
    padding: 10px 12px 12px;
    border-radius: 10px;
  }
  body.page-id-166 .att-plan-legend-sum {
    font-size: 0.98rem;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
  }
  body.page-id-166 .att-plan-legend-sum::after {
    margin-left: auto;
  }
  body.page-id-166 .att-plan-legend-list {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  body.page-id-166 .att-plan-legend-lead {
    font-size: 0.88rem;
    margin: 8px 0 10px;
  }
}

/* Grille timetable */
body.page-id-166 .att-tt {
  display: none;
  flex-direction: column;
  min-height: 0;
  flex: 1;
}
body.page-id-166 .att-tt-head {
  display: grid;
  grid-template-columns: 44px repeat(7, minmax(0, 1fr));
  gap: 4px;
  margin-bottom: 4px;
  flex-shrink: 0;
}
body.page-id-166 .att-tt-head > div {
  text-align: center;
  font-family: var(--att-font-display);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  background: var(--att-red);
  border-radius: 8px;
  padding: 6px 2px;
}
body.page-id-166 .att-tt-corner {
  background: transparent !important;
  padding: 0 !important;
}
body.page-id-166 .att-tt-body {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 4px;
  flex: 1;
  min-height: 0;
  position: relative;
}
body.page-id-166 .att-tt-rail {
  position: relative;
  height: 100%;
}
body.page-id-166 .att-tt-rail span {
  position: absolute;
  left: 0;
  right: 0;
  top: calc((var(--m) - var(--tt-start)) / var(--tt-range) * 100%);
  transform: translateY(-50%);
  font-family: var(--att-font-display);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--att-muted);
  line-height: 1;
  text-align: right;
  padding-right: 2px;
}
body.page-id-166 .att-tt-cols {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
  height: 100%;
  min-height: 0;
  /* Lignes horaires (1h = 8% de 750 min) */
  background-image: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent calc(100% / 12.5 - 1px),
    rgba(28, 28, 30, 0.07) calc(100% / 12.5 - 1px),
    rgba(28, 28, 30, 0.07) calc(100% / 12.5)
  );
  border-radius: 8px;
}
body.page-id-166 .att-tt-col {
  position: relative;
  min-width: 0;
  height: 100%;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--att-line);
  border-radius: 8px;
}
body.page-id-166 .att-tt-event {
  position: absolute;
  left: 3px;
  right: 3px;
  overflow: hidden;
  box-sizing: border-box;
  background: rgba(28, 28, 30, 0.045);
  border-left: 3px solid var(--att-red);
  border-radius: 5px;
  padding: 3px 4px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1px;
}
body.page-id-166 .att-tt-event.free {
  background: rgba(215, 40, 47, 0.08);
  border-left-color: var(--att-red);
}
body.page-id-166 .att-tt-event .t {
  display: block;
  font-family: var(--att-font-display);
  font-weight: 800;
  font-size: 0.74rem;
  letter-spacing: 0.01em;
  color: var(--att-red);
  line-height: 1.15;
}
body.page-id-166 .att-tt-event .l {
  display: block;
  font-size: 0.74rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--att-ink);
}

/* Mobile list (réutilise .att-plan-day) */
body.page-id-166 .att-tt-mobile {
  display: grid;
  gap: 10px;
}
body.page-id-166 .att-plan-day {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: #fff;
  border: 1px solid var(--att-line);
  border-radius: 10px;
  overflow: hidden;
}
body.page-id-166 .att-plan-day > h3 {
  margin: 0 !important;
  padding: 10px 12px;
  text-align: left;
  font-family: var(--att-font-display) !important;
  font-size: 0.8rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff !important;
  background: var(--att-red);
}
body.page-id-166 .att-plan-slots {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px;
}
body.page-id-166 .att-plan-slot {
  background: rgba(28, 28, 30, 0.03);
  border-radius: 8px;
  padding: 10px 12px;
}
body.page-id-166 .att-plan-slot.free {
  background: rgba(215, 40, 47, 0.06);
}
body.page-id-166 .att-plan-slot .t {
  display: block;
  font-family: var(--att-font-display);
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--att-red);
  line-height: 1.2;
  margin-bottom: 2px;
}
body.page-id-166 .att-plan-slot .l {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--att-ink);
}

@media (min-width: 992px) {
  body.page-id-166 .header-image-box {
    min-height: 0 !important;
    height: auto !important;
    padding: 8px 0 6px !important;
    background-size: cover !important;
  }
  body.page-id-166 .header-image-box h1 {
    font-size: clamp(1.15rem, 1.7vw, 1.45rem) !important;
    margin: 0 0 2px !important;
    line-height: 1.15 !important;
  }
  body.page-id-166 .header-image-box .crumb-box {
    margin-top: 0 !important;
    font-size: 0.78rem;
  }
  body.page-id-166 #content {
    padding-bottom: 0 !important;
  }
  /* Hauteur auto : la légende ouverte ne doit plus écraser la grille */
  body.page-id-166 .att-plan-wrap {
    height: auto;
    max-height: none;
    display: flex;
    flex-direction: column;
    min-height: 0;
  }
  body.admin-bar.page-id-166 .att-plan-wrap {
    height: auto;
    max-height: none;
  }
  body.page-id-166 .att-plan-legend {
    flex: 0 0 auto;
  }
  body.page-id-166 .att-tt {
    display: flex;
    flex: 0 0 auto;
    /* Hauteur stable type « plein écran », independante de la légende */
    height: calc(100dvh - 168px);
    min-height: 520px;
    max-height: 780px;
  }
  body.admin-bar.page-id-166 .att-tt {
    height: calc(100dvh - 200px);
  }
  body.page-id-166 .att-tt-body {
    flex: 1 1 auto;
    min-height: 0;
    height: auto;
  }
  body.page-id-166 .att-tt-rail,
  body.page-id-166 .att-tt-cols,
  body.page-id-166 .att-tt-col {
    height: 100%;
    min-height: 0;
  }
  body.page-id-166 .att-tt-mobile {
    display: none;
  }
}
@media (max-width: 991px) {
  body.page-id-166 .att-tt {
    display: none !important;
  }
  body.page-id-166 .att-tt-mobile {
    display: grid;
  }
}
/* Ancien MPTT (si shortcode encore présent) */
body.page-id-166 .mptt-shortcode-wrapper {
  display: none !important;
}

@media (max-width: 767px) {
  body.att-is-interior .att-tabs,
  body.att-is-interior .att-stabs,
  body.att-is-interior .att-evtabs {
    margin-left: -4px;
    margin-right: -4px;
    padding: 8px 14px;
    /* Fade doux : ne pas « laver » l’onglet actif aux bords */
    mask-image: linear-gradient(90deg, transparent 0, #000 8px, #000 calc(100% - 8px), transparent 100%);
  }
  body.att-is-interior .att-tab,
  body.att-is-interior .att-stab,
  body.att-is-interior .att-evtab {
    font-size: 13px !important;
    white-space: nowrap;
  }
  body.att-is-interior .att-tab.is-on,
  body.att-is-interior .att-tab[aria-selected="true"],
  body.att-is-interior .att-stab.is-on,
  body.att-is-interior .att-stab[aria-selected="true"],
  body.att-is-interior .att-evtab.is-on,
  body.att-is-interior .att-evtab[aria-selected="true"] {
    box-shadow:
      0 0 0 2px #fff,
      0 0 0 4px var(--att-red),
      0 6px 14px rgba(215, 40, 47, 0.4);
  }
  body.att-is-interior .att-teams {
    grid-template-columns: 1fr !important;
  }
  body.att-is-interior .att-team .att-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  body.att-is-interior .att-team .att-links a {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
  body.att-is-interior .att-ctas {
    flex-direction: column;
    align-items: stretch;
  }
  body.att-is-interior .att-ctas .att-btn {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
  body.att-is-interior .att-cards,
  body.att-is-interior .att-sched {
    grid-template-columns: 1fr !important;
  }

  /* Vie du club — mobile : intro / bureau / souvenirs lisibles */
  body.att-is-interior .att-intro {
    grid-template-columns: 1fr !important;
    gap: 22px !important;
    padding-top: 28px !important;
  }
  body.att-is-interior .att-intro img {
    width: 100% !important;
    max-width: 100% !important;
  }
  body.att-is-interior .att-ev {
    padding: 14px !important;
    gap: 14px !important;
  }
  body.att-is-interior .att-ev-media--slider,
  body.att-is-interior .att-ev-slider {
    min-height: 200px !important;
  }
  body.att-is-interior .att-bureau {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }
  body.att-is-interior .att-year {
    grid-template-columns: 1fr !important;
  }
  body.att-is-interior .att-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  body.att-is-interior .att-fb {
    flex-direction: column !important;
    align-items: flex-start !important;
  }
}

/* Bouton remonter */
a[href="#tobottom"]:focus-visible,
a.scrollup:focus-visible {
  outline: 3px solid #fff !important;
  outline-offset: 3px !important;
}

/* Contraste labels footer sociaux */
.att-social__label {
  color: rgba(255, 255, 255, 0.92);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .att-social__link:hover {
    transform: none;
  }
}
/* Calendrier de la saison */
body.page-id-1284 .att-cal {
  padding-top: 8px;
  padding-bottom: 32px;
}
body.page-id-1284 .att-cal-frame {
  margin-top: 8px;
  border: 1px solid var(--att-line);
  border-radius: 14px;
  overflow: hidden;
  background: #f6f6f7;
  min-height: min(78vh, 920px);
}
body.page-id-1284 .att-cal-frame iframe {
  display: block;
  width: 100%;
  height: min(78vh, 920px);
  border: 0;
}
body.page-id-1284 .att-cal-note {
  margin-top: 12px;
  font-size: 0.92rem;
  color: var(--att-muted);
}
@media (max-width: 767px) {
  body.page-id-1284 .att-cal-frame { min-height: 60vh; }
  body.page-id-1284 .att-cal-frame iframe { height: 60vh; }
}

/* Boutons CTA (hors Elementor) */
.att-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85em 1.4em;
  border-radius: 999px;
  font-weight: 700;
  line-height: 1.1;
  text-decoration: none !important;
  transition: transform 0.15s ease, background 0.15s ease;
}
.att-btn:hover { transform: translateY(-2px); }
.att-btn-r { background: var(--att-red); color: #fff !important; }
.att-btn-r:hover { background: var(--att-red-dark); }
.att-btn-w { background: #fff; color: var(--att-ink) !important; border: 1px solid var(--att-line); }
.att-btn-w:hover { background: #f4f4f5; }
