:root {
  --af-bg: #020617;
  --af-bg-alt: #050a24;
  --af-primary: #0c125a;
  --af-primary-soft: rgba(12, 18, 90, 0.18);
  --af-primary-strong: #0f172a;
  --af-text: #f5f5f7;
  --af-text-soft: #c2c4d6;
  --af-border: rgba(255, 255, 255, 0.08);
  --af-radius-lg: 24px;
  --af-radius-md: 16px;
  --af-radius-sm: 10px;
  --af-shadow-soft: 0 18px 45px rgba(0, 0, 0, 0.45);
  --af-shadow-subtle: 0 10px 30px rgba(2, 6, 23, 0.7);
  --af-accent-green: #22c55e;
  --af-accent-blue: #22d3ee;
  --af-accent-orange: #fb923c;
  --af-max-width: 1120px;
  --af-transition-fast: 0.18s ease-out;
}

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

html,
body {
  margin: 0;
  padding: 0;
}

body.af-body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #141b63 0, #020617 50%, #000 100%);
  color: var(--af-text);
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

.af-container {
  width: 100%;
  max-width: var(--af-max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */

.af-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  background: linear-gradient(
    to bottom,
    rgba(15, 23, 42, 0.92),
    rgba(15, 23, 42, 0.7),
    transparent
  );
  border-bottom: 1px solid rgba(148, 163, 184, 0.15);
}

.af-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
  gap: 1rem;
}

.af-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.af-logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 6.1rem;
  height: 6.1rem;
  border-radius: 0.85rem;
  background: radial-gradient(circle at 20% 0, #38bdf8, #0c125a);
  /* box-shadow: 0 0 0 1px rgba(148, 163, 184, 0.15),
    0 20px 40px rgba(15, 23, 42, 0.75); */
  font-weight: 800;
  font-size: 0.9rem;

  background-image: url('./assets/image/logo.png'); 
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;

  text-indent: -9999px;
  overflow: hidden;
  white-space: nowrap;

}

.af-logo-mark-sm {
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 0.7rem;
  font-size: 0.8rem;
}

.af-logo-text {
  font-size: 1.1rem;
  text-transform: uppercase;
  display: none;
}

/* Nav */

.af-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.af-nav-link {
  font-size: 0.92rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  color: var(--af-text-soft);
  border: 1px solid transparent;
  transition: background var(--af-transition-fast),
    color var(--af-transition-fast), border-color var(--af-transition-fast),
    transform 0.12s ease;
}

.af-nav-link:hover {
  background: rgba(15, 23, 42, 0.85);
  border-color: rgba(148, 163, 184, 0.4);
  color: var(--af-text);
  transform: translateY(-1px);
}

.af-nav-link-active {
  background: linear-gradient(135deg, var(--af-primary), var(--af-primary-strong));
  color: white;
  border-color: rgba(56, 189, 248, 0.6);
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.4);
}

/* Header actions */

.af-header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.af-lang-switch {
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  padding: 0.15rem 0.7rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(15, 23, 42, 0.9);
  color: var(--af-text-soft);
  cursor: pointer;
  transition: background var(--af-transition-fast),
    color var(--af-transition-fast), border-color var(--af-transition-fast);
}

.af-lang-switch:hover {
  border-color: rgba(56, 189, 248, 0.6);
  color: #e5f6ff;
}

/* Buttons */

.af-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 0.55rem 1.2rem;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: background var(--af-transition-fast),
    transform var(--af-transition-fast), box-shadow var(--af-transition-fast),
    border-color var(--af-transition-fast), color var(--af-transition-fast);
  text-align: center;
}

.af-btn-primary {
  background: linear-gradient(135deg, var(--af-primary), var(--af-primary-strong));
  color: white;
  border-color: rgba(56, 189, 248, 0.55);
  box-shadow: 0 18px 40px rgba(37, 99, 235, 0.55);
  margin-bottom: 1em;
}

.af-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 24px 60px rgba(37, 99, 235, 0.7);
}

.af-btn-outline {
  background: transparent;
  color: var(--af-text-soft);
  border-color: rgba(148, 163, 184, 0.7);
}

.af-btn-outline:hover {
  background: rgba(15, 23, 42, 0.85);
  color: var(--af-text);
}

.af-btn-ghost {
  background: rgba(15, 23, 42, 0.7);
  color: var(--af-text-soft);
  border-color: rgba(148, 163, 184, 0.3);
}

.af-btn-ghost:hover {
  background: rgba(15, 23, 42, 0.95);
  color: var(--af-text);
}

.af-btn-sm {
  padding: 0.35rem 0.9rem;
  font-size: 0.8rem;
}

.af-btn-block {
  width: 100%;
}

/* Burger */

.af-burger {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: transparent;
  border: none;
  padding: 0.2rem;
  cursor: pointer;
}

.af-burger span {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: rgba(226, 232, 240, 1);
}

/* Hero */

.af-hero {
  padding: 4rem 0 3.5rem;
}

.af-hero-secondary {
  padding-top: 3rem;
}

.af-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2.3fr);
  gap: 2.5rem;
  align-items: center;
}

.af-hero-text h1 {
  font-size: clamp(2.1rem, 3.1vw, 2.9rem);
  line-height: 1.1;
  margin: 0 0 1rem;
}

.af-highlight {
  background: linear-gradient(135deg, #38bdf8, #4ade80);
  -webkit-background-clip: text;
  color: transparent;
}

.af-hero-subtitle {
  margin: 0;
  color: var(--af-text-soft);
  font-size: 0.98rem;
  max-width: 36rem;
}

.af-form-row-inline{
  padding: 1em;
  font-family: monospace;
  text-align: center;
}

.boutonForm{
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: end;
}

.af-hero-actions{
  margin-top: 1em;;
}

.af-hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.4rem;
}

.af-hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.6rem;
}

.af-badge {
  font-size: 0.75rem;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  color: var(--af-text-soft);
  background: radial-gradient(circle at 0 0, rgba(56, 189, 248, 0.18), transparent),
    rgba(15, 23, 42, 0.92);
}

.af-hero-badge-line {
  margin-top: 1rem;
  font-size: 0.88rem;
  color: var(--af-text-soft);
}

/* Hero visual */

.af-hero-visual {
  display: grid;
  gap: 1rem;
}

.af-hero-card {
  border-radius: var(--af-radius-lg);
  padding: 1.1rem 1.2rem;
  backdrop-filter: blur(16px);
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: radial-gradient(circle at 0 0, rgba(56, 189, 248, 0.3), transparent),
    rgba(15, 23, 42, 0.94);
  box-shadow: var(--af-shadow-subtle);
  transform-origin: center;
  transition: transform var(--af-transition-fast),
    box-shadow var(--af-transition-fast), border-color var(--af-transition-fast);
}

.af-hero-card h3 {
  margin-top: 0;
  margin-bottom: 0.4rem;
  font-size: 1rem;
}

.af-hero-card p {
  margin: 0;
  font-size: 0.86rem;
  color: var(--af-text-soft);
}

.af-hero-card:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.9);
  border-color: rgba(56, 189, 248, 0.7);
}

/* Sections */

.af-section {
  padding: 3.25rem 0;
}

.af-section-alt {
  background: radial-gradient(circle at top left, rgba(15, 118, 110, 0.22), transparent),
    radial-gradient(circle at bottom right, rgba(37, 99, 235, 0.22), transparent);
}

.af-section-highlight {
  background: radial-gradient(circle at top, rgba(56, 189, 248, 0.18), transparent),
    rgba(15, 23, 42, 0.94);
  border-top: 1px solid rgba(148, 163, 184, 0.2);
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.af-section-header {
  text-align: center;
  max-width: 40rem;
  margin: 0 auto 2rem;
}

.af-section-header h2 {
  margin: 0 0 0.6rem;
  font-size: 1.5rem;
}

.af-section-header p {
  margin: 0;
  color: var(--af-text-soft);
  font-size: 0.95rem;
}

/* Grid / layout helpers */

.af-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.af-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.af-gap-lg {
  gap: 1.5rem;
}

.af-gap-xl {
  gap: 2rem;
}

.af-align-center {
  align-items: center;
}

/* Cards & lists */

.af-card {
  border-radius: var(--af-radius-md);
  padding: 1.2rem 1.3rem;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: radial-gradient(circle at 0 0, rgba(56, 189, 248, 0.22), transparent),
    rgba(15, 23, 42, 0.97);
  box-shadow: var(--af-shadow-soft);
}

.af-card h3 {
  margin-top: 0;
  margin-bottom: 0.4rem;
  font-size: 1.05rem;
}

.af-card p {
  margin-top: 0;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
  color: var(--af-text-soft);
}

.af-list {
  margin: 0;
  padding-left: 1.15rem;
  font-size: 0.9rem;
  color: var(--af-text-soft);
}

.af-list li {
  margin-bottom: 0.25rem;
}

.af-list-check {
  list-style: none;
  padding-left: 0;
}

.af-list-check li {
  position: relative;
  padding-left: 1.2rem;
}

.af-list-check li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0.1rem;
  font-size: 0.8rem;
  color: var(--af-accent-green);
}

.af-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.5rem;
  font-size: 0.88rem;
  color: #e0f2fe;
}

.af-link:hover {
  text-decoration: underline;
}

/* Steps */

.af-steps {
  align-items: stretch;
}

.af-step {
  border-radius: var(--af-radius-md);
  padding: 1.2rem 1.3rem 1.1rem;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: radial-gradient(circle at 0 0, rgba(129, 140, 248, 0.2), transparent),
    rgba(15, 23, 42, 0.97);
  box-shadow: var(--af-shadow-soft);
}

.af-step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(129, 140, 248, 0.8);
  font-size: 0.82rem;
  margin-bottom: 0.5rem;
}

.af-step h3 {
  margin: 0 0 0.3rem;
  font-size: 1rem;
}

.af-step p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--af-text-soft);
}

/* Form */

.af-form {
  border-radius: var(--af-radius-lg);
  padding: 1.4rem 1.4rem 1.2rem;
  background: radial-gradient(circle at 0 0, rgba(56, 189, 248, 0.25), transparent),
    rgba(15, 23, 42, 0.97);
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: var(--af-shadow-soft);
}

.af-form-group {
  margin-bottom: 0.85rem;
}

.af-form-group label {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.85rem;
  color: #e2e8f0;
}

.af-form-group-inline {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  font-size: 0.8rem;
}

.af-form-group-inline input[type="checkbox"] {
  margin-top: 0.19rem;
}

.af-form input[type="text"],
.af-form input[type="email"],
.af-form select,
.af-form textarea {
  width: 100%;
  border-radius: 0.65rem;
  border: 1px solid rgba(148, 163, 184, 0.45);
  padding: 0.45rem 0.65rem;
  font-size: 0.88rem;
  background: rgba(15, 23, 42, 0.9);
  color: var(--af-text);
  outline: none;
  transition: border-color var(--af-transition-fast),
    box-shadow var(--af-transition-fast), background var(--af-transition-fast);
}

.af-form input::placeholder,
.af-form textarea::placeholder {
  color: rgba(148, 163, 184, 0.8);
}

.af-form input:focus,
.af-form select:focus,
.af-form textarea:focus {
  border-color: rgba(56, 189, 248, 0.8);
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.4);
  background: rgba(15, 23, 42, 0.98);
}

.af-form-note {
  margin: 0.5rem 0 0;
  font-size: 0.78rem;
  color: var(--af-text-soft);
}

.af-text-small {
  font-size: 0.8rem;
  color: var(--af-text-soft);
}

.af-mt-sm {
  margin-top: 0.5rem;
}

/* Legal */

.af-legal h1 {
  margin-top: 0;
  margin-bottom: 1rem;
}

.af-legal h2 {
  margin-top: 1.4rem;
  margin-bottom: 0.4rem;
  font-size: 1.1rem;
}

.af-legal p {
  margin: 0.25rem 0;
  font-size: 0.9rem;
  color: var(--af-text-soft);
}

/* Footer */

.af-footer {
  padding: 1.2rem 0 1.4rem;
  border-top: 1px solid rgba(148, 163, 184, 0.25);
  background: radial-gradient(circle at top left, rgba(15, 118, 110, 0.2), transparent),
    rgba(15, 23, 42, 1);
}

.af-footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.af-footer-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.84rem;
  color: var(--af-text-soft);
}

.af-footer-links {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.84rem;
}

.af-footer-links a {
  color: var(--af-text-soft);
}

.af-footer-links a:hover {
  text-decoration: underline;
}

/* Cases */

.af-cases .af-card {
  min-height: 8.5rem;
}

/* Responsive */

@media (max-width: 900px) {
  .af-hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .af-hero-visual {
    order: -1;
  }

  .af-section {
    padding: 2.5rem 0;
  }

  .af-grid-3 {
    grid-template-columns: minmax(0, 1fr);
  }

  .af-grid-2 {
    grid-template-columns: minmax(0, 1fr);
  }

  .af-footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 720px) {
  .af-nav {
    position: fixed;
    inset: 3.1rem 0 auto;
    padding: 0.75rem 1.5rem 0.9rem;
    background: rgba(15, 23, 42, 0.98);
    border-bottom: 1px solid rgba(148, 163, 184, 0.25);
    display: none;
    flex-direction: column;
    gap: 0.4rem;
  }

  .af-nav.af-nav-open {
    display: flex;
  }

  .af-header-inner {
    padding: 0.6rem 0;
  }

  .af-header-actions .af-btn-outline {
    display: none;
  }

  .af-burger {
    display: flex;
  }
}

/* Cookie banner */
.af-cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    background: rgba(12, 18, 90, 0.96);
    color: #e5e7eb;
    padding: 1rem 0;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(14px);
}

.af-cookie-banner-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.25rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1.5rem;
    font-size: 0.875rem;
}

.af-cookie-banner-text {
    flex: 1 1 220px;
    line-height: 1.5;
}

.af-cookie-banner-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.af-cookie-link {
    color: #93c5fd;
    text-decoration: underline;
}

.af-cookie-hidden {
    display: none;
}

@media (max-width: 640px) {
    .af-cookie-banner-inner {
        align-items: flex-start;
    }
}

/* Highlight keywords in hero titles */
.af-hero-highlight-club { color: #38bdf8; }   /* cyan */
.af-hero-highlight-player { color: #22c55e; } /* green */
.af-hero-highlight-agent { color: #f97316; }  /* orange */

/* CTA header button "Être prévenu" / "Notify me" */
.af-cta-launch {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.4rem 1.1rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    background: radial-gradient(circle at 0 0, #38bdf8, transparent 55%),
                radial-gradient(circle at 100% 100%, #22c55e, transparent 55%),
                linear-gradient(135deg, #1d4ed8, #0f172a);
    color: #f9fafb;
    border: 1px solid rgba(148, 163, 184, 0.45);
    box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.22),
                0 6px 18px rgba(15, 23, 42, 0.9);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.af-cta-launch::after {
    content: "";
    position: absolute;
    top: -40%;
    left: -40%;
    width: 40%;
    height: 180%;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.75), transparent);
    opacity: 0;
    transform: translateX(-100%);
    pointer-events: none;
}

.af-cta-launch:hover::after {
    opacity: 1;
    animation: afCtaShine 1.2s cubic-bezier(0.17, 0.89, 0.32, 1.28);
}

@keyframes afCtaShine {
    0% { transform: translateX(-120%); }
    100% { transform: translateX(220%); }
}

/* Simple icon circle */
.af-icon-circle {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 30% 20%, #e5e7eb, transparent 55%),
                linear-gradient(145deg, rgba(15,23,42,0.85), rgba(15,23,42,0.25));
    box-shadow: 0 10px 25px rgba(15,23,42,0.7);
    margin-bottom: 0.5rem;
    flex-shrink: 0;
}

.af-icon-circle span {
    font-size: 1.25rem;
}


/* Layout helpers for cards and grids */

.af-hero-panels {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.af-grid-2cols {
  display: grid;
  gap: 1.4rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  align-items: stretch;
}

.af-grid-3cols {
  display: grid;
  gap: 1.4rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  align-items: stretch;
}

/* Softer cards used in hero / sections */

.af-card {
  border-radius: var(--af-radius-md);
  padding: 1rem 1.1rem;
  border: 1px solid rgba(148, 163, 184, 0.24);
  background: radial-gradient(circle at 0 0, rgba(56, 189, 248, 0.16), transparent),
    rgba(15, 23, 42, 0.96);
  box-shadow: var(--af-shadow-subtle);
}

.af-card + .af-card {
  margin-top: 0;
}

.af-card-soft {
  background: radial-gradient(circle at 0 0, rgba(56, 189, 248, 0.22), transparent),
    rgba(15, 23, 42, 0.98);
}

.af-card-header-row {
  display: flex;
  gap: 0.9rem;
  align-items: center;
  margin-bottom: 0.5rem;
}

.af-card-kicker {
  margin: 0;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--af-text-soft);
}

.af-card p {
  margin-top: 0.15rem;
  margin-bottom: 0;
}

/* Slightly smaller cards on very large screens so they don't look too massive */
@media (min-width: 1280px) {
  .af-hero-panels .af-card {
    padding: 0.95rem 1rem;
  }
}


/* === Spacing: move first hero down from header === */
.af-hero-section {
  padding-top: 5.5rem;
}

/* === Icon style: simpler, no big glowing ball, larger emoji === */
.af-icon-circle {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.35);
  border: 1px solid rgba(148, 163, 184, 0.4);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.7);
  margin-bottom: 0.35rem;
  flex-shrink: 0;
}

.af-icon-circle span {
  font-size: 1.4rem;
}

/* === Cards: light cloud-like motion on hover === */
.af-card {
  position: relative;
  overflow: hidden;
  transition:
    transform 220ms cubic-bezier(0.19, 1, 0.22, 1),
    box-shadow 220ms cubic-bezier(0.19, 1, 0.22, 1);
}

.af-card::before {
  content: "";
  position: absolute;
  inset: -20%;
  background: radial-gradient(circle at 0 0, rgba(148, 163, 184, 0.18), transparent 60%);
  opacity: 0;
  transform: translate3d(-18px, -18px, 0);
  transition:
    opacity 520ms ease-out,
    transform 520ms ease-out;
  pointer-events: none;
}

.af-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.85);
}

.af-card:hover::before {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

/* Respect users preferring reduced motion */
@media (prefers-reduced-motion: reduce) {
  .af-card,
  .af-card::before {
    transition: none;
  }
  .af-card:hover {
    transform: none;
    box-shadow: var(--af-shadow-subtle);
  }
  .af-card:hover::before {
    opacity: 0;
  }
}
