/* MISS AGRO 2026 — Design system v2 */

:root {
  /* Palette — identité agricole & élégance */
  --green-dark: #0a3328;
  --green: #245a42;
  --green-light: #3d8f6a;
  --blue: #163a52;
  --blue-light: #2a7a9e;
  --gold: #c9a227;
  --gold-light: #e8c96a;
  --gold-pale: #f5e6b8;
  --cream: #f7f3e8;
  --cream-dark: #ebe4d4;
  --warm: #c96a52;
  --white: #ffffff;
  --text: #1c2420;
  --text-muted: #5a6560;
  --gray-100: #f5f7f6;
  --gray-200: #e2e8e5;
  --gray-300: #c8d4ce;

  /* Alias compatibilité */
  --emerald: var(--green-light);
  --dark-green: var(--green-dark);

  /* Effets */
  --shadow-sm: 0 2px 8px rgba(10, 51, 40, 0.06);
  --shadow: 0 8px 32px rgba(22, 58, 82, 0.1);
  --shadow-lg: 0 20px 60px rgba(10, 51, 40, 0.14);
  --shadow-gold: 0 8px 28px rgba(201, 162, 39, 0.28);
  --radius: 18px;
  --radius-sm: 12px;
  --radius-pill: 999px;
  --nav-margin: 1rem;

  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --transition: 0.28s var(--ease-out);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--white);
  font-size: 1rem;
  letter-spacing: -0.01em;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -0.02em;
}

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

a {
  color: var(--blue-light);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover { color: var(--green-dark); }

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ========== NAVBAR FLOTTANTE ========== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  padding: var(--nav-margin) 1.5rem 0;
  pointer-events: none;
}

.navbar {
  pointer-events: auto;
  max-width: 1160px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0.55rem 0.55rem 1rem;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--green-dark);
  font-weight: 700;
  font-size: 0.95rem;
  flex-shrink: 0;
  letter-spacing: 0.02em;
}

.logo img {
  height: 42px;
  width: auto;
  border-radius: 10px;
  object-fit: contain;
}

.logo-badge {
  background: linear-gradient(135deg, var(--green-light) 0%, var(--blue-light) 100%);
  color: white;
  padding: 0.45rem 0.8rem;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 700;
  font-family: var(--font-body);
  letter-spacing: 0.06em;
  box-shadow: var(--shadow-sm);
}

.logo span:not(.logo-badge) {
  display: none;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
}

@media (min-width: 640px) {
  .logo span:not(.logo-badge) { display: inline; }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  list-style: none;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-links a {
  color: var(--text);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-pill);
  transition: all var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  background: var(--cream);
  color: var(--green-dark);
}

.nav-links .btn-nav {
  background: linear-gradient(135deg, var(--gold) 0%, var(--warm) 100%);
  color: var(--green-dark) !important;
  font-weight: 700;
  margin-left: 0.35rem;
  box-shadow: var(--shadow-gold);
  letter-spacing: 0.02em;
}

.nav-links .btn-nav:hover {
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 100%);
  transform: translateY(-1px);
  box-shadow: 0 10px 32px rgba(201, 162, 39, 0.35);
}

.menu-toggle {
  display: none;
  background: var(--cream);
  border: 1px solid var(--cream-dark);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.15rem;
  cursor: pointer;
  color: var(--green-dark);
  transition: background var(--transition);
}

.menu-toggle:hover { background: var(--cream-dark); }

/* ========== HERO SLIDER ========== */
.hero-slider {
  position: relative;
  min-height: min(90vh, 760px);
  display: flex;
  align-items: center;
  overflow: hidden;
  margin-top: calc(-1 * (42px + var(--nav-margin) * 2));
  padding-top: calc(42px + var(--nav-margin) * 2 + 2.5rem);
}

.hero-slides {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-slide {
  position: absolute;
  inset: -4%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 1.4s var(--ease-out), transform 8s var(--ease-out);
}

.hero-slide.active {
  opacity: 1;
  transform: scale(1);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(108deg, rgba(10, 51, 40, 0.92) 0%, rgba(22, 58, 82, 0.78) 42%, rgba(10, 51, 40, 0.55) 100%),
    radial-gradient(ellipse 80% 60% at 70% 50%, rgba(201, 162, 39, 0.08) 0%, transparent 70%);
  z-index: 1;
}

.hero-slider .container {
  position: relative;
  z-index: 2;
  color: white;
  width: 100%;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(201, 162, 39, 0.15);
  border: 1px solid rgba(232, 201, 106, 0.35);
  color: var(--gold-light);
  padding: 0.45rem 1.1rem;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  backdrop-filter: blur(4px);
}

.hero-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 8px var(--gold-light);
}

.hero-slider h1 {
  font-size: clamp(2.5rem, 5.8vw, 4rem);
  margin-bottom: 1.1rem;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.25);
  font-weight: 700;
}

.hero-slider .lead {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  opacity: 0.9;
  margin-bottom: 1.75rem;
  max-width: 480px;
  font-weight: 400;
  line-height: 1.7;
}

.hero-countdown-label {
  opacity: 0.75;
  font-size: 0.82rem;
  margin-bottom: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 500;
}

.hero-poster {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255, 255, 255, 0.12);
  aspect-ratio: 3/4;
  max-height: 440px;
  margin: 0 auto;
}

.hero-poster::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(232, 201, 106, 0.35);
  border-radius: inherit;
  z-index: 1;
  pointer-events: none;
  margin: 10px;
}

.hero-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 51, 40, 0.35) 0%, transparent 40%);
  z-index: 1;
  pointer-events: none;
}

.hero-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-dots {
  display: flex;
  gap: 0.5rem;
  margin-top: 2.25rem;
}

.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all 0.35s var(--ease-out);
}

.hero-dot.active {
  background: var(--gold);
  width: 32px;
  border-radius: var(--radius-pill);
  box-shadow: 0 0 12px rgba(201, 162, 39, 0.5);
}

/* ========== BUTTONS ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.85rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.925rem;
  font-family: var(--font-body);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
  letter-spacing: 0.01em;
}

.btn:focus-visible {
  outline: 2px solid var(--blue-light);
  outline-offset: 3px;
}

.btn-primary {
  background: var(--green-light);
  color: white;
  box-shadow: 0 4px 16px rgba(61, 143, 106, 0.3);
}
.btn-primary:hover {
  background: var(--green);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(61, 143, 106, 0.35);
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold) 0%, #b8921f 100%);
  color: var(--green-dark);
  box-shadow: var(--shadow-gold);
}
.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(201, 162, 39, 0.45);
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 100%);
}

.btn-dark {
  background: var(--blue);
  color: white;
  box-shadow: 0 4px 16px rgba(22, 58, 82, 0.25);
}
.btn-dark:hover {
  background: var(--green-dark);
  color: white;
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--green-light);
  color: var(--green);
}
.btn-outline:hover {
  background: var(--green-light);
  color: white;
  border-color: var(--green-light);
}

.btn-sm { padding: 0.55rem 1.15rem; font-size: 0.825rem; }
.btn-lg { padding: 1rem 2.35rem; font-size: 1rem; }
.btn-block { display: flex; width: 100%; }

/* ========== COUNTDOWN ========== */
.countdown {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.countdown-item {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  text-align: center;
  min-width: 68px;
}

.countdown-item .num {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--gold-light);
  line-height: 1;
  margin-bottom: 0.2rem;
}

.countdown-item .label {
  font-size: 0.65rem;
  opacity: 0.75;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

/* ========== SECTIONS ========== */
section { padding: 5.5rem 0; }

section.bg-cream {
  background: var(--cream);
  position: relative;
}

section.bg-cream::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23c9a227' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

section.bg-blue {
  background: linear-gradient(180deg, #eef5f9 0%, var(--white) 100%);
}

section.bg-light { background: var(--gray-100); }

.section-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.65rem;
}

.section-eyebrow.center {
  display: block;
  text-align: center;
}

.subsection-title {
  margin-bottom: 1.5rem;
  color: var(--blue);
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
}

.section-title {
  font-size: clamp(1.85rem, 3.2vw, 2.5rem);
  margin-bottom: 1.35rem;
  color: var(--green-dark);
  position: relative;
  padding-bottom: 0.75rem;
  font-weight: 700;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 64px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold) 0%, var(--warm) 100%);
  border-radius: 2px;
}

.section-title.center { text-align: center; }
.section-title.center::after { left: 50%; transform: translateX(-50%); }

.section-subtitle {
  color: var(--text-muted);
  max-width: 640px;
  margin-bottom: 2.5rem;
  font-size: 1.05rem;
  line-height: 1.75;
}

.section-subtitle.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* Event section */
.event-section .grid-2 { align-items: center; gap: 4rem; }

.event-poster-wrap {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.event-poster-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 3px solid var(--gold-light);
  border-radius: inherit;
  z-index: 1;
  pointer-events: none;
  margin: 8px;
  opacity: 0.6;
}

.event-poster-wrap img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
}

.event-text {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.85;
}

/* ========== CARDS ========== */
.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
  border: 1px solid rgba(226, 232, 229, 0.8);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.card-img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  transition: transform 0.5s var(--ease-out);
}

.card:hover .card-img { transform: scale(1.03); }

.card-body { padding: 1.35rem 1.4rem 1.5rem; }

.card-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
  color: var(--green-dark);
}

.card-meta {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-bottom: 0.85rem;
}

.card-votes {
  color: var(--blue-light);
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.card-votes::before {
  content: "♥";
  color: var(--warm);
  font-size: 0.85rem;
}

.card-actions { display: flex; gap: 0.55rem; }

.candidate-number {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: linear-gradient(135deg, var(--blue) 0%, var(--green-dark) 100%);
  color: white;
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.03em;
  box-shadow: var(--shadow);
  z-index: 2;
}

.card-img-wrap {
  position: relative;
  overflow: hidden;
}

.card-img-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 51, 40, 0.25) 0%, transparent 50%);
  pointer-events: none;
}

/* Ticket listing cards */
.ticket-card {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.ticket-card .ticket-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--green-light), var(--blue-light));
  color: white;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  width: fit-content;
}

.ticket-card h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin: 0.85rem 0 0.5rem;
  color: var(--green-dark);
}

.ticket-card .ticket-meta {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}

.ticket-card .ticket-price {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--green-light);
  margin: 1rem 0 0.35rem;
}

.ticket-card .ticket-remaining {
  font-size: 0.825rem;
  color: var(--text-muted);
  margin-bottom: auto;
}

.ticket-card .btn { margin-top: 1.25rem; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.75rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.75rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }

/* Gallery */
.gallery-item {
  aspect-ratio: 4/3;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.4s var(--ease-out), box-shadow var(--transition);
  cursor: pointer;
}

.gallery-item:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-lg);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease-out);
}

.gallery-item:hover img { transform: scale(1.06); }

/* Sponsors */
.sponsor-card {
  background: white;
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  transition: all var(--transition);
}

.sponsor-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--gold-pale);
}

.sponsor-card img {
  height: 52px;
  margin: 0 auto;
  object-fit: contain;
  filter: grayscale(20%);
  transition: filter var(--transition);
}

.sponsor-card:hover img { filter: grayscale(0%); }

.sponsor-card p {
  margin-top: 0.85rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ========== FOOTER ========== */
.site-footer {
  background: linear-gradient(165deg, var(--green-dark) 0%, var(--blue) 55%, #1a4a62 100%);
  color: white;
  margin-top: auto;
  position: relative;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold) 20%, var(--gold-light) 50%, var(--gold) 80%, transparent);
}

.footer-top { padding: 4rem 0 2.5rem; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2.5rem;
}

.footer-brand img {
  height: 52px;
  margin-bottom: 1.1rem;
  border-radius: 10px;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.9rem;
  max-width: 280px;
  line-height: 1.75;
}

.footer-col h6 {
  color: var(--gold-light);
  font-family: var(--font-body);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.1rem;
  font-weight: 700;
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.55rem; }
.footer-col a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  transition: color var(--transition);
}
.footer-col a:hover { color: white; }
.footer-col p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.35rem 0;
  text-align: center;
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.825rem;
}

/* ========== PAGE HEADER ========== */
.page-hero {
  background: linear-gradient(135deg, var(--blue) 0%, var(--green) 100%);
  color: white;
  padding: 4rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 50% 120%, rgba(201, 162, 39, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.page-hero .container { position: relative; z-index: 1; }

.page-hero h1 {
  font-size: clamp(2rem, 4.5vw, 2.75rem);
  font-weight: 700;
  margin-bottom: 0.65rem;
}

.page-hero p {
  opacity: 0.85;
  font-size: 1.05rem;
  max-width: 520px;
  margin: 0 auto;
}

.page-header {
  text-align: center;
  margin-bottom: 3rem;
  padding-top: 1rem;
}

.page-header h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  color: var(--green-dark);
  margin-bottom: 0.65rem;
  font-weight: 700;
}

.page-header p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

.page-main {
  padding: 3.5rem 1.5rem;
}

.page-main--narrow {
  max-width: 600px;
  margin: 0 auto;
}

.page-main--form {
  max-width: 560px;
  margin: 0 auto;
}

/* Candidate profile */
.profile-grid {
  align-items: start;
  gap: 3rem;
}

.profile-photo {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  max-height: 540px;
  object-fit: cover;
}

.profile-photo-wrap {
  position: relative;
}

.profile-photo-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 2px solid rgba(201, 162, 39, 0.3);
  border-radius: var(--radius);
  margin: 12px;
  pointer-events: none;
}

.profile-name {
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin-bottom: 0.5rem;
  color: var(--green-dark);
}

.profile-meta {
  color: var(--text-muted);
  margin-bottom: 1.75rem;
  font-size: 1.05rem;
}

.profile-votes {
  background: linear-gradient(135deg, rgba(61, 143, 106, 0.08) 0%, rgba(42, 122, 158, 0.06) 100%);
  border: 1px solid rgba(61, 143, 106, 0.15);
  padding: 1.15rem 1.4rem;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.profile-votes .count {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--green-light);
  line-height: 1;
}

.profile-section h3 {
  font-size: 1.25rem;
  color: var(--green-dark);
  margin-bottom: 0.6rem;
}

.profile-section p {
  color: var(--text-muted);
  margin-bottom: 1.75rem;
  line-height: 1.8;
}

.candidate-number--static {
  position: static;
  display: inline-block;
  margin-bottom: 1.1rem;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.contact-card {
  background: white;
  border-radius: var(--radius);
  padding: 2.25rem 1.75rem;
  box-shadow: var(--shadow);
  text-align: center;
  border: 1px solid var(--gray-200);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.contact-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--warm));
}

.contact-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.contact-card .icon {
  font-size: 2rem;
  margin-bottom: 0.85rem;
  line-height: 1;
}

.contact-card h6 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--green-dark);
  margin-bottom: 0.5rem;
}

.contact-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Forms */
.form-card {
  padding: 2.25rem;
}

.form-card h2 {
  font-size: 1.65rem;
  color: var(--green-dark);
  margin-bottom: 0.35rem;
}

.form-card .form-intro {
  color: var(--text-muted);
  margin-bottom: 1.75rem;
  font-size: 0.95rem;
}

.form-group { margin-bottom: 1.35rem; }

.form-label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.45rem;
  font-size: 0.875rem;
  color: var(--text);
  letter-spacing: 0.01em;
}

.form-control {
  width: 100%;
  padding: 0.8rem 1.05rem;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: inherit;
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-control:hover { border-color: var(--gray-300); }

.form-control:focus {
  outline: none;
  border-color: var(--blue-light);
  box-shadow: 0 0 0 3px rgba(42, 122, 158, 0.12);
}

.form-select { appearance: auto; }

.table-wrap { overflow-x: auto; }

table {
  width: 100%;
  border-collapse: collapse;
}

thead {
  background: linear-gradient(135deg, var(--blue) 0%, var(--green-dark) 100%);
  color: white;
}

th {
  padding: 1rem 1.15rem;
  text-align: left;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

td {
  padding: 1rem 1.15rem;
  text-align: left;
  border-bottom: 1px solid var(--gray-200);
}

tbody tr {
  transition: background var(--transition);
}

tbody tr:hover { background: var(--gray-100); }

.rank-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  padding: 0.3rem 0.55rem;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.825rem;
}

.rank-1 { background: linear-gradient(135deg, var(--gold-light), var(--gold)); color: var(--green-dark); }
.rank-2 { background: linear-gradient(135deg, #e8e8e8, #c0c0c0); color: #333; }
.rank-3 { background: linear-gradient(135deg, #d4956a, #cd7f32); color: white; }
.rank-other { background: var(--blue-light); color: white; }

.rank-photo {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gray-200);
}

.vote-packs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.65rem;
}

.vote-pack {
  padding: 1.1rem 0.75rem;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  text-align: center;
  cursor: pointer;
  background: white;
  transition: all var(--transition);
}

.vote-pack:hover,
.vote-pack.active {
  border-color: var(--blue-light);
  background: linear-gradient(180deg, #f0f7fb 0%, white 100%);
  box-shadow: 0 4px 12px rgba(42, 122, 158, 0.1);
}

.vote-pack.active {
  border-color: var(--green-light);
  background: linear-gradient(180deg, rgba(61, 143, 106, 0.06) 0%, white 100%);
}

.vote-pack .pack-qty {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--green-dark);
}

.vote-pack .pack-price {
  font-size: 0.825rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

.vote-custom-qty .form-hint {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0.35rem 0 0.65rem;
}

.profile-actions {
  margin-bottom: 1.5rem;
}

.profile-share {
  padding: 1.25rem;
  border-radius: var(--radius-sm);
  background: linear-gradient(180deg, rgba(61, 143, 106, 0.06) 0%, white 100%);
  border: 1px solid var(--gray-200);
}

.profile-share h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
}

.share-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.85rem;
}

.share-btn {
  flex: 1;
  min-width: 120px;
}

.share-btn--whatsapp {
  border-color: #25d366;
  color: #128c41;
}

.share-link-preview {
  margin: 0.85rem 0 0;
  font-size: 0.8rem;
  word-break: break-all;
  color: var(--text-muted);
}

.share-link-preview code {
  background: var(--gray-100);
  padding: 0.35rem 0.5rem;
  border-radius: 6px;
  display: inline-block;
}

.share-toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  background: var(--green-dark);
  color: white;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: var(--shadow-md);
  z-index: 9999;
  transition: transform 0.25s ease;
}

.share-toast.visible {
  transform: translateX(-50%) translateY(0);
}

.total-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--cream);
  padding: 1.15rem 1.35rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1.35rem;
  border: 1px solid var(--cream-dark);
}

.total-box .amount {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--blue);
}

.search-bar {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.alert {
  padding: 0.95rem 1.15rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
  font-size: 0.925rem;
  font-weight: 500;
}

.alert-success { background: #d8f0e4; color: #0f5132; border: 1px solid #b8dfc8; }
.alert-danger { background: #fce8ea; color: #842029; border: 1px solid #f5c2c7; }
.alert-warning { background: #fff6db; color: #664d03; border: 1px solid #ffe69c; }

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--gray-200);
  border-top-color: var(--blue-light);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 2rem auto;
}

@keyframes spin { to { transform: rotate(360deg); } }

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

/* Payment status */
.payment-status {
  padding: 5rem 1.5rem;
  max-width: 480px;
  margin: 0 auto;
  text-align: center;
}

.payment-status .status-icon {
  font-size: 4rem;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.payment-status h1 {
  font-size: 2rem;
  margin: 1rem 0;
}

.payment-status h1.success { color: var(--green-light); }
.payment-status h1.error { color: #842029; }

.payment-status p {
  color: var(--text-muted);
  margin-bottom: 2rem;
}

/* ========== BILLET ÉVÉNEMENTIEL ========== */
.ticket-page {
  padding: 2.5rem 1.5rem 4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ticket-card-event {
  position: relative;
  width: 100%;
  max-width: 420px;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(10, 51, 40, 0.06);
}

.ticket-card-event__stripe {
  height: 6px;
  background: linear-gradient(90deg, var(--gold) 0%, var(--gold-light) 30%, var(--gold) 60%, var(--warm) 100%);
}

.ticket-card-event__inner {
  padding: 2rem 2rem 1.75rem;
  position: relative;
}

.ticket-card-event__inner::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(201, 162, 39, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.ticket-card-event__header {
  text-align: center;
  padding-bottom: 1.25rem;
  margin-bottom: 1.25rem;
  border-bottom: 2px dashed rgba(61, 143, 106, 0.35);
}

.ticket-card-event__brand {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--green-dark);
  letter-spacing: 0.04em;
  margin-bottom: 0.25rem;
}

.ticket-card-event__event {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
}

.ticket-card-event__meta {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.825rem;
  margin-bottom: 1.25rem;
  line-height: 1.6;
}

.ticket-card-event__meta span {
  display: inline-block;
}

.ticket-card-event__meta span + span::before {
  content: "·";
  margin: 0 0.5rem;
  opacity: 0.5;
}

.ticket-card-event__holder {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--green-light);
  text-align: center;
  margin: 0.75rem 0 0.35rem;
  letter-spacing: 0.02em;
}

.ticket-card-event__type {
  text-align: center;
  font-weight: 600;
  color: var(--green-dark);
  font-size: 0.95rem;
  margin-bottom: 0.35rem;
}

.ticket-card-event__code {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-family: "Plus Jakarta Sans", monospace;
  letter-spacing: 0.08em;
  margin-bottom: 1.25rem;
}

.ticket-card-event__qr {
  display: flex;
  justify-content: center;
  margin: 0.5rem 0 1rem;
}

.ticket-card-event__qr-frame {
  padding: 0.85rem;
  background: var(--gray-100);
  border-radius: var(--radius-sm);
  border: 1px solid var(--gray-200);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.04);
}

.ticket-card-event__qr img {
  display: block;
  width: 200px;
  height: 200px;
}

.ticket-card-event__footer {
  text-align: center;
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.5;
  padding-top: 0.5rem;
}

.ticket-card-event__perforation {
  height: 16px;
  background:
    radial-gradient(circle at 8px 8px, var(--cream) 5px, transparent 5px);
  background-size: 16px 16px;
  background-color: var(--gray-200);
  margin: 0 -1px;
}

.ticket-card-event__stub {
  background: linear-gradient(180deg, var(--cream) 0%, #f0ebe0 100%);
  padding: 0.85rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ticket-card-event__stub-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green-dark);
}

.ticket-card-event__stub-code {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.06em;
}

.ticket-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1.75rem;
}

@media print {
  .no-print { display: none !important; }
  body { background: white; }
  .site-header, .site-footer { display: none; }
  .ticket-page { padding: 0; }
  .ticket-card-event {
    box-shadow: none;
    border: 2px solid var(--green-dark);
    max-width: 100%;
  }
}

/* Admin (pages publiques avec styles admin hérités) */
.admin-layout { display: flex; min-height: 100vh; }
.admin-sidebar {
  width: 250px;
  background: linear-gradient(180deg, var(--green-dark), var(--blue));
  color: white;
  padding: 1.5rem;
  flex-shrink: 0;
}
.admin-sidebar h4 { margin-bottom: 0.25rem; }
.admin-sidebar small { color: rgba(255, 255, 255, 0.5); }
.admin-nav { list-style: none; margin-top: 1.5rem; }
.admin-nav li a {
  display: block;
  padding: 0.6rem 0.875rem;
  color: rgba(255, 255, 255, 0.8);
  border-radius: 10px;
  margin-bottom: 0.2rem;
  font-size: 0.9rem;
}
.admin-nav li a:hover,
.admin-nav li a.active { background: rgba(255, 255, 255, 0.12); color: white; }
.admin-content { flex: 1; padding: 1.5rem; background: var(--gray-100); min-width: 0; }
.stat-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 1.5rem; }
.stat-card { background: white; border-radius: var(--radius); padding: 1.25rem; box-shadow: var(--shadow); }
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--green-dark), var(--blue));
}
.login-box {
  background: white;
  border-radius: var(--radius);
  padding: 2.5rem;
  width: 100%;
  max-width: 420px;
  box-shadow: var(--shadow-lg);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 992px) {
  .hero-grid, .grid-3, .grid-4, .footer-grid, .contact-grid, .stat-cards { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .event-section .event-poster-wrap { max-width: 360px; margin: 0 auto; }
  .vote-packs { grid-template-columns: repeat(2, 1fr); }
  .hero-poster { display: none; }
  section { padding: 4rem 0; }
}

@media (max-width: 768px) {
  .site-header { padding: 0.75rem 1rem 0; }
  .navbar { padding: 0.5rem 0.5rem 0.5rem 0.85rem; border-radius: 20px; }
  .menu-toggle { display: flex; align-items: center; justify-content: center; }
  .nav-links {
    display: none;
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 1rem;
    right: 1rem;
    background: white;
    flex-direction: column;
    padding: 1rem;
    gap: 0.25rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--gray-200);
  }
  .nav-links.open { display: flex; }
  .site-header { position: relative; }
  .navbar { position: relative; flex-wrap: wrap; }
  .hero-slider { min-height: 78vh; margin-top: 0; padding-top: 1.5rem; }
  .search-bar { grid-template-columns: 1fr; }
  .admin-layout { flex-direction: column; }
  .admin-sidebar { width: 100%; }
  .footer-grid { gap: 1.75rem; }
  .page-hero { padding: 3rem 0; }
}

@media (max-width: 480px) {
  .stat-cards { grid-template-columns: 1fr; }
  .vote-packs { grid-template-columns: 1fr 1fr; }
  .countdown-item { min-width: 58px; padding: 0.6rem 0.75rem; }
  .countdown-item .num { font-size: 1.45rem; }
  .ticket-card-event__inner { padding: 1.5rem; }
  .ticket-card-event__holder { font-size: 1.45rem; }
}
