/* ================================================================
   Crème — Onboarding abonnement
   Ambiance chaleureuse & rassurante : cartes larges, douces,
   empilées, ombres légères. Couleurs & police de la marque Crème.
   ================================================================ */

@font-face {
  font-family: Labil;
  src: url("https://cdn.prod.website-files.com/66e83ac7fb8a8683214ed93d/675056d615d46f9e5d3abb5a_LabilGrotesk-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

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

/* L'attribut `hidden` doit toujours l'emporter (sinon display:flex l'écrase). */
[hidden] { display: none !important; }

:root {
  --primary:  #3905c8;
  --secondary:#ffea29;
  --green:    #00c26b;
  --red:      #d1322d;
  --bg:       #fbf9ef;
  --base:     #211b3a;
  --grey:     #8a8398;
  --line:     #ece8df;
  --soft:     #f6f3ff;

  --radius:   1.4rem;
  --shadow:   0 22px 45px -26px rgba(40, 20, 90, 0.30);
  --ease:     cubic-bezier(0.22, 1, 0.36, 1);
}

html { font-size: 16px; }

html, body {
  font-family: Labil, Arial, sans-serif;
  background: var(--bg);
  color: var(--base);
  -webkit-font-smoothing: antialiased;
  min-height: 100%;
}
body { min-height: 100vh; overflow-x: hidden; position: relative; }

/* Halos doux, chaleureux */
body::before, body::after {
  content: "";
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: blur(90px);
}
body::before {
  top: -12%; right: -10%;
  width: 60vw; height: 60vw;
  background: rgba(255, 234, 41, 0.18);
}
body::after {
  bottom: -12%; left: -12%;
  width: 50vw; height: 50vw;
  background: rgba(57, 5, 200, 0.10);
}

/* ================================================================
   ÉCRAN D'ACCÈS CONSEILLER
   ================================================================ */
.ob-gate {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1.25rem;
}
.ob-gate-card {
  width: 100%;
  max-width: 400px;
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2.6rem 1.9rem 2.2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.ob-gate-logo {
  width: 184px; height: 184px;
  object-fit: contain;
  margin-bottom: -0.4rem;
}
.ob-gate-title {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.4rem;
}
.ob-gate-sub {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--grey);
  line-height: 1.5;
  margin-bottom: 1.6rem;
}
.ob-gate-form { width: 100%; display: flex; flex-direction: column; gap: 1rem; }
.ob-gate-form .input { text-align: center; letter-spacing: 0.08em; }
.ob-gate-form .ob-pwd .input { padding-left: 3.1rem; }
.ob-gate .alert { width: 100%; margin-bottom: 1.3rem; }

/* ---- Wrapper : colonne unique, cartes larges qui défilent ---- */
.ob-wrapper {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  padding: 3rem 1.25rem 4rem;
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

/* ---- Héro ---- */
.ob-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 0.6rem;
}
.ob-logo {
  width: 156px; height: 156px;
  object-fit: contain;
  margin-bottom: 0.75rem;
}
.ob-title {
  font-size: clamp(2rem, 6vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin-bottom: 0.75rem;
}
.ob-title .hl {
  background-image: linear-gradient(transparent 60%, var(--secondary) 60%, var(--secondary) 92%, transparent 92%);
  padding: 0 0.12em;
}
.ob-sub {
  font-size: 1rem;
  font-weight: 700;
  color: var(--grey);
  line-height: 1.55;
  max-width: 30rem;
}

/* ================================================================
   CARTES (larges, douces, empilées)
   ================================================================ */
.ob-card {
  background: linear-gradient(168deg, var(--soft) 0%, #ffffff 65%);
  border: 1.5px solid #e7e0ff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.85rem 1.7rem;
  display: flex;
  flex-direction: column;
}

.ob-card-title {
  font-size: clamp(1.5rem, 4.5vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.12;
  margin-bottom: 0.4rem;
}
.ob-card-title .hl {
  background-image: linear-gradient(transparent 56%, var(--secondary) 56%, var(--secondary) 92%, transparent 92%);
  padding: 0 0.12em;
}
.ob-card-sub {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--grey);
  line-height: 1.5;
  margin-bottom: 1.4rem;
}

/* ---- Carte d'accueil (bénéfices) : titre un peu plus d'air ---- */
.ob-welcome-title { margin-bottom: 1.35rem; }

.ob-benefits {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.05rem;
  margin-bottom: 1.4rem;
}
.ob-benefits li { display: flex; gap: 0.95rem; align-items: flex-start; }
.ob-emoji {
  flex: none;
  width: 2.7rem; height: 2.7rem;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.45rem;
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 0.95rem;
  box-shadow: 0 6px 14px -8px rgba(40,20,90,0.25);
}
.ob-benefits li > div { display: flex; flex-direction: column; gap: 0.15rem; padding-top: 0.15rem; }
.ob-benefits strong { font-size: 1rem; font-weight: 700; }
.ob-benefits span { font-size: 0.86rem; font-weight: 700; color: var(--grey); line-height: 1.45; }

.ob-reassure {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  padding: 0.9rem 1.05rem;
  background: color-mix(in srgb, var(--primary) 7%, #fff);
  border: 1.5px solid color-mix(in srgb, var(--primary) 26%, #fff);
  border-radius: 0.95rem;
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.5;
  color: var(--base);
}
.ob-reassure-ico { flex: none; font-size: 1.05rem; line-height: 1.3; }
.ob-reassure strong { color: var(--primary); }

/* ================================================================
   FORM
   ================================================================ */
.ob-form { display: flex; flex-direction: column; }
.ob-form > * + * { margin-top: 1.4rem; }

.field { display: flex; flex-direction: column; gap: 0.5rem; }
.field + .field { margin-top: 1.1rem; }
.ob-row + .field { margin-top: 1.1rem; }
.field label {
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.ob-row { display: flex; gap: 1rem; }
.ob-row .field { flex: 1; margin-top: 0; }

.input {
  width: 100%;
  font-family: Labil, Arial, sans-serif;
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--base);
  background: #fff;
  border: 2px solid var(--line);
  border-radius: 0.85rem;
  padding: 0.95rem 1.05rem;
  outline: none;
  transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.input::placeholder { color: #bdb8c9; font-weight: 700; }
.input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(57, 5, 200, 0.12);
}
.input:disabled { background: var(--bg); color: var(--grey); cursor: not-allowed; }

.ob-hint {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--grey);
  line-height: 1.4;
}

/* ---- Erreur sous un champ ---- */
.ob-field-error {
  font-size: 0.79rem;
  font-weight: 800;
  color: var(--red);
  line-height: 1.4;
}
.input.has-error {
  border-color: var(--red);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--red) 14%, transparent);
}
.input.has-error:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--red) 20%, transparent);
}

/* ---- Statut de disponibilité du domaine ---- */
.ob-domain-status {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.4;
}
.ob-domain-status.is-checking  { color: var(--grey); }
.ob-domain-status.is-available { color: var(--green); }
.ob-domain-status.is-taken     { color: var(--red); }
.ob-domain-status.is-unknown   { color: var(--grey); }

/* ---- Champ mot de passe avec œil afficher/masquer ---- */
.ob-pwd { position: relative; }
.ob-pwd .input { padding-right: 3.1rem; }
.ob-pwd-toggle {
  position: absolute;
  right: 0.45rem;
  top: 50%;
  transform: translateY(-50%);
  width: 2.5rem; height: 2.5rem;
  display: flex; align-items: center; justify-content: center;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  color: var(--grey);
  transition: color 0.15s var(--ease);
}
.ob-pwd-toggle:hover { color: var(--primary); }
.ob-pwd-toggle .ob-eye-closed { display: none; }
.ob-pwd-toggle.is-visible .ob-eye-open { display: none; }
.ob-pwd-toggle.is-visible .ob-eye-closed { display: block; }

/* ---- Encadré d'avertissement (rouge) ---- */
.ob-disclaimer {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  margin-top: 1.3rem;
  padding: 0.9rem 1.05rem;
  background: color-mix(in srgb, var(--red) 8%, #fff);
  border: 1.5px solid color-mix(in srgb, var(--red) 28%, #fff);
  border-radius: 0.95rem;
  font-size: 0.83rem;
  font-weight: 700;
  line-height: 1.45;
  color: var(--base);
}
.ob-disc-ico { flex: none; font-size: 1.05rem; line-height: 1.3; }
.ob-disclaimer strong { color: var(--red); }

/* ================================================================
   BOUTON CTA — rassurant, généreux
   ================================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-family: Labil, Arial, sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 1.1rem 1.6rem;
  border-radius: 0.9rem;
  border: 2.5px solid var(--base);
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease), background 0.18s var(--ease);
  white-space: nowrap;
  user-select: none;
}
.btn:active { transform: translate(2px, 2px) !important; }
.btn-block { width: 100%; }

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 5px 5px 0 var(--base);
  margin-top: 0.3rem;
}
/* Bouton de soumission proche de la dernière carte. */
#ob-submit { margin-top: 15px; }
.btn-primary:hover {
  transform: translate(-2px, -3px);
  box-shadow: 7px 8px 0 var(--base);
}
.btn-primary:active { box-shadow: 2px 2px 0 var(--base); }
.btn-primary:disabled, .btn-primary:disabled:hover {
  background: var(--primary);
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
  transform: none;
  box-shadow: 4px 4px 0 var(--base);
}

/* ================================================================
   ALERTE
   ================================================================ */
.alert {
  padding: 1rem 1.15rem;
  border-radius: 1rem;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.45;
  border: 1.5px solid transparent;
}
.alert-success { background: color-mix(in srgb, var(--green) 16%, #fff); border-color: color-mix(in srgb, var(--green) 35%, #fff); }
.alert-error   { background: color-mix(in srgb, var(--red)   12%, #fff); border-color: color-mix(in srgb, var(--red)   30%, #fff); }
.alert-info    { background: var(--soft); border-color: #e7e0ff; }

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 520px) {
  .ob-wrapper { padding: 2.25rem 1rem 3rem; }
  .ob-card { padding: 1.5rem 1.25rem; }
  .ob-row { flex-direction: column; gap: 0; }
  .ob-row .field + .field { margin-top: 1.1rem; }
}

/* ================================================================
   TOGGLE « ESSAI GRATUIT » (gate)
   ================================================================ */
.ob-trial {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  cursor: pointer;
  text-align: left;
  padding: 0.85rem 1rem;
  border: 1.5px solid var(--line);
  border-radius: 1rem;
  background: #fff;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.ob-trial-input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ob-trial-switch {
  flex-shrink: 0;
  width: 48px; height: 28px;
  border-radius: 999px;
  background: #d8d2e6;
  position: relative;
  transition: background 0.2s var(--ease);
}
.ob-trial-switch::after {
  content: "";
  position: absolute; top: 3px; left: 3px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.22);
  transition: transform 0.2s var(--ease);
}
.ob-trial-input:checked + .ob-trial-switch { background: var(--green); }
.ob-trial-input:checked + .ob-trial-switch::after { transform: translateX(20px); }
.ob-trial-input:focus-visible + .ob-trial-switch {
  outline: 2px solid var(--primary); outline-offset: 2px;
}
.ob-trial:has(.ob-trial-input:checked) {
  border-color: color-mix(in srgb, var(--green) 45%, #fff);
  background: color-mix(in srgb, var(--green) 7%, #fff);
}
.ob-trial-txt { display: flex; flex-direction: column; line-height: 1.25; }
.ob-trial-name { font-weight: 700; color: var(--base); font-size: 0.95rem; }
.ob-trial-desc { font-size: 0.8rem; font-weight: 600; color: var(--grey); }

/* ================================================================
   ÉCRAN DE CONFIRMATION « BIENVENUE » — plein écran, sans cadre ni bouton
   (affiché sur la tablette du démarcheur). Reprend le style de la 2e page.
   ================================================================ */
.ob-done {
  min-height: 100vh; min-height: 100dvh;
  display: flex; align-items: center; justify-content: center;
  padding: 2rem 1.25rem 3rem;
}
.ob-done .ob-hero { margin-bottom: 0; max-width: 680px; }
.ob-done-emoji { font-size: 4rem; line-height: 1; margin-bottom: 1.1rem; }
