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

@font-face {
  font-family: "typo";
  src: url("Baby\ Monsta.otf");
  letter-spacing: 30px;
 }
main{
  background-image: url(dak\ bg\ tphv\ new.jpg);
  width: 100%;
  min-height: 1200px;
  padding-top: 120px;
  padding: 12px;
 }
/* 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: 1000;
}

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

nav a:hover {
  background: rgba(0,0,0,0.1);
}

.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;
  }
}

.nom{
  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;
}
.results {
  max-width: 1000px;
  margin: auto;
  overflow-x: scroll;
}
h1{
  margin-top: 30px;
  margin-bottom: 30px;
  color: white;
}
.title{
  position: absolute;
  font-size: 27px;
  left: 16px;
  top: 6px;
  font-family: "typo";
  color: #e1302f;
}
select, input{
  background-color: #fff;
  border: none;
  border-radius: 6px;
  padding: 3px;
}
input{
  margin-left: -6px;
}
.filters {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
}

table {
  width: 100%;
  border-collapse: collapse;
  mask-image: linear-gradient(to right,
  rgba(0, 0, 0, 1) 0%,
  rgba(0, 0, 0, 1) calc(100% - 120px),
  rgba(0, 0, 0, 0) 100%);
  -webkit-mask-image: linear-gradient(to right,
  rgba(0, 0, 0, 1) 0%,
  rgba(0, 0, 0, 1) calc(100% - 120px),
  rgba(0, 0, 0, 0) 100%);
}

th, td {
  padding: 8px;
  border-bottom: 1px solid #ddd;
  font-size: 15px;
  font-weight: bold;
  color: white;
}

thead {
  background: #646464;
  color: #fff;
}
.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 {
  text-align: center;
  padding: 20px;
  background: #333;
  color: white;
  font-size: 14px;
  justify-content: space-around;
}
footer a{
  color: white;
}

@media (min-width: 768px) {
  .burger {
    display: none;
  }
header{
  height: 0px;
}
.logo{
  top: 90px;
  left: 60px;
  visibility: visible;
  height: 120px;
}
  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;
  }
  .nom, .courses, .date, .title{
    display: none;
  }
  h1{
    margin-top: 120px;
  }
}

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