/* =========================================================
   ULMJC Grenoble — style nordique chaleureux
   Palette : crème, pin foncé, terre cuite, charbon chaud
   Typo : Fraunces (titres) + Inter (texte)
   ========================================================= */

:root {
  --bg: #fbf7f1;
  --bg-card: #ffffff;
  --bg-soft: #f3ece1;
  --ink: #2a2926;
  --ink-soft: #6b6660;
  --pine: #1a3328;
  --pine-soft: #2d4a3d;
  --terra: #c4623a;
  --terra-dark: #a04e2c;
  --line: #e8e0d5;
  --shadow: 0 2px 8px rgba(42, 41, 38, 0.06), 0 12px 32px rgba(42, 41, 38, 0.05);
  --radius: 14px;
  --radius-sm: 8px;
  --maxw: 1140px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 500;
  color: var(--pine);
  letter-spacing: -0.01em;
  margin: 0 0 0.6em;
  line-height: 1.2;
}

h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
h3 { font-size: 1.35rem; }

p { margin: 0 0 1.1em; }

a {
  color: var(--terra-dark);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
a:hover { border-bottom-color: var(--terra); }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.muted { color: var(--ink-soft); }
.center { text-align: center; }

/* ---------- Header / navigation ---------- */

.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
  background: rgba(251, 247, 241, 0.85);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 0;
}

.brand {
  font-family: 'Fraunces', serif;
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--pine);
  border: none;
  letter-spacing: -0.01em;
}
.brand:hover { border: none; color: var(--pine-soft); }
.brand .brand-sub {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  font-weight: 400;
  color: var(--ink-soft);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-top: -2px;
}

.nav-links {
  display: flex;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  display: inline-block;
  padding: 0.5rem 0.9rem;
  color: var(--ink);
  font-size: 0.95rem;
  border: none;
  border-radius: var(--radius-sm);
}
.nav-links a:hover { background: var(--bg-soft); color: var(--pine); border: none; }
.nav-links a.active { color: var(--pine); font-weight: 500; }

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.7rem;
  cursor: pointer;
  font-size: 1rem;
  color: var(--pine);
}

@media (max-width: 820px) {
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem 1.5rem 1rem;
    gap: 0;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 0.7rem 0; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav-links li:last-child a { border-bottom: none; }
  .nav-toggle { display: block; }
}

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

.btn {
  display: inline-block;
  padding: 0.85rem 1.6rem;
  background: var(--pine);
  color: var(--bg);
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 0.98rem;
  border: 1px solid var(--pine);
  cursor: pointer;
  transition: all 0.2s;
}
.btn:hover { background: var(--pine-soft); color: var(--bg); border-color: var(--pine-soft); border-bottom-color: var(--pine-soft); }

.btn-accent { background: var(--terra); border-color: var(--terra); }
.btn-accent:hover { background: var(--terra-dark); border-color: var(--terra-dark); border-bottom-color: var(--terra-dark); }

.btn-ghost {
  background: transparent;
  color: var(--pine);
  border-color: var(--pine);
}
.btn-ghost:hover { background: var(--pine); color: var(--bg); border-bottom-color: var(--pine); }

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

section { padding: 5rem 0; }
section + section { border-top: 1px solid var(--line); }

.section-eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--terra-dark);
  margin-bottom: 1rem;
}

/* ---------- Hero ---------- */

.hero {
  padding: 6rem 0 5rem;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 100%);
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
  min-height: 540px;
  display: flex;
  align-items: center;
}
.hero::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(196, 98, 58, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 3;
}

/* Média de fond (vidéo ou photo) */
.hero-video,
.hero-bg-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.4s ease;
}
.hero-video.loaded { opacity: 1; }

/* Wrapper photo : zone du parallaxe au scroll (JS animera translateY ici) */
.hero-bg-wrap {
  overflow: hidden;
  will-change: transform;
  /* le wrapper déborde un peu en haut/bas pour absorber le mouvement parallaxe */
  top: -8%;
  bottom: -8%;
  inset-block: -8%;
}

/* Photo : Ken Burns plus marqué (scale + dérive lente) */
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: filter 1.8s ease;
  animation: kenBurns 24s ease-in-out infinite alternate;
  transform-origin: 55% 45%;
  will-change: transform, filter;
}
@keyframes kenBurns {
  0%   { transform: scale(1.08) translate(0%, 0%); }
  50%  { transform: scale(1.14) translate(-2%, -1.5%); }
  100% { transform: scale(1.10) translate(1.5%, -2%); }
}

/* Overlay sombre/teinté pour lisibilité du texte */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(26, 51, 40, 0.55) 0%, rgba(26, 51, 40, 0.35) 50%, rgba(26, 51, 40, 0.65) 100%);
  pointer-events: none;
}

/* Vignette derrière le bloc de texte pour renforcer la lisibilité */
.hero-vignette {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 70% at 30% 50%, rgba(20, 38, 30, 0.55) 0%, transparent 65%);
}
@media (max-width: 820px) {
  .hero-vignette {
    background:
      radial-gradient(ellipse 110% 80% at 50% 50%, rgba(20, 38, 30, 0.55) 0%, transparent 70%);
  }
}

/* Quand le hero a un média (vidéo ou photo), on inverse les couleurs du texte */
.hero.has-video,
.hero.has-photo {
  background: var(--pine);
  border-bottom: none;
}
.hero.has-video .section-eyebrow,
.hero.has-photo .section-eyebrow { color: rgba(251, 247, 241, 0.9); }
.hero.has-video h1,
.hero.has-photo h1 { color: var(--bg); }
.hero.has-video .lede,
.hero.has-photo .lede { color: rgba(251, 247, 241, 0.92); }
.hero.has-video .btn-ghost,
.hero.has-photo .btn-ghost {
  color: var(--bg);
  border-color: rgba(251, 247, 241, 0.6);
}
.hero.has-video .btn-ghost:hover,
.hero.has-photo .btn-ghost:hover {
  background: var(--bg);
  color: var(--pine);
}

/* ===========================================================
   EFFETS MÉTÉO — appliqués au hero photo selon Open-Meteo
   =========================================================== */

/* Filtres image selon la météo */
.hero.has-photo .hero-bg { filter: brightness(0.88) saturate(0.95); }
.hero.weather-clear.is-day .hero-bg     { filter: brightness(1.0) saturate(1.08) contrast(1.02); }
.hero.weather-clear.is-night .hero-bg   { filter: brightness(0.45) saturate(0.6) hue-rotate(200deg); }
.hero.weather-cloud .hero-bg            { filter: brightness(0.85) saturate(0.8) contrast(0.96); }
.hero.weather-cloud.is-night .hero-bg   { filter: brightness(0.4) saturate(0.55) hue-rotate(200deg); }
.hero.weather-fog .hero-bg              { filter: blur(2px) brightness(0.92) saturate(0.65); }
.hero.weather-rain .hero-bg             { filter: brightness(0.68) saturate(0.7) contrast(1.05); }
.hero.weather-rain.is-night .hero-bg    { filter: brightness(0.35) saturate(0.45) hue-rotate(200deg); }
.hero.weather-snow .hero-bg             { filter: brightness(0.95) saturate(0.5) contrast(1.05); }
.hero.weather-snow.is-night .hero-bg    { filter: brightness(0.55) saturate(0.4) hue-rotate(200deg); }
.hero.weather-thunder .hero-bg          { filter: brightness(0.45) saturate(0.5); }

/* Calque pour les particules animées (pluie, neige, brouillard, éclair) */
.weather-fx {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

/* Pluie : stries diagonales animées sur deux couches */
.hero.weather-rain .weather-fx::before,
.hero.weather-rain .weather-fx::after {
  content: '';
  position: absolute;
  inset: -20% -10%;
  background-image: repeating-linear-gradient(
    102deg,
    transparent 0,
    transparent 6px,
    rgba(220, 235, 255, 0.35) 6px,
    rgba(220, 235, 255, 0.35) 7px
  );
  animation: rainFall 0.55s linear infinite;
}
.hero.weather-rain .weather-fx::after {
  inset: -25% -15%;
  background-image: repeating-linear-gradient(
    104deg,
    transparent 0,
    transparent 10px,
    rgba(220, 235, 255, 0.22) 10px,
    rgba(220, 235, 255, 0.22) 11px
  );
  animation-duration: 0.85s;
}
@keyframes rainFall {
  from { transform: translate(0, -10%); }
  to   { transform: translate(-4%, 10%); }
}

/* Neige : flocons via radial-gradients sur deux couches */
.hero.weather-snow .weather-fx::before,
.hero.weather-snow .weather-fx::after {
  content: '';
  position: absolute;
  inset: -10% 0 -10% 0;
  background-image:
    radial-gradient(2px 2px at 12% 14%, rgba(255,255,255,0.9), transparent 70%),
    radial-gradient(1.5px 1.5px at 28% 32%, rgba(255,255,255,0.85), transparent 70%),
    radial-gradient(2.5px 2.5px at 48% 8%, rgba(255,255,255,0.95), transparent 70%),
    radial-gradient(1.5px 1.5px at 64% 45%, rgba(255,255,255,0.8), transparent 70%),
    radial-gradient(2px 2px at 82% 18%, rgba(255,255,255,0.9), transparent 70%),
    radial-gradient(2px 2px at 92% 70%, rgba(255,255,255,0.85), transparent 70%),
    radial-gradient(1.5px 1.5px at 18% 78%, rgba(255,255,255,0.8), transparent 70%),
    radial-gradient(2px 2px at 54% 88%, rgba(255,255,255,0.9), transparent 70%);
  background-size: 100% 50vh;
  background-repeat: repeat-y;
  animation: snowFall 14s linear infinite;
}
.hero.weather-snow .weather-fx::after {
  background-size: 100% 70vh;
  opacity: 0.65;
  animation-duration: 22s;
  animation-direction: reverse;
}
@keyframes snowFall {
  from { background-position: 0 0; }
  to   { background-position: 4% 100vh; }
}

/* Brouillard : voile blanc qui ondule lentement */
.hero.weather-fog .weather-fx::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 60%, rgba(255,255,255,0.4) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 40%, rgba(255,255,255,0.35) 0%, transparent 55%),
    linear-gradient(180deg, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0.25) 100%);
  animation: fogDrift 18s ease-in-out infinite alternate;
}
@keyframes fogDrift {
  from { transform: translateX(-2%); opacity: 0.85; }
  to   { transform: translateX(2%);  opacity: 1; }
}

/* Orage : pluie + flash blanc occasionnel */
.hero.weather-thunder .weather-fx::before {
  content: '';
  position: absolute;
  inset: -20% -10%;
  background-image: repeating-linear-gradient(
    102deg,
    transparent 0,
    transparent 6px,
    rgba(220, 235, 255, 0.4) 6px,
    rgba(220, 235, 255, 0.4) 7px
  );
  animation: rainFall 0.45s linear infinite;
}
.hero.weather-thunder .weather-fx::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 240, 0);
  animation: thunderFlash 7s linear infinite;
}
@keyframes thunderFlash {
  0%, 92%, 100% { background-color: rgba(255, 255, 240, 0); }
  93%           { background-color: rgba(255, 255, 240, 0.55); }
  94%           { background-color: rgba(255, 255, 240, 0); }
  96%           { background-color: rgba(255, 255, 240, 0.35); }
  97%           { background-color: rgba(255, 255, 240, 0); }
}

/* Indicateur météo discret en bas du hero */
.weather-badge {
  position: absolute;
  bottom: 1.2rem;
  right: 1.5rem;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.75rem;
  background: rgba(26, 51, 40, 0.55);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(251, 247, 241, 0.2);
  border-radius: 999px;
  color: rgba(251, 247, 241, 0.92);
  font-size: 0.8rem;
  letter-spacing: 0.03em;
  opacity: 0;
  transition: opacity 0.6s ease;
}
.weather-badge.shown { opacity: 1; }
.weather-badge .weather-emoji { font-size: 0.95rem; }

.hero-content {
  max-width: 720px;
  position: relative;
  z-index: 2;
}
.hero h1 { margin-bottom: 1.2rem; }
.hero .lede {
  font-size: 1.25rem;
  color: var(--ink-soft);
  margin-bottom: 2rem;
  font-weight: 300;
  line-height: 1.55;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

@media (prefers-reduced-motion: reduce) {
  .hero-video { display: none; }
}

/* ---------- Cartes ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--pine-soft);
}
.card .icon {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  display: inline-block;
}
.card h3 { color: var(--pine); margin-bottom: 0.5rem; }
.card p { margin: 0; color: var(--ink-soft); font-size: 0.95rem; }
.card .card-link {
  display: inline-block;
  margin-top: 1rem;
  color: var(--terra-dark);
  font-size: 0.92rem;
  font-weight: 500;
  border: none;
}
.card .card-link::after { content: ' →'; transition: transform 0.2s; display: inline-block; }
.card:hover .card-link::after { transform: translateX(4px); }

/* ---------- Split (image + texte) ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.split-img {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--bg-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-soft);
  font-size: 0.9rem;
}
.split-img img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 820px) {
  .split { grid-template-columns: 1fr; gap: 2rem; }
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--pine);
  color: var(--bg);
  padding: 3.5rem 0 2rem;
  margin-top: 4rem;
}
.site-footer h4 {
  color: var(--bg);
  font-size: 1rem;
  margin-bottom: 1rem;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 0.5rem; }
.footer-grid a { color: rgba(251, 247, 241, 0.75); border: none; font-size: 0.95rem; }
.footer-grid a:hover { color: var(--bg); border: none; }
.footer-grid p { color: rgba(251, 247, 241, 0.75); font-size: 0.95rem; }
.site-footer .muted { color: rgba(251, 247, 241, 0.55); }
.footer-bottom {
  border-top: 1px solid rgba(251, 247, 241, 0.15);
  padding-top: 1.5rem;
  font-size: 0.85rem;
  color: rgba(251, 247, 241, 0.6);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
@media (max-width: 820px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* ---------- Page header (autres pages) ---------- */

.page-header {
  padding: 4rem 0 3rem;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
}
.page-header h1 { margin-bottom: 0.5rem; }
.page-header .lede { color: var(--ink-soft); font-size: 1.15rem; margin: 0; max-width: 640px; }

/* ---------- Prose (contenu de page longue) ---------- */

.prose {
  max-width: 720px;
  margin: 0 auto;
}
.prose h2 { margin-top: 2.5rem; }
.prose h3 { margin-top: 2rem; }
.prose ul { padding-left: 1.5rem; }
.prose li { margin-bottom: 0.5rem; }

.prose-callout {
  background: var(--bg-soft);
  border-left: 4px solid var(--terra);
  border-radius: var(--radius-sm);
  padding: 1.2rem 1.5rem;
  margin: 1.5rem 0 2rem;
}
.prose-callout p { margin-bottom: 0.5rem; }
.prose-callout p:last-child { margin-bottom: 0; }
.prose-callout strong { color: var(--pine); }

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

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}
.gallery-item {
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-soft);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-soft);
  font-size: 0.85rem;
  text-align: center;
  padding: 1rem;
  cursor: pointer;
  transition: transform 0.2s;
}
.gallery-item:hover { transform: scale(1.02); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Formulaire ---------- */

.form {
  display: grid;
  gap: 1.2rem;
  max-width: 560px;
}
.form label {
  display: block;
  font-size: 0.92rem;
  font-weight: 500;
  margin-bottom: 0.4rem;
  color: var(--pine);
}
.form input, .form textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  font-family: inherit;
  font-size: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--ink);
  transition: border-color 0.2s;
}
.form input:focus, .form textarea:focus {
  outline: none;
  border-color: var(--pine-soft);
}
.form textarea { min-height: 140px; resize: vertical; }

/* ---------- Actu list ---------- */

.actus-list { display: grid; gap: 2rem; }
.actu-item {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 2rem;
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.2s;
}
.actu-item:hover { border-color: var(--pine-soft); }
.actu-date {
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--terra-dark);
  font-weight: 500;
}
.actu-item h3 { margin: 0.3rem 0 0.7rem; }
.actu-item p { margin: 0; color: var(--ink-soft); font-size: 0.95rem; }
@media (max-width: 720px) {
  .actu-item { grid-template-columns: 1fr; gap: 0.5rem; }
}

/* ---------- Activités liste ---------- */

.activity-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.activity {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem;
}
.activity h3 { font-size: 1.2rem; margin-bottom: 0.3rem; }
.activity .activity-meta {
  font-size: 0.85rem;
  color: var(--terra-dark);
  letter-spacing: 0.05em;
  margin-bottom: 0.8rem;
}
.activity p { margin: 0; font-size: 0.95rem; color: var(--ink-soft); }

/* ---------- Chiffres clés ---------- */

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
  text-align: center;
}
.stat .stat-num {
  font-family: 'Fraunces', serif;
  font-size: clamp(2.5rem, 5vw, 3.8rem);
  font-weight: 500;
  color: var(--pine);
  line-height: 1;
  letter-spacing: -0.02em;
  display: block;
}
.stat .stat-label {
  display: block;
  margin-top: 0.6rem;
  font-size: 0.92rem;
  color: var(--ink-soft);
  letter-spacing: 0.05em;
}
.stat .stat-suffix {
  font-size: 0.6em;
  color: var(--terra-dark);
  margin-left: 0.1em;
}

/* ===========================================================
   ANIMATIONS — discrètes, classe nordique
   =========================================================== */

/* Apparition au scroll */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* Décalage pour des grilles d'éléments (cards, activities, gallery) */
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-stagger.in > *:nth-child(1) { transition-delay: 0.00s; }
.reveal-stagger.in > *:nth-child(2) { transition-delay: 0.08s; }
.reveal-stagger.in > *:nth-child(3) { transition-delay: 0.16s; }
.reveal-stagger.in > *:nth-child(4) { transition-delay: 0.24s; }
.reveal-stagger.in > *:nth-child(5) { transition-delay: 0.32s; }
.reveal-stagger.in > *:nth-child(6) { transition-delay: 0.40s; }
.reveal-stagger.in > *:nth-child(7) { transition-delay: 0.48s; }
.reveal-stagger.in > *:nth-child(8) { transition-delay: 0.56s; }
.reveal-stagger.in > *:nth-child(9) { transition-delay: 0.64s; }
.reveal-stagger.in > *:nth-child(10) { transition-delay: 0.72s; }
.reveal-stagger.in > *:nth-child(11) { transition-delay: 0.80s; }
.reveal-stagger.in > *:nth-child(12) { transition-delay: 0.88s; }
.reveal-stagger.in > * { opacity: 0; }
.reveal-stagger.in > * { opacity: 1; transform: translateY(0); }

/* Entrée du hero — déclenchée automatiquement */
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero .section-eyebrow { animation: heroFadeUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both; }
.hero h1              { animation: heroFadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.25s both; }
.hero .lede           { animation: heroFadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.45s both; }
.hero-actions         { animation: heroFadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.65s both; }

/* Carte : survol enrichi avec trait sous le titre */
.card h3 {
  position: relative;
  display: inline-block;
}
.card h3::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  height: 2px;
  width: 0;
  background: var(--terra);
  transition: width 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.card:hover h3::after { width: 100%; }
.card { transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s, border-color 0.2s; }
.card:hover { transform: translateY(-5px); }

/* Galerie : zoom doux + overlay au survol */
.gallery-item {
  overflow: hidden;
  position: relative;
}
.gallery-item img,
.gallery-item .placeholder-img {
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.gallery-item:hover img,
.gallery-item:hover .placeholder-img { transform: scale(1.06); }

/* Respect des préférences accessibilité */
@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal-stagger > *,
  .hero .section-eyebrow,
  .hero h1,
  .hero .lede,
  .hero-actions,
  .gallery-item img,
  .card {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}
