/* ------------------------------------------------------ Général ------------------------------------------------------ */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

:root {
  --main-color: rgb(252, 252, 252);
  --second-bg-color: rgba(26, 31, 46, 1);
  --white-color: rgba(216, 216, 216, 1);
  --purple-color: rgba(154, 88, 232, 1);
  --purple-color-opacity: rgba(154, 88, 232, 0.5);
  --second-color: rgba(102, 94, 228, 1);
  --second-color-opacity: rgba(102, 94, 228, 0.3);
  --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --title-gradient: linear-gradient(280deg, #0055ff, #b84ff0, #0055ff);
  --gradient-orange: linear-gradient(135deg, #ce3000 0%, #ff2a00 100%);
  --green-color-opacity: rgba(16, 185, 129, 0.4);
  --green-color: #22c55e;
  --accent-color: rgba(102, 94, 228, 1); /* utilisé par le footer */
}

a,
ul,
li {
  color: var(--second-bg-color);
  text-decoration: none;
  list-style: none;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  overflow-x: hidden;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

p,
ul,
li,
a,
strong {
  font-family: system-ui, sans-serif;
}

h1 {
  font-size: 48px;
  font-weight: 900;
  line-height: 1.1 !important;
}

h2 {
  font-size: 38px;
  font-weight: 900;
  line-height: 1.1 !important;
}

/* Fin: suppression des styles non utilisés (hero, disponibilité, liens sociaux) */

/* ------------------------------------------------------ Titres avec dégradé animé ------------------------------------------------------ */

.title-purple {
  background: linear-gradient(280deg, #0055ff, #b84ff0, #0055ff);
  background-size: 300% 100%;
  background-position: 100% center;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  animation: gradientMoveReverse 2s linear infinite;
}

.title-orange {
  background: linear-gradient(280deg, #ff7e5f, #feb47b, #ff7e5f);
  background-size: 300% 100%;
  background-position: 100% center;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  animation: gradientMoveReverse 2s linear infinite;
}

/* ------------------------------------------------------ Div blur ------------------------------------------------------ */

/* Classe de base commune à tous les blurs */
.blur {
  position: absolute;
  width: 8rem;
  height: 8rem;
  border-radius: 50%;
  filter: blur(2.5rem);
  z-index: 1;
  pointer-events: none;
}

/* Variations de taille */
.blur-sm {
  width: 6rem;
  height: 6rem;
  filter: blur(2rem);
}
.blur-md {
  width: 8rem;
  height: 8rem;
  filter: blur(2.5rem);
}
.blur-lg {
  width: 10rem;
  height: 10rem;
  filter: blur(3rem);
}

/* Variations de couleur */
.blur-blue {
  background: linear-gradient(
    135deg,
    rgba(96, 165, 250, 0.5),
    rgba(139, 92, 246, 0.8)
  );
}

.blur-pink {
  background: linear-gradient(
    135deg,
    rgba(248, 113, 159, 0.5),
    rgba(251, 146, 60, 0.5)
  );
}

.blur-cyan {
  background: linear-gradient(
    135deg,
    rgba(34, 211, 238, 0.4),
    rgba(59, 130, 246, 0.4)
  );
}

/* Animations */
.blur-bounce {
  animation: bounce 2s ease-in-out infinite;
}
.blur-pulse {
  animation: pulse 4s ease-in-out infinite;
}

/* Positionnements spécifiques */
.blur1 {
  top: 1rem;
  right: 70rem;
}
.blur2 {
  top: 1rem;
  right: 1rem;
  animation-delay: 1s;
}
.blur3 {
  bottom: 1rem;
  right: 30rem;
  animation-delay: 0.5s;
}

/* ------------------------------------------------------- Image hero section ------------------------------------------------------- */

.hero-image-wrapper {
  position: relative; /* nécessaire pour les décorations absolues */
  display: inline-block; /* permet de suivre la largeur de l'image */
  width: 100%; /* largeur responsive */
}

.hero-image-wrapper img {
  display: block;
  width: 100%;
  height: auto; /* garde les proportions */
  border-radius: 25px !important;
  border: 5px solid rgba(255, 255, 255, 0.9) !important;
  rotate: 5deg;
  position: relative; /* nécessaire pour z-index */
  z-index: 2; /* image entre cercles (z=1) et icônes (z=3) */
}

/* Carrés avec émoticones */
.decor-top-left,
.decor-bottom-right {
  position: absolute;
  width: 60px; /* largeur relative à l'image */
  height: 60px; /* hauteur relative à l'image */
  background: white;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3; /* toujours devant l'image */
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  animation: bounce 3s ease-in-out infinite;
  font-size: 32px;
}

.decor-top-left {
  top: -10%;
}

.decor-bottom-right {
  bottom: -15%;
  right: -1%;
}

/* Cercles derrière l’image */
.circle-top-right,
.circle-bottom-left {
  position: absolute;
  width: 30%; /* taille relative à l'image */
  height: 30%;
  border-radius: 50%;
  z-index: 1; /* toujours derrière l’image */
}

.circle-top-right {
  top: -5%;
  right: 10%;
  background: linear-gradient(
    135deg,
    rgba(255, 126, 95, 0.6),
    rgba(254, 180, 123, 0.8)
  );
  border-radius: 60% 40% 65% 35% / 55% 45% 55% 45%;
}

.circle-bottom-left {
  bottom: -3%;
  left: -10%;
  background: linear-gradient(
    135deg,
    rgba(96, 165, 250, 0.7),
    rgba(59, 130, 246, 0.9)
  );
  border-radius: 45% 55% 40% 60% / 50% 60% 40% 50%;
}

/* ------------------------------------------------------- Formulaire de contact ------------------------------------------------------- */

.contact-form {
  width: 100%;
  max-width: 600px;
}

.contact-form form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.contact-form .wpcf7-form-control-wrap {
  display: contents;
}

.contact-form p {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact-form p.cube {
  grid-column: auto;
}

.contact-form label {
  font-size: 0.875rem;
  color: var(--second-bg-color);
}

.contact-form label a {
  color: var(--second-bg-color);
  transition: color 0.2s ease;
}

.contact-form label a:hover {
  color: var(--second-color);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  margin-top: 15px;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  padding: 12px 16px;
  border-radius: 8px;
  color: #6b7280;
  font-size: 0.875rem;
  transition: border-color 0.2s ease;
  width: 100%;
  font-family: "Poppins", sans-serif;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #9ca3af;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  border-color: var(--purple-color);
  outline: none;
}

.contact-form textarea {
  resize: none;
  min-height: 140px;
}

.contact-form select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236B7280' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

.contact-form input[type="submit"] {
  background: linear-gradient(135deg, #667eea 0%, #e94dab 100%);
  border: none;
  border-radius: 8px;
  font-weight: 500;
  padding: 14px 24px;
  cursor: pointer;
  color: #ffffff;
  font-size: 0.875rem;
  transition: all 0.3s ease;
}

.contact-form input[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(154, 88, 232, 0.3);
}

/* ------------------------------------------------------- Responsive ------------------------------------------------------- */

@media (max-width: 1023px) {
  h1 {
    font-size: 36px;
  }
  h2 {
    font-size: 28px;
  }
  .contact-form {
    max-width: 100%;
  }
  .blur1,
  .blur2,
  .blur3 {
    display: none;
  }
  .circle-top-right {
    right: -3%;
  }
  .circle-bottom-left {
    left: -5%;
  }
  .contact-form form {
    grid-template-columns: 1fr;
  }

  .contact-form p.cube {
    grid-column: 1;
  }
}
