/* ===== VARIABLES ===== */
:root {
  --cream: #FBF7F0;
  --cream2: #F3EDE1;
  --green: #1E5E3E;
  --green2: #2D7A54;
  --green3: #88C9A1;
  --gold: #C8922A;
  --gold2: #E8B84B;
  --gold3: #FDE9B8;
  --terra: #C0522B;
  --brown: #5C3A1E;
  --text: #2A1F14;
  --text2: #6B5B47;
  --white: #FFFFFF;
  --shadow: rgba(30, 94, 62, 0.12);
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'DM Sans', sans-serif; background: var(--cream); color: var(--text); overflow-x: hidden; }
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--cream2); }
::-webkit-scrollbar-thumb { background: var(--green); border-radius: 3px; }

/* ===== NAV ===== */
nav {
  position: fixed; top: 0; width: 100%; z-index: 1000;
  display: flex; align-items: center; justify-content: space-between;
  padding: .85rem 5rem;
  background: rgba(251,247,240,0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(200,146,42,0.2);
  transition: padding .4s, box-shadow .4s;
}
nav.scrolled { padding: .55rem 5rem; box-shadow: 0 4px 30px var(--shadow); }
.nav-logo {
  font-family: 'Playfair Display', serif; font-size: 1.2rem; font-weight: 900;
  color: var(--green); text-decoration: none; display: flex; align-items: center; gap: .5rem;
}
.nav-logo-dot { width:8px; height:8px; border-radius:50%; background:var(--gold); display:inline-block; animation:pulse 2s infinite; }
@keyframes pulse { 0%,100%{transform:scale(1);opacity:1} 50%{transform:scale(1.4);opacity:.7} }
.nav-links { display: flex; gap: 1.8rem; list-style: none; }
.nav-links a {
  color: var(--text2); font-size: .78rem; font-weight: 500;
  letter-spacing: .07em; text-transform: uppercase; text-decoration: none;
  transition: color .3s; position: relative;
}
.nav-links a::after { content:''; position:absolute; bottom:-3px; left:0; width:0; height:2px; background:var(--gold); transition:width .3s; }
.nav-links a:hover { color: var(--green); }
.nav-links a:hover::after { width: 100%; }
.nav-cta {
  background: var(--green); color: var(--white);
  padding: .5rem 1.3rem; border-radius: 50px; font-size: .78rem; font-weight: 600;
  letter-spacing: .05em; text-decoration: none; transition: all .3s;
  box-shadow: 0 4px 15px rgba(30,94,62,.3);
}
.nav-cta:hover { background: var(--green2); transform: translateY(-1px); }
.hamburger { display:none; flex-direction:column; gap:5px; cursor:pointer; background:none; border:none; }
.hamburger span { width:24px; height:2px; background:var(--green); display:block; transition:all .3s; }

/* ===== MOBILE NAV ===== */
.mobile-nav {
  display:none; position:fixed;
  top:64px; right:1rem;
  z-index:998;
  background:rgba(30,20,10,.82);
  backdrop-filter:blur(18px);
  -webkit-backdrop-filter:blur(18px);
  border:1px solid rgba(200,146,42,.25);
  border-radius:16px;
  flex-direction:column;
  padding:.6rem .5rem;
  min-width:200px;
  box-shadow:0 12px 40px rgba(0,0,0,.3);
}
.mobile-nav.open { display:flex; animation:fadeUp .22s ease; }
.mobile-nav a {
  font-family:'DM Sans',sans-serif;
  font-size:.85rem; font-weight:500;
  color:rgba(255,255,255,.88);
  text-decoration:none;
  padding:.6rem .9rem;
  border-radius:10px;
  letter-spacing:.04em;
  transition:background .2s, color .2s;
}
.mobile-nav a:hover { background:rgba(200,146,42,.18); color:var(--gold2); }
.mobile-nav a.active-section {
  background:rgba(200,146,42,.22);
  color:var(--gold2);
  font-weight:600;
}
.mobile-close { display:none; }

/* ===== LAYOUT ===== */
.site-wrapper { display:flex; flex-direction:column; min-height:100vh; }
main { flex:1; }
section { padding:3rem 0; position:relative; overflow:hidden; }
.container { max-width:1180px; margin:0 auto; padding:0 3rem; }

/* ===== TYPOGRAPHY UTILS ===== */
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  color: var(--gold);
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  margin-bottom: .6rem;
}
.section-tag::before {
  content: '';
  width: 22px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
}
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  font-weight: 700;
  line-height: 1;
  color: var(--text);
  margin-bottom: .75rem;
}
.section-desc {
  font-family: 'Lora', serif;
  font-size: .97rem;
  color: var(--text2);
  line-height: 1.6;
  max-width: 520px;
  text-align : justify;
}
.section-desc.full-width {
  max-width: none;
}
/* ===== ANIMATIONS ===== */
.reveal { opacity:0; transform:translateY(30px); transition:opacity .7s ease,transform .7s ease; }
.reveal.visible { opacity:1; transform:none; }
.reveal-left { opacity:0; transform:translateX(-30px); transition:opacity .7s ease,transform .7s ease; }
.reveal-left.visible { opacity:1; transform:none; }
.reveal-right { opacity:0; transform:translateX(30px); transition:opacity .7s ease,transform .7s ease; }
.reveal-right.visible { opacity:1; transform:none; }
@keyframes slideIn { from{opacity:0;transform:translateX(-20px)} to{opacity:1;transform:none} }
@keyframes fadeUp { from{opacity:0;transform:translateY(22px)} to{opacity:1;transform:none} }
@keyframes float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-7px)} }

/* ===== HERO ===== */
#accueil { min-height:100vh; background:linear-gradient(135deg,#EEF7F1 0%,var(--cream) 50%,#FDF3E3 100%); display:grid; grid-template-columns:1fr 1fr; position:relative; overflow:hidden; padding-top:72px; }
.hero-bg-pattern { position:absolute; inset:0; z-index:0; background-image:radial-gradient(circle at 10% 20%,rgba(30,94,62,.06) 0%,transparent 50%),radial-gradient(circle at 90% 80%,rgba(200,146,42,.08) 0%,transparent 50%); }
.hero-left { display:flex; flex-direction:column; justify-content:center; padding:4rem 3.5rem 4rem 5rem; position:relative; z-index:2; }
.hero-eyebrow { display:inline-flex; align-items:center; gap:.6rem; background:var(--gold3); color:var(--gold); padding:.35rem .9rem; border-radius:50px; font-size:.7rem; font-weight:600; letter-spacing:.15em; text-transform:uppercase; margin-bottom:1.4rem; width:fit-content; animation:slideIn .8s ease .1s both; }
.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.6rem, 4.5vw, 4.5rem);
  font-weight: 900;
  line-height: 1.08;
  color: var(--text);
  margin-bottom: 1.2rem;
  animation: fadeUp .9s ease .3s both;
}
.hero-title em { font-style: italic; color: var(--green); }
.hero-title .accent { color: var(--gold); }

.hero-desc { font-family:'Lora',serif; font-size:1.05rem; color:var(--text2); line-height:1.8; max-width:580px; margin-bottom:2rem; text-align:justify; animation:fadeUp .9s ease .5s both; }
.hero-actions { display:flex; gap:.9rem; flex-wrap:wrap; animation:fadeUp .9s ease .7s both; }
.btn-green { background:var(--green); color:var(--white); padding:.8rem 1.8rem; border-radius:50px; font-weight:600; font-size:.85rem; text-decoration:none; transition:all .3s; box-shadow:0 6px 20px rgba(30,94,62,.3); display:inline-flex; align-items:center; gap:.5rem; }
.btn-green:hover { background:var(--green2); transform:translateY(-2px); }
.btn-gold-outline { background:transparent; color:var(--gold); padding:.8rem 1.8rem; border-radius:50px; font-weight:600; font-size:.85rem; text-decoration:none; border:2px solid var(--gold); transition:all .3s; display:inline-flex; align-items:center; gap:.5rem; }
.btn-gold-outline:hover { background:var(--gold3); transform:translateY(-2px); }

/* ── Hero Right ── */
.hero-right {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 2.5rem 3rem 1.5rem;
  z-index: 2;
  animation: fadeUp 1s ease .4s both;
}
.hero-art-wrap {
  position: relative;
  width: 100%;
  max-width: 560px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero-art-main {
  width: 100%;
}
.hero-art-main img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0;
  background: none;
}
.hero-art-badge { position:absolute; bottom:-1.2rem; left:-1.2rem; background:var(--white); border-radius:14px; padding:.85rem 1.2rem; box-shadow:0 8px 35px var(--shadow); display:flex; align-items:center; gap:.7rem; animation:float 4s ease-in-out infinite; }
.hero-art-badge-icon { font-size:1.5rem; }
.hero-art-badge-text { font-size:.72rem; color:var(--text); }
.hero-art-badge-text strong { display:block; font-weight:600; color:var(--green); }
.hero-art-tag { position:absolute; top:1.2rem; right:-.8rem; background:var(--gold); color:var(--white); padding:.45rem .9rem; border-radius:50px; font-size:.68rem; font-weight:700; letter-spacing:.1em; text-transform:uppercase; animation:float 4s ease-in-out 2s infinite; }

/* ───────────────────────────────────────────
   HERO EYEBROW — gestion desktop / mobile
─────────────────────────────────────────── */

/* Eyebrow flottant (hors hero-left) — caché par défaut, visible seulement mobile */
section#accueil > .hero-eyebrow {
  display: none;
}

/* Eyebrow dans hero-left — visible par défaut (desktop) */
.hero-eyebrow-desktop {
  display: inline-flex;
}

/* ===== À PROPOS ===== */
#apropos { background:var(--white); }
.apropos-grid { display:grid; grid-template-columns:1fr 1fr; gap:4rem; align-items:center; margin-top:2.5rem; }
.apropos-img-stack { position:relative; }
.apropos-img-main { width:80%; aspect-ratio:4/5; border-radius:18px; overflow:hidden; box-shadow:0 18px 55px rgba(30,94,62,.15); }
.apropos-img-sub { position:absolute; bottom:-1.5rem; right:-1.5rem; width:28%; aspect-ratio:1; border-radius:14px; overflow:hidden; box-shadow:0 12px 35px rgba(30,94,62,.2); border:4px solid var(--white); }
.apropos-stat-chip { position:absolute; top:1.5rem; left:-1.2rem; background:var(--green); color:var(--white); border-radius:10px; padding:.7rem 1.1rem; font-family:'Playfair Display',serif; box-shadow:0 7px 22px rgba(30,94,62,.3); animation:float 5s ease-in-out infinite; }
.apropos-stat-chip-n { font-size:1.6rem; font-weight:700; line-height:1; }
.apropos-stat-chip-l { font-size:.62rem; text-transform:uppercase; letter-spacing:.1em; opacity:.85; }
.apropos-tabs { display:flex; gap:0; margin:1.5rem 0 1.2rem; border-radius:50px; background:var(--cream2); padding:4px; width:fit-content; }
.apropos-tab { padding:.45rem 1.1rem; font-size:.76rem; font-weight:500; background:none; border:none; cursor:pointer; border-radius:50px; color:var(--text2); transition:all .3s; }
.apropos-tab.active { background:var(--green); color:var(--white); box-shadow:0 3px 10px rgba(30,94,62,.3); }
.apropos-content { display:none; text-align:justify; }
.apropos-content.active { display:block; animation:fadeUp .4s ease; }
.apropos-content p { font-family:'Lora',serif; font-size:.97rem; color:var(--text2); line-height:1.85; margin-bottom:.7rem; text-align:justify; }
.values-list { list-style:none; }
.values-list li {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  padding: .6rem 0;
  border-bottom: 1px solid var(--cream2);
  font-family: 'Lora', serif;
  font-size: .95rem;
  color: var(--text2);
  line-height: 1.6;

}

.values-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  margin-top: .45rem;
  flex-shrink: 0;
}
/* ===== ACTIVITÉS ===== */
#activites { background:var(--cream); }
.activites-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:1.2rem; margin-top:2.5rem; }
.activite-card { background:var(--white); border-radius:14px; padding:1.6rem; border:1px solid rgba(200,146,42,.12); transition:all .4s; position:relative; overflow:hidden; }
.activite-card::before { content:''; position:absolute; inset:0; background:linear-gradient(135deg,var(--green) 0%,var(--green2) 100%); opacity:0; transition:opacity .4s; }
.activite-card:hover { transform:translateY(-5px); box-shadow:0 18px 45px var(--shadow); }
.activite-card:hover::before { opacity:1; }
.activite-card > * { position:relative; z-index:1; }
.activite-card:hover .activite-title,.activite-card:hover .activite-desc,.activite-card:hover .activite-num { color:var(--white); }
.activite-icon-wrap { width:48px; height:48px; border-radius:11px; background:var(--gold3); display:flex; align-items:center; justify-content:center; font-size:1.4rem; margin-bottom:1rem; transition:background .4s; }
.activite-card:hover .activite-icon-wrap { background:rgba(255,255,255,.2); }
.activite-num { font-size:.66rem; color:var(--gold); letter-spacing:.2em; margin-bottom:.1rem; transition:color .4s; }
.activite-title { font-family:'Playfair Display',serif; font-size:1.1rem; font-weight:700; color:var(--text); margin-bottom:.3rem; transition:color .4s; }
.activite-desc { font-family:'Lora',serif; text-align: justify ; font-size:.88rem; color:var(--text2); line-height:1.7; transition:color .4s; }

/* ===== RESPONSABLES ===== */
#responsables { background:var(--white); }
.responsables-grid { display:grid; grid-template-columns:repeat(5,1fr); gap:1.2rem; margin-top:2.5rem; }
.responsable-card { text-align:center; background:var(--cream); border-radius:14px; overflow:hidden; border:1px solid rgba(200,146,42,.12); transition:all .35s; }
.responsable-card:hover { transform:translateY(-4px); box-shadow:0 12px 35px var(--shadow); }
.responsable-photo { width:100%; aspect-ratio:1; overflow:hidden; }
.responsable-photo img { width:100%; height:100%; display:block; }
.responsable-body { padding:1rem; }
.responsable-name { font-family:'Playfair Display',serif; font-size:.97rem; font-weight:700; color:var(--text); margin-bottom:.2rem; }
.responsable-role { font-size:.68rem; letter-spacing:.1em; text-transform:uppercase; color:var(--gold); font-weight:600; }
.responsable-role-roi {
  text-align: center;
  display: block;
  width: 100%; font-size:.68rem; letter-spacing:.1em; text-transform:uppercase; color:var(--gold); font-weight:600;margin-top:.2rem;
}
.mot-coordo { margin-top:2.5rem; padding:2rem 2.1rem; background:linear-gradient(135deg,var(--green) 0%,var(--green2) 100%); border-radius:18px; position:relative; overflow:hidden; }
.mot-coordo::before { content:'"'; font-family:'Playfair Display',serif; font-size:12rem; color:rgba(255,255,255,.07); position:absolute; top:-2.5rem; left:1.2rem; line-height:1; user-select:none; }
.mot-coordo p { font-family:'Lora',serif; font-size:1.1rem; font-style:italic; line-height:1.85; color:rgba(255,255,255,.9); position:relative; z-index:1; }
.mot-coordo-sig { display:flex; align-items:center; gap:.9rem; margin-top:1.2rem; position:relative; z-index:1; }
.mot-coordo-sig-line { width:28px; height:2px; background:var(--gold2); border-radius:2px; }
.mot-coordo-sig span { font-size:.75rem; letter-spacing:.1em; text-transform:uppercase; color:var(--gold2); font-weight:600; }
.mot-coordo-content {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.mot-coordo-texte {
  flex: 1;
  text-align : justify;
}

.mot-coordo-photo {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.photo-cercle {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  border: 2.5px solid #8B6914; /* couleur or royale — à adapter à votre charte */
  overflow: hidden;
}

.photo-cercle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #888;
}

/* Responsive */
@media (max-width: 600px) {
  .mot-coordo-content {
    flex-direction: column-reverse;
    text-align: center;
  }
  .mot-coordo-sig {
    justify-content: center;
  }
}
/* ===== PALAIS ===== */
#palais { background:linear-gradient(160deg,#F3EDE1 0%,#EEF7F1 100%); }
.palais-grid { display:grid; grid-template-columns:1.1fr .9fr; gap:4rem; margin-top:2.5rem; align-items:start; }
.palais-visual { border-radius:18px; overflow:hidden; box-shadow:0 22px 65px rgba(30,94,62,.15); }
.palais-visual svg { width:100%; display:block; }
.palais-cards { display:flex; flex-direction:column; gap:.9rem; }
.palais-card { background:var(--white); border-radius:12px; padding:0.9rem; border-left:4px solid var(--green3); box-shadow:0 3px 16px rgba(30,94,62,.07); transition:all .3s; }
.palais-card:hover { box-shadow:0 6px 25px rgba(30,94,62,.13); transform:translateX(4px); border-left-color:var(--green); }
.palais-card-head { display:flex; align-items:center; gap:.6rem; margin-bottom:.2rem; }
.palais-card-head span { font-size:1.2rem; }
.palais-card-title { font-family:'Playfair Display',serif; font-size:.95rem; font-weight:700; color:var(--text); }
.palais-card p { font-family:'Lora',serif; font-size:.88rem; color:var(--text2); line-height:1.7; text-align:justify; }
.palais-budget { background:var(--white); border-radius:12px; padding:0.9rem; border:2px dashed rgba(200,146,42,.3); }
.palais-budget-title { font-size:.72rem; font-weight:700; letter-spacing:.12em; text-transform:uppercase; color:var(--gold); margin-bottom:1rem; }
.progress-wrap { margin-bottom:.85rem; }
.progress-labels { display:flex; justify-content:space-between; font-size:.76rem; color:var(--text2); margin-bottom:.35rem; }
.progress-bar { height:7px; background:var(--cream2); border-radius:4px; overflow:hidden; }
.progress-fill { height:100%; border-radius:4px; background:linear-gradient(90deg,var(--green),var(--green3)); transition:width 1.5s ease; }
.don-btn { display:block; width:100%; text-align:center; background:var(--gold); color:var(--white); padding:.8rem; border-radius:50px; font-weight:700; font-size:.82rem; letter-spacing:.06em; text-transform:uppercase; text-decoration:none; margin-top:1rem; transition:all .3s; box-shadow:0 5px 18px rgba(200,146,42,.35); }
.don-btn:hover { background:var(--gold2); transform:translateY(-2px); }

/* =====================================================
   ===== GALERIE — Design Premium Éditorial ============
   ===================================================== */
#galerie { background: var(--cream); overflow: visible; }

.galerie-header-wrap {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.galerie-filters {
  display: flex;
  gap: .45rem;
  flex-wrap: wrap;
  align-items: center;
}
.galerie-filter-btn {
  padding: .36rem .85rem;
  border-radius: 50px;
  border: 1.5px solid rgba(200,146,42,.3);
  background: transparent;
  font-family: 'DM Sans', sans-serif;
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text2);
  cursor: pointer;
  transition: all .25s;
}
.galerie-filter-btn:hover,
.galerie-filter-btn.active {
  background: var(--green);
  border-color: var(--green);
  color: var(--white);
  box-shadow: 0 3px 12px rgba(30,94,62,.25);
}

.albums-masonry {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 140px;
  gap: .9rem;
}

.albums-masonry .album-card-wrap:nth-child(1) { grid-column: 1 / 6;  grid-row: 1 / 3; }
.albums-masonry .album-card-wrap:nth-child(2) { grid-column: 6 / 10; grid-row: 1 / 2; }
.albums-masonry .album-card-wrap:nth-child(3) { grid-column: 10 / 13;grid-row: 1 / 2; }
.albums-masonry .album-card-wrap:nth-child(4) { grid-column: 6 / 9;  grid-row: 2 / 3; }
.albums-masonry .album-card-wrap:nth-child(5) { grid-column: 9 / 13; grid-row: 2 / 3; }
.albums-masonry .album-card-wrap:nth-child(6) { grid-column: 1 / 5; }
.albums-masonry .album-card-wrap:nth-child(7) { grid-column: 5 / 9; }
.albums-masonry .album-card-wrap:nth-child(8) { grid-column: 9 / 13; }
.albums-masonry .album-card-wrap:nth-child(9)  { grid-column: 1 / 5; }
.albums-masonry .album-card-wrap:nth-child(10) { grid-column: 5 / 9; }
.albums-masonry .album-card-wrap:nth-child(11) { grid-column: 9 / 13; }

.albums-overflow-zone {
  margin-top: .9rem;
  position: relative;
}

.albums-overflow-zone::after {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 80px; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(251,247,240,.85));
  pointer-events: none;
  border-radius: 0 16px 16px 0;
  z-index: 1;
  opacity: 0;
  transition: opacity .3s;
}
.albums-overflow-zone.has-more::after { opacity: 1; }

.albums-overflow-scroll {
  display: flex;
  gap: .9rem;
  overflow-x: auto;
  overflow-y: visible;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: .6rem;
  scrollbar-width: thin;
  scrollbar-color: var(--green) var(--cream2);
}
.albums-overflow-scroll::-webkit-scrollbar { height: 4px; }
.albums-overflow-scroll::-webkit-scrollbar-track { background: var(--cream2); border-radius: 2px; }
.albums-overflow-scroll::-webkit-scrollbar-thumb { background: var(--green); border-radius: 2px; }

.albums-overflow-scroll .album-card-wrap {
  flex: 0 0 calc(33.333% - .6rem);
  min-width: 260px;
  height: 200px;
  scroll-snap-align: start;
}

.albums-swipe-hint {
  display: flex;
  align-items: center;
  gap: .7rem;
  margin-top: .8rem;
  margin-bottom: .2rem;
  opacity: .55;
  animation: hintPulse 3s ease-in-out infinite;
}
.albums-swipe-hint-label {
  font-size: .65rem;
  color: var(--text2);
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 500;
}
.albums-swipe-hint-bar {
  position: relative;
  height: 3px;
  width: 90px;
  background: var(--cream2);
  border-radius: 2px;
  overflow: hidden;
  flex-shrink: 0;
}
.albums-swipe-hint-fill {
  position: absolute;
  left: 0; top: 0;
  height: 100%;
  width: 40%;
  background: linear-gradient(90deg, var(--green), var(--green3));
  border-radius: 2px;
  animation: scrollSlide 3s ease-in-out infinite;
}
.albums-swipe-hint-arrow {
  display: flex;
  align-items: center;
  color: var(--text2);
}
@keyframes scrollSlide {
  0%   { left: 0;   width: 40%; }
  50%  { left: 60%; width: 40%; }
  100% { left: 0;   width: 40%; }
}
@keyframes hintPulse {
  0%,100% { opacity: .55; }
  50%     { opacity: .88; }
}

.album-card-wrap {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  background: var(--cream2);
  box-shadow: 0 4px 24px rgba(30,94,62,.1);
  transition:
    transform .5s cubic-bezier(.22,1,.36,1),
    box-shadow .5s cubic-bezier(.22,1,.36,1);
  display: flex;
  flex-direction: column;
}
.album-card-wrap:hover {
  transform: translateY(-6px) scale(1.015);
  box-shadow: 0 26px 65px rgba(30,94,62,.22);
  z-index: 2;
}

.album-cover-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .75s cubic-bezier(.22,1,.36,1);
}
.album-card-wrap:hover .album-cover-img { transform: scale(1.08); }

.album-cover-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  transition: transform .75s cubic-bezier(.22,1,.36,1);
}
.album-card-wrap:hover .album-cover-svg { transform: scale(1.08); }

.album-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(10,6,2,0) 20%,
    rgba(10,6,2,.45) 65%,
    rgba(10,6,2,.9) 100%
  );
}

.album-count {
  position: absolute;
  top: .8rem;
  right: .8rem;
  z-index: 3;
  background: rgba(255,255,255,.16);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--white);
  border-radius: 50px;
  padding: .2rem .65rem;
  font-size: .6rem;
  font-weight: 700;
  border: 1px solid rgba(255,255,255,.25);
  letter-spacing: .05em;
  display: flex;
  align-items: center;
  gap: .3rem;
}
.album-count-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--gold2);
  display: inline-block;
  animation: pulse 2.2s infinite;
}

.album-info {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 1.2rem 1.1rem 1rem;
  z-index: 2;
  transform: translateY(3px);
  transition: transform .4s cubic-bezier(.22,1,.36,1);
}
.album-card-wrap:hover .album-info { transform: translateY(0); }

.album-tag-row {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: .4rem;
}
.album-type-badge {
  display: inline-flex;
  align-items: center;
  background: var(--gold);
  color: var(--white);
  padding: .18rem .6rem;
  border-radius: 50px;
  font-size: .56rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.album-year-badge {
  font-size: .58rem;
  color: rgba(255,255,255,.5);
  letter-spacing: .06em;
}

.album-title {
  font-family: 'Playfair Display', serif;
  font-size: .95rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.3;
  text-shadow: 0 1px 8px rgba(0,0,0,.4);
}

.albums-masonry .album-card-wrap:first-child .album-title  { font-size: 1.25rem; }
.albums-masonry .album-card-wrap:first-child .album-info   { padding: 2rem 1.5rem 1.4rem; }
.albums-masonry .album-card-wrap:first-child .album-type-badge { font-size: .62rem; padding: .22rem .7rem; }

.album-open-btn {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(.7);
  z-index: 4;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: rgba(255,255,255,.95);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 28px rgba(0,0,0,.3);
  opacity: 0;
  transition:
    opacity .3s,
    transform .4s cubic-bezier(.22,1,.36,1);
  color: var(--green);
}
.album-card-wrap:hover .album-open-btn {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.galerie-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.6rem 0 0;
}
.galerie-divider-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(200,146,42,.3), transparent);
}
.galerie-divider-label {
  font-size: .65rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text2);
  opacity: .6;
  font-weight: 500;
  white-space: nowrap;
}

.galerie-empty {
  text-align: center;
  padding: 5rem 2rem;
  background: var(--white);
  border-radius: 20px;
  border: 1px dashed rgba(200,146,42,.3);
}
.galerie-empty-icon { font-size: 3.5rem; margin-bottom: 1.2rem; }
.galerie-empty-text {
  font-family: 'Lora', serif;
  color: var(--text2);
  font-size: 1rem;
  line-height: 1.8;
}

@media (max-width: 1024px) {
  .albums-masonry {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 190px;
    gap: .75rem;
  }
  .albums-masonry .album-card-wrap:nth-child(n) {
    grid-column: span 1 !important;
    grid-row: auto !important;
  }
  .albums-overflow-scroll .album-card-wrap {
    flex: 0 0 calc(50% - .45rem);
    min-width: 200px;
    height: 190px;
  }
}
@media (max-width: 640px) {
  .albums-masonry {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 145px;
    gap: .55rem;
  }
  .albums-masonry .album-card-wrap:nth-child(n) {
    grid-column: span 1 !important;
    grid-row: auto !important;
  }
  .album-info { padding: .8rem .8rem .65rem !important; }
  .album-title { font-size: .75rem !important; }
  .album-type-badge { font-size: .52rem !important; }
  .galerie-header-wrap { flex-direction: column; align-items: flex-start; }
  .galerie-filter-btn { font-size: .62rem; padding: .3rem .7rem; }
  .albums-overflow-scroll .album-card-wrap {
    flex: 0 0 78vw;
    min-width: 0;
    height: 160px;
  }
}

/* ── Lightbox galerie ── */
.gallery-lightbox {
  display:none; position:fixed; inset:0; z-index:3000;
  background:rgba(10,6,2,.96); backdrop-filter:blur(10px);
  flex-direction:column;
}
.gallery-lightbox.open { display:flex; animation:lbFade .3s ease; }
@keyframes lbFade { from{opacity:0} to{opacity:1} }

.lb-header {
  display:flex; align-items:center; justify-content:space-between;
  padding:1rem 1.6rem; border-bottom:1px solid rgba(255,255,255,.07);
  flex-shrink:0; gap:1rem;
}
.lb-header-info { flex:1; min-width:0; }
.lb-header-title { font-family:'Playfair Display',serif; font-size:1.05rem; color:var(--white); font-weight:700; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.lb-header-meta { font-size:.68rem; color:rgba(255,255,255,.4); margin-top:.1rem; }

.lb-close {
  width:36px; height:36px; border-radius:50%;
  background:rgba(255,255,255,.1); border:1px solid rgba(255,255,255,.15);
  color:var(--white); cursor:pointer; display:flex; align-items:center; justify-content:center;
  font-size:.95rem; transition:background .2s; flex-shrink:0;
}
.lb-close:hover { background:rgba(255,255,255,.22); }

.lb-body { display:grid; grid-template-columns:190px 1fr; flex:1; overflow:hidden; }

.lb-thumbs {
  border-right:1px solid rgba(255,255,255,.07);
  overflow-y:auto; padding:.9rem .7rem;
  display:flex; flex-direction:column; gap:.55rem;
}
.lb-thumbs::-webkit-scrollbar { width:3px; }
.lb-thumbs::-webkit-scrollbar-thumb { background:rgba(255,255,255,.15); border-radius:2px; }

.lb-thumb {
  border-radius:8px; overflow:hidden; cursor:pointer;
  aspect-ratio:16/10; background:rgba(255,255,255,.04);
  border:2px solid transparent; transition:border-color .2s, transform .2s;
  flex-shrink:0; position:relative;
}
.lb-thumb:hover { transform:scale(1.03); }
.lb-thumb.active { border-color:var(--gold); }
.lb-thumb img,.lb-thumb svg { width:100%; height:100%; object-fit:cover; display:block; }
.lb-thumb-label {
  position:absolute; bottom:0; left:0; right:0;
  background:rgba(0,0,0,.55); padding:.25rem .4rem;
  font-size:.58rem; color:rgba(255,255,255,.8); font-weight:500;
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
.lb-thumb-video-icon {
  width:100%; height:100%;
  display:flex; align-items:center; justify-content:center;
  background:linear-gradient(135deg,#1a1a2e,#16213e);
}
.lb-thumb-doc-icon {
  width:100%; height:100%;
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  gap:4px;
  background:linear-gradient(135deg,#1e3a2f,#2d5a3d);
}
.lb-thumb-ext {
  font-size:.52rem; font-weight:700; letter-spacing:.08em;
  color:rgba(255,255,255,.7);
  background:rgba(255,255,255,.12);
  padding:1px 5px; border-radius:3px;
}

.lb-main {
  display:flex; flex-direction:column;
  align-items:center; justify-content:center;
  position:relative; padding:1.2rem; overflow:hidden;
}
.lb-img-wrap {
  position:relative; display:flex; align-items:center; justify-content:center;
  flex:1; width:100%; overflow:hidden;
}
.lb-img-wrap img {
  max-width:100%; max-height:62vh; border-radius:12px;
  object-fit:contain; box-shadow:0 24px 70px rgba(0,0,0,.55);
  transition:opacity .25s;
}
.lb-img-wrap svg { max-width:100%; max-height:62vh; border-radius:12px; transition:opacity .25s; }
.lb-img-wrap.fading img,
.lb-img-wrap.fading svg,
.lb-img-wrap.fading video,
.lb-img-wrap.fading iframe { opacity:0; }
.lb-img-wrap video {
  max-width:100%; max-height:62vh; border-radius:12px;
  background:#000; outline:none;
  box-shadow:0 24px 70px rgba(0,0,0,.55);
  transition:opacity .25s;
}
.lb-img-wrap iframe {
  width:100%; height:62vh; border-radius:12px; border:none;
  background:#fff; box-shadow:0 24px 70px rgba(0,0,0,.55);
  transition:opacity .25s;
}

.lb-nav {
  position:absolute; top:50%; transform:translateY(-50%);
  width:44px; height:44px; border-radius:50%;
  background:rgba(255,255,255,.1); border:1px solid rgba(255,255,255,.18);
  color:var(--white); cursor:pointer;
  display:flex; align-items:center; justify-content:center;
  transition:background .2s; z-index:2;
}
.lb-nav:hover { background:rgba(255,255,255,.2); }
.lb-nav.prev { left:.6rem; }
.lb-nav.next { right:.6rem; }

.lb-caption { text-align:center; padding:.8rem 2rem 0; flex-shrink:0; }
.lb-caption-text { font-family:'Lora',serif; font-size:.88rem; font-style:italic; color:rgba(255,255,255,.65); line-height:1.6; }
.lb-counter { font-size:.65rem; color:rgba(255,255,255,.3); margin-top:.3rem; letter-spacing:.06em; }

/* =====================================================
   ===== ÉVÉNEMENTS ====================================
   ===================================================== */
#evenements { background: var(--white); }

.ev-scroll-wrap { position:relative; margin-top:2rem; padding:0 52px; }

.ev-arrow {
  position:absolute; top:50%; transform:translateY(-50%);
  width:44px; height:44px; border-radius:50%;
  background:var(--white); border:1.5px solid rgba(30,94,62,.2);
  cursor:pointer; display:flex; align-items:center; justify-content:center;
  box-shadow:0 4px 18px rgba(30,94,62,.15); z-index:10;
  color:var(--green); transition:all .25s;
}
.ev-arrow:hover { background:var(--green); color:var(--white); border-color:var(--green); transform:translateY(-50%) scale(1.06); }
.ev-arrow:disabled { opacity:.3; cursor:not-allowed; pointer-events:none; }
.ev-arrow-left  { left:0; }
.ev-arrow-right { right:0; }

.ev-track-outer { overflow:hidden; border-radius:4px; }
.ev-track { display:flex; gap:1.4rem; transition:transform .5s cubic-bezier(.4,0,.2,1); will-change:transform; }

.event-card {
  flex:0 0 calc(33.333% - .95rem); min-width:0;
  background:var(--cream); border-radius:22px; overflow:hidden;
  box-shadow:0 4px 24px rgba(30,94,62,.09);
  transition:transform .4s cubic-bezier(.22,1,.36,1), box-shadow .4s;
  display:flex; flex-direction:column;
  cursor:pointer;
}
.event-card:hover { transform:translateY(-8px); }

.event-img {
  height:220px;
  position:relative; overflow:hidden; flex-shrink:0;
  background:var(--cream2);
  display:flex; align-items:center; justify-content:center;
}
.event-img svg { width:100%; height:100%; display:block; }
.event-cover-img {
  width:100%; height:100%;
  display:block;
  object-fit:contain;
  object-position:center;
  transition:transform .6s cubic-bezier(.22,1,.36,1);
}
.event-card:hover .event-cover-img { transform:scale(1.03); }

.event-badge {
  position:absolute; top:1rem; left:1rem;
  padding:.32rem .9rem; border-radius:50px;
  font-size:.62rem; font-weight:700;
  letter-spacing:.1em; text-transform:uppercase;
  box-shadow:0 3px 12px rgba(0,0,0,.15);
  backdrop-filter:blur(6px);
}
.event-badge--upcoming { background:rgba(255,255,255,.95); color:var(--green); }
.event-badge--ongoing  { background:rgba(232,184,75,.95);  color:#5c3a1e; }
.event-badge--past     { background:rgba(80,80,80,.85);    color:rgba(255,255,255,.9); }

.event-body { padding:1.6rem 1.6rem 1.8rem; display:flex; flex-direction:column; flex:1; }
.event-meta {
  font-size:.68rem; color:var(--gold); letter-spacing:.08em;
  text-transform:uppercase; margin-bottom:.65rem; font-weight:600;
  display:flex; align-items:center; gap:.35rem; flex-wrap:wrap;
}
.event-title {
  font-family:'Playfair Display',serif; font-size:1.15rem; font-weight:700;
  color:var(--text); margin-bottom:.7rem; line-height:1.35;
}
.event-desc {
  font-family:'Lora',serif; font-size:.9rem; color:var(--text2);
  line-height:1.8; text-align:justify; flex:1;
}
.event-desc-clamp {
  display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical;
  overflow:hidden; line-clamp:3;
}
.event-read-more {
  margin-top:.9rem; font-size:.76rem; font-weight:700;
  color:var(--green); letter-spacing:.04em;
  transition:color .2s, letter-spacing .2s;
  align-self:flex-start;
}
.event-card:hover .event-read-more { color:var(--gold); letter-spacing:.08em; }

.ev-progress-wrap {
  height:3px; background:var(--cream2); border-radius:2px;
  margin-top:1.4rem; overflow:hidden;
}
.ev-progress-fill {
  height:100%;
  background:linear-gradient(90deg,var(--green),var(--green3));
  border-radius:2px; transition:width .5s cubic-bezier(.4,0,.2,1);
}

.ev-dots { display:flex; justify-content:center; gap:6px; margin-top:.9rem; }
.ev-dot {
  width:7px; height:7px; border-radius:50%; background:var(--cream2);
  border:none; cursor:pointer; transition:all .3s; padding:0;
}
.ev-dot.active { background:var(--green); transform:scale(1.35); }

.events-empty {
  text-align:center; padding:4rem 2rem;
  background:var(--cream); border-radius:16px;
  border:1px dashed rgba(200,146,42,.3); margin-top:2rem;
}
.events-empty-icon { font-size:3rem; margin-bottom:1rem; }
.events-empty-text { font-family:'Lora',serif; color:var(--text2); font-size:.97rem; line-height:1.7; }

/* ===== MODAL ÉVÉNEMENT ===== */
.event-modal-overlay {
  display:none; position:fixed; inset:0;
  background:rgba(42,31,20,.6); backdrop-filter:blur(7px);
  z-index:2000; align-items:center; justify-content:center; padding:1.5rem;
}
.event-modal-overlay.open { display:flex; }

.event-modal-box {
  background:var(--white); border-radius:22px; overflow:hidden;
  max-width:680px; width:100%;
  box-shadow:0 32px 80px rgba(30,94,62,.22);
  animation:scaleIn .3s cubic-bezier(.22,1,.36,1);
  max-height:92vh; overflow-y:auto;
  position:relative;
}
@keyframes scaleIn { from{opacity:0;transform:scale(.94)} to{opacity:1;transform:scale(1)} }

.event-modal-img-wrap {
  width:100%;
  height:340px;
  overflow:hidden;
  position:relative;
  background:var(--cream2);
  display:flex;
  align-items:center;
  justify-content:center;
}
.event-modal-img-wrap img {
  width:100%;
  height:100%;
  object-fit:contain;
  object-position:center;
  display:block;
  background:var(--cream2);
}
.event-modal-img-wrap svg { width:100%; height:100%; display:block; }

.event-modal-close {
  position:absolute; top:.9rem; right:.9rem;
  width:34px; height:34px; border-radius:50%;
  background:rgba(255,255,255,.9); border:none; cursor:pointer;
  color:var(--text); font-size:.9rem; z-index:5;
  display:flex; align-items:center; justify-content:center;
  box-shadow:0 2px 10px rgba(0,0,0,.15); transition:background .2s;
}
.event-modal-close:hover { background:var(--white); }

.event-modal-content { padding:2rem 2.4rem 2.4rem; }
.event-modal-title { font-family:'Playfair Display',serif; font-size:1.4rem; font-weight:700; color:var(--text); margin-bottom:.6rem; line-height:1.3; }
.event-modal-meta { font-size:.72rem; color:var(--gold); font-weight:600; letter-spacing:.08em; text-transform:uppercase; margin-bottom:1.2rem; padding-bottom:1rem; border-bottom:1px solid var(--cream2); }
.event-modal-desc { font-family:'Lora',serif; font-size:1rem; color:var(--text2); line-height:1.95; text-align:justify; }

/* ===== SOUTENIR ===== */
#soutenir { background:linear-gradient(135deg,var(--green) 0%,var(--green2) 100%); }
#soutenir::before { content:''; position:absolute; inset:0; background-image:radial-gradient(circle at 20% 50%,rgba(255,255,255,.05) 0%,transparent 50%),radial-gradient(circle at 80% 20%,rgba(200,146,42,.1) 0%,transparent 40%); }
.soutenir-header { position:relative; z-index:1; }
#soutenir .section-tag { color:var(--gold2); }
#soutenir .section-tag::before { background:var(--gold2); }
#soutenir .section-title { color:var(--white); }
#soutenir .section-desc { color:rgba(255,255,255,.75); }
.soutenir-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:1.2rem; margin-top:2.5rem; position:relative; z-index:1; }
.soutenir-card { background:rgba(255,255,255,.1); backdrop-filter:blur(10px); border:1px solid rgba(255,255,255,.2); border-radius:16px; padding:2rem 1.8rem; text-align:center; transition:all .4s; }
.soutenir-card:hover { background:rgba(255,255,255,.18); transform:translateY(-5px); box-shadow:0 18px 45px rgba(0,0,0,.15); }
.soutenir-icon { font-size:2.2rem; margin-bottom:1rem; display:block; }
.soutenir-title { font-family:'Playfair Display',serif; font-size:1.15rem; font-weight:700; color:var(--white); margin-bottom:.65rem; }
.soutenir-desc { font-family:'Lora',serif; font-size:.9rem; color:rgba(255,255,255,.75); line-height:1.75; margin-bottom:1.3rem; }
.soutenir-btn { display:inline-block; padding:.65rem 1.6rem; background:var(--gold); color:var(--white); font-size:.78rem; font-weight:700; letter-spacing:.08em; text-transform:uppercase; text-decoration:none; border-radius:50px; transition:all .3s; box-shadow:0 5px 18px rgba(200,146,42,.35); }
.soutenir-btn:hover { background:var(--gold2); transform:translateY(-2px); }

/* ===== CONTACTS ===== */
#contacts { background:var(--cream); }
.contacts-grid { display:grid; grid-template-columns:1fr 1fr; gap:4rem; margin-top:2.5rem; }
.contact-form-card { background:var(--white); border-radius:18px; padding:2.2rem; box-shadow:0 8px 35px var(--shadow); }
.contact-form { display:flex; flex-direction:column; gap:1rem; }
.form-row { display:grid; grid-template-columns:1fr 1fr; gap:.9rem; }
.form-label { font-size:.7rem; font-weight:600; letter-spacing:.08em; text-transform:uppercase; color:var(--text2); display:block; margin-bottom:.35rem; }
.form-input,.form-textarea { width:100%; background:var(--cream); border:1.5px solid transparent; border-radius:9px; padding:.8rem .95rem; font-family:'DM Sans',sans-serif; font-size:.88rem; color:var(--text); transition:all .3s; outline:none; }
.form-input:focus,.form-textarea:focus { background:var(--white); border-color:var(--green); box-shadow:0 0 0 3px rgba(30,94,62,.1); }
.form-textarea { resize:vertical; min-height:110px; }
.form-submit { background:var(--green); color:var(--white); padding:.9rem 1.8rem; border-radius:50px; font-weight:700; font-size:.85rem; letter-spacing:.05em; border:none; cursor:pointer; transition:all .3s; box-shadow:0 6px 20px rgba(30,94,62,.3); }
.form-submit:hover { background:var(--green2); transform:translateY(-2px); }
.contact-info-side { padding-top:.8rem; }
.contact-info-title { font-family:'Playfair Display',serif; font-size:1.5rem; font-weight:700; color:var(--text); margin-bottom:.4rem; }
.contact-info-sub { font-family:'Lora',serif; font-size:.95rem; color:var(--text2); line-height:1.75; margin-bottom:1.5rem; }
.contact-item { display:flex; gap:.9rem; align-items:flex-start; padding:.85rem 0; border-bottom:1px solid var(--cream2); }
.contact-icon { width:40px; height:40px; border-radius:9px; background:var(--gold3); display:flex; align-items:center; justify-content:center; font-size:1rem; flex-shrink:0; }
.contact-text strong { display:block; font-size:.68rem; letter-spacing:.08em; text-transform:uppercase; color:var(--green); font-weight:700; margin-bottom:.18rem; }
.contact-text span { font-family:'Lora',serif; font-size:.92rem; color:var(--text2); }
.social-links { display:flex; gap:.6rem; margin-top:1.7rem; }
@media (max-width: 640px) {
  .social-links { margin-top:0.7rem; }
}
.social-link { width:38px; height:38px; border-radius:9px; background:var(--green); color:var(--white); display:flex; align-items:center; justify-content:center; font-size:.82rem; font-weight:700; text-decoration:none; transition:all .3s; box-shadow:0 3px 10px rgba(30,94,62,.25); }
.social-link:hover { background:var(--gold); transform:translateY(-2px); }

/* ===== FOOTER ===== */
footer { background:var(--text); padding:1.5rem 5rem; display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:.9rem; }
.footer-logo { font-family:'Playfair Display',serif; font-size:1.1rem; font-weight:700; color:var(--gold); }
.footer-copy { font-size:.73rem; color:rgba(255,255,255,.35); letter-spacing:.04em; }
.footer-links { display:flex; gap:1.3rem; }
.footer-links a { font-size:.73rem; color:rgba(255,255,255,.4); text-decoration:none; transition:color .3s; }
.footer-links a:hover { color:var(--gold); }

/* =====================================================
   ===== RESPONSIVE ====================================
   ===================================================== */
   @media (max-width: 640px) {
    .contact-form-card {
      padding: 1.2rem;
      border-radius: 14px;
    }
    .contact-form {
      gap: .75rem;
    }
    .form-input, .form-textarea {
      padding: .65rem .8rem;
    }
  }
@media (max-width:1024px) {
  nav { padding:.85rem 2rem; }
  nav.scrolled { padding:.55rem 2rem; }
  .nav-links { display:none; }
  .hamburger { display:flex; }
  #accueil { grid-template-columns:1fr; }
  .hero-right { display: none; }
  .hero-left { padding:3.5rem 2rem 2.5rem; }
  .apropos-grid,.palais-grid,.contacts-grid { grid-template-columns:1fr; gap:2.5rem; }
  .responsables-grid { grid-template-columns:repeat(2,1fr); }
  .activites-grid,.soutenir-grid { grid-template-columns:1fr 1fr; }

  .event-card { flex:0 0 calc(50% - .7rem); }
  .ev-scroll-wrap { padding:0 44px; }
  .event-img { height:200px; }
  .container { padding:0 1.8rem; }
  footer { flex-direction:column; text-align:center; padding:1.5rem 2rem; }

  .event-modal-img-wrap { height:260px; }
}

@media (max-width:768px) {
  .event-card { flex:0 0 calc(80vw); }
  .ev-scroll-wrap { padding:0 36px; }
  .event-img { height:180px; }
  .lb-body { grid-template-columns:1fr; grid-template-rows:1fr auto; }
  .lb-thumbs { flex-direction:row; overflow-x:auto; overflow-y:hidden; padding:.7rem .75rem; gap:.5rem; border-right:none; border-top:1px solid rgba(255,255,255,.07); order:2; max-height:90px; }
  .lb-thumb { width:75px; height:52px; flex-shrink:0; }
  .lb-main { order:1; padding:.8rem .5rem; }
  .lb-img-wrap img,.lb-img-wrap svg,.lb-img-wrap video,.lb-img-wrap iframe { max-height:48vh; }
  .lb-img-wrap iframe { height:48vh; }
  .lb-nav.prev { left:.3rem; }
  .lb-nav.next { right:.3rem; }
  .event-modal-box { max-width:100%; }
  .event-modal-img-wrap { height:220px; }
  .event-modal-content { padding:1.4rem 1.6rem 1.8rem; }
}

@media (max-width:640px) {
  /* ── Hero section passe en flex colonne ── */
  #accueil {
    display: flex;
    flex-direction: column;
    background: var(--cream);
    padding-top: 64px;
  }

  /* Eyebrow flottant (hors hero-left) visible en mobile */
  section#accueil > .hero-eyebrow {
    display: inline-flex;
    order: -2;
    margin: 1rem 1.1rem .2rem;
    font-size: .58rem;
    align-self: flex-start;
    margin-bottom: 3.5em;
  }

  /* Eyebrow dans hero-left masqué en mobile */
  .hero-eyebrow-desktop {
    display: none !important;
  }

  /* Image visible et en second */
  .hero-right {
    display: flex !important;
    justify-content: center;
    order: -1;
    align-items: center;
    width: 100%;
    padding: 0;
  }

  .hero-art-wrap {
    max-width: 200px;
    width: 200px;
    margin: 0 auto;
  }

  .hero-art-main {
    width: 200px;
    height: auto;
    overflow: visible;
    margin-bottom: 0;
  }

  .hero-art-main img {
    width: 200px;
    height: auto;
    display: block;
    margin: 0 auto;
  }

  .hero-art-badge { display: none; }
  .hero-art-tag   { display: none; }

  /* Contenu texte en dernier */
  .hero-left {
    order: 0;
    padding: 1rem 1.1rem 2rem;
    margin-top: 0 !important;
  }

  .hero-title {
    font-size: clamp(2rem, 8.5vw, 2.5rem);
    white-space: normal;
    overflow: visible;
    margin-top: 0;
    margin-bottom: .2rem;
  }

  .hero-title .line1 { display: block; white-space: nowrap; margin-top: 1rem; }
  .hero-title .line2 { display: block; white-space: nowrap;  }

  .hero-desc {
    font-size: .85rem;
    margin-top: .3rem;
    margin-bottom: .8rem;
  }

  .hero-actions {
    flex-wrap: nowrap;
    gap: .2rem;
    margin-top: 2rem;
  }

  .btn-green,
  .btn-gold-outline {
    flex: 1;
    text-align: center;
    font-size: .68rem;
    white-space: nowrap;
    justify-content: center;
    min-width: 0;
  }

  section { padding:2.5rem 0; }
  .container { padding:0 1.1rem; }
  .activites-grid,.soutenir-grid,.responsables-grid { grid-template-columns:1fr; }

  .form-row { grid-template-columns:1fr; }
  .ev-scroll-wrap { padding:0; }
  .ev-arrow { display:none; }
  .ev-track-outer { overflow-x:auto; scroll-snap-type:x mandatory; -webkit-overflow-scrolling:touch; }
  .ev-track-outer::-webkit-scrollbar { display:none; }
  .ev-track { transition:none; }
  .event-card { flex:0 0 82vw; scroll-snap-align:start; }
  .event-img { height:160px; }
  .lb-header-title { font-size:.9rem; }
  .event-modal-box { border-radius:16px; }
  .event-modal-img-wrap { height:190px; }
  .event-modal-content { padding:1.2rem 1.4rem 1.6rem; }
}

/* ═══════════════════════════════════════════
   PV2 — IMAGE PALAIS + LIGHTBOX
═══════════════════════════════════════════ */

.pv2-left {
  position: relative;
  width: 100%;
  height: 85vh;
  overflow: hidden;
  border-radius: 16px;
  cursor: zoom-in;
}

.pv2-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  display: block;
  background: #f5f5f5;
  transform: scale(1.02);
  transition: transform 1.4s ease;
}

.pv2-left:hover .pv2-img {
  transform: scale(1);
}

.pv2-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.60) 0%,
    rgba(0, 0, 0, 0.10) 45%,
    transparent 100%
  );
  border-radius: 16px;
  pointer-events: none;
}

.pv2-badge {
  position: absolute;
  bottom: 28px;
  left: 28px;
  right: 28px;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  pointer-events: none;
}

.pv2-left.pv2-visible .pv2-badge {
  opacity: 1;
  transform: translateY(0);
}

.pv2-badge-tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  margin: 0 0 6px;
}

.pv2-badge-title {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  line-height: 1.35;
  margin: 0;
}

.pv2-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.pv2-lightbox.pv2-lightbox-open {
  opacity: 1;
  pointer-events: all;
}

.pv2-lightbox-bg {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  cursor: zoom-out;
}

.pv2-lightbox-content {
  position: relative;
  z-index: 1;
  transform: scale(0.9);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.pv2-lightbox.pv2-lightbox-open .pv2-lightbox-content {
  transform: scale(1);
}

.pv2-lightbox-img {
  display: block;
  max-width: 92vw;
  max-height: 88vh;
  width: auto;
  height: auto;
  border-radius: 12px;
  object-fit: contain;
}

.pv2-lightbox-close {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fff;
  border: none;
  font-size: 14px;
  font-weight: 700;
  color: #111;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s;
  z-index: 2;
  line-height: 1;
}

.pv2-lightbox-close:hover {
  background: #f0f0f0;
  transform: scale(1.12);
}

@media (max-width: 768px) {
  .pv2-left {
    height: 55vw;
    min-height: 260px;
    border-radius: 12px;
  }
  .pv2-badge-title { font-size: 16px; }
  .pv2-lightbox-img {
    max-width: 96vw;
    max-height: 80vh;
  }
}