:root {
  --afer-primary: #0c2340;
  --afer-secondary: #e6b800;
  --bg: #f7f8fb;
  --surface: #ffffff;
  --text: #111827;
  --muted: #6b7280;
  --border: #e5e7eb;
  --radius: 12px;
  --shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
  --accent-gradient: linear-gradient(
    135deg,
    #0c2340 0%,
    #1a3b6b 45%,
    #e6b800 100%
  );
  --glass: rgba(255, 255, 255, 0.82);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family:
    "Inter",
    system-ui,
    -apple-system,
    sans-serif;
  color: var(--text);
  background: var(--bg);
  --header-color: var(--text);
  --header-ghost-bg: rgba(12, 35, 64, 0.08);
  --header-ghost-border: rgba(12, 35, 64, 0.18);
  --header-icon-bg: rgba(12, 35, 64, 0.06);
  --header-icon-border: rgba(12, 35, 64, 0.12);
  line-height: 1.6;
}
body.home {
  --header-color: #f8fafc;
  --header-ghost-bg: rgba(255, 255, 255, 0.12);
  --header-ghost-border: rgba(255, 255, 255, 0.28);
  --header-icon-bg: rgba(255, 255, 255, 0.12);
  --header-icon-border: rgba(255, 255, 255, 0.18);
}
body.archive,
body.page-template-templates-page-legal {
  --header-color: #f8fafc;
  --header-ghost-bg: rgba(255, 255, 255, 0.12);
  --header-ghost-border: rgba(255, 255, 255, 0.28);
  --header-icon-bg: rgba(255, 255, 255, 0.12);
  --header-icon-border: rgba(255, 255, 255, 0.18);
}
body.page:not(.home) {
  --bg: #ffffff;
  --header-color: var(--text);
  --header-ghost-bg: rgba(12, 35, 64, 0.08);
  --header-ghost-border: rgba(12, 35, 64, 0.18);
  --header-icon-bg: rgba(12, 35, 64, 0.06);
  --header-icon-border: rgba(12, 35, 64, 0.12);
  background: #ffffff;
}
body.page:not(.home) .site-main {
  background: #ffffff;
}

a {
  color: var(--afer-primary);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
:focus-visible {
  outline: 2px solid var(--afer-secondary);
  outline-offset: 3px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--afer-secondary);
}
.eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: currentColor;
  opacity: 0.45;
}
.lead {
  font-size: 18px;
  color: #1f2937;
  margin: 8px 0 0;
}
.section-subtitle {
  margin: 8px 0 0;
  color: var(--muted);
  max-width: 620px;
}
.muted {
  color: var(--muted);
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(12, 35, 64, 0.08);
  color: var(--afer-primary);
  font-weight: 700;
  border: 1px solid rgba(12, 35, 64, 0.06);
}
.pill-ghost {
  background: rgba(255, 255, 255, 0.72);
  color: var(--text);
}
.link-underline {
  text-decoration: underline;
  font-weight: 600;
  color: var(--afer-primary);
}
.link-underline:hover {
  color: #0d2f55;
}

.container {
  width: min(1240px, 92vw);
  margin: 0 auto;
}

.site-header {
  position: fixed;
  inset: 0 auto auto 0;
  width: 100%;
  z-index: 90;
  background: transparent;
  color: var(--header-color, #f8fafc);
  transition: color 200ms ease;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  color: var(--text);
}
.site-header .header-inner {
  transition:
    background-color 220ms ease,
    box-shadow 220ms ease,
    border-color 220ms ease,
    backdrop-filter 220ms ease,
    padding 220ms ease;
  width: 100%;
  margin: 0;
  border-radius: 0;
  border: none;
  background: transparent;
  padding: 14px 0 8px;
  overflow: visible;
}
.site-header.is-scrolled .header-inner {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-color: transparent;
  box-shadow: none;
  padding: 12px 0 6px;
}
.site-header.is-scrolled .nav-toggle {
  background: var(--afer-primary);
  border-color: var(--afer-primary);
  color: #ffffff;
  top: calc(50% + 8px);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 0;
  min-height: 44px;
  position: relative;
}
.branding {
  display: flex;
  align-items: center;
  transition: transform 200ms ease;
}
.brand-logo {
  max-height: 86px;
  width: auto;
  transition:
    max-height 200ms ease,
    transform 220ms ease,
    filter 220ms ease;
  transform: none;
}
.site-header.is-scrolled .brand-logo {
  max-height: 72px;
  transform: none;
}
.site-header.is-scrolled .branding {
  transform: translateY(8px);
}
.brand-link--circle {
  width: 132px;
  height: 132px;
  position: relative;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--header-icon-bg);
  border: 2px solid var(--header-ghost-border);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.16);
  transition:
    width 200ms ease,
    height 200ms ease,
    box-shadow 200ms ease,
    background 200ms ease,
    border-color 200ms ease,
    transform 220ms ease;
}
.brand-link--circle::after {
  content: "";
  position: absolute;
  inset: -7px;
  border-radius: 50%;
  border: 1px solid rgba(230, 184, 0, 0.38);
  opacity: 0;
  transform: scale(0.93);
  transition:
    opacity 220ms ease,
    transform 220ms ease;
  pointer-events: none;
}
.site-header.is-scrolled .brand-link--circle {
  width: 104px;
  height: 104px;
  background: var(--header-icon-bg);
  border-color: var(--header-ghost-border);
  box-shadow: 0 14px 28px rgba(12, 35, 64, 0.14);
}
.brand-link--circle:hover,
.brand-link--circle:focus-visible {
  transform: translateY(-2px) scale(1.06);
  box-shadow: 0 26px 52px rgba(12, 35, 64, 0.22);
  border-color: rgba(230, 184, 0, 0.55);
}
.brand-link--circle:hover::after,
.brand-link--circle:focus-visible::after {
  opacity: 1;
  transform: scale(1);
}
.brand-link--circle:hover .brand-logo,
.brand-link--circle:focus-visible .brand-logo {
  transform: scale(1.08);
  filter: drop-shadow(0 9px 18px rgba(12, 35, 64, 0.24));
}
@media (max-width: 900px) {
  .site-header .header-inner {
    width: 100%;
    margin: 0;
    padding: 12px 0 6px;
  }
  .brand-link--circle {
    width: 112px;
    height: 112px;
  }
  .site-header.is-scrolled .brand-link--circle {
    width: 94px;
    height: 94px;
  }
  .brand-logo {
    max-height: 72px;
  }
  .site-header.is-scrolled .brand-logo {
    max-height: 62px;
  }
}
@media (max-width: 600px) {
  .brand-link--circle {
    width: 98px;
    height: 98px;
  }
  .site-header.is-scrolled .brand-link--circle {
    width: 86px;
    height: 86px;
  }
  .brand-logo {
    max-height: 66px;
  }
  .site-header.is-scrolled .brand-logo {
    max-height: 56px;
  }
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 18px;
}
.primary-nav .menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 12px;
}
.primary-nav .menu li a {
  padding: 6px 10px;
  border-radius: 10px;
  font-weight: 600;
  color: inherit;
  position: relative;
}
.primary-nav .menu li a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
  opacity: 0.7;
}
.primary-nav .menu li a:hover::after,
.primary-nav .menu li a:focus-visible::after,
.primary-nav .menu li.current-menu-item a::after {
  transform: scaleX(1);
}

.nav-toggle {
  font-size: 18px;
}
.header-ctas,
.account-link {
  display: flex;
  gap: 10px;
  align-items: center;
}
.account-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--header-ghost-border);
  color: inherit;
  background: var(--header-ghost-bg);
  transition:
    transform 120ms ease,
    background 120ms ease,
    box-shadow 120ms ease,
    border-color 120ms ease;
}
.site-header.is-scrolled .account-btn {
  background: rgba(12, 35, 64, 0.08);
  border-color: rgba(12, 35, 64, 0.12);
}
.site-header .btn-ghost {
  background: var(--header-ghost-bg);
  border-color: var(--header-ghost-border);
  color: inherit;
}
.site-header.is-scrolled .btn-ghost {
  background: #fff;
  border-color: var(--border);
  color: var(--text);
}
.account-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--header-icon-border);
  background: var(--header-icon-bg);
  transition:
    transform 120ms ease,
    background 120ms ease,
    box-shadow 120ms ease,
    border-color 120ms ease;
}
.site-header.is-scrolled .account-icon {
  background: rgba(12, 35, 64, 0.08);
  border-color: rgba(12, 35, 64, 0.12);
}
.account-icon:hover,
.account-icon:focus-visible {
  transform: translateY(-1px);
}
.logout-link {
  font-size: 14px;
  color: var(--muted);
}

.site-main {
  padding-top: 0;
}
@media (max-width: 768px) {
  .site-main {
    padding-top: 0;
  }
}
body:not(.home) .site-main {
  padding-top: 0;
}
@media (max-width: 768px) {
  body:not(.home) .site-main {
    padding-top: 0;
  }
}
/* Keep plain content templates readable under the fixed header (no hero block) */
body:not(.home) .site-main > .container.content:first-child {
  padding-top: 120px;
}
@media (max-width: 768px) {
  body:not(.home) .site-main > .container.content:first-child {
    padding-top: 100px;
  }
}

.hero {
  padding: 48px 0 24px;
  background: linear-gradient(135deg, #f1f5f9, #ffffff);
}
.hero-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
  align-items: center;
}
.hero-text h1 {
  font-size: clamp(30px, 4vw, 46px);
  margin: 10px 0 14px;
}
.hero-visual {
  text-align: center;
}

.section {
  padding: 48px 0;
}
.section-muted {
  background: #f3f4f6;
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 20px;
  gap: 12px;
}
.section-news {
  background:
    radial-gradient(circle at 14% 16%, rgba(12, 35, 64, 0.08), transparent 32%),
    radial-gradient(circle at 90% 0%, rgba(230, 184, 0, 0.18), transparent 28%),
    #f8fafc;
  position: relative;
  overflow: hidden;
}
.section-news::after {
  content: "";
  position: absolute;
  inset: 8% auto auto -8%;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(12, 35, 64, 0.12), transparent 65%);
  filter: blur(14px);
  opacity: 0.7;
}
.section-news .container {
  position: relative;
  z-index: 1;
}
.news-head {
  align-items: center;
}
.news-grid {
  gap: 22px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
}
.grid-partenaires,
.grid-partners {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
}
.grid-members {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.effectif-page .effectif-head {
  margin-bottom: 12px;
}
.effectif-page .filters {
  background: #f8fafc;
  border: 1px solid var(--border);
  padding: 12px 14px;
  border-radius: 14px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 12px;
  align-items: start;
}
.effectif-page .filters-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.effectif-page .filters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  align-items: end;
}
.effectif-page .filters label,
.effectif-page .filter-field {
  display: grid;
  gap: 6px;
}
.effectif-page .filters input[type="search"] {
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font: inherit;
  background: #fff;
  box-shadow: inset 0 1px 2px rgba(12, 35, 64, 0.06);
}
.effectif-page .filters select {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  font: inherit;
  background: #fff;
}
.filters-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  flex-wrap: wrap;
  align-self: end;
}

.card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition:
    transform 150ms ease,
    box-shadow 150ms ease;
  border: 1px solid rgba(12, 35, 64, 0.05);
}
.card-link-block {
  color: inherit;
  text-decoration: none;
  height: 100%;
}
.card-link-block:hover {
  text-decoration: none;
}
a.card-link-block {
  cursor: pointer;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.12);
}
.card-thumb img {
  width: 100%;
  display: block;
}
.grid > .card,
.grid > a.card {
  height: 100%;
}
.card-content {
  padding: 16px 18px;
  flex: 1;
}
.card-title {
  margin: 6px 0 8px;
  font-size: 20px;
}
.card-meta {
  color: var(--muted);
  font-size: 13px;
}
.card-meta .pill-category {
  margin-left: auto;
}
.card-link {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  font-weight: 600;
  color: var(--afer-primary);
}

.card-news {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  position: relative;
  display: flex;
  flex-direction: column;
}
.card-news::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(12, 35, 64, 0) 45%,
    rgba(12, 35, 64, 0.06) 100%
  );
  opacity: 0;
  transition: opacity 180ms ease;
}
.card-news:hover::after {
  opacity: 1;
}
.card-news .card-thumb {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #0c2340;
}
.card-news .card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 200ms ease;
  display: block;
  filter: saturate(1.05);
}
.card-news:hover .card-thumb img {
  transform: scale(1.04);
}
.card-news .card-content {
  display: grid;
  gap: 8px;
  grid-template-rows: auto auto 1fr auto;
}
.card-news .card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.card-news .event-banner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  padding: 12px;
}
.card-news .event-logo {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(12, 35, 64, 0.12);
  overflow: hidden;
}
.card-news .event-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 8px;
}
.card-news .logo-text {
  font-weight: 800;
  color: var(--afer-primary);
  letter-spacing: 0.08em;
}
.card-news .team-name {
  font-weight: 700;
  color: var(--text);
  text-align: center;
}
.card-news .versus {
  font-weight: 900;
  color: var(--afer-secondary);
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(230, 184, 0, 0.15);
  border: 1px solid rgba(230, 184, 0, 0.28);
}
.card-news .pill.success {
  background: #ecfdf3;
  color: #166534;
}
.card-news .pill.danger {
  background: #fef2f2;
  color: #991b1b;
}
.card-news .pill.neutral {
  background: #eef2ff;
  color: #1d4ed8;
}
.card-excerpt {
  color: #1f2937;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 72px;
}
.card-partner {
  align-items: center;
  text-align: center;
  padding: 16px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #ffffff 0%, #f9fafb 100%);
  border: 1px solid rgba(12, 35, 64, 0.06);
  display: grid;
  grid-template-rows: auto 1fr auto;
}
.card-partner::before {
  content: "";
  position: absolute;
  inset: -30% 40% auto -28%;
  height: 70%;
  background: radial-gradient(circle, rgba(230, 184, 0, 0.16), transparent 60%);
  opacity: 0.65;
}
.card-partner .card-thumb {
  padding: 18px;
  background: #f2f4f8;
  border-radius: 12px;
  min-height: 140px;
  display: grid;
  place-items: center;
}
.card-partner .card-thumb img {
  max-height: 110px;
  width: auto;
  margin: 0 auto;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.08));
}
.card-partner .card-content {
  display: grid;
  gap: 6px;
  justify-items: center;
  align-content: center;
}
.card-partner .card-link {
  justify-content: center;
}
.pill-category {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 12px;
  background: rgba(12, 35, 64, 0.08);
  color: var(--afer-primary);
  border: 1px solid rgba(12, 35, 64, 0.08);
}
.pill-category.cat-match {
  background: #eef2ff;
  color: #1d4ed8;
  border-color: #dbeafe;
}
.pill-category.cat-evenement,
.pill-category.cat-evenement-2 {
  background: #fff7ed;
  color: #c2410c;
  border-color: #fed7aa;
}
.pill-category.cat-recrutement {
  background: #ecfdf3;
  color: #166534;
  border-color: #bbf7d0;
}
.pill-category.cat-annonce {
  background: #fef2f2;
  color: #991b1b;
  border-color: #fecdd3;
}
.card-member {
  height: 100%;
  text-align: left;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}
.card-member .card-thumb {
  position: relative;
  background: linear-gradient(150deg, #edf2f9, #e6edf7);
  min-height: 220px;
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
}
.card-member .card-thumb::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: rgba(12, 35, 64, 0.08);
}
.card-member .card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.card-member .card-content {
  display: grid;
  gap: 12px;
  padding: 14px 16px 16px;
}
.card-member .card-title {
  margin: 0;
  font-size: clamp(19px, 1.55vw, 22px);
  line-height: 1.15;
}
.member-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.member-ident {
  min-width: 0;
}
.member-position {
  margin: 4px 0 0;
  font-weight: 600;
}
.member-team-list {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.member-team-badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(12, 35, 64, 0.14);
  background: #eef2ff;
  color: #1e3a8a;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
}
.member-team-badge.is-senior {
  background: #ecfdf3;
  border-color: #bbf7d0;
  color: #166534;
}
.member-team-badge.is-retraite {
  background: #fff7ed;
  border-color: #fed7aa;
  color: #9a3412;
}
.member-info-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: minmax(34px, auto);
  align-content: start;
  gap: 8px;
  min-height: calc((34px * 2) + 8px);
}
.member-info-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  min-height: 34px;
  padding: 6px 10px;
  border-radius: 12px;
  border: 1px solid rgba(12, 35, 64, 0.11);
  background: #f8fafc;
  color: #213047;
  font-size: 12px;
  font-weight: 600;
}
.member-info-chip.is-empty {
  visibility: hidden;
  border-color: transparent;
  background: transparent;
  pointer-events: none;
}
.member-info-label {
  color: #64748b;
  font-size: 11px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.member-info-chip strong {
  color: #0c2340;
  font-size: 13px;
}
.card-member .card-excerpt {
  margin: 0;
  min-height: 0;
  color: #334155;
  font-size: 14px;
  line-height: 1.45;
  -webkit-line-clamp: 2;
}
.card-member .placeholder-avatar {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0c2340, #1a3b6b);
  color: #fff;
  font-weight: 800;
  font-size: 28px;
  display: grid;
  place-items: center;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}
.placeholder-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: #eef2f7;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 20px;
  margin: 12px auto;
}
@media (max-width: 900px) {
  .effectif-page .filters-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 720px) {
  .effectif-page .filters-grid {
    grid-template-columns: 1fr;
  }
  .filters-actions {
    justify-content: stretch;
  }
  .filters-actions .btn {
    flex: 1 1 0;
    justify-content: center;
    min-height: 42px;
  }
  .member-head {
    flex-direction: column;
    align-items: flex-start;
  }
  .member-team-list {
    justify-content: flex-start;
  }
  .member-info-row {
    width: 100%;
  }
}
@media (max-width: 430px) {
  .member-info-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.content {
  padding: 36px 0;
}
.page-title {
  margin: 0 0 14px;
  font-size: clamp(26px, 3vw, 36px);
}
.page-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
}
.legal-hero {
  padding: 60px 0 20px;
  background: linear-gradient(135deg, #0c2340, #1a3b6b);
  color: #e5e7eb;
}
.legal-hero .page-title {
  color: #fff;
}
.legal-hero .muted {
  color: #cbd5e1;
}
.legal-content {
  background: #fff;
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 20px;
}
body.page-slug-cookies {
  background:
    radial-gradient(circle at 12% 8%, rgba(12, 35, 64, 0.08), transparent 34%),
    radial-gradient(circle at 92% 0%, rgba(230, 184, 0, 0.16), transparent 30%),
    #f4f7fc;
}
body.page-slug-cookies .site-main > .container.content {
  position: relative;
  max-width: min(980px, 92vw);
  padding-bottom: 58px;
}
body.page-slug-cookies .site-main > .container.content::before {
  content: "";
  position: absolute;
  inset: 110px 0 auto;
  height: 260px;
  border-radius: 24px;
  background: linear-gradient(
    135deg,
    rgba(12, 35, 64, 0.92),
    rgba(26, 59, 107, 0.88)
  );
  box-shadow: 0 24px 48px rgba(12, 35, 64, 0.24);
}
body.page-slug-cookies .site-main > .container.content article {
  position: relative;
  z-index: 1;
  margin-top: 34px;
  border-radius: 22px;
  background: #ffffff;
  border: 1px solid rgba(12, 35, 64, 0.08);
  box-shadow: 0 18px 44px rgba(12, 35, 64, 0.14);
  padding: clamp(20px, 3.4vw, 34px);
}
body.page-slug-cookies .page-title {
  color: #0c2340;
  margin-bottom: 6px;
  line-height: 1.15;
  font-size: clamp(30px, 4vw, 44px);
}
body.page-slug-cookies .page-title::after {
  content: "";
  display: block;
  width: 86px;
  height: 4px;
  margin-top: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, #0c2340, #e6b800);
}
body.page-slug-cookies .page-title + .page-content {
  margin-top: 26px;
}
body.page-slug-cookies .page-content h2,
body.page-slug-cookies .page-content h3 {
  color: #0c2340;
  margin: 1.25em 0 0.55em;
}
body.page-slug-cookies .page-content h2 {
  font-size: clamp(24px, 2.8vw, 32px);
}
body.page-slug-cookies .page-content h3 {
  font-size: clamp(19px, 2.1vw, 24px);
}
body.page-slug-cookies .page-content a {
  color: #0f4fa8;
  text-decoration-thickness: 1.8px;
  text-underline-offset: 2px;
  font-weight: 700;
}
body.page-slug-cookies .page-content ul,
body.page-slug-cookies .page-content ol {
  background: #f8fafc;
  border: 1px solid rgba(12, 35, 64, 0.08);
  border-radius: 14px;
  padding: 14px 18px 14px 26px;
}
body.page-slug-cookies .page-content li::marker {
  color: #0f4fa8;
}
body.page-slug-cookies .page-content table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid rgba(12, 35, 64, 0.12);
  border-radius: 12px;
  overflow: hidden;
}
body.page-slug-cookies .page-content table th,
body.page-slug-cookies .page-content table td {
  border: 1px solid rgba(12, 35, 64, 0.1);
  padding: 10px 12px;
}
body.page-slug-cookies .page-content table th {
  background: #eff6ff;
  color: #102c4a;
}
@media (max-width: 780px) {
  body.page-slug-cookies .site-main > .container.content::before {
    inset: 102px 0 auto;
    height: 210px;
  }
  body.page-slug-cookies .site-main > .container.content article {
    margin-top: 22px;
    border-radius: 18px;
  }
  body.page-slug-cookies .page-title {
    font-size: clamp(26px, 7vw, 34px);
  }
}
.page-content {
  font-size: 17px;
  line-height: 1.8;
  color: #111827;
}
.page-content p {
  margin: 0 0 1.2em;
}
.page-content ul,
.page-content ol {
  padding-left: 1.3em;
  margin: 0 0 1.2em;
  display: grid;
  gap: 8px;
}
.page-content blockquote {
  margin: 0 0 1.4em;
  padding: 14px 16px;
  border-left: 4px solid var(--afer-secondary);
  background: #f8fafc;
  border-radius: 12px;
  color: #0f172a;
}

.single-thumb img {
  border-radius: var(--radius);
  width: 100%;
}
.single-article {
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  border: 1px solid rgba(12, 35, 64, 0.05);
}
.single-head {
  position: relative;
  padding: 28px 28px 10px;
  background:
    radial-gradient(
      circle at 18% 20%,
      rgba(230, 184, 0, 0.22),
      transparent 45%
    ),
    linear-gradient(135deg, #0c2340, #1a3b6b);
  color: #f8fafc;
}
.single-head::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 80% -10%,
    rgba(255, 255, 255, 0.2),
    transparent 40%
  );
  opacity: 0.7;
  pointer-events: none;
}
.single-head .page-title {
  color: #ffffff;
  margin: 6px 0 12px;
}
.single-head .meta {
  margin: 0;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #facc15;
}
.single-thumb {
  margin: 14px 0 0;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.18);
}
.single-article .page-content {
  padding: 22px 28px 28px;
}
.single-article .media-grid {
  padding: 0 28px 26px;
}
.single-article .media-grid figure {
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.08);
}
.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  margin-top: 20px;
}
.video-list {
  display: grid;
  gap: 18px;
  margin-top: 20px;
}
.video-embed iframe {
  width: 100%;
  min-height: 260px;
  border: none;
  border-radius: var(--radius);
}
.single-article .video-list {
  padding: 0 28px 28px;
}
.single-article .video-item {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  box-shadow: var(--shadow);
}
.single-article .video-label {
  margin: 0 0 8px;
  font-weight: 700;
  color: var(--text);
}

.archive-page {
  background: #f7f8fb;
}
.archive-hero {
  position: relative;
  padding: 78px 0 52px;
  overflow: hidden;
  color: #e8ecf5;
  background: var(--accent-gradient);
}
.archive-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      circle at 14% 20%,
      rgba(255, 255, 255, 0.14),
      transparent 38%
    ),
    radial-gradient(circle at 80% 0%, rgba(230, 184, 0, 0.2), transparent 32%);
  opacity: 0.7;
  pointer-events: none;
}
.archive-hero-partenaires {
  background: linear-gradient(135deg, #0c2340 0%, #123763 50%, #e6b800 100%);
}
.archive-hero-news {
  background: linear-gradient(135deg, #0c2340 0%, #1c4476 55%, #0c2340 100%);
}
.archive-hero-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.archive-hero-copy .page-title {
  color: #ffffff;
}
.archive-description {
  color: var(--muted);
}
.archive-hero .archive-description {
  color: #dbe2f3;
}
.archive-meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 10px;
}
.archive-hero-panel {
  display: flex;
  justify-content: flex-end;
}
.archive-hero-card {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 18px;
  border-radius: 16px;
  backdrop-filter: blur(12px);
  color: #eef2ff;
  max-width: 360px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.2);
}
.archive-hero-card .muted {
  color: #e5e7eb;
}
.hero-dots {
  display: flex;
  gap: 6px;
  margin: 10px 0;
}
.hero-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #facc15;
  opacity: 0.85;
  box-shadow: 0 0 0 6px rgba(250, 204, 21, 0.14);
}
.archive-content {
  margin-top: -28px;
  position: relative;
  z-index: 2;
}

/* Partners archive premium refresh */
body.post-type-archive-afer_partner .archive-page {
  background:
    radial-gradient(circle at 9% 18%, rgba(230, 184, 0, 0.12), transparent 33%),
    radial-gradient(circle at 88% 2%, rgba(12, 35, 64, 0.1), transparent 34%),
    #f2f6fc;
}
body.post-type-archive-afer_partner .archive-hero {
  padding: 132px 0 62px;
}
body.post-type-archive-afer_partner .archive-hero-inner {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 28px;
  align-items: stretch;
}
body.post-type-archive-afer_partner .archive-hero-copy {
  display: grid;
  align-content: center;
  gap: 10px;
}
body.post-type-archive-afer_partner .archive-hero-copy .page-title {
  margin: 0;
  font-size: clamp(38px, 5vw, 60px);
  line-height: 1.04;
  letter-spacing: -0.02em;
}
body.post-type-archive-afer_partner .archive-hero .archive-description {
  max-width: 58ch;
  line-height: 1.65;
  color: #d5e0f4;
}
body.post-type-archive-afer_partner .archive-meta {
  margin-top: 12px;
  gap: 10px;
}
body.post-type-archive-afer_partner .archive-meta .pill {
  background: rgba(255, 255, 255, 0.14);
  color: #f8fbff;
  border: 1px solid rgba(255, 255, 255, 0.22);
}
body.post-type-archive-afer_partner .archive-meta .btn-secondary {
  background: linear-gradient(135deg, #e6b800, #f3ce4a);
  color: #102746;
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow: 0 12px 22px rgba(7, 19, 34, 0.24);
}
body.post-type-archive-afer_partner .archive-meta .btn-secondary:hover,
body.post-type-archive-afer_partner .archive-meta .btn-secondary:focus-visible {
  background: linear-gradient(135deg, #f0c930, #f8d865);
  box-shadow: 0 16px 28px rgba(7, 19, 34, 0.3);
}
body.post-type-archive-afer_partner .archive-hero-panel {
  justify-content: stretch;
}
body.post-type-archive-afer_partner .archive-hero-card {
  max-width: none;
  width: 100%;
  height: 100%;
  display: grid;
  align-content: center;
  gap: 12px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.09));
  box-shadow: 0 24px 46px rgba(5, 16, 32, 0.22);
}
body.post-type-archive-afer_partner .hero-dots {
  margin: 2px 0;
}
body.post-type-archive-afer_partner .hero-dots span {
  width: 9px;
  height: 9px;
}
body.post-type-archive-afer_partner .archive-content {
  margin-top: -32px;
}
body.post-type-archive-afer_partner .grid.grid-partners {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
body.post-type-archive-afer_partner .card-partner {
  position: relative;
  min-height: 280px;
  border-radius: 20px;
  padding: 20px;
  background: linear-gradient(160deg, #ffffff, #f7fbff);
  border: 1px solid rgba(12, 35, 64, 0.12);
  box-shadow:
    0 16px 34px rgba(12, 35, 64, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.75);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}
body.post-type-archive-afer_partner .card-partner::before {
  inset: -25% 34% auto -24%;
  height: 72%;
  opacity: 0.85;
}
body.post-type-archive-afer_partner .card-partner:hover {
  transform: translateY(-4px);
  border-color: rgba(12, 35, 64, 0.25);
  box-shadow:
    0 24px 44px rgba(12, 35, 64, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.78);
}
body.post-type-archive-afer_partner .card-partner .card-thumb {
  min-height: 150px;
  border-radius: 14px;
  background: linear-gradient(145deg, #f1f5fb, #eaf0f8);
  border: 1px solid rgba(12, 35, 64, 0.08);
  padding: 16px;
}
body.post-type-archive-afer_partner .card-partner .card-thumb img {
  max-height: 118px;
  max-width: 100%;
  object-fit: contain;
  filter: none;
}
body.post-type-archive-afer_partner .card-partner .card-content {
  gap: 8px;
}
body.post-type-archive-afer_partner .card-partner .card-title {
  margin: 0;
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: #102848;
}
body.post-type-archive-afer_partner .card-partner .card-text {
  margin: 0;
  color: #4f627c;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
body.post-type-archive-afer_partner .card-partner .card-link {
  margin-top: 2px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(12, 35, 64, 0.08);
  border: 1px solid rgba(12, 35, 64, 0.12);
  font-weight: 700;
}
@media (max-width: 1100px) {
  body.post-type-archive-afer_partner .archive-hero-inner {
    grid-template-columns: 1fr;
  }
  body.post-type-archive-afer_partner .grid.grid-partners {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 700px) {
  body.post-type-archive-afer_partner .archive-hero {
    padding: 118px 0 54px;
  }
  body.post-type-archive-afer_partner .archive-content {
    margin-top: -20px;
  }
  body.post-type-archive-afer_partner .grid.grid-partners {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  body.post-type-archive-afer_partner .card-partner {
    min-height: 0;
    border-radius: 16px;
    padding: 14px;
  }
  body.post-type-archive-afer_partner .card-partner .card-thumb {
    min-height: 124px;
    padding: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  body.post-type-archive-afer_partner .card-partner {
    transition: none;
  }
}
.partner-level {
  position: relative;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px;
  margin-bottom: 18px;
  box-shadow: var(--shadow);
}
.partner-level::before {
  content: "";
  position: absolute;
  inset: -32% auto auto -22%;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(12, 35, 64, 0.08), transparent 60%);
  opacity: 0.6;
}
.level-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.level-head .muted {
  margin: 0;
}
.news-archive-grid {
  gap: 22px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* Past events archive redesign */
.past-events-page {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 16%, rgba(12, 35, 64, 0.09), transparent 36%),
    radial-gradient(circle at 88% 4%, rgba(230, 184, 0, 0.16), transparent 28%),
    #f3f7fd;
  padding-bottom: 70px;
}
.past-events-page::before {
  content: "";
  position: absolute;
  inset: 18% -16% auto auto;
  width: 440px;
  height: 440px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(12, 35, 64, 0.12), transparent 68%);
  filter: blur(10px);
  opacity: 0.55;
  pointer-events: none;
}
.past-events-hero {
  position: relative;
  padding: 128px 0 56px;
  color: #e8eefb;
  overflow: hidden;
  background: linear-gradient(140deg, #0c2340 0%, #163f6f 55%, #0c2340 100%);
}
.past-events-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      circle at 14% 18%,
      rgba(255, 255, 255, 0.14),
      transparent 38%
    ),
    radial-gradient(circle at 88% 10%, rgba(230, 184, 0, 0.24), transparent 34%);
  pointer-events: none;
}
.past-events-hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.25fr 0.95fr;
  gap: 26px;
  align-items: end;
}
.past-events-hero-copy .page-title {
  color: #ffffff;
}
.past-events-hero-copy .archive-description {
  color: #dbe6fb;
  max-width: 62ch;
}
.past-events-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}
.past-events-meta .pill {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.26);
  color: #f8fafc;
}
.past-events-meta .pill-ghost {
  background: rgba(12, 35, 64, 0.38);
  border-color: rgba(255, 255, 255, 0.2);
  color: #f8fafc;
}
.past-events-hero-panel {
  display: flex;
  justify-content: flex-end;
}
.past-events-hero-card {
  width: min(420px, 100%);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 18px;
  padding: 18px;
  backdrop-filter: blur(10px);
  box-shadow: 0 22px 42px rgba(0, 0, 0, 0.2);
}
.past-events-hero-label {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(248, 250, 252, 0.9);
  font-weight: 700;
}
.past-events-stat-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.past-events-stat {
  border-radius: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(12, 35, 64, 0.28);
  display: grid;
  gap: 3px;
}
.past-events-stat span {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(226, 232, 240, 0.88);
}
.past-events-stat strong {
  font-size: 20px;
  line-height: 1.1;
  color: #ffffff;
}
.past-events-archive {
  margin-top: -24px;
  position: relative;
  z-index: 1;
}
.past-events-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(12, 35, 64, 0.08);
  box-shadow: 0 14px 30px rgba(12, 35, 64, 0.08);
}
.past-events-grid {
  gap: 22px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.past-events-page .past-event-card {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(12, 35, 64, 0.1);
  background: linear-gradient(180deg, #ffffff 0%, #f7f9fd 100%);
  box-shadow: 0 16px 36px rgba(12, 35, 64, 0.12);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}
.past-events-page .past-event-card::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 4px;
  background: linear-gradient(90deg, #0c2340 0%, #1d4f86 50%, #e6b800 100%);
}
.past-events-page .past-event-card:hover {
  transform: translateY(-7px);
  border-color: rgba(12, 35, 64, 0.2);
  box-shadow: 0 24px 46px rgba(12, 35, 64, 0.18);
}
.past-events-page .past-event-card .card-thumb {
  background: linear-gradient(
    160deg,
    rgba(12, 35, 64, 0.05),
    rgba(230, 184, 0, 0.06)
  );
  border-bottom: 1px solid rgba(12, 35, 64, 0.08);
}
.past-events-page .past-event-card .event-banner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: start;
  gap: 12px;
  padding: 18px 18px 14px;
}
.past-events-page .past-event-card .event-team {
  display: grid;
  grid-template-rows: 76px minmax(2.6em, auto);
  align-content: start;
  justify-items: center;
  gap: 8px;
  min-width: 0;
}
.past-events-page .past-event-card .event-logo {
  width: 76px;
  height: 76px;
  border-radius: 16px;
  align-self: start;
  flex-shrink: 0;
}
.past-events-page .past-event-card .event-logo img {
  padding: 9px;
}
.past-events-page .past-event-card .event-center {
  display: grid;
  justify-items: center;
  gap: 7px;
  min-width: 78px;
  align-self: center;
}
.past-events-page .past-event-card .versus {
  min-width: 50px;
  text-align: center;
  padding: 7px 10px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  border-radius: 999px;
  background: linear-gradient(
    135deg,
    rgba(230, 184, 0, 0.22),
    rgba(230, 184, 0, 0.14)
  );
  border: 1px solid rgba(230, 184, 0, 0.35);
  color: #946000;
}
.past-events-page .past-event-card .mini-score {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(12, 35, 64, 0.08);
  border: 1px solid rgba(12, 35, 64, 0.12);
  font-size: 12px;
  font-weight: 800;
  color: #0f2038;
}
.past-events-page .past-event-card .mini-score-sep {
  opacity: 0.6;
}
.past-events-page .past-event-card .team-name {
  width: 100%;
  max-width: 15ch;
  min-height: 2.5em;
  font-size: 13px;
  line-height: 1.25;
  letter-spacing: 0.01em;
  text-align: center;
  overflow: hidden;
  overflow-wrap: anywhere;
  word-break: break-word;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.past-events-page .past-event-card .card-content {
  border-top: 1px solid rgba(12, 35, 64, 0.08);
  display: grid;
  gap: 8px;
  grid-template-rows: auto auto auto auto 1fr auto;
}
.past-events-page .past-event-card .card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  color: #475467;
}
.past-events-page .past-event-card .card-title {
  margin: 4px 0 0;
  font-size: 22px;
  line-height: 1.25;
  color: #0f2038;
}
.past-events-page .past-event-card .card-location {
  margin: 0;
  color: #334155;
  font-weight: 600;
  font-size: 14px;
}
.past-events-page .past-event-card .score-line {
  margin: 0;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 0.02em;
}
.past-events-page .past-event-card .card-excerpt {
  min-height: 52px;
  color: #344054;
  -webkit-line-clamp: 2;
}
.past-events-page .past-event-card .card-link {
  font-weight: 700;
}
.past-events-page .past-event-card .pill {
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid transparent;
}
.past-events-page .past-event-card .pill.success {
  background: #ecfdf3;
  color: #166534;
  border-color: #bbf7d0;
}
.past-events-page .past-event-card .pill.danger {
  background: #fef2f2;
  color: #991b1b;
  border-color: #fecdd3;
}
.past-events-page .past-event-card .pill.neutral {
  background: #eef2ff;
  color: #1d4ed8;
  border-color: #c7d2fe;
}
.past-events-empty {
  text-align: center;
  border-radius: 18px;
  border: 1px dashed rgba(12, 35, 64, 0.2);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 14px 30px rgba(12, 35, 64, 0.08);
  padding: 48px 22px;
}
.past-events-empty h2 {
  margin: 0 0 10px;
  color: #0f2038;
}
.past-events-empty .muted {
  margin: 0;
}
@media (max-width: 1100px) {
  .past-events-hero-inner {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .past-events-hero-panel {
    justify-content: flex-start;
  }
  .past-events-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 720px) {
  .past-events-page {
    padding-bottom: 54px;
  }
  .past-events-hero {
    padding: 112px 0 44px;
  }
  .past-events-stat-grid {
    grid-template-columns: 1fr;
  }
  .past-events-toolbar {
    padding: 10px 12px;
  }
  .past-events-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .past-events-page .past-event-card .event-banner {
    grid-template-columns: 1fr auto 1fr;
    gap: 9px;
    padding: 14px 14px 10px;
  }
  .past-events-page .past-event-card .event-center {
    min-width: 60px;
    gap: 5px;
  }
  .past-events-page .past-event-card .versus {
    min-width: 44px;
    padding: 6px 8px;
    font-size: 10px;
  }
  .past-events-page .past-event-card .mini-score {
    font-size: 11px;
    padding: 3px 7px;
  }
  .past-events-page .past-event-card .event-logo {
    width: 62px;
    height: 62px;
    border-radius: 14px;
  }
  .past-events-page .past-event-card .team-name {
    font-size: 13px;
    max-width: 12ch;
    min-height: 2.4em;
  }
}

.section-faq {
  background: linear-gradient(180deg, #f1f5fb 0%, #e9eff8 100%);
}
.faq-page {
  position: relative;
  isolation: isolate;
  padding: 138px 0 82px;
  background:
    radial-gradient(
      circle at 15% 12%,
      rgba(230, 184, 0, 0.2),
      transparent 34%
    ),
    radial-gradient(
      circle at 86% 8%,
      rgba(12, 35, 64, 0.18),
      transparent 36%
    ),
    linear-gradient(180deg, #f1f5fb 0%, #e9eff8 100%);
}
.faq-page::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0.32),
    transparent 34%,
    rgba(12, 35, 64, 0.05)
  );
}
.faq-container {
  display: grid;
  gap: 22px;
}
.faq-page-head {
  display: grid;
  gap: 8px;
  max-width: 74ch;
}
.faq-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 20px;
}
.faq-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(170deg, #ffffff 0%, #f8fbff 100%);
  border: 1px solid rgba(12, 35, 64, 0.12);
  border-radius: 20px;
  box-shadow:
    0 20px 44px rgba(12, 35, 64, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.64);
  padding: 18px;
  display: grid;
  gap: 12px;
}
.faq-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #0c2340, #d4a400);
  opacity: 0.7;
}
.faq-column-head {
  display: grid;
  gap: 5px;
}
.faq-column-head h2 {
  margin: 0;
  font-size: clamp(20px, 2.2vw, 24px);
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.faq-column-head .muted {
  margin: 0;
  color: #5f7086;
}
.faq-list {
  display: grid;
  gap: 12px;
}
.faq-list details {
  position: relative;
  border: 1px solid rgba(12, 35, 64, 0.13);
  border-radius: 14px;
  padding: 12px 14px;
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(12, 35, 64, 0.08);
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease,
    background-color 180ms ease;
}
.faq-list details:hover {
  border-color: rgba(12, 35, 64, 0.24);
  box-shadow: 0 12px 24px rgba(12, 35, 64, 0.12);
  transform: translateY(-1px);
}
.faq-list details[open] {
  border-color: rgba(12, 35, 64, 0.28);
  background: linear-gradient(180deg, #ffffff 0%, #f6f9ff 100%);
  box-shadow: 0 14px 28px rgba(12, 35, 64, 0.14);
}
.faq-list summary {
  position: relative;
  display: block;
  font-weight: 700;
  cursor: pointer;
  color: #0f2747;
  padding-right: 30px;
  list-style: none;
}
.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-52%);
  width: 22px;
  height: 22px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 16px;
  line-height: 1;
  font-weight: 800;
  color: #0c2340;
  background: rgba(12, 35, 64, 0.08);
  transition: transform 180ms ease, background-color 180ms ease;
}
.faq-list summary::-webkit-details-marker {
  display: none;
}
.faq-list details[open] summary::after {
  content: "−";
  transform: translateY(-52%) rotate(180deg);
  background: rgba(12, 35, 64, 0.14);
}
.faq-list p {
  margin: 0;
  color: #52647c;
}
.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  margin-top: 0;
  color: #52647c;
  line-height: 1.6;
  transition:
    grid-template-rows 240ms ease,
    opacity 220ms ease,
    margin-top 220ms ease;
}
.faq-answer-inner {
  min-height: 0;
  overflow: hidden;
}
.faq-list details[open] .faq-answer {
  grid-template-rows: 1fr;
  opacity: 1;
  margin-top: 10px;
}
.faq-answer p {
  margin: 0 0 8px;
}
.faq-answer p:last-child {
  margin-bottom: 0;
}
@media (max-width: 1100px) {
  .faq-page {
    padding: 128px 0 72px;
  }
  .faq-columns {
    gap: 16px;
  }
}
@media (max-width: 880px) {
  .faq-page {
    padding: 120px 0 62px;
  }
  .faq-columns {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}
@media (max-width: 560px) {
  .faq-page {
    padding: 110px 0 52px;
  }
  .faq-card {
    padding: 14px;
    border-radius: 16px;
  }
  .faq-list details {
    padding: 11px 12px;
  }
  .faq-list summary {
    font-size: 15px;
    line-height: 1.35;
  }
}
@media (prefers-reduced-motion: reduce) {
  .faq-list details,
  .faq-list summary::after,
  .faq-answer {
    transition: none;
  }
}

/* Header navigation (compact dropdown) */
.site-header .nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  border: 1px solid var(--afer-primary);
  background: var(--afer-primary);
  color: #ffffff;
  padding: 10px;
  position: absolute;
  right: clamp(14px, 4vw, 48px);
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  z-index: 160;
  transition:
    box-shadow 150ms ease,
    transform 150ms ease,
    background 150ms ease,
    border-color 150ms ease,
    top 200ms ease;
}
.site-header .nav-toggle span {
  display: block;
  height: 2px;
  width: 18px;
  background: currentColor;
  border-radius: 999px;
  transition:
    transform 180ms ease,
    opacity 180ms ease;
  transform-origin: center;
}
.site-header .nav-toggle:focus-visible {
  outline: 2px solid var(--afer-secondary);
  outline-offset: 3px;
}
.site-header .nav-toggle.is-open {
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.12);
}
.site-header .nav-toggle.is-open span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.site-header .nav-toggle.is-open span:nth-child(2) {
  opacity: 0;
}
.site-header .nav-toggle.is-open span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}
.site-header .nav-dropdown {
  --dropdown-arrow-x: calc(100% - 24px);
  position: fixed;
  top: 92px;
  left: 14px;
  width: min(250px, calc(100vw - 24px));
  background: #ffffff;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 18px 36px rgba(12, 35, 64, 0.18);
  padding: 8px;
  transform: translateY(-8px) scale(0.98);
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 150ms ease,
    transform 150ms ease;
  z-index: 150;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transform-origin: var(--dropdown-arrow-x) top;
}
.site-header .nav-dropdown::before {
  content: "";
  position: absolute;
  top: -7px;
  left: calc(var(--dropdown-arrow-x) - 7px);
  width: 14px;
  height: 14px;
  background: #ffffff;
  border-left: 1px solid var(--border);
  border-top: 1px solid var(--border);
  transform: rotate(45deg);
  border-top-left-radius: 2px;
  pointer-events: none;
}
.site-header .nav-dropdown.open {
  transform: translateY(0) scale(1);
  opacity: 1;
  pointer-events: auto;
}

.site-header .dropdown-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.site-header .dropdown-menu a {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 42px;
  padding: 8px 10px;
  border-radius: 10px;
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  transition:
    background 140ms ease,
    color 140ms ease;
}
.site-header .dropdown-menu a:hover,
.site-header .dropdown-menu a:focus-visible,
.site-header .dropdown-menu .current-menu-item > a,
.site-header .dropdown-menu .current_page_item > a {
  background: rgba(12, 35, 64, 0.09);
  color: var(--afer-primary);
  text-decoration: none;
}
.site-header .dropdown-menu .menu-item-emphasis {
  background: var(--afer-primary);
  color: #fff;
}
.site-header .dropdown-menu .menu-item-emphasis:hover,
.site-header .dropdown-menu .menu-item-emphasis:focus-visible {
  background: #163963;
  color: #fff;
}

@media (max-width: 600px) {
  .site-header .nav-dropdown {
    width: min(240px, calc(100vw - 20px));
  }
  .site-header .dropdown-menu a {
    font-size: 14px;
    min-height: 40px;
    padding: 7px 9px;
  }
}

/* =============================
   Accueil AFER1927 - Sport Premium
   ============================= */
.home-hero {
  position: relative;
  padding: 110px 0 80px;
  background:
    linear-gradient(180deg, rgba(12, 35, 64, 0.58), rgba(12, 35, 64, 0.58)),
    url("../img/galerie/galerie-11.webp") center/cover no-repeat;
  background-attachment: fixed;
  overflow: hidden;
  min-height: 100vh;
  z-index: 1;
}
.home-hero::before,
.home-hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(24px);
  opacity: 0.2;
}
.home-hero::before {
  width: 420px;
  height: 420px;
  background: rgba(230, 184, 0, 0.25);
  top: -120px;
  left: -120px;
}
.home-hero::after {
  width: 520px;
  height: 520px;
  background: rgba(12, 35, 64, 0.22);
  bottom: -180px;
  right: -140px;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 34px;
  align-items: center;
  min-height: clamp(520px, calc(100vh - 220px), 760px);
  position: relative;
  z-index: 1;
}
.hero-copy h1 {
  font-size: clamp(34px, 5vw, 50px);
  margin: 12px 0;
  letter-spacing: -0.02em;
}
.home-hero .eyebrow,
.home-hero .hero-copy h1,
.home-hero .hero-copy .lead {
  color: #fff;
}
.home-hero .hero-copy .lead {
  opacity: 0.9;
}
.home-hero .hero-actions .btn-ghost {
  border-color: rgba(255, 255, 255, 0.6);
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}
.home-hero .hero-actions .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}
.hero-copy .lead {
  font-size: 19px;
  color: var(--muted);
  max-width: 560px;
  line-height: 1.6;
}
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 14px;
}
.hero-media {
  position: relative;
  min-height: 260px;
}
.hero-visual,
.hero-placeholder {
  width: 100%;
  border-radius: 18px;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.12);
  background: linear-gradient(
    135deg,
    rgba(12, 35, 64, 0.1),
    rgba(230, 184, 0, 0.18)
  );
  object-fit: cover;
  display: block;
  border: 1px solid rgba(12, 35, 64, 0.08);
}
.hero-placeholder {
  min-height: 320px;
}
.hero-next-match {
  width: 100%;
  display: grid;
  gap: 10px;
}
.hero-next-match-label {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
}
.hero-next-match .hero-match-card {
  border-radius: 20px;
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(247, 250, 255, 0.97);
  box-shadow: 0 24px 54px rgba(3, 8, 18, 0.36);
  overflow: hidden;
}
.hero-next-match .hero-match-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 28px 60px rgba(3, 8, 18, 0.4);
}
.hero-next-match .event-banner {
  padding: 14px 14px 10px;
  gap: 12px;
  border-bottom-width: 1px;
}
.hero-next-match .event-team {
  gap: 8px;
  min-width: 0;
}
.hero-next-match .event-logo {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  box-shadow:
    0 6px 16px rgba(12, 35, 64, 0.12),
    0 0 0 1px rgba(12, 35, 64, 0.08);
}
.hero-next-match .event-logo img {
  padding: 6px;
}
.hero-next-match .team-name {
  font-size: 13px;
  line-height: 1.2;
  word-break: break-word;
  overflow-wrap: anywhere;
}
.hero-next-match .versus {
  font-size: 15px;
  letter-spacing: 0.06em;
  padding: 7px 10px;
  border-radius: 10px;
}
.hero-next-match .event-infos {
  padding: 12px 14px 14px;
  gap: 10px;
}
.hero-match-title {
  margin: 0;
  font-size: 18px;
  line-height: 1.2;
  color: var(--afer-primary);
}
.hero-next-match .event-row {
  gap: 8px;
}
.hero-next-match .event-row .meta-item {
  font-size: 13px;
  padding: 7px 9px;
}
.hero-match-link {
  margin-top: 2px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--afer-primary);
  color: #ffffff;
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  line-height: 1.1;
}
.hero-match-link:hover,
.hero-match-link:focus-visible {
  background: #163963;
  color: #ffffff;
  text-decoration: none;
}

.home-spirit {
  position: relative;
  z-index: 3;
  margin-top: -56px;
  padding: 94px 0 40px;
  border-radius: 32px 32px 0 0;
  background: linear-gradient(
    180deg,
    rgba(248, 250, 252, 0.98),
    #f8fafc 28%,
    #f8fafc
  );
  box-shadow: 0 -22px 44px rgba(12, 35, 64, 0.16);
}
.spirit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}
.spirit-card {
  background: #fff;
  border: 1px solid rgba(12, 35, 64, 0.08);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.06);
  transition:
    transform 150ms ease,
    box-shadow 150ms ease;
}
.spirit-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.08);
}
.icon-circle {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: linear-gradient(
    135deg,
    rgba(12, 35, 64, 0.12),
    rgba(230, 184, 0, 0.2)
  );
  display: grid;
  place-items: center;
  margin-bottom: 10px;
  font-size: 20px;
}

.home-event {
  padding: 40px 0;
}
.event-card {
  background: #fff;
  border: 1px solid rgba(12, 35, 64, 0.1);
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.06);
}
.event-header {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}
.event-banner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  padding: 10px 0 6px;
}
.event-team {
  display: grid;
  justify-items: center;
  gap: 6px;
}
.event-logo {
  width: 78px;
  height: 78px;
  border-radius: 16px;
  background: #f5f6fa;
  border: 1px solid rgba(12, 35, 64, 0.12);
  display: grid;
  place-items: center;
  overflow: hidden;
  box-shadow: 0 10px 22px rgba(12, 35, 64, 0.1);
}
.event-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 8px;
}
.logo-text {
  font-weight: 800;
  color: #0b1526;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.versus {
  font-weight: 800;
  color: #e24e59;
  padding: 6px 12px;
  border-radius: 10px;
  background: rgba(226, 78, 89, 0.12);
  border: 1px solid rgba(226, 78, 89, 0.2);
}
.team-name {
  font-size: 13px;
  font-weight: 700;
  color: #1a2437;
  text-align: center;
}
.event-title {
  margin: 12px 0 6px;
}
.event-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, max-content));
  gap: 8px;
  margin-bottom: 10px;
}
.meta-item {
  padding: 10px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px dashed rgba(12, 35, 64, 0.12);
}
.events-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
.event-type-entrainement {
  background: linear-gradient(135deg, #e0f2fe, #bfdbfe);
  color: #0f172a;
}
.event-type-match {
  background: linear-gradient(135deg, #fee2e2, #fecaca);
  color: #111827;
}
.event-type-evenement {
  background: linear-gradient(135deg, #fef9c3, #fde68a);
  color: #0f172a;
}
.event-type-troisieme_mi_temps {
  background: linear-gradient(135deg, #ecfdf3, #bbf7d0);
  color: #064e3b;
}
.home-event {
  padding: 120px 0;
  background: linear-gradient(180deg, #ffffff 0%, var(--bg) 100%);
  position: relative;
}
.home-event .section-head {
  text-align: center;
  margin-bottom: 72px;
}
.events-stack {
  display: grid;
  gap: 28px;
  margin-top: 56px;
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
}
.event-card {
  background: var(--surface);
  border-radius: 24px;
  overflow: hidden;
  box-shadow:
    0 10px 40px rgba(12, 35, 64, 0.08),
    0 0 0 1px rgba(12, 35, 64, 0.05);
  border: 1px solid rgba(12, 35, 64, 0.06);
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
}
.event-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 6px;
  background: linear-gradient(
    180deg,
    var(--afer-secondary) 0%,
    var(--afer-primary) 100%
  );
  opacity: 0;
  transition: opacity 0.5s ease;
}
.event-card:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow:
    0 25px 70px rgba(12, 35, 64, 0.15),
    0 0 0 1px rgba(230, 184, 0, 0.2);
  border-color: rgba(230, 184, 0, 0.3);
}
.event-card:hover::before {
  opacity: 1;
}
.event-banner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 40px;
  padding: 44px;
  background: linear-gradient(
    135deg,
    rgba(12, 35, 64, 0.02) 0%,
    rgba(230, 184, 0, 0.04) 100%
  );
  border-bottom: 2px solid rgba(12, 35, 64, 0.06);
  position: relative;
}
.event-banner::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    var(--afer-secondary) 0%,
    transparent 50%,
    var(--afer-secondary) 100%
  );
  opacity: 0;
  transition: opacity 0.5s ease;
}
.event-card:hover .event-banner::after {
  opacity: 0.5;
}
.event-team {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.event-logo {
  width: 80px;
  height: 80px;
  background: var(--surface);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow:
    0 6px 20px rgba(12, 35, 64, 0.12),
    0 0 0 2px rgba(12, 35, 64, 0.06);
  border: 2px solid rgba(12, 35, 64, 0.08);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
}
.event-logo::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 20px;
  border: 2px solid var(--afer-secondary);
  opacity: 0;
  transform: scale(0.9);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.event-card:hover .event-logo {
  transform: scale(1.12) rotate(5deg);
  box-shadow:
    0 10px 30px rgba(12, 35, 64, 0.2),
    0 0 0 3px rgba(230, 184, 0, 0.3);
}
.event-card:hover .event-logo::after {
  opacity: 1;
  transform: scale(1.15) rotate(-5deg);
}
.event-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 10px;
}
.logo-text {
  font-size: 20px;
  font-weight: 900;
  color: var(--afer-primary);
  letter-spacing: 0.05em;
}
.team-name {
  font-size: 19px;
  font-weight: 800;
  color: var(--afer-primary);
  text-align: center;
  letter-spacing: -0.01em;
}
.versus {
  font-size: 28px;
  font-weight: 900;
  color: var(--afer-secondary);
  letter-spacing: 0.15em;
  padding: 16px 32px;
  background: rgba(230, 184, 0, 0.15);
  border-radius: 16px;
  border: 2px solid rgba(230, 184, 0, 0.3);
  box-shadow: 0 8px 24px rgba(230, 184, 0, 0.2);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.event-card:hover .versus {
  transform: scale(1.08);
  background: rgba(230, 184, 0, 0.25);
  box-shadow: 0 12px 32px rgba(230, 184, 0, 0.3);
}
.event-infos {
  padding: 32px 44px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.event-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}
.event-type {
  background: var(--afer-primary);
  color: #fff;
  font-weight: 800;
  font-size: 13px;
  padding: 8px 20px;
  border-radius: 999px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  box-shadow: 0 4px 12px rgba(12, 35, 64, 0.2);
}
.event-type-match {
  background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}
.event-type-training,
.event-type-entrainement {
  background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}
.event-type-evenement {
  background: linear-gradient(135deg, #14b8a6 0%, #0f766e 100%);
  box-shadow: 0 4px 12px rgba(20, 184, 166, 0.3);
}
.event-type-troisieme_mi_temps {
  background: linear-gradient(135deg, #f59e0b 0%, #b45309 100%);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}
.event-row .meta-item {
  font-size: 15px;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}
.event-row-actions {
  justify-content: flex-end;
}
.event-more-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid rgba(12, 35, 64, 0.18);
  background: rgba(12, 35, 64, 0.04);
  color: var(--afer-primary);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition:
    transform 120ms ease,
    background 120ms ease,
    border-color 120ms ease;
}
.event-more-btn:hover,
.event-more-btn:focus-visible {
  transform: translateY(-1px);
  background: rgba(12, 35, 64, 0.09);
  border-color: rgba(12, 35, 64, 0.3);
}

.event-modal-open {
  overflow: hidden;
}
.event-modal {
  position: fixed;
  inset: 0;
  z-index: 210;
  display: grid;
  place-items: center;
  padding: 18px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}
.event-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}
.event-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 10, 20, 0.6);
}
.event-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(820px, 100%);
  max-height: min(88vh, 900px);
  overflow: auto;
  border-radius: 20px;
  background: #ffffff;
  border: 1px solid rgba(12, 35, 64, 0.12);
  box-shadow: 0 30px 60px rgba(2, 8, 20, 0.35);
  padding: 22px;
  transform: translateY(16px) scale(0.98);
  transition: transform 180ms ease;
}
.event-modal.is-open .event-modal__dialog {
  transform: translateY(0) scale(1);
}
.event-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #ffffff;
  color: var(--text);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.event-modal__eyebrow {
  margin: 0 0 8px;
  font-size: 11px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: #e24e59;
  font-weight: 700;
}
.event-modal__title {
  margin: 0 0 14px;
  font-size: clamp(22px, 3vw, 30px);
  color: var(--afer-primary);
}
.event-modal__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}
.event-modal__meta .meta-item {
  font-size: 14px;
  padding: 8px 11px;
}
.event-modal__content {
  border: 1px solid rgba(12, 35, 64, 0.12);
  border-radius: 14px;
  background: #f9fafc;
  padding: 14px;
  color: #1f2937;
  line-height: 1.65;
}
.event-modal__content p {
  margin: 0 0 10px;
}
.event-modal__content p:last-child {
  margin-bottom: 0;
}
.event-modal__map {
  margin-top: 16px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(12, 35, 64, 0.14);
  background: #e5e7eb;
}
.event-modal__map iframe {
  width: 100%;
  min-height: 310px;
  border: 0;
  display: block;
}
.event-modal__actions {
  margin-top: 16px;
  display: flex;
  justify-content: flex-end;
}
.event-modal__maps-link {
  min-height: 40px;
}

.home-join {
  padding: 40px 0;
}
.join-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  align-items: center;
}
.checklist {
  list-style: none;
  padding: 0;
  margin: 10px 0 14px;
  display: grid;
  gap: 6px;
}
.join-visual {
  justify-self: end;
}
.join-photo,
.join-placeholder {
  border-radius: 16px;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.08);
  background: linear-gradient(
    135deg,
    rgba(12, 35, 64, 0.12),
    rgba(230, 184, 0, 0.2)
  );
  min-height: 260px;
  width: 100%;
  object-fit: cover;
}

.home-effectif {
  padding: 40px 0;
}
.home-members .card-member {
  height: 100%;
}
.fallback-card {
  background: #fff;
  border-radius: 16px;
  padding: 16px;
  border: 1px dashed rgba(12, 35, 64, 0.16);
  text-align: center;
}

/* ========================================
   LEGO GALLERY ULTRA-DENSE - 0 Pixel Perdu
   Grid System parfait 12×12 = Carré absolu
   ======================================== */

.lego-gallery-dense {
  padding: 100px 0;
  background: linear-gradient(180deg, #f7f8fb 0%, #ffffff 50%, #f7f8fb 100%);
  overflow: hidden;
}

.lego-gallery-dense .section-head {
  /* text-align: center;
  margin-bottom: 64px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto; */
}

/* ========================================
   GRID ULTRA-DENSE - Système 12×12
   ======================================== */

.lego-grid-dense {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: minmax(0, 1fr);
  grid-auto-flow: dense; /* MAGIC: Remplit automatiquement les trous */
  gap: 0; /* 0 GAP = Pas d'espace blanc */
  max-width: 1400px;
  margin: 0 auto;
  aspect-ratio: 1 / 1; /* Force carré parfait */
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(12, 35, 64, 0.12);
  background: var(--surface);
}

/* ========================================
   Tiles - Pas de padding, pas de margin
   ======================================== */

.tile-dense {
  position: relative;
  overflow: hidden;
  /* Pas de border-radius individuel pour éviter les espaces */
  background: var(--surface);
  min-height: 0; /* Important pour aspect-ratio */
  transition:
    transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.4s ease,
    z-index 0s 0.4s; /* Delay z-index pour éviter flash */
}

.tile-dense:hover {
  transform: scale(1.05);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
  z-index: 100;
  transition:
    transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.4s ease,
    z-index 0s 0s; /* Pas de delay au hover */
}

/* ========================================
   Tile Trigger & Image
   ======================================== */

.tile-dense .tile-trigger {
  border: 0;
  padding: 0;
  margin: 0;
  background: transparent;
  width: 100%;
  height: 100%;
  cursor: pointer;
  display: block;
  position: relative;
}

.tile-dense .tile-trigger:focus-visible {
  outline: 4px solid var(--afer-secondary);
  outline-offset: -4px;
  z-index: 101;
}

.tile-dense figure {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.tile-dense img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition:
    transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1),
    filter 0.4s ease;
}

.tile-dense:hover img {
  transform: scale(1.15);
  filter: brightness(1.1);
}

/* ========================================
   Overlay & Zoom Icon
   ======================================== */

.tile-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(12, 35, 64, 0) 0%,
    rgba(12, 35, 64, 0.3) 50%,
    rgba(230, 184, 0, 0.4) 100%
  );
  opacity: 0;
  transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.tile-dense:hover .tile-overlay {
  opacity: 1;
}

.tile-zoom-icon {
  width: 64px;
  height: 64px;
  background: rgba(255, 255, 255, 0.98);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--afer-primary);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  transform: scale(0.5) translateY(20px);
  opacity: 0;
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.tile-dense:hover .tile-zoom-icon {
  transform: scale(1) translateY(0) rotate(0deg);
  opacity: 1;
}

.tile-zoom-icon:hover {
  transform: scale(1.1) rotate(90deg);
}

.tile-zoom-icon svg {
  width: 28px;
  height: 28px;
}

/* ========================================
   Modal Lightbox Enhanced
   ======================================== */

.lego-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  padding: 40px 20px;
  animation: modalFadeIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    backdrop-filter: blur(0);
  }
  to {
    opacity: 1;
    backdrop-filter: blur(12px);
  }
}

.lego-modal.open {
  display: flex;
}

.lego-modal img {
  max-width: min(95vw, 1600px);
  max-height: 85vh;
  object-fit: contain;
  border-radius: 16px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  animation: imageZoomIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes imageZoomIn {
  from {
    opacity: 0;
    transform: scale(0.8) translateY(40px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Modal Controls */
.lego-modal .modal-close {
  position: absolute;
  top: 24px;
  right: 24px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  border: 2px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  border-radius: 50%;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 24px;
  font-weight: 300;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 10;
}

.lego-modal .modal-close:hover {
  background: rgba(230, 184, 0, 0.9);
  border-color: rgba(230, 184, 0, 1);
  transform: rotate(90deg) scale(1.15);
  box-shadow: 0 8px 24px rgba(230, 184, 0, 0.4);
}

.lego-modal .modal-prev,
.lego-modal .modal-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  border: 2px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  border-radius: 50%;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 36px;
  font-weight: 300;
  line-height: 1;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 10;
  user-select: none;
}

.lego-modal .modal-prev {
  left: 24px;
}

.lego-modal .modal-next {
  right: 24px;
}

.lego-modal .modal-prev:hover,
.lego-modal .modal-next:hover {
  background: rgba(230, 184, 0, 0.9);
  border-color: rgba(230, 184, 0, 1);
  transform: translateY(-50%) scale(1.15);
  box-shadow: 0 8px 24px rgba(230, 184, 0, 0.4);
}

.lego-modal .modal-prev:active,
.lego-modal .modal-next:active {
  transform: translateY(-50%) scale(0.95);
}

.lego-modal .modal-caption {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(12, 35, 64, 0.9);
  backdrop-filter: blur(20px);
  color: #fff;
  padding: 16px 32px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.02em;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ========================================
   Gallery CTA Enhanced
   ======================================== */

.lego-gallery-dense .gallery-cta {
  text-align: center;
  margin-top: 80px;
  padding-top: 64px;
  border-top: 2px solid rgba(12, 35, 64, 0.1);
}

.lego-gallery-dense .gallery-cta p {
  margin: 0 0 28px;
  font-size: 20px;
  color: var(--muted);
  font-weight: 500;
}

.lego-gallery-dense .btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  font-size: 17px;
  font-weight: 700;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.lego-gallery-dense .btn svg {
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.lego-gallery-dense .btn:hover svg {
  transform: translateX(6px);
}

/* ========================================
   Responsive - Maintain Square Aspect
   ======================================== */

@media (max-width: 1200px) {
  .lego-grid-dense {
    grid-template-columns: repeat(10, 1fr);
    max-width: 1100px;
  }

  /* Ajuster les spans proportionnellement */
  .tile-dense[style*="span 12"] {
    grid-column: span 10 !important;
  }

  .tile-dense[style*="span 6"] {
    grid-column: span 5 !important;
  }

  .tile-dense[style*="span 4"] {
    grid-column: span 4 !important;
  }

  .tile-dense[style*="span 3"] {
    grid-column: span 3 !important;
  }
}

@media (max-width: 900px) {
  .lego-gallery-dense {
    padding: 80px 0;
  }

  .lego-grid-dense {
    grid-template-columns: repeat(8, 1fr);
    max-width: 800px;
  }

  .tile-dense[style*="span 6"] {
    grid-column: span 4 !important;
  }

  .tile-dense[style*="span 4"] {
    grid-column: span 4 !important;
  }

  .tile-dense[style*="span 3"] {
    grid-column: span 2 !important;
  }

  .tile-zoom-icon {
    width: 52px;
    height: 52px;
  }

  .tile-zoom-icon svg {
    width: 24px;
    height: 24px;
  }
}

@media (max-width: 600px) {
  .lego-gallery-dense {
    padding: 60px 0;
  }

  .lego-gallery-dense .section-head {
    margin-bottom: 48px;
  }

  .lego-grid-dense {
    grid-template-columns: repeat(6, 1fr);
    border-radius: 16px;
    aspect-ratio: auto; /* Libérer aspect ratio sur mobile */
    min-height: 600px;
  }

  .tile-dense[style*="span 6"] {
    grid-column: span 6 !important;
    grid-row: span 3 !important;
  }

  .tile-dense[style*="span 4"] {
    grid-column: span 3 !important;
    grid-row: span 3 !important;
  }

  .tile-dense[style*="span 3"] {
    grid-column: span 2 !important;
    grid-row: span 2 !important;
  }

  .tile-zoom-icon {
    width: 44px;
    height: 44px;
  }

  .tile-zoom-icon svg {
    width: 20px;
    height: 20px;
  }

  .lego-modal .modal-prev,
  .lego-modal .modal-next {
    width: 48px;
    height: 48px;
    font-size: 28px;
  }

  .lego-modal .modal-prev {
    left: 12px;
  }

  .lego-modal .modal-next {
    right: 12px;
  }

  .lego-modal .modal-close {
    top: 12px;
    right: 12px;
    width: 44px;
    height: 44px;
    font-size: 20px;
  }

  .lego-modal .modal-caption {
    bottom: 20px;
    padding: 12px 20px;
    font-size: 14px;
  }
}

/* ========================================
   Accessibility
   ======================================== */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* High contrast mode */
@media (prefers-contrast: high) {
  .tile-overlay {
    background: rgba(0, 0, 0, 0.8);
  }

  .tile-zoom-icon {
    background: #fff;
    border: 3px solid #000;
  }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  .lego-gallery-dense {
  }

  .lego-grid-dense {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  }
}

/* Print styles */
@media print {
  .lego-gallery-dense {
    padding: 0;
  }

  .lego-grid-dense {
    display: flex;
    flex-wrap: wrap;
    border-radius: 0;
    box-shadow: none;
  }

  .tile-dense {
    width: 25%;
    break-inside: avoid;
  }

  .tile-overlay,
  .tile-zoom-icon,
  .gallery-cta {
    display: none !important;
  }
}

/* ========================================
   Accessibility & Print
   ======================================== */

@media (prefers-reduced-motion: reduce) {
  .tile,
  .tile img,
  .tile-zoom,
  .tile-overlay {
    transition: none !important;
    animation: none !important;
  }

  .lego-modal,
  .lego-modal img {
    animation: none !important;
  }
}

@media print {
  .lego-gallery {
    padding: 20px 0;
  }

  .lego-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }

  .tile {
    width: calc(25% - 10px);
    break-inside: avoid;
  }

  .tile-zoom,
  .tile-overlay {
    display: none;
  }
}

.home-news {
  padding: 40px 0;
}
.news-actions {
  margin-top: 14px;
  text-align: center;
}
.card-past-event {
  background: #ffffff;
  color: #0b1526;
  border: 1px solid rgba(12, 35, 64, 0.08);
  box-shadow: 0 14px 36px rgba(12, 35, 64, 0.12);
}
.card-past-event .card-content {
  color: #0b1526;
  background: #fff;
  border-top: 1px solid rgba(12, 35, 64, 0.06);
}
.card-past-event .event-banner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  padding: 16px 16px 14px;
}
.card-past-event .event-logo {
  width: 82px;
  height: 82px;
  border-radius: 18px;
  background: #f5f6fa;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 22px rgba(12, 35, 64, 0.12);
  overflow: hidden;
}
.card-past-event .event-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 10px;
}
.card-past-event .logo-text {
  font-weight: 800;
  color: #0b1526;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.card-past-event .team-name {
  font-weight: 800;
  text-align: center;
  color: #1a2437;
}
.card-past-event .versus {
  font-weight: 800;
  color: #e24e59;
  padding: 8px 14px;
  border-radius: 10px;
  background: rgba(226, 78, 89, 0.12);
  border: 1px solid rgba(226, 78, 89, 0.2);
}
.card-past-event .score-line {
  font-weight: 800;
  color: #0b1526;
}
.card-past-event .pill.success {
  background: #ecfdf3;
  color: #166534;
}
.card-past-event .pill.danger {
  background: #fef2f2;
  color: #991b1b;
}
.card-past-event .pill.neutral {
  background: #eef2ff;
  color: #1d4ed8;
}

.single-past-event {
  padding: 120px 0 80px;
}
.single-past-event .event-hero {
  margin-bottom: 24px;
}
.single-past-event .event-meta-line {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 10px 0;
}
.single-past-event .event-body {
  display: grid;
  gap: 18px;
}
.participant-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.participant-list li {
  padding: 8px 12px;
  background: #f8fafc;
  border-radius: 10px;
  border: 1px solid var(--border);
}
.participant-list a {
  text-decoration: none;
  font-weight: 700;
  color: var(--afer-primary);
}
.participant-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
.participant-card {
  display: flex;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(12, 35, 64, 0.06);
  text-decoration: none;
  color: inherit;
  align-items: center;
}
.participant-photo {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  overflow: hidden;
  background: #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
}
.participant-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.participant-placeholder {
  font-weight: 800;
  color: var(--afer-primary);
}
.participant-card:hover {
  box-shadow: 0 12px 28px rgba(12, 35, 64, 0.12);
  transform: translateY(-2px);
}

/* ========================================
   404 PAGE
   ======================================== */
.page-404 {
  position: relative;
  padding: 172px 0 88px;
  text-align: center;
  background:
    radial-gradient(
      circle at 14% 18%,
      rgba(230, 184, 0, 0.16),
      transparent 36%
    ),
    radial-gradient(circle at 84% 12%, rgba(12, 35, 64, 0.14), transparent 34%),
    #f4f7fc;
  overflow: hidden;
}
.page-404::before {
  content: "";
  position: absolute;
  inset: auto auto -18% 44%;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(12, 35, 64, 0.18), transparent 72%);
  filter: blur(12px);
  pointer-events: none;
}
.page-404 .container {
  position: relative;
  z-index: 1;
}
.notfound-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-inline: auto;
  width: min(960px, 100%);
  background: linear-gradient(180deg, #ffffff, #f9fbff);
  color: var(--text);
  border: 1px solid rgba(12, 35, 64, 0.1);
  border-radius: 24px;
  padding: 34px 30px 30px;
  box-shadow: 0 24px 50px rgba(12, 35, 64, 0.18);
  text-align: center;
}
.nf-kicker {
  margin: 0;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: #c02633;
}
.nf-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 96px;
  min-height: 44px;
  margin-top: 8px;
  border-radius: 999px;
  padding: 0 16px;
  font-size: 30px;
  font-weight: 900;
  line-height: 1;
  color: #ffffff;
  background: linear-gradient(135deg, #0c2340, #1b4e88);
  box-shadow: 0 12px 24px rgba(12, 35, 64, 0.3);
}
.notfound-card h1 {
  margin: 14px auto 10px;
  max-width: 20ch;
  font-size: clamp(30px, 4.6vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.02em;
}
.notfound-card .muted {
  margin: 0 auto;
  max-width: 62ch;
  color: #475569;
}
.nf-actions {
  margin-top: 18px;
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}
.nf-links {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.nf-link-card {
  display: grid;
  gap: 4px;
  text-align: center;
  border-radius: 14px;
  border: 1px solid rgba(12, 35, 64, 0.12);
  background: #f8fafd;
  padding: 12px 13px;
  color: #11243f;
  text-decoration: none;
  transition:
    transform 140ms ease,
    box-shadow 140ms ease,
    border-color 140ms ease;
}
.nf-link-card strong {
  font-size: 14px;
  color: #0f2747;
}
.nf-link-card span {
  font-size: 12px;
  color: #51627a;
}
.nf-link-card:hover,
.nf-link-card:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(12, 35, 64, 0.22);
  box-shadow: 0 10px 20px rgba(12, 35, 64, 0.14);
  text-decoration: none;
}
@media (max-width: 900px) {
  .page-404 {
    padding: 148px 0 72px;
  }
  .notfound-card {
    padding: 28px 20px 24px;
  }
  .nf-links {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 560px) {
  .page-404 {
    padding: 132px 0 62px;
  }
  .nf-badge {
    min-width: 84px;
    min-height: 40px;
    font-size: 26px;
  }
  .nf-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .nf-actions .btn {
    width: 100%;
  }
}

/* ========================================
   AFER1927 PREMIUM LOADER (Pulse default)
   ======================================== */
.afer-loader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  transition:
    opacity 0.6s ease,
    visibility 0.6s ease;
  overflow: hidden;
}
.afer-loader.afer-loader--pulse,
.afer-loader.afer-loader--particles {
  background: linear-gradient(
    135deg,
    var(--afer-primary) 0%,
    var(--afer-primary-soft) 50%,
    var(--afer-primary) 100%
  );
}
.afer-loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.afer-loader__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}
.afer-loader__logo-wrapper {
  position: relative;
}
.afer-loader__logo {
  width: 140px;
  height: auto;
  position: relative;
  animation: logoEntrance 1.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 2;
  will-change: transform, filter;
}
.afer-loader--pulse .afer-loader__logo {
  animation:
    logoEntrance 1.2s cubic-bezier(0.34, 1.56, 0.64, 1),
    logoPulse 2s ease-in-out infinite;
  filter: drop-shadow(0 0 20px rgba(230, 184, 0, 0.6));
}
.afer-loader--particles .afer-loader__logo {
  animation:
    logoEntrance 1.2s cubic-bezier(0.34, 1.56, 0.64, 1),
    logoRotate 20s linear infinite;
}
.afer-loader--bounce .afer-loader__logo {
  animation:
    logoEntrance 1.2s cubic-bezier(0.34, 1.56, 0.64, 1),
    logoBounce 1.5s ease-in-out infinite;
}
.afer-loader--flip .afer-loader__logo {
  animation:
    logoEntrance 1.2s cubic-bezier(0.34, 1.56, 0.64, 1),
    logoFlip 3s ease-in-out infinite;
  transform-style: preserve-3d;
  perspective: 1000px;
}
.afer-loader__particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.afer-loader__particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: rgba(230, 184, 0, 0.8);
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(230, 184, 0, 0.6);
  animation: particleFloat 4s ease-in-out infinite;
}
.afer-loader__particle:nth-child(1) {
  top: 20%;
  left: 20%;
  animation-delay: 0s;
}
.afer-loader__particle:nth-child(2) {
  top: 30%;
  right: 20%;
  animation-delay: 0.5s;
}
.afer-loader__particle:nth-child(3) {
  bottom: 20%;
  left: 30%;
  animation-delay: 1s;
}
.afer-loader__particle:nth-child(4) {
  bottom: 30%;
  right: 25%;
  animation-delay: 1.5s;
}
.afer-loader__particle:nth-child(5) {
  top: 50%;
  left: 15%;
  animation-delay: 2s;
}
.afer-loader__particle:nth-child(6) {
  top: 60%;
  right: 15%;
  animation-delay: 2.5s;
}

.afer-loader__text {
  display: none;
}
.afer-loader__dots {
  display: none;
}
.afer-loader__dots::after {
  display: none;
}
.afer-loader__progress {
  display: none;
}
.afer-loader__progress-bar {
  display: none;
}
.afer-loader__percentage {
  display: none;
}
.afer-loader__burst {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.afer-loader__burst span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 4px;
  height: 4px;
  background: var(--afer-secondary);
  border-radius: 50%;
  opacity: 0;
}
.afer-loader--particles .afer-loader__burst span {
  animation: burst 0.9s ease-out infinite;
}
.afer-loader__burst span:nth-child(odd) {
  animation-delay: 0.1s;
}
.afer-loader__burst span:nth-child(3n) {
  animation-delay: 0.2s;
}
.afer-loader__rugby {
  width: 60px;
  height: 40px;
  background: linear-gradient(135deg, #8b4513 0%, #654321 100%);
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  position: relative;
  animation: rugbyBounce 1s ease-in-out infinite;
}
.afer-loader__rugby::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 20%;
  right: 20%;
  height: 2px;
  background: #fff;
  transform: translateY(-50%);
}
.afer-loader__rugby::after {
  content: "";
  position: absolute;
  top: 30%;
  bottom: 30%;
  left: 50%;
  width: 2px;
  background: #fff;
  transform: translateX(-50%);
}
@keyframes logoEntrance {
  0% {
    opacity: 0;
    transform: scale(0.5) translateY(40px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}
@keyframes logoPulse {
  0%,
  100% {
    transform: scale(1);
    filter: drop-shadow(0 0 20px rgba(230, 184, 0, 0.6));
  }
  50% {
    transform: scale(1.08);
    filter: drop-shadow(0 0 40px rgba(230, 184, 0, 0.9));
  }
}
@keyframes logoRotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
@keyframes particleFloat {
  0%,
  100% {
    transform: translateY(0) scale(1);
    opacity: 0;
  }
  25% {
    opacity: 1;
  }
  50% {
    transform: translateY(-40px) scale(1.2);
    opacity: 0.8;
  }
  75% {
    opacity: 0.4;
  }
}
@keyframes logoBounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}
@keyframes logoFlip {
  0%,
  100% {
    transform: rotateY(0deg);
  }
  50% {
    transform: rotateY(180deg);
  }
}
@keyframes textFade {
  0%,
  100% {
    opacity: 0.4;
  }
  50% {
    opacity: 1;
  }
}
@keyframes dots {
  0%,
  20% {
    content: "";
  }
  40% {
    content: ".";
  }
  60% {
    content: "..";
  }
  80%,
  100% {
    content: "...";
  }
}
@keyframes progressMove {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 200% 50%;
  }
}
@keyframes percentagePulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}
@keyframes rugbyBounce {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  25% {
    transform: translateY(-30px) rotate(180deg);
  }
  50% {
    transform: translateY(0) rotate(360deg);
  }
  75% {
    transform: translateY(-30px) rotate(540deg);
  }
}
@keyframes burst {
  0% {
    transform: translate(0, 0) scale(0.6);
    opacity: 1;
  }
  100% {
    transform: translate(calc(var(--dx, 40px)), calc(var(--dy, -40px))) scale(0);
    opacity: 0;
  }
}
.afer-loader__burst span:nth-child(1) {
  --dx: 40px;
  --dy: -30px;
}
.afer-loader__burst span:nth-child(2) {
  --dx: -35px;
  --dy: 20px;
}
.afer-loader__burst span:nth-child(3) {
  --dx: 20px;
  --dy: -50px;
}
.afer-loader__burst span:nth-child(4) {
  --dx: -45px;
  --dy: -35px;
}
.afer-loader__burst span:nth-child(5) {
  --dx: 50px;
  --dy: 25px;
}
.afer-loader__burst span:nth-child(6) {
  --dx: -25px;
  --dy: -20px;
}
.afer-loader__burst span:nth-child(7) {
  --dx: 15px;
  --dy: 35px;
}
.afer-loader__burst span:nth-child(8) {
  --dx: -10px;
  --dy: 45px;
}
.afer-loader__burst span:nth-child(9) {
  --dx: 60px;
  --dy: -10px;
}
.afer-loader__burst span:nth-child(10) {
  --dx: -60px;
  --dy: 15px;
}
.afer-loader__burst span:nth-child(11) {
  --dx: 30px;
  --dy: 55px;
}
.afer-loader__burst span:nth-child(12) {
  --dx: -20px;
  --dy: 60px;
}
.afer-loader__burst span:nth-child(13) {
  --dx: 35px;
  --dy: -60px;
}
.afer-loader__burst span:nth-child(14) {
  --dx: -55px;
  --dy: -50px;
}
.afer-loader__burst span:nth-child(15) {
  --dx: 25px;
  --dy: 15px;
}
.afer-loader__burst span:nth-child(16) {
  --dx: -15px;
  --dy: -15px;
}
@media (max-width: 640px) {
  .afer-loader__logo {
    width: 100px;
  }
  .afer-loader__text {
    font-size: 14px;
  }
  .afer-loader__progress {
    width: 200px;
  }
  .afer-loader__percentage {
    font-size: 18px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .afer-loader *,
  .afer-loader *::before,
  .afer-loader *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
.notfound-card h1 {
  margin: 12px 0;
}
.nf-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 76px;
  height: 76px;
  border-radius: 18px;
  background: #e84264;
  color: #fff;
  font-weight: 900;
  font-size: 22px;
  box-shadow: 0 12px 28px rgba(232, 66, 100, 0.45);
}
.nf-actions {
  margin-top: 20px;
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ========================================
   PARTNERS SECTION - Elegant Showcase
   ======================================== */
.home-partners {
  padding: 120px 0 140px;
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%);
}
.home-partners .section-head {
  text-align: center;
  margin-bottom: 72px;
}
.partners-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}
.card-partner {
  background: var(--surface);
  border-radius: 24px;
  padding: 44px 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow:
    0 6px 24px rgba(12, 35, 64, 0.04),
    0 0 0 1px rgba(12, 35, 64, 0.04);
  border: 1px solid rgba(12, 35, 64, 0.06);
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  min-height: 220px;
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
}
.card-partner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(230, 184, 0, 0.06) 0%,
    transparent 100%
  );
  opacity: 0;
  transition: opacity 0.5s ease;
}
.card-partner:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow:
    0 20px 60px rgba(12, 35, 64, 0.12),
    0 0 0 1px rgba(230, 184, 0, 0.3);
  border-color: rgba(230, 184, 0, 0.4);
}
.card-partner:hover::before {
  opacity: 1;
}
.card-partner .card-thumb {
  /* width: 100%; */
  max-width: 200px;
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.card-partner:hover .card-thumb {
  transform: scale(1.08);
}
.card-partner .card-thumb img {
  width: 100%;
  height: auto;
  filter: grayscale(30%) opacity(0.85);
  transition: filter 0.4s ease;
}
.card-partner:hover .card-thumb img {
  filter: grayscale(0%) opacity(1);
}
.card-partner .card-title {
  font-size: 19px;
  font-weight: 800;
  color: var(--afer-primary);
  margin: 0 0 12px;
  position: relative;
  z-index: 1;
  letter-spacing: -0.01em;
}
.card-partner .card-link {
  font-size: 14px;
  position: relative;
  z-index: 1;
}
.partners-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 72px;
}

/* Instagram Section */
.instagram-section {
  padding: 90px 0;
  background: #fff;
}
.instagram-section .section-title {
  text-align: center;
  margin-bottom: 32px;
  font-size: clamp(26px, 4vw, 36px);
}
.instagram-feed {
  margin: 0 auto;
  border-radius: 20px;
  background: linear-gradient(
    135deg,
    rgba(12, 35, 64, 0.04),
    rgba(230, 184, 0, 0.08)
  );
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}
/* Ensure CTA text keeps sufficient contrast over plugin background colors. */
.instagram-section #sb_instagram .sbi_follow_btn a {
  background: #174a86 !important;
  color: #ffffff !important;
  border-color: #174a86 !important;
}
.instagram-section #sb_instagram .sbi_follow_btn a:hover,
.instagram-section #sb_instagram .sbi_follow_btn a:focus-visible {
  background: #0f3561 !important;
  border-color: #0f3561 !important;
}
.instagram-section #sb_instagram .sbi_follow_btn a span {
  color: #ffffff !important;
  font-weight: 700;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.section-head-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 260ms ease,
    transform 260ms ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 768px) {
  .home-hero {
    padding-top: 60px;
    background-attachment: scroll;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    min-height: auto;
    align-items: start;
  }
  .hero-next-match .event-banner {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  }
  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }
  .section-head {
    flex-direction: column;
    align-items: flex-start;
  }
  .home-spirit {
    margin-top: -30px;
    padding: 62px 0 28px;
    border-radius: 22px 22px 0 0;
  }
  .home-event {
    padding: 72px 0;
  }
  .home-event .section-head,
  .home-partners .section-head {
    margin-bottom: 36px;
  }
  .events-stack {
    margin-top: 20px;
    gap: 18px;
  }
  .home-event .event-card {
    border-radius: 18px;
  }
  .home-event .event-banner {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 12px;
    padding: 18px 14px 14px;
  }
  .home-event .event-team {
    min-width: 0;
    gap: 10px;
  }
  .home-event .event-logo {
    width: 56px;
    height: 56px;
    border-radius: 14px;
  }
  .home-event .event-logo img {
    padding: 6px;
  }
  .home-event .team-name {
    font-size: 13px;
    line-height: 1.2;
    overflow-wrap: anywhere;
    word-break: break-word;
    text-align: center;
  }
  .home-event .versus {
    font-size: 16px;
    letter-spacing: 0.06em;
    padding: 7px 10px;
    border-radius: 10px;
  }
  .home-event .event-infos {
    padding: 14px;
    gap: 10px;
  }
  .home-event .event-row {
    gap: 8px;
  }
  .home-event .event-row .meta-item {
    width: 100%;
    min-height: 0;
    padding: 8px 10px;
    font-size: 13px;
  }
  .home-event .event-row-actions {
    justify-content: stretch;
  }
  .home-event .event-more-btn {
    width: 100%;
    min-height: 38px;
    font-size: 13px;
  }
  .event-modal {
    padding: 12px;
  }
  .event-modal__dialog {
    padding: 16px;
    border-radius: 16px;
  }
  .event-modal__title {
    padding-right: 38px;
    font-size: 24px;
  }
  .event-modal__meta .meta-item {
    width: 100%;
    justify-content: flex-start;
  }
  .event-modal__map iframe {
    min-height: 250px;
  }
  .event-modal__actions {
    justify-content: stretch;
  }
  .event-modal__maps-link {
    width: 100%;
  }
  .lego-gallery-dense {
    padding: 56px 0;
  }
  .instagram-section {
    padding: 62px 0;
  }
  .home-news {
    padding: 34px 0;
  }
  .home-partners {
    padding: 76px 0 84px;
  }
}
@media (max-width: 520px) {
  .home-spirit {
    margin-top: -22px;
    padding-top: 52px;
  }
  .home-event {
    padding: 60px 0;
  }
  .home-event .event-banner {
    padding: 14px 10px 10px;
    gap: 8px;
  }
  .home-event .event-logo {
    width: 48px;
    height: 48px;
    border-radius: 12px;
  }
  .home-event .team-name {
    font-size: 12px;
  }
  .home-event .versus {
    font-size: 14px;
    padding: 6px 8px;
  }
  .home-event .event-infos {
    padding: 10px;
  }
  .event-modal__dialog {
    padding: 14px;
  }
  .event-modal__title {
    font-size: 20px;
  }
  .event-modal__close {
    width: 32px;
    height: 32px;
    font-size: 20px;
  }
  .event-modal__map iframe {
    min-height: 200px;
  }
  .home-partners {
    padding: 64px 0 72px;
  }
  .home-partners .section-head {
    margin-bottom: 26px;
  }
  .partners-actions {
    margin-top: 34px;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 16px;
  border-radius: 999px;
  font-weight: 700;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition:
    transform 120ms ease,
    box-shadow 120ms ease,
    background 120ms ease;
}
.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
  text-decoration: none;
}
.btn-primary {
  background: var(--afer-primary);
  color: #fff;
}
.btn-secondary {
  background: var(--afer-secondary);
  color: white;
}
.btn-ghost {
  background: #fff;
  border-color: var(--border);
  color: var(--text);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 12px 0 20px;
  align-items: flex-end;
}
.filters label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-weight: 600;
  color: var(--text);
}
.filters select {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  min-width: 180px;
  background: #fff;
}
.news-filters {
  /* align-items: center; */
  gap: 14px;
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px 14px;
  box-shadow: var(--shadow);
}

.afer-form {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}
.field-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.afer-form label {
  display: grid;
  gap: 6px;
  font-weight: 600;
  color: var(--text);
}
.afer-form input,
.afer-form textarea,
.afer-form select {
  padding: 12px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font: inherit;
  background: #fff;
  transition:
    border 120ms ease,
    box-shadow 120ms ease;
}
.afer-form input:focus-visible,
.afer-form textarea:focus-visible,
.afer-form select:focus-visible {
  border-color: var(--afer-primary);
  box-shadow: 0 0 0 3px rgba(12, 35, 64, 0.1);
  outline: 2px solid transparent;
}
.phone-inputs {
  display: grid;
  grid-template-columns: minmax(120px, 0.9fr) minmax(140px, 1.1fr);
  gap: 8px;
}
@media (max-width: 560px) {
  .phone-inputs {
    grid-template-columns: 1fr;
  }
}

.notice {
  padding: 12px 14px;
  border-radius: 10px;
  margin: 10px 0;
}
.notice.success {
  background: #ecfdf3;
  color: #166534;
  border: 1px solid #bbf7d0;
}
.notice.error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecdd3;
}
.notice.info {
  background: #eef2ff;
  color: #3730a3;
  border: 1px solid #c7d2fe;
}

.auth-section {
  position: relative;
  padding: 88px 0;
  background:
    radial-gradient(circle at 12% 16%, rgba(12, 35, 64, 0.08), transparent 32%),
    radial-gradient(circle at 84% 6%, rgba(230, 184, 0, 0.16), transparent 32%),
    #f4f6fb;
  overflow: hidden;
}
body.page-template-page-connexion .auth-section,
body.page-template-templatespage-connexion-php .auth-section,
body.page-id-57 .auth-section {
  padding-top: 154px;
}
.auth-section::before {
  content: "";
  position: absolute;
  inset: auto auto -18% 42%;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(12, 35, 64, 0.2), transparent 70%);
  filter: blur(12px);
  opacity: 0.7;
}
@media (max-width: 768px) {
  body.page-template-page-connexion .auth-section,
  body.page-template-templatespage-connexion-php .auth-section,
  body.page-id-57 .auth-section {
    padding-top: 124px;
  }
}
.auth-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.auth-intro {
  display: grid;
  gap: 14px;
}
.auth-intro .page-title {
  margin: 0;
  line-height: 1.08;
  color: var(--afer-primary);
}
.auth-intro .pill {
  width: fit-content;
  justify-self: start;
}
.auth-intro .lead {
  margin: 0;
  max-width: 62ch;
  color: #334155;
  font-size: clamp(16px, 2.3vw, 19px);
}
.auth-context {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.auth-context-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 11px;
  border-radius: 999px;
  background: rgba(12, 35, 64, 0.08);
  border: 1px solid rgba(12, 35, 64, 0.12);
  color: var(--afer-primary);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.auth-highlights {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 2px;
}
.auth-highlight {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 13px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(12, 35, 64, 0.08);
  box-shadow: 0 10px 24px rgba(12, 35, 64, 0.08);
}
.auth-highlight strong {
  display: block;
  color: #0f2747;
  font-size: 14px;
  line-height: 1.3;
}
.auth-highlight p {
  margin: 3px 0 0;
  color: #475569;
  font-size: 13px;
  line-height: 1.45;
}
.highlight-dot {
  width: 12px;
  height: 12px;
  margin-top: 3px;
  border-radius: 50%;
  background: var(--afer-secondary);
  box-shadow: 0 0 0 5px rgba(230, 184, 0, 0.22);
}
.auth-panel {
  position: relative;
}
.auth-card {
  position: relative;
  background: var(--glass);
  border: 1px solid rgba(12, 35, 64, 0.08);
  border-radius: 16px;
  padding: 22px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  animation: floatUp 0.7s ease;
}
.auth-card h2 {
  margin: 0 0 8px;
}
.auth-card .muted {
  margin: 0 0 12px;
}
.auth-card-head {
  margin-bottom: 12px;
}
#loginform {
  display: grid;
  gap: 12px;
  margin: 8px 0 0;
}
#loginform p {
  margin: 0;
  display: grid;
  gap: 6px;
}
#loginform label {
  font-weight: 700;
  color: var(--text);
}
#loginform input[type="text"],
#loginform input[type="password"] {
  padding: 12px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font: inherit;
  background: #fff;
  transition:
    border 120ms ease,
    box-shadow 120ms ease;
}
#loginform input[type="text"]:focus-visible,
#loginform input[type="password"]:focus-visible {
  border-color: var(--afer-primary);
  box-shadow: 0 0 0 3px rgba(12, 35, 64, 0.1);
  outline: 2px solid transparent;
}
#loginform .forgetmenot {
  display: flex;
  align-items: center;
  gap: 8px;
}
#loginform .button-primary {
  width: 100%;
  border: none;
  padding: 12px;
  border-radius: 12px;
  background: var(--afer-primary);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  transition:
    transform 140ms ease,
    box-shadow 140ms ease,
    background 140ms ease;
}
#loginform .button-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(12, 35, 64, 0.25);
}
.auth-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.auth-links .btn {
  /* margin-left: auto; */
}
@media (max-width: 980px) {
  .auth-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .auth-intro {
    order: 2;
  }
  .auth-panel {
    order: 1;
  }
}
.profile-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 8px;
}
.profile-section {
  position: relative;
  padding: 82px 0;
  background:
    radial-gradient(
      circle at 10% 12%,
      rgba(230, 184, 0, 0.18),
      transparent 32%
    ),
    radial-gradient(circle at 82% 4%, rgba(12, 35, 64, 0.12), transparent 30%),
    #f5f7fb;
  overflow: hidden;
}
.profile-section::before {
  content: "";
  position: absolute;
  inset: auto auto -12% 38%;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(12, 35, 64, 0.2), transparent 68%);
  filter: blur(10px);
  opacity: 0.6;
}
.profile-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 26px;
  align-items: flex-start;
  position: relative;
  z-index: 1;
}
.profile-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.profile-panel {
  display: grid;
  gap: 14px;
}
.profile-card-surface {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(12, 35, 64, 0.08);
  border-radius: 16px;
  padding: 18px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}
.profile-summary {
  display: flex;
  gap: 14px;
  align-items: center;
}
.profile-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
  margin: 14px 0 4px;
}
.stat-chip {
  border-radius: 14px;
  padding: 12px;
  background: linear-gradient(
    135deg,
    rgba(12, 35, 64, 0.08),
    rgba(230, 184, 0, 0.16)
  );
  border: 1px solid rgba(12, 35, 64, 0.12);
  display: grid;
  gap: 4px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.06);
}
.stat-label {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.profile-avatar {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--afer-primary);
  color: #fff;
  font-weight: 800;
  font-size: 20px;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.16);
}
.profile-name {
  margin: 2px 0;
  font-size: 20px;
  font-weight: 800;
}
.profile-hero {
  gap: 12px;
}
.profile-fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
  margin-top: 12px;
}
.profile-field {
  padding: 14px;
  border: 1px solid rgba(12, 35, 64, 0.12);
  border-radius: 14px;
  background: linear-gradient(135deg, #ffffff, #f8fbff);
  display: grid;
  gap: 6px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.04);
}
.profile-field span {
  color: var(--muted);
  font-size: 13px;
}
.profile-field strong {
  font-size: 16px;
  color: var(--text);
}
.profile-field-social .profile-social-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.profile-field-social .profile-social-link {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  border: 1px solid transparent;
  box-shadow: 0 8px 18px rgba(12, 35, 64, 0.16);
  transition:
    transform 140ms ease,
    box-shadow 140ms ease,
    filter 140ms ease;
}
.profile-field-social .profile-social-link:hover,
.profile-field-social .profile-social-link:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 12px 22px rgba(12, 35, 64, 0.2);
  filter: brightness(1.05);
  text-decoration: none;
}
.profile-field-social .profile-social-facebook {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
}
.profile-field-social .profile-social-instagram {
  background: linear-gradient(135deg, #f97316, #ec4899);
}
.profile-edit {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  display: grid;
  gap: 12px;
}

.profile-edit h3 {
  margin: 0;
}
.profile-edit .btn {
  justify-self: start;
}

.profile-edit-form {
  display: grid;
  gap: 14px;
}
.profile-field-block {
  display: grid;
  gap: 8px;
}
.profile-field-block textarea {
  width: 100%;
  min-height: 120px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  font: inherit;
  background: #fff;
  resize: vertical;
}
.profile-field-block textarea:focus-visible,
.profile-field-block select:focus-visible,
.profile-field-block input[type="number"]:focus-visible,
.measure-card input:focus-visible,
.measure-card select:focus-visible {
  border-color: var(--afer-primary);
  box-shadow: 0 0 0 3px rgba(12, 35, 64, 0.1);
  outline: 2px solid transparent;
}
.profile-field-block select,
.profile-field-block input[type="number"] {
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  font: inherit;
  background: #fff;
}
.profile-measures {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  justify-items: stretch;
}
.measure-card {
  display: grid;
  gap: 6px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(12, 35, 64, 0.12);
  background: linear-gradient(135deg, #ffffff, #f5f7fb);
  box-shadow:
    0 10px 26px rgba(0, 0, 0, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}
.measure-card input {
  width: 100%;
  background: #fff;
  border-radius: 10px;
  border: 1px solid var(--border);
  padding: 10px;
}
.measure-card select {
  width: 100%;
  background: #fff;
  border-radius: 10px;
  border: 1px solid var(--border);
  padding: 10px;
}
.measure-label {
  font-weight: 600;
  color: var(--text);
}
.profile-field-inline {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.profile-field-inline label {
  display: grid;
  gap: 6px;
}
.profile-field-inline input {
  background: linear-gradient(135deg, #ffffff, #f7f9fc);
  border: 1px solid rgba(12, 35, 64, 0.08);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.04) inset;
}
.profile-public-toggle {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(12, 35, 64, 0.14);
  border-radius: 14px;
  background: linear-gradient(145deg, #ffffff, #f8fbff);
  box-shadow: 0 10px 20px rgba(12, 35, 64, 0.06);
  width: 100%;
  cursor: pointer;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}
.profile-public-toggle:hover {
  border-color: rgba(12, 35, 64, 0.24);
  box-shadow: 0 14px 26px rgba(12, 35, 64, 0.1);
  transform: translateY(-1px);
}
.profile-public-toggle-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.profile-public-toggle-ui {
  position: relative;
  width: 48px;
  height: 28px;
  border-radius: 999px;
  background: #cbd5e1;
  box-shadow: inset 0 2px 5px rgba(12, 35, 64, 0.18);
  transition: background 180ms ease;
}
.profile-public-toggle-ui::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(12, 35, 64, 0.24);
  transition: transform 180ms ease;
}
.profile-public-toggle-copy {
  display: grid;
  gap: 2px;
}
.profile-public-toggle-copy strong {
  color: #0f172a;
  font-size: 14px;
  line-height: 1.3;
}
.profile-public-toggle-copy small {
  color: #64748b;
  font-size: 12px;
  line-height: 1.3;
}
.profile-public-toggle-input:checked + .profile-public-toggle-ui {
  background: linear-gradient(135deg, #0c2340, #1a3b6b);
}
.profile-public-toggle-input:checked + .profile-public-toggle-ui::after {
  transform: translateX(20px);
}
.profile-public-toggle-input:focus-visible + .profile-public-toggle-ui {
  outline: 2px solid rgba(12, 35, 64, 0.3);
  outline-offset: 2px;
}
.profile-submit {
  width: 100%;
  min-height: 46px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: linear-gradient(135deg, #0c2340, #1a3b6b);
  box-shadow:
    0 14px 28px rgba(12, 35, 64, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.profile-submit:hover,
.profile-submit:focus-visible {
  background: linear-gradient(135deg, #102f52, #1f4b80);
  box-shadow:
    0 18px 32px rgba(12, 35, 64, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.24);
}
.profile-field-inline input[type="date"] {
  color: var(--text);
}
.profile-field-inline input[type="number"]::-webkit-inner-spin-button,
.profile-field-inline input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.profile-field-inline input[type="number"] {
  appearance: textfield;
}

/* Modal profil */
.profile-edit-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}
.profile-edit-modal.open {
  display: flex;
}
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}
.modal-panel {
  position: relative;
  background: #fff;
  border-radius: 18px;
  padding: 22px;
  max-width: 780px;
  width: min(90vw, 780px);
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 24px 60px rgba(12, 35, 64, 0.35);
  z-index: 1;
}
.modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: rgba(12, 35, 64, 0.08);
  border: 1px solid rgba(12, 35, 64, 0.12);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.modal-close:hover {
  background: rgba(12, 35, 64, 0.14);
}
.modal-close:focus-visible {
  outline: 2px solid var(--afer-secondary);
  outline-offset: 2px;
}
body.modal-open {
  overflow: hidden;
}
.profile-photo-field {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  align-items: center;
}
.profile-photo-preview {
  justify-self: end;
  background: #f1f5f9;
  border-radius: 14px;
  padding: 10px;
  border: 1px solid var(--border);
  min-height: 120px;
  min-width: 120px;
  display: grid;
  place-items: center;
}
.profile-photo-preview img {
  max-width: 140px;
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}
.profile-edit .btn-primary,
.profile-submit {
  width: 100%;
}
.profile-positions {
  display: grid;
  gap: 10px;
}
.position-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.position-pill {
  position: relative;
}
.position-pill input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.position-pill span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 12px;
  border-radius: 12px;
  border: 1px dashed var(--border);
  background: #f8fafc;
  color: var(--text);
  transition: all 0.2s ease;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.04);
}
.position-pill input:checked + span {
  background: linear-gradient(
    135deg,
    rgba(12, 35, 64, 0.08),
    rgba(230, 184, 0, 0.16)
  );
  border-color: rgba(12, 35, 64, 0.25);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.08);
}
@media (max-width: 900px) {
  .profile-section {
    padding-top: 104px;
  }
  .profile-fields {
    grid-template-columns: 1fr;
  }
  .profile-photo-preview {
    justify-self: start;
  }
}
@media (max-width: 640px) {
  .profile-section {
    padding: 118px 0 56px;
  }
  .profile-card,
  .profile-card-surface {
    padding: 14px;
  }
  .profile-summary {
    flex-direction: column;
    align-items: flex-start;
  }
  .profile-avatar {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    font-size: 18px;
  }
  .profile-public-toggle {
    width: 100%;
    padding: 11px 12px;
  }
  .profile-photo-field {
    grid-template-columns: 1fr;
  }
  .profile-photo-preview {
    min-height: 96px;
    min-width: 96px;
  }
  .profile-measures {
    grid-template-columns: 1fr;
  }
  .modal-panel {
    width: min(96vw, 780px);
    padding: 16px 14px;
  }
}
.role-badge {
  border: 1px solid transparent;
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.22);
  box-shadow:
    0 10px 18px rgba(12, 35, 64, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}
.role-badge-admin {
  background: linear-gradient(135deg, #5b0f16 0%, #8b1b2b 52%, #d12f49 100%);
  border-color: rgba(255, 184, 196, 0.3);
}
.role-badge-afer-admin {
  background: linear-gradient(135deg, #0c2340 0%, #15345f 52%, #d4a400 100%);
  border-color: rgba(255, 224, 130, 0.38);
}
.role-badge-member {
  background: linear-gradient(135deg, #0c4c43 0%, #0f766e 58%, #18b3a5 100%);
  border-color: rgba(132, 236, 220, 0.36);
}
.role-badge-pending {
  background: linear-gradient(135deg, #7a3b10 0%, #b7611b 55%, #f2a43b 100%);
  border-color: rgba(255, 223, 163, 0.36);
}
.role-badge-default {
  background: linear-gradient(135deg, #354458 0%, #4b5f78 55%, #7c91ad 100%);
  border-color: rgba(193, 208, 226, 0.34);
}

/* ========================================
   MON PROFIL REFRESH
   ======================================== */
.profile-section {
  padding: 126px 0 72px;
  background:
    radial-gradient(circle at 8% 10%, rgba(230, 184, 0, 0.2), transparent 34%),
    radial-gradient(circle at 86% 8%, rgba(12, 35, 64, 0.16), transparent 36%),
    linear-gradient(180deg, #f4f7fc 0%, #eef3fa 100%);
}
.profile-layout {
  max-width: 1120px;
  margin: 0 auto;
}
.profile-panel {
  gap: 18px;
}
.profile-hero {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  padding: 24px 24px 20px;
  color: #e7eefb;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    radial-gradient(
      circle at 80% -10%,
      rgba(230, 184, 0, 0.25),
      transparent 40%
    ),
    linear-gradient(132deg, #0c2340, #1a3b6b 58%, #1f4e83);
  box-shadow: 0 24px 42px rgba(12, 35, 64, 0.28);
}
.profile-hero .eyebrow {
  color: rgba(255, 255, 255, 0.72);
}
.profile-hero .page-title {
  color: #ffffff;
  margin: 0 0 10px;
  font-size: clamp(34px, 4.2vw, 52px);
  letter-spacing: -0.02em;
}
.profile-hero .lead {
  max-width: 64ch;
  margin: 0;
  color: rgba(235, 244, 255, 0.88);
}
.profile-meta {
  margin-top: 14px;
}
.profile-meta .pill {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.2);
  color: #f8fbff;
}
.profile-meta .pill-ghost {
  background: rgba(12, 35, 64, 0.36);
}
.profile-meta .pill.role-badge {
  color: #fff;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.22);
  box-shadow:
    0 10px 18px rgba(12, 35, 64, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}
.profile-meta .pill.role-badge.role-badge-admin {
  background: linear-gradient(135deg, #5b0f16 0%, #8b1b2b 52%, #d12f49 100%);
  border-color: rgba(255, 184, 196, 0.3);
}
.profile-meta .pill.role-badge.role-badge-afer-admin {
  background: linear-gradient(135deg, #0c2340 0%, #15345f 52%, #d4a400 100%);
  border-color: rgba(255, 224, 130, 0.38);
}
.profile-meta .pill.role-badge.role-badge-member {
  background: linear-gradient(135deg, #0c4c43 0%, #0f766e 58%, #18b3a5 100%);
  border-color: rgba(132, 236, 220, 0.36);
}
.profile-meta .pill.role-badge.role-badge-pending {
  background: linear-gradient(135deg, #7a3b10 0%, #b7611b 55%, #f2a43b 100%);
  border-color: rgba(255, 223, 163, 0.36);
}
.profile-meta .pill.role-badge.role-badge-default {
  background: linear-gradient(135deg, #354458 0%, #4b5f78 55%, #7c91ad 100%);
  border-color: rgba(193, 208, 226, 0.34);
}
.profile-card-surface {
  border-radius: 20px;
  border: 1px solid rgba(12, 35, 64, 0.1);
  box-shadow: 0 18px 36px rgba(12, 35, 64, 0.12);
  backdrop-filter: blur(12px);
}
.profile-actions-compact {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  width: fit-content;
  max-width: 100%;
}
.profile-actions-compact .btn {
  min-height: 40px;
  padding-inline: 14px;
}
.profile-main-card {
  gap: 18px;
}
.profile-summary {
  align-items: center;
  gap: 16px;
}
.profile-avatar {
  width: 76px;
  height: 76px;
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(135deg, #0c2340, #1a3b6b);
  border: 1px solid rgba(12, 35, 64, 0.16);
}
.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.profile-summary-main {
  display: grid;
  gap: 6px;
}
.profile-name {
  margin: 0;
  font-size: clamp(26px, 3vw, 34px);
  line-height: 1.05;
}
.profile-subline {
  margin: 0;
  color: #334155;
  font-size: 15px;
  font-weight: 600;
}
.profile-summary-social {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 2px;
}
.profile-summary-social .profile-social-link {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow:
    0 7px 16px rgba(12, 35, 64, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
  transition:
    transform 140ms ease,
    box-shadow 140ms ease,
    filter 140ms ease;
}
.profile-summary-social .profile-social-link:hover,
.profile-summary-social .profile-social-link:focus-visible {
  transform: translateY(-2px);
  box-shadow:
    0 12px 24px rgba(12, 35, 64, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
  filter: brightness(1.06);
  text-decoration: none;
}
.profile-summary-social .profile-social-facebook {
  background: linear-gradient(135deg, #2b66f0, #1a46b8);
}
.profile-summary-social .profile-social-instagram {
  background: linear-gradient(135deg, #f97316, #ec4899);
}
.profile-summary-social .profile-social-linkedin {
  background: linear-gradient(135deg, #0a66c2, #004182);
}
.profile-actions-inline {
  margin-top: 4px;
}
.profile-stats {
  margin: 0;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
.stat-chip {
  min-height: 78px;
  border-radius: 14px;
  border: 1px solid rgba(12, 35, 64, 0.12);
  background: linear-gradient(140deg, #f8fbff, #edf3fb);
  box-shadow: none;
}
.stat-chip strong {
  font-size: 18px;
  line-height: 1.15;
  color: #0b2340;
}
.profile-sections-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.profile-info-card {
  border: 1px solid rgba(12, 35, 64, 0.11);
  border-radius: 16px;
  background: linear-gradient(140deg, #ffffff, #f7faff);
  padding: 14px;
  display: grid;
  gap: 10px;
}
.profile-info-card h3 {
  margin: 0;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #44556f;
}
.profile-info-card .profile-fields {
  margin: 0;
  grid-template-columns: 1fr;
  gap: 8px;
}
.profile-field {
  padding: 11px 12px;
  border-radius: 12px;
  border: 1px solid rgba(12, 35, 64, 0.08);
  background: #ffffff;
  box-shadow: none;
}
.profile-field span {
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.profile-field strong {
  font-size: 15px;
  line-height: 1.28;
}
.profile-story {
  border: 1px solid rgba(12, 35, 64, 0.11);
  border-radius: 16px;
  background: #fbfdff;
  padding: 14px;
}
.profile-story p {
  margin: 0;
}
.profile-story p + p {
  margin-top: 10px;
}
.profile-edit {
  margin-top: 0;
  padding: 14px 14px 0;
  border-top: 1px solid rgba(12, 35, 64, 0.12);
}
.profile-edit h3 {
  margin: 0;
  font-size: 18px;
}
.profile-edit-lead {
  margin: 0;
  color: #596b82;
  font-size: 14px;
}
.profile-edit .btn {
  min-height: 42px;
}
.profile-edit-form {
  gap: 12px;
}
.measure-card {
  box-shadow: none;
}
.measure-card input,
.measure-card select,
.profile-field-block textarea {
  min-height: 42px;
}
.profile-field-block textarea {
  min-height: 108px;
}
.modal-panel {
  border: 1px solid rgba(12, 35, 64, 0.16);
  box-shadow: 0 26px 62px rgba(12, 35, 64, 0.33);
}
.modal-panel h3 {
  margin: 0 0 4px;
  font-size: clamp(22px, 3vw, 28px);
}
@media (max-width: 1100px) {
  .profile-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 900px) {
  .profile-section {
    padding-top: 120px;
  }
  .profile-sections-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 760px) {
  .profile-section {
    padding: 118px 0 56px;
  }
  .profile-hero {
    border-radius: 18px;
    padding: 18px 16px;
  }
  .profile-hero .page-title {
    font-size: clamp(30px, 9vw, 38px);
  }
  .profile-card-surface {
    border-radius: 16px;
    padding: 14px;
  }
  .profile-summary {
    flex-direction: row;
    align-items: center;
  }
  .profile-avatar {
    width: 64px;
    height: 64px;
    border-radius: 16px;
  }
  .profile-name {
    font-size: 25px;
  }
  .profile-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .profile-field strong {
    overflow-wrap: anywhere;
  }
}
@media (max-width: 520px) {
  .profile-actions-compact {
    width: 100%;
  }
  .profile-actions-compact .btn {
    width: 100%;
    justify-content: center;
  }
  .profile-meta {
    gap: 8px;
  }
  .profile-meta .pill {
    width: 100%;
    justify-content: center;
  }
  .profile-stats {
    grid-template-columns: 1fr;
  }
  .profile-summary {
    flex-direction: row;
    align-items: center;
  }
  .profile-avatar {
    width: 58px;
    height: 58px;
  }
}

.site-footer {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: #dbe6f8;
  padding: 66px 0 24px;
  border-top: 1px solid rgba(230, 184, 0, 0.3);
  background: linear-gradient(180deg, #0b1a34 0%, #08162d 100%);
}
.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(230, 184, 0, 0.92) 36%,
    rgba(56, 189, 248, 0.82) 64%,
    transparent 100%
  );
}
.site-footer::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(
      circle at 15% 22%,
      rgba(230, 184, 0, 0.09),
      transparent 45%
    ),
    radial-gradient(circle at 86% 8%, rgba(96, 165, 250, 0.09), transparent 42%);
}
.footer-highlight {
  display: none;
}
.site-footer .container {
  position: relative;
  z-index: 1;
}
.footer-flex {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.9fr);
  gap: 40px;
  align-items: start;
  margin-bottom: 18px;
}
.footer-left {
  display: grid;
  gap: 14px;
}
.footer-brand {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 14px;
}
.footer-logo {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.16),
    rgba(255, 255, 255, 0.05)
  );
  border: 1px solid rgba(255, 255, 255, 0.26);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.24);
}
.footer-logo-img {
  max-width: 48px;
  height: auto;
  filter: drop-shadow(0 7px 12px rgba(0, 0, 0, 0.24));
}
.footer-logo-text {
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: #ffffff;
}
.footer-meta h3 {
  margin: 0;
  font-size: 24px;
  letter-spacing: -0.01em;
  color: #ffffff;
}
.footer-tagline {
  margin: 4px 0 0;
  max-width: 42ch;
  color: #afc0db;
  line-height: 1.45;
}
.footer-social-under {
  margin-top: 4px;
}
.site-footer .social-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
}
.site-footer .social-pill {
  --social-glow: 148, 163, 184;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #eaf2ff;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.03);
  transition:
    transform 140ms ease,
    box-shadow 140ms ease,
    border-color 150ms ease,
    background 150ms ease;
}
.site-footer .social-pill:hover,
.site-footer .social-pill:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(var(--social-glow), 0.68);
  background: rgba(255, 255, 255, 0.11);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.22);
  text-decoration: none;
}
.site-footer .social-icon-wrap {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  display: grid;
  place-items: center;
}
.site-footer .social-icon-wrap svg {
  display: block;
}
.site-footer .social-instagram {
  --social-glow: 236, 72, 153;
}
.site-footer .social-facebook {
  --social-glow: 59, 130, 246;
}
.site-footer .social-youtube {
  --social-glow: 239, 68, 68;
}
.footer-address {
  margin: 0;
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  white-space: pre-line;
  color: #dce7f9;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  padding: 7px 10px;
  line-height: 1.4;
}
.footer-contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.footer-contact-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: fit-content;
  max-width: 100%;
  border-radius: 999px;
  padding: 6px 10px;
  color: #eff4ff;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.04);
  text-decoration: none;
  transition:
    transform 140ms ease,
    border-color 140ms ease,
    background 140ms ease;
}
.footer-contact-link:hover,
.footer-contact-link:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.1);
  text-decoration: none;
}
.footer-contact-icon {
  width: 20px;
  height: 20px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
}
.footer-contact-meta {
  display: inline-flex;
  min-width: 0;
}
.footer-contact-value {
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.25;
  overflow-wrap: break-word;
}
.footer-right {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.footer-box {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.footer-links-box {
  display: grid;
  gap: 6px;
}
.footer-box h4 {
  margin: 0 0 8px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #facc15;
}
.footer-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 4px;
}
.footer-menu a {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  width: fit-content;
  max-width: 100%;
  padding: 0;
  color: #e2ecff;
  font-weight: 600;
  border-bottom: 1px solid transparent;
  transition:
    color 140ms ease,
    border-color 140ms ease,
    transform 140ms ease;
}
.footer-links a:hover,
.footer-links a:focus-visible {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateX(2px);
  text-decoration: none;
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  padding-top: 12px;
  color: #aebed8;
  font-size: 12.5px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

@media (max-width: 1020px) {
  .footer-flex {
    grid-template-columns: 1fr;
  }
  .footer-right {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 760px) {
  .site-footer {
    padding: 56px 0 24px;
  }
  .footer-right {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    justify-content: center;
    text-align: center;
  }
}
@media (max-width: 520px) {
  .footer-brand {
    grid-template-columns: auto minmax(0, 1fr);
    justify-items: start;
  }
  .footer-logo {
    width: 56px;
    height: 56px;
  }
  .footer-logo-img {
    max-width: 42px;
  }
  .footer-contact-link {
    width: 100%;
    justify-content: flex-start;
  }
}

.afer-pagination {
  margin: 22px 0;
  text-align: center;
}
.afer-pagination ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: inline-flex;
  gap: 6px;
}
.afer-pagination a,
.afer-pagination span {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fff;
}
.afer-pagination .current {
  background: var(--afer-primary);
  color: #fff;
  border-color: var(--afer-primary);
}

.account-link {
  margin-left: 6px;
}

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

.partner-level,
.news-grid .card,
.news-archive-grid .card {
  animation: floatUp 0.6s ease;
}

@media (max-width: 1100px) {
  .grid,
  .grid-partenaires,
  .grid-partners,
  .grid-members,
  .news-grid,
  .news-archive-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .grid,
  .grid-partenaires,
  .grid-partners,
  .grid-members,
  .news-grid,
  .news-archive-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .nav-toggle {
    display: inline-flex;
  }
  .primary-nav {
    position: absolute;
    top: 76px;
    right: 4vw;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px;
    flex-direction: column;
    align-items: flex-start;
    min-width: 240px;
    display: none;
    box-shadow: var(--shadow);
    opacity: 0;
    transform: translateY(-8px);
    transition:
      opacity 160ms ease,
      transform 160ms ease;
  }
  .primary-nav.open {
    display: flex;
    opacity: 1;
    transform: translateY(0);
  }
  .primary-nav .menu {
    flex-direction: column;
    width: 100%;
  }
  .header-ctas,
  .account-link {
    flex-direction: column;
    width: 100%;
    align-items: stretch;
  }
  .account-btn {
    width: 100%;
    justify-content: center;
  }
  .section-head {
    flex-direction: column;
    align-items: flex-start;
  }
  .archive-content {
    margin-top: 0;
  }
  .archive-hero {
    padding: 62px 0 42px;
  }
  .auth-section {
    padding: 64px 0;
  }
  .auth-links {
    flex-direction: column;
    align-items: flex-start;
  }
  .auth-links .btn {
    width: 100%;
    margin-left: 0;
    justify-content: center;
  }
}

.partner-section {
  position: relative;
  isolation: isolate;
  padding: 124px 0 96px;
  background:
    radial-gradient(
      circle at 10% 14%,
      rgba(230, 184, 0, 0.2),
      transparent 34%
    ),
    radial-gradient(
      circle at 88% 4%,
      rgba(12, 35, 64, 0.16),
      transparent 36%
    ),
    linear-gradient(180deg, #f4f7fd 0%, #ecf2fb 100%);
  overflow: hidden;
}
body.page-template-page-rejoindre .partner-section,
body.page-template-templatespage-rejoindre-php .partner-section,
body.page-id-44 .partner-section {
  padding-top: 160px;
}
@media (max-width: 900px) {
  .partner-section {
    padding: 108px 0 76px;
  }
  body.page-template-page-rejoindre .partner-section,
  body.page-template-templatespage-rejoindre-php .partner-section,
  body.page-id-44 .partner-section {
    padding-top: 136px;
  }
}
@media (max-width: 600px) {
  .partner-section {
    padding: 98px 0 62px;
  }
  body.page-template-page-rejoindre .partner-section,
  body.page-template-templatespage-rejoindre-php .partner-section,
  body.page-id-44 .partner-section {
    padding-top: 122px;
  }
}
.partner-section::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.28),
      transparent 36%,
      rgba(12, 35, 64, 0.04) 72%
    ),
    radial-gradient(
      circle at 48% 104%,
      rgba(12, 35, 64, 0.2),
      transparent 34%
    );
}
.partner-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 30px;
  align-items: start;
  position: relative;
  z-index: 1;
}
.partner-copy {
  display: grid;
  gap: 14px;
  align-content: start;
}
.partner-copy .page-title {
  margin: 0;
  max-width: 16ch;
  font-size: clamp(34px, 4.4vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: #0e223f;
}
.partner-copy .lead {
  margin: 0;
  max-width: 58ch;
  color: #445875;
  line-height: 1.65;
}
.partner-benefits {
  display: grid;
  gap: 12px;
  margin: 10px 0 8px;
}
.benefit {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
  padding: 14px 15px;
  border-radius: 16px;
  background: linear-gradient(145deg, #ffffff, #f8fbff);
  border: 1px solid rgba(12, 35, 64, 0.1);
  box-shadow: 0 14px 28px rgba(12, 35, 64, 0.08);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}
.benefit:hover {
  transform: translateY(-2px);
  border-color: rgba(12, 35, 64, 0.2);
  box-shadow: 0 18px 34px rgba(12, 35, 64, 0.12);
}
.highlight-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  margin-top: 7px;
  background: linear-gradient(135deg, #d4a400, #f2c94c);
  box-shadow:
    0 0 0 5px rgba(230, 184, 0, 0.16),
    0 0 0 10px rgba(230, 184, 0, 0.08);
}
.benefit-title {
  margin: 0 0 4px;
  font-weight: 800;
  color: #122a4a;
  letter-spacing: -0.01em;
}
.benefit .muted {
  margin: 0;
  color: #52647d;
}
.partner-visual {
  margin-top: 8px;
}
.partner-visual-card {
  position: relative;
  overflow: hidden;
  padding: 16px 16px;
  border-radius: 16px;
  background: linear-gradient(
    135deg,
    rgba(12, 35, 64, 0.94) 0%,
    rgba(25, 58, 104, 0.94) 62%,
    rgba(11, 31, 56, 0.96) 100%
  );
  color: #e5ecf7;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 20px 42px rgba(8, 24, 45, 0.24);
  display: grid;
  gap: 8px;
}
.partner-visual-card::before {
  content: "";
  position: absolute;
  inset: -30% auto auto 62%;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(230, 184, 0, 0.24), transparent 66%);
  pointer-events: none;
}
.partner-visual-card .muted {
  margin: 0;
  color: #d7e1f0;
}
.partner-panel {
  position: sticky;
  top: 128px;
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.95), rgba(246, 250, 255, 0.93));
  border: 1px solid rgba(12, 35, 64, 0.12);
  border-radius: 20px;
  padding: 22px;
  box-shadow: 0 24px 46px rgba(12, 35, 64, 0.14);
  backdrop-filter: blur(10px);
}
.partner-panel .notice {
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 12px;
}
.partner-panel .notice p {
  margin: 0;
}
.partner-panel .notice p + p {
  margin-top: 6px;
}
.partner-form {
  display: grid;
  gap: 15px;
}
.partner-form label {
  display: grid;
  gap: 6px;
  font-weight: 700;
  color: #142e50;
  font-size: 14px;
  letter-spacing: 0.01em;
}
.partner-form input,
.partner-form select,
.partner-form textarea {
  min-height: 46px;
  padding: 12px 13px;
  border-radius: 12px;
  border: 1px solid rgba(12, 35, 64, 0.12);
  font: inherit;
  background: linear-gradient(145deg, #ffffff, #f8fbff);
  box-shadow:
    inset 0 1px 2px rgba(12, 35, 64, 0.06),
    0 1px 0 rgba(255, 255, 255, 0.75);
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    background-color 160ms ease;
}
.partner-form input:focus-visible,
.partner-form select:focus-visible,
.partner-form textarea:focus-visible {
  border-color: rgba(12, 35, 64, 0.42);
  box-shadow: 0 0 0 3px rgba(12, 35, 64, 0.12);
  outline: 2px solid transparent;
  background: #ffffff;
}
.partner-form textarea {
  resize: vertical;
  min-height: 130px;
}
.partner-form .field-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}
.partner-form .field-grid label {
  height: 100%;
}
.partner-form select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, #0c2340 50%),
    linear-gradient(135deg, #0c2340 50%, transparent 50%);
  background-position:
    calc(100% - 18px) calc(50% - 2px),
    calc(100% - 12px) calc(50% - 2px);
  background-size:
    6px 6px,
    6px 6px;
  background-repeat: no-repeat;
}
.partner-form button[disabled] {
  opacity: 0.7;
  cursor: not-allowed;
}
.partner-form .btn-primary {
  min-height: 48px;
  border-radius: 13px;
  font-size: 15px;
  font-weight: 800;
  background: linear-gradient(135deg, #0c2340, #1a3b6b);
  box-shadow:
    0 14px 26px rgba(12, 35, 64, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.partner-form .btn-primary:hover,
.partner-form .btn-primary:focus-visible {
  background: linear-gradient(135deg, #13325a, #1f4d87);
  box-shadow:
    0 18px 30px rgba(12, 35, 64, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.24);
}
@media (max-width: 1024px) {
  .partner-layout {
    grid-template-columns: 1fr;
  }
  .partner-panel {
    position: static;
    top: auto;
  }
  .partner-copy .page-title {
    max-width: 18ch;
  }
}
@media (max-width: 680px) {
  .partner-copy .page-title {
    font-size: clamp(30px, 9vw, 42px);
  }
  .partner-panel {
    border-radius: 16px;
    padding: 16px 14px;
  }
  .partner-visual-card {
    padding: 14px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .benefit,
  .partner-form input,
  .partner-form select,
  .partner-form textarea {
    transition: none;
  }
}

/* ========================================
   MEMBER SINGLE
   ======================================== */
.member-single {
  padding: 110px 0 30px;
}
.member-hero {
  display: grid;
  grid-template-columns: minmax(240px, 320px) 1fr;
  gap: 32px;
  align-items: center;
  margin-bottom: 40px;
}
.member-visual {
  /* background: var(--surface); */
  /* border: 1px solid var(--border); */
  border-radius: 20px;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  /* box-shadow: 0 10px 30px rgba(12, 35, 64, 0.08); */
}
.member-visual--placeholder {
  /* background:
    radial-gradient(circle at 18% 20%, rgba(230, 184, 0, 0.2), transparent 42%),
    linear-gradient(145deg, rgba(12, 35, 64, 0.1), rgba(26, 59, 107, 0.08)); */
}
.member-visual .hero-avatar {
  width: min(100%, 240px);
  aspect-ratio: 1 / 1;
  border-radius: 22px;
  margin: 0;
  background: linear-gradient(145deg, #0c2340, #1f4b80);
  color: #f8fafc;
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow:
    0 14px 34px rgba(12, 35, 64, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.24);
  font-size: clamp(48px, 7vw, 76px);
  letter-spacing: 0.08em;
  font-weight: 900;
}
.member-visual img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  object-fit: cover;
}
.member-hero-copy h1 {
  margin: 6px 0;
}
.member-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}
.member-socials {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}
.member-social-link {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow:
    0 9px 20px rgba(12, 35, 64, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  transition:
    transform 140ms ease,
    box-shadow 140ms ease,
    filter 140ms ease;
}
.member-social-link:hover,
.member-social-link:focus-visible {
  transform: translateY(-2px);
  box-shadow:
    0 14px 26px rgba(12, 35, 64, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
  filter: brightness(1.05);
  text-decoration: none;
}
.member-social-link:focus-visible {
  outline: 2px solid rgba(12, 35, 64, 0.2);
  outline-offset: 2px;
}
.member-social-facebook {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
}
.member-social-instagram {
  background: linear-gradient(135deg, #fb7185, #f97316 55%, #7c3aed);
}
.member-social-linkedin {
  background: linear-gradient(135deg, #0a66c2, #004182);
}
.member-body {
  display: grid;
  gap: 32px;
}
.member-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 6px 20px rgba(12, 35, 64, 0.05);
}
.member-videos {
  display: grid;
  gap: 20px;
}
.member-video .video-frame {
  position: relative;
  padding-top: 56.25%;
  border-radius: 16px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}
.member-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
@media (max-width: 900px) {
  .member-hero {
    grid-template-columns: 1fr;
  }
  .member-visual .hero-avatar {
    width: min(100%, 220px);
    font-size: clamp(42px, 12vw, 64px);
  }
  .member-social-link {
    width: 38px;
    height: 38px;
  }
}

/* Past Event single - light skin */
.single-past-event {
  --glass: rgba(12, 35, 64, 0.05);
  padding: 118px 0 80px;
  background:
    radial-gradient(
      circle at 20% 20%,
      rgba(230, 184, 0, 0.08),
      transparent 38%
    ),
    radial-gradient(circle at 80% 0%, rgba(12, 35, 64, 0.08), transparent 45%),
    #f7f9fc;
  color: #0b1526;
}
.single-past-event .container {
  max-width: 1100px;
}
.card-past-event {
  position: relative;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid rgba(12, 35, 64, 0.08);
  box-shadow: 0 18px 50px rgba(12, 35, 64, 0.12);
  border-radius: 24px;
  padding: 32px 32px 28px;
  color: #0b1526;
  isolation: isolate;
}
.card-past-event::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    rgba(12, 35, 64, 0.06),
    transparent 35%,
    rgba(230, 184, 0, 0.05)
  );
  pointer-events: none;
}
.home-news .card-past-event .event-banner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: start;
  gap: 18px;
  padding: 10px 0 24px;
}
.home-news .card-past-event .event-team {
  display: grid;
  grid-template-rows: 90px minmax(2.6em, auto);
  justify-items: center;
  align-items: start;
  gap: 10px;
  min-width: 0;
}
.home-news .card-past-event .event-logo {
  width: 90px;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.home-news .card-past-event .event-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #f4f6fb;
  border-radius: 18px;
  padding: 10px;
  box-shadow: 0 8px 26px rgba(12, 35, 64, 0.12);
}
.home-news .card-past-event .logo-text {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  border-radius: 18px;
  background: var(--glass);
  border: 1px solid rgba(12, 35, 64, 0.15);
  font-weight: 800;
  letter-spacing: 1px;
}
.home-news .card-past-event .team-name {
  margin: 0;
  width: 100%;
  max-width: 18ch;
  min-height: 2.6em;
  font-weight: 700;
  letter-spacing: 0.2px;
  line-height: 1.28;
  text-align: center;
  overflow-wrap: anywhere;
  text-wrap: balance;
}
.home-news .card-past-event .event-center {
  display: grid;
  place-items: center;
  gap: 6px;
  align-self: start;
  padding-top: 12px;
}
.card-past-event .versus {
  font-size: 18px;
  font-weight: 800;
  color: var(--afer-secondary);
  text-align: center;
  letter-spacing: 1px;
  padding: 10px 16px;
  border-radius: 14px;
  background: rgba(230, 184, 0, 0.12);
  border: 1px solid rgba(230, 184, 0, 0.3);
  box-shadow: 0 8px 20px rgba(230, 184, 0, 0.2);
}
.event-score {
  display: flex;
  align-items: baseline;
  gap: 10px;
  justify-content: center;
  font-weight: 800;
  color: #0b1526;
}
.event-score .score {
  font-size: clamp(30px, 4.2vw, 40px);
  line-height: 1;
}
.event-score .score-sep {
  font-size: clamp(28px, 3.6vw, 34px);
  color: #3a4760;
}
.event-score-placeholder {
  height: 32px;
}
.card-past-event .event-meta-line {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.card-past-event h1 {
  font-size: clamp(28px, 3vw, 34px);
  margin: 6px 0 10px;
}
.card-past-event .lead {
  color: #4c5771;
  max-width: 780px;
}
.pill-strong {
  background: rgba(12, 35, 64, 0.08);
  color: #0b1526;
  border: 1px solid rgba(12, 35, 64, 0.16);
}
.single-past-event .event-body {
  margin-top: 28px;
  display: grid;
  gap: 24px;
}
.single-past-event .event-content {
  background: #ffffff;
  border: 1px solid rgba(12, 35, 64, 0.06);
  border-radius: 18px;
  padding: 26px;
  box-shadow: 0 10px 28px rgba(12, 35, 64, 0.08);
  color: #112;
  line-height: 1.7;
}
.single-past-event .event-content h2,
.single-past-event .event-content h3 {
  color: #0b1526;
}
.single-past-event .event-participants {
  background: linear-gradient(160deg, #fff, #f5f7fb);
  color: #0b1526;
  border: 1px solid rgba(12, 35, 64, 0.08);
  border-radius: 20px;
  padding: 22px 22px 18px;
  box-shadow: 0 12px 32px rgba(12, 35, 64, 0.1);
}
.single-past-event .participants-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.single-past-event .participants-head h2 {
  margin: 0;
}
.single-past-event .participants-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(12, 35, 64, 0.08);
  border: 1px solid rgba(12, 35, 64, 0.15);
  font-size: 13px;
  font-weight: 700;
  color: #0f2038;
}
.single-past-event .participant-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
}
.single-past-event .participant-card {
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 13px 14px;
  border-radius: 16px;
  background: linear-gradient(165deg, #ffffff, #f8fbff);
  border: 1px solid rgba(12, 35, 64, 0.1);
  box-shadow:
    0 6px 16px rgba(12, 35, 64, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
  color: #0b1526;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}
.single-past-event .participant-card:hover {
  transform: translateY(-3px);
  border-color: rgba(230, 184, 0, 0.58);
  box-shadow:
    0 12px 24px rgba(12, 35, 64, 0.16),
    0 0 0 1px rgba(230, 184, 0, 0.2);
}
.single-past-event .participant-photo img {
  width: 58px;
  height: 58px;
  object-fit: cover;
  border-radius: 12px;
  border: 2px solid rgba(12, 35, 64, 0.12);
  background: #f4f6fb;
}
.single-past-event .participant-placeholder {
  width: 58px;
  height: 58px;
  border-radius: 12px;
  background: rgba(12, 35, 64, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  letter-spacing: 1px;
  color: #0b1526;
}
.single-past-event .participant-info {
  display: grid;
  gap: 6px;
}
.single-past-event .participant-info strong {
  font-size: 15px;
  line-height: 1.2;
}
.single-past-event .participant-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.single-past-event .participant-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(12, 35, 64, 0.08);
  border: 1px solid rgba(12, 35, 64, 0.12);
  color: #1e293b;
  font-size: 12px;
  font-weight: 700;
}
.single-past-event .participant-arrow {
  font-size: 18px;
  color: #8a94a9;
  transition:
    transform 140ms ease,
    color 140ms ease;
}
.single-past-event .participant-card:hover .participant-arrow {
  transform: translateX(2px);
  color: #0f2038;
}
.single-past-event .muted {
  color: #5b6780;
}
@media (max-width: 800px) {
  .card-past-event .event-banner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 12px;
  }
  .card-past-event .versus {
    order: -1;
  }
  .home-news .card-past-event .event-center {
    align-self: center;
    padding-top: 0;
  }
  .home-news .card-past-event .event-team {
    grid-template-rows: 82px minmax(2.4em, auto);
  }
  .home-news .card-past-event .event-logo {
    width: 82px;
    height: 82px;
  }
  .home-news .card-past-event .team-name {
    max-width: 22ch;
  }
  .past-events-page .past-event-card .event-banner {
    grid-template-columns: 1fr auto 1fr;
    text-align: initial;
    gap: 8px;
  }
  .past-events-page .past-event-card .versus {
    order: 0;
  }
  .single-past-event .participant-grid {
    grid-template-columns: 1fr;
  }
  .single-past-event .participant-card {
    grid-template-columns: 56px minmax(0, 1fr) auto;
    padding: 11px 12px;
  }
  .single-past-event .participants-count {
    font-size: 12px;
    padding: 5px 10px;
  }
  .single-past-event {
    padding: 94px 0 60px;
  }
  .single-past-event .event-content {
    padding: 20px;
  }
}
