* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: system-ui, sans-serif;
}

body {
  color: #222;
}
@font-face {
  font-family: "typo";
  src: url("Baby\ Monsta.otf");
  letter-spacing: 30px;
 }
 main{
  background-image: url(bg\ tphv\ new.webp);
  overflow: hidden;
 }
/* HEADER */
header {
  background: #b9ca00;
  position: relative;
  top: 0;
  z-index: 10;
  height: 90px;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 15px;
}

.logo {
  position: absolute;
  visibility: hidden;
}

.burger {
  position: absolute;
  right: 16px;
  top: 24px;
  font-size: 26px;
  background: none;
  border: none;
  cursor: pointer;
  color: #e1302f;
}

/* MENU */
nav {
  position: absolute;
  top: 90px;
  width: 100%;
  display: none;
  flex-direction: column;
  background: #b9ca00;
  z-index: 30;
}

nav a {
  padding: 12px 16px;
  color: white;
  text-decoration: none;
  border-top: 1px solid rgba(255,255,255,0.2);
}

nav a:hover, .submenu-toggle:hover {
  color: #f6ff98;
}

.submenu-toggle {
  background: none;
  border: none;
  color: white;
  padding: 12px 16px;
  font-size: 16px;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.submenu {
  display: none;
  flex-direction: column;
  background: #8fb000;
}

.submenu a {
  padding: 10px 30px;
  color: white;
  text-decoration: none;
  font-size: 15px;
}

.has-submenu.open .submenu {
  display: flex;
}

/* Desktop */
@media (min-width: 768px) {
  .has-submenu {
    position: relative;
  }

  .submenu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    z-index: 20;
  }

  .has-submenu:hover .submenu {
    display: flex;
  }
}

/* SECTIONS */
main {
  position: relative;
}




h1{
  position: absolute;
  font-size: 27px;
  left: 16px;
  top: 6px;
  font-family: "typo";
  color: #e1302f;
}
.courses{
  position: absolute;
  top: 36px;
  left: 16px;
  font-weight: bold;
  font-size: 13px;
  color:#646464;
}
.date{
  position: absolute;
  top: 54px;
  left: 16px;
  font-size: 18px;
  font-weight: bold;
  color: white;
}
.accueil{
  position: relative;
  background-image: url(ban.webp);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  width: 100%;
  height: 600px;
  color: white;
  overflow: hidden;
  padding-bottom: 30px;
}
.slide-active{
  position: relative;
}
.txtprincipal{
  position: absolute;
  left: 30%;
  text-align: left;
  background-color: rgba(255, 255, 255, 0.3);
}
/* FOOTER */
footer {
  text-align: center;
  padding: 20px;
  background: #333;
  color: white;
  font-size: 14px;
  justify-content: space-around;
}
footer a{
  color: white;
}

.slider-track {
  display: flex;
  transition: transform 0.4s ease;
}
.insc{
  position: absolute;
  bottom: 60px;
  left: 30px;
  padding: 12px;
  font-size: 15px;
  font-weight: bold;
  background-color: #646464;
  color: white;
  border: none;
}
.soon{
  font-weight: normal;
  font-size: 12px;
}
.insc:hover{
  background-color: white;
  color: #646464;
  transition-duration: 0.2s;
  cursor: pointer;
}
.slide {
  min-width: 100%;
  position: relative;
}

.slide img {
  width: 100%;
  height: 600px;
  object-fit: cover;
  object-position: top;
}

.caption {
  position: absolute;
  bottom: 50px;
  left: 50%;
  color: white;
  background-color: rgba(0, 0, 0, 0.3);
  padding: 10px 15px;
}

.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 40px;
  background: rgba(0,0,0,0.4);
  color: white;
  border: none;
  padding: 5px 12px;
  cursor: pointer;
}
.deniveleun{
  width: 100%;
  height: 60px;
  z-index: 50;
  transform: translateY(-60px);
}
.deniveledeux{
  width: 100%;
  height: 60px;
  z-index: 50;
  transform: translateY(6px);
}
.distances{
  width: 100%;
}
.distances h2{
  font-size: 42px;
  text-align: center;
  margin-bottom: 30px;
  font-family: 'typo';
}
.distances .txt{
  width: 100%;
  display: block;
  background-color: transparent;
}
.distances h3{
  font-size: 30px;
  font-family: 'typo';
  text-align: center;
  margin-bottom: 12px;
  color: #e1302f;
}
.distances p{
  margin-bottom: 12px;
  background-color: rgba(255, 255, 255, 0.5);
  padding: 12px;
  font-weight: 600;
}
.guillemet{
  font-family: 'typo';
  font-weight: bold;
  font-size: 18px;
}
.distances img{
  width: 100%;
  margin-left: 50%;
  transform: translateX(-50%);
}
.grand, .moyen, .petit{
  padding: 24px;
}


.soutien{
  text-align: center;
  padding: 12px;
  padding-left: 24px;
  padding-right: 24px;
  background-image: url(light\ bg\ tphv\ new.webp);
  margin: 0;
}
.soutien p{
  text-align: justify;
}
.txtasso{
  font-weight: 600;
  margin-bottom: 12px;
}
.soutien h3{
  font-size: 30px;
  font-weight: bold;
  margin-bottom: 24px;
  margin-top: 15px;
}
.soutien .asso{
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 12px;
  text-align: left;
}
.soutien img{
  width: 100%;
  height: auto;
}
.soutien a img{
  height: 60px;
  width: auto;
  margin: 30px;
  border-radius: 6px;
}
.carousel-container {
  width: 100%;
  overflow: hidden;
  background: rgb(57, 71, 57);
  padding-top: 12px;
  padding-bottom: 12px;
}

.carousel-track {
  display: flex;
  gap: 40px;
  animation: scroll 20s linear infinite;
}

.carousel-track img {
  height: 80px;
  object-fit: contain;
}

@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); } /* exactement moitié du track */
}

/* PC uniquement */
@media (hover: hover) {
  .arrow {
    display: block;
  }
}

.left { left: 10px; }
.right { right: 10px; }




/* DESKTOP */
@media (min-width: 768px) {
  .burger {
    display: none;
  }
header{
  height: 0;
  width: 100%;
}
  nav {
    top: 6px;
    display: flex !important;
    flex-direction: row;
    justify-content: center;
    background-color: transparent;
  }
.slider-track{
  position: absolute;
}
  nav a {
    border: none;
    font-size: 24px;
  }
  .submenu-toggle{
    font-size: 24px;
  }
  h1{
    width: 100%;
    left: 0;
    top: 240px;
    color: white;
    font-size: 60px;
    text-align: center;
  }
  .courses{
    width: 100%;
    text-align: center;
    top: 300px;
    left: 0;
    color: #b9ca00;
    font-size: 30px;
  }
  .date{
    width: 100%;
    text-align: center;
    top: 340px;
    left: 0;
    font-size: 36px;
  }
  .insc{
    left: 50%;
    transform: translateX(-50%);
    bottom: 240px;
  }
  .accueil{
    height: 810px;
    background-position: bottom;
  }
  .slide img{
    height: 810px;
    object-position: top;
  }
  .arrow{
    transform: initial;
  }
  .distances{
    width: 70%;
    margin-left: 15%;
  }
  .distances div{
    display: flex;
    margin-bottom: 60px;
  }
  .distances img{
    margin-left: 10%;
    transform: none;
    width: 360px;
    height: 360px;
  }
  .distances h3{
    margin-left: 0;
    transform: none;
    font-size: 60px;
  }
  .distances p{
    width: 100%;
    font-size: 21px;
  }
  .soutien{
   margin: 0;
   padding-left: 15%;
   padding-right: 15%;
  }
  .blocasso{
   display: flex;
  }
  .soutien .txt{
    margin-left: 3%;
    margin-right: 3%;
  }
  .soutien img{
    transform: none;
    height: 360px;
    width: auto;
  }
 
  .liensasso img{
    height: 60px;
    width: auto;
    margin-bottom: 30px;
  }
  .liensasso img:hover{
    transform: scale(1.05);
    transition: 0.2s;
  }
  .soutien h3{
    margin-left: 0;
    transform: none;
    font-size: 48px;
  }
  .soutien p{
    width: 100%;
    font-size: 21px;
  }
  .deniveleun{
    position: absolute;
    bottom: 0;
    transform: initial;
    height: 90px;
  }
  .deniveledeux{
    position: absolute;
    bottom: 0;
    height: 90px;
  }
  .caption{
    left: 70%;
    bottom: 72px;
  }
}


@media (min-width: 1400px) {
.logo{
  width: 60px;
  height: auto;
  top: 12px;
  left: 60px;
  visibility: visible;
  z-index: 40;
}
}