/* GLOBAL STYLES */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
      display: flex;
  flex-direction: column;
  min-height: 100vh; /* Prend toute la hauteur de la fenêtre */
  font-family: 'Arial', sans-serif;
  background-color: #f4f4f4;
  color: #333;
}

h1, h2, h3 {
  font-weight: normal;
}

header .logo h01 {
  font-size: 1.4rem;
   font-family: "Permanent Marker", serif;
  font-weight: 400;
  font-style: normal;
  color: rgb(252, 185, 185);
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
}

/* HEADER */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  background-color: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

header .logo h1 {
  font-size: 2rem;
  color: rgb(252, 185, 185);
}

header nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
}

header nav ul li a {
  color: #333;
  font-size: 1rem;
  transition: color 0.3s;
}

header nav ul li a:hover {
  color: #FF5F5F;
}


/* HERO SECTION */
.hero {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 500px;
  background-color: #f4f4f4;
  text-align: center;
  position: relative;
}

.hero .hero-content {
  width: 600px;
    height: 380px;
  padding: 20px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.hero h2 {
  font-size: 3rem;
  color: #333;
  margin-top: 10px;
  transition: opacity 1s ease;
}

.hero img {
    max-height: 200px;
}

.cta-button {
  display: inline-block;
  padding: 12px 30px;
  background-color: #1E90FF;
  color: white;
  font-size: 1.2rem;
  margin-top: 30px;
  border-radius: 5px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease;
}

/* Effet de pulsation sur le bouton au survol */
.cta-button:hover {
  transform: scale(1.1); /* Le bouton grossit au survol */
  animation: pulse 1s ease-out infinite;
}

/* Keyframes pour l'effet de pulsation */
@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

/* Effet de reflet dynamique sur le bouton */
.cta-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(100deg, rgba(197, 235, 250, 0.01), rgba(255, 255, 255, 0.6),  rgba(197, 235, 250, 0.01));
  animation: reflect 6s linear infinite;
  opacity: 0.6;
}

@keyframes reflect {
  0% {
    left: -100%;
  }
  50% {
    left: 100%;
  }
  100% {
    left: -100%;
  }
}

/* CACHE LE TEXTE, BOUTON ET PERSONNAGE */
.hero-message, .cta-button, .chibi-hero {
  opacity: 1;
  transition: opacity 1s ease;
}

/* CONTENT SECTIONS (initialement cachées) */
#content {
  display: none;
  padding: 30px 20px;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  position: absolute;
    margin-top: 200px;
    border: 0px solid;
  width: 100%;
}

/* Conception des blocs de contenu - à côté mais centrés */
.content-container {
  display: flex;
  justify-content: center; /* Centre horizontalement les blocs */
  gap: 10px; /* Espacement entre les blocs */
  opacity: 0;
  transition: opacity 1s ease-in-out;
  width: 100%;
  max-width: 800px;  /* Limite la largeur du conteneur pour ne pas étirer trop */
  margin: 0 auto;  /* Centre le conteneur sur la page */
}

.content-block {
  width: 25%;  /* Bloc plus étroit */
  max-width: 350px;  /* Largeur maximale du bloc */
  height: 350px;  /* Hauteur des blocs */
  padding: 10px;
  border-radius: 10px;
  text-align: center;
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 1s ease, transform 1s ease, background-color 0.3s ease;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;  /* Cache le texte qui dépasse */
}

.content-block h3 {
  font-size: 1.6rem;
  margin-bottom: 35px;
  z-index: 2;
  white-space: nowrap; /* Empêche le texte de passer à la ligne */
  overflow: hidden;  /* Cache tout texte qui dépasse */
  text-overflow: ellipsis;  /* Ajoute "..." à la fin si le texte dépasse */
}

.content-block p {
  font-size: 1rem;
  margin-bottom: 15px;
  flex-grow: 1;
  overflow: hidden;  /* Cache le texte qui dépasse */
  text-overflow: ellipsis;  /* Ajoute "..." à la fin si nécessaire */
}

.content-block img {
  width: 80%;            /* L'image occupe toute la largeur du bloc */
  height: 60%;          /* Hauteur fixe pour les images */
  object-fit: cover;      /* Couvre le conteneur sans déformation */
  object-position: top;   /* L'image commence par le haut */
  border-radius: 10px;     /* Arrondi des coins de l'image */
}

/* Couleurs des blocs avec fond bicolore */
#courses {
  background: linear-gradient(to bottom, #FF5F5F 10%, #fff 40%);
}

#webtoons {
  background: linear-gradient(to bottom, #FFDD00 10%, #fff 40%);
}

#resources {
  background: linear-gradient(to bottom, #1E90FF 10%, #fff 40%);
}

#shop {
  background: linear-gradient(to bottom, #1FDD00 10%, #fff 40%);
}

/* Animation au survol des blocs */
.content-block:hover {
  opacity: 1; /* Le bloc devient totalement visible */
  animation: pulseAndTilt 2s ease-in-out infinite; /* Pulsation + Penchement */
}

/* Keyframes pour la pulsation + penchement */
@keyframes pulseAndTilt {
  0% {
    transform: scale(1) rotate(0deg); /* Pas de rotation ni de pulsation au début */
  }
  25% {
    transform: scale(1.10) rotate(-3deg); /* Grossissement + inclinaison à gauche */
  }
  50% {
    transform: scale(1) rotate(0deg); /* Retour au centre avec un léger grossissement */
  }
  75% {
    transform: scale(1.01) rotate(5deg); /* Grossissement + inclinaison à droite */
  }
  100% {
    transform: scale(1) rotate(0deg); /* Retour au centre sans aucune rotation */
  }
}




/* FOOTER */
footer {
  text-align: center;
  padding: 20px;
  background-color: #333;
  color: white;
  margin-top: auto;         /* Pousse le footer au bas de la page */
}

footer .socials {
  margin-bottom: 10px;
}

footer .socials a {
  margin: 0 10px;
  color: white;
  font-size: 1.2rem;
  transition: color 0.3s;
}

footer .socials a:hover {
  color: #FF5F5F;
}
