/* ============================================
   MISS SÉNÉGAL - Feuille de style principale
   Couleurs du drapeau sénégalais :
   Vert  : #00853F
   Jaune : #FDEF42
   Rouge : #E31B23
   ============================================ */

:root {
  --vert:    #00853F;
  --jaune:   #FDEF42;
  --rouge:   #E31B23;
  --or:      #C9A84C;
  --or-clair:#F0D080;
  --noir:    #0D0D0D;
  --blanc:   #FFFFFF;
  --gris-bg: #F8F6F2;
  --gris:    #6B6B6B;
  --ombre:   0 4px 24px rgba(0,0,0,.12);
  --rayon:   12px;
  --transition: .3s ease;
}

/* ---- RESET & BASE ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Poppins', 'Segoe UI', sans-serif;
  color: var(--noir);
  background: var(--blanc);
  line-height: 1.6;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ---- TYPOGRAPHY ---- */
h1, h2, h3, h4 { font-family: 'Playfair Display', Georgia, serif; line-height: 1.2; }
h1 { font-size: clamp(2.2rem, 6vw, 4.5rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }

/* ---- UTILITAIRES ---- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.section-title {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
}
.section-title span {
  color: var(--or);
  font-style: italic;
}
.section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, var(--vert), var(--or), var(--rouge));
  margin: .8rem auto 0;
  border-radius: 2px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
}
.btn-primary {
  background: linear-gradient(135deg, var(--or), #a07828);
  color: var(--blanc);
  box-shadow: 0 4px 15px rgba(201,168,76,.4);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(201,168,76,.5); }
.btn-outline {
  border-color: var(--blanc);
  color: var(--blanc);
  background: transparent;
}
.btn-outline:hover { background: var(--blanc); color: var(--noir); }
.btn-vert {
  background: var(--vert);
  color: var(--blanc);
}
.btn-vert:hover { background: #006630; transform: translateY(-2px); }
.tag {
  display: inline-block;
  padding: .25rem .75rem;
  border-radius: 20px;
  font-size: .78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.tag-or { background: var(--or-clair); color: #7a5c00; }
.tag-vert { background: #d4edda; color: var(--vert); }

/* ==================== NAVIGATION ==================== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 1rem 0;
  transition: var(--transition);
}
.navbar.scrolled {
  background: rgba(13,13,13,.96);
  backdrop-filter: blur(10px);
  padding: .6rem 0;
  box-shadow: 0 2px 20px rgba(0,0,0,.3);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: .75rem;
}
.nav-logo .logo-crown {
  font-size: 2rem;
  filter: drop-shadow(0 0 6px var(--or));
}
.nav-logo .logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.nav-logo .brand-main {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--or);
}
.nav-logo .brand-sub {
  font-size: .65rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: rgba(255,255,255,.6);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-links a {
  color: rgba(255,255,255,.85);
  font-size: .9rem;
  font-weight: 500;
  position: relative;
  transition: var(--transition);
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--or);
  transition: var(--transition);
}
.nav-links a:hover, .nav-links a.active { color: var(--or); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-vote-btn {
  background: linear-gradient(135deg, var(--or), #8a6200);
  color: var(--blanc) !important;
  padding: .5rem 1.4rem;
  border-radius: 50px;
  font-weight: 600 !important;
}
.nav-vote-btn::after { display: none !important; }
.nav-vote-btn:hover { transform: translateY(-2px); color: var(--blanc) !important; }
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 26px; height: 2px;
  background: var(--blanc);
  transition: var(--transition);
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* ==================== HERO ==================== */
.hero {
  min-height: 100vh;
  background: linear-gradient(170deg, #080808 0%, #1a0a00 40%, #0a1f0a 80%, #080808 100%);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 80px;
}
.hero-particles {
  position: absolute; inset: 0; pointer-events: none; overflow: hidden;
}
.particle {
  position: absolute;
  border-radius: 50%;
  background: var(--or);
  opacity: .15;
  animation: floatParticle linear infinite;
}
@keyframes floatParticle {
  0% { transform: translateY(100vh) scale(0); opacity: 0; }
  10% { opacity: .2; }
  90% { opacity: .2; }
  100% { transform: translateY(-20px) scale(1); opacity: 0; }
}
.hero-flag-bar {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 4px;
  display: flex;
}
.hero-flag-bar span { flex: 1; }
.hero-flag-bar span:nth-child(1) { background: var(--vert); }
.hero-flag-bar span:nth-child(2) { background: var(--jaune); }
.hero-flag-bar span:nth-child(3) { background: var(--rouge); }

.hero-content {
  position: relative; z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 3rem;
  width: 100%;
}
.hero-text { color: var(--blanc); }
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(201,168,76,.15);
  border: 1px solid rgba(201,168,76,.3);
  padding: .4rem 1rem;
  border-radius: 50px;
  font-size: .85rem;
  color: var(--or-clair);
  margin-bottom: 1.5rem;
  backdrop-filter: blur(4px);
}
.hero-title {
  margin-bottom: 1.2rem;
  text-shadow: 0 2px 10px rgba(0,0,0,.5);
}
.hero-title .accent { color: var(--or); display: block; }
.hero-subtitle { font-size: 1.1rem; color: rgba(255,255,255,.7); margin-bottom: 2rem; max-width: 480px; }
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-countdown {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(201,168,76,.2);
  border-radius: var(--rayon);
  padding: 1.5rem;
  backdrop-filter: blur(10px);
  color: var(--blanc);
  margin-top: 2.5rem;
}
.hero-countdown h4 { font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; color: var(--or-clair); margin-bottom: 1rem; font-family: 'Poppins', sans-serif; }
.countdown-grid { display: flex; gap: 1rem; }
.countdown-item { text-align: center; flex: 1; }
.countdown-item .num {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--or);
  line-height: 1;
  display: block;
}
.countdown-item .label { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: rgba(255,255,255,.5); margin-top: .2rem; }
.countdown-sep { color: var(--or); font-size: 1.8rem; font-weight: 700; align-self: flex-start; padding-top: .2rem; }

.hero-image-wrap {
  position: relative;
  display: flex;
  justify-content: center;
}
.hero-crown-deco {
  position: absolute;
  top: -60px; left: 50%;
  transform: translateX(-50%);
  font-size: 6rem;
  opacity: .15;
  animation: crownFloat 4s ease-in-out infinite;
  filter: drop-shadow(0 0 20px var(--or));
}
@keyframes crownFloat {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-12px); }
}
.hero-photo-frame {
  width: 380px; height: 480px;
  border-radius: 50% 50% 45% 45%;
  background: linear-gradient(160deg, rgba(201,168,76,.3), rgba(0,133,63,.2));
  border: 2px solid rgba(201,168,76,.3);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,.5), inset 0 0 40px rgba(201,168,76,.1);
}
.hero-photo-frame img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top;
}
.hero-photo-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  color: rgba(255,255,255,.4);
}
.hero-photo-placeholder .big-icon { font-size: 6rem; }
.hero-photo-placeholder p { font-size: .9rem; text-align: center; }
.hero-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(201,168,76,.2);
  animation: ringPulse 3s ease-in-out infinite;
}
.hero-ring:nth-child(1) { width: 420px; height: 520px; animation-delay: 0s; }
.hero-ring:nth-child(2) { width: 460px; height: 560px; animation-delay: .5s; }
.hero-ring:nth-child(3) { width: 500px; height: 600px; animation-delay: 1s; }
@keyframes ringPulse {
  0%, 100% { opacity: .4; }
  50% { opacity: .1; }
}
.hero-stat-badges {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.stat-badge {
  position: absolute;
  background: rgba(10,10,10,.8);
  border: 1px solid rgba(201,168,76,.3);
  border-radius: 10px;
  padding: .6rem 1rem;
  backdrop-filter: blur(10px);
  color: var(--blanc);
  pointer-events: all;
}
.stat-badge.badge-1 { left: -40px; top: 30%; }
.stat-badge.badge-2 { right: -40px; top: 60%; }
.stat-badge .badge-num { font-family: 'Playfair Display', serif; font-size: 1.4rem; color: var(--or); font-weight: 700; line-height: 1; }
.stat-badge .badge-lbl { font-size: .7rem; color: rgba(255,255,255,.6); text-transform: uppercase; letter-spacing: .05em; }

/* ==================== SECTION : À PROPOS ==================== */
.about { padding: 6rem 0; background: var(--gris-bg); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.about-image-stack { position: relative; }
.about-img-main {
  border-radius: var(--rayon);
  overflow: hidden;
  height: 450px;
  box-shadow: var(--ombre);
}
.about-img-main img { width: 100%; height: 100%; object-fit: cover; }
.about-img-badge {
  position: absolute;
  bottom: -20px; right: -20px;
  background: linear-gradient(135deg, var(--or), #8a6200);
  color: var(--blanc);
  border-radius: var(--rayon);
  padding: 1.2rem 1.5rem;
  text-align: center;
  box-shadow: 0 8px 30px rgba(201,168,76,.4);
}
.about-img-badge .badge-year { font-family: 'Playfair Display', serif; font-size: 2rem; font-weight: 700; line-height: 1; }
.about-img-badge .badge-text { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; opacity: .9; }
.about-content { }
.about-content .eyebrow {
  color: var(--or);
  font-size: .85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: .75rem;
}
.about-content p { color: var(--gris); margin-bottom: 1rem; }
.about-values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 2rem;
}
.value-card {
  padding: 1.2rem;
  background: var(--blanc);
  border-radius: var(--rayon);
  border-left: 3px solid var(--or);
  box-shadow: 0 2px 10px rgba(0,0,0,.06);
}
.value-card .icon { font-size: 1.5rem; margin-bottom: .4rem; }
.value-card h4 { font-size: .95rem; margin-bottom: .3rem; }
.value-card p { font-size: .82rem; color: var(--gris); margin: 0; }

/* ==================== SECTION : CANDIDATES ==================== */
.candidates-section { padding: 6rem 0; background: var(--blanc); }
.candidates-filter {
  display: flex;
  justify-content: center;
  gap: .75rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}
.filter-btn {
  padding: .5rem 1.4rem;
  border-radius: 50px;
  border: 2px solid #e0e0e0;
  background: transparent;
  cursor: pointer;
  font-size: .88rem;
  font-weight: 500;
  transition: var(--transition);
  font-family: 'Poppins', sans-serif;
}
.filter-btn:hover, .filter-btn.active {
  border-color: var(--or);
  background: var(--or);
  color: var(--blanc);
}
.candidates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem;
}
.candidate-card {
  border-radius: var(--rayon);
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,.08);
  transition: var(--transition);
  background: var(--blanc);
  cursor: pointer;
}
.candidate-card:hover { transform: translateY(-6px); box-shadow: 0 16px 40px rgba(0,0,0,.15); }
.candidate-card-img {
  position: relative;
  height: 320px;
  overflow: hidden;
}
.candidate-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.candidate-card:hover .candidate-card-img img { transform: scale(1.07); }
.candidate-number {
  position: absolute;
  top: 12px; left: 12px;
  background: rgba(0,0,0,.7);
  color: var(--or);
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  font-weight: 700;
  padding: .3rem .7rem;
  border-radius: 6px;
  border: 1px solid rgba(201,168,76,.3);
}
.candidate-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,.8) 0%, transparent 50%);
  display: flex;
  align-items: flex-end;
  padding: 1rem;
  opacity: 0;
  transition: var(--transition);
}
.candidate-card:hover .candidate-overlay { opacity: 1; }
.candidate-vote-btn {
  width: 100%;
  padding: .6rem;
  background: var(--or);
  color: var(--blanc);
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  transition: var(--transition);
}
.candidate-vote-btn:hover { background: #a07828; }
.candidate-info { padding: 1rem; }
.candidate-name { font-size: 1rem; margin-bottom: .2rem; }
.candidate-region { font-size: .82rem; color: var(--or); font-weight: 500; display: flex; align-items: center; gap: .3rem; }
.candidate-meta { display: flex; justify-content: space-between; margin-top: .6rem; font-size: .78rem; color: var(--gris); }

/* ==================== SECTION : AGENDA ==================== */
.agenda { padding: 6rem 0; background: var(--noir); color: var(--blanc); }
.agenda .section-title { color: var(--blanc); }
.timeline {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 50%; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--vert), var(--or), var(--rouge));
  transform: translateX(-50%);
}
.timeline-item {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-bottom: 3rem;
  position: relative;
}
.timeline-item:nth-child(odd) { flex-direction: row; }
.timeline-item:nth-child(even) { flex-direction: row-reverse; }
.timeline-content {
  flex: 1;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(201,168,76,.2);
  border-radius: var(--rayon);
  padding: 1.5rem;
  backdrop-filter: blur(5px);
  transition: var(--transition);
}
.timeline-item:hover .timeline-content {
  background: rgba(255,255,255,.08);
  border-color: rgba(201,168,76,.4);
}
.timeline-dot {
  width: 50px; height: 50px;
  border-radius: 50%;
  background: var(--noir);
  border: 2px solid var(--or);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
  z-index: 1;
  position: relative;
}
.timeline-date {
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--or);
  margin-bottom: .4rem;
  font-weight: 600;
}
.timeline-content h3 { font-size: 1.1rem; margin-bottom: .4rem; }
.timeline-content p { font-size: .85rem; color: rgba(255,255,255,.6); margin: 0; }
.timeline-tag { margin-top: .6rem; }
.spacer { flex: 1; }

/* ==================== SECTION : JURY ==================== */
.jury { padding: 6rem 0; background: var(--gris-bg); }
.jury-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 2rem;
}
.jury-card {
  text-align: center;
  background: var(--blanc);
  border-radius: var(--rayon);
  padding: 2rem 1.5rem;
  box-shadow: 0 4px 16px rgba(0,0,0,.07);
  transition: var(--transition);
}
.jury-card:hover { transform: translateY(-5px); box-shadow: 0 16px 40px rgba(0,0,0,.12); }
.jury-avatar {
  width: 100px; height: 100px;
  border-radius: 50%;
  margin: 0 auto 1rem;
  overflow: hidden;
  border: 3px solid var(--or);
  box-shadow: 0 4px 15px rgba(201,168,76,.3);
}
.jury-avatar img { width: 100%; height: 100%; object-fit: cover; }
.jury-avatar .avatar-placeholder {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, var(--vert), #00432a);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  color: var(--blanc);
}
.jury-card h3 { font-size: 1rem; margin-bottom: .2rem; }
.jury-card .role { font-size: .82rem; color: var(--or); font-weight: 500; margin-bottom: .4rem; }
.jury-card .bio { font-size: .78rem; color: var(--gris); }

/* ==================== SECTION : VOTE ==================== */
.vote-section {
  padding: 6rem 0;
  background: linear-gradient(135deg, var(--vert) 0%, #00432a 100%);
  color: var(--blanc);
  text-align: center;
}
.vote-section .section-title { color: var(--blanc); }
.vote-section .section-title .accent { color: var(--jaune); }
.vote-section p { max-width: 600px; margin: 0 auto 2rem; color: rgba(255,255,255,.8); font-size: 1.05rem; }
.vote-steps {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}
.vote-step {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--rayon);
  padding: 1.5rem;
  max-width: 200px;
  backdrop-filter: blur(5px);
}
.vote-step .step-num {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--jaune);
  color: var(--noir);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto .75rem;
  font-size: 1.1rem;
}
.vote-step p { color: rgba(255,255,255,.85); font-size: .85rem; margin: 0; }

/* ==================== SECTION : GALERIE ==================== */
.gallery-preview { padding: 6rem 0; background: var(--blanc); }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 200px;
  gap: 1rem;
}
.gallery-item {
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
}
.gallery-item.featured { grid-column: span 2; grid-row: span 2; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gallery-item:hover img { transform: scale(1.08); }
.gallery-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
  color: var(--blanc);
  font-size: 1.5rem;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-placeholder {
  background: linear-gradient(135deg, #1a1a2e, #16213e, #0f3460);
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: rgba(255,255,255,.3);
}
.gallery-view-all { text-align: center; margin-top: 2rem; }

/* ==================== PARTENAIRES ==================== */
.partners { padding: 4rem 0; background: var(--gris-bg); }
.partners .section-title { margin-bottom: 2rem; }
.partners-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
}
.partner-logo {
  width: 130px; height: 70px;
  background: var(--blanc);
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: .8rem;
  color: var(--gris);
  transition: var(--transition);
  padding: .5rem;
}
.partner-logo:hover { border-color: var(--or); color: var(--or); box-shadow: 0 4px 15px rgba(201,168,76,.2); }

/* ==================== ACTUALITÉS ==================== */
.news { padding: 6rem 0; background: var(--blanc); }
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}
.news-card {
  border-radius: var(--rayon);
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,.08);
  transition: var(--transition);
  background: var(--blanc);
}
.news-card:hover { transform: translateY(-5px); box-shadow: 0 16px 40px rgba(0,0,0,.12); }
.news-card-img {
  height: 200px;
  overflow: hidden;
  position: relative;
}
.news-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.news-card:hover .news-card-img img { transform: scale(1.05); }
.news-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem;
}
.np-1 { background: linear-gradient(135deg, #00853F22, #00853F44); }
.np-2 { background: linear-gradient(135deg, #C9A84C22, #C9A84C44); }
.np-3 { background: linear-gradient(135deg, #E31B2322, #E31B2344); }
.news-cat {
  position: absolute;
  top: 12px; left: 12px;
}
.news-card-body { padding: 1.2rem; }
.news-card-body .date { font-size: .78rem; color: var(--gris); margin-bottom: .4rem; }
.news-card-body h3 { font-size: 1.05rem; margin-bottom: .5rem; }
.news-card-body p { font-size: .85rem; color: var(--gris); }
.news-card-body .read-more { color: var(--or); font-size: .85rem; font-weight: 600; display: flex; align-items: center; gap: .3rem; margin-top: .6rem; }

/* ==================== NEWSLETTER ==================== */
.newsletter {
  padding: 4rem 0;
  background: linear-gradient(135deg, #C9A84C15, #00853F15);
  border-top: 1px solid #e0e0e0;
  border-bottom: 1px solid #e0e0e0;
}
.newsletter-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.newsletter-text h3 { margin-bottom: .3rem; }
.newsletter-text p { color: var(--gris); font-size: .9rem; }
.newsletter-form {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
}
.newsletter-form input {
  padding: .75rem 1.2rem;
  border: 2px solid #e0e0e0;
  border-radius: 50px;
  font-family: 'Poppins', sans-serif;
  font-size: .9rem;
  width: 280px;
  transition: var(--transition);
}
.newsletter-form input:focus { outline: none; border-color: var(--or); }
.newsletter-form button { padding: .75rem 1.8rem; }

/* ==================== FOOTER ==================== */
footer {
  background: var(--noir);
  color: rgba(255,255,255,.7);
  padding: 4rem 0 1.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-brand .logo-text .brand-main { font-size: 1.5rem; }
.footer-brand p { margin-top: .8rem; font-size: .88rem; line-height: 1.7; }
.footer-socials { display: flex; gap: .75rem; margin-top: 1.2rem; }
.social-btn {
  width: 38px; height: 38px;
  border-radius: 8px;
  background: rgba(255,255,255,.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: var(--transition);
  text-decoration: none;
}
.social-btn:hover { background: var(--or); color: var(--blanc); transform: translateY(-2px); }
.footer-col h4 { color: var(--blanc); margin-bottom: 1rem; font-size: 1rem; }
.footer-col ul li { margin-bottom: .5rem; }
.footer-col ul li a { color: rgba(255,255,255,.6); font-size: .88rem; transition: var(--transition); }
.footer-col ul li a:hover { color: var(--or); padding-left: 4px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: .82rem;
}
.footer-sn-colors {
  display: flex;
  gap: 0;
  border-radius: 4px;
  overflow: hidden;
}
.footer-sn-colors span { width: 20px; height: 8px; }
.footer-sn-colors span:nth-child(1) { background: var(--vert); }
.footer-sn-colors span:nth-child(2) { background: var(--jaune); }
.footer-sn-colors span:nth-child(3) { background: var(--rouge); }

/* ==================== MODAL DE VOTE ==================== */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.8);
  backdrop-filter: blur(5px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal {
  background: var(--blanc);
  border-radius: 16px;
  padding: 2.5rem;
  max-width: 480px;
  width: 90%;
  position: relative;
  transform: scale(.9);
  transition: var(--transition);
}
.modal-overlay.open .modal { transform: scale(1); }
.modal-close {
  position: absolute;
  top: 1rem; right: 1rem;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: #f0f0f0;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.modal-close:hover { background: #ff4444; color: var(--blanc); }
.modal-candidate-preview {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: var(--gris-bg);
  border-radius: var(--rayon);
}
.modal-candidate-preview .preview-img {
  width: 70px; height: 70px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--or);
}
.modal-candidate-preview .preview-img img { width: 100%; height: 100%; object-fit: cover; }
.modal-form { }
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-size: .85rem; font-weight: 500; margin-bottom: .4rem; }
.form-group input, .form-group select {
  width: 100%;
  padding: .75rem 1rem;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-family: 'Poppins', sans-serif;
  font-size: .9rem;
  transition: var(--transition);
}
.form-group input:focus, .form-group select:focus { outline: none; border-color: var(--or); }
.vote-confirm-btn { width: 100%; padding: 1rem; font-size: 1rem; border-radius: 8px; }

/* ==================== PAGE CANDIDATES ==================== */
.page-hero {
  min-height: 50vh;
  background: linear-gradient(170deg, #080808, #1a0a00);
  display: flex;
  align-items: center;
  padding-top: 80px;
  position: relative;
  overflow: hidden;
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero-content { color: var(--blanc); text-align: center; }
.page-hero-content .eyebrow { color: var(--or-clair); display: block; font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: .75rem; }
.breadcrumb { display: flex; justify-content: center; gap: .5rem; margin-top: 1rem; font-size: .85rem; color: rgba(255,255,255,.5); }
.breadcrumb a { color: var(--or); }

/* ==================== PAGE GALERIE - LIGHTBOX ==================== */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.95);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}
.lightbox.open { opacity: 1; pointer-events: all; }
.lightbox-img { max-width: 90vw; max-height: 85vh; border-radius: 8px; }
.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute;
  background: rgba(255,255,255,.15);
  border: none;
  color: var(--blanc);
  cursor: pointer;
  border-radius: 50%;
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  transition: var(--transition);
}
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { background: var(--or); }
.lightbox-close { top: 1.5rem; right: 1.5rem; }
.lightbox-prev { left: 1.5rem; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 1.5rem; top: 50%; transform: translateY(-50%); }

/* ==================== PAGE CONTACT ==================== */
.contact-section { padding: 6rem 0; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 4rem; align-items: start; }
.contact-info-card {
  background: linear-gradient(135deg, var(--vert), #00432a);
  color: var(--blanc);
  border-radius: 16px;
  padding: 2.5rem;
  position: sticky;
  top: 100px;
}
.contact-info-card h3 { margin-bottom: .5rem; }
.contact-info-card > p { color: rgba(255,255,255,.7); font-size: .9rem; margin-bottom: 2rem; }
.contact-detail { display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 1.2rem; }
.contact-detail .icon {
  width: 42px; height: 42px;
  background: rgba(255,255,255,.15);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.contact-detail .info-text label { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: rgba(255,255,255,.5); margin-bottom: .2rem; }
.contact-detail .info-text span { font-size: .9rem; }
.contact-socials { margin-top: 2rem; }
.contact-socials h4 { margin-bottom: .75rem; font-size: .95rem; }
.contact-socials .social-links { display: flex; gap: .5rem; }
.contact-form-card {
  background: var(--blanc);
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: 0 8px 40px rgba(0,0,0,.08);
}
.contact-form-card h3 { margin-bottom: 1.5rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group textarea {
  width: 100%;
  padding: .75rem 1rem;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-family: 'Poppins', sans-serif;
  font-size: .9rem;
  resize: vertical;
  min-height: 130px;
  transition: var(--transition);
}
.form-group textarea:focus { outline: none; border-color: var(--or); }
.submit-btn { width: 100%; padding: 1rem; font-size: 1rem; border-radius: 8px; border: none; cursor: pointer; }

/* ==================== TOAST / NOTIFICATIONS ==================== */
.toast-container { position: fixed; bottom: 2rem; right: 2rem; z-index: 9999; display: flex; flex-direction: column; gap: .5rem; }
.toast {
  background: var(--blanc);
  border-radius: 10px;
  padding: 1rem 1.5rem;
  box-shadow: 0 8px 30px rgba(0,0,0,.15);
  display: flex;
  align-items: center;
  gap: .75rem;
  min-width: 280px;
  transform: translateX(120%);
  transition: transform .4s ease;
  border-left: 4px solid var(--vert);
}
.toast.show { transform: translateX(0); }
.toast.success { border-color: var(--vert); }
.toast.error { border-color: var(--rouge); }
.toast-icon { font-size: 1.3rem; }
.toast-message { font-size: .9rem; font-weight: 500; }

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1024px) {
  .hero-content { grid-template-columns: 1fr; text-align: center; }
  .hero-cta { justify-content: center; }
  .hero-subtitle { margin: 0 auto 2rem; }
  .hero-image-wrap { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(10,10,10,.97); flex-direction: column; justify-content: center; align-items: center; gap: 2rem; font-size: 1.2rem; }
  .nav-links.open { display: flex; }
  .hamburger { display: flex; z-index: 1001; }
  .about-grid { grid-template-columns: 1fr; }
  .about-image-stack { display: none; }
  .timeline::before { left: 24px; }
  .timeline-item, .timeline-item:nth-child(even) { flex-direction: row !important; }
  .timeline-item .spacer { display: none; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .gallery-item.featured { grid-column: span 2; grid-row: span 1; }
  .form-row { grid-template-columns: 1fr; }
  .countdown-grid { gap: .5rem; }
  .countdown-item .num { font-size: 1.6rem; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-item.featured { grid-column: span 1; }
  .stat-badge { display: none; }
  .newsletter-inner { flex-direction: column; text-align: center; }
  .newsletter-form { justify-content: center; }
  .newsletter-form input { width: 100%; }
}

/* ==================== ANIMATIONS ==================== */
.fade-up { opacity: 0; transform: translateY(30px); transition: opacity .6s ease, transform .6s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }
.fade-in { opacity: 0; transition: opacity .8s ease; }
.fade-in.visible { opacity: 1; }

/* Scrollbar personnalisée */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--noir); }
::-webkit-scrollbar-thumb { background: var(--or); border-radius: 3px; }
