/* 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;
  }
  
  html {
    scroll-behavior: smooth;
  }
  
  /* Header: compact, modern */
  #fh5co-header {
    position: fixed;
    top: 0;
    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);
  }
  
  #fh5co-header .nav-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    width: 100%;
  }
  
  #fh5co-header .nav-wrap .left-menu {
    flex: 1;
    display: flex;
    flex-wrap: nowrap;
    gap: 2px;
    overflow: visible;
    min-width: 0;
  }

  #fh5co-header .nav-brand {
    font-weight: 700;
    letter-spacing: 0.2px;
    color: #111;
    text-decoration: none;
    padding: 5px 8px;
    border-radius: 10px;
    white-space: nowrap;
    font-size: 16px;
    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;
    overflow: visible;
    white-space: nowrap;
  }
  
  /* 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: 10px;
    line-height: 1.2;
    padding: 4px 6px;
    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 */
  #fh5co-page {
    padding-top: 52px;
  }
  
  /* Menu compte */
  .right-menu {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    margin-left: 18px;
    padding-left: 0;
    border-left: none;
  }
  
  .right-menu li {
    margin: 0 !important;
  }
  
  .account-link {
    display: 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-block;
    vertical-align: middle;
  }

  #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;
  }
  
  /* 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;
  }
  
  .pricing-line {
    font-size: 18px;
    color: #111;
  }
  
  .price {
    margin-bottom: 8px;
    color: #111;
  }
  
  .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;
  }

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

/* Ariane carousel */
.testimonial-carousel {
  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 .item img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  object-position: center center;
  display: block;
  margin: 0 auto;
}

.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 */
  section[id] {
    scroll-margin-top: 90px;
  }
  
  /* Better readability on small screens */
  @media screen and (max-width: 768px) {
    #fh5co-page {
      padding-top: 48px;
    }
  
    #fh5co-header .nav-brand {
      font-size: 13px;
    }

    #fh5co-header nav ul.nav-links li a {
      font-size: 12px;
      padding: 5px 8px;
    }
  
    .fh5co-section {
      padding: 60px 0;
    }

  .testimonial-carousel .item img {
    height: 220px;
  }
  }
  