/* EzDojo — accueil public, palette karaté : blanc, noir, rouge, bleu, jaune */
:root {
  --kd-paper: #ffffff;
  --kd-bg: #f7f7f6;
  --kd-ink: #121212;
  --kd-muted: #5a5a5a;
  --kd-red: #b91c1c;
  --kd-blue: #1e40af;
  --kd-gold: #b45309;
  --kd-yellow: #eab308;
  --kd-line: rgba(0, 0, 0, 0.08);
  --kd-radius: 12px;
  --kd-nav-h: 3.25rem;
  --kd-font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --kd-hero-title-font: "Sora", "Segoe UI", system-ui, -apple-system, sans-serif;
}

html {
  scroll-behavior: smooth;
  min-height: 100%;
}

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

body.home-body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--kd-font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--kd-ink);
  background-color: var(--kd-paper);
  background-image: url("../images/bg.webp");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  background-attachment: fixed;
}

.home-skip {
  position: absolute;
  left: -9999px;
  z-index: 1000;
  padding: 0.5rem 1rem;
  background: var(--kd-ink);
  color: var(--kd-paper);
}

.home-skip:focus {
  left: 0.5rem;
  top: 0.5rem;
}

/* Bandeau large (hero + nav) jusqu’à 1920px ; contenu texte centré plus large sous le hero */
.home-wrap {
  width: 100%;
  max-width: 1920px;
  margin: 0 auto;
  padding: 0 1.25rem;
  box-sizing: border-box;
}

.home-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.25rem 3rem;
}

/* Ancres : marge pour ne pas passer sous la barre */
#accueil,
#decouvrir,
#nos-clubs,
#application,
#telecharger,
#club-manager,
#competition-manager,
#federation-manager,
#league-manager,
#district-manager,
#member-space {
  scroll-margin-top: 1rem;
}

/* Hero */
.home-hero {
  position: relative;
  margin-top: 1rem;
  padding: 0 0 1.6rem;
  border-bottom: 1px solid var(--kd-line);
  overflow: visible;
}

.home-hero__top {
  display: block;
}

.home-hero__media-wrap {
  position: relative;
  max-width: 1680px;
  margin: 0 auto;
}

.home-hero__logo {
  display: block;
  flex: 0 0 auto;
  width: auto;
  max-width: min(34vw, 320px);
  height: auto;
  max-height: min(20vh, 150px);
  object-fit: contain;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.25));
}

/* Hero header images — crossfade sans cadre fixe (hauteur = max des ratios naturels, pas de troncature) */
.home-hero__slides-stage {
  position: relative;
  width: 100%;
  z-index: 0;
}

.home-hero__slides {
  display: grid;
  grid-template-columns: 1fr;
  width: 100%;
  border-radius: var(--kd-radius);
  border: 1px solid var(--kd-line);
  overflow: hidden;
  background: var(--kd-ink);
}

.home-hero__slide {
  grid-area: 1 / 1;
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center center;
  opacity: 0;
  transition: opacity 1.4s ease-in-out;
  z-index: 1;
  pointer-events: none;
}

.home-hero__slide.is-active {
  opacity: 1;
  z-index: 2;
}

.home-hero__slides-controls {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 0.4rem;
  pointer-events: none;
}

.home-hero__slides-stage:has(.home-hero__slide:only-child) .home-hero__slides-controls {
  display: none;
}

.home-hero__slide-btn {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  margin: 0;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(0, 0, 0, 0.22);
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, opacity 0.18s ease;
}

.home-hero__slide-btn:hover {
  background: rgba(0, 0, 0, 0.42);
  border-color: rgba(255, 255, 255, 0.38);
  color: #fff;
}

.home-hero__slide-btn:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.85);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .home-hero__slide {
    transition: none;
  }
}

.home-hero__top-overlay {
  position: absolute;
  left: 0.75rem;
  right: 0.75rem;
  top: 1rem;
  z-index: 3;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 0.65rem 0.9rem;
  padding-bottom: 1.25rem;
  pointer-events: none;
}

.home-hero__menu-toggle {
  display: none;
  flex: 0 0 auto;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 2.75rem;
  height: 2.75rem;
  margin: 0 0 0 auto;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.35);
  cursor: pointer;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  pointer-events: auto;
}

.home-hero__menu-bar {
  display: block;
  width: 1.35rem;
  height: 2px;
  border-radius: 1px;
  background: #fff;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.home-hero__top-overlay.is-menu-open .home-hero__menu-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.home-hero__top-overlay.is-menu-open .home-hero__menu-bar:nth-child(2) {
  opacity: 0;
}

.home-hero__top-overlay.is-menu-open .home-hero__menu-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.home-hero__top-overlay > * {
  pointer-events: auto;
}

.home-hero__menu {
  display: flex;
  flex-wrap: wrap;
  flex: 1 1 auto;
  justify-content: flex-start;
  align-items: center;
  align-content: center;
  margin-top: 0;
  gap: 0.2rem 0.5rem;
  min-width: 0;
  padding: 0.05rem 0;
  border-radius: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}

.home-hero__menu-link {
  font-size: 1.4rem;
  font-weight: 600;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.7);
  text-decoration: none;
  padding: 0.1rem 0.32rem;
  border-radius: 8px;
}

.home-hero__menu-link:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
}

.home-hero__media-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 1.45rem;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0 1rem;
}

.home-hero__headline {
  margin: 0;
  max-width: min(100%, 1200px);
  font-family: var(--kd-hero-title-font);
  font-size: clamp(1.05rem, 2.35vw, 2.2rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.05;
  white-space: normal;
  color: #ffffff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.75);
  text-align: center;
}

.home-hero__cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.home-hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--kd-blue);
  text-decoration: none;
  padding: 0.52rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
  position: static;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.home-hero__cta--login {
  color: #fff;
  background: var(--kd-red);
  border-color: rgba(255, 255, 255, 0.35);
}

.home-hero__cta--login:hover {
  background: #991b1b;
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
}

.home-hero__cta--discover {
  color: var(--kd-blue);
}

.home-hero__cta:hover {
  transform: translateY(-1px);
}

.home-hero__cta--discover:hover {
  border-color: rgba(30, 64, 175, 0.25);
  background: rgba(30, 64, 175, 0.06);
}

.home-hero__menu-link--accent {
  color: #fecaca;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.85);
}

.home-hero__menu-link--accent:hover {
  background: rgba(220, 38, 38, 0.45);
  color: #fff;
}

.home-dev-legacy {
  color: var(--kd-muted);
  font-size: 0.9375rem;
}

@media (max-width: 900px) {
  .home-hero {
    padding-bottom: 1.25rem;
  }

  .home-hero__top {
    display: block;
  }

  .home-hero__media-wrap {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .home-hero__slides-stage {
    flex: 0 0 auto;
  }

  .home-hero__top-overlay {
    left: 0.5rem;
    right: 0.5rem;
    top: 0.85rem;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.5rem;
    padding-bottom: 0;
  }

  .home-hero__logo {
    max-width: min(52vw, 240px);
    max-height: 100px;
  }

  .home-hero__menu-toggle {
    display: inline-flex;
  }

  .home-hero__menu {
    display: none;
    flex: 1 1 100%;
    flex-direction: column;
    align-items: stretch;
    order: 3;
    width: 100%;
    margin-top: 0.35rem;
    padding: 0.65rem 0.5rem;
    border-radius: 14px;
    background: rgba(18, 18, 18, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
  }

  .home-hero__top-overlay.is-menu-open .home-hero__menu {
    display: flex;
  }

  .home-hero__menu-link {
    font-size: 1.05rem;
    letter-spacing: 0.04em;
    padding: 0.55rem 0.65rem;
    border-radius: 8px;
  }

  .home-hero__media-overlay {
    position: static;
    order: 2;
    gap: 0.75rem;
    padding: 0 0.25rem;
  }

  .home-hero__headline {
    text-align: center;
    white-space: normal;
    font-size: clamp(1.15rem, 5.5vw, 1.75rem);
    line-height: 1.2;
    color: var(--kd-ink);
    text-shadow: none;
  }

  .home-hero__cta {
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
  }

  .home-hero__cta--discover {
    background: var(--kd-paper);
    border-color: rgba(30, 64, 175, 0.35);
  }
}

/* Sections */
.home-panel {
  padding: 2.5rem 0;
}

.home-panel--tint {
  background: var(--kd-bg);
  margin: 0 -1.25rem;
  padding: 2.5rem 1.25rem;
  border-top: 1px solid var(--kd-line);
  border-bottom: 1px solid var(--kd-line);
}

.home-heading {
  margin: 0 0 0.5rem;
  font-size: clamp(1.35rem, 2.5vw, 1.6rem);
  font-weight: 650;
  letter-spacing: -0.02em;
  color: var(--kd-ink);
}

.home-lead {
  margin: 0 0 1.75rem;
  font-size: 1rem;
  color: var(--kd-muted);
  max-width: 40rem;
}

/* Cartes visuelles → ancres (ordre = page de connexion) */
.home-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

@media (max-width: 1100px) {
  .home-pillars {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 620px) {
  .home-pillars {
    grid-template-columns: 1fr;
  }
}

.home-pillar {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  background: var(--kd-paper);
  border-radius: var(--kd-radius);
  overflow: hidden;
  border: 1px solid var(--kd-line);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.home-pillar:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

.home-pillar--red {
  border-top: 4px solid var(--kd-red);
}

.home-pillar--blue {
  border-top: 4px solid var(--kd-blue);
}

.home-pillar--gold {
  border-top: 4px solid var(--kd-gold);
}

.home-pillar__visual {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 160px;
  padding: 1rem 1.25rem;
  background: linear-gradient(180deg, #fafafa 0%, #fff 100%);
}

.home-pillar__visual img {
  width: 100%;
  height: auto;
  max-height: 190px;
  object-fit: contain;
  border-radius: 8px;
}

.home-pillar__visual--icon {
  min-height: 220px;
  padding: 1.75rem 1.25rem;
}

.home-pillar__visual--icon img {
  width: 300px;
  max-width: 100%;
  height: auto;
  max-height: 300px;
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.14));
}

.home-pillar__body {
  padding: 1rem 1.15rem 1.15rem;
  text-align: left;
}

.home-pillar__title {
  margin: 0 0 0.35rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--kd-ink);
}

.home-pillar__text {
  margin: 0 0 0.65rem;
  font-size: 0.9rem;
  color: var(--kd-muted);
  line-height: 1.5;
}

.home-pillar__more {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--kd-blue);
}

.home-pillar--red .home-pillar__more {
  color: var(--kd-red);
}

.home-pillar--gold .home-pillar__more {
  color: var(--kd-gold);
}

/* Raccourcis dans la section application */
.home-mini-nav {
  margin: 0 0 1.75rem;
  font-size: 0.875rem;
  color: var(--kd-muted);
}

.home-mini-nav a {
  color: var(--kd-blue);
  font-weight: 600;
  text-decoration: none;
}

.home-mini-nav a:hover {
  text-decoration: underline;
}

.home-mini-nav__sep {
  margin: 0 0.35rem;
  color: #ccc;
}

/* Hubs — listes activités app */
.home-hub {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem 1.25rem;
  padding: 1.25rem 1.35rem;
  margin-bottom: 1rem;
  border-radius: var(--kd-radius);
  background: var(--kd-paper);
  border: 1px solid var(--kd-line);
  border-left-width: 5px;
}

@media (min-width: 640px) {
  .home-hub {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 960px) {
  .home-hub {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.home-hub:last-of-type {
  margin-bottom: 0;
}

.home-hub--accent-red {
  border-left-color: var(--kd-red);
}

.home-hub--accent-blue {
  border-left-color: var(--kd-blue);
}

.home-hub--accent-gold {
  border-left-color: var(--kd-gold);
}

.home-hub--accent-ink {
  border-left-color: var(--kd-ink);
}

.home-hub__head {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 0.15rem;
}

.home-hub__workspace-icon {
  flex: 0 0 auto;
  width: 72px;
  height: 72px;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.1));
}

.home-hub__workspace-icon--svg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: var(--kd-bg);
  color: var(--kd-ink);
}

.home-hub__title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--kd-ink);
}

.home-hub__group {
  min-width: 0;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  background: var(--kd-bg);
  border: 1px solid var(--kd-line);
}

.home-hub__group-title {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 0.55rem;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--kd-ink);
}

.home-hub__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.9375rem;
  color: var(--kd-muted);
}

.home-hub__list--flat {
  margin-top: 0;
}

.home-hub__list li {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  line-height: 1.45;
}

.home-icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.home-dash-icon {
  flex: 0 0 auto;
  width: 1.125rem;
  height: 1.125rem;
  margin-top: 0.1rem;
  color: var(--kd-blue);
}

.home-hub--accent-red .home-dash-icon {
  color: var(--kd-red);
}

.home-hub--accent-gold .home-dash-icon {
  color: var(--kd-gold);
}

.home-hub--accent-ink .home-dash-icon {
  color: var(--kd-ink);
}

.home-dash-icon--lg {
  width: 1.75rem;
  height: 1.75rem;
  margin-top: 0;
}

/* Cartes téléchargement / dev */
.home-card {
  border: 1px solid var(--kd-line);
  border-radius: var(--kd-radius);
  padding: 1.5rem 1.5rem 1.6rem;
  background: var(--kd-paper);
}

.home-card__desc {
  margin: 0 0 1rem;
  font-size: 0.9375rem;
  color: var(--kd-muted);
}

.home-card__desc code {
  font-size: 0.88em;
  background: var(--kd-bg);
  padding: 0.1em 0.35em;
  border-radius: 4px;
  color: var(--kd-ink);
}

.home-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.home-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.15rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.home-btn--primary {
  background: var(--kd-ink);
  color: var(--kd-paper);
  border: 1px solid var(--kd-ink);
}

.home-btn--primary:hover {
  background: #2a2a2a;
  border-color: #2a2a2a;
  color: var(--kd-paper);
}

.home-btn--primary:disabled,
.home-btn--primary[aria-disabled="true"] {
  background: #9ca3af;
  border-color: #9ca3af;
  color: #fff;
  cursor: not-allowed;
  opacity: 0.72;
  pointer-events: none;
}

.home-btn--outline {
  background: transparent;
  color: var(--kd-blue);
  border: 1px solid rgba(30, 64, 175, 0.45);
}

.home-btn--outline:hover {
  background: rgba(30, 64, 175, 0.06);
}

.home-note {
  margin: 1rem 0 0;
  font-size: 0.8125rem;
  color: var(--kd-muted);
}

.home-note--alert {
  padding: 0.75rem 1rem;
  border-radius: 8px;
  border: 1px solid rgba(180, 83, 9, 0.35);
  background: rgba(251, 191, 36, 0.12);
  color: var(--kd-ink);
  line-height: 1.45;
}

/* ── Téléchargement desktop (tuiles dépliables) ── */
.home-dl {
  overflow: hidden;
}

.home-dl__intro {
  text-align: center;
  max-width: 42rem;
  margin: 0 auto 1.25rem;
}

.home-dl__eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--kd-red);
}

.home-dl__title {
  margin-bottom: 0.65rem;
}

.home-dl__lead {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--kd-muted);
}

.home-dl__online-note {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin: 0 0 1.5rem;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  border: 1px solid rgba(30, 64, 175, 0.2);
  background: linear-gradient(135deg, rgba(30, 64, 175, 0.06), rgba(255, 255, 255, 0.9));
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--kd-ink);
}

.home-dl__online-icon {
  flex: 0 0 auto;
  width: 1.35rem;
  height: 1.35rem;
  margin-top: 0.1rem;
  color: var(--kd-blue);
}

.home-dl-grid {
  display: grid;
  gap: 0.85rem;
}

@media (min-width: 900px) {
  .home-dl-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
  }
}

.home-dl-tile {
  border-radius: 14px;
  border: 1px solid var(--kd-line);
  background: var(--kd-paper);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.home-dl-tile:hover {
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.home-dl-tile.is-open {
  transform: none;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
  border-color: rgba(30, 64, 175, 0.28);
}

.home-dl-tile--admin {
  border-top: 4px solid var(--kd-blue);
}

.home-dl-tile--user {
  border-top: 4px solid var(--kd-red);
}

.home-dl-tile--portable {
  border-top: 4px solid var(--kd-gold);
}

.home-dl-tile__head {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  grid-template-areas: "icon body meta chevron";
  gap: 0.75rem;
  align-items: center;
  width: 100%;
  padding: 1rem 1rem 1.05rem;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: inherit;
}

.home-dl-tile__badge {
  align-self: start;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(18, 18, 18, 0.06);
  color: var(--kd-ink);
}

.home-dl-tile--admin .home-dl-tile__badge {
  background: rgba(30, 64, 175, 0.12);
  color: var(--kd-blue);
}

.home-dl-tile--user .home-dl-tile__badge {
  background: rgba(185, 28, 28, 0.1);
  color: var(--kd-red);
}

.home-dl-tile--portable .home-dl-tile__badge {
  background: rgba(180, 83, 9, 0.12);
  color: var(--kd-gold);
}

.home-dl-tile__icon-wrap {
  grid-area: icon;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 12px;
  background: var(--kd-bg);
}

.home-dl-tile--admin .home-dl-tile__icon-wrap {
  background: rgba(30, 64, 175, 0.1);
  color: var(--kd-blue);
}

.home-dl-tile--user .home-dl-tile__icon-wrap {
  background: rgba(185, 28, 28, 0.08);
  color: var(--kd-red);
}

.home-dl-tile--portable .home-dl-tile__icon-wrap {
  background: rgba(180, 83, 9, 0.1);
  color: var(--kd-gold);
}

.home-dl-tile__icon {
  width: 1.5rem;
  height: 1.5rem;
}

.home-dl-tile__head-body {
  grid-area: body;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.home-dl-tile__name {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--kd-ink);
}

.home-dl-tile__hook {
  font-size: 0.8125rem;
  line-height: 1.35;
  color: var(--kd-muted);
}

.home-dl-tile__meta {
  grid-area: meta;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.25rem;
}

.home-dl-tile__pill {
  padding: 0.15rem 0.45rem;
  border-radius: 6px;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.home-dl-tile__pill--light {
  background: rgba(34, 197, 94, 0.15);
  color: #15803d;
}

.home-dl-tile__pill--full {
  background: rgba(180, 83, 9, 0.15);
  color: var(--kd-gold);
}

.home-dl-tile__size {
  font-size: 0.9375rem;
  font-weight: 800;
  color: var(--kd-ink);
  font-variant-numeric: tabular-nums;
}

.home-dl-tile__chevron {
  grid-area: chevron;
  width: 0.55rem;
  height: 0.55rem;
  border-right: 2px solid var(--kd-muted);
  border-bottom: 2px solid var(--kd-muted);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
  margin-left: 0.25rem;
}

.home-dl-tile.is-open .home-dl-tile__chevron {
  transform: rotate(-135deg) translateY(2px);
}

.home-dl-tile__head:hover .home-dl-tile__chevron,
.home-dl-tile__head:focus-visible {
  outline: none;
}

.home-dl-tile__head:focus-visible {
  box-shadow: inset 0 0 0 2px var(--kd-blue);
  border-radius: 12px;
}

.home-dl-tile__panel[hidden] {
  display: none;
}

.home-dl-tile__panel:not([hidden]) {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 0.85rem 1rem 1.15rem;
  border-top: 1px solid var(--kd-line);
  animation: home-dl-panel-in 0.25s ease;
}

@keyframes home-dl-panel-in {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.home-dl-tile__summary {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--kd-muted);
}

.home-dl-tile__checks {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--kd-ink);
}

.home-dl-tile__checks li {
  position: relative;
  padding-left: 1.35rem;
  margin-bottom: 0.4rem;
}

.home-dl-tile__checks li::before {
  content: "✓";
  position: absolute;
  left: 0;
  font-weight: 800;
  color: var(--kd-blue);
}

.home-dl-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.35rem 0.65rem;
  width: 100%;
  padding: 0.85rem 1.15rem;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--kd-blue), #1d4ed8);
  color: var(--kd-paper);
  font-size: 0.9375rem;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  box-shadow: 0 6px 20px rgba(30, 64, 175, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.home-dl-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(30, 64, 175, 0.45);
  filter: brightness(1.05);
  color: var(--kd-paper);
}

.home-dl-cta--gold {
  background: linear-gradient(135deg, #b45309, #92400e);
  box-shadow: 0 6px 20px rgba(180, 83, 9, 0.35);
}

.home-dl-cta--gold:hover {
  box-shadow: 0 10px 28px rgba(180, 83, 9, 0.45);
}

.home-dl-cta__size {
  padding: 0.12rem 0.5rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  font-size: 0.8125rem;
  font-weight: 800;
}

@media (prefers-reduced-motion: reduce) {
  .home-dl-tile,
  .home-dl-tile__chevron,
  .home-dl-cta,
  .home-dl-tile__panel {
    transition: none;
    animation: none;
  }
}

.home-note code {
  font-size: 0.9em;
  background: var(--kd-bg);
  padding: 0.1em 0.3em;
  border-radius: 3px;
}

.home-dev-list {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--kd-muted);
  font-size: 0.9375rem;
}

.home-dev-list li {
  margin-bottom: 0.45rem;
}

.home-dev-link {
  color: var(--kd-blue);
  font-weight: 600;
  text-decoration: none;
}

.home-dev-link:hover {
  text-decoration: underline;
}

.home-roadmap {
  padding: 1.35rem 1.4rem;
  border-radius: var(--kd-radius);
  border: 1px solid var(--kd-line);
  background: linear-gradient(135deg, rgba(234, 179, 8, 0.06) 0%, rgba(30, 64, 175, 0.05) 50%, rgba(185, 28, 28, 0.05) 100%);
}

.home-roadmap__title {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--kd-ink);
}

.home-roadmap__text {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--kd-muted);
}

.home-pricing__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 0.5rem;
}

@media (max-width: 900px) {
  .home-pricing__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .home-pricing__grid {
    grid-template-columns: 1fr;
  }
}

.home-pricing__tier {
  margin: 0;
  padding: 1.25rem 1.1rem 1.35rem;
  border-radius: var(--kd-radius);
  border: 1px solid var(--kd-line);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
  text-align: center;
}

.home-pricing__tier--highlight {
  border-color: rgba(30, 64, 175, 0.35);
  border-top-width: 4px;
  border-top-color: var(--kd-blue);
}

.home-pricing__price {
  margin: 0 0 0.5rem;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--kd-ink);
  line-height: 1.1;
}

.home-pricing__per {
  display: inline;
  font-size: 0.55em;
  font-weight: 650;
  color: var(--kd-muted);
}

.home-pricing__detail {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--kd-muted);
  line-height: 1.45;
}

.home-clubs__list {
  margin: 0 0 1.25rem;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr));
}

.home-clubs__item {
  margin: 0;
  padding: 1.15rem 1.35rem;
  border-radius: var(--kd-radius);
  border: 1px solid var(--kd-line);
  background: rgba(255, 255, 255, 0.92);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--kd-ink);
  display: flex;
  flex-direction: row;
  align-items: stretch;
  text-align: left;
  gap: 1.15rem;
}

.home-clubs__logo-wrap {
  flex: 0 0 auto;
  width: 160px;
  height: 160px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--kd-line);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.home-clubs__logo-wrap--placeholder {
  background: rgba(15, 76, 129, 0.06);
}

.home-clubs__logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.home-clubs__body {
  min-width: 0;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 0.65rem;
  min-height: 160px;
}

.home-clubs__name {
  margin: 0;
  padding-top: 0.35rem;
  width: 100%;
  font-size: 1.55rem;
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
}

.home-clubs__name-link {
  color: var(--kd-blue);
  text-decoration: none;
}

.home-clubs__name-link:hover {
  color: #1e3a8a;
}

.home-clubs__footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  width: 100%;
  margin-top: auto;
}

.home-clubs__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  justify-content: center;
  width: 100%;
}

.home-clubs__action {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  border: 1px solid rgba(15, 76, 129, 0.18);
  background: rgba(255, 255, 255, 0.95);
  color: var(--kd-blue);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.home-clubs__action:hover {
  border-color: rgba(15, 76, 129, 0.35);
  background: #fff;
  transform: translateY(-1px);
}

.home-clubs__action--adhesion {
  border-color: rgba(196, 30, 58, 0.22);
  color: var(--kd-red);
}

.home-clubs__action--courses {
  border-color: rgba(180, 83, 9, 0.22);
  color: var(--kd-gold);
}

.home-clubs__action--courses:hover {
  border-color: rgba(180, 83, 9, 0.4);
}

.home-clubs__action--adhesion:hover {
  border-color: rgba(196, 30, 58, 0.4);
}

.home-clubs__action-icon {
  width: 1.1rem;
  height: 1.1rem;
  flex: 0 0 auto;
}

.home-clubs__website {
  margin-top: 0;
  color: var(--kd-muted);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
}

.home-clubs__website:hover {
  color: var(--kd-blue);
  text-decoration: underline;
}

@media (max-width: 520px) {
  .home-clubs__item {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.15rem 1rem;
  }

  .home-clubs__logo-wrap {
    width: 140px;
    height: 140px;
  }

  .home-clubs__body {
    align-items: center;
    width: 100%;
    min-height: 0;
  }

  .home-clubs__footer {
    margin-top: 0;
  }

  .home-clubs__actions {
    justify-content: center;
  }
}

.home-clubs__empty {
  margin: 0 0 1.25rem;
  font-size: 0.9375rem;
  color: var(--kd-muted);
}

.home-clubs__cta {
  margin-top: 1.75rem;
  padding: 1.35rem 1.4rem 1.45rem;
  border-radius: var(--kd-radius);
  border: 2px solid var(--kd-red);
  background: linear-gradient(135deg, #fff7f7 0%, #ffffff 55%, #fffbeb 100%);
  text-align: center;
}

.home-clubs__cta-offer {
  margin: 0 0 0.55rem;
  display: inline-block;
  padding: 0.28rem 0.75rem;
  border-radius: 999px;
  background: var(--kd-red);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.home-clubs__cta-title {
  margin: 0.35rem auto 0.65rem;
  max-width: 36rem;
  font-family: var(--kd-hero-title-font);
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  font-weight: 800;
  line-height: 1.35;
  color: var(--kd-ink);
  text-align: center;
}

.home-clubs__cta-text {
  margin: 0 auto 1.1rem;
  max-width: 36rem;
  font-size: 0.95rem;
  color: var(--kd-muted);
  line-height: 1.65;
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}

.home-clubs__cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.home-clubs__note {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--kd-muted);
}

.home-clubs__note a {
  color: var(--kd-blue);
  font-weight: 700;
  text-decoration: none;
}

.home-clubs__note a:hover {
  text-decoration: underline;
}

.home-contact-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1rem, 4vw, 2.5rem);
  border-bottom: 1px solid var(--kd-line);
  background: rgba(255, 255, 255, 0.96);
}

.home-contact-header__brand {
  display: inline-flex;
  line-height: 0;
}

.home-contact-header__brand img {
  width: min(180px, 42vw);
  height: auto;
}

.home-contact-header--centered {
  justify-content: center;
  position: relative;
}

.home-contact-header--centered .home-contact-header__back {
  position: absolute;
  right: clamp(1rem, 4vw, 2.5rem);
  top: 50%;
  transform: translateY(-50%);
}

@media (max-width: 640px) {
  .home-contact-header--centered {
    flex-direction: column;
    gap: 0.75rem;
  }

  .home-contact-header--centered .home-contact-header__back {
    position: static;
    transform: none;
  }
}

.home-footer {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #999;
  border-top: 1px solid var(--kd-line);
}

.home-top-btn {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right, 0px));
  bottom: max(1.25rem, env(safe-area-inset-bottom, 0px));
  z-index: 60;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.1rem;
  min-width: 3.25rem;
  min-height: 3.25rem;
  padding: 0.55rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14);
  color: var(--kd-ink);
  text-decoration: none;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: opacity 0.2s ease, transform 0.2s ease, background 0.15s ease;
}

.home-top-btn[hidden] {
  display: none !important;
}

.home-top-btn__icon {
  font-size: 1.15rem;
  line-height: 1;
  font-weight: 700;
}

.home-top-btn:hover,
.home-top-btn:focus-visible {
  background: var(--kd-ink);
  color: #fff;
  outline: none;
}

.home-top-btn:focus-visible {
  box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.35), 0 8px 24px rgba(0, 0, 0, 0.14);
}
