/* ============================================================
   RESSOURCERIE ENDANA — Feuille de styles principale
   ============================================================ */

/* ------------------------------------------------------------
   VARIABLES
   ------------------------------------------------------------ */
:root {
  --clr-bg:          #f4f0e6;
  --clr-bg-cream:    #ede8d8;
  --clr-bg-dark:     #182218;
  --clr-primary:     #2c5f2e;
  --clr-primary-lt:  #4a8a4d;
  --clr-primary-pl:  #cddecf;
  --clr-accent:      #c0593a;
  --clr-accent-lt:   #d97b57;
  --clr-sage:        #7a9e7e;
  --clr-text:        #1a1a18;
  --clr-muted:       #5a5750;
  --clr-border:      #cfc7b0;
  --clr-white:       #ffffff;

  --ff-serif:  'Playfair Display', Georgia, serif;
  --ff-sans:   'Inter', system-ui, -apple-system, sans-serif;
  --ff-hand:   'Caveat', cursive;

  --r-sm:   6px;
  --r-md:   14px;
  --r-lg:   22px;
  --r-pill: 100px;

  --sh-sm: 0 1px 4px rgba(0,0,0,.07);
  --sh-md: 0 4px 20px rgba(0,0,0,.09);

  --h-status: 40px;
  --h-nav:    62px;
  --h-header: calc(var(--h-status) + var(--h-nav));
}

/* ------------------------------------------------------------
   RESET & BASE
   ------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--ff-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--clr-text);
  background: var(--clr-bg);
  -webkit-font-smoothing: antialiased;
  padding-top: var(--h-header);
}

img { max-width: 100%; display: block; }
a   { color: inherit; text-decoration: none; }
ul  { list-style: none; }

/* ------------------------------------------------------------
   HEADER FIXE (status bar + nav ensemble)
   ------------------------------------------------------------ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 300;
}

/* ---- BARRE DE STATUT ---- */
.status-bar {
  height: var(--h-status);
  background: var(--clr-bg-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 16px;
}

.status-sep {
  width: 1px;
  height: 18px;
  background: rgba(255,255,255,.15);
  flex-shrink: 0;
}

.status-badge {
  display: flex;
  align-items: center;
  gap: 7px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.13);
  border-radius: var(--r-pill);
  padding: 4px 13px;
  font-size: 12px;
  font-weight: 500;
  color: #ddd8cc;
  letter-spacing: .025em;
  white-space: nowrap;
  transition: background .2s;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #666;
  flex-shrink: 0;
  transition: background .3s, box-shadow .3s;
}

/* État ouvert */
.status-badge.is-open .status-dot {
  background: #57c463;
  box-shadow: 0 0 0 3px rgba(87,196,99,.25);
}
/* État fermé */
.status-badge.is-closed .status-dot {
  background: #e05555;
}

/* ---- NAVIGATION ---- */
.nav {
  height: var(--h-nav);
  background: var(--clr-bg);
  border-bottom: 1px solid var(--clr-border);
}

.nav__container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  gap: 1px;
}

.nav__logo-main {
  font-family: var(--ff-serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--clr-primary);
  letter-spacing: -.03em;
}

.nav__logo-sub {
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--clr-muted);
}

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

.nav__link {
  display: inline-block;
  padding: 7px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--clr-muted);
  border-radius: var(--r-sm);
  transition: color .18s, background .18s;
}

.nav__link:hover {
  color: var(--clr-primary);
  background: var(--clr-primary-pl);
}

.nav__link--cta {
  background: var(--clr-primary);
  color: var(--clr-white) !important;
  border-radius: var(--r-pill);
  padding: 7px 20px;
  margin-left: 6px;
}

.nav__link--cta:hover {
  background: var(--clr-primary-lt);
}

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: var(--r-sm);
}

.nav__burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--clr-text);
  border-radius: 2px;
  transition: transform .22s, opacity .22s;
}

.nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ------------------------------------------------------------
   HERO
   ------------------------------------------------------------ */
.hero {
  position: relative;
  min-height: calc(100svh - var(--h-header));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 24px 100px;
  overflow: hidden;
  background: var(--clr-bg-dark);
}

.hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero__bg::before {
  content: '';
  position: absolute;
  top: -120px; right: -120px;
  width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(44,95,46,.28) 0%, transparent 68%);
}

.hero__bg::after {
  content: '';
  position: absolute;
  bottom: -80px; left: -60px;
  width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(192,89,58,.18) 0%, transparent 65%);
}

.hero__inner {
  position: relative;
  z-index: 1;
  max-width: 680px;
}

.hero__eyebrow {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .17em;
  text-transform: uppercase;
  color: var(--clr-sage);
  margin-bottom: 28px;
}

.hero__title {
  font-family: var(--ff-serif);
  font-size: clamp(54px, 9vw, 104px);
  font-weight: 700;
  line-height: 1.03;
  letter-spacing: -.03em;
  color: var(--clr-white);
  margin-bottom: 28px;
}

.hero__title em {
  font-style: italic;
  color: var(--clr-accent-lt);
}

.hero__tagline {
  font-family: var(--ff-hand);
  font-size: clamp(21px, 3.2vw, 30px);
  color: rgba(244,240,230,.68);
  line-height: 1.45;
  margin-bottom: 52px;
}

.hero__ctas {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero__scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,.25);
  font-size: 22px;
  animation: bob 2.2s ease-in-out infinite;
  z-index: 1;
}

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

/* ------------------------------------------------------------
   BOUTONS
   ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  font-family: var(--ff-sans);
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1;
  border-radius: var(--r-pill);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background .2s, border-color .2s, transform .15s, box-shadow .15s;
  white-space: nowrap;
  text-decoration: none;
}

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

.btn--primary {
  background: var(--clr-accent);
  border-color: var(--clr-accent);
  color: var(--clr-white);
}
.btn--primary:hover { background: var(--clr-accent-lt); border-color: var(--clr-accent-lt); }

.btn--ghost {
  background: transparent;
  border-color: rgba(255,255,255,.32);
  color: var(--clr-white);
}
.btn--ghost:hover { border-color: rgba(255,255,255,.6); background: rgba(255,255,255,.07); }

.btn--outline {
  background: transparent;
  border-color: var(--clr-primary);
  color: var(--clr-primary);
}
.btn--outline:hover { background: var(--clr-primary); color: var(--clr-white); }

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

/* ------------------------------------------------------------
   LAYOUT GÉNÉRAL
   ------------------------------------------------------------ */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 96px 0; }
.section--light  { background: var(--clr-bg); }
.section--cream  { background: var(--clr-bg-cream); }
.section--dark   { background: var(--clr-bg-dark); }

/* Helpers de section */
.section-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--clr-accent);
  margin-bottom: 12px;
}
.section-label--sage { color: var(--clr-sage); }

.section-title {
  font-family: var(--ff-serif);
  font-size: clamp(30px, 4.5vw, 46px);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -.025em;
  color: var(--clr-text);
  margin-bottom: 16px;
}
.section-title--light { color: var(--clr-white); }

.section-header {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 64px;
}

.section-intro {
  font-size: 17px;
  color: var(--clr-muted);
  line-height: 1.7;
}
.section-intro--light { color: rgba(244,240,230,.6); }

/* ------------------------------------------------------------
   À PROPOS
   ------------------------------------------------------------ */
.about {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 72px;
  align-items: start;
}

.about__text .section-title { margin-top: 12px; }

.about__text p {
  font-size: 16.5px;
  color: var(--clr-muted);
  line-height: 1.72;
  margin-bottom: 18px;
}

.link-arrow {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--clr-primary);
  display: inline-block;
  margin-top: 6px;
  transition: letter-spacing .2s;
}
.link-arrow:hover { text-decoration: underline; letter-spacing: .01em; }

.about__aside {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.about__quote {
  background: var(--clr-primary);
  border-radius: var(--r-lg);
  padding: 36px 32px 32px;
  position: relative;
}

.about__quote-mark {
  position: absolute;
  top: 12px;
  left: 28px;
  font-family: var(--ff-serif);
  font-size: 80px;
  line-height: 1;
  color: rgba(255,255,255,.15);
  user-select: none;
}

.about__quote blockquote {
  font-family: var(--ff-hand);
  font-size: 23px;
  color: var(--clr-white);
  line-height: 1.45;
  position: relative;
  z-index: 1;
}

.about__board {
  background: var(--clr-white);
  border: 1px solid var(--clr-border);
  border-radius: var(--r-md);
  padding: 24px 28px;
}

.about__board-title {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--clr-muted);
  margin-bottom: 16px;
}

.about__board li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  font-size: 14.5px;
  padding: 8px 0;
  border-bottom: 1px solid var(--clr-bg-cream);
}
.about__board li:last-child { border-bottom: none; }
.about__board strong { font-weight: 600; color: var(--clr-text); }
.about__board span { font-size: 13px; color: var(--clr-muted); }

/* ------------------------------------------------------------
   NOS ACTIVITÉS
   ------------------------------------------------------------ */
.activities-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.activity-card {
  background: var(--clr-white);
  border: 1px solid var(--clr-border);
  border-radius: var(--r-md);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform .2s, box-shadow .2s;
}

.activity-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-md);
}

.activity-card--accent {
  background: var(--clr-primary);
  border-color: var(--clr-primary);
}

.activity-icon {
  width: 44px;
  height: 44px;
  color: var(--clr-accent);
  flex-shrink: 0;
}

.activity-card--accent .activity-icon { color: rgba(255,255,255,.75); }

.activity-card h3 {
  font-family: var(--ff-serif);
  font-size: 20px;
  font-weight: 600;
  color: var(--clr-text);
  line-height: 1.2;
}

.activity-card--accent h3 { color: var(--clr-white); }

.activity-card p {
  font-size: 14.5px;
  color: var(--clr-muted);
  line-height: 1.65;
  flex: 1;
}

.activity-card--accent p { color: rgba(255,255,255,.72); }

.activity-slogan {
  font-family: var(--ff-hand);
  font-size: 17px;
  font-weight: 600;
  color: rgba(255,255,255,.9) !important;
  letter-spacing: .01em;
  margin-bottom: 0 !important;
}

.activity-tag {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 600;
  background: var(--clr-bg-cream);
  color: var(--clr-muted);
  padding: 4px 10px;
  border-radius: var(--r-sm);
  margin-top: 4px;
  align-self: flex-start;
}

/* ------------------------------------------------------------
   NOUS SOUTENIR
   ------------------------------------------------------------ */
.support-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.support-card {
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--r-md);
  padding: 40px 32px;
  background: rgba(255,255,255,.04);
  transition: background .2s;
}

.support-card:hover { background: rgba(255,255,255,.07); }

.support-num {
  display: block;
  font-family: var(--ff-serif);
  font-size: 44px;
  font-weight: 700;
  color: var(--clr-accent);
  opacity: .65;
  line-height: 1;
  margin-bottom: 18px;
}

.support-card h3 {
  font-family: var(--ff-serif);
  font-size: 20px;
  font-weight: 600;
  color: var(--clr-white);
  margin-bottom: 10px;
  line-height: 1.2;
}

.support-card p {
  font-size: 14.5px;
  color: rgba(244,240,230,.6);
  line-height: 1.65;
}

/* ------------------------------------------------------------
   BARRE RECHERCHE & FILTRES
   ------------------------------------------------------------ */
.pub-toolbar {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 36px;
}

/* Champ de recherche */
.pub-search-wrap {
  position: relative;
  max-width: 480px;
}

.pub-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 17px;
  height: 17px;
  color: var(--clr-muted);
  pointer-events: none;
  flex-shrink: 0;
}

.pub-search {
  width: 100%;
  padding: 11px 40px 11px 42px;
  border: 1.5px solid var(--clr-border);
  border-radius: var(--r-pill);
  background: var(--clr-white);
  font-family: var(--ff-sans);
  font-size: 14.5px;
  color: var(--clr-text);
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  -webkit-appearance: none;
}

.pub-search:focus {
  border-color: var(--clr-primary);
  box-shadow: 0 0 0 3px rgba(44,95,46,.12);
}

.pub-search::placeholder { color: #b0a898; }

/* Masquer la croix native de certains navigateurs */
.pub-search::-webkit-search-cancel-button { -webkit-appearance: none; }

.pub-search-clear {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--clr-bg-cream);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--clr-muted);
  transition: background .18s, color .18s;
}
.pub-search-clear svg { width: 12px; height: 12px; }
.pub-search-clear:hover { background: var(--clr-border); color: var(--clr-text); }
.pub-search-clear[hidden] { display: none; }

/* Boutons de filtre */
.pub-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pub-filter {
  padding: 7px 16px;
  border-radius: var(--r-pill);
  border: 1.5px solid var(--clr-border);
  background: var(--clr-white);
  font-family: var(--ff-sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--clr-muted);
  cursor: pointer;
  transition: border-color .18s, background .18s, color .18s;
  white-space: nowrap;
}

.pub-filter:hover {
  border-color: var(--clr-primary);
  color: var(--clr-primary);
  background: var(--clr-primary-pl);
}

.pub-filter.active {
  background: var(--clr-primary);
  border-color: var(--clr-primary);
  color: var(--clr-white);
  font-weight: 600;
}

/* Message aucun résultat */
.pub-no-results {
  text-align: center;
  padding: 48px 24px;
  font-size: 15px;
  color: var(--clr-muted);
  grid-column: 1 / -1;
}

/* ------------------------------------------------------------
   PUBLICATIONS — GRILLE DE CARTES
   ------------------------------------------------------------ */
.pub-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

/* Carte */
.pub-card {
  background: var(--clr-white);
  border: 1px solid var(--clr-border);
  border-radius: var(--r-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .2s, box-shadow .2s;
}

.pub-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-md);
}

/* Image de la carte */
.pub-card__img {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--clr-bg-cream) center/cover no-repeat;
  flex-shrink: 0;
}

/* Corps de la carte */
.pub-card__body {
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.pub-card__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

/* Badge type */
.pub-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .11em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: var(--r-pill);
  background: rgba(192,89,58,.1);
  color: var(--clr-accent);
  white-space: nowrap;
}

.pub-badge--atelier   { background: rgba(44,95,46,.1);   color: var(--clr-primary); }
.pub-badge--evenement { background: rgba(192,89,58,.1);  color: var(--clr-accent); }
.pub-badge--brocante  { background: rgba(122,158,126,.15); color: #4a7a4e; }
.pub-badge--annonce   { background: rgba(0,0,0,.06);     color: var(--clr-muted); }

.pub-card__date {
  font-size: 12px;
  color: var(--clr-muted);
}

.pub-card__title {
  font-family: var(--ff-serif);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--clr-text);
  margin-bottom: 10px;
}

.pub-card__excerpt {
  font-size: 14px;
  color: var(--clr-muted);
  line-height: 1.65;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pub-card__btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 18px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--clr-primary);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  font-family: var(--ff-sans);
  transition: gap .18s;
}
.pub-card__btn:hover { gap: 8px; text-decoration: underline; }

/* État vide */
.pub-empty {
  text-align: center;
  padding: 56px 24px;
  color: var(--clr-muted);
  font-size: 16px;
  line-height: 1.7;
}

/* ------------------------------------------------------------
   MODAL PUBLICATION
   ------------------------------------------------------------ */
.pub-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(20, 28, 20, .65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn .2s ease;
}

.pub-modal-overlay[hidden] { display: none; }

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.pub-modal-box {
  background: var(--clr-white);
  border-radius: var(--r-lg);
  width: 100%;
  max-width: 640px;
  max-height: 90svh;
  overflow-y: auto;
  position: relative;
  animation: slideUp .25s ease;
  scrollbar-width: thin;
}

@keyframes slideUp {
  from { transform: translateY(16px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

.pub-modal-close {
  position: sticky;
  top: 12px;
  float: right;
  margin: 12px 12px 0 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0,0,0,.08);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: background .18s;
}
.pub-modal-close:hover { background: rgba(0,0,0,.16); }
.pub-modal-close svg   { width: 16px; height: 16px; }

.pub-modal-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--clr-bg-cream) center/cover no-repeat;
  clear: both;
}

.pub-modal-img[hidden] { display: none; }

.pub-modal-body {
  padding: 28px 32px 36px;
  clear: both;
}

.pub-modal-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.pub-modal-date {
  font-size: 13px;
  color: var(--clr-muted);
}

.pub-modal-title {
  font-family: var(--ff-serif);
  font-size: clamp(22px, 4vw, 32px);
  font-weight: 700;
  line-height: 1.15;
  color: var(--clr-text);
  margin-bottom: 20px;
  letter-spacing: -.02em;
}

.pub-modal-text {
  font-size: 16px;
  color: var(--clr-muted);
  line-height: 1.75;
  white-space: pre-line;
}

/* ------------------------------------------------------------
   GALERIE PHOTOS dans le modal
   ------------------------------------------------------------ */
.pub-modal-gallery {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--clr-border);
}

.pub-modal-gallery-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--clr-muted);
  margin-bottom: 14px;
}

.pub-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.pub-gallery-grid img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: transform .18s, opacity .18s;
  display: block;
}

.pub-gallery-grid img:hover {
  transform: scale(1.03);
  opacity: .9;
}

/* ------------------------------------------------------------
   LIGHTBOX
   ------------------------------------------------------------ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 600;
  background: rgba(10, 14, 10, .92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  cursor: zoom-out;
  animation: fadeIn .18s ease;
}

.lightbox[hidden] { display: none; }

.lightbox img {
  max-width: 100%;
  max-height: 90svh;
  object-fit: contain;
  border-radius: var(--r-sm);
  box-shadow: 0 24px 80px rgba(0,0,0,.6);
  cursor: default;
  animation: slideUp .2s ease;
}

.lightbox-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: background .18s;
}

.lightbox-close:hover { background: rgba(255,255,255,.22); }
.lightbox-close svg   { width: 18px; height: 18px; }

/* ------------------------------------------------------------
   CONTACT
   ------------------------------------------------------------ */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.7fr;
  gap: 80px;
  align-items: start;
}

.contact-info .section-title { margin-top: 12px; margin-bottom: 14px; }

.contact-info > p {
  font-size: 16px;
  color: var(--clr-muted);
  line-height: 1.72;
  margin-bottom: 32px;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-method {
  display: flex;
  align-items: center;
  gap: 13px;
  font-size: 14.5px;
  color: var(--clr-muted);
  transition: color .18s;
  word-break: break-word;
}

.contact-method:hover { color: var(--clr-primary); }

.contact-method__icon {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--clr-primary-pl);
  color: var(--clr-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .18s;
}

.contact-method:hover .contact-method__icon { background: var(--clr-primary); color: var(--clr-white); }

/* ---- Formulaire ---- */
.contact-form {
  background: var(--clr-white);
  border: 1px solid var(--clr-border);
  border-radius: var(--r-lg);
  padding: 42px 40px;
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 20px;
}

.form-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--clr-text);
  letter-spacing: .01em;
}

.form-group label span {
  color: var(--clr-accent);
  margin-left: 2px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: var(--clr-bg);
  border: 1.5px solid var(--clr-border);
  border-radius: var(--r-sm);
  padding: 11px 14px;
  font-size: 15px;
  font-family: var(--ff-sans);
  color: var(--clr-text);
  transition: border-color .2s, background .2s;
  outline: none;
  resize: vertical;
  -webkit-appearance: none;
}

.form-group select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%235a5750' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--clr-primary);
  background: var(--clr-white);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #b0a898;
}

.form-group input.error,
.form-group textarea.error {
  border-color: #c0392b;
}

.form-note {
  text-align: center;
  font-size: 12.5px;
  color: var(--clr-muted);
  margin-top: 12px;
}

/* ---- États du formulaire ---- */
.form-msg {
  padding: 12px 16px;
  border-radius: var(--r-sm);
  font-size: 13.5px;
  margin-bottom: 20px;
  display: none;
}

.form-msg.error {
  display: block;
  background: #fdf0ee;
  border: 1px solid rgba(192,57,43,.22);
  color: #b03a2e;
}

.form-msg.success {
  display: block;
  background: #ecf7ed;
  border: 1px solid rgba(44,95,46,.2);
  color: var(--clr-primary);
}

/* Succès complet */
.form-success {
  text-align: center;
  padding: 48px 24px;
}

.form-success__check {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--clr-primary-pl);
  color: var(--clr-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 26px;
}

.form-success h3 {
  font-family: var(--ff-serif);
  font-size: 26px;
  color: var(--clr-text);
  margin-bottom: 8px;
}

.form-success p {
  font-size: 15px;
  color: var(--clr-muted);
}

/* ------------------------------------------------------------
   FOOTER
   ------------------------------------------------------------ */
.footer {
  background: var(--clr-bg-dark);
  padding: 64px 0 32px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer__name {
  font-family: var(--ff-serif);
  font-size: 30px;
  font-weight: 700;
  color: var(--clr-white);
  margin-bottom: 4px;
  line-height: 1;
}

.footer__sub {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: rgba(244,240,230,.38);
}

.footer__founded {
  font-size: 12.5px;
  color: rgba(244,240,230,.25);
  margin-top: 10px;
}

.footer__nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__nav a {
  font-size: 14.5px;
  color: rgba(244,240,230,.5);
  transition: color .18s;
}
.footer__nav a:hover { color: var(--clr-white); }

.footer__contact {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__contact a {
  font-size: 14px;
  color: rgba(244,240,230,.5);
  transition: color .18s;
  word-break: break-all;
}
.footer__contact a:hover { color: var(--clr-sage); }

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.07);
  padding-top: 24px;
  text-align: center;
}

.footer__bottom p {
  font-size: 12px;
  color: rgba(244,240,230,.25);
}

/* ------------------------------------------------------------
   ANIMATIONS SCROLL
   ------------------------------------------------------------ */
[data-animate] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .5s ease, transform .5s ease;
}

[data-animate].in-view {
  opacity: 1;
  transform: translateY(0);
}

/* Délais en cascade pour les grilles */
.activities-grid [data-animate]:nth-child(1) { transition-delay: 0s; }
.activities-grid [data-animate]:nth-child(2) { transition-delay: .08s; }
.activities-grid [data-animate]:nth-child(3) { transition-delay: .16s; }
.activities-grid [data-animate]:nth-child(4) { transition-delay: .24s; }

.support-grid [data-animate]:nth-child(1) { transition-delay: 0s; }
.support-grid [data-animate]:nth-child(2) { transition-delay: .1s; }
.support-grid [data-animate]:nth-child(3) { transition-delay: .2s; }

.pub-grid [data-animate]:nth-child(1) { transition-delay: 0s; }
.pub-grid [data-animate]:nth-child(2) { transition-delay: .08s; }
.pub-grid [data-animate]:nth-child(3) { transition-delay: .16s; }
.pub-grid [data-animate]:nth-child(4) { transition-delay: .22s; }
.pub-grid [data-animate]:nth-child(5) { transition-delay: .28s; }
.pub-grid [data-animate]:nth-child(6) { transition-delay: .34s; }

/* ------------------------------------------------------------
   RESPONSIVE — TABLET (≤ 1024px)
   ------------------------------------------------------------ */
@media (max-width: 1024px) {
  .activities-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .about {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .contact-wrapper {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

  .footer__brand { grid-column: 1 / -1; }
}

/* ------------------------------------------------------------
   RESPONSIVE — MOBILE (≤ 768px)
   ------------------------------------------------------------ */
@media (max-width: 768px) {
  :root {
    --h-status: 36px;
    --h-nav:    56px;
  }

  .section { padding: 64px 0; }

  /* Nav burger */
  .nav__burger { display: flex; }

  .nav__links {
    position: fixed;
    top: var(--h-header);
    left: 0; right: 0;
    background: var(--clr-white);
    flex-direction: column;
    align-items: stretch;
    padding: 16px 24px 24px;
    border-bottom: 1px solid var(--clr-border);
    gap: 4px;
    transform: translateY(-110%);
    opacity: 0;
    pointer-events: none;
    transition: transform .25s ease, opacity .25s ease;
    z-index: 200;
    box-shadow: var(--sh-md);
  }

  .nav__links.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  .nav__link {
    width: 100%;
    padding: 11px 16px;
    font-size: 15px;
  }

  .nav__link--cta {
    margin-left: 0;
    text-align: center;
    margin-top: 8px;
  }

  /* Hero */
  .hero {
    padding: 56px 24px 80px;
    min-height: calc(100svh - var(--h-header));
  }

  .hero__ctas {
    flex-direction: column;
    align-items: center;
  }

  .hero__ctas .btn {
    width: 100%;
    max-width: 300px;
  }

  /* Status */
  .status-badge { font-size: 11px; padding: 3px 10px; }
  .status-dot   { width: 6px; height: 6px; }

  /* Activités */
  .activities-grid { grid-template-columns: 1fr; }

  /* Publications */
  .pub-grid { grid-template-columns: 1fr; }
  .pub-search-wrap { max-width: 100%; }

  /* Modal */
  .pub-modal-body { padding: 20px 20px 28px; }

  /* Support */
  .support-grid { grid-template-columns: 1fr; }

  /* Contact form */
  .form-row { grid-template-columns: 1fr; }
  .contact-form { padding: 26px 22px; }

  /* Footer */
  .footer__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* ------------------------------------------------------------
   RESPONSIVE — SMALL (≤ 480px)
   ------------------------------------------------------------ */
@media (max-width: 480px) {
  .container { padding: 0 18px; }

  .activity-card { padding: 24px 18px; }
  .support-card  { padding: 28px 24px; }

  .section-header { margin-bottom: 44px; }

  .about__quote { padding: 28px 24px 24px; }
  .about__quote blockquote { font-size: 20px; }
}
