/* ==========================================================================
   Vélo Club Saint-Martin-le-Vinoux — Design system
   Charte issue du logo officiel du club : magenta, cyan, encre.
   ========================================================================== */

:root {
  /* Couleurs de marque, échantillonnées sur le logo du club */
  --magenta: #ec008c;
  --magenta-dark: #c2006f;
  --magenta-soft: #ffe6f4;
  --cyan: #00a0dc;
  --cyan-dark: #0079a8;
  --cyan-soft: #e2f4fd;

  /* Neutres */
  --ink: #17171d;
  --ink-2: #2b2b35;
  --slate: #5b5b6b;
  --mist: #8b8b9b;
  --line: #e6e6ee;
  --paper: #ffffff;
  --paper-2: #f7f7fb;

  --fg: var(--ink);
  --fg-muted: var(--slate);
  --bg: var(--paper);
  --bg-alt: var(--paper-2);
  --border: var(--line);
  --card: #ffffff;
  --card-shadow: 0 1px 2px rgba(23, 23, 29, .04), 0 12px 32px -12px rgba(23, 23, 29, .12);
  --card-shadow-hover: 0 2px 4px rgba(23, 23, 29, .05), 0 24px 48px -16px rgba(23, 23, 29, .2);

  /* Typo */
  --font-display: "Outfit", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;

  /* Rythme */
  --radius: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;
  --wrap: 1180px;
  --gap: clamp(1rem, 3vw, 2rem);
  --section-y: clamp(3.5rem, 9vw, 7rem);

  --header-h: 76px;
  --ease: cubic-bezier(.2, .7, .3, 1);
}

/* Le site est volontairement en thème clair : on neutralise le mode sombre
   automatique du navigateur pour garder un rendu blanc partout. */
:root { color-scheme: light; }

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 1rem); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.02em;
  margin: 0 0 .5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); }
h2 { font-size: clamp(1.9rem, 4.2vw, 3rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); }
p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

/* ---------- Utilitaires ---------- */
.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.section { padding-block: var(--section-y); }
.section--alt { background: var(--bg-alt); }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--fg-muted); max-width: 62ch; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }
.stack > * + * { margin-top: 1rem; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--font-display); font-weight: 600;
  font-size: .78rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--magenta); margin-bottom: 1rem;
}
.eyebrow::before {
  content: ""; width: 26px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--magenta), var(--cyan));
}
.eyebrow--center { justify-content: center; }

.section-head { margin-bottom: clamp(2rem, 4vw, 3.25rem); }

/* ---------- Boutons ---------- */
.btn {
  --btn-bg: var(--magenta);
  --btn-fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .85rem 1.6rem;
  font-family: var(--font-display); font-weight: 600; font-size: .98rem;
  color: var(--btn-fg); background: var(--btn-bg);
  border: 1px solid transparent; border-radius: var(--radius-pill);
  text-decoration: none; cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease);
  box-shadow: 0 10px 24px -12px color-mix(in srgb, var(--btn-bg) 80%, transparent);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -12px color-mix(in srgb, var(--btn-bg) 85%, transparent); }
.btn:active { transform: translateY(0); }
.btn--cyan { --btn-bg: var(--cyan); }
.btn--ghost {
  --btn-bg: transparent; --btn-fg: var(--fg);
  border-color: var(--border); box-shadow: none;
}
.btn--ghost:hover { border-color: var(--magenta); color: var(--magenta); box-shadow: none; }
.btn--light { --btn-bg: rgba(255, 255, 255, .12); --btn-fg: #fff; border-color: rgba(255, 255, 255, .35); backdrop-filter: blur(8px); }
.btn--light:hover { --btn-bg: rgba(255, 255, 255, .22); }
.btn--sm { padding: .6rem 1.15rem; font-size: .88rem; }

/* ---------- En-tête ---------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 100;
  height: var(--header-h);
  display: flex; align-items: center;
  transition: background .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
  border-bottom: 1px solid transparent;
}
.header.is-solid {
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom-color: var(--border);
}
.header__inner { display: flex; align-items: center; gap: 1.25rem; width: min(100% - 2.5rem, 1320px); margin-inline: auto; }

.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; margin-right: auto; }
.brand img { height: 46px; width: auto; }
.brand__txt { display: none; font-family: var(--font-display); line-height: 1.05; }
.brand__txt strong { display: block; font-size: 1rem; font-weight: 800; letter-spacing: -.01em; }
.brand__txt span { font-size: .72rem; letter-spacing: .11em; text-transform: uppercase; color: var(--fg-muted); }
@media (min-width: 560px) { .brand__txt { display: block; } }

.nav { display: none; }
@media (min-width: 1080px) {
  .nav { display: flex; align-items: center; gap: .15rem; }
  .nav a {
    position: relative; padding: .55rem .8rem; text-decoration: none;
    font-family: var(--font-display); font-weight: 500; font-size: .93rem;
    color: var(--fg-muted); border-radius: 10px;
    transition: color .2s var(--ease), background .2s var(--ease);
  }
  .nav a:hover { color: var(--fg); background: var(--bg-alt); }
  .nav a[aria-current="page"] { color: var(--fg); font-weight: 600; }
  .nav a[aria-current="page"]::after {
    content: ""; position: absolute; left: .8rem; right: .8rem; bottom: .25rem;
    height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--magenta), var(--cyan));
  }
}
.header .btn { display: none; }
@media (min-width: 1080px) { .header .btn { display: inline-flex; } }

/* Burger */
.burger {
  display: grid; place-content: center; gap: 5px;
  width: 46px; height: 46px; padding: 0;
  background: var(--bg-alt); border: 1px solid var(--border); border-radius: 12px; cursor: pointer;
}
.burger span { display: block; width: 20px; height: 2px; border-radius: 2px; background: var(--fg); transition: transform .3s var(--ease), opacity .2s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (min-width: 1080px) { .burger { display: none; } }

/* Menu mobile */
.mobile-nav {
  position: fixed; inset: var(--header-h) 0 0; z-index: 99;
  background: var(--bg); padding: 1.5rem 1.25rem 3rem;
  overflow-y: auto;
  display: flex; flex-direction: column; gap: .25rem;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
}
.mobile-nav.is-open { opacity: 1; visibility: visible; transform: none; }
.mobile-nav a {
  padding: .95rem .5rem; text-decoration: none;
  font-family: var(--font-display); font-weight: 600; font-size: 1.2rem;
  border-bottom: 1px solid var(--border);
}
.mobile-nav a[aria-current="page"] { color: var(--magenta); }
.mobile-nav .btn { margin-top: 1.5rem; align-self: flex-start; }
body.nav-open { overflow: hidden; }

/* ---------- Héros (thème clair) ----------
   Les photos d'origine sont de petite définition : on les affiche dans un
   cadre contenu plutôt qu'en fond plein écran, pour éviter la pixellisation. */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  padding: calc(var(--header-h) + clamp(2.5rem, 6vw, 4.5rem)) 0 clamp(3rem, 7vw, 5rem);
  background: var(--bg);
}
.hero::before {
  content: ""; position: absolute; inset: -30% -20% auto; height: 150%; z-index: -1;
  background:
    radial-gradient(46% 52% at 88% 18%, rgba(0, 160, 220, .16), transparent 68%),
    radial-gradient(44% 50% at 6% 78%, rgba(236, 0, 140, .14), transparent 68%);
}
.hero__inner { display: grid; gap: clamp(2.5rem, 5vw, 4rem); align-items: center; grid-template-columns: 1fr; }
@media (min-width: 940px) { .hero__inner { grid-template-columns: 1.05fr .95fr; } }

.hero h1 { max-width: 15ch; margin-bottom: .35em; }
.hero h1 em {
  font-style: normal;
  background: linear-gradient(100deg, var(--magenta), var(--cyan));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__sub { font-size: clamp(1.05rem, 1.7vw, 1.25rem); max-width: 52ch; color: var(--fg-muted); margin-bottom: 2rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; }

/* Visuel du héros : photo cadrée + pastille décorative */
.hero__media { position: relative; }
.hero__media img {
  width: 100%; border-radius: var(--radius-lg);
  aspect-ratio: 4 / 3; object-fit: cover; object-position: center 35%;
  box-shadow: 0 24px 60px -24px rgba(23, 23, 29, .38);
}
.hero__media::after {
  content: ""; position: absolute; inset: auto -14px -14px auto; z-index: -1;
  width: 62%; height: 62%; border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--magenta), var(--cyan)); opacity: .18;
}
.hero__caption {
  position: absolute; left: 1rem; right: 1rem; bottom: 1rem;
  padding: .7rem 1rem; border-radius: var(--radius);
  background: rgba(255, 255, 255, .9); backdrop-filter: blur(10px);
  font-size: .85rem; font-weight: 500; color: var(--ink);
  box-shadow: 0 8px 24px -12px rgba(23, 23, 29, .4);
}

.hero__stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1rem 2rem; margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding-top: 1.75rem; border-top: 1px solid var(--border);
}
.hero__stats dt {
  font-family: var(--font-display); font-size: clamp(1.9rem, 4vw, 2.7rem); font-weight: 800; line-height: 1;
  background: linear-gradient(120deg, var(--magenta), var(--cyan));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__stats dd { margin: .35rem 0 0; font-size: .82rem; letter-spacing: .07em; text-transform: uppercase; color: var(--fg-muted); }

/* ---------- Bandeau d'alerte ---------- */
.alert-bar {
  background: linear-gradient(90deg, var(--magenta), var(--cyan));
  color: #fff; font-size: .93rem;
}
.alert-bar .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; padding: .8rem 0; }
.alert-bar strong { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; }
.alert-bar a { color: #fff; }

/* ---------- Cartes ---------- */
.grid { display: grid; gap: var(--gap); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.card {
  display: flex; flex-direction: column;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--card-shadow); overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.card--link { text-decoration: none; }
.card--link:hover { transform: translateY(-5px); box-shadow: var(--card-shadow-hover); border-color: color-mix(in srgb, var(--magenta) 35%, var(--border)); }
.card__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-alt); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card--link:hover .card__media img { transform: scale(1.06); }
.card__body { padding: 1.5rem; display: flex; flex-direction: column; gap: .6rem; flex: 1; }
.card__body h3 { margin: 0; }
.card__body p { color: var(--fg-muted); font-size: .97rem; }
.card__meta { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--magenta); font-weight: 600; font-family: var(--font-display); }
.card__more { margin-top: auto; padding-top: .5rem; font-family: var(--font-display); font-weight: 600; font-size: .92rem; color: var(--magenta); display: inline-flex; align-items: center; gap: .4rem; }
.card__more::after { content: "→"; transition: transform .25s var(--ease); }
.card--link:hover .card__more::after { transform: translateX(4px); }

/* Carte icône */
.icard { padding: 1.75rem; gap: .75rem; }
.icard__ico {
  width: 48px; height: 48px; display: grid; place-content: center;
  border-radius: 14px; background: var(--magenta-soft); color: var(--magenta);
  margin-bottom: .35rem;
}
.icard__ico svg { width: 24px; height: 24px; }
.icard--cyan .icard__ico { background: var(--cyan-soft); color: var(--cyan); }

/* ---------- Split (texte + image) ---------- */
.split { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; grid-template-columns: 1fr; }
/* Quand une colonne est nettement plus longue que l'autre, on aligne en haut
   plutôt que de centrer : cela évite un grand vide sous le texte court. */
.split--top { align-items: start; }
.split--top .split__text { position: sticky; top: calc(var(--header-h) + 2rem); }
@media (max-width: 899px) { .split--top .split__text { position: static; } }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } .split--wide-text { grid-template-columns: 1.15fr 1fr; } }
.split--reverse .split__media { order: -1; }
@media (min-width: 900px) { .split--reverse .split__media { order: 0; } .split--reverse .split__text { order: 1; } }
.split__media img { border-radius: var(--radius-lg); box-shadow: var(--card-shadow); width: 100%; }
.split__media { position: relative; }
.split__media::before {
  content: ""; position: absolute; inset: auto -18px -18px auto; width: 55%; height: 55%; z-index: -1;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--magenta), var(--cyan)); opacity: .16;
}

/* ---------- Listes de documents ---------- */
.doclist { display: grid; gap: .6rem; padding: 0; margin: 0; list-style: none; }
.doclist a {
  display: flex; align-items: center; gap: 1rem;
  padding: 1rem 1.15rem; text-decoration: none;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  transition: border-color .2s var(--ease), transform .2s var(--ease), background .2s var(--ease);
}
.doclist a:hover { border-color: var(--magenta); transform: translateX(4px); }
.doclist .doc__ico {
  flex: none; width: 40px; height: 40px; display: grid; place-content: center;
  border-radius: 10px; background: var(--magenta-soft); color: var(--magenta); font-weight: 700;
  font-family: var(--font-display); font-size: .7rem; letter-spacing: .03em;
}
.doclist .doc__ico--cyan { background: var(--cyan-soft); color: var(--cyan); }
.doclist .doc__txt { flex: 1; min-width: 0; }
.doclist .doc__txt strong { display: block; font-family: var(--font-display); font-weight: 600; font-size: 1rem; }
.doclist .doc__txt span { font-size: .85rem; color: var(--fg-muted); }
.doclist .doc__go { color: var(--mist); flex: none; transition: color .2s, transform .2s var(--ease); }
.doclist a:hover .doc__go { color: var(--magenta); transform: translateX(3px); }

/* ---------- Timeline / agenda ---------- */
.agenda { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.agenda li {
  display: grid; grid-template-columns: 92px 1fr; gap: 1.25rem; align-items: start;
  padding: 1.15rem 0; border-bottom: 1px solid var(--border);
}
.agenda li:first-child { border-top: 1px solid var(--border); }
.agenda .date {
  font-family: var(--font-display); font-weight: 700; font-size: .82rem;
  letter-spacing: .06em; text-transform: uppercase; color: var(--magenta);
  padding-top: .15rem;
}
.agenda h3 { font-size: 1.08rem; margin: 0 0 .2rem; }
.agenda p { font-size: .93rem; color: var(--fg-muted); margin: 0; }
.agenda .tag {
  display: inline-block; margin-top: .45rem; padding: .18rem .6rem;
  font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 600;
  border-radius: var(--radius-pill); background: var(--cyan-soft); color: var(--cyan-dark);
}
/* ---------- Bandeau CTA ---------- */
.cta {
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: var(--radius-lg); padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1.5rem, 5vw, 4rem);
  background: #fff; border: 1px solid var(--border);
  box-shadow: var(--card-shadow); text-align: center;
}
.cta::before {
  content: ""; position: absolute; inset: -50% -10% auto; height: 200%; z-index: -1;
  background: radial-gradient(46% 48% at 16% 26%, rgba(236, 0, 140, .16), transparent 68%),
              radial-gradient(46% 48% at 86% 72%, rgba(0, 160, 220, .16), transparent 68%);
}
.cta p { color: var(--fg-muted); max-width: 58ch; margin-inline: auto; }
.cta .eyebrow { justify-content: center; }
.cta__actions { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; margin-top: 1.75rem; }

/* ---------- Liens externes ---------- */
.linkgrid { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); list-style: none; padding: 0; margin: 0; }
.linkgrid a {
  display: flex; align-items: center; justify-content: space-between; gap: .75rem;
  padding: .95rem 1.15rem; text-decoration: none; font-weight: 500; font-size: .96rem;
  border: 1px solid var(--border); border-radius: var(--radius); background: var(--card);
  transition: border-color .2s, color .2s, transform .2s var(--ease);
}
.linkgrid a:hover { border-color: var(--cyan); color: var(--cyan); transform: translateY(-2px); }
.linkgrid a::after { content: "↗"; color: var(--mist); font-size: .95rem; }
.linkgrid a:hover::after { color: var(--cyan); }

/* ---------- Galerie ---------- */
.gallery { display: grid; gap: .9rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.gallery figure { margin: 0; border-radius: var(--radius); overflow: hidden; position: relative; cursor: zoom-in; background: var(--bg-alt); }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .6s var(--ease); }
.gallery figure:hover img { transform: scale(1.05); }
.gallery figcaption {
  position: absolute; inset: auto 0 0; padding: 2.5rem .9rem .8rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, .78));
  color: #fff; font-size: .85rem; font-weight: 500;
}

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 200; display: none;
  place-content: center; padding: 2rem;
  background: rgba(8, 8, 12, .92); backdrop-filter: blur(6px);
}
.lightbox.is-open { display: grid; }
.lightbox img { max-width: min(94vw, 1100px); max-height: 86vh; width: auto; border-radius: var(--radius); }
.lightbox__cap { color: #fff; text-align: center; margin-top: 1rem; font-size: .95rem; }
.lightbox__close {
  position: absolute; top: 1.25rem; right: 1.25rem;
  width: 44px; height: 44px; border-radius: 50%; cursor: pointer;
  background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .3);
  color: #fff; font-size: 1.4rem; line-height: 1;
}

/* ---------- Tableau ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--card); }
table { width: 100%; border-collapse: collapse; min-width: 480px; }
th, td { padding: .95rem 1.15rem; text-align: left; border-bottom: 1px solid var(--border); font-size: .96rem; }
th { font-family: var(--font-display); font-weight: 600; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--fg-muted); background: var(--bg-alt); }
tbody tr:last-child td { border-bottom: none; }

/* ---------- Bloc note ---------- */
.note {
  border-left: 3px solid var(--magenta); background: var(--magenta-soft);
  padding: 1.25rem 1.5rem; border-radius: 0 var(--radius) var(--radius) 0;
}
.note--cyan { border-left-color: var(--cyan); background: var(--cyan-soft); }
.note strong { font-family: var(--font-display); }

/* ---------- En-tête de page interne ---------- */
.pagehead {
  position: relative; isolation: isolate; overflow: hidden;
  padding: calc(var(--header-h) + clamp(3rem, 7vw, 4.5rem)) 0 clamp(2.5rem, 6vw, 4rem);
  background: var(--bg-alt); border-bottom: 1px solid var(--border);
}
.pagehead::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(58% 100% at 4% 100%, rgba(236, 0, 140, .13), transparent 66%),
              radial-gradient(52% 95% at 96% 0%, rgba(0, 160, 220, .13), transparent 64%);
}
.pagehead h1 { margin-bottom: .3em; }
.pagehead p { color: var(--fg-muted); max-width: 60ch; font-size: clamp(1rem, 1.5vw, 1.15rem); }

.breadcrumb { font-size: .85rem; color: var(--mist); margin-bottom: 1.25rem; }
.breadcrumb a { color: inherit; text-decoration: none; }
.breadcrumb a:hover { color: var(--magenta); }

/* ---------- Pied de page ---------- */
.footer {
  background: var(--bg-alt); border-top: 1px solid var(--border);
  color: var(--fg-muted); padding: clamp(3rem, 6vw, 4.5rem) 0 2rem; font-size: .94rem;
}
.footer__grid { display: grid; gap: 2.5rem; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.footer h4 { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--fg); margin-bottom: 1rem; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.footer a { color: inherit; text-decoration: none; transition: color .2s; }
.footer a:hover { color: var(--magenta); }
.footer__brand img { height: 68px; margin-bottom: 1rem; }
.footer__bottom {
  margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--border);
  display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; justify-content: space-between;
  font-size: .85rem; color: var(--mist);
}
.footer__partners { display: flex; align-items: center; gap: 1.25rem; margin-top: 1.25rem; }
.footer__partners img { height: 44px; width: auto; }

/* ---------- Animations d'apparition ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal:nth-child(2) { transition-delay: .08s; }
.reveal:nth-child(3) { transition-delay: .16s; }
.reveal:nth-child(4) { transition-delay: .24s; }

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

/* ---------- Bouton retour en haut ---------- */
.to-top {
  position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 90;
  width: 46px; height: 46px; border-radius: 50%; cursor: pointer;
  border: 1px solid var(--border); background: var(--card); color: var(--fg);
  box-shadow: var(--card-shadow); display: grid; place-content: center;
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }

/* ---------- Espace membres ---------- */
.lock-screen { max-width: 460px; margin-inline: auto; }
.lock-card { padding: clamp(1.75rem, 4vw, 2.5rem); text-align: center; }
.lock-card__ico {
  width: 62px; height: 62px; margin: 0 auto 1.25rem; border-radius: 18px;
  display: grid; place-content: center; background: var(--magenta-soft); color: var(--magenta);
}
.field { text-align: left; margin-bottom: 1rem; }
.field label { display: block; font-family: var(--font-display); font-weight: 600; font-size: .85rem; margin-bottom: .4rem; }
.field input {
  width: 100%; padding: .85rem 1rem; font: inherit; color: var(--fg);
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus { outline: none; border-color: var(--magenta); box-shadow: 0 0 0 3px color-mix(in srgb, var(--magenta) 18%, transparent); }
.form-error { color: var(--magenta); font-size: .9rem; margin-top: .75rem; min-height: 1.4em; font-weight: 500; }
.hint { font-size: .85rem; color: var(--fg-muted); margin-top: 1.25rem; }
[hidden] { display: none !important; }

/* Focus visible global */
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }
