/* ==========================================================================
   IBGolf Togo — Template HTML / CSS / JS
   Basé sur l'identité visuelle de ibgolf-tg.com (Grand Open de Lomé)
   --------------------------------------------------------------------------
   Sommaire
   01. Variables & réglages généraux
   02. Base & typographie
   03. Boutons & formulaires
   04. En-tête / navigation
   05. Hero
   06. Sections & titres
   07. Cartes & composants
   08. Bandeau visuel
   09. Partenaires
   10. Pages intérieures
   11. Galerie & lightbox
   12. Footer
   13. Bouton retour en haut
   14. Animations
   15. Responsive
   ========================================================================== */

/* 01. Variables ----------------------------------------------------------- */
:root {
  --c-green-900: #06281a;
  --c-green-800: #0a3b26;
  --c-green-700: #0e5133;
  --c-green-600: #146c43;
  --c-green-500: #1c8a55;
  --c-green-200: #bfe0cd;
  --c-green-100: #e6f2ea;
  --c-green-50: #f2f8f4;

  --c-gold: #c19a4b;
  --c-gold-soft: #f6efdf;

  --c-ink: #10231a;
  --c-body: #4c5c54;
  --c-muted: #66766f;

  --c-bg: #ffffff;
  --c-soft: #f4f7f5;
  --c-line: #e3ebe6;

  --font-display: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;

  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 26px;
  --r-pill: 999px;

  --sh-sm: 0 6px 20px -12px rgba(6, 40, 26, .28);
  --sh-md: 0 24px 50px -30px rgba(6, 40, 26, .35);
  --sh-lg: 0 40px 90px -45px rgba(6, 40, 26, .45);

  --header-h: 78px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* 02. Base ---------------------------------------------------------------- */
* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--c-body);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

h1, h2, h3, h4, h5, h6, .display-title {
  font-family: var(--font-display);
  color: var(--c-ink);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.02em;
  margin: 0 0 .6em;
}

h1, .h1 { font-size: clamp(2.25rem, 4.6vw, 3.55rem); }
h2, .h2 { font-size: clamp(1.85rem, 3.2vw, 2.65rem); }
h3, .h3 { font-size: clamp(1.35rem, 2vw, 1.65rem); }
h4, .h4 { font-size: 1.12rem; font-weight: 700; }

p { margin: 0 0 1.1rem; }
p:last-child { margin-bottom: 0; }

a {
  color: var(--c-green-700);
  text-decoration: none;
  transition: color .2s var(--ease);
}
a:hover { color: var(--c-green-500); }

img { max-width: 100%; height: auto; }
strong { color: var(--c-ink); font-weight: 600; }

::selection { background: var(--c-green-200); color: var(--c-green-900); }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 1080;
  padding: .7rem 1.2rem;
  background: var(--c-green-700);
  color: #fff;
  border-radius: var(--r-pill);
  transition: top .2s var(--ease);
}
.skip-link:focus-visible { top: 1rem; color: #fff; }

:focus-visible {
  outline: 3px solid rgba(28, 138, 85, .45);
  outline-offset: 3px;
  border-radius: 4px;
}

.container { padding-left: 1.25rem; padding-right: 1.25rem; }

/* 03. Boutons & formulaires ----------------------------------------------- */
.btn {
  --bs-btn-focus-box-shadow: 0 0 0 .25rem rgba(28, 138, 85, .25);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .95rem;
  line-height: 1.4;
  letter-spacing: .01em;
  padding: .75rem 1.5rem;
  border-radius: var(--r-pill);
  border-width: 1.5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  transition: transform .2s var(--ease), background-color .2s var(--ease),
              color .2s var(--ease), border-color .2s var(--ease),
              box-shadow .2s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn i { font-size: 1.15em; line-height: 0; }

.btn-lg {
  padding: .95rem 1.9rem;
  font-size: 1rem;
  border-radius: var(--r-pill);
}

.btn-sm { padding: .5rem 1.15rem; font-size: .875rem; }

.btn-primary {
  --bs-btn-color: #fff;
  --bs-btn-bg: var(--c-green-600);
  --bs-btn-border-color: var(--c-green-600);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: var(--c-green-700);
  --bs-btn-hover-border-color: var(--c-green-700);
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: var(--c-green-800);
  --bs-btn-active-border-color: var(--c-green-800);
  --bs-btn-disabled-bg: var(--c-green-600);
  --bs-btn-disabled-border-color: var(--c-green-600);
  box-shadow: 0 16px 30px -16px rgba(14, 81, 51, .75);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 22px 38px -18px rgba(14, 81, 51, .8); }

.btn-outline-primary {
  --bs-btn-color: var(--c-green-700);
  --bs-btn-border-color: var(--c-green-600);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: var(--c-green-700);
  --bs-btn-hover-border-color: var(--c-green-700);
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: var(--c-green-800);
  --bs-btn-active-border-color: var(--c-green-800);
  background: transparent;
}

.btn-ghost {
  --bs-btn-color: var(--c-ink);
  --bs-btn-bg: #fff;
  --bs-btn-border-color: var(--c-line);
  --bs-btn-hover-color: var(--c-green-800);
  --bs-btn-hover-bg: #fff;
  --bs-btn-hover-border-color: var(--c-green-200);
  --bs-btn-active-bg: #fff;
  --bs-btn-active-border-color: var(--c-green-200);
  box-shadow: var(--sh-sm);
}
.btn-ghost:hover { transform: translateY(-2px); box-shadow: var(--sh-md); }

.btn-gold {
  --bs-btn-color: var(--c-green-900);
  --bs-btn-bg: var(--c-gold);
  --bs-btn-border-color: var(--c-gold);
  --bs-btn-hover-color: var(--c-green-900);
  --bs-btn-hover-bg: #cfa955;
  --bs-btn-hover-border-color: #cfa955;
  box-shadow: 0 16px 30px -18px rgba(193, 154, 75, .9);
}

.btn-link {
  font-weight: 600;
  text-decoration: none;
  padding: .25rem 0;
  color: var(--c-green-700);
}
.btn-link i { transition: transform .2s var(--ease); }
.btn-link:hover i { transform: translateX(4px); }

.form-label {
  font-family: var(--font-body);
  font-size: .875rem;
  font-weight: 600;
  color: var(--c-ink);
  margin-bottom: .4rem;
}

.form-control, .form-select {
  font-family: var(--font-body);
  font-size: .95rem;
  color: var(--c-ink);
  background-color: #fff;
  border: 1.5px solid var(--c-line);
  border-radius: var(--r-sm);
  padding: .8rem 1rem;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.form-control::placeholder { color: #74837b; }
.form-control:focus, .form-select:focus {
  border-color: var(--c-green-500);
  box-shadow: 0 0 0 .25rem rgba(28, 138, 85, .14);
  color: var(--c-ink);
  background-color: #fff;
}
textarea.form-control { min-height: 150px; resize: vertical; }

.form-check-input { border-color: #c9d5ce; }
.form-check-input:checked {
  background-color: var(--c-green-600);
  border-color: var(--c-green-600);
}
.form-check-input:focus {
  border-color: var(--c-green-500);
  box-shadow: 0 0 0 .25rem rgba(28, 138, 85, .14);
}
.invalid-feedback { font-size: .82rem; }

/* 04. En-tête / navigation ------------------------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: rgba(255, 255, 255, .88);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: background-color .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(255, 255, 255, .97);
  border-bottom-color: var(--c-line);
  box-shadow: 0 12px 30px -24px rgba(6, 40, 26, .55);
}

.site-header .container {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  gap: .75rem;
}

.navbar-brand { margin: 0; padding: 0; }
.navbar-brand img {
  height: 80px;
  width: auto;
  object-fit: contain;
  display: block;
}

.site-header .navbar-nav { gap: .15rem; }

.site-header .nav-link {
  position: relative;
  font-size: .93rem;
  font-weight: 600;
  color: var(--c-ink);
  padding: .55rem .85rem;
  border-radius: var(--r-pill);
  transition: color .2s var(--ease), background-color .2s var(--ease);
}
.site-header .nav-link::after {
  content: "";
  position: absolute;
  left: .85rem;
  right: .85rem;
  bottom: .28rem;
  height: 2px;
  border-radius: 2px;
  background: var(--c-green-600);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s var(--ease);
}
.site-header .nav-link:hover { color: var(--c-green-700); }
.site-header .nav-link:hover::after,
.site-header .nav-link.active::after { transform: scaleX(1); }
.site-header .nav-link.active { color: var(--c-green-700); }

.lang-switch { display: flex; align-items: center; gap: .45rem; }
.lang-switch a {
  display: inline-flex;
  padding: 3px;
  border-radius: 6px;
  line-height: 0;
  transition: background-color .2s var(--ease), transform .2s var(--ease);
}
.lang-switch img {
  width: 26px;
  height: 18px;
  object-fit: cover;
  border-radius: 3px;
  opacity: .5;
  transition: opacity .2s var(--ease);
}
.lang-switch a:hover { background: var(--c-soft); transform: translateY(-1px); }
.lang-switch a:hover img,
.lang-switch a.is-active img { opacity: 1; }
.lang-switch a.is-active { background: var(--c-green-100); }

.navbar-toggler {
  margin-left: auto;
  border: 1px solid var(--c-line);
  border-radius: 10px;
  padding: .45rem .55rem;
  color: var(--c-ink);
  box-shadow: none !important;
}
.navbar-toggler i { font-size: 1.6rem; line-height: 0; display: block; }

.offcanvas {
  --bs-offcanvas-width: 340px;
  border-left: 0;
}
.offcanvas-header { padding: 1.15rem 1.4rem; }
.offcanvas-title {
  font-size: 1.05rem;
  letter-spacing: .02em;
  text-transform: uppercase;
  margin: 0;
}
.offcanvas-body { padding: 1.25rem 1.4rem 1.5rem; }
.offcanvas .navbar-nav { gap: .2rem; margin-bottom: 1.5rem; }
.offcanvas .nav-link {
  padding: .75rem .9rem;
  border-radius: 10px;
}
.offcanvas .nav-link::after { display: none; }
.offcanvas .nav-link:hover { background: var(--c-soft); }
.offcanvas .nav-link.active { background: var(--c-green-100); }
.offcanvas .lang-switch { padding-top: 1.25rem; border-top: 1px solid var(--c-line); }

/* 05. Hero ---------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(2rem, 4vw, 3.25rem) 0 clamp(3rem, 6vw, 5.5rem);
  background:
    radial-gradient(900px 520px at 88% -10%, rgba(28, 138, 85, .14), transparent 70%),
    linear-gradient(180deg, #f7faf8 0%, #ffffff 78%);
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(rgba(14, 81, 51, .16) 1px, transparent 1px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(circle at 78% 18%, #000 0%, transparent 62%);
  mask-image: radial-gradient(circle at 78% 18%, #000 0%, transparent 62%);
  opacity: .8;
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  right: -160px;
  top: -220px;
  width: 640px;
  height: 640px;
  border-radius: 50%;
  border: 1px solid rgba(14, 81, 51, .1);
  z-index: -1;
}

.hero .breadcrumb {
  --bs-breadcrumb-divider: "/";
  font-size: .875rem;
  font-weight: 500;
  margin-bottom: 1.6rem;
}
.hero .breadcrumb-item + .breadcrumb-item::before { color: #b3c0b8; padding: 0 .6rem; }
.hero .breadcrumb a { color: var(--c-muted); }
.hero .breadcrumb a:hover { color: var(--c-green-700); }
.hero .breadcrumb-item.active { color: var(--c-ink); }

.hero h1 { margin-bottom: 1.1rem; }
.hero h1 .accent { color: var(--c-green-600); }

.hero__lead {
  font-size: clamp(1.02rem, 1.35vw, 1.18rem);
  line-height: 1.75;
  color: var(--c-body);
  max-width: 34rem;
  margin-bottom: 1.9rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .85rem;
  align-items: center;
}

.hero__note {
  display: flex;
  align-items: center;
  gap: .65rem;
  margin-top: 1.75rem;
  font-size: .875rem;
  color: var(--c-muted);
}
.hero__note i { color: var(--c-green-600); font-size: 1.15rem; }

.hero-media {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(.75rem, 1.5vw, 1.15rem);
  align-items: start;
}
.hero-media__col { display: grid; gap: clamp(.75rem, 1.5vw, 1.15rem); }
.hero-media__col:first-child { padding-top: clamp(1.25rem, 4vw, 3.25rem); }

.hero-media figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: var(--r-md);
  background: var(--c-soft);
  box-shadow: var(--sh-md);
}
.hero-media img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transition: transform .8s var(--ease);
}
.hero-media__col > figure:nth-child(2) img { aspect-ratio: 1 / 1; }
.hero-media figure:hover img { transform: scale(1.05); }

.hero-media__badge {
  position: absolute;
  left: .9rem;
  bottom: .9rem;
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .45rem .8rem;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  font-family: var(--font-display);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--c-green-800);
}
.hero-media__badge i { color: var(--c-gold); font-size: 1rem; }

/* 06. Sections & titres --------------------------------------------------- */
.section { padding: clamp(3rem, 6vw, 5.5rem) 0; }
.section--tight { padding: clamp(2rem, 4vw, 3.5rem) 0; }
.section--soft { background: var(--c-soft); }

.section-head { max-width: 46rem; margin-bottom: clamp(1.75rem, 3.5vw, 2.75rem); }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { color: var(--c-body); margin-bottom: 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-display);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--c-green-600);
  margin-bottom: .9rem;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  border-radius: 2px;
  background: var(--c-gold);
}
.section-head--center .eyebrow::after,
.eyebrow.section-head--center::after {
  content: "";
  width: 26px;
  height: 2px;
  border-radius: 2px;
  background: var(--c-gold);
}

.text-muted-custom { color: var(--c-muted) !important; }

/* 07. Cartes & composants ------------------------------------------------- */
/* Mission / swiper */
.mission-swiper { padding-bottom: .25rem; }
.mission-swiper .swiper-slide { height: auto; }

.mission-card {
  height: 100%;
  padding: 2.4rem 1.6rem;
  text-align: center;
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.mission-card:hover {
  transform: translateY(-5px);
  border-color: transparent;
  box-shadow: var(--sh-md);
}
.mission-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.4rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--c-green-100);
  color: var(--c-green-700);
  font-size: 1.7rem;
  transition: background-color .3s var(--ease), color .3s var(--ease);
}
.mission-card:hover .mission-icon { background: var(--c-green-600); color: #fff; }
.mission-card h3 { font-size: 1.15rem; margin-bottom: .6rem; }
.mission-card p { font-size: .95rem; color: var(--c-body); margin: 0 auto; max-width: 21rem; }

.swiper-pagination { position: static; margin-top: 1.75rem; line-height: 1; }
.swiper-pagination-bullet {
  width: 9px;
  height: 9px;
  background: #b9c9c0;
  opacity: 1;
  transition: width .25s var(--ease), background-color .25s var(--ease);
}
.swiper-pagination-bullet-active { width: 26px; border-radius: var(--r-pill); background: var(--c-green-600); }

/* Vision */
.vision-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  height: 100%;
  padding: 1.4rem 1.5rem;
  background: var(--c-soft);
  border: 1px solid transparent;
  border-radius: var(--r-md);
  transition: background-color .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.vision-card:hover {
  background: #fff;
  border-color: var(--c-line);
  box-shadow: var(--sh-sm);
}
.vision-card__num {
  flex: none;
  font-family: var(--font-display);
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .08em;
  color: var(--c-green-600);
  padding-top: .25rem;
}
.vision-card p { margin: 0; font-weight: 600; color: var(--c-ink); line-height: 1.5; }

/* Checklist */
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.checklist li { display: flex; align-items: flex-start; gap: .85rem; font-size: 1rem; line-height: 1.6; }
.checklist i {
  flex: none;
  margin-top: .12rem;
  font-size: 1.3rem;
  line-height: 1;
  color: var(--c-green-600);
}

/* Image encadrée */
.image-frame {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--c-soft);
  box-shadow: var(--sh-lg);
}
.image-frame img { display: block; width: 100%; object-fit: cover; }
.image-frame--short img { height: clamp(220px, 26vw, 320px); }
.image-frame--offset::before {
  content: "";
  position: absolute;
  inset: auto -1.25rem -1.25rem auto;
  width: 62%;
  height: 62%;
  border-radius: var(--r-lg);
  border: 1.5px solid var(--c-green-200);
  z-index: -1;
}
.image-frame--offset { z-index: 1; overflow: visible; box-shadow: none; }
.image-frame--offset img { border-radius: var(--r-lg); box-shadow: var(--sh-lg); }

/* Cartes de soutien */
.support-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  height: 100%;
  padding: 1.5rem;
  background: #fff;
  border: 1px solid rgba(6, 40, 26, .05);
  border-radius: var(--r-md);
  box-shadow: var(--sh-sm);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.support-card:hover { transform: translateY(-3px); box-shadow: var(--sh-md); }
.support-card i { flex: none; font-size: 1.5rem; line-height: 1; color: var(--c-gold); margin-top: .1rem; }
.support-card p { margin: 0; font-weight: 600; color: var(--c-ink); line-height: 1.5; }

.panel-soft {
  background: var(--c-soft);
  border-radius: var(--r-lg);
  padding: clamp(1.5rem, 4vw, 3.5rem);
  border: 1px solid rgba(6, 40, 26, .04);
}

/* Statistiques */
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.stat {
  padding: 1.35rem 1.4rem;
  border-radius: var(--r-md);
  background: #fff;
  border: 1px solid var(--c-line);
}
.stat__value {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--c-green-700);
  letter-spacing: -.03em;
}
.stat__label { display: block; font-size: .85rem; color: var(--c-muted); margin-top: .35rem; }

/* 08. Bandeau visuel ------------------------------------------------------ */
.visual-banner {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-lg);
  background: var(--c-green-900);
}
.visual-banner img {
  display: block;
  width: 100%;
  height: clamp(260px, 40vw, 480px);
  object-fit: cover;
  opacity: .85;
  transition: transform 1s var(--ease);
}
.visual-banner:hover img { transform: scale(1.03); }
.visual-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(6, 40, 26, .82) 0%, rgba(6, 40, 26, .38) 55%, rgba(6, 40, 26, .08) 100%);
  pointer-events: none;
}
.visual-banner__content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  padding: clamp(1.5rem, 4vw, 3.25rem);
  color: #fff;
}
.visual-banner__content h2,
.visual-banner__content p { color: #fff; }
.visual-banner__content h2 { font-size: clamp(1.5rem, 3vw, 2.3rem); max-width: 22ch; margin-bottom: .5rem; }
.visual-banner__content p { max-width: 44ch; margin: 0; color: rgba(255, 255, 255, .82); font-size: .98rem; }

/* 09. Partenaires --------------------------------------------------------- */
.partner-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .75rem;
}
.partner {
  display: grid;
  place-items: center;
  min-height: 88px;
  padding: .9rem .6rem;
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--r-sm);
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease), transform .25s var(--ease);
}
.partner:hover {
  border-color: var(--c-green-200);
  box-shadow: var(--sh-sm);
  transform: translateY(-2px);
}
.partner img {
  width: auto;
  max-width: 100%;
  max-height: 44px;
  object-fit: contain;
  filter: grayscale(1);
  opacity: .7;
  transition: filter .25s var(--ease), opacity .25s var(--ease);
}
.partner:hover img { filter: none; opacity: 1; }

/* 10. Pages intérieures --------------------------------------------------- */
.page-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(2.5rem, 5vw, 4.25rem) 0 clamp(2.5rem, 5vw, 4rem);
  background:
    radial-gradient(760px 420px at 90% -20%, rgba(28, 138, 85, .16), transparent 70%),
    linear-gradient(180deg, #f6faf7 0%, #ffffff 100%);
  border-bottom: 1px solid var(--c-line);
}
.page-hero--dark {
  background:
    radial-gradient(600px 380px at 85% 0%, rgba(28, 138, 85, .35), transparent 70%),
    linear-gradient(120deg, var(--c-green-900) 0%, var(--c-green-800) 60%, #0d4229 100%);
  border-bottom: 0;
  color: rgba(255, 255, 255, .78);
}
.page-hero--dark h1 { color: #fff; }
.page-hero--dark .breadcrumb a { color: rgba(255, 255, 255, .65); }
.page-hero--dark .breadcrumb a:hover { color: #fff; }
.page-hero--dark .breadcrumb-item.active { color: #fff; }
.page-hero--dark .breadcrumb-item + .breadcrumb-item::before { color: rgba(255, 255, 255, .35); }
.page-hero--dark .eyebrow { color: var(--c-gold); }
.page-hero h1 { margin-bottom: 1rem; }
.page-hero .lead-custom { font-size: clamp(1rem, 1.4vw, 1.15rem); max-width: 42rem; margin-bottom: 0; }

.page-hero .breadcrumb {
  --bs-breadcrumb-divider: "/";
  font-size: .875rem;
  margin-bottom: 1.5rem;
}
.page-hero .breadcrumb a { color: var(--c-muted); }
.page-hero .breadcrumb a:hover { color: var(--c-green-700); }
.page-hero .breadcrumb-item.active { color: var(--c-ink); }
.page-hero .breadcrumb-item + .breadcrumb-item::before { color: #b3c0b8; padding: 0 .6rem; }

.pack-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 2rem;
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.pack-card:hover { transform: translateY(-4px); box-shadow: var(--sh-md); }
.pack-card--featured {
  border-color: var(--c-green-600);
  box-shadow: 0 30px 70px -45px rgba(14, 81, 51, .7);
}
.pack-card__badge {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  padding: .3rem .75rem;
  border-radius: var(--r-pill);
  background: var(--c-green-100);
  color: var(--c-green-700);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.pack-card h3 { font-size: 1.3rem; margin-bottom: .35rem; }
.pack-card__price {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--c-green-600);
  margin-bottom: 1.25rem;
}
.pack-card hr { border-color: var(--c-line); opacity: 1; margin: 1.25rem 0; }
.pack-card .checklist { gap: .7rem; flex: 1; }
.pack-card .checklist li { font-size: .92rem; line-height: 1.5; }
.pack-card .btn { margin-top: 1.75rem; width: 100%; }

.timeline { position: relative; margin: 0; padding: 0 0 0 1.9rem; list-style: none; }
.timeline::before {
  content: "";
  position: absolute;
  left: .42rem;
  top: .5rem;
  bottom: .5rem;
  width: 2px;
  background: var(--c-line);
}
.timeline__item { position: relative; padding-bottom: 1.9rem; }
.timeline__item:last-child { padding-bottom: 0; }
.timeline__item::before {
  content: "";
  position: absolute;
  left: -1.9rem;
  top: .35rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  border: 2.5px solid var(--c-green-600);
}
.timeline__time {
  display: inline-block;
  font-family: var(--font-display);
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--c-green-600);
  margin-bottom: .3rem;
}
.timeline__item h4 { margin-bottom: .3rem; font-size: 1.05rem; }
.timeline__item p { margin: 0; font-size: .94rem; }

.info-card {
  height: 100%;
  padding: 1.6rem;
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.info-card:hover { border-color: var(--c-green-200); box-shadow: var(--sh-sm); }
.info-card__icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--c-green-100);
  color: var(--c-green-700);
  font-size: 1.4rem;
  margin-bottom: 1rem;
}
.info-card h3 { font-size: 1rem; margin-bottom: .4rem; }
.info-card p, .info-card a { margin: 0; font-size: .95rem; color: var(--c-body); }
.info-card a:hover { color: var(--c-green-700); }

.map-placeholder {
  position: relative;
  overflow: hidden;
  min-height: 360px;
  border-radius: var(--r-lg);
  background:
    radial-gradient(circle at 30% 30%, rgba(28, 138, 85, .16), transparent 55%),
    repeating-linear-gradient(45deg, #eef4ef 0 22px, #e8f0ea 22px 23px);
  border: 1px solid var(--c-line);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 2rem;
}
.map-placeholder__pin {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: var(--c-green-600);
  color: #fff;
  font-size: 1.6rem;
  box-shadow: 0 0 0 12px rgba(20, 108, 67, .1), 0 0 0 26px rgba(20, 108, 67, .05);
}

.contact-panel {
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  padding: clamp(1.5rem, 3.5vw, 2.75rem);
  box-shadow: var(--sh-md);
}

.table-packs { border-color: var(--c-line); }
.table-packs > :not(caption) > * > * {
  padding: 1rem 1.1rem;
  border-color: var(--c-line);
  background: transparent;
}
.table-packs thead th {
  font-family: var(--font-display);
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--c-green-800);
  background: var(--c-green-50);
  border-bottom-color: var(--c-green-200);
  white-space: nowrap;
}
.table-packs tbody th { font-weight: 600; color: var(--c-ink); font-size: .95rem; }
.table-packs td { font-size: .95rem; }
.table-packs .bx-check { font-size: 1.35rem; vertical-align: middle; }

/* 11. Galerie & lightbox -------------------------------------------------- */
.gallery-filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.gallery-filter {
  font-family: var(--font-body);
  font-size: .875rem;
  font-weight: 600;
  color: var(--c-body);
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--r-pill);
  padding: .55rem 1.15rem;
  transition: all .2s var(--ease);
}
.gallery-filter:hover { border-color: var(--c-green-200); color: var(--c-green-700); }
.gallery-filter.is-active {
  background: var(--c-green-600);
  border-color: var(--c-green-600);
  color: #fff;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem;
}
.gallery-item {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: var(--r-md);
  background: var(--c-soft);
  cursor: pointer;
  aspect-ratio: 4 / 3;
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.gallery-item.is-hidden { display: none; }
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .7s var(--ease);
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(6, 40, 26, .78) 100%);
  opacity: 0;
  transition: opacity .3s var(--ease);
}
.gallery-item:hover::after, .gallery-item:focus-visible::after { opacity: 1; }
.gallery-item figcaption {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: .9rem;
  z-index: 2;
  color: #fff;
  font-size: .9rem;
  font-weight: 600;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.gallery-item:hover figcaption, .gallery-item:focus-visible figcaption { opacity: 1; transform: none; }

.lightbox .modal-content { background: transparent; border: 0; }
.lightbox .modal-body { padding: 0; }
.lightbox img {
  width: 100%;
  max-height: 78vh;
  object-fit: contain;
  border-radius: var(--r-md);
  background: #0b1d14;
}
.lightbox__caption { color: rgba(255, 255, 255, .85); text-align: center; font-size: .9rem; margin-top: .9rem; }
.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
  color: #fff;
  font-size: 1.5rem;
  z-index: 3;
  transition: background-color .2s var(--ease);
}
.lightbox__nav:hover { background: rgba(255, 255, 255, .25); color: #fff; }
.lightbox__nav--prev { left: -1rem; }
.lightbox__nav--next { right: -1rem; }
.modal-backdrop.show { opacity: .85; }

/* 12. Footer -------------------------------------------------------------- */
.site-footer {
  position: relative;
  overflow: hidden;
  padding: clamp(3rem, 5vw, 4.5rem) 0 1.75rem;
  color: rgba(255, 255, 255, .68);
  background:
    radial-gradient(720px 420px at 12% 0%, rgba(28, 138, 85, .3), transparent 65%),
    linear-gradient(180deg, #082217 0%, #061a11 100%);
}
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, .08) 1px, transparent 1px);
  background-size: 28px 28px;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 65%);
  mask-image: linear-gradient(180deg, #000, transparent 65%);
  pointer-events: none;
}
.site-footer .container { position: relative; z-index: 1; }
.site-footer a { color: rgba(255, 255, 255, .75); }
.site-footer a:hover { color: #fff; }

.footer-brand { display: inline-block; margin-bottom: 1.15rem; }
.footer-brand img { height: 46px; width: auto; }

.site-footer h6 {
  font-family: var(--font-display);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 1.1rem;
}
.site-footer .newsletter-label { font-size: .92rem; color: rgba(255, 255, 255, .72); margin-bottom: .7rem; }

.newsletter { position: relative; max-width: 26rem; }
.newsletter .form-field { flex: 1 1 auto; min-width: 0; }
.newsletter.is-sent { display: none !important; }
.newsletter .form-control {
  height: 54px;
  padding-left: 2.9rem;
  padding-right: 1rem;
  color: #fff;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: var(--r-pill);
}
.newsletter .form-control::placeholder { color: rgba(255, 255, 255, .45); }
.newsletter .form-control:focus {
  background: rgba(255, 255, 255, .1);
  border-color: var(--c-green-500);
  color: #fff;
  box-shadow: 0 0 0 .25rem rgba(28, 138, 85, .22);
}
.newsletter__icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, .45);
  font-size: 1.15rem;
  pointer-events: none;
  z-index: 2;
}
.newsletter .btn {
  margin-top: .7rem;
  width: 100%;
  min-height: 54px;
}

.socials { display: flex; gap: .55rem; }
.socials a {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .12);
  color: #fff;
  font-size: 1.15rem;
  transition: background-color .2s var(--ease), transform .2s var(--ease), border-color .2s var(--ease);
}
.socials a:hover { background: var(--c-green-600); border-color: var(--c-green-600); transform: translateY(-2px); }

.footer-contact { list-style: none; margin: 0; padding: 0; display: grid; gap: .9rem; font-size: .93rem; }
.footer-contact li { display: flex; align-items: flex-start; gap: .75rem; }
.footer-contact i { flex: none; margin-top: .15rem; font-size: 1.15rem; color: var(--c-gold); }
.footer-contact strong { color: #fff; font-weight: 600; }

.footer-bottom {
  margin-top: clamp(2.25rem, 4vw, 3.5rem);
  padding-top: 1.4rem;
  border-top: 1px solid rgba(255, 255, 255, .1);
  font-size: .82rem;
  color: rgba(255, 255, 255, .5);
}
.footer-bottom a { text-decoration: underline; text-underline-offset: 3px; }

/* 13. Retour en haut ------------------------------------------------------- */
.btn-scroll-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 1040;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 0;
  background: var(--c-green-600);
  color: #fff;
  font-size: 1.6rem;
  line-height: 0;
  box-shadow: 0 16px 32px -14px rgba(6, 40, 26, .8);
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s, background-color .2s;
}
.btn-scroll-top:hover { background: var(--c-green-700); color: #fff; }
.btn-scroll-top.is-visible { opacity: 1; visibility: visible; transform: none; }

/* 14. Animations ---------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }

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

/* 15. Responsive ---------------------------------------------------------- */
@media (min-width: 576px) {
  .partner-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .newsletter { display: flex; }
  .newsletter .form-control { border-radius: var(--r-pill) 0 0 var(--r-pill); }
  .newsletter .btn { margin-top: 0; width: auto; border-radius: 0 var(--r-pill) var(--r-pill) 0; }
  .newsletter .form-control { padding-right: .75rem; }
}

@media (min-width: 768px) {
  .partner-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .lightbox__nav--prev { left: -1.5rem; }
  .lightbox__nav--next { right: -1.5rem; }
}

@media (min-width: 992px) {
  .site-header .navbar-nav { margin-left: auto; margin-right: .5rem; }
  .partner-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .offcanvas .navbar-nav { margin-bottom: 0; }
  .offcanvas .lang-switch { display: none; }
  .hero { padding-top: clamp(2.25rem, 3vw, 3.5rem); }
}

@media (max-width: 991.98px) {
  .site-header .container { min-height: 68px; }
  .navbar-brand img { height: 62px; }
  .site-header .lang-switch { display: none; }
  .offcanvas .lang-switch { display: flex; }
  .lightbox__nav { width: 38px; height: 38px; font-size: 1.25rem; }
  .lightbox__nav--prev { left: -.25rem; }
  .lightbox__nav--next { right: -.25rem; }
}

@media (max-width: 575.98px) {
  body { font-size: .97rem; }
  .hero__actions .btn { width: 100%; }
  .hero__actions { gap: .6rem; }
  .hero-media { gap: .6rem; }
  .hero-media__col { gap: .6rem; }
  .hero-media__badge { display: none; }
  .panel-soft { border-radius: var(--r-md); }
  .stat { padding: 1.1rem; }
  .visual-banner::after { background: linear-gradient(180deg, rgba(6, 40, 26, .15) 0%, rgba(6, 40, 26, .85) 100%); }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
  .gallery-item { aspect-ratio: 1 / 1; }
  .gallery-item figcaption { opacity: 1; transform: none; font-size: .8rem; bottom: .6rem; left: .7rem; right: .7rem; }
  .gallery-item::after { opacity: .55; }
  .footer-bottom { text-align: center; }
}

/* Impression */
@media print {
  .site-header, .site-footer, .btn-scroll-top, .visual-banner__content { display: none !important; }
  body { color: #000; }
  .reveal { opacity: 1; transform: none; }
}


@media (max-width: 991.98px) {
  /* Plus de flou sur mobile : il casse le menu "fixed" */
  .site-header {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    background: rgba(255, 255, 255, .97);
  }

  /* Quand le menu est ouvert, le header passe au-dessus du fond sombre */
  .site-header:has(.offcanvas.show),
  .site-header:has(.offcanvas.showing) {
    z-index: 1050;
  }
}