/* Couleurs */
:root {
    --dark-purple: rgb(89, 27, 68);
    --light-pink: rgb(252, 239, 239);
    --peach: rgb(249, 169, 143);
    --light-blue: rgb(212, 240, 253);
    --mint-green: rgb(191, 226, 202);
    --black: #000;
    --white: #fff;
}

/* Styles généraux */
body {
    margin: 0;
    font-family: 'Arial', sans-serif;
    background-color: var(--light-pink);
    color: var(--dark-purple);
    line-height: 1.6;
}

#moi img {
    width: 70%;
    border-radius: 10px;
}
.intro {
  background: rgba(0, 0, 0, 0.5);
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

header {
    height: 100vh;
    background: url('images/1000019035.jpg') no-repeat center center/cover;
    position: relative;
}

a {
    text-decoration: none;
    color: inherit;
}

header h1 {
    color: var(--white);
    font-size: 3rem;
}

header p {
    color: var(--light-pink);
    font-size: 1.5rem;
}

.btn {
    background-color: var(--dark-purple);
    color: var(--white);
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    font-size: 1rem;
}

.btn:hover {
    background-color: var(--peach);
    color: var(--black);
}

/* Section de prestations */
.parallax {
  position: relative;
  padding: 100px 0;
  color: var(--black);
  overflow: hidden;
}

.parallax::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('images/1000016101.jpg') no-repeat center center fixed;
  background-size: cover;
  filter: blur(10px); /* Ajustez la valeur pour plus ou moins de flou */
  z-index: -1; /* Place le flou derrière le contenu */
}

.parallax2 {
  background: url('images/PXL_20240527_065945511.jpg') no-repeat center center fixed;
  background-size: cover;
  padding: 100px 0;
  color: var(--black);
}

h2 {
    text-align: center;
    margin-bottom: 30px;
}

.services {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}

.service {
    background-color: var(--mint-green);
    padding: 20px;
    margin: 10px;
    border-radius: 10px;
    text-align: center;
    width: 220px;
    height: 150px;
}

.service:hover {
    scale: 1.1;
}

.service h3 {
    color: var(--light-pink);
}

/* Section Partenaires */
.partners {
    display: flex;
    justify-content: space-around;
    padding: 50px 0;
}

.partner {
    background-color: var(--light-blue);
    padding: 20px;
    border-radius: 10px;
    width: 200px;
    text-align: center;
}

/* Footer */
footer {
    background-color: var(--dark-purple);
    color: var(--white);
    text-align: center;
    padding: 20px 0;
    margin-top: 5%;
    position: relative;
}

footer a {
    color: var(--light-pink);
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}


/*form*/
@import url(https://fonts.googleapis.com/css?family=Dancing+Script:400,700);
h1, p {
  margin: 0;
  padding: 0;
}
h1 {
  font-size: 2rem;
  font-family: 'Dancing Script';
}

input[type=textarea]{
  width: 100%;
  height: 8rem;
  padding: 12px 20px;
  box-sizing: border-box;
  border: 2px solid #ccc;
  border-radius: 4px;
  background-color: #f8f8f8;
  font-size: 16px;
  resize: none;
}
input, button {
  line-height: 1.5rem;
  border: 0;
  outline: none;
  font-family: inherit;
  appearance: none;
}
textarea, input {
  color: black;
  background-color: transparent;
  border: 1px solid rgba(89, 27, 68, 0.2);
  box-shadow: 0 0 0.5rem rgba(89, 27, 68, 0.8);
  padding: 0.5rem;
  border-radius: 0.25rem;
}
textarea {
 width: 100%;
 height: 8rem;
 resize: none;
}
button {
 padding: 0.5rem 1rem;
 border-radius: 0.25rem;
 background-color: rgba(78, 94, 114, 0.9);
 color: white;
 font-size: 1rem;
 transition: background-color 0.2s;
  &:hover,:focus {
    outline: none;
    background-color: rgba(78, 94, 114, 1);
  }
}

/* Espacement entre les sections */
h1, h3 {
  margin-bottom: 1rem; /* Espace sous les titres */
}


/* Responsive Design */
@media (max-width: 768px) {
  .service {
      width: 100%; /* Prendre toute la largeur sur les petits écrans */
  }

  .side {
      width: 100%; /* Prendre toute la largeur du formulaire */
  }

  input {
      width: 100%; /* Prendre toute la largeur sur les petits écrans */
  }
}


/* Styles pour les réseaux*/
.social {
  display: flex;
  justify-content: center;
  margin-top: 20px;
  color: var(--light-blue);
}

.social a {
  margin: 0 10px;
}

.social img {
  width: 30px;
  height: 30px;
}


/* Styles pour le carrousel */
.gallery-carousel {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  width: 80%;
  margin: 0 auto;
}

.gallery-images {
  display: flex;
  transition: transform 0.5s ease-in-out;
  gap: 10px; /* Ajoute un espace entre les images */
}

.gallery-images img {
  width: 600px; /* Ajuste la largeur des images */
  transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
  border-radius: 5px;
}

.gallery-images img.active {
  opacity: 1;
  transform: scale(1.2);
}

.gallery-images img.inactive {
  opacity: 0.6; /* Images adjacentes légèrement transparentes */
  transform: scale(0.8); /* Réduit légèrement la taille des images adjacentes */
}

.carousel-link{
  display: flex;
  justify-content: center;
  margin-top: 20px;
  color: var(--dark-purple);
  font-weight: bold;
  font-size: larger;

}

button.prev, button.next {
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  border: none;
  font-size: 2rem;
  padding: 1rem;
  cursor: pointer;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
  border-radius: 5px;
}

button.prev {
  left: 10px;
}

button.next {
  right: 10px;
}


@media (max-width: 768px) {
  header h1 {
      font-size: 2.5rem;
  }

  header h2 {
      font-size: 1.2rem;
  }

  .services,
  .partners {
      flex-direction: column;
      align-items: center;
  }

  .overlay {
      opacity: 1; /* Affiche le texte superposé en permanence */
  }

  .service,
  .partner {
      width: 80%;
  }

  .gallery-carousel {
      width: 90%;
  }

  .gallery-images img {
      width: 90%;
  }
}

/* Mobiles */
@media (max-width: 480px) {
  header h1 {
      font-size: 2rem;
  }

  header h2 {
      font-size: 1rem;
  }

  .btn {
      font-size: 0.9rem;
      padding: 8px 16px;
  }

  .overlay {
      opacity: 1; /* Affiche le texte superposé en permanence */
  }

  .service,
  .partner {
      width: 250px;
      margin: 5px 0;
  }

  .gallery-carousel {
      width: 100%;
  }

  .gallery-images img {
      width: 80%;
  }

  #about img {
      width: 90%;
  }

  footer {
      font-size: 0.8rem;
      margin-top: 25%;
  }
}

.letterspacing {
  letter-spacing: .8rem;
}

.form {
  justify-content: center;
  align-items: center;
  width: 45%;
  /* center le formulaire */
  margin: 0 auto;
  /* bordure claire */
  border: 2px solid var(--dark-purple);
  /* arrondi les coins */
  border-radius: 10px;
  /* ombre portée */
  box-shadow: 0 0 1rem rgba(199, 89, 162, 0.8);
  /* padding interne */
  padding: 3rem;
}

/* labels dans le formulaire */
.form-label {
  display: block;
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.select-label {
  /* style pour les labels des selects, ils ne sont pas en block */
  display: inline;
  font-size: 1.2rem;
  margin-right: 1rem;
}

.label-bold {
  font-weight: bold;
  font-size: 1.5rem;
  border: .15rem solid var(--dark-purple);
  padding: 0.5rem;
  border-radius: 5px;
  margin-bottom: 1rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-text input{
  font-size: 1.2rem;
  margin-bottom: 1rem;
  /* champ centré Prenant un quart de la largeur du formulaire */
  width: 45%;
  margin: 0 auto;

}
.form-select select {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  /* champ centré Prenant un quart de la largeur du formulaire */
  width: 45%;
  margin: 0 auto;
  /* style pour les selects */
  padding: 0.5rem;
}

.form-textarea textarea {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  /* champ centré Prenant un quart de la largeur du formulaire */
  width: 45%;
  margin: 0 auto;
  /* style pour les textareas */
  padding: 0.5rem;
}

.form-submit button {
  font-size: 1.2rem;
  padding: 0.5rem 1rem;
  background-color: var(--dark-purple);
  color: var(--light-pink);
  border: none;
  border-radius: 5px;
  cursor: pointer;
  /* centré */
  margin: 0 auto;
  display: block;
}

.title-text {
  font-size: 2.7rem;
  text-align: center;
  margin-bottom: 1rem;
  font-weight: bold;
}

.cadre{
  border: .3rem solid rgba(89, 27, 68, 0.8);
  border-radius: .3rem;
  padding: .5rem;
  margin: 1rem;
}

.white-text {
  color: var(--light-pink);
}

.glass-card {
  /* From https://css.glass */
  background: rgba(254, 152, 237, 0.38);
  border-radius: 16px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border: 1px solid rgba(254, 152, 237, 0.32);
}
.glass-card-white {
  /* From https://css.glass */
  background: rgba(245, 195, 236, 0.38);
  border-radius: 16px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border: 1px solid rgba(254, 152, 237, 0.32);
  padding: 1rem;
}

.contact-css{
    font-size: 2.7rem;
    text-align: center;
    margin-bottom: 1rem;
    font-weight: bold;
    letter-spacing: .8rem;
}




/* Magic happens here */
/* même moi j'ai pas tout compris mais t'inquiète ça marche */
/* même pas moi qui ait écrit ça c'est Copilot */
.box {
  position: relative;
  padding-bottom: 1rem;
}

.box select {
  background-color: var(--dark-purple);
  color: white;
  padding: 12px;
  width: 250px;
  border: none;
  font-size: 20px;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
  -webkit-appearance: button;
  appearance: button;
  outline: none;
}

.box::before {
  position: absolute;
  top: 0;
  right: 0;
  width: 20%;
  height: 100%;
  text-align: center;
  font-size: 28px;
  line-height: 45px;
  color: rgba(255, 255, 255, 0.5);
  background-color: rgba(255, 255, 255, 0.1);
  pointer-events: none;
}

.box:hover::before {
  color: rgba(255, 255, 255, 0.6);
  background-color: rgba(255, 255, 255, 0.2);
}

.box select option {
  padding: 30px;
}

/* Styles pour les checkboxes */
input[type="checkbox"] {
  display: inline-block; /* Rendre la checkbox visible */
  width: auto; /* Largeur automatique */
  height: auto; /* Hauteur automatique */
  margin-right: 10px; /* Espace à droite */
  vertical-align: middle; /* Alignement vertical */
  cursor: pointer; /* Curseur pointer */
  appearance: none; /* Enlever les styles par défaut */
  background-color: rgba(0, 0, 0, 0.1); /* Couleur de fond */
  border: 2px solid var(--dark-purple); /* Bordure */
  border-radius: 5px; /* Coins arrondis */
  padding: 0.65rem; /* Espace interne */
  transition: background-color 0.3s, border-color 0.3s; /* Transition */
}
input[type="checkbox"]:checked {
  accent-color: var(--dark-purple); /* Pour les navigateurs modernes */
  background-color: var(--dark-purple); /* Exemple */
}

@media (max-width: 768px) {
  .gallery {
      grid-template-columns: repeat(2, 1fr); /* 2 images par ligne sur les écrans moyens */
  }
  .overlay {
      opacity: 1; /* Affiche le texte superposé en permanence */
  }

  .btn-retour {
      margin-top: 25%;
  }

  .title-text {
    font-size: 2.1rem;
    text-align: center;
    margin-bottom: 1rem;
    font-weight: bold;
  }

  .letterspacing {
    letter-spacing: .6rem;
  }
  .contact-css{
    font-size: 1.2rem;
    text-align: center;
    margin-bottom: 1rem;
    font-weight: bold;
    letter-spacing: .4rem;
}


.box select {
  background-color: var(--dark-purple);
  color: white;
  padding: 12px;
  width: 190px;
  border: none;
  font-size: 20px;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
  -webkit-appearance: button;
  appearance: button;
  outline: none;
}

}

.carte {
  position: relative; /* Nécessaire pour positionner l'overlay */
  width: 90%; /* Réduit légèrement la taille, ajustable */
  max-width: 400px; /* Taille maximum pour les écrans plus grands */
  margin: 0 auto; /* Centré sur la page */
  overflow: hidden; /* Empêche le débordement de l'overlay */
  border: 1px solid #ccc; /* Bordure classique */
  border-radius: 8px; /* Coins légèrement arrondis pour un style classique */
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Ombre douce pour un effet soigné */
}

/* Image */
.carte img {
  width: 100%; /* L'image prend toute la largeur du conteneur */
  height: auto; /* Maintient les proportions de l'image */
  display: block; /* Élimine les espaces blancs en dessous de l'image */
  transition: transform 0.3s ease; /* Effet de zoom doux au survol */
}

.overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(89, 27, 68, 0.6);
  color: var(--white);
  opacity: 0;
  transition: opacity 0.3s ease;
  padding: 10px;
  text-align: center;
  font-size: 1em;
}

.carte:hover .overlay {
  opacity: 1;
}

