/* ==============================================
   THE COACHING HOUSE — Premium Form Stylesheet
   ============================================== */

/* ─── Design Tokens ─────────────────────────── */

:root {
  --blue:        #2F2F96;
  --blue-dark:   #252578;
  --blue-deeper: #1A1A5C;
  --blue-light:  #4A4AB0;
  --blue-pale:   #EBEBF8;
  --blue-subtle: #F2F2FB;

  --text-primary:   #1A1A18;
  --text-secondary: #5A5A56;
  --text-muted:     #9A9A94;

  --bg-form:        #FAFAF7;
  --bg-white:       #FFFFFF;

  --border:         #E2E2DC;
  --border-focus:   #2F2F96;
  --error:          #B83232;

  --font-display:   'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body:      'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --radius:         3px;
  --transition:     200ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 320ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─── Reset & Base ──────────────────────────── */

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--bg-form);
  color: var(--text-primary);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
}

/* ─── Layout : Split Panel ──────────────────── */

.layout {
  display: grid;
  grid-template-columns: 400px 1fr;
  min-height: 100vh;
}

/* ─── Panneau Marque ────────────────────────── */

.panel-brand {
  background: var(--blue-deeper);
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
}

/* Cercles décoratifs */
.panel-brand::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.06);
  pointer-events: none;
}

.panel-brand::after {
  content: '';
  position: absolute;
  bottom: -80px;
  left: -60px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.04);
  pointer-events: none;
}

.panel-brand__inner {
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 52px 44px;
  position: relative;
  z-index: 1;
}

/* Logo */
.panel-brand__logo {
  margin-bottom: auto;
  position: relative;
}

.panel-brand__logo::after {
  content: '';
  display: block;
  width: 40px;
  height: 1px;
  background: rgba(255, 255, 255, 0.15);
  margin-top: 28px;
}

.panel-brand__logo img {
  width: clamp(80px, 10vw, 120px);
  height: clamp(80px, 10vw, 120px);
  border-radius: 50%;
  object-fit: cover;
  display: block;
  border: 2.5px solid rgba(255, 255, 255, 0.25);
  box-shadow:
    0 0 0 6px rgba(255, 255, 255, 0.06),
    0 12px 40px rgba(0, 0, 0, 0.35);
  transition: box-shadow 400ms ease, transform 400ms ease;
}

.panel-brand__logo img:hover {
  box-shadow:
    0 0 0 8px rgba(255, 255, 255, 0.1),
    0 16px 48px rgba(0, 0, 0, 0.4);
  transform: scale(1.03);
}

.logo-fallback {
  display: none;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 2px solid rgba(255, 255, 255, 0.2);
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: #F0EDE6;
  letter-spacing: 0.06em;
  display: none;
  align-items: center;
  justify-content: center;
}

/* Contenu */
.panel-brand__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px 0 48px;
}

.panel-brand__headline {
  font-family: var(--font-display);
  font-size: clamp(34px, 3.5vw, 50px);
  font-weight: 700;
  line-height: 1.08;
  color: #F0EDE6;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.panel-brand__headline em {
  font-style: italic;
  font-weight: 400;
  color: rgba(240, 237, 230, 0.7);
}

.panel-brand__body {
  font-size: 14.5px;
  color: rgba(240, 237, 230, 0.55);
  line-height: 1.7;
  margin-bottom: 44px;
  max-width: 280px;
}

.panel-brand__features {
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 13px;
  font-size: 13px;
  color: rgba(240, 237, 230, 0.65);
  letter-spacing: 0.01em;
}

.feature-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--blue-light);
  flex-shrink: 0;
}

/* Pied de page panneau */
.panel-brand__footer {
  font-size: 11px;
  color: rgba(240, 237, 230, 0.28);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ─── Panneau Formulaire ────────────────────── */

.panel-form {
  background: var(--bg-form);
  overflow-y: auto;
}

.panel-form__inner {
  max-width: 620px;
  margin: 0 auto;
  padding: 64px 56px 88px;
}

/* ─── En-tête Formulaire ────────────────────── */

.form-header {
  margin-bottom: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
}

.form-header__label {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--blue);
  margin-bottom: 16px;
}

.form-header__title {
  font-family: var(--font-display);
  font-size: clamp(38px, 5vw, 58px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.form-header__title em {
  font-style: italic;
  font-weight: 400;
  color: var(--blue);
}

.form-header__sub {
  font-size: 14.5px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ─── Lignes de Formulaire ──────────────────── */

.form-row {
  margin-bottom: 22px;
}

.form-row--2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* ─── Groupes de Champs ─────────────────────── */

.field-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field-group > label {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-secondary);
  user-select: none;
}

.required-mark {
  color: var(--blue);
  font-weight: 600;
}

.optional {
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: var(--text-muted);
  font-size: 11px;
}

/* ─── Inputs & Textarea ─────────────────────── */

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="date"],
select,
textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-white);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px; /* ≥16px = zéro auto-zoom iPhone */
  line-height: 1.5;
  transition: border-color var(--transition), box-shadow var(--transition);
  appearance: none;
  -webkit-appearance: none;
  outline: none;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="number"]:focus,
input[type="date"]:focus,
select:focus,
textarea:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(47, 47, 150, 0.12);
}

input[type="text"]:hover,
input[type="email"]:hover,
input[type="tel"]:hover,
input[type="number"]:hover,
input[type="date"]:hover,
select:hover,
textarea:hover {
  border-color: #CBCBC4;
}

input::placeholder,
textarea::placeholder {
  color: var(--text-muted);
  font-weight: 300;
}

textarea {
  resize: vertical;
  min-height: 88px;
}

input[type="date"] {
  cursor: pointer;
}

/* Input en erreur */
input.is-error,
select.is-error,
textarea.is-error {
  border-color: var(--error) !important;
  box-shadow: 0 0 0 3px rgba(184, 50, 50, 0.08) !important;
}

.field-error-msg {
  font-size: 12px;
  color: var(--error);
  margin-top: 4px;
  display: block;
}

/* ─── Select Wrapper ────────────────────────── */

.select-wrapper {
  position: relative;
}

.select-wrapper select {
  padding-right: 44px;
  cursor: pointer;
}

.select-arrow {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
  display: flex;
  align-items: center;
  transition: color var(--transition);
}

.select-wrapper:focus-within .select-arrow {
  color: var(--blue);
}

/* ─── Radio Groups ──────────────────────────── */

.radio-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.radio-group--inline {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 8px 24px;
}

.radio-option {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
  padding: 10px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-white);
  transition: border-color var(--transition), background var(--transition);
}

.radio-option:hover {
  border-color: #CBCBC4;
  background: #FDFDFB;
}

.radio-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.radio-option:has(input:checked) {
  border-color: var(--blue);
  background: var(--blue-subtle);
}

.radio-custom {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: var(--bg-white);
  flex-shrink: 0;
  position: relative;
  transition: border-color var(--transition), background var(--transition);
}

.radio-option:has(input:checked) .radio-custom {
  border-color: var(--blue);
  background: var(--blue);
}

.radio-option:has(input:checked) .radio-custom::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: white;
}

.radio-label {
  font-size: 14px;
  color: var(--text-primary);
  line-height: 1.4;
}

/* Fallback pour navigateurs sans :has() */
.radio-option input:checked ~ .radio-custom {
  border-color: var(--blue);
  background: var(--blue);
}

.radio-option input:checked ~ .radio-custom::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: white;
}

/* ─── Sections Conditionnelles ──────────────── */

.conditional-section {
  display: none;
  overflow: hidden;
}

.conditional-section.is-active {
  display: block;
  animation: slideReveal var(--transition-slow) forwards;
}

@keyframes slideReveal {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.conditional-section__divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  margin-top: 4px;
}

.conditional-section__divider span {
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--blue);
  white-space: nowrap;
  background: var(--blue-pale);
  padding: 5px 12px;
  border-radius: 2px;
}

.conditional-section__divider::before {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--blue-pale);
}

/* ─── Zone de Soumission ────────────────────── */

.form-submit {
  margin-top: 40px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

/* Bouton Submit */
.btn-submit {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--blue);
  color: white;
  border: none;
  padding: 16px 32px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: var(--radius);
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  position: relative;
  overflow: hidden;
}

.btn-submit:hover:not(:disabled) {
  background: var(--blue-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(47, 47, 150, 0.3);
}

.btn-submit:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: none;
}

.btn-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.btn-submit__icon {
  display: flex;
  align-items: center;
  transition: transform var(--transition);
}

.btn-submit:hover:not(:disabled) .btn-submit__icon {
  transform: translateX(4px);
}

/* Loading spinner */
.btn-submit.is-loading .btn-submit__icon {
  display: none;
}

.btn-submit.is-loading::after {
  content: '';
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.form-notice {
  font-size: 11.5px;
  color: var(--text-muted);
  letter-spacing: 0.01em;
  display: flex;
  align-items: center;
  gap: 6px;
}

.form-notice::before {
  content: '🔒';
  font-size: 11px;
}

/* ─── Message de Succès ─────────────────────── */

.success-message {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  gap: 8px;
}

.success-message.is-visible {
  display: flex;
  animation: slideReveal 480ms cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.success-message__icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--blue-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
}

.success-message__icon svg {
  width: 24px;
  height: 24px;
}

.success-message h3 {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.025em;
  line-height: 1.05;
}

.success-message p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
}

.success-message p strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* Réduit le padding du panel quand le succès est affiché */
.panel-form:has(.success-message.is-visible) .panel-form__inner {
  padding-top: 40px;
  padding-bottom: 40px;
}

@media (max-width: 600px) {
  .panel-form:has(.success-message.is-visible) .panel-form__inner {
    padding-top: 28px;
    padding-bottom: 28px;
  }
}

.btn-reset {
  margin-top: 0;
  background: none;
  border: none;
  padding: 0;
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
  cursor: pointer;
  border-bottom: 1px solid var(--blue);
  padding-bottom: 2px;
  transition: opacity var(--transition);
}

.btn-reset:hover {
  opacity: 0.65;
}

/* ─── QR Pass Block ─────────────────────────── */

.qr-block {
  padding: 16px 20px;
  background: var(--blue-deeper);
  border-radius: 8px;
  border: 1px solid rgba(212, 175, 55, 0.25);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
}

.qr-block__header {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #d4af37;
  margin: 0;
}

.qr-block__canvas {
  background: #fff;
  padding: 10px;
  border-radius: 4px;
  line-height: 0;
}

.qr-block__id {
  font-size: 10.5px;
  font-family: monospace;
  color: #ffffff;
  margin: 0;
  word-break: break-all;
}

.qr-block__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
}

.btn-qr-dl {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 16px;
  background: #FFC107;
  color: #1A1A18;
  font-family: var(--font-body);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  border-radius: 50px;
  transition: opacity 0.2s;
}

.btn-qr-dl:hover { opacity: 0.82; }

.btn-qr-wa {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: #25D366;
  color: #fff;
  font-family: var(--font-body);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  border-radius: 50px;
  transition: opacity 0.2s;
}

.btn-qr-wa:hover { opacity: 0.82; }

/* ─── Résumé plage de dates ─────────────────── */

.date-range-summary {
  display: none;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--blue);
  letter-spacing: 0.03em;
  padding: 8px 14px;
  background: var(--blue-pale);
  border-left: 2px solid var(--blue);
  border-radius: var(--radius);
  margin-bottom: 4px;
}

.date-range-summary.is-visible {
  display: block;
  animation: slideReveal 200ms ease forwards;
}

.date-range-summary.is-error {
  color: var(--error);
  background: rgba(184, 50, 50, 0.06);
  border-color: var(--error);
}

/* ─── Badge WhatsApp Recommandé ─────────────── */

.badge-recommended {
  display: inline-block;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #25D366;
  background: rgba(37, 211, 102, 0.1);
  border: 1px solid rgba(37, 211, 102, 0.3);
  padding: 2px 6px;
  border-radius: 2px;
  margin-left: 6px;
  vertical-align: middle;
  line-height: 1.4;
}

.radio-option--whatsapp:has(input:checked) {
  border-color: #25D366;
  background: rgba(37, 211, 102, 0.06);
}

.whatsapp-hint {
  display: none;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 8px;
  padding: 8px 12px;
  background: rgba(37, 211, 102, 0.06);
  border-left: 2px solid #25D366;
  border-radius: var(--radius);
}

.whatsapp-hint.is-visible {
  display: block;
}

/* ─── Overlay de Chargement ──────────────────── */

.loading-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(15, 30, 50, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
}

.loading-overlay.is-visible {
  display: flex;
  animation: fadeIn 200ms ease forwards;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.loading-card {
  background: var(--bg-white);
  border-radius: 6px;
  padding: 48px 56px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  max-width: 340px;
  width: 90%;
}

.loading-spinner-ring {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 3px solid var(--blue-pale);
  border-top-color: var(--blue);
  animation: spin 0.8s linear infinite;
}

.loading-card__title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.loading-card__sub {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-top: -8px;
}

.loading-dots {
  display: flex;
  gap: 6px;
  align-items: center;
}

.loading-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
  opacity: 0.3;
  animation: dotPulse 1.2s infinite ease-in-out;
}

.loading-dots span:nth-child(1) { animation-delay: 0s; }
.loading-dots span:nth-child(2) { animation-delay: 0.2s; }
.loading-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes dotPulse {
  0%, 80%, 100% { opacity: 0.2; transform: scale(0.8); }
  40%           { opacity: 1;   transform: scale(1.1); }
}

/* ─── Mode Succès : zéro scroll, centrage luxe ── */

/* Cache le header et réduit le padding au minimum */
.panel-form__inner.is-success {
  padding: 15px !important;
}

.panel-form__inner.is-success .form-header {
  display: none;
}

/* Logo TCH réduit de 50% pour libérer l'écran */
.layout:has(.panel-form__inner.is-success) .panel-brand__logo img {
  width: 36px !important;
  height: 36px !important;
}

.layout:has(.panel-form__inner.is-success) .panel-brand__inner {
  padding: 10px 20px;
  gap: 14px;
}

/* Bouton reset centré */
.panel-form__inner.is-success .btn-reset {
  margin: 0 auto;
  display: block;
}

/* ─── Responsive ────────────────────────────── */

@media (max-width: 960px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .panel-brand {
    position: static;
    height: auto;
    min-height: auto;
  }

  .panel-brand::before,
  .panel-brand::after {
    display: none;
  }

  .panel-brand__inner {
    flex-direction: row;
    align-items: center;
    padding: 28px 36px;
    gap: 24px;
  }

  .panel-brand__logo {
    margin-bottom: 0;
    flex-shrink: 0;
  }

  .panel-brand__logo img {
    width: 44px;
    height: 44px;
  }

  .panel-brand__content {
    padding: 0;
    flex: 1;
  }

  .panel-brand__headline {
    font-size: 22px;
    margin-bottom: 0;
    display: none;
  }

  .panel-brand__body,
  .panel-brand__features,
  .panel-brand__footer {
    display: none;
  }

  .panel-form__inner {
    padding: 48px 40px 72px;
  }
}

@media (max-width: 600px) {
  .panel-brand__inner {
    padding: 16px 20px;
    justify-content: center;
  }

  .panel-form__inner {
    padding: 28px 16px 52px;
  }

  .form-row--2col {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .form-header__title {
    font-size: 34px;
  }

  .radio-group--inline {
    flex-direction: column;
    gap: 8px;
  }

  .radio-option {
    width: 100%;
  }

  /* ── Bouton submit pleine largeur ── */
  .form-submit {
    align-items: stretch;
  }

  .btn-submit {
    width: 100%;
    justify-content: center;
  }

  /* ── QR Block : adaptatif & boutons empilés ── */
  .qr-block {
    max-width: 100%;
    padding: 20px 16px;
  }

  .qr-block__canvas {
    width: 100%;
    max-width: 240px;
  }

  .qr-block__canvas img,
  .qr-block__canvas canvas {
    max-width: 100%;
    height: auto !important;
  }

  .qr-block__actions {
    flex-direction: column;
    gap: 8px;
  }

  .btn-qr-dl,
  .btn-qr-wa {
    width: 100%;
    justify-content: center;
  }
}

/* ─── Succès mobile : zéro scroll ──────────────── */

@media (max-width: 960px) {
  /* Masquer le panneau marque pour libérer l'écran */
  .layout:has(.panel-form__inner.is-success) .panel-brand {
    display: none;
  }

  .panel-form__inner.is-success {
    min-height: 100svh;
    padding: 15px !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .panel-form__inner.is-success .success-message {
    width: 100%;
  }
}

/* ─── Focus visible (accessibilité) ─────────── */

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

/* ─── Scrollbar personnalisée ───────────────── */

.panel-form::-webkit-scrollbar {
  width: 4px;
}

.panel-form::-webkit-scrollbar-track {
  background: transparent;
}

.panel-form::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 2px;
}

.panel-form::-webkit-scrollbar-thumb:hover {
  background: #CBCBC4;
}
