* {
  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.jpg);
  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;
}

.accueil{
  height: 660px;
  width: 100%;
  background-image: url(bgwaitingtel.jpg);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: bottom;
}
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 p{
  width: 100%;
  text-align: center;
  position: absolute;
  top: 210px;
  font-family: "typo";
  font-size: 27px;
  color: white;
}

.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 */
}

/* FOOTER */
footer {
  text-align: center;
  padding: 20px;
  background: #333;
  color: white;
  font-size: 14px;
  justify-content: space-around;
}
footer a{
  color: white;
}


/* 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;
  }
  nav a {
    border: none;
    font-size: 24px;
  }
  .submenu-toggle{
    font-size: 24px;
  }
  h1, .date, .courses{
    display: none;
  }
  .accueil{
    background-image: url(bgwaitingpc.jpg);
    height: 900px;
  }
  .accueil p{
    font-size: 42px;
    top: 360px;
  }
}


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