:root {
  --lavie-red: #e53935;
  --lavie-red-dark: #c62828;
  --lavie-red-light: rgba(229, 57, 53, 0.12);
  --lavie-gray-100: #f1f3f3;
  --lavie-gray-200: #e3e7e8;
  --lavie-gray-600: #4b585b;
  --lavie-gray-900: #161b1d;
  --bs-primary: #e53935;
  --bs-primary-rgb: 229, 57, 53;
  --bs-link-color: #e53935;
  --bs-link-hover-color: #c62828;
}

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

body.inscription-page {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--lavie-gray-900);
  background:
    radial-gradient(circle at top right, rgba(229, 57, 53, 0.08), transparent 42%),
    linear-gradient(180deg, #fff 0%, var(--lavie-gray-100) 100%);
  min-height: 100vh;
}

.lavie-brand-logo {
  height: 44px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
}

.inscription-navbar {
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.92) !important;
  box-shadow: 0 4px 24px rgba(22, 27, 29, 0.06);
}

.inscription-hero {
  animation: lavieFadeUp 0.7s ease both;
}

.inscription-hero .badge {
  background: var(--lavie-red) !important;
  box-shadow: 0 8px 20px rgba(229, 57, 53, 0.25);
  letter-spacing: 0.02em;
}

.inscription-hero h1 {
  font-weight: 700;
  letter-spacing: -0.02em;
}

.inscription-steps {
  animation: lavieFadeUp 0.8s ease 0.1s both;
}

.inscription-step-item {
  background: #fff;
  border: 1px solid var(--lavie-gray-200);
  border-radius: 1rem;
  padding: 1.25rem 1rem;
  text-align: center;
  height: 100%;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.inscription-step-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(22, 27, 29, 0.08);
  border-color: rgba(229, 57, 53, 0.25);
}

.inscription-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--lavie-red-light);
  color: var(--lavie-red);
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.inscription-form-card {
  animation: lavieFadeUp 0.9s ease 0.2s both;
  border: 1px solid rgba(229, 57, 53, 0.12);
  border-top: 4px solid var(--lavie-red);
  border-radius: 1.25rem;
  box-shadow:
    0 24px 48px rgba(22, 27, 29, 0.08),
    0 8px 16px rgba(229, 57, 53, 0.06);
  overflow: hidden;
  background: #fff;
}

.inscription-form-card .form-label {
  font-weight: 600;
  color: var(--lavie-gray-900);
  margin-bottom: 0.45rem;
}

.inscription-form-card .form-control,
.inscription-form-card .form-select {
  border: 2px solid var(--lavie-gray-200);
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.inscription-form-card .form-control:focus,
.inscription-form-card .form-select:focus {
  border-color: var(--lavie-red);
  box-shadow: 0 0 0 0.22rem rgba(229, 57, 53, 0.15);
  transform: translateY(-1px);
}

.inscription-form-card .form-control:hover:not(:focus),
.inscription-form-card .form-select:hover:not(:focus) {
  border-color: rgba(229, 57, 53, 0.35);
}

.inscription-form-card .form-text {
  color: var(--lavie-gray-600);
}

.btn-lavie-primary {
  --bs-btn-color: #fff;
  --bs-btn-bg: var(--lavie-red);
  --bs-btn-border-color: var(--lavie-red);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: var(--lavie-red-dark);
  --bs-btn-hover-border-color: var(--lavie-red-dark);
  --bs-btn-active-bg: #b71c1c;
  --bs-btn-active-border-color: #b71c1c;
  border: none;
  border-radius: 999px;
  font-weight: 700;
  padding: 0.85rem 1.75rem;
  box-shadow:
    0 12px 28px rgba(229, 57, 53, 0.35),
    0 4px 10px rgba(229, 57, 53, 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.btn-lavie-primary:hover,
.btn-lavie-primary:focus {
  transform: translateY(-2px);
  box-shadow:
    0 16px 34px rgba(229, 57, 53, 0.42),
    0 6px 14px rgba(229, 57, 53, 0.24);
}

.btn-lavie-primary:active {
  transform: translateY(0);
  box-shadow: 0 8px 18px rgba(229, 57, 53, 0.3);
}

.btn-lavie-primary:disabled {
  transform: none;
  opacity: 0.75;
  box-shadow: 0 8px 18px rgba(229, 57, 53, 0.2);
}

.btn-lavie-outline {
  border: 2px solid var(--lavie-gray-200);
  border-radius: 999px;
  font-weight: 600;
  padding: 0.85rem 1.75rem;
  color: var(--lavie-gray-900);
  background: #fff;
  box-shadow: 0 8px 20px rgba(22, 27, 29, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.btn-lavie-outline:hover {
  transform: translateY(-2px);
  border-color: rgba(229, 57, 53, 0.35);
  box-shadow: 0 12px 26px rgba(22, 27, 29, 0.1);
  color: var(--lavie-red-dark);
}

.inscription-info-card {
  background: linear-gradient(135deg, rgba(229, 57, 53, 0.06), rgba(255, 255, 255, 0.95));
  border: 1px solid rgba(229, 57, 53, 0.12);
  border-radius: 1.25rem;
  box-shadow: 0 12px 28px rgba(22, 27, 29, 0.05);
}

#formAlert {
  scroll-margin-top: 6rem;
  border-radius: 0.85rem;
  animation: lavieFadeUp 0.35s ease both;
}

#formAlert.alert-success {
  background: rgba(0, 110, 47, 0.08);
  border-color: rgba(0, 110, 47, 0.2);
  color: #004d22;
}

#formAlert.alert-danger {
  background: rgba(229, 57, 53, 0.08);
  border-color: rgba(229, 57, 53, 0.25);
  color: #b71c1c;
}

.inscription-footer {
  background: linear-gradient(180deg, #22292b 0%, var(--lavie-gray-900) 100%);
  color: rgba(255, 255, 255, 0.72);
}

.inscription-footer a {
  color: #fff;
  text-decoration: none;
  transition: color 0.2s ease;
}

.inscription-footer a:hover {
  color: rgba(255, 255, 255, 0.85);
}

.text-lavie-red {
  color: var(--lavie-red);
}

@keyframes lavieFadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .inscription-hero,
  .inscription-steps,
  .inscription-form-card,
  #formAlert {
    animation: none;
  }

  .btn-lavie-primary,
  .btn-lavie-outline,
  .inscription-step-item,
  .inscription-form-card .form-control,
  .inscription-form-card .form-select {
    transition: none;
  }
}

@media (max-width: 767.98px) {
  .lavie-brand-logo {
    height: 38px;
  }

  .inscription-hero h1 {
    font-size: 1.85rem;
  }
}
