/* Studio Hypno — formulaire public de demande. Vitrine du thérapeute : calme, épuré,
   rassurant. Fonctionne sans JS (formulaire HTML natif) ; public/js/public.js
   n'améliore que l'expérience (chargement dynamique des voix, message de confirmation). */

:root {
  --papier: #faf7f1;
  --papier-doux: #f2ede2;
  --encre: #33302b;
  --encre-douce: #6b6459;
  --sauge: #6f8f7c;
  --sauge-fonce: #4f6f5d;
  --sable: #cdb193;
  --ligne: #e6ddcd;
  --blanc: #ffffff;
  --erreur: #a24b3f;
  --radius: 18px;
  --serif: Georgia, 'Iowan Old Style', 'Palatino Linotype', serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--papier);
  color: var(--encre);
  font-family: var(--sans);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.page {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 1.5rem 4rem;
}

.entete {
  text-align: center;
  padding: 4rem 0 2.5rem;
}

.entete-marque {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  color: var(--sauge-fonce);
  font-weight: 700;
  margin: 0 0 1rem;
}

.entete-titre {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 2.1rem;
  margin: 0 0 1rem;
  color: var(--encre);
}

.entete-texte {
  color: var(--encre-douce);
  font-size: 1.02rem;
  max-width: 480px;
  margin: 0 auto;
}

.carte {
  background: var(--blanc);
  border: 1px solid var(--ligne);
  border-radius: var(--radius);
  padding: 2rem;
}

.carte + .carte { margin-top: 1.5rem; }

fieldset {
  border: none;
  margin: 0 0 1.75rem;
  padding: 0;
}

fieldset:last-of-type { margin-bottom: 0; }

legend, .label {
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.65rem;
  display: block;
  color: var(--encre);
}

.aide {
  font-size: 0.82rem;
  color: var(--encre-douce);
  margin: 0.3rem 0 0.65rem;
}

label.champ {
  display: block;
  margin-bottom: 1.25rem;
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea,
select {
  width: 100%;
  font: inherit;
  color: var(--encre);
  background: var(--papier-doux);
  border: 1px solid var(--ligne);
  border-radius: 10px;
  padding: 0.7rem 0.85rem;
}

input:focus, textarea:focus, select:focus {
  outline: 2px solid var(--sauge);
  outline-offset: 1px;
}

textarea {
  min-height: 5.5rem;
  resize: vertical;
}

.choix-groupe {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.choix-option {
  position: relative;
}

.choix-option input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
}

.choix-option span {
  display: inline-block;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  border: 1px solid var(--ligne);
  background: var(--papier-doux);
  font-size: 0.9rem;
  color: var(--encre-douce);
  transition: all 0.15s ease;
}

.choix-option input:checked + span {
  background: var(--sauge);
  border-color: var(--sauge);
  color: var(--blanc);
}

.choix-option input:focus-visible + span {
  outline: 2px solid var(--sauge-fonce);
  outline-offset: 2px;
}

/* Honeypot : hors-écran (pas display:none, certains robots l'ignorent), jamais vu ni
   atteint au clavier par un humain. */
.hp-champ {
  position: absolute !important;
  left: -9999px !important;
  top: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.consentement {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  background: var(--papier-doux);
  border-radius: 12px;
  padding: 1rem 1.1rem;
}

.consentement input { margin-top: 0.2rem; }

.consentement p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--encre-douce);
}

.bouton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  background: var(--sauge-fonce);
  color: var(--blanc);
  border: none;
  border-radius: 999px;
  padding: 0.85rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
}

.bouton:hover, .bouton:focus-visible { background: #3d5a4b; }
.bouton:disabled { opacity: 0.6; cursor: wait; }

.message-erreur {
  color: var(--erreur);
  font-size: 0.88rem;
  margin-top: 1rem;
  text-align: center;
  min-height: 1.2em;
}

.confirmation {
  text-align: center;
  padding: 1rem 0;
}

.confirmation-titre {
  font-family: var(--serif);
  font-size: 1.5rem;
  margin: 0 0 1rem;
  color: var(--sauge-fonce);
}

.confirmation-texte {
  color: var(--encre-douce);
  margin: 0 0 1.5rem;
}

.confirmation-lien {
  display: inline-block;
  word-break: break-all;
  background: var(--papier-doux);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  color: var(--sauge-fonce);
  text-decoration: none;
  border: 1px solid var(--ligne);
}

.pied {
  text-align: center;
  margin-top: 2.5rem;
  font-size: 0.78rem;
  color: var(--encre-douce);
}

.pied a { color: var(--sauge-fonce); }

.cache { display: none !important; }

@media (max-width: 480px) {
  .entete { padding: 3rem 0 2rem; }
  .entete-titre { font-size: 1.7rem; }
  .carte { padding: 1.5rem; }
}
