header .navbar {
    background-color: #284D9A !important;
}

/* SECTION */

.first-section {
    gap: 5vw;
    padding: 9vw 8.928vw 5vw 8.928vw;
}
.first-section .title {
    font-family: var(--font-name);
    font-weight: 900;
    font-size: 5vw;
    line-height: 5vw;
    letter-spacing: 0%;
    color: #56A1BF;
}
.field-search {
    width: 55.406vw !important;
    align-self: flex-end;
    margin-bottom: 0 !important;
}
.field-search button {
    background: #F38430 !important;
    border: 2px solid #F38430 !important;
}

.first-section table {
    padding: 0;
    background: transparent;
    border-collapse: separate; 
    border-spacing: 0;
    table-layout: auto;
    width: 100%;
}

.first-section  table tr {
    background: transparent;
    display: flex;
    justify-content: space-between;
    padding: .4vw 0vw;
    width: 100%;
}
.first-section  table tr:nth-child(1) {
    margin-bottom: 1vw;
}
.first-section  table tr:nth-child(1) td {
    background: transparent;
    color: #284D9A;
    font-family: var(--font-name);
    font-weight: 600;
    font-size: 1.8229vw;
    line-height: normal;
    text-align: center;
}


.first-section  table tr td {
    background: #FFFFFFCC;
    font-weight: 600;
    color: #000;
    /* width: 40%; */
    width: 12%;
    text-align: center;
    border-right: 4px solid #eaf1ff;
    text-transform: uppercase;
    transition: all .5s ease-in-out;
}


.first-section  table tr td:nth-child(1) {
    width: 19.3vw;
    background: transparent;
    text-transform: uppercase;
    font-weight: 400;
    padding: 0vw;
    border-right: 4px solid #eaf1ff;
    border-radius: 0.78vw 0 0 0;
}
.first-section  table tr td:nth-child(1) a .image {
    display: block;
    width: 6.30vw;
    height: 6.87vw;
    background: #56A1BF;
    padding: 1vw;
    border-radius: 3.90vw 0 0 var(--p-size);
}
.first-section  table tr td:nth-child(1) .image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: brightness(0) saturate(100%) invert(100%) sepia(0%) saturate(28%) hue-rotate(207deg) brightness(98%) contrast(104%);
}
.first-section  table tr td:nth-child(1) a .text {
    font-family: var(--font-name);
    font-weight: 600;
    font-size: 1.666vw;
    line-height: normal;
    color: #56A1BF;
    background: white;
    text-align: center;
    text-transform: capitalize;
}

.first-section table tr td a {
    width: 100%;
    height: 100%;
    font-family: var(--font-name);
    font-weight: 400;
    font-size: var(--p-size);
    line-height: normal;
    text-align: center;
    transition: all .5s ease-in-out;
}
.first-section  table tr td:hover a {
    color: #F38430;
    transition: all .5s ease-in-out;
}

.first-section  table tr td:last-child {
    border-radius:0 1.302vw 3.902vw 0;
    transition: all .5s ease-in-out;
}
.first-section  table tr td:last-child:hover a {
    border-radius:0 1.302vw 3.902vw 0;
    transition: all .5s ease-in-out;
}

@media (max-width: 768px) {
  .first-section {
    padding: 23vw 5vw 0 5vw;
    gap: 6vw;
    background: linear-gradient(to bottom right, #f1f6fc, #eaf1ff);
    
   
  }
  
  .first-section .title {
    font-size: 7vw;
    line-height: 9vw;
    text-align: start;
    color: #284D9A;
    font-weight: 800;
    margin-bottom: 6vw;
  }
  
  .first-section .table-wrapper {
       overflow-x: auto;
    width: 100%;
  }
  /* Cartes horaires */
  .first-section table tr td:nth-child(1) a .image {
    display: none;
    width: 6.30vw;
    height: 6.87vw;
  }
  .first-section table tr td:nth-child(1) a .text {
    font-family: var(--font-name);
    font-weight: 600;
    font-size: 4.666vw;
    padding: 3vw;
  }
  .first-section table {
     width: max-content; /* s'étend autant que nécessaire */
    border-collapse: separate;
    border-spacing: 0;
    table-layout: auto;
  }

  .first-section table tr:nth-child(1) td {
    font-size: 4.8229vw;
  }
  .first-section table tr:nth-child(1) {
    margin-bottom: 2vw;
  }

  .first-section table tr {
    width: 200%;
  }
  .first-section table tr td:nth-child(1) {
    width: 30%;
  }
  .first-section table tr td {
    width: 40%;
  }

  /* 
  .first-section table {
    display: flex;
    flex-direction: column;
    gap: 6vw;
    width: 100%;
  }


  .first-section table td {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2.5vw 0;
    font-size: 4vw;
    border-bottom: 1px dashed #dee8f8;
    color: #284D9A;
    font-weight: 600;
  }

  .first-section table td:last-child {
    border-bottom: none;
  }
  
  .first-section table td:nth-child(1) a {
    display: flex;
    gap: 3vw;
    align-items: center;
    width: 100%;
  }

  .first-section table td:nth-child(1) a .text {
    font-size: 4.2vw;
    font-weight: 700;
    color: #284D9A;
    text-transform: capitalize;
  }

  .first-section table tr td a {
    font-size: 3.8vw;
    color: #000;
    font-weight: 500;
    text-align: right;
    width: 100%;
  }

  */
}


@media (max-width: 768px) {
  .mobile-header.scrolled {
    background-color: #284D9A !important;
    /* background-color: #284D9A;  */
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
}
  .first-section table tr {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
  }

  .first-section table tr:nth-child(n) {
    animation-delay: calc(0.1s * var(--i, 1));
  }

  @keyframes fadeInUp {
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}