/* ============================================
   CONCOURS NEIGE - DESIGN PREMIUM
   ============================================ */

/* Variables */
:root {
  --cn-primary: #1e88e5;
  --cn-primary-dark: #1565c0;
  --cn-gold: #ffd700;
  --cn-gold-dark: #c9a227;
  --cn-silver: #c0c0c0;
  --cn-silver-dark: #8e8e8e;
  --cn-dark: #0f172a;
  --cn-text: #334155;
  --cn-muted: #64748b;
  --cn-light: #f8fafc;
  --cn-border: #e2e8f0;
  --cn-white: #ffffff;
  --cn-gradient-winter: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f64f59 100%);
  --cn-gradient-snow: linear-gradient(180deg, #e8f4f8 0%, #ffffff 100%);
  --cn-gradient-gold: linear-gradient(135deg, #f5af19 0%, #f12711 100%);
  --cn-shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
  --cn-shadow-md: 0 8px 24px rgba(0,0,0,0.12);
  --cn-shadow-lg: 0 16px 48px rgba(0,0,0,0.15);
  --cn-shadow-glow: 0 0 40px rgba(30, 136, 229, 0.3);
}

/* ============================================
   PARTENAIRE BANNER - PREMIUM
   ============================================ */
.cn-partner-banner {
  background: linear-gradient(180deg, #f0fdf4 0%, #ffffff 100%);
  border-bottom: 2px solid #d1fae5;
  padding: 24px 16px;
  position: relative;
}
.cn-partner-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #10b981, #06b6d4, #10b981);
}
.cn-partner-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}
.cn-partner-text {
  font-size: 11px;
  font-weight: 600;
  color: #9ca3af;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin: 0;
}
.cn-partner-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
}
.cn-partner-logo-link {
  display: inline-block;
  transition: all 0.3s ease;
}
.cn-partner-logo-link:hover {
  transform: scale(1.03);
}
.cn-partner-logo {
  height: 100px;
  width: auto;
  max-width: 280px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}
.cn-partner-name {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  color: #065f46;
  text-decoration: none;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 0;
  background: none;
  border-bottom: 2px solid #10b981;
  padding-bottom: 2px;
  transition: all 0.2s ease;
}
.cn-partner-name:hover {
  color: #059669;
  border-bottom-color: #059669;
}

/* ============================================
   HERO SECTION - SPECTACULAIRE
   ============================================ */
.cn-hero {
  background: 
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Ccircle cx='50' cy='50' r='1' fill='%23e2e8f0' opacity='0.5'/%3E%3C/svg%3E") repeat,
    linear-gradient(180deg, #1e3a5f 0%, #2d5a87 30%, #4a90b8 60%, #87ceeb 85%, #e8f4f8 100%);
  background-size: 30px 30px, 100% 100%;
  position: relative;
  overflow: hidden;
  padding-bottom: 60px;
}
.cn-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 400'%3E%3Ccircle cx='50' cy='80' r='3' fill='white' opacity='0.8'/%3E%3Ccircle cx='150' cy='40' r='2' fill='white' opacity='0.6'/%3E%3Ccircle cx='250' cy='100' r='4' fill='white' opacity='0.7'/%3E%3Ccircle cx='350' cy='60' r='2' fill='white' opacity='0.5'/%3E%3Ccircle cx='100' cy='150' r='3' fill='white' opacity='0.6'/%3E%3Ccircle cx='300' cy='180' r='2' fill='white' opacity='0.7'/%3E%3Ccircle cx='200' cy='200' r='3' fill='white' opacity='0.5'/%3E%3C/svg%3E");
  animation: snowfall 20s linear infinite;
  pointer-events: none;
}
@keyframes snowfall {
  0% { transform: translateY(-100px); }
  100% { transform: translateY(100px); }
}
.cn-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(180deg, transparent 0%, #ffffff 100%);
  pointer-events: none;
}

.cn-hero-inner {
  position: relative;
  z-index: 2;
  padding: 50px 0 40px;
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 40px;
  align-items: start;
}

.cn-hero-text {
  color: var(--cn-white);
}

.cn-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 50px;
  font-size: 14px;
  font-weight: 700;
  color: var(--cn-white);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.cn-badge::before {
  content: '❄️';
  font-size: 18px;
}

.cn-hero h1 {
  margin: 24px 0 20px;
  font-size: 48px;
  font-weight: 900;
  line-height: 1.1;
  color: var(--cn-white);
  text-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.cn-hero-subtitle {
  font-size: 20px;
  line-height: 1.6;
  color: rgba(255,255,255,0.95);
  margin-bottom: 30px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}
.cn-hero-subtitle strong {
  color: #fef08a;
}

/* ============================================
   PRIZES - PREMIUM CARDS
   ============================================ */
.cn-prizes-section {
  margin: 30px 0;
}
.cn-prizes-title {
  font-size: 16px;
  font-weight: 800;
  color: rgba(255,255,255,0.9);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 2px;
}
.cn-prizes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.cn-prizes.vertical {
  grid-template-columns: 1fr;
}

.cn-prize {
  background: var(--cn-white);
  border-radius: 24px;
  padding: 28px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--cn-shadow-lg);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.cn-prize:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 60px rgba(0,0,0,0.2);
}

/* Gold Prize */
.cn-prize.gold {
  background: linear-gradient(145deg, #fffef5 0%, #fff8e1 100%);
  border: 2px solid #ffd54f;
}
.cn-prize.gold::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, #ffd700, #ffb300, #ffd700);
}
.cn-prize.gold::after {
  content: '🏆';
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 50px;
  opacity: 0.15;
}

/* Silver Prize */
.cn-prize.silver {
  background: linear-gradient(145deg, #fafafa 0%, #f5f5f5 100%);
  border: 2px solid #bdbdbd;
}
.cn-prize.silver::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, #e0e0e0, #9e9e9e, #e0e0e0);
}
.cn-prize.silver::after {
  content: '🎬';
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 50px;
  opacity: 0.15;
}

.cn-prize-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}
.cn-prize-rank {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 900;
  color: var(--cn-white);
  flex-shrink: 0;
}
.cn-prize.gold .cn-prize-rank {
  background: linear-gradient(135deg, #ffd700 0%, #ff8f00 100%);
  box-shadow: 0 6px 20px rgba(255, 193, 7, 0.5);
}
.cn-prize.silver .cn-prize-rank {
  background: linear-gradient(135deg, #bdbdbd 0%, #757575 100%);
  box-shadow: 0 6px 20px rgba(158, 158, 158, 0.5);
}

.cn-prize-title {
  font-size: 24px;
  font-weight: 900;
  color: var(--cn-dark);
  line-height: 1.2;
}

.cn-prize-content {
  position: relative;
  z-index: 1;
}
.cn-prize-desc {
  font-size: 17px;
  color: var(--cn-text);
  line-height: 1.7;
  margin-bottom: 16px;
}
.cn-prize-desc strong {
  color: var(--cn-dark);
  font-weight: 700;
}
.cn-prize-desc a {
  color: var(--cn-primary);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 2px solid rgba(30, 136, 229, 0.3);
  transition: border-color 0.2s;
}
.cn-prize-desc a:hover {
  border-bottom-color: var(--cn-primary);
}

.cn-prize-highlight {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
  color: var(--cn-white);
  padding: 10px 20px;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 16px;
  box-shadow: 0 4px 15px rgba(238, 90, 36, 0.4);
}

.cn-prize-features {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}
.cn-prize-feature {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0,0,0,0.04);
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 14px;
  color: var(--cn-text);
  font-weight: 600;
}
.cn-prize-feature .icon {
  font-size: 16px;
}

.cn-prize-condition {
  margin-top: 16px;
  padding: 14px 20px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 800;
  text-align: center;
  position: relative;
}
.cn-prize.gold .cn-prize-condition {
  background: #fffbeb;
  color: #b45309 !important;
  border: 2px solid #f59e0b;
}
.cn-prize.silver .cn-prize-condition {
  background: #f9fafb;
  color: #374151 !important;
  border: 2px solid #9ca3af;
}

.cn-prize-link {
  display: inline-block;
  margin-top: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--cn-primary);
  text-decoration: none;
  transition: all 0.2s;
}
.cn-prize-link:hover {
  color: var(--cn-primary-dark);
  text-decoration: underline;
}

/* ============================================
   CTA BUTTONS
   ============================================ */
.cn-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 30px;
}
.cn-cta .btn.primary {
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
  color: var(--cn-white);
  padding: 18px 36px;
  font-size: 18px;
  font-weight: 800;
  border-radius: 60px;
  border: none;
  box-shadow: 0 8px 25px rgba(238, 90, 36, 0.4);
  transition: all 0.3s ease;
  text-decoration: none;
}
.cn-cta .btn.primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(238, 90, 36, 0.5);
}
.cn-cta .btn:not(.primary) {
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(10px);
  color: var(--cn-white);
  padding: 18px 36px;
  font-size: 18px;
  font-weight: 700;
  border-radius: 60px;
  border: 2px solid rgba(255,255,255,0.4);
  transition: all 0.3s ease;
  text-decoration: none;
}
.cn-cta .btn:not(.primary):hover {
  background: rgba(255,255,255,0.3);
  border-color: rgba(255,255,255,0.6);
}

.cn-meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 24px;
}
.cn-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(10px);
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  color: var(--cn-white);
}
.cn-meta-item.cn-ended {
  background: rgba(16, 185, 129, 0.3);
}

/* ============================================
   HERO CARD - STEPS
   ============================================ */
.cn-hero-card {
  background: var(--cn-white);
  border-radius: 28px;
  padding: 32px;
  box-shadow: var(--cn-shadow-lg);
}
.cn-hero-card-title {
  font-size: 20px;
  font-weight: 900;
  color: var(--cn-dark);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.cn-hero-card-title::before {
  content: '📸';
  font-size: 28px;
}

.cn-steps {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.cn-step {
  display: flex;
  gap: 16px;
  padding: 16px;
  background: var(--cn-light);
  border-radius: 16px;
  transition: all 0.3s ease;
}
.cn-step:hover {
  background: #e8f4fc;
  transform: translateX(4px);
}
.cn-step-n {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--cn-primary) 0%, var(--cn-primary-dark) 100%);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 900;
  color: var(--cn-white);
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(30, 136, 229, 0.3);
}
.cn-step-content {
  flex: 1;
}
.cn-step-title {
  font-size: 17px;
  font-weight: 800;
  color: var(--cn-dark);
  margin-bottom: 4px;
}
.cn-step-desc {
  font-size: 15px;
  color: var(--cn-muted);
  line-height: 1.5;
}

.cn-card-note {
  margin-top: 24px;
  padding: 18px;
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border-radius: 16px;
  font-size: 15px;
  color: #92400e;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.cn-card-note::before {
  content: '💡';
  font-size: 20px;
  flex-shrink: 0;
}
.cn-card-note strong {
  color: #78350f;
}

/* ============================================
   GALLERY SECTION
   ============================================ */
.cn-section {
  padding: 50px 0;
}
.cn-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 30px;
}
.cn-section-head h2 {
  font-size: 32px;
  font-weight: 900;
  color: var(--cn-dark);
  margin: 0;
}
.cn-section-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

/* Search */
.cn-search {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.cn-search-input {
  min-width: 280px;
  padding: 14px 24px;
  border: 2px solid var(--cn-border);
  border-radius: 50px;
  font-size: 16px;
  background: var(--cn-white);
  transition: all 0.3s ease;
  outline: none;
}
.cn-search-input:focus {
  border-color: var(--cn-primary);
  box-shadow: 0 0 0 4px rgba(30, 136, 229, 0.15);
}
.cn-search-input::placeholder {
  color: var(--cn-muted);
}

/* Grid */
.cn-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.cn-card {
  background: var(--cn-white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--cn-shadow-md);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
}
.cn-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--cn-shadow-lg);
}
.cn-img {
  height: 200px;
  background: #e2e8f0 center/cover no-repeat;
  position: relative;
  overflow: hidden;
}
.cn-card:hover .cn-img {
  transform: scale(1.05);
}
.cn-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.1) 100%);
}
.cn-card-body {
  padding: 18px;
}
.cn-card-title {
  font-size: 17px;
  font-weight: 800;
  color: var(--cn-dark);
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cn-card-sub {
  font-size: 14px;
  color: var(--cn-muted);
  margin-bottom: 10px;
}
.cn-like {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 800;
  color: var(--cn-dark);
}
.cn-like.big {
  font-size: 22px;
}
.cn-heart {
  color: #ef4444;
  font-size: 1.1em;
}

/* ============================================
   TOP 10
   ============================================ */
.cn-top {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.cn-top-item {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--cn-white);
  border-radius: 20px;
  padding: 16px 24px;
  box-shadow: var(--cn-shadow-md);
  transition: all 0.3s ease;
  text-decoration: none;
}
.cn-top-item:hover {
  transform: translateX(8px);
  box-shadow: var(--cn-shadow-lg);
}

/* Podium styling */
.cn-top-item:nth-child(1) {
  background: linear-gradient(135deg, #fffef5 0%, #fff8e1 100%);
  border: 2px solid #ffd54f;
}
.cn-top-item:nth-child(2) {
  background: linear-gradient(135deg, #fafafa 0%, #f5f5f5 100%);
  border: 2px solid #bdbdbd;
}
.cn-top-item:nth-child(3) {
  background: linear-gradient(135deg, #fff5f0 0%, #ffede6 100%);
  border: 2px solid #ffab91;
}

.cn-rank {
  width: 50px;
  height: 50px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 900;
  color: var(--cn-white);
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--cn-primary) 0%, var(--cn-primary-dark) 100%);
}
.cn-top-item:nth-child(1) .cn-rank {
  background: linear-gradient(135deg, #ffd700 0%, #ff8f00 100%);
  box-shadow: 0 4px 15px rgba(255, 193, 7, 0.4);
}
.cn-top-item:nth-child(2) .cn-rank {
  background: linear-gradient(135deg, #bdbdbd 0%, #757575 100%);
  box-shadow: 0 4px 15px rgba(158, 158, 158, 0.4);
}
.cn-top-item:nth-child(3) .cn-rank {
  background: linear-gradient(135deg, #ff8a65 0%, #d84315 100%);
  box-shadow: 0 4px 15px rgba(255, 138, 101, 0.4);
}

.cn-top-thumb {
  width: 100px;
  height: 70px;
  border-radius: 14px;
  background: #e2e8f0 center/cover no-repeat;
  flex-shrink: 0;
  box-shadow: var(--cn-shadow-sm);
}
.cn-top-meta {
  flex: 1;
  min-width: 0;
}
.cn-top-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--cn-dark);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cn-top-sub {
  font-size: 14px;
  color: var(--cn-muted);
}

/* ============================================
   PAGINATION
   ============================================ */
.cn-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 40px;
  flex-wrap: wrap;
}
.cn-pages {
  display: flex;
  gap: 8px;
  align-items: center;
}
.cn-page {
  min-width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border-radius: 12px;
  border: 2px solid var(--cn-border);
  background: var(--cn-white);
  font-size: 16px;
  font-weight: 700;
  color: var(--cn-dark);
  text-decoration: none;
  transition: all 0.2s ease;
}
.cn-page:hover {
  border-color: var(--cn-primary);
  color: var(--cn-primary);
}
.cn-page.is-active {
  background: var(--cn-primary);
  border-color: var(--cn-primary);
  color: var(--cn-white);
}
.cn-ellipsis {
  color: var(--cn-muted);
  padding: 0 8px;
}

/* ============================================
   PHOTO PAGE
   ============================================ */
.cn-breadcrumb {
  padding: 16px 0;
  font-size: 15px;
  color: var(--cn-muted);
}
.cn-breadcrumb a {
  color: var(--cn-primary);
  font-weight: 700;
  text-decoration: none;
}
.cn-breadcrumb span {
  margin: 0 10px;
}

.cn-photo-layout {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 30px;
  align-items: start;
}
.cn-photo {
  background: var(--cn-white);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--cn-shadow-lg);
}
.cn-photo-img {
  aspect-ratio: 4/3;
  max-height: 500px;
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%) center/cover no-repeat;
  cursor: zoom-in;
}
.cn-photo-hint {
  text-align: center;
  padding: 10px;
  font-size: 13px;
  color: var(--cn-muted);
  background: var(--cn-light);
}
.cn-photo-info {
  padding: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--cn-border);
}
.cn-photo-title {
  font-size: 28px;
  font-weight: 900;
  color: var(--cn-dark);
  margin: 0 0 6px;
}
.cn-photo-sub {
  font-size: 16px;
  color: var(--cn-muted);
}

.cn-share {
  padding: 20px 24px;
  border-top: 1px solid var(--cn-border);
  background: var(--cn-light);
}
.cn-share-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--cn-dark);
  margin-bottom: 14px;
}
.cn-share-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Vote Card */
.cn-vote {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.cn-vote-card, .cn-side-card {
  background: var(--cn-white);
  border-radius: 24px;
  padding: 28px;
  box-shadow: var(--cn-shadow-lg);
}
.cn-vote-card h2 {
  font-size: 26px;
  font-weight: 900;
  color: var(--cn-dark);
  margin: 0 0 20px;
}
.cn-side-card h3 {
  font-size: 22px;
  font-weight: 900;
  color: var(--cn-dark);
  margin: 0 0 20px;
}

/* Forms */
.cn-form label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--cn-muted);
  margin: 16px 0 8px;
}
.cn-form input[type="text"],
.cn-form input[type="email"] {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid var(--cn-border);
  border-radius: 14px;
  font-size: 16px;
  transition: all 0.2s ease;
  outline: none;
}
.cn-form input:focus {
  border-color: var(--cn-primary);
  box-shadow: 0 0 0 4px rgba(30, 136, 229, 0.15);
}
.cn-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.cn-check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 14px 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--cn-text);
  cursor: pointer;
}
.cn-check input {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  accent-color: var(--cn-primary);
}
.cn-form .btn.primary {
  width: 100%;
  margin-top: 20px;
  padding: 16px;
  font-size: 18px;
}

/* Alerts */
.cn-alert {
  padding: 18px 22px;
  border-radius: 16px;
  font-size: 16px;
  font-weight: 600;
  margin: 16px 0;
}
.cn-alert.success {
  background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
  color: #065f46;
  border: 1px solid #34d399;
}
.cn-alert.error {
  background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
  color: #991b1b;
  border: 1px solid #f87171;
}
.cn-alert.info {
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
  color: #1e40af;
  border: 1px solid #60a5fa;
}

/* Last votes */
.cn-last-votes {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 2px dashed var(--cn-border);
}
.cn-last-votes h3 {
  font-size: 18px;
  font-weight: 800;
  color: var(--cn-dark);
  margin: 0 0 16px;
}
.cn-last-votes ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cn-last-votes li {
  display: flex;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--cn-light);
  border-radius: 12px;
  font-size: 15px;
  color: var(--cn-text);
}
.cn-vote-date {
  color: var(--cn-muted);
  font-size: 13px;
}

/* Double Vote Badge */
.cn-vote-double {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 8px;
  width: 28px;
  height: 28px;
  background: linear-gradient(145deg, #ffd700 0%, #ffb300 50%, #ff8c00 100%);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  border-radius: 50%;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
  box-shadow: 
    0 2px 8px rgba(255, 140, 0, 0.5),
    inset 0 1px 0 rgba(255,255,255,0.4),
    inset 0 -1px 0 rgba(0,0,0,0.1);
  animation: cn-double-pulse 2s ease-in-out infinite;
  position: relative;
}
.cn-vote-double::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 2px solid rgba(255, 215, 0, 0.4);
  animation: cn-double-ring 2s ease-in-out infinite;
}
@keyframes cn-double-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}
@keyframes cn-double-ring {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.15); }
}

/* Double Vote Offer Card */
.cn-double-vote-offer {
  margin-top: 20px;
  padding: 20px;
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border: 2px solid #f59e0b;
  border-radius: 16px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.cn-double-vote-icon {
  font-size: 40px;
  flex-shrink: 0;
}
.cn-double-vote-content {
  flex: 1;
}
.cn-double-vote-content h4 {
  margin: 0 0 8px 0;
  font-size: 18px;
  font-weight: 800;
  color: #92400e;
}
.cn-double-vote-content p {
  margin: 0 0 14px 0;
  font-size: 14px;
  color: #78350f;
  line-height: 1.5;
}
.cn-double-vote-btn {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
  border: none !important;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4) !important;
}
.cn-double-vote-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.5) !important;
}

/* Double Vote Countdown Overlay */
.cn-countdown-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999999;
  padding: 20px;
  animation: cn-overlay-fadein 0.4s ease-out;
}
@keyframes cn-overlay-fadein {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes cn-overlay-fadeout {
  from { opacity: 1; }
  to { opacity: 0; }
}
.cn-countdown-card {
  background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
  border-radius: 28px;
  padding: 50px 40px;
  text-align: center;
  max-width: 480px;
  width: 100%;
  box-shadow: 
    0 30px 80px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(255,255,255,0.1);
  animation: cn-card-popup 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
}
/* Bouton fermer popup */
.cn-popup-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: #f1f5f9;
  color: #64748b;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  z-index: 10;
}
.cn-popup-close:hover {
  background: #e2e8f0;
  color: #0f172a;
  transform: scale(1.1);
}
/* Icon pour popup double vote */
.cn-double-popup-icon {
  font-size: 70px;
  margin-bottom: 20px;
  animation: cn-icon-bounce 1s ease-in-out infinite;
}
@keyframes cn-icon-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
/* Actions popup */
.cn-double-popup-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
}
.cn-double-popup-btn {
  padding: 18px 32px !important;
  font-size: 18px !important;
  border-radius: 16px !important;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
  color: #fff !important;
  border: none !important;
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4) !important;
  transition: all 0.3s ease !important;
  text-decoration: none;
  display: inline-block;
}
.cn-double-popup-btn:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 10px 30px rgba(245, 158, 11, 0.5) !important;
}
.cn-popup-skip {
  padding: 14px 24px;
  font-size: 15px;
  background: transparent;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  color: #64748b;
  cursor: pointer;
  transition: all 0.2s ease;
}
.cn-popup-skip:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #475569;
}
@keyframes cn-card-popup {
  from { 
    opacity: 0; 
    transform: scale(0.8) translateY(30px); 
  }
  to { 
    opacity: 1; 
    transform: scale(1) translateY(0); 
  }
}
.cn-countdown-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, #f59e0b, #fbbf24, #f59e0b);
}
.cn-countdown-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border-radius: 30px;
  font-size: 13px;
  font-weight: 700;
  color: #92400e;
  margin-bottom: 20px;
}
.cn-countdown-title {
  font-size: 28px;
  font-weight: 900;
  color: #0f172a;
  margin-bottom: 12px;
}
.cn-countdown-desc {
  font-size: 17px;
  color: #64748b;
  margin-bottom: 30px;
  line-height: 1.6;
}
.cn-countdown-timer {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: linear-gradient(145deg, #f59e0b 0%, #d97706 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 30px;
  box-shadow: 
    0 10px 40px rgba(245, 158, 11, 0.5),
    inset 0 2px 0 rgba(255,255,255,0.3),
    inset 0 -2px 0 rgba(0,0,0,0.1);
  position: relative;
  animation: cn-timer-pulse 1s ease-in-out infinite;
}
@keyframes cn-timer-pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 10px 40px rgba(245, 158, 11, 0.5); }
  50% { transform: scale(1.03); box-shadow: 0 15px 50px rgba(245, 158, 11, 0.6); }
}
.cn-countdown-timer::before {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 3px solid rgba(245, 158, 11, 0.3);
  animation: cn-ring-spin 3s linear infinite;
}
@keyframes cn-ring-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.cn-countdown-number {
  font-size: 56px;
  font-weight: 900;
  color: #fff;
  text-shadow: 0 3px 6px rgba(0,0,0,0.2);
  font-family: system-ui, -apple-system, sans-serif;
}
.cn-countdown-progress {
  width: 100%;
  height: 10px;
  background: #e5e7eb;
  border-radius: 5px;
  overflow: hidden;
  margin-bottom: 20px;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}
.cn-countdown-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #10b981, #34d399, #10b981);
  background-size: 200% 100%;
  border-radius: 5px;
  transition: width 1s linear;
  animation: cn-progress-shine 2s linear infinite;
}
@keyframes cn-progress-shine {
  from { background-position: 200% 0; }
  to { background-position: -200% 0; }
}
.cn-countdown-hint {
  font-size: 14px;
  color: #9ca3af;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.cn-countdown-hint::before {
  content: '⏳';
  animation: cn-hourglass 1s ease-in-out infinite alternate;
}
@keyframes cn-hourglass {
  from { transform: rotate(-15deg); }
  to { transform: rotate(15deg); }
}

/* Success popup */
.cn-double-success {
  text-align: center;
  animation: cn-success-pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes cn-success-pop {
  from { opacity: 0; transform: scale(0.8); }
  to { opacity: 1; transform: scale(1); }
}
.cn-double-success-icon {
  font-size: 80px;
  margin-bottom: 20px;
  animation: cn-success-bounce 0.6s ease-out;
}
@keyframes cn-success-bounce {
  0% { transform: scale(0); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); }
}
.cn-double-success h3 {
  font-size: 28px;
  font-weight: 900;
  color: #059669;
  margin: 0 0 12px 0;
}
.cn-double-success p {
  font-size: 17px;
  color: #374151;
  margin: 0 0 24px 0;
  line-height: 1.5;
}
.cn-double-success-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
.cn-double-success-actions .btn {
  padding: 14px 28px;
  font-size: 16px;
  font-weight: 700;
  border-radius: 14px;
  text-decoration: none;
  transition: all 0.2s ease;
}
.cn-double-success-actions .btn.primary {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #fff;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}
.cn-double-success-actions .btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
}
.cn-double-success-actions .btn:not(.primary) {
  background: #f1f5f9;
  color: #475569;
}
.cn-double-success-actions .btn:not(.primary):hover {
  background: #e2e8f0;
}

/* Error state */
.cn-double-error-icon {
  font-size: 70px;
  margin-bottom: 16px;
}
.cn-double-error h3 {
  font-size: 24px;
  font-weight: 800;
  color: #dc2626;
  margin: 0 0 10px 0;
}
.cn-double-error p {
  font-size: 16px;
  color: #64748b;
  margin: 0 0 20px 0;
}

@media (max-width: 520px) {
  .cn-countdown-card {
    padding: 40px 24px;
    border-radius: 24px;
  }
  .cn-countdown-title {
    font-size: 24px;
  }
  .cn-countdown-desc {
    font-size: 15px;
  }
  .cn-countdown-timer {
    width: 120px;
    height: 120px;
  }
  .cn-countdown-number {
    font-size: 48px;
  }
  .cn-double-success h3 {
    font-size: 24px;
  }
  .cn-double-success-actions {
    flex-direction: column;
  }
  .cn-double-success-actions .btn {
    width: 100%;
    text-align: center;
  }
}

/* Empty & Fine */
.cn-empty {
  text-align: center;
  padding: 60px 30px;
  background: var(--cn-light);
  border-radius: 24px;
  border: 3px dashed var(--cn-border);
}
.cn-empty p {
  font-size: 18px;
  color: var(--cn-muted);
  margin-bottom: 20px;
}
.cn-fineprint {
  margin-top: 30px;
  padding: 20px;
  background: var(--cn-light);
  border-radius: 16px;
  font-size: 15px;
  color: var(--cn-muted);
  text-align: center;
}
.cn-fine {
  font-size: 14px;
  color: var(--cn-muted);
  line-height: 1.6;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1100px) {
  .cn-hero-inner {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .cn-hero-card {
    max-width: 500px;
  }
  .cn-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  .cn-hero h1 {
    font-size: 36px;
  }
  .cn-prizes {
    grid-template-columns: 1fr;
  }
  .cn-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .cn-photo-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .cn-hero {
    padding-bottom: 40px;
  }
  .cn-hero-inner {
    padding: 30px 0;
  }
  .cn-hero h1 {
    font-size: 28px;
  }
  .cn-hero-subtitle {
    font-size: 16px;
  }
  .cn-badge {
    font-size: 12px;
    padding: 8px 14px;
  }
  .cn-prize {
    padding: 20px;
  }
  .cn-prize-title {
    font-size: 20px;
  }
  .cn-cta {
    flex-direction: column;
  }
  .cn-cta .btn {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
  .cn-meta {
    flex-direction: column;
    align-items: flex-start;
  }
  .cn-section-head {
    flex-direction: column;
    align-items: flex-start;
  }
  .cn-section-head h2 {
    font-size: 24px;
  }
  .cn-search {
    width: 100%;
  }
  .cn-search-input {
    width: 100%;
    min-width: 100%;
  }
  .cn-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .cn-row {
    grid-template-columns: 1fr;
  }
  .cn-top-item {
    flex-wrap: wrap;
    gap: 12px;
    padding: 14px;
  }
  .cn-top-thumb {
    width: 80px;
    height: 56px;
  }
  .cn-pagination {
    flex-direction: column;
  }
  .cn-photo-info {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .cn-share-actions {
    flex-direction: column;
  }
  .cn-share-actions .btn {
    width: 100%;
    text-align: center;
  }
  .cn-partner-banner {
    padding: 20px 16px;
  }
  .cn-partner-logo {
    height: 80px;
    max-width: 220px;
  }
  .cn-partner-name {
    font-size: 12px;
    letter-spacing: 1.5px;
  }
  .cn-partner-text {
    font-size: 10px;
  }
}

@media (max-width: 400px) {
  .cn-hero h1 {
    font-size: 24px;
  }
  .cn-prize-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}
