
/* ── TOKENS GLOBAUX ──────────────────────────────────────────── */
:root {
  --gold:         #E8B84B;
  --gold-light:   #F5D07A;
  --gold-dark:    #C9952A;
  --ink:          #0D0D0D;
  --ink-soft:     #1C1C1E;
  --surface:      #F9F7F2;
  --surface-2:    #F2EFE8;
  --muted:        #6B6558;
  --border-light: #E8E4DB;
  --trans:        .38s cubic-bezier(.4,0,.2,1);
}
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@500;700&family=DM+Sans:wght@300;400;500;600&display=swap');
body { font-family: 'DM Sans', sans-serif; }
 
/* ── SECTION TITLES ─────────────────────────────────────────── */
.sec-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.sec-eyebrow::before,
.sec-eyebrow::after {
  content: '';
  display: block;
  width: 24px; height: 1px;
  opacity: .4;
}
.sec-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 700;
  line-height: 1.2;
}
.sec-subtitle {
  font-size: .92rem;
  font-weight: 300;
  max-width: 480px;
  margin: 0 auto;
}
 
/* ══════════════════════════════════════════════════════════════
   SECTION 1 — MINISTÈRES (Institutionnel)
══════════════════════════════════════════════════════════════ */
.sec-ministere {
  background: #fff;
  padding: 80px 0;
  border-bottom: 1px solid var(--border-light);
}
.sec-ministere .sec-eyebrow { color: #4A6FA5; }
.sec-ministere .sec-eyebrow::before,
.sec-ministere .sec-eyebrow::after { background: #4A6FA5; }
.sec-ministere .sec-title { color: var(--ink); }
.sec-ministere .sec-subtitle { color: var(--muted); }
 
/* Divider institutionnel */
.ministere-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px auto 0;
  max-width: 200px;
  justify-content: center;
}
.ministere-divider-line {
  flex: 1; height: 1px;
  background: #C8D8EE;
}
.ministere-divider-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #4A6FA5;
}
 
/* Carte ministère */
.min-card {
  background: #fff;
  border: 1.5px solid var(--border-light);
  border-radius: 14px;
  padding: 28px 24px;
  height: 100%;
  transition: border-color var(--trans), box-shadow var(--trans), transform var(--trans);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  overflow: hidden;
}
.min-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px; height: 0;
  background: #4A6FA5;
  transition: height var(--trans);
  border-radius: 0 0 3px 0;
}
.min-card:hover { border-color: #C8D8EE; box-shadow: 0 8px 28px rgba(74,111,165,.1); transform: translateY(-3px); }
.min-card:hover::before { height: 100%; }
 
/* Icône */
.min-icon-wrap {
  width: 52px; height: 52px;
  border-radius: 12px;
  background: #EDF2FA;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: #4A6FA5;
  transition: background var(--trans), color var(--trans);
  flex-shrink: 0;
}
.min-card:hover .min-icon-wrap { background: #4A6FA5; color: #fff; }
 
/* Image miniature */
.min-img-wrap {
  width: 100%; height: 130px;
  border-radius: 10px;
  overflow: hidden;
}
.min-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(20%);
  transition: filter var(--trans);
}
.min-card:hover .min-img-wrap img { filter: grayscale(0); }
 
.min-card-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
  font-family: 'DM Sans', sans-serif;
}
.min-card-desc {
  font-size: .82rem;
  color: var(--muted);
  line-height: 1.6;
  flex: 1;
}
.min-card-link {
  font-size: .78rem;
  font-weight: 600;
  color: #4A6FA5;
  letter-spacing: .05em;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  text-decoration: none;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity var(--trans), transform var(--trans);
}
.min-card:hover .min-card-link { opacity: 1; transform: translateX(0); }
 
/* Ribbon officiel */
.min-ribbon {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .66rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #4A6FA5;
  background: #EDF2FA;
  border: 1px solid #C8D8EE;
  padding: 4px 10px;
  border-radius: 6px;
}
 
/* ══════════════════════════════════════════════════════════════
   SECTION 2 — EXCELLENCE (Luxe / Premium)
══════════════════════════════════════════════════════════════ */
.sec-excellence {
  background: var(--ink-soft);
  padding: 88px 0;
  position: relative;
  overflow: hidden;
}
.sec-excellence::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 40% at 15% 50%, rgba(232,184,75,.08) 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at 85% 20%, rgba(232,184,75,.06) 0%, transparent 55%);
  pointer-events: none;
}
 
.sec-excellence .sec-eyebrow { color: var(--gold); }
.sec-excellence .sec-eyebrow::before,
.sec-excellence .sec-eyebrow::after { background: var(--gold); }
.sec-excellence .sec-title { color: #fff; }
.sec-excellence .sec-subtitle { color: rgba(255,255,255,.45); }
 
/* Ligne décoration titre */
.excellence-ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 16px;
}
.orn-line { width: 40px; height: 1px; background: linear-gradient(to right, transparent, rgba(232,184,75,.5)); }
.orn-line.rev { background: linear-gradient(to left, transparent, rgba(232,184,75,.5)); }
.orn-diamond {
  width: 8px; height: 8px;
  background: var(--gold);
  transform: rotate(45deg);
  opacity: .7;
}
 
/* Carte excellence */
.exc-card {
  position: relative;
  height: 400px;
  border-radius: 18px;
  overflow: hidden;
  display: block;
  text-decoration: none;
  box-shadow: 0 8px 32px rgba(0,0,0,.3);
  transition: transform var(--trans), box-shadow var(--trans);
}
.exc-card:hover { transform: translateY(-8px) scale(1.01); box-shadow: 0 24px 56px rgba(0,0,0,.5), 0 0 0 1px rgba(232,184,75,.25); }
 
.exc-card-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .7s cubic-bezier(.4,0,.2,1);
}
.exc-card:hover .exc-card-img { transform: scale(1.09); }
 
/* Overlays */
.exc-overlay-base {
  position: absolute; inset: 0;
  background: linear-gradient(
    160deg,
    rgba(13,13,13,.2) 0%,
    rgba(13,13,13,.5) 50%,
    rgba(13,13,13,.92) 100%
  );
}
.exc-overlay-hover {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(201,149,42,.18) 0%, transparent 60%);
  opacity: 0;
  transition: opacity var(--trans);
}
.exc-card:hover .exc-overlay-hover { opacity: 1; }
 
/* Badge élite */
.exc-badge-elite {
  position: absolute;
  top: 18px; right: 18px;
  z-index: 3;
  background: rgba(13,13,13,.75);
  border: 1px solid rgba(232,184,75,.4);
  backdrop-filter: blur(10px);
  color: var(--gold-light);
  font-size: .6rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 50px;
  display: flex;
  align-items: center;
  gap: 5px;
}
.exc-badge-elite i { font-size: .75rem; color: var(--gold); }
 
/* Icône cercle */
.exc-icon-wrap {
  position: absolute;
  top: 18px; left: 18px;
  z-index: 3;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(232,184,75,.15);
  border: 1.5px solid rgba(232,184,75,.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--gold-light);
  backdrop-filter: blur(8px);
  transition: background var(--trans), transform var(--trans);
}
.exc-card:hover .exc-icon-wrap { background: rgba(232,184,75,.28); transform: scale(1.1); }
 
/* Contenu bas */
.exc-content {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  z-index: 3;
  padding: 24px 22px 22px;
}
.exc-content-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
  margin-bottom: 8px;
}
.exc-content-desc {
  font-size: .78rem;
  color: rgba(255,255,255,.55);
  line-height: 1.6;
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.exc-cta-line {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .75rem;
  font-weight: 600;
  color: var(--gold-light);
  letter-spacing: .06em;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity var(--trans), transform var(--trans);
}
.exc-card:hover .exc-cta-line { opacity: 1; transform: translateY(0); }
.exc-cta-line i { font-size: .9rem; }
 
/* Séparateur gold */
.exc-sep {
  width: 28px; height: 2px;
  background: linear-gradient(to right, var(--gold), transparent);
  border-radius: 2px;
  margin-bottom: 10px;
  transition: width var(--trans);
}
.exc-card:hover .exc-sep { width: 52px; }
 
/* ══════════════════════════════════════════════════════════════
   SECTION 3 — VOTE (Moderne / Dynamique)
══════════════════════════════════════════════════════════════ */
.sec-vote {
  background: var(--surface);
  padding: 88px 0;
  position: relative;
}
.sec-vote::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(to right, var(--gold-dark), var(--gold), var(--gold-light), var(--gold));
}
 
.sec-vote .sec-eyebrow { color: var(--gold-dark); }
.sec-vote .sec-eyebrow::before,
.sec-vote .sec-eyebrow::after { background: var(--gold-dark); }
.sec-vote .sec-title { color: var(--ink); }
.sec-vote .sec-subtitle { color: var(--muted); }
 
/* Urgency chip */
.vote-urgency-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #FFF8E7;
  border: 1.5px solid rgba(232,184,75,.4);
  border-radius: 50px;
  padding: 6px 16px;
  font-size: .73rem;
  font-weight: 600;
  color: var(--gold-dark);
  margin-bottom: 16px;
}
.live-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #E53935;
  animation: blink 1.2s infinite;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: .3; }
}
 
/* Carte vote */
.vote-card {
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  border: 1.5px solid #EDEAE3;
  box-shadow: 0 4px 16px rgba(0,0,0,.07);
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  transition: transform var(--trans), box-shadow var(--trans), border-color var(--trans);
  animation: voteCardIn .5s both;
}
@keyframes voteCardIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.vote-card:nth-child(1) { animation-delay: .05s; }
.vote-card:nth-child(2) { animation-delay: .12s; }
.vote-card:nth-child(3) { animation-delay: .19s; }
.vote-card:nth-child(4) { animation-delay: .26s; }
.vote-card:nth-child(5) { animation-delay: .33s; }
.vote-card:nth-child(6) { animation-delay: .40s; }
 
.vote-card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 20px 48px rgba(0,0,0,.13), 0 0 0 2px rgba(232,184,75,.3);
  border-color: rgba(232,184,75,.4);
}
 
/* Image */
.vote-card-img-wrap {
  position: relative;
  height: 310px;
  overflow: hidden;
}
.vote-card-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s cubic-bezier(.4,0,.2,1);
}
.vote-card:hover .vote-card-img-wrap img { transform: scale(1.06); }
 
/* Image overlay */
.vote-card-img-wrap::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 50%, rgba(13,13,13,.55) 100%);
}
 
/* Icône sur image */
.vote-img-icon {
  position: absolute;
  bottom: 14px; left: 16px;
  z-index: 2;
  width: 38px; height: 38px;
  border-radius: 10px;
  background: rgba(232,184,75,.88);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--ink);
  backdrop-filter: blur(6px);
  box-shadow: 0 3px 10px rgba(232,184,75,.4);
  transition: transform var(--trans);
}
.vote-card:hover .vote-img-icon { transform: scale(1.1) rotate(-4deg); }
 
/* NEW badge */
.vote-new-badge {
  position: absolute;
  top: 12px; right: 12px;
  z-index: 2;
  background: var(--ink);
  color: var(--gold-light);
  font-size: .58rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 6px;
}
 
/* Body */
.vote-card-body {
  padding: 20px 20px 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 10px;
}
.vote-card-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
}
.vote-card-desc {
  font-size: .82rem;
  color: var(--muted);
  line-height: 1.65;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
 
/* Progress bar */
.vote-progress-wrap { margin-top: 4px; }
.vote-progress-label {
  display: flex;
  justify-content: space-between;
  font-size: .7rem;
  color: var(--muted);
  margin-bottom: 5px;
}
.vote-progress {
  height: 4px;
  background: #EDEAE3;
  border-radius: 4px;
  overflow: hidden;
}
.vote-progress-bar {
  height: 100%;
  background: linear-gradient(to right, var(--gold-dark), var(--gold));
  border-radius: 4px;
  transition: width 1.2s cubic-bezier(.4,0,.2,1);
}
 
/* CTA S'inscrire */
.btn-inscrit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 44px;
  border-radius: 50px;
  background: var(--ink);
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-size: .83rem;
  font-weight: 600;
  letter-spacing: .03em;
  border: 1.5px solid var(--ink);
  text-decoration: none;
  transition: background var(--trans), color var(--trans), box-shadow var(--trans);
  position: relative;
  overflow: hidden;
}
.btn-inscrit::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 0%, rgba(232,184,75,.15) 50%, transparent 100%);
  opacity: 0;
  transition: opacity var(--trans);
}
.btn-inscrit:hover { background: var(--gold); color: var(--ink); border-color: var(--gold); box-shadow: 0 6px 20px rgba(232,184,75,.45); }
.btn-inscrit:hover::after { opacity: 1; }
.btn-inscrit:active { transform: scale(.97); }
 
/* Compteur participants */
.vote-participants {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: .73rem;
  color: var(--muted);
}
.vote-part-avatars {
  display: flex;
}
.vote-part-avatar {
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 2px solid #fff;
  margin-right: -7px;
  background: var(--surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .55rem;
  color: var(--muted);
  font-weight: 600;
}
 
/* Discover link */
.discover-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .85rem;
  font-weight: 600;
  /* color: var(--ink); */
  letter-spacing: .04em;
  text-decoration: none;
  border-bottom: 1.5px solid var(--gold);
  padding-bottom: 2px;
  transition: color var(--trans), gap var(--trans);
}
.discover-link:hover { color: var(--gold-dark); gap: 12px; }