/* ==========================================================================
   Les Archers d'Ulysse — Modern responsive stylesheet
   ========================================================================== */

/* ----- Polices (auto-hébergées) -----
   Fraunces et Inter sont servies depuis assets/fonts/ et non depuis
   fonts.googleapis.com : un appel au CDN de Google transmettrait l'adresse IP
   de chaque visiteur à un sous-traitant hors UE avant tout consentement (cf.
   la politique de confidentialité, qui annonce l'absence de traceur tiers).
   Ce sont les fichiers *variables* : un seul par famille et par style couvre
   toutes les graisses de 400 à 700. Le découpage `unicode-range` fait que le
   navigateur ne télécharge `latin-ext` (et l'italique) que si la page contient
   réellement de tels caractères — une page française n'en charge donc pas. */
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../assets/fonts/fraunces-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../assets/fonts/fraunces-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Fraunces";
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url("../assets/fonts/fraunces-italic-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Fraunces";
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url("../assets/fonts/fraunces-italic-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../assets/fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../assets/fonts/inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ----- Design tokens ----- */
:root {
  /* Club color: red. Darkest → brightest. */
  --brand-900: #4a0d10;
  --brand-800: #6e1418;
  --brand-700: #971d1f;
  --brand-600: #c0392b;
  --gold-500: #d4a23a;
  --gold-400: #e0b65a;
  --target-red: #c0392b;
  --cream: #f7efe9;
  --paper: #fffaf7;
  --ink: #241a1a;
  --ink-soft: #5a4a4a;
  --line: #e9d9d3;
  --white: #ffffff;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 3px rgba(74, 13, 16, .09), 0 1px 2px rgba(74, 13, 16, .07);
  --shadow-md: 0 10px 30px -12px rgba(74, 13, 16, .28);
  --shadow-lg: 0 30px 60px -20px rgba(74, 13, 16, .38);

  --font-head: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --container: 1180px;
  --header-h: 76px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  font-size: 17px;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { color: var(--brand-700); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--gold-500); }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.1;
  color: var(--brand-900);
  margin: 0 0 .5em;
  letter-spacing: -.01em;
}

p { margin: 0 0 1rem; color: var(--ink-soft); }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 40px);
}

section { position: relative; }

/* ----- Utility ----- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .8rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold-500);
  margin-bottom: 1rem;
}
.eyebrow::before {
  content: "";
  width: 28px; height: 2px;
  background: var(--gold-500);
  display: inline-block;
}

.section-pad { padding-block: clamp(64px, 9vw, 120px); }
.text-center { text-align: center; }
.lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 60ch; }
.muted { color: var(--ink-soft); }

/* ----- Buttons ----- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .98rem;
  padding: .85rem 1.6rem;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease), color .2s;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--gold-500); color: var(--brand-900); box-shadow: var(--shadow-md); }
.btn-primary:hover { background: var(--gold-400); color: var(--brand-900); transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.btn-ghost { background: transparent; border-color: rgba(255,255,255,.5); color: var(--white); }
.btn-ghost:hover { background: rgba(255,255,255,.12); color: var(--white); transform: translateY(-3px); }
.btn-dark { background: var(--brand-700); color: var(--white); }
.btn-dark:hover { background: var(--brand-800); color: var(--white); transform: translateY(-3px); box-shadow: var(--shadow-md); }

/* ==========================================================================
   Header / Navigation
   ========================================================================== */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  z-index: 100;
  display: flex;
  align-items: center;
  transition: background .3s var(--ease), box-shadow .3s var(--ease), backdrop-filter .3s;
}
.site-header.scrolled {
  background: rgba(255, 253, 248, .9);
  backdrop-filter: saturate(180%) blur(14px);
  box-shadow: var(--shadow-sm);
  border-bottom: 1px solid var(--line);
}

.nav {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 40px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: .7rem;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--white);
  line-height: 1.05;
  flex: none; /* ne jamais rétrécir le logo quand la nav est dense (ex. admin connecté) */
}
.scrolled .brand,
.brand.dark { color: var(--brand-900); }
.brand small {
  display: block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: .62rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  opacity: .8;
}
.brand .logo { flex: none; width: 42px; height: 42px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: .35rem;
  list-style: none;
  margin: 0; padding: 0;
}
.nav-links a {
  display: block;
  padding: .55rem .9rem;
  border-radius: 999px;
  font-weight: 500;
  font-size: .95rem;
  white-space: nowrap;
  color: rgba(255,255,255,.92);
  transition: background .2s, color .2s;
}
.scrolled .nav-links a { color: var(--ink); }
.nav-links a:hover { background: rgba(255,255,255,.16); color: var(--white); }
.scrolled .nav-links a:hover { background: var(--cream); color: var(--brand-800); }
.nav-links a.active { color: var(--gold-400); font-weight: 600; }
.scrolled .nav-links a.active { color: var(--gold-500); }

.nav-cta { margin-left: .5rem; }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 46px; height: 46px;
  border: none;
  background: rgba(255,255,255,.14);
  border-radius: 12px;
  cursor: pointer;
  padding: 0;
}
.scrolled .nav-toggle { background: var(--cream); }
.nav-toggle span {
  display: block;
  width: 22px; height: 2px;
  margin-inline: auto;
  background: var(--white);
  border-radius: 2px;
  transition: transform .3s var(--ease), opacity .2s;
}
.scrolled .nav-toggle span { background: var(--brand-900); }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  min-height: clamp(560px, 92vh, 880px);
  display: flex;
  align-items: center;
  color: var(--white);
  overflow: hidden;
  background: radial-gradient(120% 120% at 80% 10%, var(--brand-700) 0%, var(--brand-900) 55%, #330609 100%);
}
.hero__bg-target {
  position: absolute;
  right: -8%; top: 50%;
  transform: translateY(-50%);
  width: min(60vw, 680px);
  aspect-ratio: 1;
  opacity: .9;
  filter: drop-shadow(0 30px 60px rgba(0,0,0,.4));
  animation: floaty 9s ease-in-out infinite;
  pointer-events: none;
}
@keyframes floaty { 0%,100% { transform: translateY(-50%);} 50% { transform: translateY(-54%);} }
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10,32,24,.65) 0%, rgba(10,32,24,.1) 60%, transparent 100%);
}
.hero .container { position: relative; z-index: 2; padding-top: var(--header-h); }
.hero__content { max-width: 660px; }
.hero h1 {
  color: var(--white);
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  margin-bottom: 1.2rem;
}
.hero h1 .accent { color: var(--gold-400); font-style: italic; }
.hero p { color: rgba(255,255,255,.85); font-size: 1.2rem; max-width: 50ch; margin-bottom: 2rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; }
.hero__badge {
  display: inline-flex; align-items: center; gap: .6rem;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  padding: .5rem 1rem;
  border-radius: 999px;
  font-size: .85rem;
  letter-spacing: .04em;
  margin-bottom: 1.6rem;
  backdrop-filter: blur(6px);
}
.hero__badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold-400); box-shadow: 0 0 0 4px rgba(224,182,90,.25); }

/* Page hero (interior pages) */
.page-hero {
  background: radial-gradient(120% 140% at 85% -10%, var(--brand-700) 0%, var(--brand-900) 60%, #330609 100%);
  color: var(--white);
  padding-top: calc(var(--header-h) + 60px);
  padding-bottom: 70px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  right: -120px; top: -120px;
  width: 420px; height: 420px;
  border-radius: 50%;
  background: repeating-radial-gradient(circle, var(--gold-400) 0 14px, transparent 14px 28px);
  opacity: .12;
}
.page-hero h1 { color: var(--white); font-size: clamp(2.2rem, 5vw, 3.6rem); }
.page-hero p { color: rgba(255,255,255,.82); max-width: 60ch; margin: 0; }
.breadcrumb { font-size: .85rem; color: var(--gold-400); margin-bottom: 1rem; letter-spacing: .04em; }
.breadcrumb a { color: rgba(255,255,255,.7); }
.breadcrumb a:hover { color: var(--white); }

/* ==========================================================================
   Stats strip
   ========================================================================== */
.stats {
  background: var(--brand-800);
  color: var(--white);
}
.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  padding-block: 3rem;
}
.stat { text-align: center; padding: .5rem; }
.stat__num { font-family: var(--font-head); font-size: clamp(2.2rem, 4vw, 3.2rem); color: var(--gold-400); line-height: 1; }
.stat__label { font-size: .9rem; color: rgba(255,255,255,.8); margin-top: .4rem; }

/* ==========================================================================
   Section heading
   ========================================================================== */
.section-head { max-width: 64ch; margin-bottom: 3rem; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: clamp(2rem, 4vw, 2.9rem); }

/* ==========================================================================
   Feature cards
   ========================================================================== */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 1.6rem;
}
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .3s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--gold-400); }
.card__icon {
  width: 56px; height: 56px;
  display: grid; place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--brand-600), var(--brand-800));
  color: var(--gold-400);
  margin-bottom: 1.3rem;
}
.card__icon svg { width: 28px; height: 28px; }
.card h3 { font-size: 1.35rem; }
.card p { margin-bottom: 0; }

/* ==========================================================================
   About / split
   ========================================================================== */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.split__media {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--brand-700), var(--brand-900));
  display: grid; place-items: center;
}
.split__media .target-graphic { width: 70%; }
.split ul { list-style: none; margin: 1.5rem 0 0; padding: 0; }
.split li {
  display: flex; gap: .8rem; align-items: flex-start;
  padding: .55rem 0;
  color: var(--ink-soft);
}
.split li svg { flex: none; width: 22px; height: 22px; color: var(--brand-600); margin-top: 3px; }

/* ==========================================================================
   News
   ========================================================================== */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.6rem;
}
.news-card {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.news-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.news-card__img {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--brand-600), var(--brand-900));
  display: grid; place-items: center;
  color: rgba(255,255,255,.5);
  position: relative;
}
.news-card__img .target-graphic { width: 42%; opacity: .9; }
.news-card__tag {
  position: absolute; top: 14px; left: 14px;
  background: var(--gold-500); color: var(--brand-900);
  font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: .3rem .7rem; border-radius: 999px;
}
.news-card__body { padding: 1.6rem; display: flex; flex-direction: column; flex: 1; }
.news-card__date { font-size: .8rem; color: var(--gold-500); font-weight: 600; letter-spacing: .04em; margin-bottom: .5rem; }
.news-card h3 { font-size: 1.3rem; margin-bottom: .6rem; }
.news-card p { font-size: .96rem; }
.news-card__more { margin-top: auto; font-weight: 600; display: inline-flex; align-items: center; gap: .4rem; }
.news-card__more svg { width: 16px; height: 16px; transition: transform .2s; }
.news-card:hover .news-card__more svg { transform: translateX(4px); }

/* ==========================================================================
   Results table
   ========================================================================== */
.results-list { display: flex; flex-direction: column; gap: .8rem; }
.result-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.2rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold-500);
  border-radius: var(--radius-sm);
  padding: 1.1rem 1.4rem;
  transition: transform .2s var(--ease), box-shadow .2s;
}
.result-row:hover { transform: translateX(4px); box-shadow: var(--shadow-md); }
.result-row__date {
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--brand-700);
  font-size: 1rem;
  background: var(--cream);
  padding: .4rem .7rem;
  border-radius: 8px;
  white-space: nowrap;
}
.result-row__title { font-weight: 600; color: var(--ink); }
.result-row__place { font-size: .85rem; color: var(--ink-soft); display: block; }
.result-row__badge {
  font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
  color: var(--brand-700); background: rgba(192,57,43,.12);
  padding: .35rem .7rem; border-radius: 999px;
}

/* ==========================================================================
   Schedule / pricing
   ========================================================================== */
.schedule {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.4rem;
}
.slot {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}
.slot__day { font-family: var(--font-head); font-size: 1.4rem; color: var(--brand-900); margin-bottom: 1rem; }
.slot__time { display: flex; align-items: center; gap: .6rem; color: var(--ink-soft); margin-bottom: .5rem; font-size: .96rem; }
.slot__time svg { width: 18px; height: 18px; color: var(--gold-500); flex: none; }
.slot__time strong { color: var(--ink); }

.pricing {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.6rem;
}
.price-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.2rem 2rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
  transition: transform .3s var(--ease), box-shadow .3s;
}
.price-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.price-card.featured {
  background: linear-gradient(160deg, var(--brand-800), var(--brand-900));
  color: var(--white);
  border-color: var(--brand-800);
}
.price-card.featured h3, .price-card.featured .price-card__amount { color: var(--white); }
.price-card.featured p, .price-card.featured li { color: rgba(255,255,255,.85); }
.price-card__badge {
  align-self: center;
  background: var(--gold-500); color: var(--brand-900);
  font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
  padding: .3rem .8rem; border-radius: 999px; margin-bottom: 1rem;
}
.price-card h3 { font-size: 1.4rem; }
.price-card__amount { font-family: var(--font-head); font-size: 3rem; color: var(--brand-900); line-height: 1; margin: .5rem 0; }
.price-card__amount span { font-size: 1rem; color: var(--ink-soft); font-family: var(--font-body); }
.price-card ul { list-style: none; padding: 0; margin: 1.2rem 0 1.8rem; text-align: left; flex: 1; }
.price-card li { display: flex; gap: .6rem; padding: .45rem 0; font-size: .95rem; color: var(--ink-soft); }
.price-card li svg { flex: none; width: 18px; height: 18px; color: var(--brand-600); margin-top: 3px; }
.price-card.featured li svg { color: var(--gold-400); }

/* ==========================================================================
   Gallery
   ========================================================================== */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  grid-auto-rows: 220px;
  gap: 1rem;
}
.gallery__item {
  border-radius: var(--radius-sm);
  overflow: hidden;
  position: relative;
  background: linear-gradient(135deg, var(--brand-600), var(--brand-900));
  display: grid; place-items: center;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}
.gallery__item:nth-child(3n) { background: linear-gradient(135deg, var(--gold-500), #a87a1e); }
.gallery__item:nth-child(4n) { background: linear-gradient(135deg, var(--target-red), #7d241a); }
.gallery__item.tall { grid-row: span 2; }
.gallery__item .target-graphic { width: 45%; opacity: .85; transition: transform .5s var(--ease); }
.gallery__item:hover .target-graphic { transform: scale(1.12) rotate(8deg); }
.gallery__item .caption {
  position: absolute; inset: auto 0 0 0;
  padding: 1.2rem 1rem .9rem;
  background: linear-gradient(transparent, rgba(10,32,24,.85));
  color: var(--white);
  font-size: .9rem; font-weight: 500;
  opacity: 0; transform: translateY(10px);
  transition: opacity .3s, transform .3s;
}
.gallery__item:hover .caption { opacity: 1; transform: none; }

/* ==========================================================================
   Contact
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
}
.contact-info { display: flex; flex-direction: column; gap: 1.2rem; }
.contact-item {
  display: flex; gap: 1rem; align-items: flex-start;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 1.3rem 1.4rem;
}
.contact-item__icon {
  flex: none; width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: var(--cream); color: var(--brand-700);
}
.contact-item__icon svg { width: 22px; height: 22px; }
.contact-item h4 { font-family: var(--font-body); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--gold-500); margin: 0 0 .25rem; }
.contact-item p { margin: 0; color: var(--ink); font-weight: 500; }

.form { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow-md); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-size: .85rem; font-weight: 600; color: var(--brand-900); margin-bottom: .4rem; }
.field input, .field textarea, .field select {
  width: 100%;
  font: inherit;
  font-size: .96rem;
  padding: .8rem 1rem;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--cream);
  color: var(--ink);
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--brand-600);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(192,57,43,.12);
}
.field textarea { resize: vertical; min-height: 130px; }
.form-note { font-size: .82rem; color: var(--ink-soft); margin-top: 1rem; }
.form-success {
  display: none;
  background: rgba(192,57,43,.1);
  border: 1px solid var(--brand-600);
  color: var(--brand-800);
  border-radius: var(--radius-sm);
  padding: 1rem 1.2rem;
  margin-bottom: 1rem;
  font-weight: 500;
}
.form-success.show { display: block; }

.map-embed {
  margin-top: 1.5rem;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  aspect-ratio: 16/8;
}
.map-embed iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ==========================================================================
   CTA banner
   ========================================================================== */
.cta-banner {
  background: radial-gradient(120% 160% at 20% 0%, var(--brand-700), var(--brand-900));
  color: var(--white);
  border-radius: var(--radius);
  padding: clamp(2.5rem, 6vw, 4.5rem);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: "";
  position: absolute; left: -80px; bottom: -80px;
  width: 280px; height: 280px; border-radius: 50%;
  background: repeating-radial-gradient(circle, var(--gold-400) 0 12px, transparent 12px 24px);
  opacity: .12;
}
.cta-banner h2 { color: var(--white); font-size: clamp(1.8rem, 4vw, 2.8rem); position: relative; }
.cta-banner p { color: rgba(255,255,255,.85); max-width: 50ch; margin-inline: auto; position: relative; }
.cta-banner .hero__actions { justify-content: center; position: relative; margin-top: 1.8rem; }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  background: var(--brand-900);
  color: rgba(255,255,255,.75);
  padding-top: 4rem;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
}
.footer .brand { color: var(--white); margin-bottom: 1rem; }
.footer h4 { color: var(--white); font-family: var(--font-body); font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 1.2rem; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: .6rem; }
.footer a { color: rgba(255,255,255,.72); font-size: .95rem; }
.footer a:hover { color: var(--gold-400); }
.footer p { color: rgba(255,255,255,.6); font-size: .95rem; }
.socials { display: flex; gap: .7rem; margin-top: 1.2rem; }
.socials a {
  width: 40px; height: 40px; border-radius: 10px;
  background: rgba(255,255,255,.08);
  display: grid; place-items: center;
  color: var(--white);
  transition: background .2s, transform .2s;
}
.socials a:hover { background: var(--gold-500); color: var(--brand-900); transform: translateY(-3px); }
.socials svg { width: 20px; height: 20px; }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-block: 1.6rem;
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center;
  font-size: .85rem;
}
.footer__bottom a { color: rgba(255,255,255,.7); }

/* ==========================================================================
   Scroll reveal
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
.reveal[data-delay="4"] { transition-delay: .32s; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 980px) {
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
}

@media (max-width: 1024px) {
  .nav-toggle { display: flex; }
  .nav-cta { display: none; }
  .nav-links {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: .2rem;
    background: var(--paper);
    padding: 1rem clamp(20px, 5vw, 40px) 1.6rem;
    box-shadow: var(--shadow-lg);
    border-bottom: 1px solid var(--line);
    transform: translateY(-120%);
    transition: transform .4s var(--ease);
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
  }
  .nav-open .nav-links { transform: none; }
  .nav-links a { color: var(--ink); padding: .9rem 1rem; border-radius: 12px; font-size: 1.05rem; }
  .nav-links a:hover, .nav-links a.active { background: var(--cream); color: var(--brand-800); }
  .nav-links .nav-cta-mobile { display: block; margin-top: .6rem; }
  .nav-links .nav-cta-mobile a { background: var(--gold-500); color: var(--brand-900); text-align: center; font-weight: 700; }
  /* Auth controls: full-width block at the bottom of the mobile menu */
  .nav-auth { width: 100%; flex-wrap: wrap; gap: .5rem; margin-top: .6rem; padding-top: .8rem; border-top: 1px solid var(--line); }
  .nav-user { color: var(--ink); font-size: .95rem; flex: 1 1 100%; }
  .nav-user__email { max-width: none; }
  .nav-logout, .nav-membres, .nav-profile { background: var(--cream); color: var(--brand-800); }
  .nav-logout:hover, .nav-membres:hover, .nav-profile:hover { background: var(--gold-400); color: var(--brand-900); }
  .split { grid-template-columns: 1fr; }
  .split__media { order: -1; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .stats__grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .result-row { grid-template-columns: 1fr auto; }
  .result-row__date { grid-column: 1 / -1; justify-self: start; }
  .footer__grid { grid-template-columns: 1fr; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}

/* ==========================================================================
   Real-content components (logo, label, tables, tabs, events, partners…)
   ========================================================================== */

/* Real logo in a legible white pill (works on dark hero & light header) */
.brand-logo {
  height: 54px; width: auto; display: block;
  flex: none; /* conserve le ratio du logo (pas d'écrasement par le flex) */
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 5px 9px;
  box-shadow: var(--shadow-sm);
}
@media (max-width: 560px) { .brand-logo { height: 46px; } }

/* FFTA Espoir label image */
.label-espoir { height: 56px; width: auto; display: inline-block; vertical-align: middle; }
.label-card {
  display: flex; align-items: center; gap: 1.2rem;
  background: var(--paper); border: 1px solid var(--line);
  border-left: 4px solid var(--gold-500);
  border-radius: var(--radius-sm); padding: 1.1rem 1.4rem; margin-top: 1.6rem;
}
.label-card p { margin: 0; font-size: .95rem; }

/* Hero with real photo background */
.hero--photo::before {
  content: ""; position: absolute; inset: 0;
  background: url("../assets/img/photo1.jpeg") center/cover no-repeat;
  opacity: .28;
}
.hero--photo { background: radial-gradient(120% 120% at 75% 15%, var(--brand-700), var(--brand-900) 60%, #330609); }

/* ----- Data tables (records / classements) ----- */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow-sm); background: var(--paper); -webkit-overflow-scrolling: touch; }
table.data-table { width: 100%; border-collapse: collapse; font-size: .92rem; min-width: 520px; }
.data-table caption { caption-side: top; text-align: left; font-family: var(--font-head); font-size: 1.15rem; color: var(--brand-900); padding: 1rem 1.1rem .4rem; font-weight: 600; }
.data-table thead th {
  background: var(--brand-800); color: #fff; font-weight: 600;
  text-align: left; padding: .7rem .9rem; white-space: nowrap;
  font-size: .82rem; letter-spacing: .02em; position: sticky; top: 0;
}
.data-table tbody td { padding: .6rem .9rem; border-top: 1px solid var(--line); }
.data-table tbody tr:nth-child(even) { background: rgba(192,57,43,.04); }
.data-table tbody tr:hover { background: rgba(212,162,58,.12); }
.data-table .name { font-weight: 600; color: var(--ink); white-space: nowrap; }
.data-table .score { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--brand-700); }
.data-table .rank { font-weight: 700; color: var(--brand-900); text-align: center; }
.data-table .best { color: var(--target-red); }
.medal { font-size: 1.05rem; }
.record-badge { height: 22px; width: auto; vertical-align: middle; }

/* ----- Tabs ----- */
.tabs { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.8rem; border-bottom: 2px solid var(--line); }
.tab-btn {
  font: inherit; font-weight: 600; font-size: .95rem;
  background: none; border: none; cursor: pointer;
  padding: .7rem 1.1rem; color: var(--ink-soft);
  border-bottom: 3px solid transparent; margin-bottom: -2px;
  transition: color .2s, border-color .2s;
}
.tab-btn:hover { color: var(--brand-700); }
.tab-btn.active { color: var(--brand-900); border-color: var(--gold-500); }
.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fadeIn .4s var(--ease); }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px);} to { opacity: 1; transform: none; } }
.subtab-title { font-family: var(--font-head); color: var(--brand-700); margin: 1.8rem 0 .6rem; font-size: 1.25rem; }
.table-note { font-size: .85rem; color: var(--ink-soft); font-style: italic; margin: .6rem 0 1.4rem; }

/* ----- Events ----- */
.events { display: grid; gap: .8rem; }
.event-item {
  display: grid; grid-template-columns: auto 1fr; gap: 1.2rem; align-items: center;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 1rem 1.3rem; transition: transform .2s var(--ease), box-shadow .2s;
}
.event-item:hover { transform: translateX(4px); box-shadow: var(--shadow-md); }
.event-date {
  flex: none; width: 64px; text-align: center; border-radius: 10px;
  background: var(--brand-700); color: #fff; padding: .5rem; line-height: 1.05;
}
.event-date .d { font-family: var(--font-head); font-size: 1.5rem; display: block; }
.event-date .m { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; opacity: .9; }
.event-item h4 { margin: 0 0 .2rem; font-family: var(--font-body); font-size: 1.05rem; color: var(--ink); }
.event-item .place { font-size: .88rem; color: var(--ink-soft); }
.event-item.past .event-date { background: var(--ink-soft); }

/* ----- News list (full) ----- */
.news-list { display: grid; gap: 1rem; }
.news-row {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm);
  border-left: 4px solid var(--gold-500); padding: 1.3rem 1.5rem;
}
.news-row .news-card__date { margin-bottom: .3rem; }
.news-row h3 { font-size: 1.2rem; margin-bottom: .4rem; }
.news-row p { margin: 0; font-size: .96rem; }

/* ----- Partners ----- */
.partners { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.4rem; }
.partner-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem; text-align: center; box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s; text-decoration: none;
}
.partner-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.partner-card img { height: 90px; width: auto; margin: 0 auto 1rem; object-fit: contain; }
.partner-card h3 { font-size: 1.1rem; margin-bottom: .3rem; }
.partner-card p { font-size: .9rem; margin: 0; }

/* ----- Documents & link columns ----- */
.link-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.6rem; }
.link-block { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem 1.8rem; box-shadow: var(--shadow-sm); }
.link-block h3 { font-size: 1.15rem; margin-bottom: .9rem; padding-bottom: .6rem; border-bottom: 2px solid var(--gold-500); display: inline-block; }
.link-block ul { list-style: none; margin: 0; padding: 0; }
.link-block li { padding: .35rem 0; font-size: .94rem; }
.link-block li a { display: inline-flex; align-items: baseline; gap: .4rem; }
.doc-list li::before { content: "\1F4C4"; margin-right: .5rem; }

/* ----- Photo albums ----- */
.album-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.4rem; }
.album-card {
  border-radius: var(--radius); overflow: hidden; background: var(--paper);
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s;
}
.album-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.album-card__img { aspect-ratio: 16/10; background: linear-gradient(135deg, var(--brand-600), var(--brand-900)); position: relative; overflow: hidden; }
.album-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.album-card:hover .album-card__img img { transform: scale(1.06); }
.album-card__count { position: absolute; bottom: 10px; right: 10px; background: rgba(74,13,16,.85); color: #fff; font-size: .78rem; font-weight: 600; padding: .25rem .6rem; border-radius: 999px; }
.album-card__body { padding: 1rem 1.2rem; }
.album-card__body h3 { font-size: 1.05rem; margin: 0; font-family: var(--font-body); font-weight: 600; color: var(--ink); }

/* tag pills for archive lists */
.pill-list { display: flex; flex-wrap: wrap; gap: .6rem; }
.pill { display: inline-block; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: .45rem .95rem; font-size: .88rem; color: var(--ink-soft); }
.pill:hover { border-color: var(--gold-500); color: var(--brand-700); }

/* ==========================================================================
   Lightbox (local photo viewer)
   ========================================================================== */
.album-card { cursor: pointer; }
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(12, 4, 5, .94);
  display: none; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .25s var(--ease);
}
.lightbox.open { display: flex; opacity: 1; }
.lightbox__stage { max-width: 94vw; max-height: 82vh; display: flex; align-items: center; justify-content: center; }
.lightbox__img {
  max-width: 94vw; max-height: 82vh; width: auto; height: auto;
  border-radius: 10px; box-shadow: 0 30px 80px rgba(0,0,0,.6);
  background: #1a0a0b;
}
.lightbox__btn {
  position: absolute; border: none; cursor: pointer;
  background: rgba(255,255,255,.12); color: #fff;
  width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center; transition: background .2s, transform .2s;
  backdrop-filter: blur(4px);
}
.lightbox__btn:hover { background: var(--gold-500); color: var(--brand-900); }
.lightbox__btn svg { width: 24px; height: 24px; }
.lightbox__close { top: 22px; right: 22px; }
.lightbox__prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 18px; top: 50%; transform: translateY(-50%); }
.lightbox__prev:hover { transform: translateY(-50%) scale(1.08); }
.lightbox__next:hover { transform: translateY(-50%) scale(1.08); }
.lightbox__bar {
  position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%);
  color: #fff; font-size: .9rem; font-weight: 500; text-align: center;
  background: rgba(0,0,0,.35); padding: .4rem 1rem; border-radius: 999px; max-width: 90vw;
}
.lightbox__bar .t { color: var(--gold-400); }
@media (max-width: 560px) {
  .lightbox__btn { width: 44px; height: 44px; }
  .lightbox__close { top: 14px; right: 14px; }
  .lightbox__prev { left: 8px; } .lightbox__next { right: 8px; }
}

/* ==========================================================================
   Authentification & administration
   ========================================================================== */
.nav-auth { display: flex; align-items: center; gap: .5rem; list-style: none; }
.btn-login, .nav-logout, .nav-membres, .nav-profile {
  font-family: var(--font-body); font-weight: 600; font-size: .9rem;
  padding: .5rem .95rem; border-radius: 999px; border: none; cursor: pointer;
  display: inline-block; line-height: 1; text-decoration: none; white-space: nowrap;
  transition: background .2s var(--ease), transform .2s var(--ease);
}
.btn-login { background: var(--gold-500); color: var(--brand-900); }
.btn-login:hover { background: var(--gold-400); transform: translateY(-1px); }
.nav-logout, .nav-membres, .nav-profile { background: rgba(255,255,255,.16); color: var(--white); }
.nav-logout:hover, .nav-membres:hover, .nav-profile:hover { background: rgba(255,255,255,.28); transform: translateY(-1px); }
.scrolled .nav-logout, .scrolled .nav-membres, .scrolled .nav-profile { background: var(--cream); color: var(--brand-800); }
.scrolled .nav-logout:hover, .scrolled .nav-membres:hover, .scrolled .nav-profile:hover { background: var(--gold-400); color: var(--brand-900); }
.nav-user { display: flex; align-items: center; gap: .4rem; min-width: 0; font-size: .85rem; color: rgba(255,255,255,.92); }
.scrolled .nav-user { color: var(--ink); }
.nav-user__email { max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.badge-admin {
  background: var(--brand-600); color: #fff; font-size: .6rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em; padding: .15rem .45rem; border-radius: 999px;
}

/* Barre « Espace membre » (desktop) : 2ᵉ palier pleine largeur sous la nav
   publique, affiché dès qu'un membre est connecté. Bande légèrement teintée +
   filet de séparation ; liens réservés et compte en pastilles. Sur mobile
   (≤1024px) la barre est masquée et tout reste dans le menu déroulant. */
.member-tier { display: none; }
@media (min-width: 1025px) {
  body.has-userbar { --header-h: 138px; }
  .site-header { flex-direction: column; justify-content: center; }

  /* Connecté : on masque les copies « mobiles » de la nav, la barre prend le relais. */
  .has-userbar .nav-links > .nav-private,
  .has-userbar .nav-links > .nav-auth { display: none !important; }

  .has-userbar .member-tier {
    display: block; width: 100%;
    margin-top: .7rem; /* espace entre la ligne du logo et la barre membre */
    border-top: 1px solid rgba(255, 255, 255, .18);
    background: rgba(255, 255, 255, .05);
  }
  .site-header.scrolled .member-tier {
    border-top-color: var(--line);
    background: rgba(224, 182, 90, .12); /* légère teinte dorée une fois défilé */
  }
  .member-tier__inner {
    width: 100%; max-width: var(--container);
    margin-inline: auto;
    padding: .5rem clamp(20px, 5vw, 40px);
    display: flex; align-items: center; gap: .75rem;
  }
  .member-tier__pages { display: flex; align-items: center; flex-wrap: wrap; gap: .4rem; }
  .member-tier__account { display: flex; align-items: center; gap: .5rem; margin-left: auto; }
  .member-tier__label {
    display: inline-flex; align-items: center; gap: .35rem; white-space: nowrap;
    font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
    color: rgba(255, 255, 255, .72); margin-right: .35rem;
  }
  .member-tier__label svg { width: 15px; height: 15px; }
  .site-header.scrolled .member-tier__label { color: var(--brand-700); }

  /* Pastilles */
  .mt-pill {
    font-family: var(--font-body); font-weight: 600; font-size: .85rem;
    padding: .42rem .85rem; border-radius: 999px; border: none; cursor: pointer;
    line-height: 1; text-decoration: none; white-space: nowrap;
    transition: background .2s var(--ease), color .2s, transform .2s var(--ease);
  }
  .mt-page { background: rgba(255, 255, 255, .16); color: var(--white); }
  .mt-page:hover { background: rgba(255, 255, 255, .28); transform: translateY(-1px); }
  .mt-page.active { background: var(--gold-500); color: var(--brand-900); }
  .site-header.scrolled .mt-page { background: var(--cream); color: var(--brand-800); }
  .site-header.scrolled .mt-page:hover { background: var(--gold-400); color: var(--brand-900); }
  .site-header.scrolled .mt-page.active { background: var(--gold-500); color: var(--brand-900); }

  /* Boutons compte dans la barre : même gabarit que les pastilles. */
  .member-tier .nav-profile,
  .member-tier .nav-logout { font-size: .85rem; padding: .42rem .85rem; }
}

/* Modale partagée */
.modal-overlay {
  position: fixed; inset: 0; z-index: 1000; display: none;
  align-items: flex-start; justify-content: center;
  padding: 5vh 1rem; overflow: auto;
  background: rgba(36,12,12,.6); backdrop-filter: blur(4px);
}
.modal-overlay.open { display: flex; }
.modal {
  position: relative; width: 100%; max-width: 540px; padding: 2rem 2rem 2.2rem;
  background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow-lg);
}
.modal__title { margin: 0 0 1.3rem; }
.modal__subtitle, .modal__body h4 { margin: 1.8rem 0 .8rem; font-family: var(--font-head); }
.modal__close {
  position: absolute; top: 1rem; right: 1rem; width: 36px; height: 36px;
  border: none; border-radius: 50%; background: var(--cream); color: var(--brand-900);
  font-size: 1.4rem; line-height: 1; cursor: pointer;
}
.modal__close:hover { background: var(--gold-400); }

/* Formulaires */
.auth-form { display: flex; flex-direction: column; gap: .9rem; }
.auth-form label { display: flex; flex-direction: column; gap: .35rem; font-weight: 600; font-size: .9rem; color: var(--ink); }
.auth-form input, .auth-form select, .auth-form textarea {
  font: inherit; width: 100%; padding: .65rem .8rem; color: var(--ink);
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
}
.auth-form input:focus, .auth-form select:focus, .auth-form textarea:focus {
  outline: none; border-color: var(--gold-500); box-shadow: 0 0 0 3px rgba(212,162,58,.2);
}
.auth-form .btn { align-self: flex-start; margin-top: .4rem; }
/* Cases à cocher des profils de droits */
.profile-checks { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .7rem .9rem; display: flex; flex-direction: column; gap: .5rem; }
.profile-checks legend { font-weight: 700; font-size: .85rem; padding: 0 .4rem; color: var(--ink); }
.profile-check { display: flex; flex-direction: row; align-items: center; gap: .5rem; font-weight: 600; font-size: .9rem; }
.profile-check input { width: auto; flex: none; margin: 0; }
.profile-check .muted { font-weight: 400; }
.json-editor { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .78rem; line-height: 1.5; white-space: pre; }
.form-error { margin: 0; color: var(--brand-600); font-weight: 600; font-size: .9rem; }

/* Alerte d'occupation du disque serveur (admins uniquement, js/auth.js).
   Ancrée en bas : l'en-tête est en `position: fixed`, un bandeau en haut de
   page passerait dessous. */
.disk-alert {
  position: fixed; inset: auto 0 0 0; z-index: 120;
  display: flex; align-items: center; gap: 1rem;
  padding: .8rem 1.2rem;
  background: var(--brand-800); color: #fff;
  border-top: 3px solid var(--gold-500);
  box-shadow: 0 -4px 18px rgba(0, 0, 0, .22);
  font-size: .9rem; line-height: 1.45;
}
.disk-alert strong { color: var(--gold-400); }
.disk-alert__close {
  flex: none; margin-left: auto;
  width: 30px; height: 30px; border: none; border-radius: 50%;
  background: rgba(255, 255, 255, .14); color: #fff;
  font-size: 1.3rem; line-height: 1; cursor: pointer;
}
.disk-alert__close:hover { background: rgba(255, 255, 255, .28); }

/* Barres & actions d'administration */
.admin-bar { margin: 0 0 1.6rem; display: flex; gap: .5rem; flex-wrap: wrap; }
.admin-add { cursor: pointer; }
.news-card, .news-row, .event-item, .album-card__img { position: relative; }
.admin-del {
  position: absolute; top: .5rem; right: .5rem; z-index: 6;
  display: flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border: none; border-radius: 50%;
  background: rgba(192,57,43,.94); color: #fff; font-size: 1.2rem; line-height: 1; cursor: pointer;
}
.admin-del:hover { background: var(--brand-700); }
.admin-edit {
  position: absolute; top: .5rem; right: 2.7rem; z-index: 6;
  display: flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border: none; border-radius: 50%;
  background: rgba(52,73,94,.94); color: #fff; cursor: pointer;
}
.admin-edit svg { width: 15px; height: 15px; }
.admin-edit:hover { background: #2c3e50; }
.album-admin { position: absolute; top: .5rem; right: .5rem; z-index: 6; display: flex; gap: .4rem; }
.album-admin .admin-del, .album-admin .admin-edit { position: static; width: 28px; height: 28px; }
/* Édition d'album : grille de vignettes (★ couverture, × supprimer) */
.aedit-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: .5rem; max-height: 320px; overflow-y: auto; margin: .4rem 0 .2rem; }
.aedit { position: relative; aspect-ratio: 1 / 1; border-radius: 8px; overflow: hidden; border: 2px solid transparent; }
.aedit img { width: 100%; height: 100%; object-fit: cover; display: block; }
.aedit.cover { border-color: var(--gold-500); }
.aedit.removed { opacity: .35; }
.aedit.removed img { filter: grayscale(1); }
.aedit-cover, .aedit-rm {
  position: absolute; border: none; cursor: pointer;
  width: 22px; height: 22px; border-radius: 50%; line-height: 1; font-size: .8rem;
  display: flex; align-items: center; justify-content: center;
}
.aedit-cover { left: 3px; bottom: 3px; background: rgba(0,0,0,.55); color: #fff; }
.aedit.cover .aedit-cover { background: var(--gold-500); color: var(--brand-900); }
.aedit-rm { right: 3px; top: 3px; background: rgba(192,57,43,.92); color: #fff; font-size: 1rem; }
/* Image actuelle dans le formulaire d'actualité */
.img-current { margin: .2rem 0; }
.img-current img { max-height: 120px; border-radius: 8px; display: block; }
.img-remove { flex-direction: row; align-items: center; gap: .45rem; font-size: .88rem; }
.img-remove input { width: auto; }
.album-upload {
  border: none; border-radius: 999px; padding: .3rem .65rem; cursor: pointer;
  font-size: .75rem; font-weight: 700; background: var(--gold-500); color: var(--brand-900);
}
.album-upload:hover { background: var(--gold-400); }

/* Tableau des membres */
#members-root { max-width: 920px; }
.members-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem; margin-bottom: 1.2rem; }
.members-toolbar__actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-left: auto; }
.members-search {
  flex: 1 1 240px; min-width: 200px; font: inherit; padding: .6rem .9rem; color: var(--ink);
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
}
.members-search:focus { outline: none; border-color: var(--gold-500); box-shadow: 0 0 0 3px rgba(212,162,58,.2); }
.members-empty { margin-top: .6rem; }
.members-table { width: 100%; border-collapse: collapse; margin-bottom: .5rem; }
.members-table th, .members-table td { padding: .5rem .4rem; text-align: left; font-size: .9rem; border-bottom: 1px solid var(--line); vertical-align: top; }
/* Une ligne par archer dans les colonnes Archers / Niveau (alignées). */
.members-table .m-line { padding: .12rem 0; min-height: 1.3em; }
.lvl-tag { display: inline-block; font-weight: 700; font-size: .7rem; padding: .12rem .5rem; border-radius: 999px; }
.lvl-tag--beginner { background: rgba(46,125,50,.14); color: #2e7d32; }
.lvl-tag--confirmed { background: rgba(192,57,43,.12); color: var(--brand-700); }
.members-table .m-role { padding: .3rem .5rem; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.members-table .m-del { position: static; width: 28px; height: 28px; }
.members-status { color: var(--ink-soft); }

/* Éditeurs structurés (créneaux & tarifs) */
.edit-list { display: flex; flex-direction: column; gap: .8rem; }
.edit-day, .edit-group { padding: .8rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.edit-dayhead { display: flex; gap: .5rem; margin-bottom: .5rem; }
.edit-dayhead .d-day { flex: 1; }
.g-heading { font-weight: 600; margin-bottom: .6rem; }
.edit-time, .edit-card { display: flex; gap: .4rem; align-items: flex-start; margin-bottom: .4rem; flex-wrap: wrap; }
.edit-time input, .edit-card input, .edit-card textarea { width: auto; }
.edit-time .t-start, .edit-time .t-end { flex: 0 0 auto; }
.edit-time .t-sep { align-self: center; color: var(--ink-soft); }
.edit-time .t-note { flex: 1 1 140px; }
.edit-card .c-title { flex: 1 1 130px; }
.edit-card .c-amount { flex: 0 0 90px; }
.edit-card .c-badge { flex: 1 1 110px; }
.edit-card .c-options { flex: 1 1 100%; min-height: 60px; }
.mini-add { align-self: flex-start; background: var(--cream); color: var(--brand-800); border: none; border-radius: 999px; padding: .35rem .75rem; font-size: .8rem; font-weight: 600; cursor: pointer; }
.mini-add:hover { background: var(--gold-400); color: var(--brand-900); }
.rm-x { flex: 0 0 auto; border: none; background: rgba(192,57,43,.9); color: #fff; border-radius: 8px; padding: .35rem .55rem; font-size: .85rem; font-weight: 600; line-height: 1; cursor: pointer; }
.rm-x:hover { background: var(--brand-700); }
.members-table .m-name { width: 100%; padding: .3rem .5rem; border: 1px solid var(--line); border-radius: var(--radius-sm); font: inherit; }

/* Compétitions */
.comp-empty {
  text-align: center; padding: 3rem 1.5rem; background: var(--paper);
  border: 1px dashed var(--line); border-radius: var(--radius); color: var(--ink-soft);
}
.comp-card {
  position: relative; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
  padding: 1.6rem 1.6rem 1.8rem; margin-bottom: 1.6rem;
}
.comp-card.locked { background: var(--paper); }
.comp-card__head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap; margin-bottom: 1.3rem;
}
.comp-card__title h3 { font-size: 1.5rem; color: var(--brand-900); margin: 0; }
.comp-loc { display: flex; align-items: center; gap: .4rem; margin: .35rem 0 0; color: var(--ink-soft); font-size: .95rem; }
.comp-loc svg { width: 16px; height: 16px; color: var(--brand-600); flex: none; }
.comp-lock-badge {
  display: inline-flex; align-items: center; gap: .35rem; align-self: flex-start;
  background: rgba(192,57,43,.12); color: var(--brand-700); font-weight: 600;
  font-size: .8rem; padding: .35rem .7rem; border-radius: 999px;
}
.comp-lock-badge svg { width: 14px; height: 14px; }
/* Pastille du niveau d'une compétition (Débutant / Confirmé). */
.comp-level {
  display: inline-block; margin-top: .5rem; font-weight: 700;
  font-size: .72rem; letter-spacing: .04em; text-transform: uppercase;
  padding: .28rem .6rem; border-radius: 999px;
}
.comp-level--beginner { background: rgba(46,125,50,.14); color: #2e7d32; }
.comp-level--confirmed { background: rgba(192,57,43,.12); color: var(--brand-700); }
.comp-admin { display: flex; gap: .5rem; align-items: center; }
.comp-admin .admin-del, .comp-admin .admin-edit { position: static; width: 32px; height: 32px; }
.comp-lock {
  display: inline-flex; align-items: center; gap: .35rem; cursor: pointer;
  border: 1px solid var(--line); background: var(--cream); color: var(--brand-800);
  border-radius: 999px; padding: .4rem .85rem; font-size: .8rem; font-weight: 600;
}
.comp-lock:hover { background: var(--gold-400); color: var(--brand-900); }
.comp-lock svg { width: 14px; height: 14px; }
.comp-slots {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}
.comp-slot {
  display: flex; flex-direction: column; background: var(--paper);
  border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 1rem 1.1rem;
}
.comp-slot.mine { border-color: var(--brand-600); box-shadow: 0 0 0 2px rgba(192,57,43,.12); }
.comp-slot__head { display: flex; align-items: baseline; justify-content: space-between; gap: .5rem; margin-bottom: .6rem; }
.comp-slot__head h4 { font-size: 1.05rem; color: var(--brand-900); margin: 0; }
.comp-slot__count { font-size: .78rem; color: var(--ink-soft); white-space: nowrap; }
.comp-members { list-style: none; padding: 0; margin: 0 0 .9rem; flex: 1; display: flex; flex-direction: column; gap: .25rem; }
.comp-members li { display: flex; align-items: center; gap: .4rem; font-size: .92rem; color: var(--ink); }
.comp-members li.me { font-weight: 600; color: var(--brand-800); }
.comp-members li.me::before { content: "★"; color: var(--gold-500); font-size: .8rem; }
.comp-kick {
  border: none; background: rgba(192,57,43,.85); color: #fff; cursor: pointer;
  width: 18px; height: 18px; border-radius: 50%; font-size: .8rem; line-height: 1; padding: 0;
}
.comp-kick:hover { background: var(--brand-700); }
.comp-noone { font-size: .88rem; margin: 0 0 .9rem; flex: 1; }
.comp-btn { align-self: flex-start; padding: .5rem 1rem; font-size: .85rem; }
.comp-leave { background: var(--cream); color: var(--brand-800); }
.comp-leave:hover { background: var(--gold-400); color: var(--brand-900); }
.comp-slot-row .cs-date, .comp-slot-row .cs-time { flex: 0 0 auto; }
.comp-slot-row .cs-note { flex: 1 1 140px; min-width: 120px; }
.comp-dates { display: flex; gap: .8rem; }
.comp-dates label { flex: 1; }
.comp-export {
  display: inline-flex; align-items: center; gap: .35rem; cursor: pointer;
  border: none; background: var(--gold-500); color: var(--brand-900);
  border-radius: 999px; padding: .4rem .85rem; font-size: .8rem; font-weight: 700;
}
.comp-export:hover { background: var(--gold-400); }
.comp-export svg { width: 14px; height: 14px; }
.export-mail {
  width: 100%; min-height: 240px; margin-top: .4rem; padding: .9rem 1rem;
  font: inherit; line-height: 1.6; color: var(--ink); background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  white-space: pre-wrap; resize: vertical;
}
.export-mail:focus { outline: none; border-color: var(--gold-500); box-shadow: 0 0 0 3px rgba(212,162,58,.2); }
.export-actions { display: flex; align-items: center; gap: .2rem; margin-top: 1rem; }
.copy-ok { margin-left: .7rem; color: var(--brand-700); font-weight: 600; font-size: .9rem; }

/* Tableau des membres : actions par ligne.
   NB : la cellule reste une vraie cellule de tableau (pas de display:flex sur le
   <td>, sinon la bordure de ligne et le padding cassent) ; le flex va sur le div. */
.m-actions { white-space: nowrap; }
.m-actions__row { display: flex; gap: .4rem; align-items: center; justify-content: flex-end; }
.m-edit {
  border: none; background: var(--cream); color: var(--brand-800); cursor: pointer;
  width: 28px; height: 28px; border-radius: 50%; font-size: .85rem; line-height: 1;
}
.m-edit:hover { background: var(--gold-400); color: var(--brand-900); }
.members-table .m-edit { position: static; }
.m-adh {
  border: 1px solid var(--line); background: var(--cream); color: var(--brand-800);
  cursor: pointer; font-size: .72rem; font-weight: 600; padding: .05rem .45rem;
  border-radius: 999px; margin-left: .35rem; vertical-align: middle;
}
.m-adh:hover { background: var(--gold-400); color: var(--brand-900); }

/* Formulaires : ligne de boutons, bouton secondaire, message de succès */
.form-row { display: flex; gap: .6rem; align-items: center; margin-top: .4rem; }
.btn-ghost { background: var(--cream); color: var(--brand-800); }
.btn-ghost:hover { background: var(--gold-400); color: var(--brand-900); }
.form-ok { margin: 0; color: var(--brand-700); font-weight: 600; font-size: .9rem; }

/* Champ mot de passe avec bouton afficher/masquer */
.pw-field { position: relative; display: block; }
.pw-field input { width: 100%; padding-right: 2.8rem; }
.pw-eye {
  position: absolute; top: 50%; right: .5rem; transform: translateY(-50%);
  display: flex; align-items: center; justify-content: center;
  border: none; background: transparent; cursor: pointer; padding: .2rem; color: var(--ink-soft);
}
.pw-eye:hover { color: var(--brand-700); }
.pw-eye svg { width: 18px; height: 18px; }

/* Import CSV */
.import-actions { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: .4rem; }
.import-list { margin: .3rem 0 0; padding-left: 1.2rem; font-size: .88rem; color: var(--ink-soft); }
.import-list li { margin: .2rem 0; }

/* Familles : roster (lecture seule) + édition des archers */
.roster-list { list-style: none; padding: 0; margin: .2rem 0 1rem; }
.roster-list li { padding: .4rem 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.member-list { display: flex; flex-direction: column; gap: .5rem; margin-bottom: .6rem; }
.member-row {
  display: flex; gap: .4rem; flex-wrap: wrap; align-items: center;
  padding: .6rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
}
.member-row input, .member-row select { font: inherit; padding: .45rem .55rem; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.member-row .mf-firstName, .member-row .mf-surname { flex: 1 1 120px; }
.member-row .mf-licence { flex: 1 1 90px; }
.member-row .mf-category, .member-row .mf-bowType, .member-row .mf-level { flex: 1 1 110px; }

/* Sélection des archers d'une famille pour un créneau */
.comp-pick { display: flex; flex-direction: column; gap: .4rem; margin-top: .2rem; }
.comp-pick__row { display: flex; align-items: center; gap: .5rem; font-size: .92rem; cursor: pointer; }
.comp-pick__row input { width: auto; accent-color: var(--brand-600); }
.comp-pick .comp-apply { align-self: flex-start; margin-top: .3rem; padding: .45rem 1rem; font-size: .85rem; }
.comp-pick__left { margin-left: auto; font-size: .8rem; color: var(--ink-soft); white-space: nowrap; }
.comp-pick__row.is-blocked { opacity: .6; cursor: not-allowed; }
.comp-pick__row.is-blocked .comp-pick__left { color: var(--brand-700); font-weight: 600; }

/* Bandeau du quota d'inscriptions restantes (page Compétitions) */
.comp-quota {
  display: flex; flex-wrap: wrap; align-items: center; gap: .55rem;
  padding: .7rem 1rem; margin-bottom: 1.6rem;
  background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius-sm);
}
.comp-quota__label {
  font-weight: 700; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em;
  color: var(--brand-700); margin-right: .2rem;
}
.comp-quota__item {
  font-size: .9rem; background: #fff; border: 1px solid var(--line);
  padding: .25rem .7rem; border-radius: 999px;
}
.comp-quota__item strong { color: var(--brand-800); }
.comp-quota__item.is-zero { background: rgba(192,57,43,.1); border-color: rgba(192,57,43,.3); color: var(--brand-700); }

/* Réglage club sur la page Membres : limite d'inscriptions par archer */
.members-setting { display: flex; align-items: center; flex-wrap: wrap; gap: .6rem; margin-bottom: 1.2rem; }
.members-setting label { font-weight: 600; font-size: .9rem; }
.members-setting input { width: 84px; padding: .45rem .55rem; border: 1px solid var(--line); border-radius: var(--radius-sm); font: inherit; }
.reg-limit-ok, .home-stats-ok { color: #2e7d32; font-weight: 600; font-size: .85rem; }
.members-setting .hs-item { display: inline-flex; align-items: center; gap: .35rem; font-weight: 500; }

/* ---------- Page Suggestion : proposer du contenu + file de modération ---------- */
.sugg-empty { padding: 1.4rem 1rem; background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius-sm); color: var(--ink-soft); }
.sugg-propose {
  display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.4rem;
  padding: 1.2rem 1.4rem; background: var(--cream);
  border: 1px solid var(--line); border-radius: var(--radius-sm);
}
.sugg-propose p { margin: 0; flex: 1 1 260px; color: var(--ink-soft); font-size: .95rem; }
.sugg-propose__btns { display: flex; flex-wrap: wrap; gap: .6rem; }

.sugg-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.2rem; }
.sugg-card {
  display: flex; flex-direction: column; gap: .7rem;
  padding: 1.1rem 1.2rem; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  box-shadow: 0 1px 3px rgba(0,0,0,.04);
}
.sugg-card__head { display: flex; align-items: center; justify-content: space-between; gap: .6rem; flex-wrap: wrap; }
.sugg-type {
  font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
  padding: .2rem .6rem; border-radius: 999px;
  background: var(--brand-50, rgba(192,57,43,.08)); color: var(--brand-700);
}
.sugg-type--event { background: rgba(224,182,90,.18); color: #8a6a14; }
.sugg-author { font-size: .8rem; color: var(--ink-soft); }
.sugg-card__body h4 { margin: .1rem 0; font-size: 1.05rem; }
.sugg-card__body p { margin: .3rem 0; font-size: .92rem; color: var(--ink-soft); white-space: pre-wrap; }
.sugg-meta { display: inline-block; font-size: .8rem; color: var(--ink-soft); margin-right: .5rem; }
.sugg-tag {
  display: inline-block; font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em;
  color: var(--brand-700); margin-right: .5rem;
}
.sugg-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin-top: auto; padding-top: .4rem; }
.sugg-actions .btn { padding: .4rem .9rem; font-size: .85rem; }
.sugg-status { font-size: .82rem; color: #8a6a14; font-weight: 600; margin-right: auto; }

/* ---------- Inscription / adhésion : statut + demandes de réinscription ---------- */
/* Pastille de statut (réutilisée dans le tableau Membres et la page Inscription) */
.reg-tag {
  display: inline-block; font-size: .74rem; font-weight: 700;
  padding: .15rem .55rem; border-radius: 999px; white-space: nowrap;
}
.reg-tag--on { background: rgba(46,125,50,.12); color: #2e7d32; }
.reg-tag--off { background: rgba(192,57,43,.1); color: var(--brand-700); }
.reg-tag--pending { background: rgba(224,182,90,.2); color: #8a6a14; }
.reg-reset-ok { color: #2e7d32; font-weight: 600; font-size: .85rem; }

.insc-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.2rem; }
.insc-card {
  display: flex; flex-direction: column; gap: .6rem;
  padding: 1.1rem 1.2rem; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  box-shadow: 0 1px 3px rgba(0,0,0,.04);
}
.insc-card__head { display: flex; align-items: center; justify-content: space-between; gap: .6rem; flex-wrap: wrap; }
.insc-card__head strong { font-size: 1.02rem; }
.insc-card__body { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; }
.insc-meta { font-size: .85rem; color: var(--ink-soft); }
.insc-card .btn { padding: .4rem .9rem; font-size: .85rem; }

/* Formulaire de contact : piège à robots + file d'attente des messages reçus.
   Le champ leurre doit être invisible pour l'humain SANS être `display:none`
   (certains robots ignorent les champs masqués) et rester hors du parcours
   clavier — d'où le décalage hors écran plutôt qu'un masquage. */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-msg {
  white-space: pre-wrap; word-break: break-word; margin: 0;
  padding: .7rem .85rem; background: var(--cream);
  border-left: 3px solid var(--gold-500); border-radius: var(--radius-sm);
  font-size: .9rem; color: var(--ink);
}
/* Signale un message dont la notification e-mail n'a pas pu partir : c'est
   précisément le cas où la file d'attente sert de filet de sécurité. */
.contact-warn { color: var(--brand-600); font-weight: 600; }

/* Déclaration FFTA dans la modale de demande */
.decl { background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .8rem 1rem; font-size: .88rem; color: var(--ink-soft); }
.decl p { margin: 0 0 .4rem; font-weight: 600; color: var(--ink); }
.decl ul { margin: 0; padding-left: 1.1rem; }
.decl li { margin: .35rem 0; }
.decl-choice { border: 0; padding: 0; margin: .2rem 0; display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }
.decl-choice legend { font-weight: 600; font-size: .9rem; margin-bottom: .3rem; }
.decl-radio { display: inline-flex; align-items: center; gap: .35rem; font-size: .92rem; cursor: pointer; }
.decl-radio input { width: auto; accent-color: var(--brand-600); }

/* Formulaire d'adhésion public (page Inscription) */
.adh-intro { background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .7rem 1rem; font-size: .88rem; color: var(--ink-soft); margin-bottom: 1.4rem; }
.adh-form { gap: 1.4rem; }
.adh-sec { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 1rem 1.1rem 1.2rem; margin: 0; display: flex; flex-direction: column; gap: .7rem; }
.adh-sec legend { font-weight: 600; font-size: 1rem; color: var(--brand-700); padding: 0 .4rem; }
.adh-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .8rem 1rem; }
.adh-grid .adh-full { grid-column: 1 / -1; }
.field-hint { font-weight: 400; font-size: .78rem; color: var(--ink-soft); }
.adh-substack { display: flex; flex-direction: column; gap: .7rem; }
.adh-choices { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: .5rem .9rem; }
.adh-choices .decl-radio { align-items: flex-start; }
.adh-thanks { background: rgba(46,125,50,.08); border: 1px solid rgba(46,125,50,.3); border-radius: var(--radius-sm); padding: 1.4rem 1.5rem; }
.adh-thanks h3 { margin: 0 0 .5rem; color: #2e7d32; }
.adh-thanks p { margin: 0; }
.adh-details { font-size: .85rem; }
.adh-details summary { cursor: pointer; color: var(--brand-700); font-weight: 600; }
.adh-table { width: 100%; border-collapse: collapse; margin-top: .5rem; }
.adh-table th, .adh-table td { text-align: left; vertical-align: top; padding: .25rem .5rem; border-bottom: 1px solid var(--line); font-size: .82rem; }
.adh-table th { color: var(--ink-soft); font-weight: 600; white-space: nowrap; width: 38%; }
.creds-box { display: flex; flex-direction: column; gap: .5rem; margin: .8rem 0; }
.creds-box > div { display: flex; flex-direction: column; gap: .2rem; }
.creds-box span { font-size: .78rem; color: var(--ink-soft); }
.creds-box code { background: var(--cream); border: 1px solid var(--line); border-radius: 6px; padding: .4rem .6rem; font-size: 1rem; }
@media (max-width: 560px) { .adh-grid { grid-template-columns: 1fr; } }
