/* Reset + base */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
    width: 100%;
}


.diaporama {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -2;
  overflow: hidden;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  animation: fade 25s linear infinite;
}

/* Définir les images */
.slide1 {
  background-image: url(/public/images/cuisine-thailandaise-nouilles-udon-a-la-sauce-soja-riz-pousses-de-haricots-et-soupe-sur-le-bureau.jpg);
  animation-delay: 0s;
}
.slide2 {
  background-image: url(/public/images/delicieuse-cuisine-indienne-sur-plateau-high-angle.jpg);
  animation-delay: 5s;
}
.slide3 {
  background-image: url(/public/images/Haitian-Griot-Recipe-Featured-Image.jpg);
  animation-delay: 10s;
}
.slide4 {
  background-image: url(/public/images/la-bandera-dominican-lunch.jpg);
  animation-delay: 15s;
}
.slide5 {
  background-image: url(/public/images/bokit.jpeg);
  animation-delay: 20s;
}


/* Overlay par-dessus */
.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

/* Animation d’opacité */
@keyframes fade {
  0%   { opacity: 0; }
  5%   { opacity: 1; }
  25%  { opacity: 1; }
  30%  { opacity: 0; }
  100% { opacity: 0; }
}



/* Contenu normal au-dessus du diaporama */
.contenu {
    position: relative;
    z-index: 0;
    padding: 100px 20px;
    color: white; /* ou autre, selon le contraste souhaité */
}

.logo-f-e {
   display: flex;
}

.logo-f-e > img {
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 5vh;
    border-radius: 50%;
    height: 150px;
    width: 150px;
}

.restaurants {
    flex-direction: column;
    display: flex;
    align-items: center;
}

.card {
    border: solid 4px #7DD450;
    background-color: #1C3714;
    opacity: 0.8;
    width: 32vh; /* Tu peux aussi remplacer vh par une unité plus adaptée si nécessaire */
    margin-top: 8vh;
    border-radius: 5%;
    padding: 1rem; /* optionnel : pour ajouter un peu d'espace interne */
    display: flex;
    flex-direction: column;
    align-items: center;
}

h2 {
    color: #8AFF62;
}

.restaurants-logos {
    width: 100%;
    border-radius: 8%;
    height: 70%;
}

.responsive-logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8%;
}

.exposant {
    text-align: center;
    margin-top: 2vh;
}

.food-type {
    text-align: center;
    margin-top: 1vh;
}

.btn {
  display: inline-block;
  background-color: #DC2E23;
  color: white;
  padding: 12px 20px;
  margin-top: 2vh;
  text-decoration: none;
  border-radius: 6px;
  font-size: 16px;
  transition: background-color 0.3s ease;
}

.btn:hover {
  background-color: #f0c91a;
  font-weight: bolder;
}

.exposant-tel{
    text-align: center;
    margin-top: 1vh;
}

.exposant-tel a {
    text-decoration: none;
    color: white;
}

.exposant-tel a:hover {
    text-decoration: underline;
}



/* RESPONSIVE DESKTOP */

@media screen and (min-width: 768px) {

  .chapeau {
    text-align: center;
  }
  
  .card {
  width: 280px;
  height: 480px; /* Taille fixe pour toutes les cartes */
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* Répartit les éléments */
  align-items: center;
  padding: 1rem;
  background-color: #1C3714;
  border: solid 4px #7DD450;
  border-radius: 5%;
  opacity: 0.9;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.restaurants-logos {
  width: 100%;
  height: 150px; /* Force les logos à la même hauteur */
  border-radius: 8%;
  overflow: hidden;
}

.responsive-logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8%;
}

.exposant, .food-type, .exposant-tel, .button {
  width: 100%;
  text-align: center;
}

  .contenu {
    padding: 120px 80px;
    max-width: 1200px;
    margin: 0 auto;
  }

  .restaurants {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 40px;
  }

  .card {
    width: 280px;
    margin-top: 4vh;
    opacity: 0.9;
    transition: transform 0.3s ease, opacity 0.3s ease;
  }

  .card:hover {
    transform: scale(1.03);
    opacity: 1;
  }

  .logo-f-e img {
    height: 200px;
    width: 200px;
  }

  h1 {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 2rem;
  }

  p {
    font-size: 1.2rem;
    text-align: center;
    margin-bottom: 2rem;
  }

  .btn {
    font-size: 1rem;
    padding: 12px 24px;
  }
}
