/* RESET + BASE */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body {
  background-image: url("bodybackground.png");
  background-size: cover;
  color: #333;
  line-height: 1.6;
  overflow-x: hidden;
}

main {
  padding-top: 100px;
  width: 100%;
  max-width: 1200px;
  margin: auto;
  padding-inline: 1rem;
}

h1  {
  color: #ffffff;
  text-align: center;
  font-size: 75px;
	-webkit-animation: text-focus-in 1s cubic-bezier(0.550, 0.085, 0.680, 0.530) both;
	animation: text-focus-in 1s cubic-bezier(0.550, 0.085, 0.680, 0.530) both;
  text-shadow: 
  4px 0px 7px rgb(0, 0, 0),  /* Ombre noire d'origine */
  -4px 6px 7px rgba(255, 0, 0, 0.7), /* Ombre rouge */
  -6px -4px 7px rgb(241, 209, 0); /* Ombre jaune */

}

@-webkit-keyframes text-focus-in {
  0% {
    -webkit-filter: blur(12px);
            filter: blur(12px);
    opacity: 0;
  }
  100% {
    -webkit-filter: blur(0px);
            filter: blur(0px);
    opacity: 1;
  }
}
@keyframes text-focus-in {
  0% {
    -webkit-filter: blur(12px);
            filter: blur(12px);
    opacity: 0;
  }
  100% {
    -webkit-filter: blur(0px);
            filter: blur(0px);
    opacity: 1;
  }
}


h2, h3 {
  font-weight: 700;
  color: #b30000;
  text-align: center;
}

p {
  margin-top: 0.5rem;
}

/* HEADER */
.recruitment-announcement {
  position: fixed;
  top: 0;
  width: 100%;
  background: #fc5858;
  border: 1px solid white;
  color: #fff;
  padding: 0.5rem;
  font-weight: bold;
  text-align: center;
  animation: slide-left 15s linear infinite;
  z-index: 999;
}

@keyframes slide-left {
  0% { left: 100%; }
  100% { left: -100%; }
}

/* HERO */
.hero {
  padding: 4rem 2rem;
  text-align: center;
  margin-bottom: 2rem;
}


.hero p {
  font-size: 1.2rem;
  color: #ffffff;
  -webkit-animation: focus-in-expand-fwd 1.8s cubic-bezier(0.250, 0.460, 0.450, 0.940) both;
  animation: focus-in-expand-fwd 1.8s cubic-bezier(0.250, 0.460, 0.450, 0.940) both;
  text-shadow: 
  4px 0px 7px rgb(0, 0, 0),  /* Ombre noire d'origine */
  -4px 6px 7px rgba(255, 0, 0, 0.7), /* Ombre rouge */
  -6px -4px 7px rgb(241, 209, 0); /* Ombre jaune */

}

 @-webkit-keyframes focus-in-expand-fwd {
    0% {
      letter-spacing: -0.5em;
      -webkit-transform: translateZ(-800px);
              transform: translateZ(-800px);
      -webkit-filter: blur(12px);
              filter: blur(12px);
      opacity: 0;
    }
    100% {
      -webkit-transform: translateZ(0);
              transform: translateZ(0);
      -webkit-filter: blur(0);
              filter: blur(0);
      opacity: 1;
    }
  }
  @keyframes focus-in-expand-fwd {
    0% {
      letter-spacing: -0.5em;
      -webkit-transform: translateZ(-800px);
              transform: translateZ(-800px);
      -webkit-filter: blur(12px);
              filter: blur(12px);
      opacity: 0;
    }
    100% {
      -webkit-transform: translateZ(0);
              transform: translateZ(0);
      -webkit-filter: blur(0);
              filter: blur(0);
      opacity: 1;
    }
  }

.cta-button {
  position: fixed;
  top: 1rem;
  right: 1rem;
  background: #008ae6;
  color: white;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 0 8px rgba(0,0,0,0.5);
  transition: transform 0.3s;
  z-index: 1000;
}

.cta-button:hover {
  animation: pulsate 1.5s infinite; /* Applique l'animation pulsante au survol */
}

@keyframes pulsate {
  0% {
    transform: scale(1);
    box-shadow: 0 4px 10px rgba(2, 2, 2, 0.9);
  }
  50% {
    transform: scale(1.2); /* Légère expansion */
    box-shadow: 0 5px 12px rgba(2, 2, 2, 0.9);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 4px 10px rgba(2, 2, 2, 0.9);
  }
}


/* SECTION HEADERS */
.specialite,
.psychotoph,
.reserver {
  background: #e4cf72;
  border: 2px solid #cfcfcf;
  padding: 1rem;
  margin-block: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.8);
}

/* INFO CARDS */
.info-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin-block: 2rem;
  
}

.info, .info2, .info3 {
  background-color: #f3f1ce;
  width: 100%;
  max-width: 360px;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  transition: transform 0.3s ease;
  box-shadow: 0 6px 12px rgba(0,0,0,0.4);
  border: 1px solid #ffcc00;
  cursor: pointer;
}

.info:hover, .info2:hover, .info3:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.6);
}

.info::before, .info2::before, .info3::before {
  content: "";
  display: block;
  height: 200px;
  background-size: cover;
  background-position: center;
}

.info::before {
  background-image: url('cotemer.jpg');
}

.info2::before {
  background-image: url('coteterre.jpg');
}

.info3::before {
  background-image: url('valencia.jpg');
}

.info p, .info2 p, .info3 p {
  padding: 1rem;
  font-weight: 500;
  color: #333;
  text-align: center;
  background-color: #f3f1ce;
}

/* PSYCHO SECTION - refonte complète */
.psycho {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
  margin: 2rem 0;
  padding: 1rem;
  background-color: #f3f1ce;
  border-radius: 12px;
  border: 4px solid red;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.psycho img {
  flex: 1 1 300px;
  max-width: 400px;
  width: 100%;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.psycho p {
  flex: 2 1 500px;
  padding: 1.5rem;
  background-color: #f7e29d;
  border-radius: 10px;
  font-size: 1rem;
  text-align: justify;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  color: #222;
}

/* INFO CARDS */
.info-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin-block: 2rem;
}

.info, .info2, .info3 {
  background: #ffffff;
  width: 100%;
  max-width: 360px;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  transition: transform 0.3s ease;
  box-shadow: 0 6px 12px rgba(0,0,0,0.1);
  border: 1px solid #ffcc00;
  cursor: pointer;
}

.info:hover, .info2:hover, .info3:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.info::before, .info2::before, .info3::before {
  content: "";
  display: block;
  height: 200px;
  background-size: cover;
  background-position: center;
}

.info::before {
  background-image: url('cotemer.jpg');
}

.info2::before {
  background-image: url('coteterre.jpg');
}

.info3::before {
  background-image: url('valencia.jpg');
}

.info p, .info2 p, .info3 p {
  padding: 1rem;
  font-weight: 500;
  color: #333;
  text-align: center;
}

/* FORMULAIRE */
.reservation {
  background-color: #f3f1ce;
  border: 4px solid red;
  border-radius: 10px;
  padding: 2rem;
  margin-bottom: 3rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.reservation h2 {
  margin-bottom: 1rem;
  color: #b30000;
}

form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  resize: vertical;
  min-height: 100px; /* ≈ 3-4 cm */
}

input,
select,
textarea {
  padding: 0.75rem;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 1rem;
  width: 100%;
  max-height: 200px; /* ≈ 6-7 cm */
  resize: vertical;
}

/* Limite de redimension pour les textarea */

/* Style pour le lien vers la carte */
form a {
  text-decoration: underline;
  color: #b30000;
  font-size: 0.95rem;
  margin-top: -0.5rem;
  display: inline-block;
}

/* Bouton de validation */
button {
  background: #c09f0a;
  color: #fff;
  padding: 0.75rem;
  font-size: 1rem;
  border: 2px solid red;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.3s ease;
}

button:hover {
  background: #f0bc12;
  cursor: pointer;
}


/* ANIMATIONS */
.bull-image {
  position: fixed;
  bottom: 0.1vh;
  left: -15vw;
  width: clamp(80px, 10vw, 150px);
  animation: bull-slide 10s linear infinite;
}
@keyframes bull-slide {
  0% { left: -15vw; }
  100% { left: 100vw; }
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .hero h2 {
    font-size: 2rem;
  }

  .cta-button {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }

  .reservation, .specialite, .reserver {
    padding: 1rem;
  }

  .info-container {
    flex-direction: column;
    align-items: center;
  }

  .psycho {
    flex-direction: column;
  }

  .psycho img,
  .psycho p {
    width: 100%;
    max-width: 100%;
  }
}
