/* ------------------- BASE GÉNÉRALE ------------------- */

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  background-color: #f8f0e8;
}

/* ------------------- En-tête du site (HEADER) ------------------- */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  max-width: 100vw;
  background-color: #A8D5BA;
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: auto;
  box-sizing: border-box;
  z-index: 1000;


  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);  -webkit-mask-image: linear-gradient(to bottom, black calc(100% - 20px), transparent 100%);
  mask-image: linear-gradient(to bottom, black calc(100% - 20px), transparent 100%);
}


header img {
  width: clamp(100px, 25vw, 200px);
  height: auto;
  object-fit: contain;
  cursor: pointer;
  margin-bottom: 0.5rem;
  position: static;
  transition: width 0.3s ease;
}

/* Image à droite */
header img.header-right-img {
  width: clamp(80px, 15vw, 150px);
  height: auto;
  cursor: default;
  opacity: 0.8;
  flex-shrink: 0;
  flex-grow: 0;
  margin-left: 1rem; /* un petit espace entre menu et image */
}

@media (max-width: 600px) {
  header img {
    height: clamp(1.2rem, 4vw, 2rem);
  }
}


/* ------------------- MENU ------------------- */
nav {
  display: flex;
  justify-content: center;
  gap: 1.875rem;
  font-family: 'Raleway', sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
}

nav a {
  color: #5A6B57;
  text-decoration: none;
  transition: color 0.3s ease, border-bottom 0.3s ease;
  padding-bottom: 0.1875rem;
  border-bottom: 0.125rem solid transparent;
}

nav a:hover {
  color: #224b35;
  border-bottom: 0.125rem solid #2F5D44;
  cursor: pointer;
}
nav a.active {
  color: #42747c;
  border-bottom: 0.125rem solid  #42747c;
}  
/* ------------------- contenu principa MAIN ------------------- */
main {
  max-width: 50rem;
  margin: 0 auto 5rem auto;
  padding: 1.25rem;
   padding-top: 100px; /* ou margin-top: 100px; */
}

main h1 {
  font-family: 'Roboto Slab', serif;
  font-size: 2.8rem;
  font-weight: 700;
  color: #2F5D44;
  text-align: center;
  margin-top: 0;
  margin-bottom: 0.5rem;
}

main > p {
  font-family: 'Poppins', sans-serif;
  font-size: 1.4rem;
  font-weight: 500;
  color: #5A6B57;
  margin-top: 0;
  margin-bottom: 2rem;
  text-align: center;
}

/* Formulaire */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 700px;
  margin: 0 auto;
  background-color: #f8f0e8; /* même que fond général */
  padding: 2rem;
  border: 3px solid #A8D5BA;
  border-radius: 1rem;
  box-shadow:
    6px 6px 12px rgba(46, 85, 54, 0.4),
    -6px -6px 12px rgba(173, 214, 174, 0.8),
    inset 3px 3px 6px rgba(173, 214, 174, 0.6),
    inset -3px -3px 6px rgba(46, 85, 54, 0.15);
  color: #1a1a1a;
  font-family: 'Raleway', sans-serif;
  position: relative;
  z-index: 10;
}

/* Groupe question + réponse */
.form-group {
  display: flex;
  flex-direction: column;
  text-align: left;
}

/* Labels des inputs radio et checkbox */
.form-group label {
  display: flex;
  align-items: center;
  margin-bottom: 0.6rem;
  cursor: pointer;
  font-weight: 200;
  font-size: 1.1em;
  color: #2B2B2B;
}
/* Spécifique aux labels avec la classe question-title */
.form-group label.question-title {
  list-style: none;
  padding-left: 0;
  margin-bottom: 1.1rem;
  font-family: 'Raleway', sans-serif;
  font-size: 1.1rem;
  color: #4a6b50;
}

/* Radio inputs */
.form-group input[type="radio"] {
  margin-right: 0.6rem;
  cursor: pointer;
  align-self: flex-start;
}

/* Inputs texte, email, selects, textarea */
.form-group input:not([type="radio"]),
.form-group select,
.form-group textarea {
  padding: 0.6rem 0.8rem;
  font-family: 'Raleway', sans-serif;
  font-size: 0.9rem;
  border: 1px solid #ccc;
  border-radius: 0.5rem;
  background-color: #fff;
  box-shadow: inset 1px 1px 3px rgba(0,0,0,0.05);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;

}


/* Textarea hauteur */
.form-group textarea {
  min-height: 100px;
}

/* Bouton */
.contact-form button,
button[type="submit"] {
  background-color: #A8D5BA;
  color: #2F5D44;
  border: none;
  padding: 0.75rem 1.875rem;
  border-radius: 1.5625rem;
  font-weight: 700;
  font-size: 1.2em;
  cursor: pointer;
  align-self: center;
  box-shadow: 0 3px 6px rgba(168, 213, 186, 0.5);
  transition: background-color 0.3s ease, text-decoration 0.3s ease;
  font-family: 'Poppins', sans-serif;
  margin-top: 1.5rem;
  display: block;
  text-align: center;
  min-width: 200px;
}

.contact-form button:hover,
button[type="submit"]:hover,
button[type="submit"]:focus {
  background-color: #8bb59b;
  text-decoration: underline;
  outline: none;
}

/* Questions en paragraphes dans formulaire */
form > p {
  font-weight: bold;
  font-size: 1.8rem;
  margin-top: 1.5rem;
  margin-bottom: 1rem;
  color: #660937;
  font-family: 'Roboto Slab', serif;
  text-align: left;
}

.form-intro {
  font-weight: 700;
  color: #2f5d48;
  font-size: 1.1em;
  margin-bottom: 1rem;
  font-family: 'Raleway', sans-serif;

}

/* Alignement labels + radios */
form label {
  display: flex;
  align-items: center;
  margin-bottom: 0.6rem;
  cursor: pointer;
}

.form-group select,
.form-group label.question-title,
form > p {
  margin-top: 0.8rem;
  margin-bottom: 0.8rem;
  display: block;
}




.rating-hearts {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 0.5rem;
  cursor: pointer;
  user-select: none;
}

.heart {
  stroke: #999;
  fill: transparent;
  transition: stroke 0.3s ease, fill 0.3s ease;
}

/* Couleurs des cœurs actifs selon la position */
.heart.active-1 {
  fill: #d9534f; /* rouge */
  stroke: #d9534f;
}
.heart.active-2 {
  fill: #f0ad4e; /* orange */
  stroke: #f0ad4e;
}
.heart.active-3 {
  fill: #ffd966; /* jaune */
  stroke: #ffd966;
}
.heart.active-4 {
  fill: #9acd32; /* vert clair */
  stroke: #9acd32;
}
.heart.active-5 {
  fill: #4caf50; /* vert foncé */
  stroke: #4caf50;
}




.avis-lus {
  background-color: #a8d5ba88;
  color: #2f5d4481;
  border-radius: 1.5625rem;
  padding: 1.5rem 2rem;
  box-shadow: 0 3px 6px rgba(168, 213, 186, 0.5);
  font-family: 'Poppins', sans-serif;
  max-width: 700px;
  margin: 2rem auto;
}

.avis-lus h2 {
  font-weight: 700;
  font-size: 1.8em;
  text-align: center;
  margin-bottom: 1.2rem;
}

.avis-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.avis-item {
  background-color: #ffffffcc; /* blanc translucide pour contraste */
  padding: 1rem 1.5rem;
  border-radius: 1.25rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  color: #2F5D44;
  font-weight: 600;
}

.avis-texte {
  font-style: italic;
  margin-bottom: 0.5rem;
  font-size: 1.1em;
}

.avis-auteur {
  font-weight: 700;
  font-size: 1em;
  text-align: right;
  opacity: 0.8;
}

.avis-note {
  text-align: right;
  color: #2F5D44;
  font-weight: 700;
  font-size: 1.1em;
}




.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal.hidden {
  display: none;
}

.modal-content {
  background-color: #f8f0e8;
  border: 3px solid #A8D5BA;
  padding: 30px;
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  font-family: 'Raleway', sans-serif;
  max-width: 90%;
  width: 300px;
}

.modal-content p {
  font-size: 18px;
  margin-bottom: 20px;
}

.modal-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 20px;
  flex-wrap: wrap; /* Permet de passer à la ligne si trop large */
}

.modal-buttons button {
  flex: 1 1 100px; /* largeur minimum 100px, mais s’adapte */
  max-width: 140px; /* max largeur */
  padding: 10px 15px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  font-size: 16px;
  box-sizing: border-box;
  
}

.rating-container label.question-title {
  font-family: 'Raleway', sans-serif;
  font-size: 1.1rem;
  color: #4a6b50;
  list-style: none;
  padding-left: 0;
  margin-bottom: 1.1rem;
  /* autres styles */
}
#confirm-yes {
  background-color: #A8D5BA;
  color: white;
}

#confirm-yes:hover {
  background-color: #91c7aa;
}

#confirm-no {
  background-color: #ec6f45;
  color: white;
}

#confirm-no:hover {
  background-color: #cf5935;
}

.btn-wrapper {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

#btn-envoyer {
  background-color: #A8D5BA;
  color: #1a1a1a;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 12px;
  font-weight: bold;
  font-size: 1.2rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
  font-family: 'Poppins', sans-serif;
  box-shadow: 0 3px 6px rgba(168, 213, 186, 0.5);
}

#btn-envoyer:hover {
  background-color: #91caa8;
}





/* ------------------- ÉLÉMENTS GRAPHIQUES ------------------- */
.monstera, .chat ,.chatgif {
  position: absolute;
  opacity: 0.3;
  pointer-events: none;
  user-select: none;
  max-width: 100%;
  height: auto;
}

.monstera {
  bottom: 0;
  left: 5vw;
  width: 15vw;
}

.chat {
  top: 0;
  right: 5vw;
  width: 20vw;
}
.chatgif {
  position: absolute;
  bottom: -30vw;
  right: 0vw;
  width: 25vw; /* ← augmente la taille ici */
  opacity: 0.3;
  pointer-events: none;
  user-select: none;
  max-width: 100%;
  height: auto;
}

.patte-anim {
  transition: transform 0.3s ease;
  display: block;
  margin: 1.25rem auto 0.9375rem;
}

.patte-anim:hover {
  transform: scale(1.1);
}


/* =================== BOUTON RETOUR ACCUEIL =================== */

.btn-cta-img {
  position: fixed;
  bottom: 150px;
  right: 20px;
  width: 70px; /* ajuste selon la taille du visuel */
  height: auto;
  background-color: rgba(168, 213, 186, 0.9); /* même couleur avec transparence */
  border-radius: 50%; /* arrondi total, tu peux mettre 1.5625rem si tu veux comme le bouton */
  padding: 0.5rem;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.3s ease;
  z-index: 1000;
}

.btn-cta-img:hover {
  transform: scale(1.05);
  background-color: rgba(168, 213, 186, 1);
}
.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.badge {
  position: relative;
  display: inline-block;
}

.badge input {
  display: none;
}

.badge span {
  display: inline-block;
  padding: 10px 15px;
  background-color: #f3f3f3;
  border-radius: 25px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  font-size: 16px;
}

.badge:hover span {
  background-color: #e0f7fa;
}

.badge input:checked + span {
  background-color: #b2ebf2;
  border-color: #00acc1;
  font-weight: bold;
  color: #004d40;
}


/* -------------------  Bas du site FOOTER ------------------- */
footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  max-width: 100vw;
  background-color: #A8D5BA;
  color: #407c5be0;
  text-align: center;
  padding: 1.5rem 0.625rem 1rem 0.625rem; /* padding top plus généreux */
  box-shadow: 0 -0.125rem 0.375rem rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  justify-content: flex-start; /* contenu en haut pour gérer padding */
  align-items: center;
  height: auto;
  box-sizing: border-box;
  z-index: 1000;
  -webkit-mask-image: linear-gradient(to top, black calc(100% - 20px), transparent 100%);
  mask-image: linear-gradient(to top, black calc(100% - 20px), transparent 100%);
}

footer p {
  margin: 0; /* margin resetée */
  padding-top: 0.5rem; /* espace au-dessus du texte */
  font-size: 1em;
  line-height: 1.4;
}

.social-icons a img {
  width: 2.5rem;
  height: 2.5rem;
  transition: transform 0.3s ease;
}

.social-icons a:hover img {
  transform: scale(1.2);
  cursor: pointer;
}


.moyenne-coeurs {
    text-align: right;
        font-size: 1.5rem;
  }


