body {
    margin: 0;
    overflow-x: hidden; /* Important pour éviter les barres de défilement horizontales inattendues */
    font-family: 'Yusei Magic', sans-serif;
}

* {
  margin: 0;
  box-sizing: border-box;
}


.grid-container {
  display: grid;
  grid-template-areas:
    'header header header header header header'
    'menu main main main main right'
    'footer footer footer footer footer footer';
  gap: 10px;

  padding: 10px;
}

.grid-container > div {
  padding: 10px;
  font-size: 16px;
}

.item1 {
  grid-area: header;
  text-align: center;
}

.item1 img{
  width: 45%;
}

.item1 > h1 {
  font-size: 40px;
}

.item2 {
  grid-area: menu;
  }
  
.item2 ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
}

.item2 li {
  padding: 8px;
  margin-bottom: 7px;
  background-color: #33b5e5;
  color: #ffffff;
}

.item2 li:hover {
  background-color: #0099cc;
}
  
.item3 {
  grid-area: main;
}

.item3 > h1 {
  font-size: 30px;
  margin-bottom: 7px;
}

.item3 > p {
  margin-bottom: 7px;
}

.item4 {
  grid-area: right;
  border: 2px solid #0099cc;
  background-color: white;
  padding: 15px;
  color: #000000;
}

.item4 > h2 {
  font-size: 20px;
  padding-bottom: 10px;
}

.item4 li {
  padding: 5px;
  margin-bottom: 5px;
}

.item5 {
  grid-area: footer;
  background-color: #0099cc;
  color: #ffffff;
  text-align: center;
}


.btn {
  border-radius: 8px;
  color: white;
  padding: 15px 32px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 18px;
  margin: 4px 2px;
  cursor: pointer;
}

.btn-success  {background-color: #04AA6D;} /* Green */
.btn-primary {background-color: #008CBA;} /* Blue */
.btn-alert {background-color: #f44336;} /* Red */ 
.btn-muted {background-color: #e7e7e7; color: black;} /* Gray */ 
.btn-black {background-color: #555555;} /* Black */





.hero-section {
    height: 100vh;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #333;
    position: relative; /* Pour positionner les boîtes */
}

.hero-section h1 {
    font-size: 3em;
    margin-bottom: 50px;
    /*opacity: 0;  Caché au début, GSAP va le faire apparaître */
}

.box {
    width: 100px;
    height: 100px;
    background-color: dodgerblue;
    margin: 10px;
    border-radius:  50%;
    position: absolute; /* Pour les déplacer librement */
}



.box-1 {
    top: 20%;
    left: 10%;
    background-color: #ff6347; /* Tomate */
}

.box-2 {
    bottom: 20%;
    right: 10%;
    background-color: #20b2aa; /* Light Sea Green */
}


.scroll-section {
    height: 150vh; /* Une section plus longue pour le scroll */
    background-color: #e0e0e0;
    padding: 50px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 1; /* S'assurer qu'elle est au-dessus du footer si besoin */
}

.scroll-section h2 {
    font-size: 2.5em;
    margin-bottom: 40px;
}

.image-parallax {
    width: 80%;
    height: 400px;
    background-image: url('https://picsum.photos/1200/800?random=1'); /* Image aléatoire */
    background-size: cover;
    background-position: center;
    margin-bottom: 50px;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.text-fade {
    font-size: 1.2em;
    max-width: 700px;
    margin-bottom: 20px;
    line-height: 1.8;
    /* opacity: 0; /* Caché par défaut */
    transform: translateY(10px); /* Décalé pour l'animation */
}

.footer-section {
    height: 50vh;
    background-color: #333;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
}

.responsive {
  width: 100%;
  height: auto;
}


table {
    width: 100%; /* Prend 100% de la largeur du conteneur */
    margin: 0 auto; /* Centre le tableau */
    border-collapse: collapse; /* Supprime l'espace entre les bordures des cellules */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); /* Ombre douce pour un look "design" */
    border-radius: 8px; /* Coins arrondis */
    overflow: hidden; /* Assure que l'arrondi s'applique aux bordures */    
}
th, td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #ddd; /* Ligne de séparation entre les rangées */
}
th {
    background-color: #3498db; /* Bleu attrayant pour l'en-tête */
    color: white;
    font-weight: bold;
    text-transform: uppercase; /* Met le texte en majuscules */
}
tr {
  padding: 15px;
  border-bottom: 1px solid #c51818;
}
tr:nth-child(even) {
    background-color: #f8f8f8; /* Couleur de fond différente pour les rangées paires */
}
tr:hover {
    background-color: #eef; /* Changement de couleur au survol de la rangée */
}
td a {
    color: #2980b9; /* Couleur du lien */
    text-decoration: none; /* Supprime le soulignement par défaut */
    font-weight: bold;
}
td a:hover {
    text-decoration: underline; /* Souligne le lien au survol */
}


@media only screen and (max-width: 600px) {
  .item1 {grid-area: 1 / span 6;}
  .item2 {grid-area: 2 / span 6;}
  .item3 {grid-area: 3 / span 6;}
  .item4 {grid-area: 4 / span 6;}
  .item5 {grid-area: 5 / span 6;}
  .box {width: 60px ;height: 60px;}
}

/* Styles responsifs pour les petits écrans */
@media (max-width: 768px) {
  .item1 img{width: 100%;}
  table, thead, tbody, th, td, tr {
      display: block; /* Empile les éléments du tableau */
  }
  thead tr {
      position: absolute;
      top: -9999px;
      left: -9999px; /* Cache l'en-tête sur les petits écrans */
  }
  tr {
      margin-bottom: 15px;
      border: 1px solid #ddd;
      border-radius: 8px;
      box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  }
  td {
      border: none;
      border-bottom: 1px solid #eee;
      position: relative;
      padding-left: 50%; /* Espace pour la pseudo-colonne d'en-tête */
      text-align: right;
  }
  td:last-child {
      border-bottom: none;
  }
  td:before {
      content: attr(data-label); /* Utilise l'attribut data-label comme en-tête */
      position: absolute;
      left: 0;
      width: 45%;
      padding-left: 10px;
      font-weight: bold;
      text-align: left;
      color: #555;
  }
}