:root {
  --brand: #da6440;
  --brand-600: #c9583a;
  --brand-700: #b04a30;
  --brand-soft: rgba(218, 100, 64, .10);
  --brand-ring: rgba(218, 100, 64, .26);

  --bg: #f4f4f5;
  --surface: #ffffff;
  --surface-2: #fafafa;
  --border: #e4e4e7;
  --border-strong: #d4d4d8;

  --text: #18181b;
  --text-2: #3f3f46;
  --muted: #71717a;

  --radius: 16px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(24, 24, 27, .04), 0 1px 3px rgba(24, 24, 27, .06);
  --shadow-md: 0 10px 30px -10px rgba(24, 24, 27, .14), 0 2px 6px rgba(24, 24, 27, .05);
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 16px 56px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(70% 45% at 50% -5%, rgba(218, 100, 64, .14), transparent 70%),
    linear-gradient(to bottom, rgba(255, 255, 255, .6), rgba(255, 255, 255, 0) 40%);
  background-repeat: no-repeat;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 6px;
}

.page { width: 100%; max-width: 920px; }

/* ---------- Intro ---------- */
.brand { display: flex; justify-content: center; margin-bottom: 36px; }
.brand img { height: 32px; width: auto; }

.intro { text-align: center; max-width: 640px; margin: 0 auto 36px; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-700);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .01em;
}
.badge::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--brand);
}

.intro h1 {
  margin: 20px 0 14px;
  font-size: clamp(1.75rem, 1.15rem + 2.6vw, 2.75rem);
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.intro p {
  margin: 0;
  font-size: 17px;
  color: var(--muted);
  text-wrap: pretty;
}

/* ---------- Choix ---------- */
.choices {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
@media (min-width: 640px) {
  .choices { grid-template-columns: 1fr 1fr; gap: 18px; }
}

.choice {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  width: 100%;
  padding: 24px;
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
@media (min-width: 640px) { .choice { padding: 28px; } }

.choice:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.choice[aria-pressed="true"] {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px var(--brand-ring), var(--shadow-md);
}

.choice__check {
  position: absolute;
  top: 18px; right: 18px;
  width: 24px; height: 24px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1.5px solid var(--border-strong);
  background: var(--surface);
  color: #fff;
  transition: background-color .2s ease, border-color .2s ease;
}
.choice__check svg { width: 14px; height: 14px; opacity: 0; transition: opacity .15s ease; }
.choice[aria-pressed="true"] .choice__check {
  background: var(--brand);
  border-color: var(--brand);
}
.choice[aria-pressed="true"] .choice__check svg { opacity: 1; }

.choice__icon {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: var(--brand-soft);
  color: var(--brand);
}
.choice__icon svg { width: 24px; height: 24px; }

.choice__title {
  display: block;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}
.choice__desc {
  display: block;
  font-size: 15px;
  color: var(--muted);
  text-wrap: pretty;
}

.choice__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  font-size: 14px;
  font-weight: 600;
  color: var(--brand);
}
.choice__cta svg { width: 16px; height: 16px; transition: transform .2s ease; }
.choice:hover .choice__cta svg { transform: translateX(3px); }

/* ---------- Panneaux ---------- */
.panel { margin-top: 32px; scroll-margin-top: 24px; }
.panel[hidden] { display: none; }
.panel:not([hidden]) { animation: rise .38s cubic-bezier(.2, .7, .2, 1) both; }

@keyframes rise {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}

.panel__head { text-align: center; margin-bottom: 22px; }
.eyebrow {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 8px;
}
.panel__head h2 {
  margin: 0 0 8px;
  font-size: clamp(1.35rem, 1.1rem + 1.2vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.panel__head p { margin: 0; color: var(--muted); font-size: 15.5px; }

/* Grille des fédérations */
.feds {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
@media (min-width: 720px) {
  .feds { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
}

.fed {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
@media (min-width: 720px) { .fed { padding: 20px; } }

.fed:hover {
  border-color: var(--brand);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.fed__logo {
  display: block;
  height: 76px;
  padding: 8px 10px;
  border-radius: 10px;
  background: var(--surface-2);
  border: 1px solid var(--border);
}
.fed__logo img { width: 100%; height: 100%; object-fit: contain; }

.fed__name {
  display: block;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.005em;
}
.fed__meta { display: block; margin-top: 2px; font-size: 13px; color: var(--muted); }

.fed__arrow {
  position: absolute;
  right: 14px; bottom: 16px;
  width: 28px; height: 28px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity .2s ease, transform .2s ease;
}
.fed__arrow svg { width: 15px; height: 15px; }
.fed:hover .fed__arrow, .fed:focus-visible .fed__arrow { opacity: 1; transform: none; }
@media (min-width: 720px) { .fed__arrow { right: 18px; bottom: 20px; } }

.panel__note {
  margin: 22px 0 0;
  text-align: center;
  font-size: 14.5px;
  color: var(--muted);
}
.link {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  color: var(--brand);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(218, 100, 64, .35);
  text-underline-offset: 3px;
}
.link:hover { text-decoration-color: var(--brand); }

/* Carte Procuris */
.card {
  display: grid;
  gap: 28px;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
@media (min-width: 720px) {
  .card { grid-template-columns: 1.15fr .85fr; padding: 36px; gap: 36px; align-items: center; }
}

.card__logo img { height: 30px; width: auto; margin-bottom: 20px; }
.card h2 {
  margin: 0 0 10px;
  font-size: clamp(1.35rem, 1.1rem + 1.2vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.card p { margin: 0 0 24px; color: var(--text-2); font-size: 15.5px; text-wrap: pretty; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: var(--brand);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(24, 24, 27, .08), inset 0 1px 0 rgba(255, 255, 255, .15);
  transition: background-color .15s ease, transform .15s ease;
}
.btn:hover { background: var(--brand-600); }
.btn:active { transform: translateY(1px); }
.btn svg { width: 18px; height: 18px; }

.perks {
  list-style: none;
  margin: 0; padding: 22px;
  display: flex; flex-direction: column; gap: 14px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.perks li { display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; color: var(--text-2); }
.perks svg { flex: none; width: 20px; height: 20px; color: var(--brand); margin-top: 1px; }
.perks strong { display: block; color: var(--text); font-weight: 600; }

/* Retour */
.back-row { display: flex; justify-content: center; margin-top: 26px; }
.back {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: color .15s ease, background-color .15s ease, border-color .15s ease;
}
.back:hover { color: var(--text); background: var(--surface); border-color: var(--border); }
.back svg { width: 16px; height: 16px; }

/* Toast */
.toast {
  position: fixed;
  left: 50%; bottom: 24px;
  transform: translate(-50%, 8px);
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--text);
  color: #fff;
  font-size: 13.5px;
  font-weight: 500;
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
