/* =====================================================================
   DEVIS.CSS : styles des formulaires du site
     - devis.html            (demande de devis)
     - laisser-un-avis.html  (laisser un avis)
   Ces pages utilisent aussi CSS/style.css et CSS/prestations.css (titre "ta-hero",
   accroche "ta-accroche", bouton "ta-bouton"), comme les autres pages refaites.
   Couleurs du site : violet #810ece → bleu #35b8f5 · turquoise bien-être #0b6f78
   ===================================================================== */

/* ----- Haut de page : les 3 petites pastilles sous le titre ----- */
.devis-atouts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.devis-atouts li {
  background: #fff;
  border: 2px solid #1e1b2e;
  border-radius: 999px;
  padding: 5px 14px;
  font-size: 0.95rem;
  font-weight: 700;
}

.devis-atouts i {
  color: #810ece;
  margin-right: 4px;
}

/* ----- Mise en page : formulaire à gauche, colonne d'infos à droite ----- */
.devis-grille {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 24px;
  align-items: start;
}

/* la colonne de droite reste visible quand on fait défiler (ordinateur) */
.devis-cote {
  position: sticky;
  top: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

@media (max-width: 991.98px) {
  .devis-grille {
    grid-template-columns: 1fr;
  }

  .devis-cote {
    position: static;
  }
}

/* ----- Cadre "verre" du formulaire et des encadrés -----
   Plus blanc que les autres cadres du site, pour que les cases restent bien lisibles.
   Pour le rendre plus transparent : baisser le 0.7 (entre 0 et 1). */
.devis-carte {
  background: rgba(255, 255, 255, 0.7);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border-radius: 20px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
  padding: 28px 30px;
  font-family: "Roboto", sans-serif;
}

@media (max-width: 576px) {
  .devis-carte {
    padding: 20px 16px;
  }
}

/* Titre manuscrit d'un encadré ("Comment ça marche ?"…) */
.devis-titre-carte {
  font-family: "Dancing Script", cursive;
  font-weight: 700;
  font-size: 1.9rem;
  color: #1e1b2e;
  margin: 0 0 12px;
}

/* ----- Les 3 étapes du formulaire (1. Vous · 2. Votre événement · 3. Vos envies) ----- */
.devis-etape + .devis-etape {
  border-top: 1px solid #e3dff0;
  margin-top: 24px;
  padding-top: 24px;
}

.devis-etape-titre {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  font-family: "Roboto", sans-serif;
  font-size: 1.2rem;
  font-weight: 900;
  color: #1e1b2e;
}

/* Le numéro dans un rond dégradé violet -> bleu (aussi dans "Comment ça marche ?") */
.devis-num {
  flex: none;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #810ece, #35b8f5);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
}

/* Intitulés des champs */
.devis-label {
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 6px;
  display: block;
}

legend.devis-label {
  float: none;
  width: auto;
}

/* Cases à remplir */
.devis-champ {
  border: 2px solid #e3dff0;
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 1rem;
  background-color: #fff;
}

.devis-champ:focus {
  border-color: #810ece;
  box-shadow: 0 0 0 3px rgba(129, 14, 206, 0.18);
}

/* Champ obligatoire oublié (ajouté par devis.js / laisser-avis.js) */
.devis-champ.is-invalid {
  border-color: #c0262d;
}

/* ----- Pastilles cliquables (particulier/structure, prestations) ----- */
.devis-choix {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.devis-pastille {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border: 2px solid #cfc3e6;
  border-radius: 999px;
  background: #fff;
  color: #3b1f63;
  font-weight: 700;
  cursor: pointer;
  user-select: none;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.devis-pastille:hover {
  border-color: #810ece;
}

/* Pastille cochée : dégradé violet -> bleu */
.btn-check:checked + .devis-pastille {
  background: linear-gradient(90deg, #810ece, #35b8f5);
  /* le dégradé passe aussi sous la bordure (sinon il se répète en petites bandes sur les bords) */
  background-origin: border-box;
  border-color: transparent;
  color: #fff;
}

/* Pastilles des soins bien-être (page avis) : turquoise */
.devis-pastille.devis-be {
  border-color: #8fd9e2;
  color: #0b6f78;
}

.btn-check:checked + .devis-pastille.devis-be {
  background: linear-gradient(90deg, #0bb5c9, #8bc34a);
}

/* Contour visible quand on navigue au clavier */
.btn-check:focus-visible + .devis-pastille {
  outline: 3px solid #35b8f5;
  outline-offset: 2px;
}

/* Choix obligatoire oublié : les pastilles s'entourent de rouge */
.devis-choix:has(.is-invalid) .devis-pastille {
  border-color: #c0262d;
}

/* Bloc "Informations pour établir le devis" (structures) */
.devis-bloc-pro {
  background: rgba(244, 236, 251, 0.9);
  border: 2px solid #810ece;
  border-radius: 14px;
  padding: 18px;
}

.devis-bloc-pro-titre {
  font-weight: 700;
  color: #3b2a55;
  margin-bottom: 12px;
}

/* Petite ligne vers la réservation en ligne des soins bien-être */
.devis-lien-be {
  background: rgba(11, 181, 201, 0.12);
  border-radius: 12px;
  padding: 10px 14px;
  color: #0b4f56;
  margin: 0;
}

.devis-lien-be a {
  color: #0b6f78;
  font-weight: 700;
}

/* Petit texte sur les données personnelles */
.devis-mention {
  font-size: 0.85rem;
  color: #5a5468;
  max-width: 440px;
  margin: 0;
}

/* Champ piège anti-spam : hors de l'écran (ne pas utiliser display:none, certains robots le repèrent) */
.devis-piege {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Le bouton "Envoyer" (classe ta-bouton) ; pendant l'envoi il est grisé */
#bouton-envoyer {
  cursor: pointer;
}

#bouton-envoyer:disabled {
  opacity: 0.6;
  cursor: wait;
}

@media (max-width: 576px) {
  #bouton-envoyer {
    width: 100%;   /* sur téléphone : bouton sur toute la largeur, facile à toucher */
  }
}

/* ----- Colonne de droite ----- */
.devis-etapes {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-weight: 500;
}

.devis-etapes li {
  display: flex;
  gap: 10px;
  align-items: center;
  line-height: 1.4;
}

/* Encadré dégradé "Vous préférez appeler ?" */
.devis-appel {
  background: linear-gradient(120deg, rgba(129, 14, 206, 0.9), rgba(53, 184, 245, 0.9));
  color: #fff;
  border-radius: 20px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-family: "Roboto", sans-serif;
}

.devis-appel h2 {
  font-family: "Dancing Script", cursive;
  font-weight: 700;
  font-size: 1.9rem;
  margin: 0 0 4px;
}

.devis-appel a {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-wrap: anywhere;
}

.devis-appel a:hover {
  color: #1e1b2e;
}

/* Photo ronde de la colonne de droite */
.devis-photo {
  width: 220px;
  max-width: 100%;
  aspect-ratio: 1 / 1;
  height: auto;
  align-self: center;
  object-fit: cover;
  border-radius: 50%;
  border: 6px solid #fff;
  box-shadow: 6px 5px 1px 0 rgba(83, 10, 96, 0.6);
}

/* ----- Étoiles cliquables (page laisser-un-avis.html) -----
   Astuce : les étoiles sont écrites de 5 à 1 dans le code et affichées à l'envers
   (row-reverse), ce qui permet de colorer l'étoile choisie ET toutes celles à sa gauche. */
.etoiles-choix {
  display: inline-flex;
  flex-direction: row-reverse;
  gap: 4px;
}

.etoiles-choix input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.etoiles-choix label {
  font-size: 3rem;
  line-height: 1;
  color: #e3dff0;
  cursor: pointer;
  padding: 0 2px;
  transition: color 0.15s ease, transform 0.15s ease;
}

.etoiles-choix input:checked ~ label,
.etoiles-choix label:hover,
.etoiles-choix label:hover ~ label {
  color: #f5a400;
}

.etoiles-choix label:hover {
  transform: scale(1.12);
}

.etoiles-choix input:focus-visible + label {
  outline: 3px solid #35b8f5;
  outline-offset: 2px;
  border-radius: 6px;
}

/* Case "J'accepte que mon avis soit publié" */
.form-check-input.is-invalid + .form-check-label {
  color: #c0262d;
}

/* ----- Messages après l'envoi (vert = envoyé, rouge = problème) ----- */
.devis-alerte {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  max-width: 760px;
  margin: 0 auto;
  padding: 18px 22px;
  border-radius: 16px;
  font-family: "Roboto", sans-serif;
  font-size: 1.05rem;
}

.devis-alerte[hidden] {
  display: none;
}

.devis-alerte p {
  margin: 0;
}

.devis-alerte i {
  font-size: 1.6rem;
  line-height: 1;
}

.devis-alerte-ok {
  background: #ecfbf2;
  border: 2px solid #09ca43;
  color: #0d3d1d;
}

.devis-alerte-ok i {
  color: #067a2a;
}

.devis-alerte-erreur {
  background: #fdecec;
  border: 2px solid #c0262d;
  color: #5c1114;
}

.devis-alerte-erreur i {
  color: #c0262d;
}
