@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Merriweather:ital,wght@0,400;0,700;1,400&display=swap');

:root {
  --bg: #f0f4f8;
  --panel: #ffffff;
  --text: #0d1b2a;
  --muted: #4b5c6b;
  --border: #dce5ef;
  --shadow: 0 10px 30px rgba(2, 8, 23, 0.08);

  --primary: #0b4a6f;
  --primary-2: #0f6ea2;
  --accent-gold: #f5a800;
  --accent-gold-hover: #e09600;
  --danger: #c1121f;
  --danger-2: #e11d48;
  --focus: #2563eb;

  --radius: 14px;
  --radius-sm: 10px;

  --max: 1180px;
  --content: 860px;

  --font: 'DM Sans', ui-sans-serif, system-ui, -apple-system, Segoe UI, sans-serif;
  --font-serif: 'Merriweather', Georgia, serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

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

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: radial-gradient(1200px 700px at 50% -150px, rgba(15, 110, 162, 0.18), transparent 60%), var(--bg);
  line-height: 1.55;
  font-size: 17px;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

code,
pre {
  font-family: var(--mono);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.skip-link {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--panel);
  border: 1px solid var(--border);
  padding: 10px 12px;
  border-radius: 12px;
  z-index: 200;
  transform: translateY(-200%);
  transition: transform 140ms ease;
}

.skip-link:focus {
  transform: translateY(0);
  outline: 3px solid rgba(37, 99, 235, 0.35);
  outline-offset: 3px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  gap: 12px;
  height: 62px;
  padding: 0 20px;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(203, 213, 225, 0.65);
  box-shadow: 0 1px 10px rgba(2, 8, 23, 0.06);
}

.topbar__left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.topbar__right {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 0;
  flex-shrink: 0;
}

.topnav {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  justify-content: center;
  overflow: visible;
}

.topnav__sublink.is-highlight {
  color: #e07b00;       /* ou ta couleur orange d'origine */
  font-weight: 700;
}

#lang-toggle {
  font-size: 18px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 700;
  height: 34px;
  padding: 0 12px;
}

.icon-btn {
  appearance: none;
  border: 1px solid var(--border);
  background: var(--panel);
  border-radius: 12px;
  height: 42px;
  width: 42px;
  display: grid;
  place-items: center;
  color: var(--muted);
  cursor: pointer;
}

.icon-btn:hover {
  color: var(--text);
  border-color: #cbd5e1;
}

.icon-btn:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.35);
  outline-offset: 2px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px 4px 4px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 1px 6px rgba(15, 23, 42, 0.06);
  flex-shrink: 0;
}

.brand:hover {
  text-decoration: none;
  background: rgba(15, 110, 162, 0.08);
}

.brand__logo {
  height: 45px;
  width: 45px;
  object-fit: contain;
}

.brand__mark {
  display: inline-flex;
  height: 32px;
  width: 32px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(11, 74, 111, 0.14), rgba(15, 110, 162, 0.12));
  border: 1px solid rgba(15, 110, 162, 0.22);
  color: var(--primary);
  font-weight: 800;
  letter-spacing: 0.5px;
  font-size: 12px;
}

.brand__name {
  font-weight: 700;
  letter-spacing: -0.2px;
  font-size: 18px;
  white-space: nowrap;
  color: #0b2d45;
}

.brand__name-sub {
  font-weight: 400;
  color: var(--muted);
  font-size: 13px;
  margin-left: 2px;
}

.topnav__links {
  display: flex;
  gap: 1px;
  align-items: center;
  flex-wrap: nowrap;
  overflow: visible;
  padding: 0;
}

.topnav__item {
  position: relative;
  padding-bottom: 8px;
  margin-bottom: -8px;
}

.topnav__link {
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 0 9px;
  border-radius: 8px;
  border: 1px solid transparent;
  color: #334155;
  white-space: nowrap;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 0.005em;
  transition: background 0.15s, color 0.15s;
}
span.topnav__link {
  cursor: default;
}

.topnav__link:hover {
  background: rgba(15, 110, 162, 0.08);
  text-decoration: none;
  color: var(--text);
}

.topnav__link.is-active {
  background: rgba(11, 74, 111, 0.08);
  border-color: rgba(15, 110, 162, 0.22);
  color: var(--primary);
  font-weight: 700;
}

.topnav__panel {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: var(--panel);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: 6px;
  opacity: 0;
  transform: translateY(4px);
  pointer-events: none;
  transition: opacity 120ms ease, transform 120ms ease;
  z-index: 140;
}

.topnav__item:hover .topnav__panel,
.topnav__item:focus-within .topnav__panel {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.topnav__sublink {
  display: block;
  padding: 8px 10px;
  border-radius: 10px;
  color: var(--muted);
  white-space: nowrap;
}

.topnav__sublink:hover {
  background: rgba(15, 110, 162, 0.08);
  text-decoration: none;
  color: var(--text);
}

.search {
  position: relative;
  width: min(520px, 100%);
}

.search__input {
  width: 100%;
  height: 50px;
  border-radius: 999px;
  border: 1px solid var(--border);
  padding: 0 18px;
  background: var(--panel);
  box-shadow: 0 1px 0 rgba(2, 8, 23, 0.02);
  font-size: 16px;
}

.search__input:focus {
  outline: 3px solid rgba(37, 99, 235, 0.25);
  outline-offset: 2px;
  border-color: rgba(37, 99, 235, 0.35);
}

.search__results {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  max-height: min(380px, 60vh);
  overflow: auto;
  padding: 8px;
  z-index: 130;
}

.search__item {
  display: block;
  padding: 10px 10px;
  border-radius: 12px;
  border: 1px solid transparent;
  cursor: pointer;
}

.search__item:hover,
.search__item[aria-selected="true"] {
  background: rgba(15, 110, 162, 0.08);
  border-color: rgba(15, 110, 162, 0.22);
  text-decoration: none;
}

.search__title {
  font-weight: 800;
}

.search__meta {
  color: var(--muted);
  font-size: 13px;
}

.btn {
  appearance: none;
  border: 1px solid transparent;
  border-radius: 999px;
  height: 42px;
  padding: 0 14px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.35);
  outline-offset: 2px;
}

.btn--primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: white;
}

.btn--primary:hover {
  filter: brightness(1.02);
}

.btn--ghost {
  background: rgba(15, 110, 162, 0.08);
  border-color: rgba(15, 110, 162, 0.22);
  color: var(--primary);
}

.btn--ghost:hover {
  background: rgba(15, 110, 162, 0.12);
  text-decoration: none;
}
.btn--donate {
  background: var(--accent-gold);
  color: #0b2d45;
  font-weight: 800;
  font-size: 14.5px;
  letter-spacing: 0.01em;
  padding: 0 20px;
  height: 40px;
  border-radius: 999px;
  border: none;
  box-shadow: 0 2px 8px rgba(245, 168, 0, 0.35);
  transition: background 0.18s, box-shadow 0.18s, transform 0.12s;
}

.btn--donate:hover {
  background: var(--accent-gold-hover);
  box-shadow: 0 4px 16px rgba(245, 168, 0, 0.45);
  transform: translateY(-1px);
  text-decoration: none;
  color: #0b2d45;
}

.btn--danger {
  background: linear-gradient(135deg, var(--danger), var(--danger-2));
  color: white;
}

.btn--danger:hover {
  filter: brightness(1.02);
}

.app {
  min-height: calc(100vh - 64px);
}

.home__hero {
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  background: radial-gradient(900px 520px at 30% 0%, rgba(15, 110, 162, 0.22), transparent 55%),
    radial-gradient(900px 520px at 80% 20%, rgba(11, 74, 111, 0.16), transparent 60%);
}

.home__hero-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 42px 18px 26px;
}

.home__hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.9fr);
  gap: 26px;
  align-items: center;
}

.home__hero-text {
  min-width: 0;
}

.home__kicker {
  color: var(--muted);
  font-weight: 700;
  margin: 0 0 10px;
}

.home__title {
  margin: 0;
  letter-spacing: -0.6px;
  line-height: 1.1;
  font-size: clamp(28px, 4vw, 44px);
}

.home__subtitle {
  margin: 14px 0 18px;
  max-width: 70ch;
  color: var(--muted);
  font-size: 16px;
}

.home__cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 12px;
}

.home__quick {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.home__hero-visual {
  display: grid;
  gap: 10px;
}

.home__hero-image {
  border-radius: 20px;
  background: radial-gradient(circle at 0 0, rgba(15, 110, 162, 0.26), transparent 60%),
    radial-gradient(circle at 100% 100%, rgba(11, 74, 111, 0.2), transparent 60%);
  border: 1px solid rgba(15, 110, 162, 0.18);
  box-shadow: 0 20px 35px rgba(2, 8, 23, 0.18);
  overflow: hidden;
  min-height: 160px;
  position: relative;
}

.home__hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.home__hero-image--secondary {
  max-width: 260px;
  margin-left: auto;
  margin-right: 12%;
}

.chip {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(226, 232, 240, 0.95);
  color: var(--text);
  font-weight: 700;
}

.chip:hover {
  text-decoration: none;
  border-color: #cbd5e1;
}

.chip--danger {
  background: rgba(193, 18, 31, 0.08);
  border-color: rgba(193, 18, 31, 0.22);
  color: var(--danger);
}

.home__content {
  max-width: var(--max);
  margin: 0 auto;
  padding: 24px 18px 56px;
  display: grid;
  gap: 18px;
}

.home__search {
  max-width: 680px;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 1px 0 rgba(2, 8, 23, 0.02);
  padding: 18px;
}

.panel__title {
  margin: 0 0 10px;
  letter-spacing: -0.2px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: 0 1px 0 rgba(2, 8, 23, 0.02);
}

.card__title {
  margin: 0 0 8px;
  letter-spacing: -0.2px;
}

.card__text {
  margin: 0 0 10px;
  color: var(--muted);
}

.card__link {
  font-weight: 800;
  color: var(--primary);
}

.notice {
  background: rgba(15, 110, 162, 0.08);
  border: 1px solid rgba(15, 110, 162, 0.22);
  color: var(--text);
  border-radius: var(--radius);
  padding: 12px 14px;
}

.notice code {
  font-family: var(--mono);
  font-size: 13px;
}

.docs {
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px 18px 56px;
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 18px;
}

.sidebar {
  position: sticky;
  top: 86px;
  align-self: start;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: var(--radius);
  box-shadow: 0 1px 0 rgba(2, 8, 23, 0.02);
  overflow: hidden;
}

.sidebar__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 12px 8px;
  border-bottom: 1px solid rgba(226, 232, 240, 0.95);
}

.sidebar__title {
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--primary);
}

.sidebar__close {
  display: none;
}

.sidebar__nav {
  padding: 10px;
}

.side-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 10px;
  border: 1px solid transparent;
  color: var(--muted);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.1px;
}

.side-link:hover {
  background: rgba(15, 110, 162, 0.08);
  border-color: rgba(15, 110, 162, 0.22);
  color: var(--text);
  text-decoration: none;
}

.side-link.is-active {
  background: rgba(11, 74, 111, 0.10);
  border-color: rgba(15, 110, 162, 0.28);
  color: var(--primary);
  font-weight: 700;
}

.side-group {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(226, 232, 240, 0.95);
}

.side-group__title {
  font-size: 12px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--muted);
  padding: 6px 10px 8px;
  font-weight: 800;
}

.content {
  background: #fafcff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 2px 12px rgba(11, 74, 111, 0.06);
  overflow: hidden;
}

.content__meta {
  padding: 14px 16px 0;
}

.breadcrumbs {
  font-size: 13px;
  color: var(--muted);
}

.breadcrumbs a {
  color: var(--muted);
  font-weight: 700;
}

.md {
  padding: 32px 40px 40px;
  max-width: var(--content);
  font-size: 16.5px;
  line-height: 1.75;
  color: var(--text);
}

.md h1 {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.6px;
  line-height: 1.2;
  color: var(--primary);
  margin: 0 0 20px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--border);
}

.md h2 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.3px;
  color: var(--text);
  margin: 36px 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.md h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--primary);
  margin: 24px 0 10px;
}

.md p {
  margin: 0 0 16px;
}

.md a {
  color: var(--primary-2);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.md ul, .md ol {
  padding-left: 24px;
  margin: 0 0 18px;
}

.md li {
  margin-bottom: 8px;
}

.md blockquote {
  margin: 24px 0;
  padding: 16px 20px;
  border-left: 4px solid var(--primary-2);
  background: rgba(15, 110, 162, 0.06);
  border-radius: 0 12px 12px 0;
  color: var(--primary);
  font-weight: 500;
}

.md blockquote p { margin: 0; color: var(--primary); }

.md hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 32px 0;
}

.md strong { font-weight: 700; }

.md pre {
  background: #0b1721;
  color: #e6edf3;
  border-radius: 14px;
  padding: 18px;
  overflow: auto;
  margin: 20px 0;
}

.md code {
  background: rgba(11, 74, 111, 0.08);
  border: 1px solid rgba(15, 110, 162, 0.18);
  border-radius: 6px;
  padding: 2px 7px;
  font-size: 0.9em;
  color: var(--primary);
}

.md pre code { background: transparent; border: 0; padding: 0; color: inherit; }

.md table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  font-size: 15px;
}

.md th, .md td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.md th {
  background: rgba(11, 74, 111, 0.06);
  text-align: left;
  font-weight: 700;
  color: var(--primary);
}


.content__footer {
  border-top: 1px solid rgba(226, 232, 240, 0.95);
  padding: 10px 16px;
}

.pager {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.pager a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(226, 232, 240, 0.95);
  background: rgba(2, 8, 23, 0.02);
  color: var(--muted);
  font-weight: 800;
}

.pager a:hover {
  text-decoration: none;
  background: rgba(15, 110, 162, 0.08);
  border-color: rgba(15, 110, 162, 0.22);
  color: var(--text);
}

.footer {
  border-top: 1px solid rgba(226, 232, 240, 0.9);
  background: rgba(255, 255, 255, 0.7);
}

.footer__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px;
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
}

.muted {
  color: var(--muted);
}

/* scrim conservé uniquement pour le menu latéral sur mobile */
.scrim {
  position: fixed;
  inset: 0;
  z-index: 110;
  background: rgba(2, 8, 23, 0.38);
}

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

  .docs {
    grid-template-columns: 1fr;
    padding-top: 10px;
  }

  .home__hero-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .home__hero-visual {
    order: -1;
  }

  .sidebar {
    position: sticky;
    top: 86px;
    align-self: start;
    background: #f4f7fb;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 2px 8px rgba(11, 74, 111, 0.05);
    overflow: hidden;
  }

  body.sidebar-open .sidebar {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .sidebar__close {
    display: inline-grid;
  }
}

@media (max-width: 620px) {
  .brand__name {
    display: none;
  }

  .topbar {
    padding: 10px 12px;
  }

  .search__input {
    font-size: 16px;
  }

  .modal__grid {
    grid-template-columns: 1fr;
  }
}
/* === HERO BANNER (UCSF-style) === */
.home__banner {
  position: relative;
  width: 100%;
  height: 92vh;
  min-height: 500px;
  max-height: 800px;
  overflow: hidden;
}

.home__banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.55);
  display: block;
}

.home__banner-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  text-align: left;
  padding: 0 0 0 7%;
  gap: 32px;
  max-width: 55%;
}

.home__banner-text {
  color: white;
  font-size: clamp(22px, 2.6vw, 36px);
  font-weight: 300;
  line-height: 1.6;
  max-width: 600px;
  margin: 0;
  text-shadow: 0 2px 20px rgba(0,0,0,0.6);
  letter-spacing: 0.2px;
  font-style: italic;
}

.home__banner-btn {
  font-size: 16px;
  height: 50px;
  padding: 0 28px;
}

.home__banner-scroll {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  font-size: 32px;
  opacity: 0.7;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

/* === POPUP DON === */
.donate-backdrop {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(2, 8, 23, 0.5);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.donate-backdrop.is-visible {
  display: flex;
  animation: fadeInBackdrop 0.4s ease;
}

.donate-modal {
  background: white;
  border-radius: 24px;
  padding: 48px 40px 36px;
  max-width: 480px;
  width: 100%;
  text-align: center;
  position: relative;
  box-shadow: 0 30px 80px rgba(2, 8, 23, 0.25);
  animation: slideUpModal 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUpModal {
  from { opacity: 0; transform: translateY(30px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.donate-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(2, 8, 23, 0.06);
  border: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 14px;
  color: var(--muted);
  display: grid;
  place-items: center;
  transition: background 0.2s;
}

.donate-close:hover {
  background: rgba(2, 8, 23, 0.12);
}

.donate-icon {
  font-size: 48px;
  margin-bottom: 16px;
  line-height: 1;
}

.donate-title {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.4px;
  color: var(--primary);
  margin: 0 0 14px;
}

.donate-text {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
  margin: 0 0 28px;
}

.donate-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

.donate-btn {
  width: 100%;
  height: 50px;
  font-size: 16px;
  border-radius: 14px;
}

.donate-skip {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 14px;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  padding: 4px;
}

.donate-skip:hover {
  color: var(--text);
}

/* ============================================================
   SOCIAL FOOTER — Réseaux sociaux
   Ajouter à la FIN de styles.css
   ============================================================ */

.social-footer {
  background: linear-gradient(135deg, #061a2e 0%, #0b3a5a 60%, #0f4f7a 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.85);
  font-family: var(--font);
}

.social-footer__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 48px 24px 32px;
  display: flex;
  flex-direction: column;
  gap: 36px;
}

/* --- Branding --- */
.social-footer__brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.social-footer__logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  flex-shrink: 0;
}

.social-footer__name {
  font-size: 18px;
  font-weight: 800;
  color: white;
  letter-spacing: -0.2px;
}

.social-footer__tagline {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 2px;
}

/* --- Follow section --- */
.social-footer__follow {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.social-footer__cta {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

.social-footer__links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* --- Individual social button --- */
.social-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.80);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.social-link:hover {
  background: rgba(255, 255, 255, 0.13);
  border-color: rgba(255, 255, 255, 0.35);
  color: white;
  text-decoration: none;
  transform: translateY(-2px);
}

.social-link__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* --- Legal bar --- */
.social-footer__legal {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: center;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.38);
}

.social-footer__legal a {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  transition: color 0.2s;
}

.social-footer__legal a:hover {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* --- Responsive --- */
@media (max-width: 620px) {
  .social-footer__inner {
    padding: 36px 16px 24px;
    gap: 28px;
  }

  .social-footer__links {
    gap: 8px;
  }

  .social-link {
    padding: 9px 14px;
    font-size: 13px;
  }

  .social-footer__legal {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
}

.social-footer__contact {
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  line-height: 1.7;
}
.social-footer__contact strong {
  color: #fff;
  font-size: 15px;
}

.social-footer__contact a[href*="google.com/maps"] {
  justify-content: flex-end;
}

/* Bouton "Faire un don" dans la topnav */
.topnav__item:last-child .topnav__link {
  background: var(--accent-gold);
  color: #0b2d45 !important;
  font-weight: 700;
  border: none;
  box-shadow: 0 2px 6px rgba(245, 168, 0, 0.3);
  transition: background 0.18s, box-shadow 0.18s, transform 0.12s;
  margin-left: 4px;
}

.topnav__item:last-child .topnav__link:hover {
  background: var(--accent-gold-hover);
  box-shadow: 0 4px 14px rgba(245, 168, 0, 0.45);
  transform: translateY(-1px);
  text-decoration: none;
  color: #0b2d45 !important;
}

.topnav__item:last-child .topnav__link.is-active {
  background: var(--accent-gold-hover);
  border-color: transparent;
  color: #0b2d45 !important;
}