/* Fiche d'inscription dogsolution.ch/inscription — charte DA-DS v5.
   Polices auto-hebergees dans /inscription/fonts (l'hote apex de production ne
   sert que ce dossier pour cette page). Italique Fraunces bannie. */

@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/inscription/fonts/fraunces-normal-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/inscription/fonts/fraunces-normal-latinext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 200 1000;
  font-display: swap;
  src: url("/inscription/fonts/nunito-normal-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 200 1000;
  font-display: swap;
  src: url("/inscription/fonts/nunito-normal-latinext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --ds-bg: #ebe3d5;
  --ds-surface: #faf3e0;
  --ds-title: #7c582d;
  --ds-title-80: #8e6e4a;
  --ds-btn-bg: #8b5a3c;
  --ds-text: #152237;
  --ds-text-secondary: #3d4a5c;
  --ds-muted: #6b5a47;
  --ds-border: rgba(124, 88, 45, 0.18);
  --ds-gold: #c9a25a;
  --ds-danger: #b3261e;
  --grad-cta: linear-gradient(135deg, #9a6645 0%, #8b5a3c 55%, #6f4730 100%);
  --grad-accent: linear-gradient(90deg, #c9a25a 0%, #7c582d 100%);
  --grad-surface: radial-gradient(ellipse at top, #faf3e0 0%, #ebe3d5 75%);
  --ds-font-title: "Fraunces", "Playfair Display", Georgia, "Times New Roman", serif;
  --ds-font-body: "Nunito", "Helvetica Neue", Arial, sans-serif;
  --ds-shadow-sm: 0 1px 2px rgba(124, 88, 45, 0.08), 0 2px 6px rgba(124, 88, 45, 0.06);
  --ds-shadow: 0 1px 2px rgba(124, 88, 45, 0.08), 0 4px 16px rgba(124, 88, 45, 0.12);
  --ds-transition: 0.15s ease;
  --ds-transition-slow: 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--grad-surface) no-repeat, var(--ds-bg);
  color: var(--ds-text);
  font-family: var(--ds-font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

[hidden] { display: none !important; }

.page {
  max-width: 680px;
  margin: 0 auto;
  padding: 48px 16px 64px;
}

/* ── En-tête ── */
.entete { text-align: center; margin-bottom: 32px; }
.entete__logo img {
  width: 72px;
  height: 72px;
  border-radius: 28%;
  box-shadow: var(--ds-shadow-sm), inset 0 0 0 1px rgba(201, 162, 90, 0.35);
}
.kicker {
  margin: 16px 0 8px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ds-title-80);
}
h1, h2 {
  font-family: var(--ds-font-title);
  font-style: normal;
  color: var(--ds-title);
  margin: 0;
}
h1 {
  font-size: clamp(32px, 7vw, 48px);
  font-weight: 800;
  font-variation-settings: "opsz" 144, "SOFT" 10;
  letter-spacing: -0.02em;
  word-spacing: 0.04em;
  line-height: 1.05;
}
.ds-accent {
  text-decoration: underline;
  text-decoration-color: var(--ds-gold);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.14em;
  text-decoration-skip-ink: none;
}
.entete__intro {
  max-width: 52ch;
  margin: 16px auto 0;
  font-size: 18px;
  color: var(--ds-text-secondary);
}

/* ── Carte ── */
.carte {
  position: relative;
  overflow: hidden;
  background: var(--ds-surface);
  border-radius: 10px;
  box-shadow: var(--ds-shadow);
  padding: 32px;
}
.carte::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--grad-accent);
  opacity: 0.85;
}

/* ── Progression ── */
.progression { margin-bottom: 32px; }
.progression__texte { margin: 0 0 8px; font-size: 13px; font-weight: 700; color: var(--ds-muted); }
.progression__barre { height: 4px; border-radius: 4px; background: rgba(124, 88, 45, 0.12); overflow: hidden; }
.progression__barre span { display: block; height: 100%; background: var(--grad-accent); transition: width var(--ds-transition-slow); }

/* ── Étapes et champs ── */
.etape__titre {
  font-size: 32px;
  font-weight: 700;
  font-variation-settings: "SOFT" 20; /* taille optique automatique : forcee a 144, les mots se collent */
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin-bottom: 24px;
  outline: none;
}
.champ { margin-bottom: 32px; }
.groupe { border: 0; margin: 0; padding: 0; min-width: 0; }
.champ__label {
  display: block;
  padding: 0;
  margin-bottom: 8px;
  font-weight: 700;
  color: var(--ds-text);
}
.facultatif { font-weight: 600; font-size: 13px; color: var(--ds-muted); margin-left: 4px; }
.champ__aide { margin: -4px 0 12px; font-size: 13px; line-height: 1.5; color: var(--ds-muted); }

input[type="text"], input[type="email"], input[type="tel"], textarea, select {
  width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  font: inherit;
  font-size: 16px; /* 16 px : pas de zoom automatique sur iPhone */
  color: var(--ds-text);
  background: var(--ds-bg);
  border: 1.5px solid var(--ds-border);
  border-radius: 12px;
  transition: border-color var(--ds-transition), box-shadow var(--ds-transition);
}
/* Zones de texte : hauteur posee par inscription.js a chaque ligne tapee. */
textarea { min-height: 44px; resize: none; overflow: hidden; line-height: 1.55; }
textarea:disabled { opacity: 0.5; cursor: not-allowed; }
/* Fleche des listes deroulantes : dessinee ici, a 14 px du bord, comme le texte. */
select {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 40px;
  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='%237c582d' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 12px 8px;
  cursor: pointer;
}
input::placeholder, textarea::placeholder { color: rgba(107, 90, 71, 0.7); }
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--ds-btn-bg);
  box-shadow: 0 0 0 3px rgba(139, 90, 60, 0.18);
}

.unite { display: flex; align-items: center; gap: 12px; max-width: 200px; }
.unite span { font-weight: 700; color: var(--ds-muted); }
.date { display: flex; gap: 12px; }
.date select:first-child { flex: 3; }
.date select:last-child { flex: 2; }

/* Choix : grandes cibles, une option par ligne */
.choix { display: grid; gap: 8px; }
.choix__item {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 10px 16px;
  background: var(--ds-bg);
  border: 1.5px solid transparent;
  border-radius: 12px;
  cursor: pointer;
  transition: border-color var(--ds-transition), background var(--ds-transition);
}
.choix__item:hover { border-color: var(--ds-border); }
.choix__item input {
  flex: none;
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: var(--ds-btn-bg);
}
.choix__item:has(input:checked) {
  border-color: var(--ds-btn-bg);
  background: rgba(139, 90, 60, 0.08);
}
.choix__item:has(input:focus-visible) { box-shadow: 0 0 0 3px rgba(139, 90, 60, 0.18); }
.autre { margin-top: 8px; }
.inconnu { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 14px; color: var(--ds-text-secondary); cursor: pointer; }
.inconnu input { width: 18px; height: 18px; margin: 0; accent-color: var(--ds-btn-bg); }

/* Cases de consentement */
.consentement { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; }
.consentement input { flex: none; width: 20px; height: 20px; margin: 3px 0 0; accent-color: var(--ds-btn-bg); }
.consentement strong { display: block; font-weight: 700; }
.consentement__aide { display: block; margin-top: 4px; font-size: 14px; line-height: 1.55; color: var(--ds-text-secondary); }
.consentement__liens { margin: 8px 0 0 32px; font-size: 14px; }

a, .lien { color: var(--ds-btn-bg); font-weight: 700; }
.lien { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; text-decoration: underline; }
.champ__suggestion { margin: 8px 0 0; font-size: 14px; color: var(--ds-text-secondary); }

/* Erreurs */
.champ__erreur { margin: 8px 0 0; font-size: 14px; font-weight: 700; color: var(--ds-danger); }
.champ--erreur input[type="text"], .champ--erreur input[type="email"], .champ--erreur input[type="tel"],
.champ--erreur textarea, .champ--erreur select { border-color: var(--ds-danger); }
.erreur-globale {
  margin: 0 0 16px;
  padding: 12px 16px;
  border-radius: 10px;
  background: rgba(179, 38, 30, 0.08);
  color: var(--ds-danger);
  font-weight: 700;
}

/* Piège à robots : hors écran, jamais vu par un humain */
.piege { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ── Boutons ── */
.actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 8px; }
.actions .btn--primaire { margin-left: auto; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  border: 0;
}
.btn--primaire {
  padding: 12px 28px;
  border-radius: 9999px;
  color: var(--ds-surface);
  background: var(--grad-cta);
  background-size: 200% 200%;
  background-position: 0% 50%;
  box-shadow: var(--ds-shadow), inset 0 1px 0 rgba(255, 240, 210, 0.18);
  transition: background-position var(--ds-transition-slow), transform var(--ds-transition), box-shadow var(--ds-transition);
}
.btn--primaire::after { content: "→"; transition: transform var(--ds-transition); }
.btn--primaire:hover {
  background: var(--grad-cta);
  background-size: 200% 200%;
  background-position: 100% 50%;
  transform: translateY(-1px);
}
.btn--primaire:hover::after { transform: translateX(4px); }
.btn--primaire:focus-visible { outline: 3px solid rgba(139, 90, 60, 0.35); outline-offset: 2px; }
.btn--primaire:disabled { opacity: 0.7; cursor: wait; transform: none; }
.btn--tertiaire { padding: 12px 4px; background: none; color: var(--ds-btn-bg); font-weight: 600; }
.btn--tertiaire:hover { text-decoration: underline; }

/* ── Fin ── */
.fin h2 {
  font-size: 32px;
  font-weight: 700;
  font-variation-settings: "SOFT" 20;
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin-bottom: 16px;
  outline: none;
}
.fin .kicker { margin-top: 0; }
/* Hauteur de depart : le cadre de Calendly prend 100 % d'une hauteur fixee
   (un min-height seul ne suffit pas, le cadre retombait a ~150 px). Calendly
   la remplace ensuite par celle de son contenu (option resize). Plancher de
   600 px : une hauteur aberrante annoncee par Calendly (26 px vus en essai)
   n'ecrase jamais le cadre. */
.calendly { height: 700px; min-height: 600px; margin: 24px -16px 0; }
.fin__aide { margin: 24px 0 0; font-size: 14px; color: var(--ds-muted); }

/* ── Pied ── */
.pied { margin-top: 48px; text-align: center; font-size: 13px; color: var(--ds-muted); }
.pied a { color: var(--ds-muted); font-weight: 600; }
.pied__devise { font-family: var(--ds-font-title); font-size: 16px; color: var(--ds-title-80); margin: 0 0 8px; }

@media (max-width: 560px) {
  .page { padding-top: 32px; }
  .carte { padding: 24px 16px; }
  .etape__titre, .fin h2 { font-size: 24px; }
  .entete__intro { font-size: 16px; }
  .actions { flex-direction: column-reverse; align-items: stretch; }
  .actions .btn--primaire { margin-left: 0; width: 100%; }
  .calendly { margin: 24px -8px 0; }
}
