@font-face {
  font-family: 'Simple Michael';
  src: url('../images/Simple michael.ttf') format('truetype');
}

body {
  margin: 0;
  font-family: 'Simple Michael', sans-serif;
  color: #682c00;
  position: relative;
  overflow-x: hidden;
}

.background {
  background-image: url('/images/Background.jpg');
  background-size: cover;
  background-position: center;
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

/* Bandeau haut */
.bandeau-haut {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  z-index: 10;
  box-shadow: 0 4px 8px #682c00; /* Ombre vers le bas */
}

/* Bandeau bas */
.bandeau-bas {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: auto;
  z-index: 10;
  box-shadow: 0 -4px 8px #682c00; /* Ombre vers le haut */
}

/* Centrage du logo dans la page */
.logo {
  position: relative;
  display: block;
  margin: 0 auto;
  width: 76.4vw;       /* 1100 / 1440 ≈ 76.4% */
  max-width: 1100px;   /* Ne dépasse jamais sa taille d’origine */
  min-width: 400px;    /* Reste lisible sur petits écrans */
  height: auto;
  z-index: 1;          /* S'affiche au-dessus du fond, mais sous les bandeaux */
  padding-top: 85px;  /* Décale le logo pour ne pas être caché par le bandeau haut */
  padding-bottom: 10px; /* Idem pour le bas */
}

/* Animation d’apparition du logo */
@keyframes apparitionLogo {
  0% {
    opacity: 0;
    transform: scale(0.8);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.logo {
  animation: apparitionLogo 1.2s ease-out forwards;
  opacity: 0; /* Point de départ invisible */
}

.zone-texte {
  color: #fcca9b;
  font-family: 'Simple Michael', sans-serif;
  font-size: 1.5rem;
  text-align: center;
  margin: 1rem auto;
  max-width: 1100px; /* largeur max = celle du logo */
  width: 90vw;       /* responsive sur petits écrans */
  line-height: 1.5;
}



/* Conteneur des onglets */
.onglets {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin: 2rem 0;
}

/* Onglet individuel */
.onglet {
  width:200px;
  height: 200px;
  position: relative;
    cursor: pointer;
}

/* Images superposées */
.onglet img {
  position: absolute;
  top: 0;
  left: 0;
  width: 200px;
  height: 200px;
  opacity: 0;
  animation: apparition 1s ease-out forwards;
}

/* Visuel pulse + morph */
.onglet img.visuel {
  animation: apparition 1s ease-out forwards, pulse 2s infinite ease-in-out, morphOut 4s infinite ease-in-out;
  z-index: 2;
  filter: drop-shadow(0 6px 8px #682c00);
}

/* Texte morph in */
.onglet img.texte {
  animation: apparition 1s ease-out forwards, morphIn 4s infinite ease-in-out;
  z-index: 1;
}

/* Apparition */
@keyframes apparitionOnglet {
  0% { opacity: 0; transform: scale(0.8); }
  100% { opacity: 1; transform: scale(1); }
}

/* Pulsation */
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

/* Morphing visuel → texte */
@keyframes morphOut {
  0%, 45% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

@keyframes morphIn {
  0%, 45% { opacity: 0; }
  50%, 100% { opacity: 1; }
}

/* Délai d’apparition pour chaque onglet */
.onglet:nth-child(1) img {
  animation-delay: 0.5s, 0.5s, 0.5s;
}
.onglet:nth-child(2) img {
  animation-delay: 1.2s, 1.2s, 1.2s;
}
.onglet:nth-child(3) img {
  animation-delay: 1.9s, 1.9s, 1.9s;
}
.bandeau-haut,
.bandeau-bas {
  cursor: pointer;
}

@media screen and (max-width: 768px) {
  .onglets {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    padding: 1rem;
  }

  .onglet {
    width: 60vw;
    max-width: 300px;
    aspect-ratio: 1 / 1;       /* carré responsive */
    position: relative;
    overflow: hidden;
    margin-bottom: 1rem;
  }

  .onglet img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
  }
}