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

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

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

@font-face { font-family: "Open Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/open-sans-latin-400-normal.woff2") format("woff2"); }

@font-face { font-family: "Open Sans"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/open-sans-latin-400-italic.woff2") format("woff2"); }

@font-face { font-family: "Open Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/open-sans-latin-600-normal.woff2") format("woff2"); }

/* variables */
:root {
  --c-night: #1a3467;
  --c-night-deep: #102449;
  --c-blue: #2968a6;
  --c-sky: #42a5d6;
  --c-gold: #f5c518;
  --c-gold-light: #ffe066;
  --c-white: #fff;
  --c-snow: #f4f7fb;
  --c-ink: #0f1f3d;
  --c-muted: #55657d;
  --c-line: #dfe6ef;
  --c-holly: #c4262e;
  --c-holly-dark: #9c1b22;
  --c-fir: #1f6b52;
  --ff-title: "Montserrat", system-ui, sans-serif;
  --ff-text: "Open Sans", system-ui, sans-serif;
  --fs-xs: 0.8125rem;
  --fs-sm: 0.9375rem;
  --fs-base: 1.0625rem;
  --fs-md: 1.25rem;
  --fs-lg: 1.5625rem;
  --fs-xl: clamp(1.9rem, 1.35rem + 1.7vw, 2.6rem);
  --fs-hero: clamp(2.2rem, 1.3rem + 3vw, 3.7rem);
  --container: 1200px;
  --gutter: 24px;
  --section-y: 100px;
  --header-h: 80px;
  --header-h-small: 64px;
  --logo-size: 52px;
  --logo-size-small: 44px;
  --radius-sm: 10px;
  --radius: 18px;
  --radius-pill: 999px;
  --shadow-soft: 0 10px 30px rgba(26, 52, 103, 0.10);
  --shadow-lift: 0 18px 44px rgba(26, 52, 103, 0.18);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

@media (max-width: 768px) {
  :root {
    --section-y: 64px;
    --gutter: 20px;
    --header-h: 64px;
    --logo-size: 44px;
  }
}

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

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

body {
  margin: 0;
  font-family: var(--ff-text);
  font-size: var(--fs-base);
  line-height: 1.65;
  color: var(--c-ink);
  background: var(--c-white);
  overflow-x: clip;
}

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--ff-title);
  line-height: 1.15;
  color: var(--c-night);
  text-wrap: balance;
}

p { margin: 0; }
p + p { margin-top: 1em; }

a { color: var(--c-blue); text-underline-offset: 0.18em; }
a:hover { color: var(--c-night); }

img,
svg { display: block; max-width: 100%; }
img { height: auto; }

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

button,
input,
select,
textarea { font: inherit; color: inherit; }

button { cursor: pointer; }

:focus-visible {
  outline: 3px solid var(--c-sky);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: var(--c-gold); color: var(--c-night); }

.icon {
  width: 1.25em;
  height: 1.25em;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon .fill,
.icon--solid { fill: currentColor; stroke: none; }

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 2000;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  background: var(--c-gold);
  color: var(--c-night);
  font-family: var(--ff-title);
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); }
.section--snow { background: var(--c-snow); }

.section__head {
  max-width: 640px;
  margin-bottom: 48px;
}

.section__title { font-size: var(--fs-xl); font-weight: 800; }

.section__intro {
  margin-top: 14px;
  color: var(--c-muted);
  font-size: var(--fs-md);
  line-height: 1.55;
}

/* boutons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 26px;
  border: 2px solid transparent;
  border-radius: var(--radius-pill);
  font-family: var(--ff-title);
  font-size: var(--fs-sm);
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.25s var(--ease-out), background-color 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.25s;
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.98); }

.btn--gold {
  background: var(--c-gold);
  color: var(--c-night);
  box-shadow: 0 6px 18px rgba(245, 197, 24, 0.35);
}
.btn--gold:hover { background: var(--c-gold-light); color: var(--c-night); }

.btn--night { background: var(--c-night); color: var(--c-white); }
.btn--night:hover { background: var(--c-blue); color: var(--c-white); }

.btn--line { border-color: var(--c-line); background: var(--c-white); color: var(--c-night); }
.btn--line:hover { border-color: var(--c-night); color: var(--c-night); }

.btn--ghost { border-color: rgba(255, 255, 255, 0.45); color: var(--c-white); }
.btn--ghost:hover { border-color: var(--c-white); background: rgba(255, 255, 255, 0.08); color: var(--c-white); }

.btn--small { min-height: 40px; padding: 8px 18px; font-size: var(--fs-xs); }

/* header / nav */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1010;
  height: var(--header-h);
  color: var(--c-white);
  transition: height 0.3s var(--ease-out), background-color 0.3s, box-shadow 0.3s, color 0.3s;
}

.site-header.is-solid,
.page-inner .site-header {
  height: var(--header-h-small);
  color: var(--c-night);
  box-shadow: 0 2px 18px rgba(26, 52, 103, 0.10);
}

/* blur sur ::before sinon le menu fixed reste bloqué dans le header */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(255, 255, 255, 0.96);
  opacity: 0;
  transition: opacity 0.3s;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.site-header.is-solid::before,
.page-inner .site-header::before { opacity: 1; }

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

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.brand__logo {
  position: relative;
  width: var(--logo-size);
  height: var(--logo-size);
  flex-shrink: 0;
  transition: width 0.3s var(--ease-out), height 0.3s var(--ease-out);
}

.brand__logo img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  box-shadow: 0 2px 10px rgba(15, 31, 61, 0.25);
}

.is-solid .brand__logo,
.page-inner .brand__logo { width: var(--logo-size-small); height: var(--logo-size-small); }

.brand__name {
  display: flex;
  flex-direction: column;
  font-family: var(--ff-title);
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: 0.01em;
}

.brand__place {
  margin-top: 3px;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.8;
}

.brand__amp { color: var(--c-sky); }

.site-header__tools { display: flex; align-items: center; gap: 4px; }

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

.nav__list { display: flex; align-items: center; gap: 4px; }

.nav__link {
  position: relative;
  display: block;
  padding: 8px 12px;
  border-radius: var(--radius-pill);
  color: inherit;
  font-family: var(--ff-title);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.2s, color 0.2s;
}

.nav__link:hover { background: rgba(255, 255, 255, 0.12); color: inherit; }
.is-solid .nav__link:hover { background: var(--c-snow); }

.nav__link[aria-current="true"]::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 3px;
  height: 2px;
  border-radius: 2px;
  background: var(--c-gold);
}

.nav__cta { margin-left: 8px; }

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: inherit;
}
.nav-toggle .icon { width: 26px; height: 26px; }

@media (max-width: 1100px) {
  .nav__link { padding-inline: 9px; font-size: 0.85rem; }
}

@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }

  .nav {
    position: fixed;
    inset: 0;
    z-index: 1100;
    flex-direction: column;
    justify-content: center;
    gap: 28px;
    padding: 96px 24px 120px;
    background: var(--c-night);
    color: var(--c-white);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
  }

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

  .nav__list { flex-direction: column; gap: 6px; }
  .nav__link { padding: 10px 20px; font-size: 1.25rem; }
  .nav__link:hover,
  .is-solid .nav__link:hover { background: rgba(255, 255, 255, 0.1); }
  .nav__cta { margin-left: 0; }

  .nav__close {
    position: absolute;
    top: 12px;
    right: 16px;
    color: var(--c-white);
  }
}

@media (min-width: 961px) {
  .nav__close { display: none; }
}

/* accueil */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 100svh;
  padding: calc(var(--header-h) + 32px) 0 clamp(110px, 12vw, 160px);
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 45% at 50% 100%, rgba(66, 165, 214, 0.35), transparent 70%),
    linear-gradient(180deg, var(--c-night-deep) 0%, var(--c-night) 55%, #24508f 100%);
  color: var(--c-white);
  text-align: center;
  isolation: isolate;
}

.hero__sky,
.hero__village,
.hero__snow {
  position: absolute;
  pointer-events: none;
}

.hero__sky { inset: 0; z-index: -2; width: 100%; height: 100%; }

.hero__star { fill: #fff; }
.hero__star--twinkle { animation: twinkle 3.2s ease-in-out infinite; }
.hero__star--twinkle:nth-child(3n) { animation-duration: 4.4s; animation-delay: -1.2s; }
.hero__star--twinkle:nth-child(4n) { animation-duration: 2.6s; animation-delay: -2s; }

.hero__moon {
  position: absolute;
  top: clamp(90px, 14vh, 140px);
  right: clamp(24px, 9vw, 150px);
  z-index: -1;
  width: clamp(46px, 6vw, 78px);
  aspect-ratio: 1;
  border-radius: 50%;
  box-shadow: inset -14px 8px 0 0 #fff3c4;
  filter: drop-shadow(0 0 18px rgba(255, 240, 190, 0.55));
  transform: rotate(-18deg);
}

.hero__village {
  left: 0;
  right: 0;
  bottom: -1px;
  z-index: -1;
  width: 100%;
  height: auto;
}

.hero__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 1060px;
}

.hero__logo {
  position: relative;
  width: clamp(96px, 10vw, 132px);
  margin-bottom: 22px;
}

.hero__logo img {
  width: 100%;
  border-radius: 50%;
  box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.08), 0 0 60px rgba(245, 197, 24, 0.30);
}

.hero__title {
  color: var(--c-white);
  font-size: var(--fs-hero);
  font-weight: 800;
  letter-spacing: -0.01em;
}

.hero__title span { display: block; color: var(--c-gold); }

.hero__text {
  max-width: 660px;
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.86);
  font-size: var(--fs-md);
  line-height: 1.55;
}

.hero-search {
  display: flex;
  width: 100%;
  max-width: 560px;
  margin-top: 28px;
  padding: 6px;
  border-radius: var(--radius-pill);
  background: var(--c-white);
  box-shadow: 0 16px 40px rgba(8, 18, 40, 0.35);
}

.hero-search__icon {
  align-self: center;
  margin-left: 14px;
  color: var(--c-muted);
}

.hero-search__input {
  flex: 1;
  min-width: 0;
  padding: 10px 12px;
  border: 0;
  background: transparent;
  color: var(--c-ink);
  font-size: var(--fs-base);
}

.hero-search__input::placeholder { color: #7a879a; }
.hero-search__input:focus { outline: none; }
.hero-search__btn-icon { display: none; }

.hero-search:focus-within { box-shadow: 0 0 0 4px rgba(66, 165, 214, 0.55), 0 16px 40px rgba(8, 18, 40, 0.35); }

.hero-event {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 26px;
  padding: 8px 8px 8px 18px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-pill);
  background: rgba(10, 22, 48, 0.45);
  color: var(--c-white);
  font-size: var(--fs-sm);
  text-align: left;
  text-decoration: none;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  transition: border-color 0.2s, background-color 0.2s;
}

.hero-event:hover { border-color: var(--c-gold); background: rgba(10, 22, 48, 0.65); color: var(--c-white); }
.hero-event strong { font-family: var(--ff-title); }

.hero-event__count {
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: var(--c-gold);
  color: var(--c-night);
  font-family: var(--ff-title);
  font-size: var(--fs-xs);
  font-weight: 800;
  white-space: nowrap;
}

.js .hero__logo,
.js .hero__title,
.js .hero__text,
.js .hero-search,
.js .hero-event { opacity: 0; transform: translateY(16px); }

.js .is-loaded .hero__logo,
.js .is-loaded .hero__title,
.js .is-loaded .hero__text,
.js .is-loaded .hero-search,
.js .is-loaded .hero-event {
  opacity: 1;
  transform: none;
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.js .is-loaded .hero__title { transition-delay: 0.15s; }
.js .is-loaded .hero__text { transition-delay: 0.3s; }
.js .is-loaded .hero-search { transition-delay: 0.45s; }
.js .is-loaded .hero-event { transition-delay: 0.6s; }

@keyframes twinkle {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.25; }
}

/* qui sommes-nous */
.about {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(40px, 6vw, 88px);
  align-items: start;
}

.about__text { color: #2c3b55; }
.about__text .section__title { margin-bottom: 22px; }

.about__aside {
  position: relative;
  padding: 36px 34px;
  border-radius: var(--radius);
  background: var(--c-night);
  color: var(--c-white);
}

.about__quote {
  margin: 0 0 26px;
  font-family: var(--ff-title);
  font-size: var(--fs-lg);
  font-weight: 800;
  line-height: 1.2;
  color: var(--c-gold);
}

.facts { display: grid; gap: 18px; margin: 0; }

.facts__item {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.facts dt {
  min-width: 3.4ch;
  font-family: var(--ff-title);
  font-size: var(--fs-lg);
  font-weight: 800;
  color: var(--c-white);
}

.facts dd { margin: 0; color: rgba(255, 255, 255, 0.8); }

/* missions */
.missions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 44px 48px;
}

.mission { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; }

.mission__icon {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: var(--c-white);
  color: var(--c-blue);
  box-shadow: inset 0 0 0 1px var(--c-line);
}
.mission__icon .icon { width: 26px; height: 26px; }

.mission__title { font-size: var(--fs-md); font-weight: 700; padding-top: 4px; }
.mission p { color: var(--c-muted); font-size: var(--fs-sm); }

/* événements */
.event {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.event + .event { margin-top: 72px; }

.event__poster {
  position: relative;
  max-width: 440px;
  margin-inline: auto;
}

.event__poster img {
  width: 100%;
  border-radius: 14px;
  box-shadow: var(--shadow-lift);
}

.event__poster-link { display: block; border-radius: 14px; }

.event__date {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-family: var(--ff-title);
  color: var(--c-blue);
}

.event__day { font-size: 3rem; font-weight: 800; line-height: 1; color: var(--c-night); }
.event__month { display: flex; flex-direction: column; font-size: var(--fs-md); font-weight: 700; line-height: 1.15; }
.event__month small { color: var(--c-muted); font-size: var(--fs-sm); font-weight: 600; }

.event__title { font-size: var(--fs-xl); font-weight: 800; }

.event__countdown {
  display: inline-block;
  margin-top: 14px;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  background: var(--c-snow);
  color: var(--c-night);
  font-family: var(--ff-title);
  font-size: var(--fs-xs);
  font-weight: 700;
}

.event__countdown:empty { display: none; }

.event__desc { margin-top: 18px; color: #2c3b55; }

.event__facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 24px;
  margin-top: 24px;
  padding: 20px 22px;
  border-radius: var(--radius);
  background: var(--c-snow);
  font-size: var(--fs-sm);
}

.event__facts li { display: flex; gap: 10px; align-items: flex-start; }
.event__facts .icon { margin-top: 2px; color: var(--c-blue); }

.event__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.events-empty {
  max-width: 560px;
  padding: 32px;
  border: 1px dashed var(--c-line);
  border-radius: var(--radius);
  color: var(--c-muted);
}

.events-empty strong { display: block; margin-bottom: 6px; font-family: var(--ff-title); color: var(--c-night); }

/* annuaire */
.directory__tools {
  position: sticky;
  top: var(--header-h-small);
  z-index: 50;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 20px;
  margin: 0 calc(var(--gutter) * -1) 36px;
  padding: 14px var(--gutter);
  background: rgba(244, 247, 251, 0.94);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.directory__search {
  position: relative;
  flex: 0 1 300px;
}

.directory__search .icon {
  position: absolute;
  top: 50%;
  left: 16px;
  color: var(--c-muted);
  transform: translateY(-50%);
  pointer-events: none;
}

.directory__input {
  width: 100%;
  height: 48px;
  padding: 0 44px;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-pill);
  background: var(--c-white);
}

.directory__input:focus { outline: none; border-color: var(--c-sky); box-shadow: 0 0 0 3px rgba(66, 165, 214, 0.3); }
.directory__input::-webkit-search-cancel-button { display: none; }

.directory__clear {
  position: absolute;
  top: 50%;
  right: 6px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--c-muted);
  transform: translateY(-50%);
}
.directory__clear:hover { background: var(--c-snow); color: var(--c-night); }
.directory__clear[hidden] { display: none; }

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
}
.chips::-webkit-scrollbar { display: none; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex-shrink: 0;
  min-height: 40px;
  padding: 6px 14px;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-pill);
  background: var(--c-white);
  color: var(--c-night);
  font-family: var(--ff-title);
  font-size: var(--fs-xs);
  font-weight: 600;
  scroll-snap-align: start;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}

.chip:hover { border-color: var(--c-night); }

.chip[aria-pressed="true"] { border-color: var(--c-night); background: var(--c-night); color: var(--c-white); }

.chip__count { opacity: 0.6; font-weight: 700; }

.directory__status {
  margin-left: auto;
  color: var(--c-muted);
  font-size: var(--fs-sm);
  white-space: nowrap;
}

.directory__group + .directory__group { margin-top: 48px; }
.directory__group[hidden] { display: none; }

.directory__group-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  font-size: var(--fs-md);
  font-weight: 700;
}
.directory__group-title .icon { color: var(--c-blue); }

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

.member {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 16px 16px 18px;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  background: var(--c-white);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out), border-color 0.3s;
}

.member:hover { transform: translateY(-4px); border-color: transparent; box-shadow: var(--shadow-lift); }
.member[hidden] { display: none; }

.member__logo {
  display: grid;
  place-items: center;
  height: 96px;
  margin-bottom: 14px;
  padding: 12px;
  border-radius: 12px;
  background: var(--c-snow);
}

.member__logo img {
  width: auto;
  max-width: 100%;
  max-height: 72px;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.member__logo--round { padding: 2px; }

.member__logo--round img {
  max-height: 92px;
  border-radius: 50%;
}

.member__name { font-size: 1.05rem; font-weight: 700; overflow-wrap: anywhere; }

.member__type {
  margin-top: 2px;
  color: var(--c-blue);
  font-size: var(--fs-xs);
  font-weight: 600;
}

.member__info {
  display: grid;
  gap: 4px;
  margin: 12px 0 16px;
  font-size: var(--fs-sm);
}

.member__info a,
.member__info span {
  display: inline-flex;
  align-items: flex-start;
  gap: 8px;
  color: #3a4a63;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.member__info .icon { width: 1.05em; height: 1.05em; margin-top: 0.25em; color: var(--c-muted); }
.member__info a:hover { color: var(--c-blue); text-decoration: underline; }

.member__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  margin-top: auto;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  background: var(--c-snow);
  color: var(--c-night);
  font-family: var(--ff-title);
  font-size: var(--fs-xs);
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.2s, color 0.2s;
}

.member__link:hover { background: var(--c-night); color: var(--c-white); }
.member__link .icon { width: 1.1em; height: 1.1em; }

.directory__empty {
  padding: 40px 32px;
  border: 1px dashed var(--c-line);
  border-radius: var(--radius);
  background: var(--c-white);
  text-align: center;
}

.directory__empty p { color: var(--c-muted); }
.directory__empty .btn { margin-top: 18px; }


/* bons cadeau */
.gift {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, var(--c-night) 0%, #213f78 60%, var(--c-blue) 100%);
  color: var(--c-white);
  isolation: isolate;
}

.gift .section__title { color: var(--c-white); }
.gift .section__intro { color: rgba(255, 255, 255, 0.82); }

.gift__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}

.gift__list { display: grid; gap: 14px; margin: 30px 0 34px; }

.gift__list li { display: flex; gap: 12px; color: rgba(255, 255, 255, 0.9); }
.gift__list .icon { margin-top: 3px; color: var(--c-gold); }

.gift__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; }

.gift__qr { display: flex; align-items: center; gap: 14px; font-size: var(--fs-sm); color: rgba(255, 255, 255, 0.8); }

.gift__qr img {
  width: 92px;
  height: 92px;
  padding: 6px;
  border-radius: 12px;
  background: var(--c-white);
  image-rendering: pixelated;
}

.gift__qr strong { display: block; color: var(--c-white); font-family: var(--ff-title); }

.gift__card {
  position: relative;
  padding: 14px;
  border-radius: 22px;
  background: var(--c-white);
  box-shadow: 0 24px 60px rgba(5, 14, 32, 0.35);
}

.gift__card iframe {
  display: block;
  width: 100%;
  height: 513px;
  border: 0;
  border-radius: 12px;
}

/* adhésion */
.join {
  position: relative;
  overflow: hidden;
  padding-block: 72px;
  background: var(--c-gold);
  color: var(--c-night);
}

.join__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px 48px;
}

.join__title { font-size: var(--fs-xl); font-weight: 800; max-width: 700px; }
.join p { margin-top: 10px; max-width: 560px; color: #2a3a5a; }

/* contact */
.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}

.contact__list { display: grid; gap: 22px; margin-top: 8px; }

.contact__item { display: flex; gap: 16px; }

.contact__icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 14px;
  background: var(--c-snow);
  color: var(--c-blue);
}

.contact__label { display: block; font-family: var(--ff-title); font-weight: 700; color: var(--c-night); }
.contact__value { color: #3a4a63; }
.contact__value a { color: inherit; }

.contact__more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--c-blue);
  font-size: var(--fs-sm);
  font-weight: 600;
  text-decoration: none;
}
.contact__more:hover { color: var(--c-night); text-decoration: underline; }
.contact__more .icon { width: 1em; height: 1em; }

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

.socials a {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--c-night);
  color: var(--c-white);
  transition: background-color 0.2s, transform 0.25s var(--ease-out);
}
.socials a:hover { background: var(--c-blue); transform: translateY(-2px); }

.form {
  padding: clamp(24px, 4vw, 40px);
  border-radius: var(--radius);
  background: var(--c-white);
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--c-line);
}

.form__title { margin-bottom: 22px; font-size: var(--fs-lg); font-weight: 800; }

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

.field { display: grid; gap: 6px; margin-bottom: 18px; }

.field label { font-family: var(--ff-title); font-size: var(--fs-sm); font-weight: 600; color: var(--c-night); }

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 11px 14px;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-sm);
  background: var(--c-white);
  transition: border-color 0.2s, box-shadow 0.2s;
}

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

.field input:focus,
.field select:focus,
.field textarea:focus { outline: none; border-color: var(--c-sky); box-shadow: 0 0 0 3px rgba(66, 165, 214, 0.25); }

.field input:user-invalid,
.field textarea:user-invalid { border-color: #c0392b; }

.form__footer { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }

.form__status { font-size: var(--fs-sm); font-weight: 600; }
.form__status.is-success { color: #1d7a46; }
.form__status.is-error { color: #b42318; }

.form__legal { margin-top: 16px; color: var(--c-muted); font-size: var(--fs-xs); }

/* pied de page */
.site-footer {
  position: relative;
  padding: 80px 0 32px;
  background: var(--c-night);
  color: rgba(255, 255, 255, 0.78);
  font-size: var(--fs-sm);
  isolation: isolate;
}

.site-footer a { color: inherit; text-decoration: none; }
.site-footer a:hover { color: var(--c-gold); }

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.3fr;
  gap: 48px;
}

.footer__brand img { width: 60px; margin-bottom: 18px; border-radius: 50%; }
.footer__brand p { max-width: 320px; }

.footer__title { margin-bottom: 16px; color: var(--c-white); font-size: 1rem; font-weight: 700; }

.footer__links { display: grid; gap: 10px; }

.footer .socials a,
.site-footer .socials a { background: rgba(255, 255, 255, 0.1); }
.site-footer .socials a:hover { background: var(--c-blue); color: var(--c-white); }

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

.newsletter input {
  flex: 1;
  min-width: 0;
  height: 46px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.08);
  color: var(--c-white);
}
.newsletter input::placeholder { color: rgba(255, 255, 255, 0.55); }
.newsletter input:focus { outline: none; border-color: var(--c-gold); }

.newsletter__status { min-height: 1.4em; margin-top: 8px; font-size: var(--fs-xs); }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 24px;
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: var(--fs-xs);
}

.footer__bottom .icon { display: inline; width: 1em; height: 1em; vertical-align: -0.12em; color: var(--c-gold); }

/* to-top, tabbar */
.to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 900;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--c-night);
  color: var(--c-white);
  box-shadow: var(--shadow-soft);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.3s, visibility 0.3s, transform 0.3s var(--ease-out), background-color 0.2s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--c-blue); }

.tabbar { display: none; }

@media (max-width: 768px) {
  .to-top { display: none; }

  body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }

  .tabbar {
    position: fixed;
    inset: auto 0 0;
    z-index: 1000;
    display: block;
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--c-line);
    background: rgba(255, 255, 255, 0.97);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
  }

  .tabbar ul { display: flex; justify-content: space-around; }

  .tabbar a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    min-width: 60px;
    padding: 5px 6px;
    border-radius: 12px;
    color: var(--c-muted);
    font-family: var(--ff-title);
    font-size: 0.66rem;
    font-weight: 600;
    text-decoration: none;
  }

  .tabbar .icon { width: 22px; height: 22px; }
  .tabbar a[aria-current="true"] { background: var(--c-snow); color: var(--c-night); }
}

/* reveal annuaire */
.js .member.is-waiting { opacity: 0; transform: translateY(18px); }

.js .member.is-shown {
  opacity: 1;
  transform: none;
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out), box-shadow 0.3s var(--ease-out), border-color 0.3s;
  transition-delay: var(--delay, 0s);
}

/* pages intérieures */
.page-inner main { padding: calc(var(--header-h-small) + 56px) 0 80px; }

.page-inner .site-header .nav { display: none; }

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--c-night);
  font-family: var(--ff-title);
  font-size: var(--fs-sm);
  font-weight: 700;
  text-decoration: none;
}
.back-link:hover { color: var(--c-blue); }

.sheet {
  max-width: 760px;
  margin-inline: auto;
  padding: clamp(28px, 5vw, 48px);
  border: 1px solid var(--c-line);
  border-radius: 24px;
  background: var(--c-white);
  box-shadow: var(--shadow-soft);
}

.sheet__head { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; margin-bottom: 32px; }

.sheet__logo {
  display: grid;
  place-items: center;
  width: 120px;
  height: 120px;
  padding: 14px;
  border-radius: 20px;
  background: var(--c-snow);
}
.sheet__logo img { max-height: 92px; object-fit: contain; mix-blend-mode: multiply; }

.sheet__title { font-size: var(--fs-xl); font-weight: 800; }
.sheet__type { margin-top: 6px; color: var(--c-blue); font-weight: 600; }

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  background: var(--c-snow);
  font-family: var(--ff-title);
  font-size: var(--fs-xs);
  font-weight: 700;
}
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.status.is-open { color: #1d7a46; background: #e6f4ec; }
.status.is-closed { color: #b42318; background: #fdecea; }
.status:empty { display: none; }

.sheet__infos { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 36px; }

.sheet__info { padding: 18px 20px; border-radius: 14px; background: var(--c-snow); }
.sheet__info .contact__label { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; font-size: var(--fs-sm); }
.sheet__info .contact__label .icon { color: var(--c-blue); }

.sheet__subtitle { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; font-size: var(--fs-md); font-weight: 700; }
.sheet__subtitle .icon { color: var(--c-blue); }

.hours { border: 1px solid var(--c-line); border-radius: 14px; overflow: hidden; }

.hours__row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 18px;
  font-size: var(--fs-sm);
}
.hours__row + .hours__row { border-top: 1px solid var(--c-line); }
.hours__row dt { font-family: var(--ff-title); font-weight: 600; color: var(--c-night); }
.hours__row dd { margin: 0; }
.hours__row.is-closed dd { color: #b42318; }
.hours__row.is-today { background: #fff8db; }
.hours__row.is-today dt::after { content: " (aujourd'hui)"; font-weight: 400; color: var(--c-muted); }

.sheet__note { display: flex; gap: 10px; margin-top: 18px; color: var(--c-muted); font-size: var(--fs-sm); }
.sheet__note .icon { margin-top: 3px; }

.legal { max-width: 760px; margin-inline: auto; }
.legal h1 { font-size: var(--fs-xl); font-weight: 800; }
.legal__date { margin-top: 8px; color: var(--c-muted); }
.legal h2 { margin: 44px 0 14px; font-size: var(--fs-md); font-weight: 700; }
.legal h3 { margin: 22px 0 8px; font-size: 1.05rem; font-weight: 700; }
.legal ul { margin: 10px 0 0 1.2em; list-style: disc; }
.legal li + li { margin-top: 6px; }
.legal__box { padding: 20px 24px; border-radius: 14px; background: var(--c-snow); }
.legal__box p + p { margin-top: 4px; }

.page-footer {
  padding: 28px 0;
  border-top: 1px solid var(--c-line);
  color: var(--c-muted);
  font-size: var(--fs-sm);
  text-align: center;
}

/* responsive */
@media (max-width: 1100px) {
  .directory__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 960px) {
  .about,
  .event,
  .gift__layout,
  .contact { grid-template-columns: minmax(0, 1fr); }

  .missions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
  .gift__card { max-width: 440px; width: 100%; margin-inline: auto; }
  .directory__status { margin-left: 0; }
}

@media (max-width: 768px) {
  .directory__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .event__facts { grid-template-columns: 1fr; }
  .gift__qr { display: none; }
  .join__inner .btn { width: 100%; }
  .directory__tools { padding-block: 10px; }
  .directory__search { flex-basis: 100%; }
  .chips { flex-wrap: nowrap; }
  .directory__status { display: none; }
}

@media (max-width: 600px) {
  .missions { grid-template-columns: 1fr; gap: 28px; }
  .form__row,
  .sheet__infos { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-event { flex-direction: column; gap: 8px; padding: 12px 16px; border-radius: 22px; text-align: center; }
  .event__actions .btn,
  .gift__actions .btn { width: 100%; }

  .directory__grid { grid-template-columns: minmax(0, 1fr); }
  .member { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 0 14px; padding: 14px; }
  .member__logo { grid-row: span 4; height: 84px; margin: 0; padding: 8px; }
  .member__logo img { max-height: 60px; }
  .member__logo--round img { max-height: 80px; }
  .member__info { margin: 8px 0 10px; }
  .member__link { grid-column: 2; justify-self: start; }

  .hero-search__btn { min-width: 48px; padding-inline: 14px; }
  .hero-search__btn-icon { display: block; }
  .hero-search__btn-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
}

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