@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@300;400;500;600;700&family=Sinkin+Sans:wght@400;600;700&display=swap');

:root {
  --color-primary: #2566af;
  --color-secondary: #ff6b35;
  --color-accent: #f7b801;
  --text-main: 1rem;
  --h1-size: 2.8rem;
  --h2-size: 2rem;
  --h3-size: 1.25rem;
}

* {
  margin: 0 auto;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Roboto', 'Quicksand', Arial, sans-serif;
  background: #111;
  color: #fff;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Quicksand', 'Roboto', Arial, sans-serif;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button, .btn {
  cursor: pointer;
  border: none;
  outline: none;
  background: #2566af;
  color: #fff;
  padding: 0.75em 2em;
  border-radius: 6px;
  font-weight: 600;
  transition: background 0.3s, transform 0.3s, box-shadow 0.3s;
}

button:hover, .btn:hover {
  background: #1d4a8f;
  /* translateY crée l'effet de "décollage" du bouton au hover */
  transform: translateY(-3px) scale(1.08);
  box-shadow: 0 8px 16px rgba(37, 102, 175, 0.4);
}

.menu-toggle:hover {
  /* translateY maintient le centrage vertical lors du scale */
  transform: translateY(-50%) scale(1.05);
}

/* Reusable h2 styles */
h2 {
  color: var(--color-primary);
  font-size: var(--h2-size);
  font-weight: 800;
  margin-bottom: 2rem;
  text-align: left;
}


.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.header {
  position: relative;
  color: #fff;
  overflow: hidden;
  min-height: 400px;
  padding-top: 80px; 
}

.header-video-background {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
  overflow: hidden;
}

.header-video {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  position: absolute;
  top: 0; left: 0;
  z-index: 0;
  filter: brightness(0.5);
}

.header > *:not(.header-video-background):not(.navbar) {
  position: relative;
  z-index: 1;
}

.navbar {
  display: flex;
  justify-content: space-between;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  z-index: 1000;
  background: rgba(17,17,17,0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  max-width: 1500px;
}

.logo {
  display: flex;
  align-items: center;
  position: relative;
  margin: auto 0;
  margin-left: 18px;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 1px;
  gap: 0.6rem; 
}

.logo-image {
  display: block;
  height: auto;
  width: auto;
  max-height: 48px; 
  max-width: 220px;;
}

.logo-text {
  line-height: 1;
  white-space: nowrap;
  margin-left: 0; 
}

.menu-toggle {
  position: absolute;
  top: 50%;
  /* translateY(-50%) centre l'élément verticalement */
  transform: translateY(-50%);
  height: 3rem;
  right: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  z-index: 9999; 
  pointer-events: auto;
  padding: 8px;
}

.navigation-links {
  list-style: none;
  display: none; 
  gap: 1.25rem;
  align-items: center;
  margin-left: auto;
}

.navigation-links li { 
  position: relative;
  margin: 0;
}

.navigation-links a, .dropdown-toggle {
  color: #fff;
  padding: 0.45rem 0.6rem;
  font-weight: 600;
  background: none;
  border-radius: 6px;
  border: none;
  display: block;
}

.navigation-links a:hover, .dropdown-toggle:hover { 
  background: rgba(255,255,255,0.03); 
}

.dropdown-toggle { 
  cursor: pointer; 
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 180px;
  background: #0f0f0f;
  border-radius: 10px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.6);
  display: none;
  flex-direction: column;
  padding: 0.35rem 0;
  z-index: 12;
}

.dropdown-menu.open { 
  display: flex; 
}

.dropdown-menu li a { 
  padding: 0.6rem 1rem; 
  display: block; 
  color: #fff; 
  white-space: nowrap; 
}

.dropdown-menu li a:hover { 
  background: rgba(255,255,255,0.03); 
}

.navigation-links.open {
  display: flex !important;
  flex-direction: column;
  position: absolute;
  right: 18px;
  top: 64px;
  background: rgba(10,10,10,0.9);
  padding: 1rem;
  border-radius: 10px;
  z-index: 11;
  min-width: 200px;
}
 
.hamburger {
  width: 20px;
  height: 2px;
  background: #fff;
  display: block;
  position: relative;
  border-radius: 2px;
}
.hamburger::before,
.hamburger::after {
  content: '';
  width: 20px;
  height: 2px;
  background: #fff;
  position: absolute;
  left: 0;
  border-radius: 2px;
}
.hamburger::before { 
  top: -6px; 
}

.hamburger::after { 
  top: 6px; 
}

.hero {
  text-align: center;
  padding: 3rem 1rem 3rem 1rem;
}

.hero h1 {
  font-size: var(--h1-size);
  font-weight: 800;
  margin-bottom: 1.5rem;
}

.hero-offer {
  font-size: 1rem;
  margin-top: 1.5rem;
  letter-spacing: 1px;
  display: inline-block;
  position: relative;
}

.hero-offer::before { 
  top: -5px; transform-origin: left; transform: scaleX(0);
}

.hero-offer::after { 
  bottom: -5px; transform-origin: right; transform: scaleX(0);
}

.hero-offer:hover::before, .hero-offer:hover::after {
   transform: scaleX(1); 
  }

@keyframes scroll {
  /* translateX anime le défilement horizontal du contenu */
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.motivational-banner {
  background: #111111;
  overflow: hidden;
  padding: 0.8rem 0;
  position: relative;
  width: 100%;
  display: flex;
  white-space: nowrap;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 0;
}

.banner-content {
  display: flex;
  animation: scroll 20s linear infinite;
  padding-right: 2rem;
}

.banner-content span {
  color: var(--color-primary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-shadow: 0 0 10px rgba(37,102,175,0.5),
               0 0 20px rgba(37,102,175,0.3),
               0 0 30px rgba(37,102,175,0.2);
  animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
  from {
    text-shadow: 0 0 10px rgba(37,102,175,0.5),
                 0 0 20px rgba(37,102,175,0.3),
                 0 0 30px rgba(37,102,175,0.2);
  }
  to {
    text-shadow: 0 0 15px rgba(37,102,175,0.7),
                 0 0 25px rgba(37,102,175,0.5),
                 0 0 35px rgba(37,102,175,0.3);
  }
}

.banner-content .separator {
  margin: 0 1.5rem;
  color: rgba(255,255,255,0.2);
}

.services { 
    margin-top: 0;
    text-align: left;
    padding: 3rem 0;
    width: 100vw;
    margin-left: 50%;
    /* translateX(-50%) centre l'élément fullwidth horizontalement */
    transform: translateX(-50%);
}

.services .container {
    margin: 0 auto;
    max-width: 1200px;
    padding: 0 1.5rem;
}

.services h2 { 
    color: var(--color-primary); 
    font-size: var(--h2-size); 
    font-weight: 800; 
    margin-bottom: 2rem; 
    text-align: left;
}

.services-grid { 
    display: flex; 
    justify-content: center; 
    gap: 2rem; 
    flex-wrap: wrap;
}

.service-card {
  background: #181818; border-radius: 12px;
  padding: 1.2rem; text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  display: flex; flex-direction: column; align-items: center;
  min-height: 250px;
}

 .service-card p { 
  margin-top: 1rem; font-weight: 600; font-size: 1.08rem; 
}

.fitness h2 { 
    color: var(--color-primary); 
    font-size: var(--h2-size); 
    font-weight: 800; 
    margin: 2.5rem 0 1.5rem 0;
}
.fitness-main {
    display: flex; 
    flex-direction: column; 
    align-items: center;
    width: 100%; 
    max-width: 1400px; 
    margin: 0 auto;
    padding: 0 1.5rem; 
    overflow: hidden;
}

.fitness-image { 
  width: 100%; border-radius: 28px; object-fit: cover; 
}

.fitness-description { 
  margin-top: 1.5rem; width: 100%; max-width: 700px; text-align: left; flex: 2 1 100px;
}

.fitness-description .btn {
  display: inline-block;
  margin-top: 1.4rem; 
  padding: 0.9rem 2.2rem; 
  font-size: 1.05rem;
  border-radius: 10px;
}

.fitness-description .btn:hover {
   /* translateY crée l'effet de décollage au hover */
   transform: translateY(-3px); 
  }

  .fitness-features-row {
   display: flex; 
   flex-direction: column; 
   align-items: center; 
   gap: 1.2rem; 
   margin-top: 2rem; 
   margin-bottom:2rem;  
   justify-content:center;
  }

  .fitness-feature-block {
   min-width: 280px; 
   max-width: 340px; 
   text-align:center;
  } 

  .fitness-feature-block h3 {
   font-size:1.3rem; 
   font-weight:700; 
   margin-bottom:0.5rem; 
   letter-spacing:1px; 
   color:#2566af;
  }

  .fitness-feature-block p {
   font-size:1.08rem; 
   line-height:1.5; 
   color:#fff; 
   margin-bottom:0; 
  }

  .feature-icon {
  width: 220px; height:220px; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  background: linear-gradient(180deg,#0f0f0f,#111);
  margin-bottom:1rem;
  margin-top: 1rem;
  box-shadow:0 8px 24px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.02);
}
.feature-icon img { 
  width:100%; 
  object-fit:contain; 
  display:block; 
}


.abonnements h2 { 
  color:var(--color-primary); 
  font-size:var(--h2-size); 
  margin:2.5rem 0 1.5rem 0; 
  font-weight:800; 
  text-align: left; 
}

.abonnements-grid { 
  display:flex; 
  justify-content:center; 
  gap:2.5rem; 
  flex-wrap:wrap; 
  margin-bottom:2rem;    
}

.abonnement-card {
  background:#181818; 
  border-radius:20px; 
  padding:2.5rem 1.5rem;
  text-align:center; 
  box-shadow:0 2px 8px rgba(0,0,0,0.12);
  max-width:420px; 
  width:100%; 
  display:flex; 
  flex-direction:column; 
  align-items:center;
}

.abonnement-card h3 { 
  font-size:2rem; 
  font-weight:600; 
  color:#fff; 
  margin-bottom:1.2rem; 
  letter-spacing:1px;
}

/* Ensure abonnement headings and descriptions use Quicksand */
.abonnement-card h3,
.abonnement-card ul,
.abonnement-card ul li {
  font-family: 'Quicksand', 'Roboto', Arial, sans-serif;
}

.price { 
  font-size:6rem; 
  font-weight:800; 
  color:#2566af; 
  display:flex; 
  margin-bottom:0.5rem; 
}

.price .unit { 
  font-size:2rem; 
  color:#fff; 
  margin-left:0.2em; 
  font-weight:700; 
}

.price .currency {  
  font-size:2rem; 
  color:#2566af; 
  font-weight:700; 
  align-self:flex-end; 
}

.abonnement-card ul { 
  list-style:none; 
  padding-left:0; 
  font-size:1.15rem; 
  font-weight:500; 
  margin-top:1.5rem; 
  text-align:center; 
}

.abonnement-card ul li { 
  margin-bottom:1.1rem; 
}

.collectifs h2 { 
  color:#2566af; 
  font-size:2rem; 
  margin:2.5rem 0 2.8rem 0; 
  font-weight:800; 
  text-align: left;
}

.courses-table { 
  width: 100%;
  min-width: 800px;
  border-collapse: collapse;
  background: #181818;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 0.75rem; 
}
.courses-table th, .courses-table td { 
  padding: 0.8rem 1.2rem;
  text-align: center;
  color: #fff;
  border-bottom: 1px solid #222;
}
.courses-table th { 
  background: #2566af;
  font-weight: 600; 
}

.courses-table td {
  font-weight: 300;

}
.courses-table tr:nth-child(odd) { 
  background: #181818;
}
.courses-table tr:nth-child(even) { 
  background: #1f1f1f;
}
.courses-table tr:last-child td { 
  border-bottom: none;
}

.table-scrollable {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch; 
}

.table-scrollable {
  padding-bottom: 8px;
  scrollbar-width: thin;
  scrollbar-color: var(--color-primary) transparent;
}

.table-scrollable::-webkit-scrollbar {
  height: 6px; 
}
.table-scrollable::-webkit-scrollbar-track {
  background: transparent;
}
.table-scrollable::-webkit-scrollbar-thumb {
  background: var(--color-primary);
  border-radius: 6px;
}
.table-scrollable { -ms-overflow-style: -ms-autohiding-scrollbar; }


.table-scrollable { position: relative; }
.table-scrollable::after {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 40px;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(0,0,0,0) 0%, rgba(17,17,17,0.6) 60%, rgba(17,17,17,0.95) 100%);
  display: none; 
}


.abonnements,
.collectifs {
  display: flex;
  flex-direction: column;
}

.abonnements h2,
.collectifs h2 {
  align-self: flex-start;  
  text-align: left;
  width: 100%;
}

.abonnements .btn,
.collectifs .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 2rem auto;  
  min-width: 200px;
}

.footer { 
  background:#181818; 
  color:#fff; 
  padding:2.5rem 0 1rem; 
  text-align:center; 
  width:100%;
  margin-left:0;
  transform:none;
}

.footer-main { 
  display:flex; 
  flex-direction:column; 
  align-items:center; 
  gap:2.5rem; 
  margin-bottom:1.5rem; 
  text-align:center;
}

.footer-logo { 
  display:flex; 
  align-items:center; 
  gap:0.8rem; 
  font-size:1.3rem; 
  font-weight:700;
}

.footer-logo-image { 
  height:48px; 
  width:auto; 
  display:block; 
}

.footer-links { 
  display:flex; 
  flex-direction:column; 
  gap:0.5rem; 
}

.footer-social { 
  display:flex; 
  gap:1rem;
}

.footer-bottom { 
  font-size:0.95rem; 
  color:#aaa; 
}

/* Responsive Design */
@media (min-width: 900px) {
  /* Logo desktop */
  .logo-image {
    max-height: 48px;
  }
  .logo-text {
    font-size: 1.3rem;
  }

  /* Navbar desktop */
  .navbar.container {
    max-width: 100% !important;
    width: 100%;
    left: 0;
    right: 0;
    padding: 0 1.5rem;
  }
  .logo { position: relative; margin-left: 18px; }

  /* Hero desktop */
  .hero {
    padding: 2rem 1rem 4rem 1rem;
  }
  .hero h1 {
    font-size: 4rem;
    margin: 2rem;
  }

  /* Menu desktop */
  .menu-toggle {
    display: none;
  }
  .navigation-links {
    display: flex !important;
    align-items: center;
    gap: 2rem;
    margin-right: 1rem;
    position: static;
    background: transparent;
    padding: 0;
  }
  .navigation-links li {
    margin: 0;
  }
  .dropdown-menu a {
    background: none;
  }

  /* Fitness section desktop */
  .fitness-main {
    flex-direction: row;
    gap: 2.5rem;
    align-items: center;
    overflow: hidden;
  }
  .fitness-image {
    width: 55%;
  }
  .fitness-description {
    width: 45%;
    text-align: left;
  }

  /* Fitness features desktop */
  .fitness-features-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(280px, 1fr));
    gap: 2.5rem;
    align-items: start;
    justify-items: center;
    width: 100%;
  }
  .fitness-feature-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
    padding: 1rem;
    min-width: 0;
    max-width: 520px;
    background: transparent;
  }
  .fitness-feature-block .feature-icon {
    width: 260px;
    height: 260px;
    margin: 0 auto;
  }
  .fitness-feature-block h3 {
    margin-top: 0.5rem;
    text-align: center;
    font-size: 1.35rem;
  }
  .fitness-feature-block p {
    text-align: center;
    margin-bottom: 0;
  }

  /* Grid layouts desktop */
  .services-grid, .abonnements-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
  }

  /* Table desktop */
  .courses-table td {
    font-weight: 500;
  }

  /* Cards hover effects desktop */
  .service-card, .feature-icon, .fitness-image {
    position: relative;
  }
  .service-card, .feature-icon, .fitness-main {
    overflow: hidden;
  }

  .service-card::before,
  .feature-icon::before,
  .fitness-main::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.0), rgba(0,0,0,0.12));
    opacity: 0;
    transform: scale(1);
    transition: opacity 320ms cubic-bezier(.2,.8,.2,1), transform 320ms cubic-bezier(.2,.8,.2,1);
    pointer-events: none;
  }

  .service-card:hover::before,
  .feature-icon:hover::before,
  .fitness-main:hover::before {
    opacity: 1;
    transform: scale(1.03);
  }

  .service-card img, .feature-icon img, .fitness-main .fitness-image {
    transition: transform 320ms cubic-bezier(.2,.8,.2,1), filter 320ms ease;
    will-change: transform, filter;
    backface-visibility: hidden;
    transform-origin: center center;
  }

  .service-card:hover img, .feature-icon:hover img, .fitness-main:hover .fitness-image {
    transform: scale(1.03);
    filter: brightness(1.05);
  }

  .service-card img {
    width: 260px;
    height: 260px;
  }

  .feature-icon {
    width: 260px;
    height: 260px;
  }

  /* Buttons desktop */
  .abonnements .btn, .collectifs .btn {
    display: inline-flex;
  }

  /* Footer desktop */
  .footer-main {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    text-align: left;
  }
  .footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin: 0 1rem;
    text-align: left;
  }
  .footer-social {
    margin-left: auto;
    display: flex;
    gap: 1rem;
  }
  .footer-bottom {
    text-align: center;
  }

  .courses-table {
    min-width: 600px;
  }
  .courses-table th, .courses-table td {
    padding: 0.5rem 0.6rem;
    font-size: 0.95rem;
  }
}

