/* ============================================================
   Self-hosted fonts - RCA Philia (generated by scripts/fetch-fonts.ps1)
   Do not edit by hand; re-run the script to add weights.
   ============================================================ */

@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('../fonts/montserrat-300-normal.woff2') format('woff2');
}

@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/montserrat-400-normal.woff2') format('woff2');
}

@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/montserrat-500-normal.woff2') format('woff2');
}

@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/montserrat-600-normal.woff2') format('woff2');
}

@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/montserrat-700-normal.woff2') format('woff2');
}

@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('../fonts/montserrat-800-normal.woff2') format('woff2');
}

@font-face {
  font-family: 'Playfair Display';
  font-style: italic;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/playfairdisplay-600-italic.woff2') format('woff2');
}

@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/playfairdisplay-600-normal.woff2') format('woff2');
}

@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/playfairdisplay-700-normal.woff2') format('woff2');
}


/* ==============================================================
   Rotary Club Abidjan Philia — rca-philia.club
   Design system v2 : animations, glassmorphism, illustrations
   Charte : bleu #313385 / or #FDB813 / azur #005DAA / fond #f9fafb
   ============================================================== */

:root {
  --rotary-blue: #313385;
  --rotary-blue-dark: #20225C;
  --rotary-blue-deep: #16173D;
  --rotary-azure: #005DAA;
  --rotary-gold: #FDB813;
  --rotary-gold-dark: #D99A00;
  --ink: #1C2333;
  --ink-soft: #4A5468;
  --paper: #FFFFFF;
  --paper-warm: #f9fafb;
  --line: #E5E7EB;
  --ok: #1B8A5A;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(22, 23, 61, 0.08);
  --shadow-lg: 0 24px 60px rgba(22, 23, 61, 0.16);
  --shadow-gold: 0 14px 40px rgba(253, 184, 19, 0.35);
  --grad-blue: linear-gradient(135deg, #20225C, #313385 55%, #005DAA);
  --grad-gold: linear-gradient(135deg, #FDB813, #FFCE54);
  --font-display: "Playfair Display", Georgia, serif;
  --font-body: "Montserrat", "Segoe UI", Arial, sans-serif;
  --ease: cubic-bezier(.22, .8, .32, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper-warm);
  line-height: 1.7;
  font-size: 16px;
  overflow-x: hidden;
}

::selection { background: var(--rotary-gold); color: var(--rotary-blue-dark); }

/* Scrollbar */
::-webkit-scrollbar { width: 11px; }
::-webkit-scrollbar-track { background: var(--paper-warm); }
::-webkit-scrollbar-thumb { background: linear-gradient(var(--rotary-blue), var(--rotary-azure)); border-radius: 8px; border: 3px solid var(--paper-warm); }

img { max-width: 100%; display: block; }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--rotary-blue-dark); line-height: 1.18; }
a { color: var(--rotary-azure); text-decoration: none; }
a:hover { text-decoration: none; }

.container { width: min(1180px, 92%); margin-inline: auto; }
.section { padding: 96px 0; position: relative; }
.section--warm { background: var(--paper-warm); }
.section--white { background: #fff; }
.section--blue {
  background: linear-gradient(140deg, var(--rotary-blue-deep), #232558);
  color: #fff;
}
.section--blue .section-title { color: #fff; }
.section--blue .mot-text { color: #D8DFF5; }
.section--blue .mot-quote { background: rgba(253,184,19,.1); color: #fff; }
.section--blue .mot-sign { color: var(--gold); }
.center { text-align: center; }
.center .section-intro { margin-inline: auto; }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-transform: uppercase;
  letter-spacing: .2em;
  font-size: .74rem;
  font-weight: 700;
  color: var(--rotary-gold-dark);
  margin-bottom: 16px;
}
.kicker::before { content: ""; width: 28px; height: 2px; background: var(--grad-gold); border-radius: 2px; }
.center .kicker::after { content: ""; width: 28px; height: 2px; background: var(--grad-gold); border-radius: 2px; }

.section-title { font-size: clamp(1.8rem, 3.6vw, 2.6rem); margin-bottom: 16px; letter-spacing: -.01em; }
.section-intro { max-width: 730px; color: var(--ink-soft); margin-bottom: 44px; font-size: 1.02rem; }

.text-gradient {
  background: linear-gradient(90deg, var(--rotary-gold), #FFE29A, var(--rotary-gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ============ Boutons ============ */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 32px;
  border-radius: 999px;
  font-weight: 700;
  font-size: .93rem;
  font-family: var(--font-body);
  letter-spacing: .01em;
  border: none;
  cursor: pointer;
  overflow: hidden;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), filter .25s var(--ease);
}
.btn:hover { transform: translateY(-3px); text-decoration: none; }
.btn:active { transform: translateY(-1px) scale(.98); }
.btn::after {
  content: "";
  position: absolute;
  top: 0; left: -80%;
  width: 50%; height: 100%;
  background: linear-gradient(105deg, transparent, rgba(255,255,255,.45), transparent);
  transform: skewX(-20deg);
  transition: left .6s var(--ease);
}
.btn:hover::after { left: 130%; }
.btn--gold { background: var(--grad-gold); color: var(--rotary-blue-dark); box-shadow: var(--shadow-gold); }
.btn--gold:hover { filter: brightness(1.05); box-shadow: 0 20px 50px rgba(253,184,19,.5); }
.btn--blue { background: var(--grad-blue); color: #fff; box-shadow: 0 12px 34px rgba(49,51,133,.35); }
.btn--blue:hover { box-shadow: 0 20px 46px rgba(49,51,133,.45); }
.btn--ghost { border: 2px solid rgba(255,255,255,.55); color: #fff; background: rgba(255,255,255,.06); backdrop-filter: blur(6px); }
.btn--ghost:hover { background: rgba(255,255,255,.16); border-color: #fff; }
.btn--outline { border: 2px solid var(--rotary-blue); color: var(--rotary-blue); background: transparent; box-shadow: none; }
.btn--outline:hover { background: var(--rotary-blue); color: #fff; }
.btn-row { display: flex; gap: 16px; flex-wrap: wrap; }

.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,.5);
  transform: scale(0);
  animation: ripple .6s ease-out forwards;
  pointer-events: none;
}
@keyframes ripple { to { transform: scale(4); opacity: 0; } }

/* ============ Topbar + Header ============ */
.topbar {
  background: var(--rotary-blue-deep);
  color: #CFE0F5;
  font-size: .8rem;
  padding: 8px 0;
  position: relative;
  z-index: 60;
}
.topbar .container { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.topbar a { color: var(--rotary-gold); font-weight: 600; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 55;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border-bottom: 1px solid rgba(49, 51, 133, .08);
  transition: box-shadow .3s var(--ease), background .3s var(--ease);
}
.site-header.scrolled { box-shadow: 0 10px 40px rgba(22, 23, 61, .12); background: rgba(255,255,255,.95); }
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 0;
  gap: 20px;
  transition: padding .3s var(--ease);
}
.site-header.scrolled .nav { padding: 8px 0; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo {
  height: 52px;
  width: 52px;
  object-fit: contain;
  flex-shrink: 0;
  transition: transform .4s var(--ease);
}
.brand:hover .brand-logo { transform: rotate(8deg) scale(1.06); }
.brand-text strong { display: block; color: var(--rotary-blue-dark); font-size: 1rem; line-height: 1.2; }
.brand-text small { color: var(--ink-soft); font-size: .72rem; letter-spacing: .07em; text-transform: uppercase; }

.nav-links { display: flex; align-items: center; gap: 26px; list-style: none; }
.nav-links a {
  position: relative;
  color: var(--ink);
  font-weight: 600;
  font-size: .9rem;
  padding: 6px 0;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 2px;
  background: var(--grad-gold);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .35s var(--ease);
}
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); transform-origin: left; }
.nav-links a:hover, .nav-links a.active { color: var(--rotary-blue); }
/* Utilisateur connecté : pastille dorée devant « Mon compte » */
.nav-links a.is-logged { color: var(--rotary-blue); font-weight: 700; }
.nav-links a.is-logged::before {
  content: ""; display: inline-block;
  width: 7px; height: 7px; border-radius: 50%;
  background: #FDB813; margin-right: 7px; vertical-align: middle;
  box-shadow: 0 0 0 3px rgba(253,184,19,.25);
}
.nav-links .nav-cta {
  background: var(--grad-blue);
  color: #fff;
  padding: 10px 22px;
  border-radius: 999px;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.nav-links .nav-cta::after { display: none; }
.nav-links .nav-cta:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(49,51,133,.4); color: #fff; }
/* IMPORTANT : sur la page courante, la règle .nav-links a.active force le texte
   en bleu — illisible sur le fond bleu (rendu « bouton noir »). On réimpose le
   blanc pour le bouton CTA actif. */
.nav-links .nav-cta.active { color: #fff; }
.nav-links .nav-cta.active::after { display: none; }
/* ----- Menus déroulants (sous-catégories) — itération 65 ----- */
html { scroll-behavior: smooth; }
.nav-drop { position: relative; }
.nav-drop > .nav-drop-btn { display: inline-flex; align-items: center; gap: 5px; }
.nav-caret { font-size: .6rem; color: var(--rotary-gold); transition: transform .25s var(--ease); }
.nav-drop:hover .nav-caret, .nav-drop:focus-within .nav-caret { transform: rotate(180deg); }
.nav-drop-menu {
  position: absolute; top: calc(100% + 10px); left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 235px; padding: 8px; margin: 0;
  background: #fff; border-radius: 14px; list-style: none;
  border: 1px solid rgba(49,51,133,.10);
  box-shadow: 0 18px 44px rgba(22,23,61,.16);
  opacity: 0; visibility: hidden;
  transition: opacity .22s var(--ease), transform .22s var(--ease), visibility .22s;
  z-index: 80;
}
.nav-drop-menu::before { /* pont invisible pour ne pas perdre le survol */
  content: ""; position: absolute; top: -10px; left: 0; right: 0; height: 10px;
}
.nav-drop:hover .nav-drop-menu, .nav-drop:focus-within .nav-drop-menu {
  opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0);
}
.nav-drop-menu li { border: 0; }
.nav-drop-menu a {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 12px !important; border-radius: 10px;
  font-size: .84rem; font-weight: 600; color: var(--ink);
}
.nav-drop-menu a::after { display: none; }
.nav-drop-menu a:hover { background: rgba(49,51,133,.06); color: var(--rotary-blue); }
.nav-toggle {
  display: none;
  background: none;
  border: 2px solid var(--rotary-blue);
  border-radius: 10px;
  padding: 6px 11px;
  font-size: 1.15rem;
  color: var(--rotary-blue);
  cursor: pointer;
}

/* ============ Hero ============ */
.hero {
  position: relative;
  color: #fff;
  background: var(--grad-blue);
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(900px 480px at 88% -12%, rgba(253, 184, 19, .28), transparent 62%),
    radial-gradient(700px 420px at -10% 115%, rgba(0, 93, 170, .55), transparent 60%);
  animation: heroGlow 12s ease-in-out infinite alternate;
}
@keyframes heroGlow {
  from { opacity: .75; transform: scale(1); }
  to   { opacity: 1;   transform: scale(1.08); }
}
.hero-grid {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(75% 70% at 50% 40%, #000 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(75% 70% at 50% 40%, #000 30%, transparent 100%);
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  pointer-events: none;
  will-change: transform;
  z-index: 0;
}
.orb--gold {
  width: 340px; height: 340px;
  right: -90px; top: -110px;
  background: radial-gradient(circle at 32% 32%, rgba(253,184,19,.85), rgba(253,184,19,.06) 68%);
  animation: floaty 9s ease-in-out infinite;
}
.orb--azure {
  width: 260px; height: 260px;
  left: -80px; bottom: 140px;
  background: radial-gradient(circle at 60% 40%, rgba(0,141,255,.55), rgba(0,141,255,.04) 70%);
  animation: floaty 11s ease-in-out infinite reverse;
}
.orb--ring {
  width: 180px; height: 180px;
  right: 16%; top: 58%;
  background: transparent;
  border: 2px dashed rgba(253,184,19,.4);
  filter: none;
  animation: spinSlow 26s linear infinite;
}
@keyframes floaty {
  0%, 100% { transform: translateY(0) translateX(0); }
  50%      { transform: translateY(-26px) translateX(12px); }
}
@keyframes spinSlow { to { transform: rotate(360deg); } }

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  align-items: center;
  gap: 48px;
  padding: 104px 0 150px;
}
.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.22);
  backdrop-filter: blur(8px);
  border-radius: 999px;
  padding: 8px 20px 8px 10px;
  font-size: .82rem;
  font-weight: 600;
  color: #FDEBC2;
  margin-bottom: 26px;
}
.hero-pill .dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--rotary-gold);
  box-shadow: 0 0 0 0 rgba(253,184,19,.7);
  animation: pulseDot 2s infinite;
}
@keyframes pulseDot {
  70% { box-shadow: 0 0 0 12px rgba(253,184,19,0); }
  100% { box-shadow: 0 0 0 0 rgba(253,184,19,0); }
}
.hero h1 {
  color: #fff;
  font-size: clamp(2.2rem, 4.8vw, 3.6rem);
  margin-bottom: 20px;
  letter-spacing: -.015em;
}
.hero p.lead {
  font-size: 1.1rem;
  color: #D8E1F5;
  max-width: 580px;
  margin-bottom: 34px;
}
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 36px; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.09);
  border: 1px solid rgba(255,255,255,.2);
  backdrop-filter: blur(6px);
  border-radius: 999px;
  padding: 8px 18px;
  font-size: .8rem;
  font-weight: 500;
  color: #EAF1FB;
  transition: background .25s var(--ease), transform .25s var(--ease);
}
.badge:hover { background: rgba(253,184,19,.18); border-color: rgba(253,184,19,.45); transform: translateY(-2px); }

/* Illustration skyline dans le hero */
.hero-visual { position: relative; }
.hero-card-stack { position: relative; z-index: 1; }
.glass-card {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 22px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 24px 60px rgba(10, 12, 40, .45);
  padding: 22px;
  color: #fff;
}
.glass-card h3 { color: #fff; font-size: 1.02rem; margin-bottom: 4px; font-family: var(--font-body); font-weight: 700; }
.glass-card p { font-size: .84rem; color: #C9D6EF; }
.gc-row { display: flex; align-items: center; gap: 14px; }
.gc-icon {
  width: 46px; height: 46px;
  border-radius: 13px;
  background: var(--grad-gold);
  display: grid;
  place-items: center;
  font-size: 1.3rem;
  flex-shrink: 0;
  box-shadow: var(--shadow-gold);
}
.gc-icon.blue { background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.2); box-shadow: none; }
.hero-card-stack .glass-card { margin-bottom: 16px; animation: floaty 7s ease-in-out infinite; }
.hero-card-stack .glass-card:nth-child(2) { animation-delay: -2.4s; margin-left: 36px; }
.hero-card-stack .glass-card:nth-child(3) { animation-delay: -4.8s; }
.skyline-wrap { position: absolute; left: 0; right: 0; bottom: -2px; line-height: 0; z-index: 1; pointer-events: none; }
.skyline-wrap svg { width: 100%; height: clamp(70px, 10vw, 130px); display: block; }

/* Vague de séparation générique */
.wave-divider { line-height: 0; margin-top: -1px; }
.wave-divider svg { width: 100%; height: clamp(40px, 6vw, 90px); display: block; }

/* ---------- Note sous l'agenda (itération 63) ---------- */
.agenda-note {
  grid-column: 1 / -1; text-align: center; font-size: .72rem; color: var(--ink-soft);
  background: rgba(253,184,19,.10); border-radius: 999px; padding: 7px 16px;
  max-width: 560px; margin: -6px auto 0;
}
/* Actions agenda réservées aux membres connectés (itération 70) */
.agenda-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.agenda-actions .btn { font-size: .76rem; padding: 8px 14px; border-radius: 999px; }
.agenda-actions .btn--blue { background: var(--grad-blue); color: #fff; box-shadow: 0 6px 16px rgba(49,51,133,.28); }
.agenda-actions .btn--blue:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(49,51,133,.38); }
.agenda-actions .btn--ghost { border: 1.5px solid rgba(49,51,133,.35); color: var(--rotary-blue); background: #fff; }
.agenda-actions .btn--ghost:hover { background: rgba(49,51,133,.06); }
.agenda-actions button.agenda-done { background: #EAF7F0; border-color: var(--ok); color: var(--ok); cursor: default; }

/* Règles métier agenda (itération 71) : grisé + pagination */
.agenda-grey {
  opacity: .55;
  filter: grayscale(.85);
  background: #F3F4F6 !important;
  border-color: rgba(49,51,133,.08) !important;
}
.agenda-grey h3 { color: var(--ink-soft) !important; }
.agenda-grey .date-chip { background: #E5E7EB; color: #6B7280; }
.agenda-pager {
  grid-column: 1 / -1;
  display: flex; align-items: center; justify-content: center; gap: 14px;
  margin-top: 26px; flex-wrap: wrap;
}
/* Boutons VISIBLES sur fond clair (le .btn--ghost par défaut est blanc ->
   invisible ici) */
.agenda-pager .btn {
  border: 1.5px solid var(--rotary-blue);
  color: var(--rotary-blue);
  background: #fff;
  border-radius: 999px; padding: 9px 18px; font-size: .8rem;
  box-shadow: 0 2px 8px rgba(49,51,133,.12);
  transition: all .22s ease;
}
.agenda-pager .btn:hover:not(:disabled) {
  background: var(--rotary-blue); color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(49,51,133,.30);
}
.agenda-pager .btn:disabled {
  opacity: .45; cursor: not-allowed; transform: none;
  border-color: var(--line); color: var(--ink-soft); background: #F6F7FA;
  box-shadow: none;
}
.agenda-pager-info {
  font-size: .74rem; font-weight: 700; color: var(--rotary-blue-dark);
  background: rgba(49,51,133,.10); border-radius: 999px; padding: 7px 14px;
}
.agenda-warn {
  grid-column: 1 / -1; text-align: center;
  font-size: .78rem; color: #9A6E00; font-weight: 600;
  background: #FFF3D6; border: 1px dashed #E8C96A; border-radius: 12px;
  padding: 10px 16px; margin-top: 12px;
}

/* ============ Actualités (itération 72) ============ */
.news-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.news-media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--paper-warm); }
.news-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.news-card:hover .news-media img { transform: scale(1.05); }
.news-media--empty {
  display: grid; place-items: center; font-size: 2.2rem;
  background: linear-gradient(135deg, #EEF2FF, #FDF6E3); color: var(--rotary-blue);
}
.news-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.news-date { font-size: .7rem; font-weight: 700; color: var(--ink-soft); letter-spacing: .05em; text-transform: uppercase; margin-bottom: 8px; }
.news-body h3 { font-size: 1.08rem; margin-bottom: 8px; }
.news-body p { font-size: .86rem; color: var(--ink-soft); line-height: 1.55; margin-bottom: 14px; }
.news-more {
  margin-top: auto; align-self: flex-start;
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 700; font-size: .82rem; color: var(--rotary-blue);
  text-decoration: none; padding-bottom: 2px;
  background-image: linear-gradient(90deg, var(--rotary-blue), var(--rotary-blue));
  background-repeat: no-repeat; background-size: 0 2px; background-position: 0 100%;
  transition: background-size .3s var(--ease), color .2s var(--ease), gap .25s var(--ease);
}
.news-more:hover { color: var(--rotary-blue-dark); background-size: 100% 2px; gap: 10px; }
.news-more-arrow { transition: transform .25s var(--ease); }
.news-more:hover .news-more-arrow { transform: translateX(3px); }

/* Page de lecture — style Medium / Substack */
.article-back {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 700; font-size: .84rem; color: var(--rotary-blue);
  text-decoration: none; margin-bottom: 26px;
  transition: gap .25s var(--ease), color .2s var(--ease);
}
.article-back:hover { gap: 10px; color: var(--rotary-blue-dark); }
.article { max-width: 760px; margin: 0 auto; }
.article-hero { aspect-ratio: 16 / 9; border-radius: 20px; overflow: hidden; margin-bottom: 34px; box-shadow: var(--shadow-lg); }
.article-hero img { width: 100%; height: 100%; object-fit: cover; }
.article-head { text-align: center; margin-bottom: 34px; }
.article-head h1 {
  font-family: var(--font-display); font-size: clamp(1.7rem, 4.5vw, 2.6rem);
  line-height: 1.15; color: var(--rotary-blue-dark); margin-bottom: 16px;
}
.article-meta {
  display: flex; justify-content: center; gap: 16px; flex-wrap: wrap;
  font-size: .78rem; font-weight: 600; color: var(--ink-soft);
}
.article-body { max-width: 680px; margin: 0 auto; }
.article-body p {
  font-size: 1.04rem; line-height: 1.85; color: #2A2F45; margin-bottom: 22px;
}
.article-body p:first-of-type::first-letter {
  font-family: var(--font-display); font-size: 3.1em; font-weight: 700;
  color: var(--rotary-blue); float: left; line-height: .85; padding-right: 10px;
}
.article-foot { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); text-align: center; }

/* Encart indicateur de succès (page action — itération 72) */
.action-indicator {
  max-width: 680px; margin: 8px auto 0;
  display: flex; align-items: flex-start; gap: 10px;
  background: linear-gradient(120deg, #EEF2FF, #FDF6E3);
  border: 1px solid rgba(49,51,133,.12);
  border-radius: 16px; padding: 16px 20px;
  font-size: .95rem; color: var(--rotary-blue-dark); line-height: 1.6;
}
.action-indicator b { color: var(--rotary-blue); }

/* ============ Marquee valeurs ============ */
.marquee {
  overflow: hidden;
  background: var(--rotary-blue-dark);
  padding: 18px 0;
  border-top: 1px solid rgba(253,184,19,.25);
  border-bottom: 1px solid rgba(253,184,19,.25);
}
.marquee-track {
  display: flex;
  gap: 64px;
  width: max-content;
  animation: marquee 28s linear infinite;
}
.marquee-track span {
  display: inline-flex;
  align-items: center;
  gap: 64px;
  color: #BFCBF2;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.15rem;
  white-space: nowrap;
}
.marquee-track b { color: var(--rotary-gold); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============ Grilles & cartes ============ */
.grid { display: grid; gap: 26px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: var(--grad-gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .45s var(--ease);
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.card:hover::before { transform: scaleX(1); }
.card > * { position: relative; }
.card .icon {
  width: 56px; height: 56px;
  border-radius: 16px;
  background: var(--grad-blue);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 1.55rem;
  margin-bottom: 18px;
  box-shadow: 0 10px 24px rgba(49,51,133,.28);
  transition: transform .4s var(--ease), border-radius .4s var(--ease);
}
.card:hover .icon { transform: rotate(-8deg) scale(1.1); border-radius: 50%; }
.card--gold .icon { background: var(--grad-gold); color: var(--rotary-blue-dark); box-shadow: var(--shadow-gold); }
.card h3 { font-size: 1.16rem; margin-bottom: 10px; }
.card p { color: var(--ink-soft); font-size: .94rem; }

/* ============ Bandeau chiffres ============ */
.stats-band {
  position: relative;
  background:
    radial-gradient(700px 320px at 12% 0%, rgba(253,184,19,.14), transparent 60%),
    var(--rotary-blue-deep);
  color: #fff;
  padding: 76px 0;
  overflow: hidden;
}
.stat { text-align: center; position: relative; }
.stat b {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3rem);
  background: var(--grad-gold);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1.1;
}
.stat span { font-size: .92rem; color: #AEBBE8; }
.stat-sep { width: 1px; height: 74px; background: linear-gradient(transparent, rgba(253,184,19,.5), transparent); justify-self: center; }

/* ============ Citation ============ */
.quote {
  position: relative;
  background: #fff;
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
  padding: 52px 56px 44px;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  color: var(--rotary-blue-dark);
  font-style: italic;
  max-width: 880px;
  margin-inline: auto;
  text-align: center;
  border-top: 4px solid var(--rotary-gold);
}
.quote::before {
  content: "\201C";
  position: absolute;
  top: -34px; left: 50%;
  transform: translateX(-50%);
  font-size: 6rem;
  line-height: 1;
  color: var(--rotary-gold);
  font-family: Georgia, serif;
}
.quote cite {
  display: block;
  margin-top: 18px;
  font-family: var(--font-body);
  font-style: normal;
  font-weight: 600;
  font-size: .86rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ============ Tableaux ============ */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  background: #fff;
}
table { width: 100%; border-collapse: collapse; font-size: .92rem; background: #fff; }
thead th {
  background: var(--grad-blue);
  color: #fff;
  text-align: left;
  padding: 16px 20px;
  font-weight: 700;
  white-space: nowrap;
}
tbody td { padding: 15px 20px; border-top: 1px solid var(--line); vertical-align: top; }
tbody tr { transition: background .2s var(--ease); }
tbody tr:hover { background: #FFF9EC; }
td b { color: var(--rotary-blue-dark); }

/* ============ Timeline ============ */
.timeline { position: relative; padding-left: 34px; }
.timeline::before {
  content: "";
  position: absolute;
  left: 9px; top: 6px; bottom: 6px;
  width: 3px;
  background: linear-gradient(var(--rotary-gold), var(--rotary-blue));
  border-radius: 3px;
}
.timeline li { list-style: none; margin-bottom: 28px; position: relative; }
.timeline li::before {
  content: "";
  position: absolute;
  left: -32px; top: 6px;
  width: 15px; height: 15px;
  border-radius: 50%;
  background: #fff;
  border: 4px solid var(--rotary-blue);
  box-shadow: 0 0 0 5px rgba(49,51,133,.12);
  transition: transform .3s var(--ease), border-color .3s var(--ease);
}
.timeline li:hover::before { transform: scale(1.25); border-color: var(--rotary-gold); }
.timeline b { color: var(--rotary-blue-dark); }
.timeline span.year { font-family: var(--font-display); font-weight: 700; color: var(--rotary-gold-dark); margin-right: 8px; font-size: 1.05em; }

/* ============ Illustrations SVG ============ */
.illustration {
  border-radius: 26px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  line-height: 0;
}
.illustration svg { width: 100%; height: auto; display: block; }
.float-slow { animation: floaty 8s ease-in-out infinite; }

/* ============ Agenda ============ */
.event-card { display: flex; gap: 22px; align-items: flex-start; }
.date-chip {
  flex-shrink: 0;
  width: 78px;
  border-radius: 16px;
  overflow: hidden;
  text-align: center;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
.date-chip .m {
  background: var(--grad-blue);
  color: #fff;
  text-transform: uppercase;
  font-size: .66rem;
  letter-spacing: .1em;
  padding: 7px 4px;
  font-weight: 700;
}
.date-chip .d {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--rotary-blue-dark);
  padding: 8px 0 10px;
  background: #fff;
}
.tag {
  display: inline-block;
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .09em;
  border-radius: 999px;
  padding: 5px 13px;
  margin-bottom: 10px;
}
.tag--reunion { background: #E9EDFB; color: var(--rotary-blue); }
.tag--projet { background: #FFF3D6; color: #9A6E00; }
.tag--district { background: #E7F6EE; color: var(--ok); }
.tag--social { background: #F3EAFB; color: #7A3FA8; }

/* ============ Page hero (pages internes) ============ */
.page-hero {
  position: relative;
  background: var(--grad-blue);
  color: #fff;
  padding: 88px 0 96px;
  overflow: hidden;
  isolation: isolate;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(640px 300px at 90% -20%, rgba(253,184,19,.3), transparent 60%),
    radial-gradient(520px 300px at 0% 120%, rgba(0,93,170,.5), transparent 60%);
}
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(70% 90% at 50% 0%, #000 20%, transparent 100%);
  -webkit-mask-image: radial-gradient(70% 90% at 50% 0%, #000 20%, transparent 100%);
}
.page-hero .kicker { color: var(--rotary-gold); }
.page-hero .kicker::before { background: var(--rotary-gold); }
.page-hero h1 { color: #fff; font-size: clamp(2rem, 4.2vw, 3rem); margin-bottom: 12px; letter-spacing: -.015em; }
.page-hero p { color: #D8E1F5; max-width: 700px; font-size: 1.05rem; }
.breadcrumb { font-size: .8rem; color: #9FAEE0; margin-bottom: 20px; }
.breadcrumb a { color: var(--rotary-gold); }

/* ============ CTA final ============ */
.cta-band {
  position: relative;
  background:
    radial-gradient(600px 280px at 85% 10%, rgba(255,255,255,.35), transparent 60%),
    var(--grad-gold);
  padding: 88px 0;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  width: 380px; height: 380px;
  border-radius: 50%;
  border: 2px dashed rgba(49,51,133,.25);
  left: -130px; bottom: -170px;
  animation: spinSlow 40s linear infinite;
}
.cta-band h2 { color: var(--rotary-blue-dark); font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
.cta-band p { color: #543D05; max-width: 640px; margin-inline: auto; margin-bottom: 30px; }
.cta-band.center { text-align: center; }

/* ============ Footer ============ */
.site-footer {
  position: relative;
  background: var(--rotary-blue-deep);
  color: #B9CDEA;
  padding: 76px 0 0;
  font-size: .92rem;
  overflow: hidden;
}
.site-footer::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--rotary-gold), var(--rotary-azure), var(--rotary-gold));
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 52px; position: relative; }
.site-footer h4 {
  color: #fff;
  font-family: var(--font-body);
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .14em;
  margin-bottom: 18px;
}
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 10px; transition: transform .25s var(--ease); }
.site-footer li:hover { transform: translateX(4px); }
.site-footer a { color: #B9CDEA; }
.site-footer a:hover { color: var(--rotary-gold); }
/* Sous-catégories du footer (itération 69) */
.site-footer .footer-sub {
  list-style: none; margin: 8px 0 0; padding-left: 10px;
  border-left: 1px solid rgba(255,255,255,.18);
}
.site-footer .footer-sub li { margin-bottom: 6px; }
.site-footer .footer-sub li:hover { transform: translateX(3px); }
.site-footer .footer-sub a { color: rgba(185,205,234,.72); font-size: .8rem; }
.site-footer .footer-sub a:hover { color: var(--rotary-gold); }
.footer-about p { margin: 16px 0; }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.28);
  display: grid;
  place-items: center;
  font-size: .95rem;
  transition: all .3s var(--ease);
}
.footer-social a:hover {
  background: var(--grad-gold);
  border-color: transparent;
  color: var(--rotary-blue-dark);
  transform: translateY(-4px) rotate(6deg);
  box-shadow: var(--shadow-gold);
  text-decoration: none;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  font-size: .78rem;
  position: relative;
}
.site-footer .brand-logo {
  height: 46px;
  width: 46px;
  background: #fff;
  border-radius: 50%;
  padding: 3px;
}

/* ============ Back to top ============ */
.to-top {
  position: fixed;
  right: 26px;
  bottom: 26px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: none;
  background: var(--grad-blue);
  color: #fff;
  font-size: 1.25rem;
  cursor: pointer;
  box-shadow: 0 14px 34px rgba(49,51,133,.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: all .35s var(--ease);
  z-index: 80;
}
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { transform: translateY(-4px); background: var(--grad-gold); color: var(--rotary-blue-dark); }

/* ============ Équipe : bureau, comité, commissions ============ */
.quicknav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 34px;
}
.quicknav a {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.25);
  backdrop-filter: blur(6px);
  border-radius: 999px;
  padding: 9px 22px;
  font-size: .84rem;
  font-weight: 600;
  color: #fff;
  transition: all .25s var(--ease);
}
.quicknav a:hover {
  background: var(--rotary-gold);
  border-color: var(--rotary-gold);
  color: var(--rotary-blue-dark);
  transform: translateY(-2px);
}

.person-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 36px 24px 30px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
  overflow: hidden;
}
.person-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 90px;
  background: linear-gradient(135deg, rgba(49,51,133,.08), rgba(0,93,170,.05));
  z-index: 0;
}
.person-card > * { position: relative; }
.person-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.person-photo {
  width: 112px; height: 112px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 18px;
  border: 4px solid #fff;
  box-shadow: var(--shadow-lg);
}
.person-name { font-size: 1.12rem; margin-bottom: 12px; }
.person-role {
  display: inline-block;
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--rotary-blue);
  background: #E9EDFB;
  padding: 6px 18px;
  border-radius: 999px;
}
.person-role--gold { background: #FFF3D6; color: #9A6E00; }

.avatar {
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  font-weight: 700;
  font-family: var(--font-body);
  user-select: none;
}
.avatar--lg { width: 104px; height: 104px; font-size: 1.7rem; margin-bottom: 18px; }
.avatar--md { width: 68px; height: 68px; font-size: 1.15rem; margin-bottom: 14px; }
.avatar--sm { width: 42px; height: 42px; font-size: .78rem; flex-shrink: 0; }
.avatar--f { background: #FDF2F8; color: #DB2777; border: 2px solid #FBCFE8; }
.avatar--m { background: #EEF1FB; color: var(--rotary-blue); border: 2px solid #D9DEF6; }

.committee-card {
  background: var(--paper-warm);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px 18px;
  text-align: center;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s var(--ease);
}
.committee-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  background: #fff;
}
.committee-card h4 { font-family: var(--font-body); font-size: .95rem; margin-bottom: 6px; }
.committee-card p { font-size: .88rem; color: var(--ink-soft); font-weight: 600; }

.commission-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 34px 30px;
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.commission-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.commission-num {
  position: absolute;
  top: 6px; right: 20px;
  font-family: var(--font-display);
  font-size: 4.6rem;
  font-weight: 700;
  line-height: 1;
  color: rgba(253,184,19,.18);
  pointer-events: none;
}
.commission-card h3 {
  font-size: 1.02rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: 22px;
  max-width: 75%;
}
.member-line { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 16px; }
.member-line .lbl {
  display: block;
  font-size: .66rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--rotary-blue);
  margin-bottom: 1px;
}
.member-line .lbl--soft { color: #9AA3B5; }
.member-line .val { font-size: .92rem; font-weight: 600; color: var(--ink); }
/* Description + effectif des commissions (itération 40 — rendu BD) */
.commission-desc {
  font-size: .84rem;
  color: #6B7280;
  line-height: 1.6;
  margin: -12px 0 18px;
}
.commission-members {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 14px;
  padding-top: 4px;
}
.member-chip {
  width: 28px; height: 28px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #fff;
  box-shadow: 0 2px 6px rgba(32,34,92,.16);
}
.member-chip--ini, .member-chip--more {
  display: inline-grid;
  place-items: center;
  background: linear-gradient(135deg, var(--rotary-blue), #4A5AC0);
  color: #fff;
  font-size: .58rem;
  font-weight: 800;
  letter-spacing: .02em;
}
.member-chip--more { font-size: .62rem; }
.commission-members small {
  margin-left: 4px;
  color: #9AA3B5;
  font-size: .72rem;
  font-weight: 600;
}
.subcommission {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px dashed var(--line);
}
.subcommission .sub-title {
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 12px;
}
.subcommission .sub-title b { color: var(--ink); }

.honor-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 36px 32px;
  box-shadow: var(--shadow);
  position: relative;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.honor-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.honor-card .medal {
  width: 58px; height: 58px;
  border-radius: 50%;
  background: var(--grad-gold);
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  margin-bottom: 18px;
  box-shadow: var(--shadow-gold);
}
.honor-card h3 { font-size: 1.15rem; }
.honor-card .h-title {
  display: inline-block;
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--rotary-azure);
  background: #E8F1FA;
  padding: 5px 14px;
  border-radius: 999px;
  margin: 10px 0 14px;
}
.honor-card p { color: var(--ink-soft); font-size: .94rem; font-style: italic; }

/* ============ Formulaires ============ */
.form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
  padding: 40px;
  position: relative;
}
.form-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 5px;
  border-radius: 24px 24px 0 0;
  background: linear-gradient(90deg, var(--rotary-blue), var(--rotary-azure), var(--rotary-gold));
}
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: .86rem; margin-bottom: 7px; color: var(--rotary-blue-dark); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  font: inherit;
  font-size: .95rem;
  color: var(--ink);
  background: var(--paper-warm);
  transition: border-color .2s var(--ease), background .2s var(--ease), box-shadow .2s var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--rotary-blue);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(49, 51, 133, .12);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.checkbox-line { display: flex; align-items: flex-start; gap: 10px; font-size: .87rem; color: var(--ink-soft); }
.checkbox-line input { width: auto; margin-top: 4px; accent-color: var(--rotary-blue); }
.form-note { font-size: .81rem; color: var(--ink-soft); margin-top: 12px; }
.form-success {
  display: none;
  background: #EAF7F0;
  border: 1px solid var(--ok);
  color: var(--ok);
  border-radius: 12px;
  padding: 14px 18px;
  font-weight: 600;
  margin-bottom: 18px;
  animation: slideDown .45s var(--ease);
}
@keyframes slideDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
input.invalid, select.invalid, textarea.invalid { border-color: #C0392B !important; }

.donation-options { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
.amount-pill {
  border: 2px solid var(--line);
  border-radius: 14px;
  background: var(--paper-warm);
  padding: 15px 10px;
  text-align: center;
  font-weight: 700;
  font-family: var(--font-body);
  color: var(--rotary-blue-dark);
  cursor: pointer;
  transition: all .22s var(--ease);
}
.amount-pill:hover { border-color: var(--rotary-gold); transform: translateY(-3px); }
.amount-pill.selected {
  border-color: var(--rotary-gold);
  background: linear-gradient(135deg, #FFF6E3, #FFEFC9);
  box-shadow: var(--shadow-gold);
  transform: translateY(-3px) scale(1.03);
}

/* ============ Skeletons (chargement dynamique) ============ */
.skeleton-card {
  height: 130px;
  border-radius: var(--radius);
  background: linear-gradient(100deg, #ECEFF6 40%, #F7F9FD 50%, #ECEFF6 60%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite linear;
}
@keyframes shimmer { to { background-position: -200% 0; } }

/* ============ Animations d'apparition (scroll reveal) ============ */
.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
  will-change: opacity, transform;
}
.reveal-left  { transform: translateX(-42px); }
.reveal-right { transform: translateX(42px); }
.reveal-zoom  { transform: scale(.92); }
.reveal.visible { opacity: 1; transform: none; }
.d1 { transition-delay: .1s; } .d2 { transition-delay: .2s; }
.d3 { transition-delay: .3s; } .d4 { transition-delay: .4s; }
.d5 { transition-delay: .5s; } .d6 { transition-delay: .6s; }

/* Entrée du hero au chargement */
.anim-up { opacity: 0; transform: translateY(30px); animation: animUp .9s var(--ease) forwards; }
.anim-up.a2 { animation-delay: .15s; } .anim-up.a3 { animation-delay: .3s; }
.anim-up.a4 { animation-delay: .45s; } .anim-up.a5 { animation-delay: .6s; }
@keyframes animUp { to { opacity: 1; transform: none; } }

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

/* ============ Responsive ============ */
@media (max-width: 1020px) {
  .hero-inner { grid-template-columns: 1fr; padding: 84px 0 140px; }
  .hero-visual { display: none; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }

  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    padding: 10px 5%;
    max-height: calc(100vh - 80px);
    overflow-y: auto;
  }
  .nav-links.open { display: flex; }
  .nav-links li { border-top: 1px solid var(--line); }
  .nav-links li:first-child { border-top: none; }
  .nav-links a { display: block; padding: 15px 4px; }
  .nav-links a::after { display: none; }
  .nav-links .nav-cta { text-align: center; margin: 12px 0; }
  /* Sous-catégories : statiques et visibles dans le tiroir mobile */
  .nav-drop { position: static; }
  .nav-drop-menu {
    position: static; transform: none; opacity: 1; visibility: visible;
    box-shadow: none; border: 0; background: transparent;
    padding: 0 0 8px 14px; min-width: 0;
  }
  .nav-drop-menu::before { display: none; }
  .nav-drop-menu a { padding: 10px 4px !important; }
  .nav-caret { display: none; }
}

@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .donation-options { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 64px 0; }
  .hero-inner { padding: 64px 0 130px; }
  .quote { padding: 44px 28px 36px; }
  .form-card { padding: 28px 22px; }
  .stat-sep { display: none; }
  .to-top { right: 16px; bottom: 16px; }
}

/* ---------- Widget anniversaires du jour (accueil) ---------- */
.bday-widget {
  position: fixed; left: 22px; bottom: 22px; z-index: 90;
  display: flex; align-items: center; gap: 16px;
  max-width: min(420px, calc(100vw - 44px));
  background: #fff;
  border: 1.5px solid rgba(253,184,19,.55);
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(22,23,61,.25);
  padding: 14px 40px 14px 20px;
  animation: bdayIn .7s cubic-bezier(.22,.9,.3,1.15);
}
.bday-widget::before {
  content: ""; position: absolute; inset: 0 auto 0 0; width: 5px;
  border-radius: 18px 0 0 18px;
  background: linear-gradient(180deg, #FDB813, #FFCE54);
}
.bday-widget.bday-out { animation: bdayOut .35s ease forwards; }
.bday-emoji {
  font-size: 2rem; animation: bdayWiggle 1.6s ease-in-out infinite;
  filter: drop-shadow(0 6px 12px rgba(253,184,19,.4));
}
.bday-body b { display: block; font-family: "Playfair Display", serif; color: #20225C; font-size: .98rem; }
.bday-body p { margin: 2px 0 0; font-size: .82rem; color: #5A6478; }
.bday-close {
  position: absolute; top: 8px; right: 10px;
  border: none; background: transparent; color: #5A6478;
  cursor: pointer; font-size: .8rem; padding: 4px; border-radius: 50%;
  transition: background .2s, transform .3s;
}
.bday-close:hover { background: rgba(192,57,43,.12); color: #C0392B; transform: rotate(90deg); }
@keyframes bdayIn { from { opacity: 0; transform: translateY(60px) scale(.9); } }
@keyframes bdayOut { to { opacity: 0; transform: translateY(40px) scale(.95); } }
@keyframes bdayWiggle {
  0%, 100% { transform: rotate(-8deg); } 50% { transform: rotate(10deg) scale(1.08); }
}
@media (max-width: 640px) { .bday-widget { left: 14px; right: 14px; bottom: 14px; max-width: none; } }
/* ---------- Onglets Agenda / Actualités ---------- */
.tab-switch {
  display: inline-flex; gap: 6px;
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 999px; padding: 6px;
  box-shadow: var(--shadow);
}
.tab-btn {
  border: none; background: transparent;
  padding: 11px 26px; border-radius: 999px;
  font: inherit; font-weight: 700; font-size: .9rem;
  color: var(--ink-soft); cursor: pointer;
  transition: background .25s, color .25s, transform .25s;
}
.tab-btn:hover { color: var(--rotary-blue); transform: translateY(-1px); }
.tab-btn.active {
  background: linear-gradient(120deg, var(--rotary-blue), #4A4CB8);
  color: #fff;
  box-shadow: 0 10px 24px rgba(49,51,133,.35);
}

/* ============ Sections structurées du backoffice (itération 78) ============ */

/* --- Mot de la Présidence (Le Club) --- */
.mot-wrap {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 40px;
  align-items: start;
  margin-top: 8px;
}
.mot-photo { margin: 0; }
.mot-photo img {
  width: 220px; height: 220px;
  object-fit: cover;
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
  border: 4px solid #fff;
}
.mot-text { font-size: 1.02rem; line-height: 1.75; color: var(--ink-soft); }
.mot-text p { margin-bottom: 14px; }
.mot-quote {
  margin: 18px 0 6px;
  padding: 18px 24px;
  border-left: 4px solid var(--gold);
  background: rgba(253,184,19,.08);
  border-radius: 0 16px 16px 0;
  font-family: var(--font-display);
  font-size: 1.08rem;
  color: var(--rotary-blue-dark);
  font-style: italic;
}
.mot-sign { font-weight: 700; color: var(--rotary-blue); margin-top: 6px; }
@media (max-width: 760px) {
  .mot-wrap { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .mot-quote { text-align: left; }
}

/* --- Statistiques d'impact (Accueil, bandeau backoffice) --- */
.impact-row {
  display: flex; align-items: center; justify-content: center;
  gap: 34px; flex-wrap: wrap;
}
.impact-row .stat { min-width: 190px; }

/* --- Partenaires (Accueil) --- */
.partners-logos {
  display: flex; flex-wrap: wrap; gap: 20px; justify-content: center;
  margin-top: 8px;
}
.partner-logo {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 150px; min-height: 84px;
  padding: 14px 22px;
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.partner-logo:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--gold); }
.partner-logo img { max-height: 52px; max-width: 160px; object-fit: contain; }
.partners-fallback {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--rotary-blue-dark);
}

/* --- Comptes de collecte (Dons) --- */
.don-comptes {
  background: #fff;
  border: 1.5px dashed var(--gold);
  border-radius: 16px;
  padding: 16px 20px;
  text-align: left;
}
.don-comptes > b { display: block; margin-bottom: 10px; color: var(--rotary-blue-dark); }
.don-compte {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 7px 2px;
  border-bottom: 1px solid var(--line);
  font-size: .93rem;
}
.don-compte:last-child { border-bottom: none; }
.don-compte span { color: var(--ink-soft); }
.don-compte b { color: var(--rotary-blue-dark); white-space: nowrap; }

/* ============ Cartes d'action enrichies (itération 82) ============ */
.ac-top { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.ac-status {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .72rem; font-weight: 700; letter-spacing: .03em;
  padding: 5px 12px; border-radius: 999px; align-self: flex-start;
}
.ac-status--planned { background: #EAF2FF; color: #1D4ED8; }
.ac-status--running { background: #FEF3C7; color: #B45309; }
.ac-status--done    { background: #DCFCE7; color: #15803D; }
.ac-done-tag {
  display: inline-block; margin-top: 4px;
  font-size: .8rem; font-weight: 700; color: #64748B;
  background: #F1F5F9; border-radius: 999px; padding: 6px 14px;
}

.ac-progress { margin: 12px 0 14px; }
.ac-progress-bar {
  height: 10px; border-radius: 999px; background: #E2E8F0;
  overflow: hidden;
}
.ac-progress-bar span {
  display: block; height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, #FDB813, #F59E0B);
  transition: width .6s var(--ease);
}
.ac-progress-label {
  display: flex; justify-content: space-between; gap: 8px;
  margin-top: 6px; font-size: .78rem; color: var(--ink-soft);
}
.ac-progress-label b { color: var(--rotary-blue-dark); }

.ac-btns { display: flex; gap: 10px; margin: 14px 0 12px; flex-wrap: wrap; }
.ac-btns--one .ac-btn { flex: 1 1 100%; }
.ac-btn {
  flex: 1 1 0; min-width: 0;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: none; border-radius: 12px;
  padding: 12px 14px;
  font: inherit; font-weight: 700; font-size: .88rem;
  color: #fff; cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), filter .25s;
}
.ac-btn .ac-btn-icon { display: inline-block; transition: transform .3s var(--ease); }
.ac-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(15,23,42,.18); }
.ac-btn:hover .ac-btn-icon { transform: scale(1.18) rotate(-6deg); }
.ac-btn:active { transform: translateY(0); }
.ac-btn:disabled { cursor: not-allowed; filter: grayscale(1); opacity: .65; box-shadow: none; transform: none; }
.ac-btn--donate  { background: #16a34a; }
.ac-btn--donate:hover { background: #15803d; }
.ac-btn--ticket  { background: #002244; }
.ac-btn--ticket:hover { background: #0a2e5e; }
.ac-btn--sponsor { background: #D4AF37; color: #1c1917; }
.ac-btn--sponsor:hover { background: #c9a227; }
.ac-btn--soldout { background: #94a3b8; }

.ac-engage {
  background: #F8FAFC;
  border: 1.5px solid var(--line);
  border-radius: 20px;
  padding: 22px 24px;
  margin-top: 20px;
}
.ac-engage h3 { font-size: 1.05rem; margin-bottom: 6px; color: var(--rotary-blue-dark); }
.ac-engage--done { text-align: center; color: #64748B; font-weight: 600; }
.ae-tickets { margin-top: 16px; }
.ae-title { font-weight: 700; font-size: .85rem; color: var(--rotary-blue-dark); margin-bottom: 8px; }
.ae-ticket {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 10px 14px; margin-bottom: 8px;
}
.ae-ticket > span { flex: 1; min-width: 140px; display: flex; flex-direction: column; }
.ae-ticket small { color: var(--ink-soft); font-size: .78rem; }

/* ============ Modale billetterie (itération 82) ============ */
.tk-overlay {
  position: fixed; inset: 0; z-index: 9000;
  background: rgba(10, 15, 30, .55);
  backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  padding: 18px;
  opacity: 1;
}
.tk-overlay.tk-out { opacity: 0; transition: opacity .25s ease; }
.tk-modal {
  width: 100%; max-width: 620px; max-height: 90vh; overflow-y: auto;
  background: #fff; border-radius: 22px;
  box-shadow: 0 30px 70px rgba(10, 20, 40, .35);
  padding: 24px 26px;
  transform: scale(.95); opacity: 0;
  animation: tkIn .3s ease-out forwards;
}
.tk-modal--small { max-width: 460px; }
.tk-modal--loading { text-align: center; color: var(--ink-soft); }
@keyframes tkIn { to { transform: scale(1); opacity: 1; } }

.tk-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; margin-bottom: 14px; }
.tk-head h3 { font-size: 1.15rem; color: var(--rotary-blue-dark); margin: 0; }
.tk-head p { color: var(--ink-soft); font-size: .84rem; margin: 4px 0 0; }
.tk-x {
  border: none; background: #F1F5F9; color: #475569;
  width: 34px; height: 34px; border-radius: 50%;
  font-size: 15px; cursor: pointer; flex-shrink: 0;
  transition: background .2s, transform .2s;
}
.tk-x:hover { background: #E2E8F0; transform: rotate(90deg); }

.tk-steps { display: flex; gap: 6px; margin: 4px 0 16px; flex-wrap: wrap; }
.tk-step {
  font-size: .72rem; font-weight: 700; letter-spacing: .02em;
  color: #94A3B8; background: #F1F5F9;
  border-radius: 999px; padding: 6px 14px;
}
.tk-step--on { background: #002244; color: #FDB813; }
.tk-step--done { background: #DCFCE7; color: #15803D; }

.tk-tickets { display: flex; flex-direction: column; gap: 10px; }
.tk-ticket {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  border: 1.5px solid var(--line); border-radius: 14px; padding: 12px 14px;
}
.tk-ticket--sold { background: #F8FAFC; opacity: .72; }
.tk-ticket-main { flex: 1; min-width: 180px; }
.tk-ticket-main b { color: var(--rotary-blue-dark); }
.tk-ticket-main p { color: var(--ink-soft); font-size: .8rem; margin: 2px 0 6px; }
.tk-price { display: block; font-weight: 700; color: #B45309; }
.tk-remain { display: block; font-size: .74rem; color: #15803D; font-weight: 600; }
.tk-remain--warn { color: #EA580C; animation: tkPulse 1.4s ease-in-out infinite; }
@keyframes tkPulse { 50% { opacity: .35; } }

.tk-qty {
  display: inline-flex; align-items: center; gap: 10px;
  background: #F1F5F9; border-radius: 999px; padding: 6px 10px;
}
.tk-qty button {
  border: none; background: #fff; width: 30px; height: 30px;
  border-radius: 50%; font-size: 17px; line-height: 1;
  cursor: pointer; box-shadow: 0 2px 6px rgba(0,0,0,.1);
  transition: transform .15s;
}
.tk-qty button:hover { transform: scale(1.1); }
.tk-qty-num { min-width: 26px; text-align: center; font-weight: 800; font-size: 1.05rem; }
.tk-qty-num.tk-bounce { animation: tkBounce .3s ease; }
@keyframes tkBounce { 30% { transform: scale(1.35); } }

.tk-pill { font-size: .72rem; font-weight: 700; border-radius: 999px; padding: 5px 12px; }
.tk-pill--sold { background: #FEE2E2; color: #B91C1C; }

.tk-summary {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 16px; padding-top: 14px; border-top: 1.5px dashed var(--line);
}
.tk-summary span { color: var(--ink-soft); font-weight: 600; }
.tk-total { font-size: 1.2rem; color: var(--rotary-blue-dark); }
.tk-total--flash { animation: tkFlash .6s ease; }
@keyframes tkFlash { 40% { background: #DCFCE7; border-radius: 8px; } }

.tk-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.tk-btn {
  border: none; border-radius: 12px; padding: 12px 20px;
  font: inherit; font-weight: 700; font-size: .9rem; cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .2s, opacity .2s;
}
.tk-btn:hover { transform: translateY(-2px); }
.tk-btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.tk-btn--primary { background: linear-gradient(120deg, #002244, #0a2e5e); color: #fff; box-shadow: 0 8px 20px rgba(0,34,68,.25); }
.tk-btn--ghost { background: #F1F5F9; color: #334155; }

.tk-form { display: flex; flex-direction: column; gap: 12px; }
.tk-form label { display: flex; flex-direction: column; gap: 5px; font-size: .84rem; font-weight: 600; color: #334155; }
.tk-form input, .tk-form select {
  padding: 11px 14px; border: 1.5px solid var(--line); border-radius: 10px; font: inherit;
}
.tk-check { flex-direction: row !important; align-items: center; gap: 8px !important; font-weight: 500 !important; }
.tk-check input { width: 18px; height: 18px; }
.tk-error { color: #B91C1C; font-size: .85rem; font-weight: 600; background: #FEF2F2; border-radius: 10px; padding: 10px 14px; }

.tk-recap { background: #F8FAFC; border-radius: 14px; padding: 14px 16px; margin-bottom: 14px; }
.tk-recap > b { color: var(--rotary-blue-dark); }
.tk-line { display: flex; justify-content: space-between; gap: 10px; font-size: .88rem; margin-top: 6px; }
.tk-line--total { border-top: 1.5px dashed var(--line); margin-top: 10px; padding-top: 10px; font-weight: 800; color: var(--rotary-blue-dark); }

.tk-pay-methods { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tk-pay-method {
  display: flex; align-items: center; gap: 10px;
  border: 1.5px solid var(--line); border-radius: 14px;
  background: #fff; padding: 12px 14px; cursor: pointer; text-align: left;
  transition: border-color .2s, background .2s, transform .2s;
}
.tk-pay-method:hover { transform: translateY(-2px); }
.tk-pay-method--on { border-color: #002244; background: #F0F5FF; }
.tk-pm-icon { font-size: 22px; }
.tk-pay-method b { display: block; font-size: .9rem; color: var(--rotary-blue-dark); }
.tk-pay-method small { color: var(--ink-soft); }
.tk-pay-detail { margin-top: 12px; }
.tk-field { display: flex; flex-direction: column; gap: 5px; font-size: .84rem; font-weight: 600; color: #334155; }
.tk-field input { padding: 11px 14px; border: 1.5px solid var(--line); border-radius: 10px; font: inherit; }
.tk-cards { display: grid; grid-template-columns: 1fr 90px 70px; gap: 8px; }
.tk-cards label { display: flex; flex-direction: column; gap: 4px; font-size: .76rem; font-weight: 600; color: #334155; }
.tk-cards input { padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 10px; font: inherit; }
.tk-bank { background: #FFFBEB; border: 1.5px dashed var(--gold); border-radius: 12px; padding: 12px 16px; font-size: .88rem; }
.tk-bank code { background: #fff; padding: 2px 8px; border-radius: 6px; }
.tk-hint { font-size: .78rem; color: #64748B; margin-top: 10px; line-height: 1.55; }

.tk-spinner {
  display: inline-block; width: 22px; height: 22px;
  border: 3px solid rgba(255,255,255,.35); border-top-color: #fff;
  border-radius: 50%; animation: tkSpin .8s linear infinite; vertical-align: -4px;
}
.tk-spinner--sm { width: 15px; height: 15px; border-width: 2.5px; margin-right: 8px; }
@keyframes tkSpin { to { transform: rotate(360deg); } }

.tk-success { text-align: center; padding: 14px 6px 4px; }
.tk-check {
  width: 76px; height: 76px; margin: 0 auto 14px; display: block;
}
.tk-check circle { stroke: #16a34a; stroke-width: 3; stroke-dasharray: 166; stroke-dashoffset: 166; animation: tkDraw .6s ease forwards; }
.tk-check path { stroke: #16a34a; stroke-width: 4; stroke-linecap: round; stroke-dasharray: 48; stroke-dashoffset: 48; animation: tkDraw .45s .45s ease forwards; }
@keyframes tkDraw { to { stroke-dashoffset: 0; } }
.tk-success h3 { color: var(--rotary-blue-dark); margin-bottom: 6px; }
.tk-ticks { display: flex; flex-direction: column; gap: 6px; margin-top: 14px; }
.tk-tick-line { background: #F8FAFC; border-radius: 10px; padding: 9px 12px; font-size: .88rem; }
.tk-empty { color: var(--ink-soft); text-align: center; padding: 10px 0; }

.tk-donate { display: flex; flex-direction: column; gap: 10px; }
.tk-donate label { display: flex; flex-direction: column; gap: 5px; font-size: .84rem; font-weight: 600; color: #334155; }
.tk-donate input { padding: 11px 14px; border: 1.5px solid var(--line); border-radius: 10px; font: inherit; }
.tk-presets { display: flex; gap: 8px; flex-wrap: wrap; }
.tk-pill-amount {
  border: 1.5px solid var(--line); background: #fff; border-radius: 999px;
  padding: 8px 14px; font: inherit; font-size: .82rem; font-weight: 700; color: #334155; cursor: pointer;
  transition: border-color .2s, background .2s;
}
.tk-pill-amount:hover { border-color: #16a34a; background: #F0FDF4; color: #15803d; }

@media (max-width: 560px) {
  .tk-pay-methods { grid-template-columns: 1fr; }
  .tk-cards { grid-template-columns: 1fr; }
}

/* ============ Médiathèque publique (itération 87) ============ */
.mg-toolbar { margin-bottom: 22px; }
.mg-search { display: flex; gap: 10px; margin-bottom: 12px; }
.mg-search input {
  flex: 1; padding: 13px 18px; border: 1.5px solid var(--line);
  border-radius: 999px; font: inherit; background: var(--bg);
  transition: border-color .2s, box-shadow .2s;
}
.mg-search input:focus { outline: none; border-color: var(--rotary-blue); box-shadow: 0 0 0 4px rgba(49,51,133,.12); }
.mg-theme {
  width: 48px; border: 1.5px solid var(--line); border-radius: 999px;
  background: var(--bg); font-size: 18px; cursor: pointer; transition: transform .2s;
}
.mg-theme:hover { transform: scale(1.08); }
.mg-filters { display: flex; gap: 10px; flex-wrap: wrap; }
.mg-filters select {
  padding: 10px 14px; border-radius: 999px; border: 1.5px solid var(--line);
  background: var(--bg); color: var(--ink); font: inherit; font-size: .85rem; cursor: pointer;
}
.mg-count-line { color: var(--ink-soft); font-size: .82rem; margin-top: 10px; }

.mg-grid { columns: 2; column-gap: 14px; }
@media (min-width: 640px) { .mg-grid { columns: 3; } }
@media (min-width: 1024px) { .mg-grid { columns: 4; } }
.mg-card {
  break-inside: avoid; margin: 0 0 14px; border-radius: 16px; overflow: hidden;
  background: var(--bg); border: 1px solid var(--line);
  box-shadow: var(--shadow); transition: transform .3s var(--ease), box-shadow .3s;
}
.mg-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.mg-media { position: relative; cursor: zoom-in; overflow: hidden; background: #0e1530; }
.mg-media img { display: block; width: 100%; height: auto; transition: transform .5s var(--ease); }
.mg-card:hover .mg-media img { transform: scale(1.045); }
.mg-media video { display: block; width: 100%; height: auto; }
.mg-play {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 34px; pointer-events: none;
  background: radial-gradient(circle at center, rgba(0,34,68,.25), rgba(0,0,0,.25));
}
.mg-play::before {
  content: ""; width: 62px; height: 62px; position: absolute; border-radius: 50%;
  background: rgba(255,255,255,.18); backdrop-filter: blur(4px); border: 2px solid rgba(255,255,255,.6);
}
.mg-play span { position: relative; }
.mg-cap { padding: 9px 12px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.mg-cap b { font-size: .84rem; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mg-tag {
  font-size: .66rem; font-weight: 700; letter-spacing: .04em; color: var(--rotary-blue-dark);
  background: rgba(253,184,19,.18); border-radius: 999px; padding: 3px 10px; flex-shrink: 0; text-transform: uppercase;
}
.mg-empty { grid-column: 1 / -1; text-align: center; color: var(--ink-soft); padding: 60px 0; }
.mg-skeleton { height: 220px; border-radius: 16px; background: linear-gradient(100deg, #E8ECF4 40%, #F4F6FA 50%, #E8ECF4 60%); background-size: 200% 100%; animation: mgShimmer 1.4s infinite; margin-bottom: 14px; }
@keyframes mgShimmer { to { background-position: -200% 0; } }

/* Lightbox */
.mg-lightbox {
  position: fixed; inset: 0; z-index: 9500; background: rgba(6, 12, 28, .94);
  display: flex; align-items: center; justify-content: center; flex-direction: column;
  animation: tkIn .25s ease-out;
}
.mg-lb-body { max-width: min(92vw, 1200px); max-height: 78vh; display: flex; align-items: center; justify-content: center; }
.mg-lb-body img, .mg-lb-body video { max-width: 92vw; max-height: 78vh; border-radius: 12px; box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.mg-lb-close {
  position: absolute; top: 18px; right: 18px; width: 44px; height: 44px; border-radius: 50%;
  border: none; background: rgba(255,255,255,.12); color: #fff; font-size: 18px; cursor: pointer;
  transition: transform .2s, background .2s;
}
.mg-lb-close:hover { transform: rotate(90deg); background: rgba(255,255,255,.22); }
.mg-lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 52px; height: 52px; border-radius: 50%; border: none;
  background: rgba(255,255,255,.12); color: #fff; font-size: 30px; cursor: pointer;
  transition: background .2s, transform .2s;
}
.mg-lb-nav:hover { background: rgba(255,255,255,.25); }
.mg-lb-prev { left: 14px; }
.mg-lb-next { right: 14px; }
.mg-lb-meta { position: absolute; bottom: 0; left: 0; right: 0; text-align: center; color: #D8DFF5; padding: 16px; font-size: .86rem; }
.mg-lb-meta b { color: #fff; }
.mg-lb-meta small { color: #9FB0D0; display: block; margin-top: 4px; }

/* Mode sombre (médiathèque) */
html.dark { --bg: #0F1324; --ink: #E8ECF6; --ink-soft: #9AA6C3; --line: #262B45; --paper-warm: #141833; }
html.dark body { background: var(--bg); }
html.dark .mg-card { background: #171C33; border-color: #262B45; }
html.dark .mg-cap b { color: #E8ECF6; }
html.dark .mg-filters select, html.dark .mg-search input { background: #171C33; color: #E8ECF6; border-color: #2A3050; }
html.dark .mg-skeleton { background: linear-gradient(100deg, #1A2038 40%, #232A47 50%, #1A2038 60%); background-size: 200% 100%; }

@media (max-width: 560px) {
  .mg-grid { columns: 2; column-gap: 10px; }
  .mg-card { margin-bottom: 10px; }
  .mg-lb-nav { width: 42px; height: 42px; }
}

/* Toast applicatif (billetterie — remplace alert natif) */
.tk-toast {
  position: fixed; bottom: 88px; left: 50%; transform: translateX(-50%);
  z-index: 11000; max-width: min(92vw, 460px);
  background: #1B2A4A; color: #fff; border-radius: 12px;
  padding: 12px 20px; font-size: .88rem; font-weight: 600;
  box-shadow: 0 14px 40px rgba(8, 20, 44, .35);
  animation: tkToastIn .25s ease-out;
}
.tk-toast--ok { background: #14804A; }
.tk-toast--err { background: #B91C1C; }
.tk-toast--warn { background: #B45309; }
.tk-toast--out { opacity: 0; transform: translateX(-50%) translateY(8px); transition: all .3s ease; }
@keyframes tkToastIn { from { opacity: 0; transform: translateX(-50%) translateY(10px); } }