/* =========================================================
   Fondation TULUKA — Feuille de style principale
   HTML / CSS / JS natif — Design fluide, responsive
   ========================================================= */

/* ---------- Design tokens ---------- */
:root {
  --bordeaux: #7a1f2b;
  --bordeaux-dark: #5c141f;
  --bordeaux-soft: #9c3140;
  --green: #2f6b4f;
  --green-dark: #234f3a;
  --green-soft: #eaf2ec;

  --paper: #faf6f1;
  --paper-2: #f2ebe2;
  --white: #ffffff;
  --ink: #2b2320;
  --ink-soft: #6a5f57;
  --line: #e7ddd2;

  --gold: #c8a24a;

  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;

  --shadow-sm: 0 2px 10px rgba(43, 35, 32, 0.06);
  --shadow: 0 12px 34px rgba(43, 35, 32, 0.10);
  --shadow-lg: 0 26px 60px rgba(43, 35, 32, 0.16);

  --maxw: 1200px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --header-h: 76px;
}

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

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

body {
  margin: 0;
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background-color: var(--paper);
  line-height: 1.65;
  font-size: 16px;
  overflow-x: hidden;
}

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

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

h1,
h2,
h3,
h4 {
  font-family: "Poppins", sans-serif;
  line-height: 1.15;
  font-weight: 700;
  margin: 0 0 0.4em;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

p {
  margin: 0 0 1rem;
  text-wrap: pretty;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 22px;
}

.section {
  padding-block: clamp(56px, 9vw, 116px);
}

.section--tint {
  background: var(--paper-2);
}

.section--dark {
  background: var(--bordeaux-dark);
  color: #f6e9e6;
}

.section-head {
  max-width: 720px;
  margin: 0 auto clamp(32px, 5vw, 60px);
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bordeaux);
  background: rgba(122, 31, 43, 0.08);
  padding: 7px 16px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.section--dark .eyebrow {
  color: #f0cdc7;
  background: rgba(255, 255, 255, 0.1);
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.7rem);
}

.section-sub {
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.section--dark .section-sub {
  color: #e7cfca;
}

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--bordeaux);
  --fg: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 600;
  font-size: 0.98rem;
  padding: 14px 26px;
  border-radius: 999px;
  white-space: nowrap;
  border: 1.5px solid transparent;
  background: var(--bg);
  color: var(--fg);
  cursor: pointer;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease),
    background 0.3s ease, color 0.3s ease;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.btn svg {
  width: 18px;
  height: 18px;
  transition: transform 0.4s var(--ease);
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.btn:hover svg {
  transform: translateX(4px);
}

.btn--green {
  --bg: var(--green);
}

.btn--ghost {
  --bg: transparent;
  --fg: var(--ink);
  border-color: var(--line);
  box-shadow: none;
}

.btn--ghost:hover {
  border-color: var(--bordeaux);
  color: var(--bordeaux);
}

.btn--light {
  --bg: #fff;
  --fg: var(--bordeaux);
}

.btn--outline-light {
  --bg: transparent;
  --fg: #fff;
  border-color: rgba(255, 255, 255, 0.55);
  box-shadow: none;
}

.btn--block {
  width: 100%;
}

/* ---------- Header / Nav ---------- */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  z-index: 100;
  display: flex;
  align-items: center;
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease),
    backdrop-filter 0.4s var(--ease);
}

.header.is-scrolled {
  background: rgba(250, 246, 241, 0.85);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: 100%;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.brand img {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.brand__name {
  font-size: 1.1rem;
  line-height: 1.05;
}

.brand__name span {
  display: block;
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.nav {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav a {
  padding: 9px 12px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  white-space: nowrap;
  color: var(--ink);
  transition: background 0.3s ease, color 0.3s ease;
}

/* "Adhérer" button only appears inside the mobile menu */
.nav > .btn {
  display: none;
}

.nav a:hover,
.nav a.active {
  background: rgba(122, 31, 43, 0.09);
  color: var(--bordeaux);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  width: 20px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.35s var(--ease), opacity 0.25s ease;
}

.nav-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle.is-open span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Hero slider ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: var(--header-h);
  padding-bottom: 72px;
  color: #fff;
  overflow: hidden;
}

.hero__slides {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero__slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.08);
  transition: opacity 2.2s ease, transform 8s linear;
}

.hero__slide.is-active {
  opacity: 1;
  transform: scale(1);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    100deg,
    rgba(60, 14, 20, 0.92) 0%,
    rgba(74, 18, 26, 0.72) 42%,
    rgba(35, 79, 58, 0.4) 100%
  );
}

.hero__inner {
  max-width: 720px;
  padding-block: 60px;
}

.hero__tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.24);
  padding: 8px 16px;
  border-radius: 999px;
  margin-bottom: 22px;
  backdrop-filter: blur(4px);
}

.hero h1 {
  font-size: clamp(2.2rem, 6vw, 4rem);
  margin-bottom: 0.35em;
}

.hero__lead {
  font-size: clamp(1.02rem, 2.2vw, 1.25rem);
  color: rgba(255, 255, 255, 0.92);
  max-width: 620px;
  margin-bottom: 32px;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero__dots {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 3;
}

.hero__dots button {
  width: 34px;
  height: 5px;
  border-radius: 999px;
  border: none;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: background 0.4s ease, width 0.4s ease;
}

.hero__dots button.is-active {
  background: #fff;
  width: 52px;
}

/* ---------- Stats ---------- */
.stats {
  margin-top: -48px;
  margin-bottom: 24px;
  position: relative;
  z-index: 5;
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  background: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 48px);
  box-shadow: 0 24px 60px -18px rgba(46, 16, 22, 0.28);
  border: 1px solid rgba(122, 31, 43, 0.06);
}

.stat {
  text-align: center;
  padding: 8px 18px;
  border-right: 1px solid var(--line);
  position: relative;
}

.stat:last-child {
  border-right: none;
}

.stat__icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(122, 31, 43, 0.1), rgba(122, 31, 43, 0.04));
  color: var(--bordeaux);
}

.stat__icon svg {
  width: 26px;
  height: 26px;
}

.stat__num {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--bordeaux);
  line-height: 1;
  letter-spacing: -0.03em;
}

.stat__label {
  color: var(--ink-soft);
  font-size: 0.92rem;
  font-weight: 500;
  margin-top: 8px;
}

/* ---------- About ---------- */
.about__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(30px, 5vw, 64px);
  align-items: center;
}

.about__media {
  position: relative;
}

.about__media img {
  width: 100%;
  height: 100%;
  min-height: 340px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.about__badge {
  position: absolute;
  right: -14px;
  bottom: -22px;
  background: var(--green);
  color: #fff;
  padding: 18px 22px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  max-width: 210px;
}

.about__badge strong {
  display: block;
  font-size: 1.5rem;
}

.about__badge span {
  font-size: 0.85rem;
  opacity: 0.9;
}

.vm-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 24px;
}

.vm-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}

.vm-card h4 {
  color: var(--bordeaux);
  margin-bottom: 6px;
  font-size: 1.05rem;
}

.vm-card p {
  margin: 0;
  font-size: 0.94rem;
  color: var(--ink-soft);
}

/* ---------- Domains / cards grid ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 22px;
}

.domain-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 320px;
  display: flex;
  align-items: flex-end;
  color: #fff;
  box-shadow: var(--shadow-sm);
  isolation: isolate;
}

.domain-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  transition: transform 1s var(--ease);
}

.domain-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    180deg,
    rgba(43, 35, 32, 0) 30%,
    rgba(43, 20, 22, 0.85) 100%
  );
  transition: background 0.5s ease;
}

.domain-card:hover img {
  transform: scale(1.08);
}

.domain-card:hover::after {
  background: linear-gradient(
    180deg,
    rgba(92, 20, 31, 0.15) 10%,
    rgba(92, 20, 31, 0.9) 100%
  );
}

.domain-card__body {
  padding: 24px;
  width: 100%;
}

.domain-card__icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.25);
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  backdrop-filter: blur(4px);
}

.domain-card__icon svg {
  width: 24px;
  height: 24px;
}

.domain-card h3 {
  font-size: 1.25rem;
  margin-bottom: 6px;
}

.domain-card p {
  margin: 0;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.85);
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.5s var(--ease), opacity 0.4s ease,
    margin 0.4s ease;
}

.domain-card:hover p {
  max-height: 120px;
  opacity: 1;
  margin-top: 6px;
}

/* ---------- Approach ---------- */
.approach-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.approach-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}

.approach-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.approach-card .num {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.1em;
}

.approach-card h4 {
  margin: 8px 0 8px;
  font-size: 1.2rem;
  color: var(--bordeaux);
}

.approach-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.94rem;
}

/* ---------- Programs ---------- */
.programs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 22px;
}

.program {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}

.program:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.program__media {
  height: 180px;
  overflow: hidden;
}

.program__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease);
}

.program:hover .program__media img {
  transform: scale(1.08);
}

.program__body {
  padding: 22px 24px 26px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.program__tag {
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green-dark);
  background: var(--green-soft);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.program h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.program p {
  color: var(--ink-soft);
  font-size: 0.93rem;
  margin-bottom: 14px;
}

.program ul {
  margin-top: auto;
  display: grid;
  gap: 7px;
}

.program li {
  position: relative;
  padding-left: 24px;
  font-size: 0.9rem;
  color: var(--ink);
}

.program li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--green-soft);
  border: 3px solid var(--green);
}

/* ---------- Campaign ---------- */
.campaign {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--bordeaux);
  color: #fff;
}

.campaign__media {
  position: relative;
  min-height: 360px;
}

.campaign__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.campaign__badge {
  position: absolute;
  top: 18px;
  left: 18px;
  background: var(--gold);
  color: #2b2320;
  font-weight: 600;
  font-size: 0.8rem;
  padding: 7px 15px;
  border-radius: 999px;
  z-index: 2;
}

.campaign__body {
  padding: clamp(30px, 4vw, 56px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.campaign__body h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.campaign__body p {
  color: rgba(255, 255, 255, 0.9);
}

.progress {
  margin: 8px 0 22px;
}

.progress__bar {
  height: 10px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  overflow: hidden;
}

.progress__fill {
  height: 100%;
  width: 0;
  background: var(--gold);
  border-radius: 999px;
  transition: width 1.6s var(--ease);
}

.progress__meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.85);
}

/* ---------- Gallery ---------- */
.gallery {
  columns: 3;
  column-gap: 16px;
}

.gallery__item {
  break-inside: avoid;
  margin-bottom: 16px;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.gallery__item img {
  width: 100%;
  transition: transform 0.8s var(--ease);
}

.gallery__item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(92, 20, 31, 0.7));
  opacity: 0;
  transition: opacity 0.4s ease;
}

.gallery__item:hover img {
  transform: scale(1.07);
}

.gallery__item:hover::after {
  opacity: 1;
}

.gallery__cap {
  position: absolute;
  left: 16px;
  bottom: 14px;
  color: #fff;
  font-weight: 600;
  font-size: 0.92rem;
  z-index: 2;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s ease, transform 0.4s var(--ease);
}

.gallery__item:hover .gallery__cap {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Actualité ---------- */
.news-feature {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 32px;
  align-items: center;
  margin-bottom: 44px;
}

.news-video {
  position: relative;
  display: block;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 16 / 9;
  background: #1a0d10;
}

.news-video img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease);
}

.news-video__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(26, 13, 16, 0.15),
    rgba(26, 13, 16, 0.55)
  );
  transition: background 0.4s ease;
}

.news-video:hover img {
  transform: scale(1.05);
}

.news-video:hover .news-video__overlay {
  background: linear-gradient(
    180deg,
    rgba(26, 13, 16, 0.05),
    rgba(26, 13, 16, 0.45)
  );
}

.news-video__badge {
  position: absolute;
  top: 16px;
  left: 16px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.95);
  color: #c4302b;
  font-weight: 700;
  font-size: 0.8rem;
  padding: 6px 12px;
  border-radius: 999px;
  z-index: 2;
}

.news-video__badge svg {
  width: 20px;
  height: 20px;
}

.news-video__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: var(--bordeaux);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  box-shadow: 0 12px 30px -8px rgba(0, 0, 0, 0.55);
  transition: transform 0.35s var(--ease), background 0.35s ease;
}

.news-video__play::after {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.55);
  animation: pulseRing 2.4s ease-out infinite;
}

@keyframes pulseRing {
  0% {
    transform: scale(0.9);
    opacity: 0.8;
  }
  70% {
    transform: scale(1.35);
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}

.news-video__play svg {
  width: 30px;
  height: 30px;
  margin-left: 4px;
}

.news-video:hover .news-video__play {
  transform: translate(-50%, -50%) scale(1.08);
}

.news-feature__body .news-tag {
  display: inline-block;
  background: rgba(122, 31, 43, 0.09);
  color: var(--bordeaux);
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.news-feature__body h3 {
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  line-height: 1.25;
  margin-bottom: 12px;
  color: var(--ink);
}

.news-feature__body p {
  color: var(--ink-soft);
  margin-bottom: 22px;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.news-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  transition: transform 0.4s var(--ease), box-shadow 0.4s ease;
}

.news-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.news-card__media {
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
}

.news-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}

.news-card:hover .news-card__media img {
  transform: scale(1.07);
}

.news-card__cat {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--bordeaux);
  color: #fff;
  font-weight: 600;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 5px 12px;
  border-radius: 999px;
  z-index: 2;
}

.news-card__body {
  padding: 22px 22px 26px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.news-card__date {
  color: var(--bordeaux);
  font-weight: 600;
  font-size: 0.82rem;
}

.news-card__body h3 {
  font-size: 1.12rem;
  line-height: 1.35;
  color: var(--ink);
}

.news-card__body p {
  color: var(--ink-soft);
  font-size: 0.94rem;
  line-height: 1.6;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(30, 12, 14, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.lightbox img {
  max-width: min(92vw, 1000px);
  max-height: 86vh;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  transform: scale(0.94);
  transition: transform 0.4s var(--ease);
}

.lightbox.is-open img {
  transform: scale(1);
}

.lightbox__close {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 1.6rem;
  cursor: pointer;
  transition: background 0.3s ease;
}

.lightbox__close:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* ---------- Testimonials ---------- */
.testi {
  position: relative;
  max-width: 820px;
  margin: 0 auto;
  min-height: 210px;
}

.testi__item {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.9s ease, transform 0.9s var(--ease);
  text-align: center;
  pointer-events: none;
}

.testi__item.is-active {
  opacity: 1;
  transform: translateY(0);
  position: relative;
  pointer-events: auto;
}

.testi__quote {
  font-size: clamp(1.15rem, 2.4vw, 1.55rem);
  font-weight: 500;
  line-height: 1.5;
  color: #f6e9e6;
}

.testi__author {
  margin-top: 18px;
  font-weight: 600;
  color: #fff;
}

.testi__role {
  color: #e2bcb6;
  font-size: 0.9rem;
}

.testi__dots {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 30px;
}

.testi__dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
}

.testi__dots button.is-active {
  background: var(--gold);
  transform: scale(1.25);
}

/* ---------- Partners ---------- */
.partners {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 16px;
}

.partner {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 16px;
  text-align: center;
  font-weight: 600;
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 92px;
  transition: transform 0.4s var(--ease), color 0.3s, border-color 0.3s;
}

.partner:hover {
  transform: translateY(-4px);
  color: var(--bordeaux);
  border-color: var(--bordeaux);
}

/* ---------- Support / Donation ---------- */
.support-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}

.support__ways {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 22px 0 26px;
}

.support__way {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 0.92rem;
  font-weight: 500;
}

.support__way svg {
  width: 20px;
  height: 20px;
  color: var(--green);
  flex-shrink: 0;
}

.bank-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow);
}

.bank-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.bank-chip {
  font-weight: 700;
  color: var(--bordeaux);
  font-size: 1.1rem;
}

.bank-logo {
  background: var(--green);
  color: #fff;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
}

.bank-row {
  margin-bottom: 14px;
}

.bank-row .lbl {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
}

.bank-row .val {
  font-size: 1.05rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.bank-account {
  font-family: "Poppins", monospace;
  letter-spacing: 0.04em;
}

.copy-btn {
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 0.8rem;
  cursor: pointer;
  color: var(--bordeaux);
  font-weight: 600;
  transition: background 0.3s, color 0.3s;
  white-space: nowrap;
}

.copy-btn:hover {
  background: var(--bordeaux);
  color: #fff;
}

/* ---------- Membership / Adhesion ---------- */
.adhesion-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: stretch;
}

.adhesion__media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 420px;
  color: #fff;
  display: flex;
  align-items: flex-end;
}

.adhesion__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.adhesion__media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(43, 20, 22, 0.1), rgba(43, 20, 22, 0.88));
}

.adhesion__media-body {
  padding: 30px;
}

.adhesion__media-body h3 {
  font-size: 1.4rem;
}

.tiers {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.tier {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 12px;
  padding: 12px 16px;
  backdrop-filter: blur(4px);
}

.tier strong {
  display: block;
  font-size: 1.15rem;
}

.tier span {
  font-size: 0.78rem;
  opacity: 0.85;
}

/* ---------- Forms ---------- */
.form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(26px, 3vw, 40px);
  box-shadow: var(--shadow);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 14px;
}

.field--full {
  grid-column: 1 / -1;
}

.field label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--ink-soft);
  text-transform: uppercase;
}

.field input,
.field select,
.field textarea {
  font-family: inherit;
  font-size: 0.92rem;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  width: 100%;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #a89ea0;
}

.field textarea {
  resize: vertical;
  min-height: 96px;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--bordeaux);
  box-shadow: 0 0 0 3px rgba(122, 31, 43, 0.12);
}

.radio-tiles {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.radio-tile {
  position: relative;
  flex: 1;
  min-width: 130px;
}

.radio-tile input {
  position: absolute;
  opacity: 0;
  inset: 0;
  cursor: pointer;
}

.radio-tile span {
  display: block;
  text-align: center;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--ink-soft);
  background: #fff;
  transition: all 0.25s ease;
  cursor: pointer;
}

.radio-tile input:checked + span {
  border-color: var(--bordeaux);
  background: var(--bordeaux);
  color: #fff;
  box-shadow: 0 6px 16px -6px rgba(122, 31, 43, 0.5);
}

.radio-tile input:focus-visible + span {
  box-shadow: 0 0 0 3px rgba(122, 31, 43, 0.2);
}

.form-note {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-top: 8px;
}

/* Champ fichier (PDF) */
.file-field {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1.5px dashed var(--line);
  border-radius: 12px;
  background: var(--paper, #faf7f5);
  color: var(--ink-soft);
  cursor: pointer;
  transition: border-color 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.file-field:hover {
  border-color: var(--bordeaux);
  color: var(--bordeaux);
}

.file-field.has-file {
  border-style: solid;
  border-color: var(--green, #2f7d46);
  color: var(--green-dark, #1f5b32);
  background: var(--green-soft, #eaf4ec);
}

.file-field input[type="file"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.file-field__icon svg {
  width: 20px;
  height: 20px;
  display: block;
}

.file-field__text {
  font-size: 0.9rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Champ photo passeport */
.photo-field {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 14px;
  border: 1.5px dashed var(--line);
  border-radius: 12px;
  background: var(--paper, #faf7f5);
}

/* Respecter l'attribut hidden malgré les display: flex / img display: block */
.photo-field [hidden],
.photo-camera[hidden] {
  display: none !important;
}

.photo-field__preview {
  flex: 0 0 auto;
  width: 96px;
  height: 120px;
  border-radius: 10px;
  overflow: hidden;
  background: #ece6e2;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
}

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

.photo-field__placeholder svg {
  width: 40px;
  height: 40px;
  color: #b8aca4;
}

.photo-field__body {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.photo-field__controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.photo-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1.5px solid var(--bordeaux);
  background: transparent;
  color: var(--bordeaux);
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.photo-btn:hover {
  background: var(--bordeaux);
  color: #fff;
}

.photo-btn svg {
  width: 17px;
  height: 17px;
}

.photo-btn--danger {
  border-color: #c0453e;
  color: #c0453e;
}

.photo-btn--danger:hover {
  background: #c0453e;
  color: #fff;
}

.photo-field__hint {
  font-size: 0.82rem;
  color: var(--ink-soft);
  margin: 0;
}

.photo-camera {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 10px;
  border-radius: 10px;
  background: #1a0d10;
}

.photo-camera video {
  width: 100%;
  max-width: 320px;
  border-radius: 8px;
  background: #000;
  transform: scaleX(-1);
}

.photo-camera__actions {
  display: flex;
  gap: 8px;
}

@media (max-width: 520px) {
  .photo-field {
    flex-direction: column;
    align-items: stretch;
  }
  .photo-field__preview {
    align-self: center;
  }
}

.form-success {
  display: none;
  align-items: center;
  gap: 10px;
  background: var(--green-soft);
  color: var(--green-dark);
  border: 1px solid #cfe3d5;
  padding: 14px 18px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.92rem;
  margin-top: 16px;
}

.form-success.is-visible {
  display: flex;
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 4vw, 48px);
}

.contact-info {
  display: grid;
  gap: 16px;
  align-content: start;
}

.contact-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
}

.contact-item svg {
  width: 22px;
  height: 22px;
  color: var(--bordeaux);
  flex-shrink: 0;
  margin-top: 3px;
}

.contact-item strong {
  display: block;
  font-size: 0.95rem;
}

.contact-item span {
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.map-embed {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  min-height: 220px;
}

.map-embed iframe {
  width: 100%;
  height: 100%;
  min-height: 220px;
  border: 0;
  display: block;
}

/* ---------- FAQ ---------- */
.faq {
  max-width: 820px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}

.faq-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 20px 22px;
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-family: inherit;
}

.faq-q .icon {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  border-radius: 50%;
  background: rgba(122, 31, 43, 0.09);
  color: var(--bordeaux);
  display: grid;
  place-items: center;
  font-size: 1.3rem;
  line-height: 1;
  transition: transform 0.4s var(--ease), background 0.3s;
}

.faq-item.is-open .faq-q .icon {
  transform: rotate(45deg);
  background: var(--bordeaux);
  color: #fff;
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s var(--ease);
}

.faq-a p {
  padding: 0 22px 20px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  color: #fff;
  text-align: center;
  overflow: hidden;
}

.cta-band img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.cta-band::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(120deg, rgba(60, 14, 20, 0.9), rgba(35, 79, 58, 0.8));
}

.cta-band h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
}

.cta-band p {
  max-width: 620px;
  margin: 0 auto 26px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.05rem;
}

.cta-band .hero__cta {
  justify-content: center;
}

/* ---------- Footer ---------- */
.footer {
  background: #241a19;
  color: #d9cdc7;
  padding-top: 64px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.4fr;
  gap: 34px;
  padding-bottom: 44px;
}

.footer .brand__name,
.footer .brand__name span {
  color: #fff;
}

.footer p {
  color: #b8a9a2;
  font-size: 0.92rem;
}

.footer h4 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 16px;
}

.footer-links {
  display: grid;
  gap: 9px;
}

.footer-links a {
  color: #c6b8b2;
  font-size: 0.92rem;
  transition: color 0.3s, padding-left 0.3s;
}

.footer-links a:hover {
  color: #fff;
  padding-left: 5px;
}

.newsletter {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}

.newsletter input {
  flex: 1;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #43302e;
  background: #1c1413;
  color: #fff;
  font-family: inherit;
}

.newsletter input:focus {
  outline: none;
  border-color: var(--bordeaux-soft);
}

.socials {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.socials a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid #43302e;
  display: grid;
  place-items: center;
  transition: background 0.3s, transform 0.3s;
}

.socials a:hover {
  background: var(--bordeaux);
  transform: translateY(-3px);
}

.socials svg {
  width: 18px;
  height: 18px;
}

.footer__bottom {
  border-top: 1px solid #3a2b29;
  padding-block: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  font-size: 0.85rem;
  color: #a5958e;
}

/* ---------- Back to top ---------- */
.to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: none;
  background: var(--bordeaux);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: opacity 0.4s ease, transform 0.4s var(--ease), visibility 0.4s;
  z-index: 90;
}

.to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.to-top:hover {
  background: var(--bordeaux-dark);
}

/* ---------- Loader ---------- */
.loader {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: var(--bordeaux-dark);
  display: grid;
  place-items: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.loader.is-hidden {
  opacity: 0;
  visibility: hidden;
}

.loader__ring {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 4px solid rgba(255, 255, 255, 0.2);
  border-top-color: var(--gold);
  animation: spin 0.9s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal[data-delay="1"] {
  transition-delay: 0.12s;
}
.reveal[data-delay="2"] {
  transition-delay: 0.24s;
}
.reveal[data-delay="3"] {
  transition-delay: 0.36s;
}

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

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 992px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }
  .gallery {
    columns: 2;
  }
  .news-feature {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .news-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 1024px) {
  .nav,
  .header__actions .btn {
    display: none;
  }
  .nav-toggle {
    display: flex;
  }

  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    background: var(--paper);
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 18px 22px 26px;
    box-shadow: var(--shadow);
    transform: translateY(-120%);
    transition: transform 0.5s var(--ease);
    max-height: calc(100svh - var(--header-h));
    overflow-y: auto;
  }
  .nav.is-open {
    display: flex;
    transform: translateY(0);
  }
  .nav a {
    padding: 13px 14px;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
  }
  .nav > .btn {
    display: inline-flex;
    margin-top: 12px;
    border-radius: 999px;
    justify-content: center;
    border-bottom: none;
  }

  .stats__grid {
    grid-template-columns: 1fr 1fr;
  }
  .stat:nth-child(2) {
    border-right: none;
  }
  .stat:nth-child(1),
  .stat:nth-child(2) {
    border-bottom: 1px solid var(--line);
    padding-bottom: 22px;
  }
  .stat:nth-child(3),
  .stat:nth-child(4) {
    padding-top: 22px;
  }

  .about__grid,
  .campaign,
  .support-grid,
  .adhesion-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .about__media {
    order: -1;
  }
  .about__badge {
    right: 12px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .stats {
    margin-top: -40px;
  }
  .stats__grid {
    grid-template-columns: 1fr;
  }
  .stat {
    border-right: none;
    border-bottom: 1px solid var(--line);
    padding-block: 18px;
  }
  .stat:last-child {
    border-bottom: none;
  }
  .gallery {
    columns: 1;
  }
  .news-grid {
    grid-template-columns: 1fr;
  }
  .support__ways,
  .vm-grid {
    grid-template-columns: 1fr;
  }
  .footer__grid {
    grid-template-columns: 1fr;
  }
  .hero__cta .btn {
    flex: 1;
  }
}
