/* ============================================================
   PCA — Parti de la Concertation et de l'Action | partipca.com
   Charte officielle : Vert #3CAD3C | Or #D4A017 | Beige logo #E8C97B
   ============================================================ */

:root {
  --green:      #3CAD3C;   /* vert vif PCA (lettres logo) */
  --green-dark: #267A26;   /* vert foncé (navbar, fonds sombres) */
  --green-deep: #1A5E1A;   /* vert profond (dégradés) */
  --gold:       #D4A017;   /* or/ambre PCA (épi de blé) */
  --gold-light: #E8C97B;   /* beige doré (fond logo) */
  --dark:       #1a1a1a;
  --grey:       #4a4a4a;
  --light:      #f8f4e8;   /* beige très clair, rappel charte */
  --white:      #ffffff;
  --shadow:     0 4px 20px rgba(0,0,0,.12);
  --radius:     8px;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--grey);
  line-height: 1.7;
  background: var(--white);
}

/* ── Typographie ──────────────────────────────────────────── */
h1,h2,h3,h4,h5 { font-weight: 700; color: var(--dark); line-height: 1.25; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.25rem; }
p  { margin-bottom: 1rem; }
a  { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }

.section-title {
  text-align: center;
  margin-bottom: .5rem;
  color: var(--green);
}
.section-subtitle {
  text-align: center;
  color: var(--grey);
  max-width: 640px;
  margin: 0 auto 3rem;
  font-size: 1.05rem;
}
.separator {
  width: 60px; height: 4px;
  background: var(--gold);
  border-radius: 2px;
  margin: .75rem auto 1.5rem;
}

/* ── Layout ───────────────────────────────────────────────── */
.container { max-width: 1140px; margin: 0 auto; padding: 0 1.5rem; }
section    { padding: 5rem 0; }
section:nth-child(even) { background: var(--light); }

/* ── Boutons ──────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: .75rem 2rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all .25s;
  border: 2px solid transparent;
  text-decoration: none !important;
}
.btn-primary {
  background: var(--gold);
  color: var(--dark);
  border-color: var(--gold);
}
.btn-primary:hover {
  background: #b88c14;
  border-color: #b88c14;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(252,209,22,.4);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}
.btn-outline:hover {
  background: var(--white);
  color: var(--dark);
  transform: translateY(-2px);
}
.btn-green {
  background: var(--green);
  color: var(--white);
  border-color: var(--green);
}
.btn-green:hover {
  background: var(--green-dark);
  border-color: var(--green-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(60,173,60,.35);
}

/* ── Navigation ───────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(38,122,38,.97);
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 12px rgba(0,0,0,.2);
  transition: all .3s;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: .75rem;
  text-decoration: none !important;
}
.nav-logo img {
  height: 48px;
  width: auto;
  object-fit: contain;
}
.nav-logo-text {
  display: flex;
  flex-direction: column;
}
.nav-logo-text .party { font-weight: 800; font-size: 1.3rem; color: var(--gold); letter-spacing: 1px; }
.nav-logo-text .tagline { font-size: .7rem; color: rgba(255,255,255,.8); letter-spacing: .5px; }

.nav-links {
  display: flex;
  gap: 1.75rem;
  list-style: none;
  align-items: center;
}
.nav-links a {
  color: rgba(255,255,255,.9);
  font-weight: 500;
  font-size: .95rem;
  transition: color .2s;
  text-decoration: none !important;
}
.nav-links a:hover, .nav-links a.active { color: var(--gold); }
.nav-links .btn { padding: .5rem 1.25rem; font-size: .9rem; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: .5rem;
}
.hamburger span {
  display: block;
  width: 25px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all .3s;
}

/* ── Hero ─────────────────────────────────────────────────── */
#hero {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--green-deep) 0%, var(--green) 50%, var(--green-dark) 100%);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 100px 0 4rem;
}
#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('images/hero-bg.jpg') center/cover no-repeat;
  opacity: .15;
}
.hero-pattern {
  position: absolute;
  top: -100px; right: -100px;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: var(--gold);
  opacity: .05;
}
.hero-pattern-2 {
  position: absolute;
  bottom: -150px; left: -80px;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: var(--gold);
  opacity: .05;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-tag {
  display: inline-block;
  background: var(--gold);
  color: var(--dark);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: .35rem 1rem;
  border-radius: 20px;
  margin-bottom: 1.5rem;
}
.hero-text h1 { color: var(--white); margin-bottom: 1rem; }
.hero-text .slogan {
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 1rem;
  font-style: italic;
}
.hero-text p {
  color: rgba(255,255,255,.85);
  font-size: 1.1rem;
  margin-bottom: 2rem;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-stats {
  display: flex;
  gap: 2rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,.2);
}
.stat-item .number { font-size: 2rem; font-weight: 800; color: var(--gold); }
.stat-item .label  { font-size: .8rem; color: rgba(255,255,255,.7); text-transform: uppercase; letter-spacing: .5px; }

.hero-photo {
  position: relative;
  display: flex;
  justify-content: center;
}
.photo-frame {
  width: 380px;
  height: 480px;
  border-radius: 12px;
  overflow: hidden;
  border: 4px solid var(--gold);
  box-shadow: 0 20px 60px rgba(0,0,0,.4);
  position: relative;
}
.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}
.photo-placeholder {
  width: 100%;
  height: 100%;
  background: rgba(255,255,255,.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.5);
  font-size: .9rem;
  gap: .5rem;
}
.photo-placeholder svg { width: 64px; height: 64px; opacity: .4; }
.photo-badge {
  position: absolute;
  bottom: -20px; left: 50%; transform: translateX(-50%);
  background: var(--gold);
  color: var(--dark);
  padding: .6rem 1.5rem;
  border-radius: 30px;
  font-weight: 700;
  font-size: .85rem;
  white-space: nowrap;
  box-shadow: 0 4px 15px rgba(0,0,0,.3);
}

/* ── Section Candidat ─────────────────────────────────────── */
#candidat .candidat-grid {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 4rem;
  align-items: start;
}
.candidat-photo {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 3px solid var(--green);
}
.candidat-photo img { width: 100%; display: block; }
.candidat-photo-placeholder {
  background: var(--light);
  height: 480px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--grey);
  gap: .5rem;
}
.candidat-photo-placeholder svg { width: 64px; height: 64px; opacity: .3; }

.values-list {
  list-style: none;
  margin: 1.5rem 0;
}
.values-list li {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .6rem 0;
  border-bottom: 1px solid rgba(0,0,0,.06);
  font-weight: 500;
}
.values-list li::before {
  content: '';
  display: block;
  width: 10px; height: 10px;
  background: var(--gold);
  border-radius: 50%;
  flex-shrink: 0;
}
.timeline {
  border-left: 3px solid var(--green);
  padding-left: 1.5rem;
  margin: 1.5rem 0;
}
.timeline-item {
  position: relative;
  margin-bottom: 1.5rem;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: -1.94rem; top: 5px;
  width: 12px; height: 12px;
  background: var(--gold);
  border-radius: 50%;
  border: 2px solid var(--green);
}
.timeline-item .year { font-size: .8rem; color: var(--green); font-weight: 700; text-transform: uppercase; }
.timeline-item h4 { color: var(--dark); margin: .2rem 0 .3rem; }
.timeline-item p  { margin: 0; font-size: .95rem; }

/* ── Programme ────────────────────────────────────────────── */
#programme { background: var(--light); }
.programme-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.programme-card {
  background: var(--white);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--green);
  transition: transform .25s, box-shadow .25s;
}
.programme-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 35px rgba(0,0,0,.15);
}
.card-icon {
  width: 56px; height: 56px;
  background: linear-gradient(135deg, var(--green), var(--green));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}
.card-icon svg { width: 28px; height: 28px; color: var(--white); }
.programme-card h3 { color: var(--green); margin-bottom: .75rem; }
.programme-card ul {
  list-style: none;
  padding: 0;
}
.programme-card ul li {
  padding: .4rem 0;
  border-bottom: 1px solid var(--light);
  font-size: .95rem;
  padding-left: 1rem;
  position: relative;
}
.programme-card ul li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: 700;
}
.programme-cta {
  text-align: center;
  margin-top: 3rem;
}

/* ── Engagement Social ────────────────────────────────────── */
#social .social-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}
.social-card {
  text-align: center;
  padding: 2rem 1.5rem;
  background: var(--white);
  border-radius: 12px;
  box-shadow: var(--shadow);
  transition: transform .25s;
}
.social-card:hover { transform: translateY(-4px); }
.social-card .icon-wrap {
  width: 70px; height: 70px;
  background: linear-gradient(135deg, var(--gold), #e8bc00);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}
.social-card .icon-wrap svg { width: 32px; height: 32px; color: var(--dark); }
.social-card h3 { color: var(--green); margin-bottom: .5rem; font-size: 1rem; }
.social-card p  { font-size: .9rem; margin: 0; }

/* ── Galerie ──────────────────────────────────────────────── */
#galerie { background: var(--dark); }
#galerie h2 { color: var(--white); }
#galerie .separator { background: var(--gold); }
#galerie .section-subtitle { color: rgba(255,255,255,.6); }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: 220px 220px;
  gap: 12px;
}
.gallery-item {
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255,255,255,.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.3);
  font-size: .85rem;
  cursor: pointer;
  transition: opacity .25s;
}
.gallery-item:hover { opacity: .85; }
.gallery-item.large { grid-column: span 2; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; }

/* ── Actualités ───────────────────────────────────────────── */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}
.news-card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .25s, box-shadow .25s;
}
.news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 35px rgba(0,0,0,.15);
}
.news-thumb {
  height: 200px;
  background: var(--light);
  overflow: hidden;
}
.news-thumb img { width: 100%; height: 100%; object-fit: cover; }
.news-thumb-placeholder {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--grey);
  opacity: .4;
}
.news-body { padding: 1.5rem; }
.news-cat {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: .5rem;
}
.news-body h3 { color: var(--dark); font-size: 1.05rem; margin-bottom: .5rem; }
.news-body p  { font-size: .9rem; margin-bottom: 1rem; }
.news-date  { font-size: .8rem; color: #999; }

/* ── Rejoindre ────────────────────────────────────────────── */
#rejoindre {
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  color: var(--white);
}
#rejoindre h2 { color: var(--white); }
#rejoindre .section-subtitle { color: rgba(255,255,255,.8); }
.join-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.join-form-card {
  background: var(--white);
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: 0 20px 50px rgba(0,0,0,.3);
}
.join-form-card h3 { color: var(--green); margin-bottom: 1.5rem; }
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: .4rem;
  color: var(--dark);
  font-size: .9rem;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: .75rem 1rem;
  border: 2px solid #e0e0e0;
  border-radius: var(--radius);
  font-size: .95rem;
  font-family: inherit;
  transition: border-color .2s;
  background: var(--white);
  color: var(--dark);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--green);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.join-benefits { color: rgba(255,255,255,.9); }
.join-benefits h3 { color: var(--gold); margin-bottom: 1.5rem; }
.benefit-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  align-items: flex-start;
}
.benefit-icon {
  width: 44px; height: 44px;
  background: rgba(252,209,22,.15);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.benefit-icon svg { width: 22px; height: 22px; color: var(--gold); }
.benefit-item h4 { color: var(--white); margin-bottom: .25rem; font-size: 1rem; }
.benefit-item p  { font-size: .9rem; opacity: .8; margin: 0; }

/* ── Carte Thiès Ouest ────────────────────────────────────── */
.join-map-wrap {
  border-radius: 12px;
  overflow: hidden;
  border: 3px solid #1a5c2a;
  box-shadow: 0 8px 32px rgba(26,92,42,.15);
  background: #fff;
  display: flex;
  flex-direction: column;
}
.map-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .7rem 1rem;
  background: #1a5c2a;
  color: #fff;
}
.map-top-title { font-weight: 700; font-size: .88rem; }
.map-top-count {
  font-size: .78rem;
  background: rgba(255,255,255,.2);
  padding: .2rem .65rem;
  border-radius: 999px;
}
#map-thies-ouest {
  height: 520px;
  width: 100%;
}
.map-bottom-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .6rem 1rem;
  padding: .6rem 1rem;
  background: #f4f8f4;
  border-top: 1px solid #d0e8d0;
  font-size: .78rem;
  color: #444;
}
.legend-item { display: flex; align-items: center; gap: 5px; }
.ldot {
  display: inline-block;
  width: 11px; height: 11px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,.25);
  flex-shrink: 0;
}
.map-total { margin-left: auto; font-weight: 700; color: #1a5c2a; }

/* Leaflet popup PCA */
.pca-popup .leaflet-popup-content-wrapper {
  border-radius: 10px;
  padding: 0;
  overflow: hidden;
  box-shadow: 0 6px 24px rgba(0,0,0,.18);
  border: 1px solid #e0e0e0;
}
.pca-popup .leaflet-popup-content { margin: 0; width: auto !important; }
.pca-popup .leaflet-popup-tip-container { display: block; }
.pca-popup .leaflet-popup-tip { background: #1a5c2a; }
.pca-popup .leaflet-popup-close-button { color: rgba(255,255,255,.8); top: 6px; right: 8px; font-size: 16px; }

@media (max-width: 900px) {
  .join-grid { grid-template-columns: 1fr; }
  #map-thies-ouest { height: 380px; }
}

/* ── Contact ──────────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}
.contact-info h3 { color: var(--green); margin-bottom: 1.5rem; }
.contact-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  align-items: flex-start;
}
.contact-item .c-icon {
  width: 44px; height: 44px;
  background: linear-gradient(135deg, var(--green), var(--green));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-item .c-icon svg { width: 22px; height: 22px; color: var(--white); }
.contact-item h4 { color: var(--dark); margin-bottom: .2rem; font-size: .95rem; }
.contact-item p  { margin: 0; font-size: .95rem; }
.social-links { display: flex; gap: .75rem; margin-top: 1.5rem; }
.social-link {
  width: 42px; height: 42px;
  background: var(--green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s, transform .2s;
}
.social-link:hover { background: var(--gold); transform: translateY(-2px); }
.social-link svg { width: 20px; height: 20px; color: var(--white); }
.contact-form-card {
  background: var(--light);
  padding: 2.5rem;
  border-radius: 16px;
}
.contact-form-card h3 { color: var(--green); margin-bottom: 1.5rem; }

/* ── Footer ───────────────────────────────────────────────── */
footer {
  background: var(--dark);
  color: rgba(255,255,255,.7);
  padding: 3.5rem 0 1.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}
.footer-brand .party { font-weight: 800; font-size: 1.5rem; color: var(--gold); }
.footer-brand p { font-size: .9rem; margin-top: .75rem; opacity: .7; max-width: 260px; }
.footer-col h4 { color: var(--white); margin-bottom: 1rem; font-size: .95rem; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: .5rem; }
.footer-links a { color: rgba(255,255,255,.6); font-size: .9rem; transition: color .2s; }
.footer-links a:hover { color: var(--gold); text-decoration: none; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .85rem;
  opacity: .6;
}
.footer-flag { display: flex; gap: 4px; align-items: center; }
.flag-band { width: 8px; height: 18px; border-radius: 2px; }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 1024px) {
  .programme-grid { grid-template-columns: repeat(2, 1fr); }
  .social-grid    { grid-template-columns: repeat(2, 1fr); }
  .footer-grid    { grid-template-columns: 1fr 1fr; }
  .gallery-grid   { grid-template-columns: repeat(2, 1fr); grid-template-rows: auto; }
  .gallery-item.large { grid-column: span 1; }
}

@media (max-width: 768px) {
  .nav-links { display: none; flex-direction: column; position: absolute; top: 70px; left: 0; right: 0; background: var(--green); padding: 1.5rem; gap: 1rem; box-shadow: 0 8px 20px rgba(0,0,0,.2); }
  .nav-links.open { display: flex; }
  .hamburger { display: flex; }
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-actions { justify-content: center; }
  .hero-stats  { justify-content: center; }
  .hero-photo  { display: none; }
  #candidat .candidat-grid { grid-template-columns: 1fr; }
  .programme-grid { grid-template-columns: 1fr; }
  .social-grid    { grid-template-columns: 1fr 1fr; }
  .join-grid      { grid-template-columns: 1fr; }
  .contact-grid   { grid-template-columns: 1fr; }
  .news-grid      { grid-template-columns: 1fr; }
  .footer-grid    { grid-template-columns: 1fr; }
  .footer-bottom  { flex-direction: column; gap: .5rem; text-align: center; }
  .form-row       { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .social-grid { grid-template-columns: 1fr; }
  .hero-stats  { flex-direction: column; gap: 1rem; }
}

/* ── Utilitaires ──────────────────────────────────────────── */
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }
.badge {
  display: inline-block;
  padding: .3rem .85rem;
  border-radius: 20px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .5px;
}
.badge-green { background: rgba(60,173,60,.12); color: var(--green); }
.badge-gold  { background: rgba(252,209,22,.2); color: #a07800; }

/* ── Barre de progression ─────────────────────────────────── */
#progress-bar {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--gold), #ffb700);
  z-index: 2000;
  transition: width .1s linear;
  border-radius: 0 2px 2px 0;
}

/* ── Animations reveal au scroll ─────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .55s ease, transform .55s ease;
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.section-hidden {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s ease, transform .6s ease;
}
.section-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Spinner bouton ───────────────────────────────────────── */
.btn-spinner {
  display: inline-block;
  width: 14px; height: 14px;
  border: 2px solid rgba(255,255,255,.4);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: spin .6s linear infinite;
  vertical-align: middle;
  margin-right: .4rem;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Lightbox galerie ─────────────────────────────────────── */
#lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .3s ease;
}
#lightbox.lb-open { opacity: 1; }
#lightbox .lb-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.92);
}
#lightbox img {
  position: relative;
  max-width: 90vw;
  max-height: 88vh;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0,0,0,.6);
  transform: scale(.9);
  transition: transform .3s cubic-bezier(.34,1.56,.64,1);
}
#lightbox.lb-open img { transform: scale(1); }
#lightbox .lb-close {
  position: absolute;
  top: 1.25rem; right: 1.25rem;
  background: rgba(255,255,255,.12);
  color: var(--white);
  border: none;
  width: 40px; height: 40px;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
#lightbox .lb-close:hover { background: rgba(255,255,255,.25); }

/* ── Scroll to top */
#scroll-top {
  position: fixed;
  bottom: 2rem; right: 2rem;
  width: 46px; height: 46px;
  background: var(--green);
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 900;
  box-shadow: 0 4px 15px rgba(0,0,0,.3);
  transition: background .2s;
}
#scroll-top:hover { background: var(--green-dark); }
#scroll-top.visible { display: flex; }
#scroll-top svg { width: 20px; height: 20px; color: var(--white); }

/* Notification */
.toast {
  position: fixed;
  bottom: 2rem; left: 50%; transform: translateX(-50%) translateY(100px);
  background: var(--green);
  color: var(--white);
  padding: 1rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  box-shadow: 0 8px 25px rgba(0,0,0,.3);
  transition: transform .4s cubic-bezier(.34,1.56,.64,1);
  z-index: 9999;
  white-space: nowrap;
}
.toast.show { transform: translateX(-50%) translateY(0); }
