:root {
  --night: #0b1320;
  --deep: #101a2b;
  --blue: #1d3557;
  --paper: #e9ded0;
  --sand: #d8c7b2;
  --white: #f8f4ef;
  --gold: #f5c400;
  --ink: #121721;
  --muted: rgba(248, 244, 239, 0.76);
  --paper-muted: rgba(18, 23, 33, 0.72);
  --radius: 8px;
  --header-h: 72px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--night);
}

body {
  margin: 0;
  color: var(--white);
  background: var(--night);
  font-family: "Avenir Next", Avenir, Inter, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  padding-bottom: calc(78px + env(safe-area-inset-bottom));
  text-rendering: optimizeLegibility;
}

body.menu-open {
  overflow: hidden;
}

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

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  background: linear-gradient(180deg, rgba(11, 19, 32, 0.94), rgba(11, 19, 32, 0.56));
  border-bottom: 1px solid rgba(248, 244, 239, 0.12);
  backdrop-filter: blur(16px);
}

.site-header.is-scrolled {
  background: rgba(11, 19, 32, 0.94);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-weight: 800;
}

.brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.brand span {
  font-size: 0.98rem;
  white-space: nowrap;
}

.desktop-nav,
.header-donate {
  display: none;
}

.menu-toggle {
  width: 46px;
  height: 46px;
  display: inline-grid;
  place-content: center;
  gap: 7px;
  border: 1px solid rgba(248, 244, 239, 0.22);
  border-radius: 50%;
  background: rgba(248, 244, 239, 0.06);
  color: var(--white);
  cursor: pointer;
}

.menu-toggle span {
  width: 18px;
  height: 2px;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}

.menu-open .menu-toggle span:first-child {
  transform: translateY(4.5px) rotate(45deg);
}

.menu-open .menu-toggle span:last-child {
  transform: translateY(-4.5px) rotate(-45deg);
}

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 40;
  padding: 104px 22px 32px;
  background: linear-gradient(180deg, rgba(11, 19, 32, 0.98), rgba(16, 26, 43, 0.98));
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 200ms ease, visibility 200ms ease;
}

.menu-open .mobile-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.mobile-menu__inner {
  display: grid;
  gap: 4px;
  max-width: 430px;
  margin: 0 auto;
}

.mobile-menu a {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid rgba(248, 244, 239, 0.12);
  font-size: 1.08rem;
  font-weight: 700;
}

.mobile-menu .menu-donate {
  justify-content: center;
  margin-top: 18px;
  border: 0;
  border-radius: var(--radius);
  color: #171100;
  background: var(--gold);
  min-height: 54px;
}

.section-inner {
  width: min(100%, 760px);
  margin: 0 auto;
  padding: 56px 20px;
}

.section-dark {
  background:
    linear-gradient(180deg, var(--night), var(--deep)),
    var(--night);
  color: var(--white);
}

.section-paper {
  background:
    linear-gradient(180deg, rgba(248, 244, 239, 0.9), rgba(233, 222, 208, 0.98)),
    var(--paper);
  color: var(--ink);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--sand);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.eyebrow.dark {
  color: var(--blue);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: "Avenir Next", Avenir, Inter, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.05;
  font-weight: 850;
}

h1 {
  max-width: 13ch;
  margin-bottom: 18px;
  font-size: 2.35rem;
}

h2 {
  margin-bottom: 18px;
  font-size: 2rem;
}

h3 {
  margin-bottom: 7px;
  font-size: 1.02rem;
}

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

.section-paper p {
  color: var(--paper-muted);
}

.section-lead {
  max-width: 54ch;
  margin-bottom: 28px;
}

.button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  padding: 13px 18px;
  border: 1px solid transparent;
  font-weight: 850;
  font-size: 0.96rem;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.button:active {
  transform: translateY(1px);
}

.button-primary {
  color: #171100;
  background: var(--gold);
  box-shadow: 0 14px 30px rgba(245, 196, 0, 0.2);
}

.button-primary:hover {
  background: #ffd735;
}

.button-ghost {
  border-color: rgba(248, 244, 239, 0.56);
  color: var(--white);
  background: rgba(248, 244, 239, 0.04);
}

.button-ghost:hover,
.button-light:hover {
  border-color: var(--white);
  background: rgba(248, 244, 239, 0.12);
}

.button-light {
  border-color: rgba(248, 244, 239, 0.5);
  color: var(--white);
  background: rgba(248, 244, 239, 0.06);
}

.button-dark {
  color: var(--white);
  background: var(--blue);
}

.button-dark:hover {
  background: #25476f;
}

.hero {
  position: relative;
  min-height: 94svh;
  display: grid;
  align-items: end;
  overflow: hidden;
}

.hero__image,
.hero__overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero__image {
  object-fit: cover;
}

.hero__overlay {
  background:
    linear-gradient(180deg, rgba(11, 19, 32, 0.2), rgba(11, 19, 32, 0.54) 38%, rgba(11, 19, 32, 0.94) 100%),
    linear-gradient(90deg, rgba(11, 19, 32, 0.78), rgba(11, 19, 32, 0.14));
}

.hero__content {
  position: relative;
  z-index: 1;
  width: min(100%, 760px);
  margin: 0 auto;
  padding: 112px 20px 38px;
}

.hero__logo {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 28px;
  filter: drop-shadow(0 16px 22px rgba(0, 0, 0, 0.4));
}

.hero__text {
  max-width: 34ch;
  margin-bottom: 24px;
  font-size: 1.02rem;
}

.hero__actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.image-section {
  position: relative;
  overflow: hidden;
}

#nous {
  background-image:
    linear-gradient(rgba(11, 19, 32, 0.72), rgba(11, 19, 32, 0.84)),
    url("assets/bg-qui-sommes-nous.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

#nous > img,
#nous .image-section__overlay {
  display: none;
}

.image-section > img,
.image-section__overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.image-section > img {
  object-fit: cover;
}

.image-section__overlay {
  background:
    linear-gradient(180deg, rgba(11, 19, 32, 0.86), rgba(11, 19, 32, 0.94)),
    rgba(11, 19, 32, 0.64);
}

.image-section .section-inner {
  position: relative;
  z-index: 1;
}

.image-section p {
  max-width: 48ch;
}

.highlight {
  color: var(--gold);
  font-weight: 800;
  text-shadow: 0 1px 12px rgba(245, 196, 0, 0.28);
}

.commitment-list {
  display: grid;
  gap: 10px;
}

.commitment-list article {
  border: 1px solid rgba(29, 53, 87, 0.18);
  border-radius: var(--radius);
  padding: 16px;
  background: rgba(248, 244, 239, 0.62);
  box-shadow: 0 16px 36px rgba(16, 26, 43, 0.06);
}

.commitment-list p {
  margin-bottom: 0;
  font-size: 0.94rem;
}

.program-list {
  display: grid;
  gap: 10px;
}

.program-item {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 14px;
  align-items: start;
  padding: 14px 0;
  border-bottom: 1px solid rgba(248, 244, 239, 0.12);
}

.program-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(216, 199, 178, 0.34);
  border-radius: 50%;
  color: var(--sand);
  background: rgba(248, 244, 239, 0.04);
}

.program-icon svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.program-item p {
  margin-bottom: 0;
  font-size: 0.94rem;
}

.priority {
  background: var(--paper);
  color: var(--ink);
}

.priority__media {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  padding: 12px;
  background:
    linear-gradient(180deg, rgba(11, 19, 32, 0.96), rgba(16, 26, 43, 0.98)),
    var(--deep);
}

.priority__media img {
  width: 100%;
  height: 100%;
  border-radius: var(--radius);
  object-fit: cover;
}

.shop__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.priority__content {
  padding-top: 34px;
}

.priority p {
  color: var(--paper-muted);
}

.kit-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 18px 0;
  list-style: none;
}

.kit-list li {
  border: 1px solid rgba(29, 53, 87, 0.18);
  border-radius: var(--radius);
  padding: 7px 11px;
  color: var(--blue);
  background: rgba(248, 244, 239, 0.58);
  font-size: 0.86rem;
  font-weight: 750;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 22px 0;
}

.stats span {
  min-height: 76px;
  display: grid;
  align-content: center;
  padding: 12px 8px;
  border-radius: var(--radius);
  background: var(--night);
  color: var(--white);
  font-size: 0.74rem;
  text-align: center;
}

.stats strong {
  display: block;
  color: var(--gold);
  font-size: 1.35rem;
  line-height: 1;
}

.gallery {
  overflow: hidden;
}

.gallery .section-inner {
  padding-bottom: 18px;
}

.gallery-strip {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  padding: 0 20px 18px;
  scrollbar-width: none;
}

.gallery-strip::-webkit-scrollbar {
  display: none;
}

.gallery-strip img {
  flex: 0 0 min(76vw, 320px);
  height: 220px;
  object-fit: cover;
  border-radius: var(--radius);
  scroll-snap-align: start;
  box-shadow: 0 22px 46px rgba(0, 0, 0, 0.24);
}

.gallery-action {
  width: min(100%, 760px);
  margin: 0 auto;
  padding: 4px 20px 54px;
}

.gallery-action .button {
  width: 100%;
}

.shop {
  display: grid;
}

.shop__image {
  height: 320px;
  overflow: hidden;
  background: var(--deep);
}

.shop .section-inner {
  padding-top: 34px;
}

.donate {
  text-align: center;
}

.donate .section-inner {
  padding-top: 62px;
  padding-bottom: 62px;
}

.donate-line {
  color: var(--blue);
  font-weight: 850;
}

.site-footer {
  padding: 44px 20px 104px;
  background: #070c14;
  color: var(--white);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.footer-brand img {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

.footer-brand h2 {
  margin: 0;
  font-size: 1.25rem;
}

address {
  color: var(--muted);
  font-style: normal;
  margin-bottom: 24px;
}

address a {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-bottom: 18px;
}

.footer-links a {
  color: var(--sand);
  font-weight: 750;
}

.copyright {
  margin: 24px 0 0;
  color: rgba(248, 244, 239, 0.56);
  font-size: 0.86rem;
}

.floating-donate {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: calc(14px + env(safe-area-inset-bottom));
  z-index: 35;
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  color: #171100;
  background: var(--gold);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.36);
  font-weight: 900;
}

@media (min-width: 560px) {
  .hero__actions {
    grid-template-columns: auto auto;
    justify-content: start;
  }

  .commitment-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .program-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 0 20px;
  }

  .gallery-strip {
    padding-left: calc((100vw - 760px) / 2 + 20px);
  }
}

@media (min-width: 860px) {
  body {
    padding-bottom: 0;
  }

  .site-header {
    padding-inline: 28px;
  }

  .desktop-nav {
    display: flex;
    gap: 20px;
    color: rgba(248, 244, 239, 0.78);
    font-size: 0.92rem;
    font-weight: 750;
  }

  .desktop-nav a:hover {
    color: var(--white);
  }

  .header-donate {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    padding: 9px 14px;
    color: #171100;
    background: var(--gold);
    font-weight: 850;
  }

  .menu-toggle,
  .floating-donate {
    display: none;
  }

  h1 {
    max-width: 17ch;
    font-size: 3.5rem;
  }

  h2 {
    font-size: 2.55rem;
  }

  .hero {
    min-height: 92vh;
  }

  .hero__content {
    padding-bottom: 72px;
  }

  .priority,
  .shop {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(420px, 760px);
    align-items: stretch;
  }

  .priority__media,
  .shop__image {
    height: auto;
    min-height: 620px;
  }

  .shop {
    grid-template-columns: minmax(420px, 760px) minmax(0, 1fr);
  }

  .shop__image {
    order: 2;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
