:root {
  --bg-color: #040914;
  --surface-color: #0f172a;
  --border-color: #1e293b;
  --accent-color: #f59e0b;
  --accent-hover: #d97706;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --font-sans: "Inter", sans-serif;
  --font-display: "Space Grotesk", sans-serif;
  --brand-gradient: linear-gradient(90deg, #60a5fa 0%, #6ee7b7 50%, var(--accent-color) 100%);
  --success-color: #10b981;
  --role-gerant: #34d399;
  --role-gerant-soft: rgba(16, 185, 129, 0.12);
  --role-gerant-glow: rgba(16, 185, 129, 0.45);
  --role-coach: #facc15;
  --role-coach-soft: rgba(250, 204, 21, 0.12);
  --role-coach-glow: rgba(250, 204, 21, 0.45);
  --role-sportif: #60a5fa;
  --role-sportif-soft: rgba(59, 130, 246, 0.12);
  --role-sportif-glow: rgba(59, 130, 246, 0.45);
  --scrollbar-size: 6px;
  --scrollbar-track: transparent;
  --scrollbar-thumb: rgba(148, 163, 184, 0.38);
  --scrollbar-thumb-hover: rgba(245, 158, 11, 0.72);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  scrollbar-width: thin;
  scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
}

*::-webkit-scrollbar { width: var(--scrollbar-size); height: var(--scrollbar-size); }
*::-webkit-scrollbar-track { background: var(--scrollbar-track); }
*::-webkit-scrollbar-thumb { background-color: var(--scrollbar-thumb); border-radius: 999px; }
*::-webkit-scrollbar-thumb:hover { background-color: var(--scrollbar-thumb-hover); }

html {
  overflow-x: clip;
  color-scheme: dark;
  background: var(--bg-color);
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-color);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent-color); }

.page-layout {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}

.container {
  max-width: 760px;
  margin: 0 auto;
  padding: 40px 20px;
}

.page-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background-color: var(--bg-color);
}

.atmosphere {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.atmosphere::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(180deg, rgba(4, 9, 20, 0.82) 0%, rgba(4, 9, 20, 0.68) 45%, rgba(4, 9, 20, 0.94) 100%),
    radial-gradient(ellipse 90% 65% at 50% 32%, rgba(96, 165, 250, 0.16), transparent 62%),
    radial-gradient(ellipse 70% 50% at 82% 88%, rgba(245, 158, 11, 0.1), transparent 58%);
}

.page-hero .atmosphere {
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 calc(100% - 72px), rgba(0, 0, 0, 0.5) calc(100% - 28px), transparent 100%);
  mask-image: linear-gradient(180deg, #000 0%, #000 calc(100% - 72px), rgba(0, 0, 0, 0.5) calc(100% - 28px), transparent 100%);
}

.page-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 48px;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(4, 9, 20, 0), var(--bg-color));
}

.page-hero > .container {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 24px;
  padding-bottom: 40px;
}

.legal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  margin-bottom: 20px;
  text-align: left;
}

.legal-logo {
  height: 42px;
  width: auto;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 16px;
}

.site-nav a {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  text-decoration: none;
  white-space: nowrap;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--accent-color);
}

.pl-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--border-color);
  background: rgba(15, 23, 42, 0.6);
  color: var(--text-muted);
  padding: 10px 18px;
  border-radius: 30px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 20px;
}

.pl-badge-sep { color: #60a5fa; }

.pl-hero-title {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: clamp(1.85rem, 6.4vw, 3.2rem);
  line-height: 1.15;
  color: var(--text-main);
  margin: 0 0 14px;
  letter-spacing: -0.03em;
}

.pl-gradient-text {
  display: inline-block;
  background-image: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 18px rgba(245, 158, 11, 0.35));
}

.pl-subtitle {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.6;
  max-width: 32rem;
  margin: 0;
}

.page-panel {
  width: 100%;
  padding-top: 32px;
  padding-bottom: 48px;
  border-top: 1px solid var(--border-color);
  background-color: var(--bg-color);
}

.legal-page .legal-updated {
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-bottom: 28px;
}

.legal-page h2 {
  font-size: 1.05rem;
  margin: 28px 0 10px;
  color: var(--text-main);
}

.legal-page h2.section-title,
.legal-page h2.success-title {
  font-size: inherit;
  margin: inherit;
  color: inherit;
}

.legal-page h2.section-title {
  font-size: 0.9rem;
  margin: 8px 0 20px;
  color: transparent;
}

.legal-page h2.success-title {
  font-size: 1.5rem;
  margin: 0 0 10px;
  color: var(--text-main);
}

.legal-page .form-profile-label {
  font-size: 0.8rem;
  margin-bottom: 10px;
}

.legal-page .success-subtitle {
  font-size: 0.95rem;
  margin-bottom: 24px;
}

.legal-page .form-banner-error {
  color: #fecaca;
  margin-bottom: 16px;
}

.legal-page p,
.legal-page li {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.65;
  margin-bottom: 10px;
}

.legal-page ul {
  padding-left: 1.2rem;
  margin-bottom: 12px;
}

.legal-page a { color: var(--accent-color); }

.cards {
  display: grid;
  gap: 12px;
}

.card {
  display: block;
  padding: 20px 16px 18px;
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.card:hover {
  border-color: rgba(245, 158, 11, 0.45);
  transform: translateY(-1px);
}

.card strong {
  display: block;
  color: var(--text-main);
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.86rem;
  line-height: 1.55;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.section-title {
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin: 8px 0 20px;
  display: flex;
  align-items: center;
  background-image: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1.4;
}

.section-title::before,
.section-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background-color: var(--border-color);
  margin: 0 15px;
  -webkit-background-clip: initial;
  background-clip: initial;
}

.how-steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 28px;
  padding: 0;
}

.how-step {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px 16px 18px;
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: 14px;
}

.how-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-image: var(--brand-gradient);
  color: #040914;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
}

.how-step-title {
  margin: 0;
  color: var(--text-main);
  font-size: 1rem;
  font-weight: 800;
}

.how-step-text {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.86rem;
  line-height: 1.55;
}

.legal-page .how-step-text,
.legal-page .how-step-title { margin-bottom: 0; }

.role-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.form-profile-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.form-profile-picks {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}

.form-profile-btn {
  position: relative;
  background-color: var(--surface-color);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 12px 8px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
}

.form-profile-btn input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.form-profile-btn--gerant:hover,
.form-profile-btn--gerant:has(input:checked) {
  background-color: var(--role-gerant-soft);
  border-color: var(--role-gerant);
  color: var(--role-gerant);
  box-shadow: 0 0 18px -8px var(--role-gerant-glow);
}

.form-profile-btn--coach:hover,
.form-profile-btn--coach:has(input:checked) {
  background-color: var(--role-coach-soft);
  border-color: var(--role-coach);
  color: var(--role-coach);
  box-shadow: 0 0 18px -8px var(--role-coach-glow);
}

.form-profile-btn--sportif:hover,
.form-profile-btn--sportif:has(input:checked) {
  background-color: var(--role-sportif-soft);
  border-color: var(--role-sportif);
  color: var(--role-sportif);
  box-shadow: 0 0 18px -8px var(--role-sportif-glow);
}

.delete-success {
  text-align: center;
  padding: 8px 0 12px;
}

.badge-success {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: rgba(16, 185, 129, 0.1);
  color: var(--success-color);
  padding: 6px 12px;
  border-radius: 20px;
  border: 1px solid var(--success-color);
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.success-title {
  font-size: 1.5rem;
  font-weight: 800;
  margin: 0 0 10px;
  color: var(--text-main);
}

.success-title span { color: var(--success-color); }

.success-subtitle {
  color: var(--text-muted);
  margin-bottom: 24px;
  font-size: 0.95rem;
  line-height: 1.55;
}

.site-footer {
  text-align: center;
  font-size: 0.7rem;
  letter-spacing: 1px;
  color: var(--text-muted);
  padding: 30px 20px 24px;
}

.site-footer p { margin: 0 0 8px; }

.site-footer a {
  color: var(--text-main);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.site-footer a:hover { color: var(--accent-color); }

.delete-form {
  position: relative;
  margin-top: 4px;
}

.form-group { margin-bottom: 12px; }

.form-control {
  width: 100%;
  background-color: var(--bg-color);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  caret-color: var(--text-main);
  padding: 16px;
  border-radius: 6px;
  font-size: 0.95rem;
  font-family: var(--font-sans);
  color-scheme: dark;
  transition: border-color 0.2s;
}

.form-control--icon {
  padding-left: 48px;
  background-repeat: no-repeat;
  background-position: 16px 50%;
  background-size: 19px 19px;
}

.form-control--user {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394A3B8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 21a8 8 0 0 0-16 0'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E");
}

.form-control--email {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394A3B8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect width='20' height='16' x='2' y='4' rx='2'/%3E%3Cpath d='m22 7-10 6L2 7'/%3E%3C/svg%3E");
}

.form-control--phone {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394A3B8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6A19.79 19.79 0 0 1 2.12 4.18 2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72c.12.9.33 1.78.62 2.63a2 2 0 0 1-.45 2.11L8 9.73a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45c.85.29 1.73.5 2.63.62A2 2 0 0 1 22 16.92Z'/%3E%3C/svg%3E");
}

.form-control--message {
  padding-left: 48px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394A3B8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 16px 18px;
  background-size: 19px 19px;
}

.form-control::placeholder { color: var(--text-muted); }
.form-control:focus {
  outline: none;
  border-color: var(--accent-color);
  background-color: var(--bg-color);
}

.form-control.is-invalid { border-color: #f87171; }

.form-control:-webkit-autofill,
.form-control:-webkit-autofill:hover,
.form-control:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--text-main);
  caret-color: var(--text-main);
  box-shadow: 0 0 0 1000px var(--bg-color) inset;
  transition: background-color 99999s ease-out;
}

textarea.form-control {
  min-height: 132px;
  resize: vertical;
  line-height: 1.5;
}

.switch-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.45;
  cursor: pointer;
}

.switch-input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.switch {
  position: relative;
  flex-shrink: 0;
  box-sizing: border-box;
  width: 46px;
  height: 26px;
  margin-top: 1px;
  border-radius: 999px;
  background-color: #162032;
  border: 1px solid var(--border-color);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.switch::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #e2e8f0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
  transition: transform 0.25s ease, background 0.25s ease;
}

.switch-input:checked + .switch {
  background-color: transparent;
  background-image: var(--brand-gradient);
  background-origin: border-box;
  background-clip: border-box;
  border-color: transparent;
  box-shadow: 0 0 16px -4px rgba(96, 165, 250, 0.55);
}

.switch-input:checked + .switch::after {
  transform: translateX(20px);
  background: #f8fafc;
}

.switch-input:focus-visible + .switch {
  outline: 2px solid var(--accent-color);
  outline-offset: 3px;
}

.consent-group { margin-bottom: 12px; }
.req-star { color: var(--accent-color); font-weight: 700; }

.notice-error,
.form-banner-error {
  background: rgba(248, 113, 113, 0.1);
  border: 1px solid rgba(248, 113, 113, 0.4);
  color: #fecaca;
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 16px;
  font-size: 0.86rem;
  line-height: 1.5;
}

.btn-cta {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background-color: var(--accent-color);
  color: #040914;
  border: none;
  padding: 18px 24px;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  margin-top: 10px;
  font-family: var(--font-sans);
  text-decoration: none;
  box-shadow: 0 0 30px rgba(245, 158, 11, 0.25);
  transition: background-color 0.2s, transform 0.2s;
}

.btn-cta-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.btn-cta:hover {
  background-color: var(--accent-hover);
  transform: translateY(-1px);
  color: #040914;
}

.footer-note {
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 15px;
  line-height: 1.6;
}

.legal-page .footer-note { font-size: 0.75rem; }

.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

@media (max-width: 640px) {
  .legal-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-nav { justify-content: flex-start; }

  .how-steps,
  .form-profile-picks {
    grid-template-columns: 1fr;
  }
}
