/* =========================================================
   Loops & Play, Page d'inscription privee
   Portee : uniquement .page-inscription. Ne touche a rien d'autre.
   Reutilise les tokens de style.css (canary, violet, surfaces).
   ========================================================= */

.page-inscription {
  background:
    radial-gradient(900px 500px at 15% -10%, hsl(var(--accent) / .13), transparent 60%),
    radial-gradient(700px 420px at 95% 0%, hsl(var(--primary) / .07), transparent 60%),
    hsl(var(--background));
  min-height: 100vh;
}

.insc { padding: 3.5rem 1.25rem 4.5rem; }

.insc__wrap {
  width: 100%;
  max-width: 660px;
  margin: 0 auto;
}

/* ---------- En-tete ---------- */

.insc__head { text-align: center; margin-bottom: 2.75rem; }

.insc__logo {
  width: 64px; height: 64px;
  object-fit: contain;
  margin: 0 auto 1.5rem;
  opacity: .95;
}

.insc__kicker {
  font-size: .75rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: hsl(var(--primary));
  font-weight: 600;
  margin-bottom: .85rem;
}

.insc__title {
  font-size: clamp(2.1rem, 7vw, 3.1rem);
  font-weight: 500;
  letter-spacing: -.02em;
  margin-bottom: 1rem;
}

.insc__lead {
  font-size: 1.02rem;
  line-height: 1.65;
  color: hsl(var(--muted-foreground));
  max-width: 46ch;
  margin: 0 auto;
}

/* ---------- Alerte serveur ---------- */

.insc__alert {
  background: hsl(0 70% 50% / .1);
  border: 1px solid hsl(0 70% 55% / .4);
  border-radius: var(--radius);
  padding: 1rem 1.15rem;
  margin-bottom: 1.75rem;
  font-size: .94rem;
  line-height: 1.6;
  color: hsl(0 80% 82%);
}
.insc__alert[hidden] { display: none; }

/* ---------- Sections ---------- */

.insc__section {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  padding: 1.75rem 1.6rem;
  margin-bottom: 1.15rem;
}

.insc__legend {
  display: flex;
  align-items: center;
  gap: .8rem;
  font-size: 1.28rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.insc__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.9rem; height: 1.9rem;
  flex: 0 0 auto;
  border-radius: 50%;
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  font-family: 'Satoshi', sans-serif;
  font-size: .86rem;
  font-weight: 700;
}

/* ---------- Champs ---------- */

.insc__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
}
@media (max-width: 560px) {
  .insc__grid { grid-template-columns: 1fr; }
}

.insc__field { margin-bottom: 1.1rem; }
.insc__grid .insc__field { margin-bottom: 0; }
.insc__grid + .insc__grid,
.insc__grid + .insc__field { margin-top: 1.1rem; }

.insc__field label,
.insc__fieldset legend {
  display: block;
  font-size: .86rem;
  font-weight: 500;
  letter-spacing: .01em;
  color: hsl(var(--foreground));
  margin-bottom: .5rem;
}

.insc__req { color: hsl(var(--primary)); }

.insc__field input,
.insc__field select {
  width: 100%;
  font-family: 'Satoshi', sans-serif;
  font-size: 1rem;
  color: hsl(var(--foreground));
  background: hsl(var(--secondary));
  border: 1px solid hsl(var(--border));
  border-radius: .6rem;
  padding: .82rem .95rem;
  transition: border-color .18s ease, background .18s ease;
}

.insc__field input::placeholder { color: hsl(var(--muted-foreground) / .5); }

.insc__field input:hover,
.insc__field select:hover { border-color: hsl(var(--muted-foreground) / .45); }

.insc__field input:focus,
.insc__field select:focus {
  outline: none;
  border-color: hsl(var(--accent));
  background: hsl(var(--background));
}

.insc__field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9' fill='none'%3E%3Cpath d='M1 1L7 7L13 1' stroke='%23A9A3AE' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.6rem;
  cursor: pointer;
}
.insc__field select option { background: #111; color: #eee; }

.insc__help {
  font-size: .8rem;
  line-height: 1.55;
  color: hsl(var(--muted-foreground) / .85);
  margin-top: .45rem;
}

/* Champ en erreur */
.insc__field.is-error input,
.insc__field.is-error select { border-color: hsl(0 75% 58%); }
.insc__field .insc__err {
  display: block;
  font-size: .79rem;
  color: hsl(0 80% 74%);
  margin-top: .42rem;
}

/* ---------- Fieldset, radios ---------- */

.insc__fieldset { border: 0; padding: 0; margin: 0; }

.insc__radios { display: flex; gap: .7rem; flex-wrap: wrap; }

.insc__radio {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-size: .95rem;
  padding: .7rem 1.25rem;
  border: 1px solid hsl(var(--border));
  border-radius: 999px;
  background: hsl(var(--secondary));
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease;
  margin-bottom: 0;
}
.insc__radio:hover { border-color: hsl(var(--muted-foreground) / .5); }
.insc__radio input { accent-color: hsl(var(--accent)); width: 1rem; height: 1rem; }
.insc__radio:has(input:checked) {
  border-color: hsl(var(--accent));
  background: hsl(var(--accent) / .12);
}

/* ---------- Modes de paiement ---------- */

.insc__modes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .7rem;
}
@media (max-width: 560px) {
  .insc__modes { grid-template-columns: 1fr; }
}

.insc__mode { display: block; cursor: pointer; }
.insc__mode input {
  position: absolute;
  opacity: 0;
  width: 0; height: 0;
}

.insc__mode-in {
  display: flex;
  flex-direction: column;
  gap: .3rem;
  height: 100%;
  padding: .95rem 1rem;
  border: 1px solid hsl(var(--border));
  border-radius: .7rem;
  background: hsl(var(--secondary));
  transition: border-color .18s ease, background .18s ease;
}
.insc__mode:hover .insc__mode-in { border-color: hsl(var(--muted-foreground) / .5); }

.insc__mode input:focus-visible + .insc__mode-in {
  outline: 2px solid hsl(var(--accent));
  outline-offset: 2px;
}

.insc__mode input:checked + .insc__mode-in {
  border-color: hsl(var(--primary));
  background: hsl(var(--primary) / .1);
}

.insc__mode-t { font-size: .88rem; font-weight: 500; }
.insc__mode-p {
  font-family: 'Clash Display', sans-serif;
  font-size: 1.12rem;
  font-weight: 500;
  color: hsl(var(--primary));
  letter-spacing: -.01em;
}

/* Mode indisponible pour la formation choisie */
.insc__mode.is-off { opacity: .32; pointer-events: none; }
.insc__mode.is-off .insc__mode-p { color: hsl(var(--muted-foreground)); }

/* ---------- Cases a cocher ---------- */

.insc__check {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  font-size: .92rem;
  line-height: 1.6;
  color: hsl(var(--muted-foreground));
  cursor: pointer;
  margin-bottom: 1.15rem;
}
.insc__check input {
  flex: 0 0 auto;
  width: 1.15rem; height: 1.15rem;
  margin-top: .12rem;
  accent-color: hsl(var(--accent));
  cursor: pointer;
}
.insc__check a { color: hsl(var(--primary)); text-decoration: underline; text-underline-offset: 3px; }
.insc__check.is-error span { color: hsl(0 80% 78%); }

/* ---------- Bloc responsable legal ---------- */

.insc__parent {
  border-left: 2px solid hsl(var(--border));
  padding-left: 1.1rem;
  margin: 0 0 1.15rem;
}
.insc__parent .insc__check { margin-top: 1.1rem; margin-bottom: 0; }

/* ---------- Champs conditionnels ---------- */

.insc__conditional[hidden] { display: none; }

/* ---------- Bouton ---------- */

.insc__submit {
  width: 100%;
  font-family: 'Clash Display', sans-serif;
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: .01em;
  color: hsl(var(--primary-foreground));
  background: hsl(var(--primary));
  border-radius: 999px;
  padding: 1.05rem 1.5rem;
  transition: filter .18s ease, transform .12s ease;
}
.insc__submit:hover { filter: brightness(1.08); }
.insc__submit:active { transform: translateY(1px); }
.insc__submit[disabled] { opacity: .55; cursor: not-allowed; filter: none; transform: none; }

.insc__secure {
  font-size: .8rem;
  line-height: 1.55;
  color: hsl(var(--muted-foreground) / .8);
  text-align: center;
  margin-top: .9rem;
}

/* ---------- Pot de miel : invisible, sans display:none ---------- */

.insc__hp {
  position: absolute;
  left: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
}

/* ---------- Pied ---------- */

.insc__foot {
  text-align: center;
  margin-top: 2.5rem;
  font-size: .87rem;
  line-height: 1.7;
  color: hsl(var(--muted-foreground) / .85);
}
.insc__foot-legal { margin-top: .6rem; font-size: .8rem; }
.insc__foot-legal a { text-decoration: underline; text-underline-offset: 3px; }
.insc__foot-legal a:hover { color: hsl(var(--foreground)); }
.insc__foot-legal span { margin: 0 .5rem; opacity: .5; }

/* ---------- Mouvement reduit ---------- */

@media (prefers-reduced-motion: reduce) {
  .insc__submit, .insc__mode-in, .insc__field input, .insc__field select, .insc__radio {
    transition: none;
  }
}

/* =========================================================
   Formulaire du bon cadeau (16/11/2026), meme gabarit
   ========================================================= */

.insc__opt { font-weight: 400; color: hsl(var(--muted-foreground)); font-size: .85em; }

.insc__lead--petit { font-size: .92rem; margin-top: .9rem; }
.insc__lead--petit a { color: hsl(var(--primary)); text-decoration: underline; text-underline-offset: 3px; }

.insc__field textarea {
  width: 100%;
  font-family: 'Satoshi', sans-serif;
  font-size: 1rem;
  line-height: 1.55;
  color: hsl(var(--foreground));
  background: hsl(var(--secondary));
  border: 1px solid hsl(var(--border));
  border-radius: .6rem;
  padding: .82rem .95rem;
  resize: vertical;
  transition: border-color .18s ease, background .18s ease;
}
.insc__field textarea::placeholder { color: hsl(var(--muted-foreground) / .5); }
.insc__field textarea:focus { outline: none; border-color: hsl(var(--accent)); background: hsl(var(--background)); }
.insc__field input[type="date"] { color-scheme: dark; }
.insc__fieldset.is-error .insc__radio { border-color: hsl(0 75% 58%); }
.insc__fieldset { margin-bottom: 1.25rem; }

.bc-conditions {
  margin: 0 0 1.25rem;
  border: 1px solid hsl(var(--border));
  border-radius: .6rem;
  background: hsl(var(--secondary));
  padding: .85rem 1rem;
  font-size: .9rem;
  line-height: 1.6;
  color: hsl(var(--muted-foreground));
}
.bc-conditions summary { cursor: pointer; color: hsl(var(--foreground)); font-weight: 600; }
.bc-conditions summary:focus-visible { outline: 2px solid hsl(var(--primary)); outline-offset: 3px; }
.bc-conditions ul { margin: .75rem 0 0; padding-left: 1.1rem; display: grid; gap: .35rem; }

.bc-ok {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--primary) / .45);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  margin-bottom: 2rem;
  font-size: .98rem;
  line-height: 1.65;
  color: hsl(var(--muted-foreground));
}
.bc-ok[hidden] { display: none; }
.bc-ok p + p { margin-top: .75rem; }
.bc-ok__kicker {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: hsl(var(--emerald));
}
.bc-ok__titre {
  font-family: 'Clash Display', sans-serif;
  font-size: 1.6rem;
  font-weight: 600;
  color: hsl(var(--foreground));
  margin: .35rem 0 .9rem;
}
.bc-ok__titre span { color: hsl(var(--primary)); }
.bc-ok__retour { display: block; text-align: center; margin-top: 1.5rem; text-decoration: none; }
