/* ==========================================================================
   ASCG — Centre Socioculturel de Ganges
   Direction artistique « Pierre & Lumière » :
   élégance andalouse contemporaine — émeraude nuit, or champagne, crème pierre.
   ========================================================================== */

:root {
  /* Palette */
  --night: #0a2e23;
  --night-2: #0d3a2c;
  --night-3: #123f30;
  --green: #16543f;
  --gold: #c9a227;
  --gold-light: #e3c565;
  --gold-pale: #f3e7bf;
  --cream: #faf6ec;
  --cream-2: #f3ecda;
  --ink: #22302a;
  --ink-soft: #4d5c54;

  /* Typo */
  --f-display: "Marcellus", serif;
  --f-editorial: "Cormorant Garamond", serif;
  --f-arabic: "Amiri", serif;
  --f-body: "Mulish", sans-serif;

  /* Rythme */
  --radius: 14px;
  --arch: 999px 999px var(--radius) var(--radius);
  --container: 1160px;
  --ease: cubic-bezier(.22, .8, .3, 1);
  --shadow: 0 20px 60px -20px rgba(10, 46, 35, .35);
}

/* ------------------------------ Base ------------------------------ */

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--green); text-decoration: none; }
a:hover { color: var(--gold); }

h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 400;
  line-height: 1.15;
  margin: 0 0 .5em;
  color: inherit;
}

h1 { font-size: clamp(2.6rem, 6.5vw, 4.6rem); letter-spacing: .01em; }
h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); }
h3 { font-size: 1.35rem; }

p { margin: 0 0 1em; }

.container {
  width: min(var(--container), 100% - 2.5rem);
  margin-inline: auto;
}

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

/* Filet de progression de lecture */
.scroll-progress {
  position: fixed; top: 0; left: 0; z-index: 200;
  height: 3px; width: 0;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
}

/* ------------------------------ Ornements ------------------------------ */

.eyebrow {
  display: inline-flex; align-items: center; gap: .8rem;
  font-size: .78rem; font-weight: 700;
  letter-spacing: .32em; text-transform: uppercase;
  color: var(--gold);
}
.eyebrow::before {
  content: ""; width: 34px; height: 1px;
  background: var(--gold);
}

.ornament {
  display: flex; align-items: center; justify-content: center; gap: .6rem;
  margin: 1.2rem 0;
  color: var(--gold);
}
.ornament::before, .ornament::after {
  content: ""; height: 1px; width: 64px;
  background: linear-gradient(90deg, transparent, var(--gold));
}
.ornament::after { background: linear-gradient(90deg, var(--gold), transparent); }
.ornament span {
  width: 9px; height: 9px;
  background: var(--gold);
  transform: rotate(45deg);
}

.editorial {
  font-family: var(--f-editorial);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.35rem, 2.6vw, 1.9rem);
  line-height: 1.5;
  color: var(--ink-soft);
}
.editorial em { color: var(--gold); font-style: inherit; }

/* ------------------------------ En-tête ------------------------------ */

.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 1rem 0;
  transition: background .4s var(--ease), box-shadow .4s var(--ease), padding .4s var(--ease);
}
.site-header.scrolled {
  padding: .55rem 0;
  background: rgba(10, 46, 35, .92);
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 40px -18px rgba(0, 0, 0, .5);
}

.nav-bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }

.brand { display: flex; align-items: center; gap: .8rem; color: #fff; }
.brand:hover { color: #fff; }
.brand-logo { width: 46px; height: 46px; object-fit: contain; filter: drop-shadow(0 2px 8px rgba(0,0,0,.35)); }
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-text strong { font-family: var(--f-display); font-weight: 400; font-size: 1.02rem; letter-spacing: .02em; }
.brand-text small { font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-light); }

.nav-links { display: flex; align-items: center; gap: 1.9rem; }
.nav-links a {
  position: relative;
  color: rgba(255,255,255,.85);
  font-size: .92rem; font-weight: 600; letter-spacing: .04em;
  padding: .3rem 0;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--gold);
  transform: scaleX(0); transform-origin: right;
  transition: transform .35s var(--ease);
}
.nav-links a:hover { color: #fff; }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); transform-origin: left; }
.nav-links a.active { color: var(--gold-light); }

.nav-links .nav-cta {
  padding: .55rem 1.3rem;
  border: 1px solid var(--gold);
  border-radius: 999px;
  color: var(--gold-light);
  transition: background .3s, color .3s;
}
.nav-links .nav-cta::after { display: none; }
.nav-links .nav-cta:hover { background: var(--gold); color: var(--night); }

.nav-toggle {
  display: none;
  background: none; border: 0; cursor: pointer;
  width: 42px; height: 42px;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.nav-toggle span {
  width: 24px; height: 2px; background: #fff;
  transition: transform .3s var(--ease), opacity .3s;
}

/* ------------------------------ Héros ------------------------------ */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 8rem 0 3.5rem;
  color: #fff;
  background: var(--night);
  overflow: hidden;
  isolation: isolate;
}
.hero-bg {
  position: absolute; inset: 0; z-index: -2;
  background-size: cover; background-position: center;
  animation: hero-zoom 18s var(--ease) both;
}
@keyframes hero-zoom { from { transform: scale(1.12); } to { transform: scale(1); } }
.hero-veil {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(15deg, rgba(10,46,35,.97) 25%, rgba(10,46,35,.72) 60%, rgba(10,46,35,.5)),
    radial-gradient(70% 60% at 75% 20%, rgba(201,162,39,.22), transparent 70%);
}
.hero-pattern {
  position: absolute; inset: 0; z-index: -1;
  background: url("assets/pattern.svg");
  background-size: 90px;
  opacity: .1;
  -webkit-mask-image: linear-gradient(to bottom, black, transparent 75%);
  mask-image: linear-gradient(to bottom, black, transparent 75%);
}

.hero-inner { position: relative; max-width: 820px; }

.hero-bismillah {
  font-family: var(--f-arabic);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  color: var(--gold-light);
  margin-bottom: 1.4rem;
}

.hero h1 .accent {
  display: block;
  font-family: var(--f-editorial);
  font-style: italic; font-weight: 500;
  color: var(--gold-light);
}

.hero-sub {
  max-width: 34rem;
  font-size: 1.08rem; font-weight: 300;
  color: rgba(255,255,255,.82);
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.2rem; }

/* Apparition orchestrée au chargement */
.hero [data-rise] {
  opacity: 0; transform: translateY(26px);
  animation: rise 1s var(--ease) forwards;
  animation-delay: calc(var(--i, 0) * .15s + .2s);
}
@keyframes rise { to { opacity: 1; transform: none; } }

/* Bandeau de collecte en bas du héros (pleinement visible à l'écran) */
.hero-collect {
  position: relative;
  margin-top: 4.5rem;
  z-index: 5;
}
.collect-strip {
  display: grid; grid-template-columns: repeat(3, 1fr) auto;
  align-items: center; gap: 2rem;
  padding: 1.6rem 2.4rem;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border-top: 3px solid var(--gold);
}
.collect-strip .cs-num {
  font-family: var(--f-display);
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  color: var(--night);
  display: block; line-height: 1.1;
}
.collect-strip .cs-label {
  font-size: .74rem; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--ink-soft);
}

/* ------------------------------ Boutons ------------------------------ */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  padding: .95rem 2.1rem;
  font-family: var(--f-body); font-weight: 700; font-size: .92rem;
  letter-spacing: .06em; text-transform: uppercase;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s, color .3s;
}
.btn:hover { transform: translateY(-2px); }

.btn-gold {
  background: linear-gradient(120deg, var(--gold), var(--gold-light) 60%, var(--gold));
  background-size: 200% auto;
  color: var(--night);
  box-shadow: 0 12px 30px -10px rgba(201,162,39,.55);
}
.btn-gold:hover { background-position: right center; color: var(--night); }

.btn-ghost { border-color: rgba(255,255,255,.45); color: #fff; }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-light); }

.btn-night { background: var(--night); color: #fff; }
.btn-night:hover { background: var(--night-3); color: var(--gold-light); }

.btn-lg { padding: 1.15rem 2.8rem; font-size: 1rem; }

/* ------------------------------ Sections ------------------------------ */

.section { position: relative; padding: 6.5rem 0; }
.section-dark {
  background: var(--night);
  color: #fff;
  position: relative; overflow: hidden;
}
.section-dark .editorial { color: rgba(255,255,255,.75); }
.section-dark a { color: var(--gold-light); }
.section-cream { background: var(--cream-2); }

.section-pattern {
  position: absolute; inset: 0;
  background: url("assets/pattern.svg");
  background-size: 90px;
  opacity: .07;
  pointer-events: none;
}

.section-head { max-width: 720px; margin-bottom: 3.2rem; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow::before { display: none; }
.section-intro { color: var(--ink-soft); font-size: 1.05rem; }
.section-dark .section-intro { color: rgba(255,255,255,.75); }

/* Apparitions au défilement */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .12s; }
.reveal[data-delay="2"] { transition-delay: .24s; }
.reveal[data-delay="3"] { transition-delay: .36s; }

/* ------------------------------ Piliers ------------------------------ */

.pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
}
.pillar {
  position: relative;
  padding: 2.2rem 1.7rem 1.9rem;
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid rgba(201,162,39,.25);
  overflow: hidden;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.pillar:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.pillar .p-num {
  font-family: var(--f-editorial); font-style: italic;
  font-size: 3.4rem; line-height: 1;
  color: var(--gold-pale);
  position: absolute; top: .6rem; right: 1.1rem;
  transition: color .4s;
}
.pillar:hover .p-num { color: var(--gold-light); }
.pillar .p-icon { font-size: 1.6rem; color: var(--gold); margin-bottom: .9rem; }
.pillar h3 { font-size: 1.18rem; margin-bottom: .4rem; }
.pillar p { font-size: .92rem; color: var(--ink-soft); margin: 0; }

/* ------------------------------ Carrousel ------------------------------ */

.carousel { position: relative; }
.carousel-viewport { overflow: hidden; border-radius: var(--radius); }
.carousel-track {
  display: flex;
  transition: transform .7s var(--ease);
  touch-action: pan-y;
}
.carousel-slide {
  flex: 0 0 100%;
  position: relative;
  cursor: grab;
}
.carousel-slide:active { cursor: grabbing; }
.carousel-slide img {
  width: 100%; height: clamp(320px, 55vw, 560px);
  object-fit: cover;
  user-select: none; -webkit-user-drag: none;
}
.carousel-caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 2.4rem 2rem 1.3rem;
  background: linear-gradient(to top, rgba(10,46,35,.85), transparent);
  color: #fff;
  font-family: var(--f-display);
  font-size: 1.05rem; letter-spacing: .04em;
  display: flex; align-items: center; gap: .7rem;
}
.carousel-caption::before {
  content: ""; width: 8px; height: 8px;
  background: var(--gold); transform: rotate(45deg);
  flex: none;
}

.carousel-nav {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 1.2rem;
}
.carousel-dots { display: flex; gap: .55rem; }
.carousel-dots button {
  width: 26px; height: 4px;
  border: 0; border-radius: 2px;
  background: rgba(20, 84, 63, .22);
  cursor: pointer;
  padding: 0;
  transition: background .3s, width .3s var(--ease);
}
.section-dark .carousel-dots button { background: rgba(255,255,255,.25); }
.carousel-dots button.active { background: var(--gold); width: 42px; }

.carousel-arrows { display: flex; gap: .6rem; }
.carousel-arrows button {
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(20, 84, 63, .3);
  background: transparent;
  color: var(--green);
  font-size: 1.1rem;
  cursor: pointer;
  transition: background .3s, color .3s, border-color .3s, transform .3s var(--ease);
}
.section-dark .carousel-arrows button { border-color: rgba(255,255,255,.35); color: #fff; }
.carousel-arrows button:hover {
  background: var(--gold); border-color: var(--gold); color: var(--night);
  transform: translateY(-2px);
}

/* ------------------------------ Jauge de collecte ------------------------------ */

.gauge { margin: 1.6rem 0 .6rem; }
.gauge-bar {
  height: 10px;
  border-radius: 999px;
  background: rgba(201,162,39,.18);
  overflow: hidden;
}
.section-dark .gauge-bar { background: rgba(255,255,255,.14); }
.gauge-fill {
  height: 100%; width: 0;
  min-width: 14px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  position: relative;
  transition: width 1.6s var(--ease);
}
.gauge-fill::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.55) 50%, transparent 70%);
  background-size: 200% 100%;
  animation: shimmer 2.6s linear infinite;
  border-radius: inherit;
}
@keyframes shimmer { to { background-position: -200% 0; } }
.gauge-legend {
  display: flex; justify-content: space-between;
  font-size: .85rem; font-weight: 600;
  color: var(--ink-soft);
  margin-top: .55rem;
}
.section-dark .gauge-legend { color: rgba(255,255,255,.7); }
.gauge-legend strong { color: var(--gold); font-size: 1rem; }

/* ------------------------------ Section pierre / don ------------------------------ */

.stone-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 4rem;
  align-items: center;
}
.stone-visual { position: relative; }
.stone-visual img {
  border-radius: var(--arch);
  box-shadow: var(--shadow);
  height: 520px; width: 100%; object-fit: cover;
}
.stone-visual::before {
  content: "";
  position: absolute; inset: -18px;
  border: 1px solid rgba(201,162,39,.5);
  border-radius: var(--arch);
  pointer-events: none;
}
.stone-badge {
  position: absolute; right: -14px; bottom: 26px;
  background: var(--gold);
  color: var(--night);
  font-family: var(--f-display);
  padding: .9rem 1.4rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center; line-height: 1.2;
}
.stone-badge strong { display: block; font-size: 1.5rem; }
.stone-badge small { font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; font-family: var(--f-body); font-weight: 700; }

.hadith {
  font-family: var(--f-editorial); font-style: italic;
  font-size: 1.3rem; line-height: 1.55;
  color: var(--gold-light);
  border-left: 2px solid var(--gold);
  margin: 1.8rem 0; padding-left: 1.4rem;
}
.hadith cite { display: block; font-size: .85rem; font-style: normal; font-family: var(--f-body); color: rgba(255,255,255,.55); margin-top: .5rem; }

/* ------------------------------ Cartes d'activités ------------------------------ */

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.card {
  position: relative;
  background: #fff;
  border-radius: var(--radius);
  padding: 2.1rem 1.8rem;
  border: 1px solid rgba(201,162,39,.22);
  overflow: hidden;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), transparent);
  transform: scaleX(0); transform-origin: left;
  transition: transform .5s var(--ease);
}
.card:hover::before { transform: scaleX(1); }
.card .card-icon {
  width: 54px; height: 54px;
  display: grid; place-items: center;
  border-radius: 999px 999px 6px 6px;
  background: var(--cream-2);
  color: var(--gold);
  font-size: 1.4rem;
  margin-bottom: 1.1rem;
}
.card h3 { margin-bottom: .4rem; }
.card p { color: var(--ink-soft); font-size: .95rem; flex: 1; }
.card .card-link {
  font-weight: 700; font-size: .85rem;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--green);
  display: inline-flex; align-items: center; gap: .4rem;
}
.card .card-link::after { content: "→"; transition: transform .3s var(--ease); }
.card:hover .card-link::after { transform: translateX(5px); }

/* ------------------------------ En-tête de page intérieure ------------------------------ */

.page-hero {
  position: relative;
  padding: 11rem 0 5rem;
  background: var(--night);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.page-hero .hero-pattern { -webkit-mask-image: linear-gradient(to bottom, black, transparent); mask-image: linear-gradient(to bottom, black, transparent); }
.page-hero .eyebrow { margin-bottom: .8rem; }
.page-hero h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); }
.page-hero .hero-sub { margin-top: .5rem; }
.breadcrumb {
  font-size: .82rem; letter-spacing: .08em;
  color: rgba(255,255,255,.55);
  margin-bottom: 1.6rem;
}
.breadcrumb a { color: rgba(255,255,255,.75); }
.breadcrumb a:hover { color: var(--gold-light); }

/* ------------------------------ Galerie projet ------------------------------ */

.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.gallery-item {
  margin: 0; position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: zoom-in;
  box-shadow: 0 14px 40px -18px rgba(10,46,35,.3);
}
.gallery-item.wide { grid-column: span 2; }
.gallery-item img {
  width: 100%; height: 100%;
  min-height: 260px;
  object-fit: cover;
  transition: transform .8s var(--ease);
}
.gallery-item.wide img { height: clamp(300px, 48vw, 520px); }
.gallery-item:hover img { transform: scale(1.045); }
.gallery-item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 2rem 1.5rem .95rem;
  background: linear-gradient(to top, rgba(10,46,35,.85), transparent);
  color: #fff;
  font-family: var(--f-display);
  font-size: .95rem; letter-spacing: .05em;
}

.plans-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.plan-card {
  margin: 0;
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid rgba(201,162,39,.25);
  overflow: hidden;
  cursor: zoom-in;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.plan-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.plan-card img { width: 100%; height: 330px; object-fit: cover; object-position: top; background: #fff; }
.plan-card figcaption {
  padding: 1rem 1.4rem;
  font-family: var(--f-display);
  color: var(--night);
  border-top: 1px solid rgba(201,162,39,.25);
  display: flex; align-items: center; gap: .6rem;
}
.plan-card figcaption::before { content: ""; width: 7px; height: 7px; background: var(--gold); transform: rotate(45deg); }

/* ------------------------------ Chronologie ------------------------------ */

.timeline { position: relative; max-width: 680px; margin-inline: auto; padding-left: 2.4rem; }
.timeline::before {
  content: "";
  position: absolute; left: 8px; top: 6px; bottom: 6px;
  width: 1px;
  background: linear-gradient(to bottom, var(--gold), rgba(201,162,39,.15));
}
.timeline-item { position: relative; padding-bottom: 2.4rem; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: "";
  position: absolute; left: -2.4rem; top: 7px;
  width: 17px; height: 17px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  background: var(--cream);
}
.timeline-item.done::before { background: var(--gold); box-shadow: 0 0 0 5px rgba(201,162,39,.18); }
.timeline-item.now::before { animation: pulse 2s ease-in-out infinite; background: var(--gold-light); }
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(201,162,39,.45); }
  50% { box-shadow: 0 0 0 9px rgba(201,162,39,0); }
}
.timeline-item .t-tag {
  font-size: .72rem; font-weight: 800;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--gold);
}
.timeline-item h3 { margin: .2rem 0 .3rem; }
.timeline-item p { color: var(--ink-soft); font-size: .95rem; margin: 0; }

/* ------------------------------ Onglets (activités) ------------------------------ */

.tabs-nav {
  display: flex; flex-wrap: wrap; gap: .6rem;
  justify-content: center;
  margin-bottom: 3rem;
}
.tabs-nav button {
  font-family: var(--f-body); font-weight: 700; font-size: .9rem;
  letter-spacing: .06em; text-transform: uppercase;
  padding: .8rem 1.8rem;
  border-radius: 999px;
  border: 1px solid rgba(20,84,63,.3);
  background: transparent;
  color: var(--green);
  cursor: pointer;
  transition: background .3s, color .3s, border-color .3s, transform .3s var(--ease);
}
.tabs-nav button:hover { transform: translateY(-2px); border-color: var(--gold); }
.tabs-nav button.active {
  background: var(--night);
  border-color: var(--night);
  color: var(--gold-light);
}

.tab-panel { display: none; }
.tab-panel.active { display: block; animation: tab-in .6s var(--ease); }
@keyframes tab-in { from { opacity: 0; transform: translateY(18px); } }

.activity-list { display: grid; gap: 1.4rem; }
.activity {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.6rem;
  align-items: center;
  background: #fff;
  border: 1px solid rgba(201,162,39,.22);
  border-radius: var(--radius);
  padding: 1.6rem 1.9rem;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.activity:hover { transform: translateX(6px); box-shadow: var(--shadow); }
.activity .a-icon {
  width: 58px; height: 58px;
  border-radius: 999px 999px 8px 8px;
  background: var(--cream-2);
  display: grid; place-items: center;
  font-size: 1.5rem;
}
.activity h3 { margin: 0 0 .25rem; font-size: 1.2rem; }
.activity p { margin: 0; color: var(--ink-soft); font-size: .94rem; }
.activity .a-meta {
  text-align: right;
  font-size: .82rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--gold);
  white-space: nowrap;
}

/* ------------------------------ Page dons ------------------------------ */

.tiers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
.tier {
  position: relative;
  text-align: center;
  background: #fff;
  border: 1px solid rgba(201,162,39,.25);
  border-radius: var(--arch);
  padding: 2.6rem 1.4rem 2.1rem;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .3s;
}
.tier:hover { transform: translateY(-8px); box-shadow: var(--shadow); border-color: var(--gold); }
.tier .t-amount {
  font-family: var(--f-display);
  font-size: 2.3rem;
  color: var(--night);
  display: block; line-height: 1;
}
.tier .t-name {
  font-family: var(--f-editorial); font-style: italic;
  font-size: 1.15rem; color: var(--gold);
  display: block; margin: .5rem 0 .7rem;
}
.tier p { font-size: .86rem; color: var(--ink-soft); margin: 0; }
.tier.featured { background: var(--night); border-color: var(--night); }
.tier.featured .t-amount { color: #fff; }
.tier.featured p { color: rgba(255,255,255,.7); }
.tier .t-ribbon {
  position: absolute; top: 1rem; left: 50%; transform: translateX(-50%);
  font-size: .62rem; font-weight: 800; letter-spacing: .22em; text-transform: uppercase;
  color: var(--gold-light);
}

.ways { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.way {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(201,162,39,.3);
  border-radius: var(--radius);
  padding: 2rem 1.8rem;
}
.way { position: relative; }
.way .w-num {
  font-family: var(--f-editorial); font-style: italic;
  font-size: 2.6rem; line-height: 1;
  color: var(--gold);
  display: block; margin-bottom: .8rem;
}

/* Moyens de don recommandés : ceux qui ne coûtent rien à l'association */
.way.featured {
  background: rgba(201,162,39,.12);
  border-color: var(--gold);
}
.way .w-badge {
  display: inline-block;
  font-size: .66rem; font-weight: 800;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--night);
  background: var(--gold);
  border-radius: 999px;
  padding: .35rem 1rem;
  margin-bottom: 1.1rem;
}
.way h3 { color: #fff; }
.way p { color: rgba(255,255,255,.75); font-size: .94rem; margin-bottom: 0; }
.way .mono {
  font-family: monospace; font-size: .9rem;
  color: var(--gold-light);
  word-break: break-all;
}

.share-box {
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
  background: linear-gradient(120deg, var(--night-3), var(--night));
  border: 1px solid rgba(201,162,39,.35);
  border-radius: var(--radius);
  padding: 2.2rem 2.6rem;
  color: #fff;
}
.share-box h3 { margin: 0 0 .3rem; }
.share-box p { margin: 0; color: rgba(255,255,255,.7); font-size: .95rem; }
.share-box p strong { color: var(--gold-light); }

/* ------------------------------ Contact ------------------------------ */

.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 3rem; align-items: start; }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.4rem; }
.contact-list li {
  display: flex; gap: 1.1rem; align-items: flex-start;
  background: #fff;
  padding: 1.4rem 1.6rem;
  border-radius: var(--radius);
  border: 1px solid rgba(201,162,39,.22);
}
.ci-icon {
  width: 46px; height: 46px; flex: none;
  display: grid; place-items: center;
  border-radius: 999px 999px 6px 6px;
  background: var(--cream-2);
  font-size: 1.2rem;
}
.contact-list strong { font-family: var(--f-display); font-weight: 400; color: var(--night); }

.contact-map {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  min-height: 420px;
}
.contact-map iframe { width: 100%; height: 100%; min-height: 420px; border: 0; display: block; }
.map-link {
  position: absolute; bottom: 1rem; right: 1rem;
  background: var(--night); color: #fff;
  font-size: .8rem; font-weight: 700;
  padding: .55rem 1.1rem; border-radius: 999px;
}
.map-link:hover { background: var(--gold); color: var(--night); }

/* ------------------------------ Bandeau d'appel final ------------------------------ */

.cta-band {
  position: relative;
  text-align: center;
  padding: 6rem 0;
  background: var(--night);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.cta-band .hero-pattern { opacity: .08; -webkit-mask-image: none; mask-image: none; }
.cta-band h2 { font-size: clamp(2rem, 4.5vw, 3.2rem); max-width: 18em; margin-inline: auto; }
.cta-band .editorial { max-width: 34em; margin: 0 auto 2rem; }

/* ------------------------------ Pied de page ------------------------------ */

.site-footer {
  position: relative;
  background: #071f17;
  color: rgba(255,255,255,.75);
  padding: 4.5rem 0 0;
  overflow: hidden;
}
.footer-pattern {
  position: absolute; inset: 0;
  background: url("assets/pattern.svg");
  background-size: 90px;
  opacity: .05;
  pointer-events: none;
}
.footer-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.3fr .7fr .7fr;
  gap: 3rem;
  padding-bottom: 3rem;
}
.footer-logo { width: 130px; margin-bottom: 1rem; filter: drop-shadow(0 2px 10px rgba(0,0,0,.4)); }
.footer-brand p { font-size: .93rem; max-width: 30em; }
.footer-title {
  display: block;
  font-family: var(--f-display);
  color: var(--gold-light);
  letter-spacing: .08em;
  margin-bottom: 1rem;
}
.footer-nav a, .footer-social a {
  display: block;
  color: rgba(255,255,255,.72);
  font-size: .93rem;
  padding: .28rem 0;
}
.footer-nav a:hover, .footer-social a:hover { color: var(--gold-light); }
.footer-bottom {
  position: relative;
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 1.4rem 0;
  text-align: center;
  font-size: .82rem;
  color: rgba(255,255,255,.45);
}
.footer-bottom p { margin: 0; }

/* ------------------------------ Lightbox ------------------------------ */

.lightbox {
  position: fixed; inset: 0; z-index: 300;
  display: grid; place-items: center;
  background: rgba(7, 31, 23, .93);
  opacity: 0; pointer-events: none;
  transition: opacity .35s;
  padding: 2rem;
}
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox img {
  max-width: min(1200px, 92vw); max-height: 88vh;
  border-radius: var(--radius);
  box-shadow: 0 40px 120px rgba(0,0,0,.6);
  transform: scale(.94);
  transition: transform .35s var(--ease);
}
.lightbox.open img { transform: scale(1); }
.lightbox-close {
  position: absolute; top: 1.2rem; right: 1.6rem;
  background: none; border: 0;
  color: #fff; font-size: 2.6rem; line-height: 1;
  cursor: pointer;
  transition: color .3s, transform .3s;
}
.lightbox-close:hover { color: var(--gold); transform: rotate(90deg); }

/* ------------------------------ Note / encart ------------------------------ */

.note {
  display: flex; align-items: flex-start; gap: .8rem;
  background: rgba(201,162,39,.09);
  border: 1px dashed rgba(201,162,39,.5);
  border-radius: var(--radius);
  padding: 1.1rem 1.5rem;
  font-size: .94rem;
  color: var(--ink-soft);
  margin-top: 2.4rem;
}
.note-icon { color: var(--gold); }

/* ------------------------------ Accessibilité / mouvement ------------------------------ */

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

/* ------------------------------ Responsive ------------------------------ */

@media (max-width: 1020px) {
  .pillars { grid-template-columns: repeat(2, 1fr); }
  .tiers { grid-template-columns: repeat(2, 1fr); }
  .stone-grid { grid-template-columns: 1fr; gap: 2.6rem; }
  .stone-visual img { height: 420px; }
  .collect-strip { grid-template-columns: repeat(3, 1fr); }
  .collect-strip .cs-cta { grid-column: 1 / -1; text-align: center; }
}

@media (max-width: 820px) {
  .section { padding: 4.5rem 0; }
  .cards, .ways, .contact-grid, .plans-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .gallery-item.wide { grid-column: span 1; }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .share-box { flex-direction: column; text-align: center; }
  .activity { grid-template-columns: auto 1fr; }
  .activity .a-meta { grid-column: 2; text-align: left; }

  /* Menu mobile */
  .nav-toggle { display: flex; position: relative; z-index: 95; }
  .nav-links {
    position: fixed; inset: 0;
    flex-direction: column; justify-content: center; gap: 1.6rem;
    background: rgba(7, 31, 23, .97);
    backdrop-filter: blur(10px);
    opacity: 0; pointer-events: none;
    transition: opacity .35s;
    z-index: 90;
  }
  .nav-links.open { opacity: 1; pointer-events: auto; }
  .nav-links a { font-size: 1.25rem; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

@media (max-width: 560px) {
  .pillars, .tiers { grid-template-columns: 1fr; }
  .collect-strip { grid-template-columns: 1fr 1fr; padding: 1.3rem 1.4rem; gap: 1.2rem; }
  .brand-text small { display: none; }
  .hero-actions .btn { width: 100%; }
}

/* ==========================================================================
   Raffinements « Pierre & Lumière » — icônes au trait, arche signature,
   transitions de pages, micro-interactions.
   ========================================================================== */

/* Transition douce entre les pages (navigateurs compatibles) */
@view-transition { navigation: auto; }

body { animation: page-in .55s ease both; }
@keyframes page-in { from { opacity: 0; } }

/* ---------- Icônes SVG au trait ---------- */

.icon {
  width: 1em; height: 1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  display: block;
}

.pillar .p-icon {
  width: 54px; height: 54px;
  border-radius: 999px 999px 8px 8px;
  background: linear-gradient(165deg, rgba(201,162,39,.16), rgba(243,231,191,.35));
  display: grid; place-items: center;
  color: var(--gold);
  margin-bottom: .9rem;
  transition: background .4s, transform .4s var(--ease);
}
.pillar .p-icon .icon { width: 26px; height: 26px; }
.pillar:hover .p-icon { transform: translateY(-3px); background: linear-gradient(165deg, rgba(201,162,39,.3), rgba(243,231,191,.5)); }

.card .card-icon .icon, .activity .a-icon .icon { width: 26px; height: 26px; }
.card .card-icon, .activity .a-icon { color: var(--gold); }
.ci-icon { color: var(--gold); }
.ci-icon .icon { width: 22px; height: 22px; }

/* ---------- Arche signature du héros ---------- */

.hero-arch {
  position: absolute;
  right: 3%; bottom: 0;
  height: 86%;
  z-index: -1;
  color: var(--gold);
  opacity: .5;
  pointer-events: none;
}
.hero-arch .arch-line {
  fill: none; stroke: currentColor; stroke-width: 1.3;
  stroke-dasharray: 1500; stroke-dashoffset: 1500;
  animation: arch-draw 3s var(--ease) .5s forwards;
}
.hero-arch .arch-line-2 { stroke-width: .8; opacity: .7; animation-delay: .9s; }
@keyframes arch-draw { to { stroke-dashoffset: 0; } }
.hero-arch .arch-star rect {
  fill: none; stroke: currentColor; stroke-width: 1.2;
  opacity: 0;
  animation: star-in 1.4s var(--ease) 2.3s forwards;
}
@keyframes star-in { to { opacity: 1; } }

@media (max-width: 820px) { .hero-arch { display: none; } }

/* ---------- Mouvement d'ambiance ---------- */

.hero-pattern { animation: pattern-drift 90s linear infinite; }
@keyframes pattern-drift { to { background-position: 180px 90px; } }

/* Reflet lumineux sur les boutons or */
.btn-gold { position: relative; overflow: hidden; }
.btn-gold::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,.45) 50%, transparent 65%);
  transform: translateX(-130%);
  transition: transform .7s var(--ease);
  pointer-events: none;
}
.btn-gold:hover::after { transform: translateX(130%); }

/* Apparitions au défilement : flou progressif */
.reveal {
  filter: blur(9px);
  transition: opacity .9s var(--ease), transform .9s var(--ease), filter .9s var(--ease);
}
.reveal.in { filter: none; }

/* En-tête défilé : filet d'or */
.site-header.scrolled { border-bottom: 1px solid rgba(201,162,39,.25); }

@media (prefers-reduced-motion: reduce) {
  .reveal { filter: none; }
  .hero-arch .arch-line { stroke-dashoffset: 0; }
  .hero-arch .arch-star rect { opacity: 1; }
}
