/* Villa Holisty — fenêtre « Être rappelé » */

.hr-racine {
  /* Reprend les couleurs et polices du site (assets/css/style.css), avec des valeurs de secours. */
  --hr-craie: var(--sable, #efece4);
  --hr-papier: var(--craie, #fbfaf7);
  --hr-encre: var(--ardoise, #1c2a2e);
  --hr-encre-2: var(--brume, #5f6b70);
  --hr-ligne: rgba(28, 42, 46, 0.2);
  --hr-bassin: var(--bassin, #2e5f56);
  --hr-bassin-fonce: var(--bassin-fonce, #234a43);
  --hr-bassin-pale: var(--bassin-clair, #e4edea);
  --hr-laiton: var(--laiton, #a58a5b);
  --hr-erreur: #a3392a;
  --hr-titre: var(--font-display, "Fraunces", Georgia, "Times New Roman", serif);
  --hr-texte: var(--font-text, "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif);
  --hr-rayon: 8px;

  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  background: rgba(17, 24, 22, 0.52);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  font-family: var(--hr-texte);
  color: var(--hr-encre);
  opacity: 0;
  transition: opacity 0.2s ease;
}
.hr-racine[hidden] { display: none; }
.hr-racine.hr-visible { opacity: 1; }
.hr-racine *, .hr-racine *::before, .hr-racine *::after { box-sizing: border-box; }
.hr-racine p { max-width: none; }
.hr-racine h2, .hr-racine h3 { color: var(--hr-encre); text-wrap: balance; }

.hr-fenetre {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 560px;
  max-height: min(780px, calc(100dvh - 48px));
  background: var(--hr-papier);
  border-radius: 20px;
  box-shadow: 0 30px 80px -20px rgba(17, 24, 22, 0.45);
  overflow: hidden;
  transform: translateY(12px);
  transition: transform 0.25s ease;
}
.hr-visible .hr-fenetre { transform: none; }
.hr-fenetre:focus { outline: none; }

/* En-tête */
.hr-entete {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 24px 0;
}
.hr-surtitre {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--hr-laiton);
}
.hr-titre {
  margin: 0;
  font-family: var(--hr-titre);
  font-size: 28px;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.hr-fermer {
  flex: none;
  width: 40px;
  height: 40px;
  margin: -4px -8px 0 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--hr-encre-2);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}
.hr-fermer:hover { background: var(--hr-craie); color: var(--hr-encre); }

/* Progression */
.hr-progression {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin: 18px 24px 0;
  padding: 0;
  list-style: none;
}
.hr-progression li {
  padding-top: 8px;
  border-top: 3px solid var(--hr-ligne);
  font-size: 12px;
  color: var(--hr-encre-2);
  transition: border-color 0.2s, color 0.2s;
}
.hr-progression li.hr-fait { border-color: var(--hr-bassin); }
.hr-progression li.hr-actif { border-color: var(--hr-bassin); color: var(--hr-encre); font-weight: 600; }
.hr-progression[hidden] { display: none; }

/* Corps */
.hr-corps {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: 20px 24px 24px;
}
.hr-etape:focus { outline: none; }
.hr-etape[hidden] { display: none; }
.hr-intro { margin: 0 0 20px; color: var(--hr-encre-2); font-size: 15px; line-height: 1.5; }
.hr-demo {
  margin: 0 0 16px;
  padding: 8px 12px;
  border-radius: 8px;
  background: #f6eedf;
  color: #6e5528;
  font-size: 13px;
}
.hr-soustitre {
  margin: 0 0 4px;
  font-family: var(--hr-titre);
  font-size: 21px;
  font-weight: 500;
}

/* Champs */
.hr-grille2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hr-champ { display: block; margin-bottom: 14px; }
.hr-label { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 600; }
.hr-label small, .hr-legende small { font-weight: 400; color: var(--hr-encre-2); }
.hr-aide { display: block; margin: 0; font-size: 13px; color: var(--hr-encre-2); }
.hr-champ input,
.hr-champ select,
.hr-champ textarea {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: 11px 14px;
  border: 1px solid var(--hr-ligne);
  border-radius: var(--hr-rayon);
  background: #fff;
  color: var(--hr-encre);
  font: inherit;
  font-size: 16px; /* évite le zoom automatique sur iPhone */
  -webkit-appearance: none;
  appearance: none;
}
.hr-champ input[type="date"] { min-width: 0; }
.hr-champ select {
  padding-right: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%235a6561' stroke-width='1.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}
.hr-champ textarea { min-height: 88px; resize: vertical; }
.hr-champ input:focus,
.hr-champ select:focus,
.hr-champ textarea:focus {
  outline: none;
  border-color: var(--hr-bassin);
  box-shadow: 0 0 0 3px var(--hr-bassin-pale);
}
.hr-invalide input, .hr-invalide select, input.hr-invalide, select.hr-invalide { border-color: var(--hr-erreur); }
.hr-msg { display: block; min-height: 0; margin: 6px 0 0; font-size: 13px; color: var(--hr-erreur); }
.hr-msg:empty { display: none; }

.hr-nuits { margin: -4px 0 12px; font-size: 14px; color: var(--hr-bassin); font-weight: 600; }
.hr-nuits:empty { display: none; }

.hr-case { display: flex; align-items: center; gap: 10px; margin: 0 0 20px; font-size: 15px; cursor: pointer; }
.hr-case input { width: 20px; height: 20px; margin: 0; accent-color: var(--hr-bassin); }

/* Compteurs */
.hr-compteur {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid var(--hr-ligne);
}
.hr-compteur + .hr-compteur { border-bottom: 1px solid var(--hr-ligne); }
.hr-pas { display: flex; align-items: center; gap: 4px; }
.hr-pas button {
  width: 40px;
  height: 40px;
  border: 1px solid var(--hr-ligne);
  border-radius: 50%;
  background: #fff;
  color: var(--hr-encre);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}
.hr-pas button:hover:not(:disabled) { border-color: var(--hr-bassin); color: var(--hr-bassin); }
.hr-pas button:disabled { opacity: 0.35; cursor: default; }
.hr-pas output { min-width: 34px; text-align: center; font-size: 17px; font-weight: 600; }

.hr-ages { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; margin-top: 14px; }
.hr-ages:empty { display: none; }
.hr-ages .hr-champ { margin: 0; }
.hr-ages .hr-label { font-size: 13px; font-weight: 500; color: var(--hr-encre-2); }
.hr-note { margin: 10px 0 0; font-size: 13px; color: var(--hr-encre-2); }
.hr-note[hidden] { display: none; }

/* Type de séjour */
.hr-types { margin: 22px 0 0; padding: 0; border: 0; }
.hr-legende { margin-bottom: 10px; padding: 0; font-size: 14px; font-weight: 600; }
.hr-puces { display: flex; flex-wrap: wrap; gap: 8px; }
.hr-puce { position: relative; }
.hr-puce input { position: absolute; opacity: 0; pointer-events: none; }
.hr-puce span {
  display: inline-block;
  padding: 9px 14px;
  border: 1px solid var(--hr-ligne);
  border-radius: 999px;
  background: #fff;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.hr-puce input:checked + span { border-color: var(--hr-bassin); background: var(--hr-bassin); color: #fff; }
.hr-puce input:focus-visible + span { box-shadow: 0 0 0 3px var(--hr-bassin-pale); }

/* Créneaux */
.hr-statut { margin: 16px 0; font-size: 15px; color: var(--hr-encre-2); }
.hr-statut:empty { display: none; }
.hr-statut button { margin-left: 6px; }
.hr-jours {
  display: flex;
  gap: 8px;
  margin: 16px -24px 0;
  padding: 2px 24px 6px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scroll-padding-inline: 24px;
  scrollbar-width: none;
}
.hr-jours::-webkit-scrollbar { display: none; }
.hr-jour {
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 64px;
  padding: 10px 4px;
  border: 1px solid var(--hr-ligne);
  border-radius: var(--hr-rayon);
  background: #fff;
  color: var(--hr-encre);
  font: inherit;
  scroll-snap-align: start;
  cursor: pointer;
}
.hr-jour .hr-jsem, .hr-jour .hr-jmois { font-size: 12px; color: var(--hr-encre-2); }
.hr-jour .hr-jsem { text-transform: capitalize; }
.hr-jour .hr-jnum { font-family: var(--hr-titre); font-size: 22px; line-height: 1.2; }
.hr-jour[aria-selected="true"] { border-color: var(--hr-bassin); background: var(--hr-bassin); color: #fff; }
.hr-jour[aria-selected="true"] .hr-jsem, .hr-jour[aria-selected="true"] .hr-jmois { color: rgba(255, 255, 255, 0.82); }
.hr-heures { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; margin-top: 16px; }
.hr-heure {
  min-height: 48px;
  padding: 8px 6px;
  border: 1px solid var(--hr-ligne);
  border-radius: var(--hr-rayon);
  background: #fff;
  color: var(--hr-encre);
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  line-height: 1.2;
}
.hr-heure small { display: block; font-size: 11px; font-weight: 400; color: var(--hr-encre-2); }
.hr-heure:hover { border-color: var(--hr-bassin); }
.hr-heure[aria-checked="true"] { border-color: var(--hr-bassin); background: var(--hr-bassin); color: #fff; }
.hr-heure[aria-checked="true"] small { color: rgba(255, 255, 255, 0.82); }
.hr-alerte {
  margin: 0 0 14px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #f8e9e4;
  color: var(--hr-erreur);
  font-size: 14px;
}
.hr-alerte:empty { display: none; }

/* Récapitulatif */
.hr-recap {
  margin: 0 0 20px;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--hr-craie);
  font-size: 14px;
  line-height: 1.5;
}
.hr-recap-ligne { display: flex; justify-content: space-between; gap: 12px; }
.hr-recap-ligne + .hr-recap-ligne { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--hr-ligne); }
.hr-recap strong { display: block; font-weight: 600; }
.hr-lien {
  flex: none;
  align-self: center;
  padding: 0;
  border: 0;
  background: none;
  color: var(--hr-bassin);
  font: inherit;
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.hr-piege { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.hr-prive { margin: 4px 0 0; font-size: 13px; color: var(--hr-encre-2); }

/* Pied */
.hr-pied {
  display: flex;
  gap: 10px;
  padding: 14px 24px calc(14px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--hr-ligne);
  background: var(--hr-papier);
}
.hr-pied[hidden] { display: none; }
.hr-bouton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 12px 22px;
  border: 1px solid var(--hr-bassin);
  border-radius: var(--hr-rayon);
  background: var(--hr-bassin);
  color: #fff;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s;
}
.hr-bouton:hover { background: var(--hr-bassin-fonce); }
.hr-bouton:disabled { opacity: 0.6; cursor: wait; }
.hr-bouton-second { background: transparent; color: var(--hr-encre); border-color: var(--hr-ligne); }
.hr-bouton-second:hover { background: var(--hr-craie); }
.hr-pied .hr-principal { flex: 1; }
.hr-bouton[hidden] { display: none; }
.hr-bouton:focus-visible, .hr-fermer:focus-visible, .hr-jour:focus-visible, .hr-heure:focus-visible,
.hr-pas button:focus-visible, .hr-lien:focus-visible {
  outline: 3px solid var(--hr-bassin-pale);
  outline-offset: 2px;
}

/* Confirmation */
.hr-succes { padding: 12px 0 4px; text-align: center; }
.hr-coche {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--hr-bassin);
  color: #fff;
}
.hr-succes .hr-soustitre { font-size: 26px; margin-bottom: 10px; }
.hr-succes p { margin: 0 auto 12px; max-width: 400px; font-size: 16px; line-height: 1.55; }
.hr-succes .hr-aide { margin-bottom: 22px; }
.hr-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }

/* Téléphone : plein écran */
@media (max-width: 640px) {
  .hr-racine { padding: 0; align-items: stretch; }
  .hr-fenetre { max-width: none; max-height: none; height: 100%; border-radius: 0; }
  .hr-entete { padding: calc(18px + env(safe-area-inset-top)) 16px 0; }
  .hr-titre { font-size: 25px; }
  .hr-progression { margin: 14px 16px 0; }
  .hr-corps { padding: 18px 16px 20px; }
  .hr-jours { margin: 14px -16px 0; padding: 2px 16px 6px; scroll-padding-inline: 16px; }
  .hr-pied { padding-left: 16px; padding-right: 16px; }
  .hr-heures { grid-template-columns: repeat(3, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .hr-racine, .hr-fenetre { transition: none; }
}

html.hr-bloque, html.hr-bloque body { overflow: hidden; }

/* Boutons « Être rappelé » du site (en-tête, barre mobile, bandeaux, page devis) */
.mobile-bar .btn-rappel { gap: 6px; padding-inline: 1em; }
