/* Custom overrides for Sports Équilibre
   Noir et blanc dominant avec bleu pour les accents
*/

:root {
    --brand: #2563eb;
    --brand-hover: #1d4ed8;
    --text: #000000;
    --text-secondary: #1f2937;
    --muted: #6b7280;
    --card: #ffffff;
    --border: rgba(0, 0, 0, 0.1);
    --bg-light: #f9fafb;
    --site-ticker-h: 36px;
    /* Hauteur réservée sous le contenu quand le menu mobile est en bas */
    --mobile-bottom-nav-h: 56px;
  }

  /* Bandeau d’annonce (défilant) — au-dessus du menu fixe */
  .site-ticker {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10003;
    height: var(--site-ticker-h);
    background: linear-gradient(90deg, #1e3a8a, var(--brand));
    color: #fff;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
  }

  .site-ticker__viewport {
    height: 100%;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
  }

  .site-ticker__track {
    display: flex;
    width: max-content;
    align-items: center;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.02em;
    /* Durée ∝ nombre de demi-pistes : 12 segments → 6× plus long qu’avec 2, pour une vitesse de défilement comparable */
    animation: site-ticker-marquee 144s linear infinite;
  }

  .site-ticker__half {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding-right: 3rem;
    white-space: nowrap;
  }

  .site-ticker__half strong {
    font-weight: 700;
  }

  .site-ticker__dot {
    opacity: 0.85;
    font-weight: 700;
  }

  @keyframes site-ticker-marquee {
    0% {
      transform: translateX(0);
    }
    100% {
      transform: translateX(-50%);
    }
  }

  @media (prefers-reduced-motion: reduce) {
    .site-ticker__track {
      animation: none;
      margin: 0 auto;
    }
  }
  
  html {
    scroll-behavior: smooth;
  }
  
  /* Header: compact, modern — tout sur une ligne, menu défilant si besoin */
  #fh5co-header {
    position: fixed;
    top: var(--site-ticker-h);
    left: 0;
    width: 100%;
    padding: 4px 0 !important;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.06);
    overflow-x: hidden;
  }
  
  #fh5co-header .container {
    overflow: visible;
  }

  /* Desktop: utiliser toute la largeur (évite le slider horizontal causé par le container Bootstrap) */
  @media screen and (min-width: 992px) {
    #fh5co-header .container {
      width: 100%;
      max-width: none;
      padding-left: 24px;
      padding-right: 24px;
    }

    #fh5co-header .nav-wrap {
      gap: 10px;
    }

    #fh5co-header .nav-wrap .left-menu,
    #fh5co-header nav ul.left-menu.nav-links {
      overflow-x: visible;
      overflow-y: visible;
    }

    #fh5co-header nav ul.left-menu.nav-links {
      scrollbar-width: none;
    }

    #fh5co-header nav ul.left-menu.nav-links::-webkit-scrollbar {
      display: none;
      height: 0;
    }

    /* Un peu plus compact si besoin pour tenir sur une ligne */
    #fh5co-header nav ul.nav-links {
      gap: 2px;
    }

    #fh5co-header nav ul.nav-links li a {
      padding: 6px 8px;
      font-size: 14px;
    }

    #account-text {
      max-width: 140px;
    }
  }
  
  #fh5co-header .nav-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    width: 100%;
    flex-wrap: nowrap;
  }
  
  #fh5co-header .nav-wrap .left-menu {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-wrap: nowrap;
    gap: 2px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
  }

  #fh5co-header .nav-brand {
    font-weight: 700;
    font-size: 18px;
    letter-spacing: 0.2px;
    color: #111;
    text-decoration: none;
    padding: 5px 8px;
    border-radius: 10px;
    white-space: nowrap;
    flex-shrink: 0;
  }

  #fh5co-header .nav-brand:hover,
  #fh5co-header .nav-brand:focus {
    background: rgba(37, 99, 235, 0.1);
    color: #111;
  }

  /* Single-line menu (scrollable if too many items) */
  #fh5co-header nav ul.nav-links {
    display: flex;
    gap: 4px;
    align-items: center;
    margin: 0;
    padding: 0;
    list-style: none;
  }
  
  #fh5co-header nav ul.left-menu.nav-links {
    flex-wrap: nowrap !important;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }
  #fh5co-header nav ul.left-menu.nav-links::-webkit-scrollbar {
    height: 6px;
  }
  #fh5co-header nav ul.left-menu.nav-links::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.2);
    border-radius: 3px;
  }
  
  /* kill any floats from template/bootstrap */
  #fh5co-header nav ul.nav-links,
  #fh5co-header nav ul.nav-links li {
    float: none !important;
  }

  #fh5co-header nav ul.nav-links li {
    display: inline-block;
  }
  
  #fh5co-header nav ul.nav-links li a {
    font-size: 15px;
    line-height: 1.2;
    padding: 6px 10px;
    border-radius: 999px;
    color: #111 !important;
    white-space: nowrap;
  }
  
  #fh5co-header nav ul.nav-links li a:hover,
  #fh5co-header nav ul.nav-links li a:focus {
    background: rgba(141, 198, 63, 0.14);
    color: #111 !important;
  }
  
  /* Make room for fixed header + bandeau */
  #fh5co-page {
    padding-top: calc(52px + var(--site-ticker-h));
  }
  
  /* Menu compte — reste sur la même ligne que le menu principal */
  #fh5co-header .right-menu {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    flex-shrink: 0;
    margin-left: 18px;
    padding-left: 0;
    border-left: none;
    white-space: nowrap;
  }

  /* Desktop: tout sur une ligne, mais sans scrollbar visible ("slider"). */
  #fh5co-header .nav-wrap .left-menu {
    scrollbar-width: none; /* Firefox */
  }
  #fh5co-header .nav-wrap .left-menu::-webkit-scrollbar {
    display: none; /* Chrome/Safari/Edge */
    height: 0;
  }
  
  .right-menu li {
    margin: 0 !important;
  }
  
  .account-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
    padding: 8px 12px;
    border-radius: 6px;
    transition: background 0.3s;
    white-space: nowrap;
    cursor: pointer;
    position: relative;
    z-index: 1;
  }

  /* Keep name readable and prevent layout issues */
  #account-text {
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: inline;
    vertical-align: middle;
    white-space: nowrap;
  }

  #account-picture {
    flex: 0 0 auto;
  }
  
  .account-link:hover {
    background: rgba(37, 99, 235, 0.1);
  }
  
  .account-dropdown {
    list-style: none;
    margin: 0;
    padding: 0;
    position: absolute !important;
    top: 100% !important;
    right: 0 !important;
    background: white !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
    border-radius: 8px !important;
    padding: 10px 0 !important;
    min-width: 200px !important;
    z-index: 99999 !important;
    margin-top: 10px !important;
    display: none;
  }
  
  .account-dropdown.show {
    display: block !important;
  }
  
  .account-dropdown li {
    margin: 0;
  }
  
  .account-dropdown li a {
    text-decoration: none;
    transition: background 0.2s;
    display: block;
    padding: 10px 20px;
  }
  
  .account-dropdown li a:hover {
    background: #f8f9fa;
  }
  
  #account-menu-item {
    position: relative;
  }
  
  @media screen and (max-width: 768px) {
    .right-menu {
      display: none;
    }
    
    #fh5co-header .nav-wrap .left-menu {
      overflow: visible;
    }
  }
  
  /* Hero tweaks */
  #fh5co-hero h1 {
    font-weight: 600;
    color: white !important;
  }
  
  .hero-subtitle {
    color: white !important;
    max-width: 48ch;
  }
  
  .hero-cta .btn {
    margin-right: 10px;
    margin-bottom: 10px;
  }

  /* CTA abonnement (DEV) dans "Plans généralisés" */
  .plan-tabs-card .plan-subscribe-btn {
    margin-top: 12px;
    width: 100%;
  }
  
  /* Section spacing */
  .fh5co-section {
    padding: 80px 0;
  }
  
  .fh5co-section-muted {
    background: #f8f9fa;
    position: relative;
  }
  
  /* Lignes de séparation subtiles en bleu très clair */
  .fh5co-section-muted::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(37, 99, 235, 0.08) 50%, transparent 100%);
  }
  
  .fh5co-section-muted::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(37, 99, 235, 0.08) 50%, transparent 100%);
  }
  
  /* Cards - Toutes avec ombres prononcées pour effet détaché */
  .feature-card,
  .offer-card,
  .note-card,
  .testimonial-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 22px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12), 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    margin-bottom: 25px;
  }
  
  .offer-card:hover,
  .feature-card:hover,
  .note-card:hover,
  .testimonial-card:hover {
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.15), 0 6px 16px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
  }
  
  .feature-card h3,
  .offer-card h3,
  .note-card h3,
  .testimonial-card h3 {
    margin-bottom: 10px;
  }
  
  /* Plans généralisés — onglets d’options */
  .plan-tabs-card .plan-tabs-group {
    margin-top: 14px;
  }
  .plan-tabs-card .plan-tabs-group:first-of-type {
    margin-top: 10px;
  }
  .plan-tabs-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin: 0 0 8px 0;
  }
  .plan-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0;
  }
  .plan-tab {
    display: inline-block;
    padding: 6px 12px;
    font-size: 13px;
    font-family: inherit;
    color: #111;
    background: #f0f0f0;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
  }
  .plan-tab:hover {
    background: #e8e8e8;
    border-color: rgba(37, 99, 235, 0.3);
  }
  .plan-tab.active {
    background: rgba(37, 99, 235, 0.15);
    border-color: var(--brand);
    color: var(--brand);
    font-weight: 600;
  }
  
  .pricing-line {
    font-size: 18px;
    color: #111;
  }
  
  .price {
    margin-bottom: 8px;
    color: #111;
  }

  .price-taxes {
    color: #000;
    font-weight: 600;
    margin-left: 6px;
    white-space: nowrap;
  }

  .club-price-intro {
    font-size: 15px;
    line-height: 1.45;
    margin-bottom: 10px;
  }

  .club-schedule-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin: 16px 0 8px 0;
  }

  .club-schedule-title a {
    color: var(--brand);
    text-decoration: underline;
    text-underline-offset: 2px;
  }

  .club-schedule-title a:hover {
    color: var(--brand-hover);
  }

  ul.club-schedule {
    list-style: none;
    padding-left: 0;
    margin: 0 0 12px 0;
    font-size: 14px;
    line-height: 1.5;
  }

  ul.club-schedule li {
    position: relative;
    padding-left: 14px;
    margin-bottom: 8px;
  }

  ul.club-schedule li::before {
    content: '—';
    position: absolute;
    left: 0;
    color: var(--brand);
    font-weight: 600;
  }

  /* Cartes pleine largeur centrées (deux lacs, clinique, note…) */
  #espace-club .club-offers-row--centered > .col-md-8 {
    float: none;
    margin-left: auto;
    margin-right: auto;
  }

  /* Espace club — cartes alignées et centrées (desktop) */
  @media screen and (min-width: 992px) {
    #espace-club .club-offers-row {
      display: flex;
      flex-wrap: wrap;
      align-items: stretch;
      justify-content: center;
    }

    #espace-club .club-offers-row > .col-md-4 {
      float: none !important;
      display: flex;
      width: 33.33333333%;
      max-width: 420px;
    }

    #espace-club .club-offers-row--second > .col-md-6,
    #espace-club .club-offers-row--eau-libre > .col-md-6 {
      float: none !important;
      display: flex;
      width: 50%;
      max-width: 520px;
    }

    #espace-club .club-offers-row--centered > .col-md-8,
    #espace-club .club-offers-row--eau-libre-duo > .col-md-8 {
      float: none !important;
      display: flex;
      flex-direction: column;
      flex: 0 1 720px;
      width: 100%;
      max-width: 720px;
      margin-left: auto !important;
      margin-right: auto !important;
    }
  }

  #espace-club .club-offers-row > .col-md-4 {
    margin-bottom: 25px;
  }

  #espace-club .club-offer-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    margin-bottom: 0;
  }

  #espace-club .club-card-main {
    flex: 1 1 auto;
  }

  #espace-club .club-card-footer {
    flex-shrink: 0;
    margin-top: auto;
    padding-top: 18px;
    border-top: 1px solid var(--border);
  }

  #espace-club .club-footnote {
    margin-top: 12px;
    margin-bottom: 0;
  }

  .club-price-amount {
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    font-size: 1.08em;
    color: var(--text);
    white-space: nowrap;
  }

  .club-plan-levels {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
  }

  .club-plan-levels .plan-tabs-label {
    margin-bottom: 8px;
  }

  .club-plan-level-desc {
    font-size: 13px;
    line-height: 1.45;
    color: var(--text-secondary);
    margin: 10px 0 0 0;
  }

  #espace-club .club-card-footer .plan-subscribe-btn {
    margin-top: 0;
  }

  #espace-club .club-card-footer--dual {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  #espace-club .club-card-footer--dual .plan-subscribe-btn {
    width: 100%;
    text-align: center;
  }

  #espace-club .plan-subscribe-btn .club-btn-hint {
    display: inline-block;
    margin-left: 6px;
    font-size: 0.85em;
    font-weight: 500;
    opacity: 0.85;
    white-space: nowrap;
    vertical-align: baseline;
  }

  .club-dates-line {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 6px 0 0 0;
    padding-left: 14px;
  }

  /* PDF groupes d’entraînement — affichage intégré (iframe) */
  .club-pdf-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 18px 20px 20px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1), 0 4px 12px rgba(0, 0, 0, 0.06);
  }

  .club-pdf-below-note {
    margin-top: 22px;
  }

  .club-pdf-title {
    margin: 0 0 14px 0;
    font-size: 17px;
    font-weight: 600;
    color: var(--text);
  }

  .club-pdf-image-link {
    display: block;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border);
    background: #fff;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
  }

  .club-pdf-image-link:hover,
  .club-pdf-image-link:focus-visible {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(-1px);
  }

  .club-pdf-image {
    display: block;
    width: 100%;
    height: auto;
  }

  .club-pdf-extras {
    margin: 12px 0 0 0;
    text-align: center;
    font-size: 14px;
    color: var(--muted);
  }

  .club-pdf-extras a {
    color: var(--brand);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
  }

  .club-pdf-extras a:hover {
    color: var(--brand-hover);
  }

  .club-pdf-extras-sep {
    margin: 0 8px;
    color: var(--border);
    font-weight: 400;
  }

  @media screen and (max-width: 768px) {
    .club-pdf-card {
      padding: 14px 14px 16px;
    }
  }
  
  .bullet-clean {
    margin: 0;
    padding-left: 18px;
    color: var(--text);
  }
  
  .bullet-clean li {
    margin: 8px 0;
  }

  .testimonial-list li {
    cursor: pointer;
  }

  .testimonial-link {
    color: #2563eb;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
  }

  .testimonial-link:hover {
    color: #1d4ed8;
    text-decoration: underline;
  }

  .testimonial-link.active {
    color: #1d4ed8;
    font-weight: 600;
    text-decoration: underline;
  }

  .testimonial-content {
    animation: fadeIn 0.5s ease-in;
  }

  /* Deux témoignages côte à côte — cartes de même hauteur (desktop) */
  @media screen and (min-width: 992px) {
    #experience-clients .experience-clients-row {
      display: flex;
      flex-wrap: wrap;
      align-items: stretch;
    }

    #experience-clients .experience-clients-row > .col-md-6 {
      float: none !important;
      display: flex;
      width: 50%;
    }

    #experience-clients .experience-clients-row .testimonial-card {
      width: 100%;
      margin-bottom: 0;
    }
  }

  @keyframes fadeIn {
    from {
      opacity: 0;
      transform: translateY(10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  .contact-big a {
    font-size: 22px;
    font-weight: 600;
  }

  #contact .contact-social {
    margin: 1.5rem auto 0;
    list-style: none;
    padding: 0;
    line-height: 1.4;
  }

  #contact .contact-social--row {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: clamp(1.25rem, 4vw, 2.75rem);
    max-width: 100%;
  }

  #contact .contact-social--row li {
    margin: 0;
    flex: 0 0 auto;
  }

  #contact .contact-social-link {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    min-width: 8.75rem;
    min-height: 8.25rem;
    padding: 1rem 1.25rem 0.75rem;
    color: var(--brand);
    font-weight: 600;
    text-decoration: none;
    border-radius: 14px;
    transition: color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
  }

  #contact .contact-social-link:hover,
  #contact .contact-social-link:focus-visible {
    color: var(--brand-hover);
    background-color: rgba(37, 99, 235, 0.08);
    transform: translateY(-2px);
    outline: none;
  }

  #contact .contact-social-link:focus-visible {
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.35);
  }

  #contact .contact-social-icon {
    width: clamp(4rem, 11vw, 5.75rem);
    height: clamp(4rem, 11vw, 5.75rem);
    flex-shrink: 0;
    display: block;
  }

  #contact .contact-social-icon--strava {
    overflow: visible;
  }

  #contact .contact-social-label {
    font-size: 1.05rem;
    text-align: center;
    line-height: 1.2;
  }

.testimonial-photo {
  display: block;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.10);
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.06);
}

.testimonial-photo img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  display: block;
  transition: transform 180ms ease;
}

.testimonial-photo:hover img,
.testimonial-photo:focus img {
  transform: scale(1.02);
}

/* Témoignages — carrousel : cadre à hauteur fixe (évite le saut portait / paysage) */
.testimonial-carousel {
  --testimonial-carousel-h: 300px;
  margin-top: 14px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.10);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.06);
}

.testimonial-carousel .carousel-inner {
  position: relative;
  height: var(--testimonial-carousel-h);
  min-height: var(--testimonial-carousel-h);
  background: #eef1f5;
}

.testimonial-carousel .carousel-inner > .item {
  height: var(--testimonial-carousel-h);
}

.testimonial-carousel .carousel-inner > .item > img,
.testimonial-carousel .item img {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
  object-position: center center;
  display: block;
  margin: 0 auto;
}

/* Témoignage avec une seule image (sans Bootstrap carousel) */
.testimonial-carousel:not(.carousel) > img {
  width: 100%;
  height: var(--testimonial-carousel-h);
  max-height: none;
  object-fit: cover;
  object-position: center center;
  display: block;
  border-radius: 0;
}

/* Une seule image : version « photo entière » (pas de crop type cover) */
.testimonial-carousel.testimonial-carousel--natural {
  height: auto;
  min-height: 0;
  overflow: hidden;
  background: #eef1f5;
}

.testimonial-carousel.testimonial-carousel--natural > img {
  width: 100%;
  height: auto !important;
  max-height: min(72vh, 560px);
  object-fit: contain !important;
  object-position: center center;
  display: block;
  margin: 0 auto;
  border-radius: 0;
}

.testimonial-carousel .carousel-control {
  border-radius: 0;
}

.testimonial-carousel .carousel-indicators {
  bottom: 10px;
}

.testimonial-carousel .carousel-indicators li {
  border-color: rgba(255, 255, 255, 0.8);
}

.testimonial-carousel .carousel-indicators .active {
  background: var(--brand);
  border-color: var(--brand);
}

  /* Improve anchor offset for fixed header + bandeau */
  section[id] {
    scroll-margin-top: calc(90px + var(--site-ticker-h));
  }
  
  /* Better readability on small screens */
  @media screen and (max-width: 768px) {
    html {
      scroll-padding-top: calc(8px + var(--site-ticker-h));
      scroll-padding-bottom: calc(var(--mobile-bottom-nav-h) + env(safe-area-inset-bottom, 0px));
    }

    section[id] {
      scroll-margin-top: calc(8px + var(--site-ticker-h));
    }

    #fh5co-header .nav-brand {
      font-size: 16px;
    }

    #fh5co-header nav ul.nav-links li a {
      font-size: 14px;
      padding: 6px 10px;
    }
  
    .fh5co-section {
      padding: 60px 0;
    }

  .testimonial-carousel {
    --testimonial-carousel-h: 240px;
  }
  }

/* Photos (WhatsApp) — cartes image cohérentes */
.site-photo {
  margin: 18px 0;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  max-width: 740px;
}

.site-photo img {
  width: 100%;
  height: auto;
  display: block;
  max-height: 520px;
  object-fit: cover;
}

/* Alignements alternés (desktop) */
.site-photo--left {
  margin-right: auto;
  margin-left: 0;
}

.site-photo--right {
  margin-left: auto;
  margin-right: 0;
}

@media screen and (max-width: 768px) {
  .site-photo {
    max-width: 100%;
  }

  .site-photo img {
    max-height: 420px;
  }
}

/* ——— Partenaires (5 emplacements, animation à l’entrée dans le viewport) ——— */
.footer-partners {
  margin-top: 0;
  padding: 28px 12px 32px;
  border-top: 1px solid rgba(0, 0, 0, 0.07);
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1), transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

/* Bandeau pleine largeur entre deux sections (accueil : Contact → Partenaires → Infos) */
.footer-partners-section .container .footer-partners__inner {
  max-width: 1250px;
}

.footer-partners.footer-partners--visible {
  opacity: 1;
  transform: translateY(0);
}

.footer-partners__inner {
  max-width: 1250px;
  margin: 0 auto;
  text-align: center;
}

.footer-partners__title {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.5);
  margin: 0 0 18px;
}

.footer-partners__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 23px 28px;
  align-items: center;
  justify-items: center;
}

.footer-partners__slot {
  width: 100%;
  max-width: 288px;
  min-height: 138px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(16px) scale(0.96);
  transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.footer-partners--visible .footer-partners__slot {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.footer-partners--visible .footer-partners__slot:nth-child(1) { transition-delay: 0.05s; }
.footer-partners--visible .footer-partners__slot:nth-child(2) { transition-delay: 0.12s; }
.footer-partners--visible .footer-partners__slot:nth-child(3) { transition-delay: 0.19s; }
.footer-partners--visible .footer-partners__slot:nth-child(4) { transition-delay: 0.26s; }
.footer-partners--visible .footer-partners__slot:nth-child(5) { transition-delay: 0.33s; }

.footer-partners__logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.footer-partners--visible .footer-partners__slot--filled .footer-partners__logo-wrap:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.1);
}

.footer-partners__logo-img {
  max-width: 100%;
  height: auto;
  max-height: 133px;
  width: auto;
  object-fit: contain;
  display: block;
}

.footer-partners__slot--empty .footer-partners__placeholder {
  display: block;
  width: 100%;
  min-height: 115px;
  border-radius: 12px;
  border: 1px dashed rgba(0, 0, 0, 0.12);
  background: rgba(0, 0, 0, 0.02);
}

@media screen and (max-width: 768px) {
  .footer-partners__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-partners__slot {
    max-width: none;
  }
}

@media screen and (max-width: 480px) {
  .footer-partners__grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .footer-partners,
  .footer-partners__slot {
    transition: none !important;
  }
  .footer-partners {
    opacity: 1;
    transform: none;
  }
  .footer-partners__slot {
    opacity: 1;
    transform: none;
  }
}

/* Pages SEO (guides coaching) */
.seo-hero {
  padding-top: 2rem;
}

.seo-breadcrumb {
  background: transparent;
  padding: 0 0 1.25rem;
  margin-bottom: 0;
  font-size: 14px;
}

.seo-breadcrumb > li + li:before {
  content: "›";
  padding: 0 0.45rem;
  color: var(--muted);
}

.seo-cta-row {
  margin-top: 1.5rem;
}

.seo-cta-row .btn + .btn {
  margin-left: 0.5rem;
}

.seo-nav-links {
  flex-wrap: wrap;
}

.seo-photo img {
  width: 100%;
  max-width: 420px;
  border-radius: 12px;
  display: block;
  margin: 0 auto;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.seo-faq-item {
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}

.seo-faq-item:last-child {
  border-bottom: none;
}

.seo-faq-item h3 {
  font-size: 18px;
  margin-top: 0;
}

.seo-related-links {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1.25rem;
}

.seo-related-links a {
  font-weight: 600;
}

.seo-quote {
  border-left: 3px solid var(--brand);
  padding-left: 1rem;
  margin: 0 0 1rem;
  font-size: 15px;
}

.seo-quote cite {
  display: block;
  margin-top: 0.5rem;
  font-style: normal;
  color: var(--muted);
  font-size: 13px;
}

@media screen and (max-width: 768px) {
  .seo-cta-row .btn {
    display: block;
    width: 100%;
    margin: 0 0 0.75rem;
  }

  .seo-cta-row .btn + .btn {
    margin-left: 0;
  }

  .seo-nav-links li {
    font-size: 13px;
  }
}
