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

body {
    font-family: 'Inter', sans-serif;
    /* background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%); */
    background: white;
    background-attachment: fixed;
    min-height: 100vh;
    color: #2d3748;
    line-height: 1.6;
    animation: gradientShift 10s ease infinite;
}

/* @keyframes gradientShift {
    0%, 100% {
        background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
    }
    50% {
        background: linear-gradient(135deg, #fcb69f 0%, #ffecd2 100%);
    }
} */

/* Navigation */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

/* Logo dans la navigation */
.brand-logo {
    height: 40px;
    width: auto;
    margin-right: 0.5rem;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 1.25rem;
    color: #1e293b;
}

/* Section des cartes */
.cards-section {
    margin: 60px auto;
    max-width: 1500px;
    padding: 0 20px;
}

.cards-title {
    text-align: center;
    font-size: 26px;
    font-weight: 600;
    margin-bottom: 30px;
}

.cards-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 30px;
  justify-items: center;
  margin: 40px auto;
  padding: 0 20px;
  max-width: 1500px;
}

/* Responsive grid pour 5 candidats */
@media (min-width: 1200px) {
  .cards-container {
    grid-template-columns: repeat(3, 1fr);
    gap: 35px;
    max-width: 1500px;
  }
}

@media (min-width: 800px) and (max-width: 1199px) {
  .cards-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 760px;
  }
}

@media (max-width: 799px) {
  .cards-container {
    grid-template-columns: 1fr;
    gap: 15px;
    padding: 0 10px;
    max-width: 100%;
  }

  .card {
    max-width: none;
    min-height: 320px;
    padding: 12px;
  }

  .card-image {
    height: 140px;
  }

  .card-content {
    padding: 12px;
  }

  .card h3 {
    font-size: 0.95rem;
    margin-bottom: 8px;
  }

  .company-name {
    font-size: 0.85rem;
    margin-bottom: 8px;
  }

  .card p {
    font-size: 0.8rem;
    line-height: 1.4;
  }
}

/* Pour les très petits écrans */
@media (max-width: 480px) {
  .cards-container {
    gap: 8px;
    padding: 0 8px;
  }

  .card {
    min-height: 280px;
    padding: 10px;
  }

  .card-image {
    height: 120px;
  }

  .card-content {
    padding: 10px;
  }

  .card h3 {
    font-size: 0.85rem;
    margin-bottom: 6px;
  }

  .company-name {
    font-size: 0.8rem;
    margin-bottom: 6px;
  }

  .card p {
    font-size: 0.75rem;
    line-height: 1.3;
  }

  .social-icons {
    gap: 8px;
    margin-top: 8px;
  }

  .social-icons a {
    width: 28px;
    height: 28px;
    font-size: 0.8rem;
  }

  .page-header {
    padding: 1.5rem 1rem 1rem;
  }

  .page-header h1 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
  }

  .page-header p {
    font-size: 0.9rem;
  }
}



.card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: 500px;
    max-width: 380px;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    backdrop-filter: blur(10px);
    margin: 0 auto;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, rgba(147, 51, 234, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.card:hover::before {
    opacity: 1;
}

.card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

/* Styles pour les cartes de vote */
.candidate-card {
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.candidate-card:hover {
    border-color: rgba(59, 130, 246, 0.3);
    transform: translateY(-15px) scale(1.03);
    box-shadow: 0 25px 50px rgba(59, 130, 246, 0.2);
}

.candidate-card.selected {
    border-color: #10b981;
    border-width: 4px;
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(16, 185, 129, 0.3);
}

.candidate-card.selected::before {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(5, 150, 105, 0.15) 100%);
    opacity: 1;
}

.candidate-card.selected:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 25px 50px rgba(16, 185, 129, 0.4);
}

/* Indicateur de sélection */
.selection-indicator {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #10b981;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    opacity: 0;
    transform: scale(0.3);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 10;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

.candidate-card.selected .selection-indicator {
    opacity: 1;
    transform: scale(1);
    animation: checkmarkBounce 0.6s ease-out;
}

/* Badge "SÉLECTIONNÉ" */
.candidate-card.selected::after {
    content: "✓ SÉLECTIONNÉ";
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    background: #10b981;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
    animation: slideUpFade 0.5s ease-out;
}

@keyframes checkmarkBounce {
    0% { transform: scale(0.3); opacity: 0; }
    50% { transform: scale(1.2); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes slideUpFade {
    0% { transform: translateX(-50%) translateY(20px); opacity: 0; }
    100% { transform: translateX(-50%) translateY(0); opacity: 1; }
}

/* Styles pour l'option "Aucun" */
.none-option {
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    border: 2px dashed #cbd5e1;
}

.none-option:hover {
    border-color: #64748b;
    background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
}

.none-option.selected {
    border-color: #ef4444;
    background: linear-gradient(135deg, #fef2f2, #fee2e2);
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.2);
}

.none-option.selected .selection-indicator {
    background: #ef4444;
}

.none-content {
    padding: 2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

.none-icon {
    font-size: 3rem;
    color: #64748b;
    margin-bottom: 1rem;
}

.none-option.selected .none-icon {
    color: #ef4444;
}

/* Instructions de catégorie */
.category-instruction {
    text-align: center;
    color: #64748b;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    font-style: italic;
}

.card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}

.card-image img,
.card > img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    object-position: center 20%;
    transition: transform 0.5s ease;
    position: relative;
    z-index: 2;
}

.card:hover .card-image img,
.card:hover > img {
    transform: scale(1.05);
}

/* Positionnement spécifique pour certaines images */
.card-image img[alt*="Théodore"],
.card-image img[alt*="SANWIDI"] {
    object-position: center 15%;
}

.card-image img[alt*="Yann"],
.card-image img[alt*="TRAORE"] {
    object-position: center 2%;
    transform: scale(1.5);
}

.card-image img[alt*="Ketsia"],
.card-image img[alt*="BASSOUROU"] {
    object-position: center 5%;
    transform: scale(1.3);
}

.card-image img[alt*="Ely"],
.card-image img[alt*="LOUE"] {
    object-position: center;
}

.card-image img[alt*="Relwendé"],
.card-image img[alt*="ZOUNDI"] {
    object-position: center 7%;
    transform: scale(1.3);
}

.card-image img[alt*="Kiswensida"],
.card-image img[alt*="Charifatou"],
.card-image img[alt*="SIMPORE"] {
    object-position: center 15%;
    transform: scale(1);
}

.card-image img[alt*="Danielle"],
.card-image img[alt*="Wendyam"],
.card-image img[alt*="Leticia"],
.card-image img[alt*="BOUDA"] {
    object-position: center 19%;
    transform: scale(1.5);
}

.card-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: center;
    position: relative;
    z-index: 2;
    min-height: 180px;
}

/* Styles pour les cartes sans wrapper d'image */
.card > img + .card-content {
    padding-top: 15px;
}

.card h3 {
    margin: 0 0 8px 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a202c;
    letter-spacing: 0.3px;
    line-height: 1.3;
}

.company-name {
    color: #cd853f;
    font-size: 0.95rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 12px;
}

.card p {
    font-size: 0.85rem;
    color: #4a5568;
    line-height: 1.5;
    margin-bottom: 15px;
    flex-grow: 1;
    font-weight: 400;
    text-align: justify;
    text-justify: inter-word;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: auto;
}

.social-icons a {
    color: #64748b;
    font-size: 18px;
    transition: all 0.3s ease;
    text-decoration: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(100, 116, 139, 0.1);
    backdrop-filter: blur(10px);
}

.social-icons a:hover {
    color: white;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    transform: translateY(-2px) scale(1.1);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
}

.social-icons a.linkedin:hover {
    background: linear-gradient(135deg, #0077b5, #005885);
}

.social-icons a.facebook:hover {
    background: linear-gradient(135deg, #1877f2, #0d5aa7);
}

.social-icons a.twitter:hover {
    background: linear-gradient(135deg, #1da1f2, #0d8bd9);
}

.social-icons a.instagram:hover {
    background: linear-gradient(135deg, #e4405f, #833ab4);
}

.social-icons a.website:hover {
    background: linear-gradient(135deg, #10b981, #059669);
}

/* Responsive pour le logo */
@media (max-width: 768px) {
    .nav-brand .brand-text {
        display: none;
    }

    .brand-logo {
        height: 35px;
    }
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: #64748b;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    transition: all 0.2s;
}

.nav-link:hover,
.nav-link.active {
    color: #3b82f6;
    background-color: #eff6ff;
}

/* Burger Menu Styles */
.burger-menu {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
}

.burger-menu span {
    width: 25px;
    height: 3px;
    background-color: #2d3748;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

.burger-menu.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.burger-menu.active span:nth-child(2) {
    opacity: 0;
}

.burger-menu.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Page Header */
.hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../assets/img/DSC_4280.JPG');
    background-size: cover;
    background-position: 50% 30%;
    background-repeat: no-repeat;
    background-attachment: scroll;
    height: calc(100vh - 70px);
    width: 100vw;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
    padding-top: 15vh;
}


.nomination-hero {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../assets/img/IMG_9926.JPG');
    background-size: cover;
    background-position: 50% 30%;
    background-repeat: no-repeat;
    background-attachment: scroll;
    height: calc(100vh - 70px);
    width: 100vw;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
    padding-top: 15vh;
}

.page-header {
    max-width: 800px;
    padding: 2rem;
    z-index: 2;
    margin-top: 12vh;
}

.page-header .header-icon {
    font-size: 4rem;
    /* margin-bottom: 1rem; */
    display: block;
}

.page-header h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-header p {
    font-size: 1.25rem;
    margin-bottom: 0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}




/* Vote Container */
.vote-container {
    max-width: 1500px;
    margin: 2rem auto;
    padding: 0 2rem;
}

/* Section informations personnelles */
.personal-info-section {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.9) 100%);
    backdrop-filter: blur(15px);
    border: 2px solid rgba(59, 130, 246, 0.1);
    border-radius: 24px;
    padding: 2.5rem;
    margin-bottom: 3rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.personal-info-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6, #06b6d4);
    border-radius: 24px 24px 0 0;
}

.personal-info-section h2 {
    color: #1e293b;
    margin-bottom: 2rem;
    font-size: 1.6rem;
    text-align: center;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.form-group input {
    padding: 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
}

.form-group input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-2px);
}

.form-group input:invalid {
    border-color: #ef4444;
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1);
}

.email-note {
    color: #dc2626;
    font-size: 0.8rem;
    margin-top: 0.25rem;
    font-weight: 500;
}

@media (max-width: 768px) {
    .info-grid {
        grid-template-columns: 1fr;
    }

    .personal-info-section {
        padding: 1.5rem;
    }
}

/* Category Sections */
.category-section {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.9) 100%);
    backdrop-filter: blur(15px);
    border-radius: 24px;
    padding: 2.5rem;
    margin-bottom: 3rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    border: 2px solid rgba(59, 130, 246, 0.1);
    position: relative;
    overflow: hidden;
}

.category-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #f59e0b, #ef4444, #8b5cf6);
    border-radius: 24px 24px 0 0;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-5px);
    }
}

.category-section h2 {
    font-size: 1.8rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(59, 130, 246, 0.2);
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* Candidates Grid */
.candidates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
}

.candidate-option {
    display: flex;
    flex-direction: column;
    padding: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.8) 100%);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.candidate-option:hover {
    border-color: rgba(205, 133, 63, 0.6);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(205, 133, 63, 0.2);
}

.candidate-option:has(input:checked) {
    border-color: #cd853f;
    background: linear-gradient(135deg, rgba(255, 248, 220, 0.95) 0%, rgba(255, 228, 181, 0.9) 100%);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(205, 133, 63, 0.3);
}

.candidate-header {
    position: relative;
    padding: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.candidate-photo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(205, 133, 63, 0.3);
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.candidate-option:has(input:checked) .candidate-photo {
    border-color: #cd853f;
    box-shadow: 0 6px 16px rgba(205, 133, 63, 0.3);
}

.candidate-info {
    flex: 1;
    min-width: 0;
}

.candidate-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: #8b4513;
    margin: 0 0 0.25rem 0;
}

.candidate-option:has(input:checked) .candidate-name {
    color: #a0522d;
}

.candidate-title {
    font-size: 0.9rem;
    color: #6b7280;
    margin: 0 0 0.5rem 0;
    font-style: italic;
}

.candidate-radio {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 20px;
    height: 20px;
    accent-color: #cd853f;
}

.candidate-description {
    padding: 0 1.5rem 1rem 1.5rem;
    font-size: 0.9rem;
    color: #4b5563;
    line-height: 1.5;
    border-top: 1px solid #f3f4f6;
    margin-top: 0.5rem;
    padding-top: 1rem;
    text-align: justify;
    text-justify: inter-word;
}

.candidate-social {
    padding: 0 1.5rem 1.5rem 1.5rem;
    display: flex;
    gap: 0.75rem;
    justify-content: center;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f3f4f6;
    color: #6b7280;
    text-decoration: none;
    transition: all 0.2s;
    font-size: 1.1rem;
}

.social-link:hover {
    transform: scale(1.1);
}

.social-link.linkedin {
    background: #0077b5;
    color: white;
}

.social-link.twitter {
    background: #1da1f2;
    color: white;
}

.social-link.instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: white;
}

.social-link.facebook {
    background: #1877f2;
    color: white;
}

.social-link.website {
    background: #10b981;
    color: white;
}

/* Option "Aucun" spéciale */
.candidate-option.none-option {
    flex-direction: row;
    align-items: center;
    padding: 1.5rem;
    background: #f9fafb;
    border-style: dashed;
}

.candidate-option.none-option .candidate-name {
    margin-left: 1rem;
    color: #6b7280;
    font-style: italic;
    font-size: 1rem;
}

.candidate-option.none-option input[type="radio"] {
    position: static;
    width: 20px;
    height: 20px;
    margin: 0;
}

/* Verification Section */
.verification-section {
    text-align: center;
    padding: 3rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.9) 100%);
    backdrop-filter: blur(15px);
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    border: 2px solid rgba(16, 185, 129, 0.1);
    position: relative;
    overflow: hidden;
    margin-top: 2rem;
}

.verification-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #10b981, #059669);
    border-radius: 24px 24px 0 0;
}

/* ===== BOUTON DE SOUMISSION - NETTOYÉ ===== */
.proceed-button {
    /* État par défaut - DÉSACTIVÉ */
    background: linear-gradient(135deg, #94a3b8 0%, #64748b 100%);
    color: #d1d5db;
    border: none;
    padding: 1.25rem 3rem;
    font-size: 1.2rem;
    font-weight: 700;
    border-radius: 16px;
    cursor: not-allowed;
    transition: all 0.3s ease;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 15px rgba(148, 163, 184, 0.2);
    opacity: 0.6;
    pointer-events: none;
}

/* État ACTIVÉ */
.proceed-button.enabled {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    cursor: pointer;
    opacity: 1;
    pointer-events: auto;
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.3);
}

.proceed-button.enabled:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(16, 185, 129, 0.4);
}

.proceed-button.enabled:active {
    transform: translateY(0px);
}

/* ===== POPUP MODERNE ===== */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.popup-overlay.show {
    opacity: 1;
    visibility: visible;
}

.popup-container {
    background: white;
    border-radius: 24px;
    padding: 2.5rem;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    transform: scale(0.8) translateY(20px);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.popup-overlay.show .popup-container {
    transform: scale(1) translateY(0);
}

.popup-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.popup-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.popup-icon.success {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.popup-icon.error {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
}

.popup-icon.warning {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
}

.popup-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.popup-message {
    color: #6b7280;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.popup-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.popup-button {
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 1rem;
}

.popup-button.primary {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.popup-button.primary:hover {
    background: linear-gradient(135deg, #059669, #047857);
    transform: translateY(-1px);
}

.popup-button.secondary {
    background: #f3f4f6;
    color: #374151;
}

.popup-button.secondary:hover {
    background: #e5e7eb;
}

/* Animation de confettis pour le succès */
.popup-container.success::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="%2310b981"/><circle cx="80" cy="30" r="2" fill="%23f59e0b"/><circle cx="40" cy="70" r="2" fill="%23ef4444"/><circle cx="90" cy="80" r="2" fill="%236366f1"/></svg>');
    animation: confetti 3s ease-out;
    pointer-events: none;
    opacity: 0.6;
}

@keyframes confetti {
    0% { transform: translateY(100%) rotate(0deg); opacity: 1; }
    100% { transform: translateY(-100%) rotate(360deg); opacity: 0; }
}

.warning-text {
    color: #ef4444;
    font-size: 0.875rem;
    font-weight: 500;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.9) 100%);
    backdrop-filter: blur(15px);
    margin: 10% auto;
    padding: 2rem;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.modal-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #8b4513;
    margin-bottom: 1.5rem;
    text-align: center;
}

.email-input-group,
.otp-input-group {
    margin-bottom: 1.5rem;
}

.email-input-group label,
.otp-input-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #374151;
}

.email-input-group input,
.otp-input-group input {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e2e8f0;
    border-radius: 0.5rem;
    font-size: 1rem;
    margin-bottom: 1rem;
    transition: border-color 0.2s;
}

.email-input-group input:focus,
.otp-input-group input:focus {
    outline: none;
    border-color: #cd853f;
    box-shadow: 0 0 0 3px rgba(205, 133, 63, 0.1);
}

.email-input-group button,
.otp-input-group button {
    width: 100%;
    background: linear-gradient(135deg, #cd853f 0%, #a0522d 100%);
    color: white;
    border: none;
    padding: 0.75rem;
    border-radius: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(205, 133, 63, 0.3);
}

.email-input-group button:hover,
.otp-input-group button:hover {
    background: linear-gradient(135deg, #a0522d 0%, #8b4513 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(205, 133, 63, 0.4);
}

/* Responsive */
@media (max-width: 768px) {
    .cards-title {
        font-size: 22px;
    }

    .card-image,
    .card > img {
        height: 180px;
    }

    .navbar {
        padding: 1rem;
        position: relative;
    }

    .burger-menu {
        display: flex;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        padding: 1rem;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
        border-radius: 0 0 12px 12px;
        gap: 0.5rem;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-link {
        padding: 0.75rem 1rem;
        border-radius: 8px;
        text-align: center;
    }

    .page-header {
        padding: 2rem 1rem 1rem;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .vote-container {
        padding: 0 1rem;
    }

    .category-section {
        padding: 1.2rem;
        margin-bottom: 2rem;
    }

    .category-section h2 {
        font-size: 1.4rem;
        margin-bottom: 1rem;
        padding-bottom: 0.5rem;
    }

    .category-instruction {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }

    .candidates-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .candidate-option {
        padding: 1rem;
    }

    .modal-content {
        margin: 20% auto;
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .cards-title {
        font-size: 20px;
    }

    .card-image,
    .card > img {
        height: 150px;
    }
}

/* ===== POPUP DE CONFIRMATION MODERNE ===== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.modal-container {
    background: white;
    border-radius: 24px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow: hidden;
    transform: scale(0.8) translateY(50px);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.modal-overlay.show .modal-container {
    transform: scale(1) translateY(0);
}

.modal-header {
    position: relative;
    padding: 30px 30px 20px;
    text-align: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.modal-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2.5rem;
    animation: modalIconBounce 0.6s ease-out 0.3s both;
}

@keyframes modalIconBounce {
    0% { transform: scale(0) rotate(180deg); opacity: 0; }
    50% { transform: scale(1.2) rotate(0deg); opacity: 1; }
    100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.modal-content {
    padding: 30px;
    text-align: center;
}

.modal-content h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 15px;
    animation: slideInUp 0.5s ease-out 0.4s both;
}

.modal-content p {
    font-size: 1.1rem;
    color: #6b7280;
    margin-bottom: 25px;
    line-height: 1.6;
    animation: slideInUp 0.5s ease-out 0.5s both;
}

@keyframes slideInUp {
    0% { transform: translateY(30px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

.modal-details {
    background: #f8fafc;
    border-radius: 16px;
    padding: 20px;
    margin: 20px 0;
    border: 1px solid #e5e7eb;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    font-size: 0.95rem;
    color: #374151;
}

.detail-item i {
    width: 20px;
    color: #667eea;
    font-size: 1rem;
}

.progress-container {
    margin: 25px 0;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 15px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 4px;
    transition: width 0.3s ease;
    animation: progressAnimation 3s linear;
}

@keyframes progressAnimation {
    0% { width: 0%; }
    100% { width: 100%; }
}

.progress-text {
    font-size: 0.9rem;
    color: #6b7280;
    margin: 0;
}

.progress-text span {
    font-weight: 600;
    color: #667eea;
}

.modal-actions {
    padding: 0 30px 30px;
    display: flex;
    gap: 15px;
    justify-content: center;
}

.modal-actions .btn {
    flex: 1;
    max-width: 200px;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.6);
}

.btn-secondary {
    background: #f8fafc;
    color: #374151;
    border: 2px solid #e5e7eb;
}

.btn-secondary:hover {
    background: #e5e7eb;
    transform: translateY(-2px);
}

/* États du modal */
.modal-success .modal-header {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.modal-success .modal-icon {
    color: white;
}

.modal-error .modal-header {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.modal-error .modal-icon {
    color: white;
}

.modal-warning .modal-header {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.modal-warning .modal-icon {
    color: white;
}

/* Responsive */
@media (max-width: 768px) {
    .modal-container {
        width: 95%;
        margin: 20px;
    }

    .modal-header {
        padding: 25px 20px 15px;
    }

    .modal-content {
        padding: 25px 20px;
    }

    .modal-actions {
        padding: 0 20px 25px;
        flex-direction: column;
    }

    .modal-actions .btn {
        max-width: none;
    }

    .modal-icon {
        width: 70px;
        height: 70px;
        font-size: 2rem;
    }

    .modal-content h2 {
        font-size: 1.5rem;
    }
}

/* ===== CRITÈRES DES CATÉGORIES ===== */
.category-criteria {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, rgba(147, 51, 234, 0.05) 100%);
    border: 2px solid rgba(59, 130, 246, 0.1);
    border-radius: 20px;
    padding: 30px;
    margin: 25px 0;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(10px);
    position: relative;
}

.category-criteria::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    border-radius: 20px 20px 0 0;
}

.category-criteria h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.category-criteria h3 i {
    color: #3b82f6;
    font-size: 1.4rem;
}

.criteria-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
}

.criterion {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 15px;
    background: white;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.criterion:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    border-color: #3b82f6;
}

.criterion i {
    color: #3b82f6;
    font-size: 1.1rem;
    margin-top: 2px;
    flex-shrink: 0;
}

.criterion span {
    font-size: 0.9rem;
    color: #4a5568;
    line-height: 1.5;
}

.criterion strong {
    color: #2d3748;
    font-weight: 600;
}

/* Responsive pour les critères */
@media (max-width: 768px) {
    .category-criteria {
        padding: 20px;
        margin: 15px 0;
    }

    .criteria-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .criterion {
        padding: 8px;
        font-size: 0.8rem;
    }

    .criterion i {
        font-size: 0.9rem;
        min-width: 16px;
    }

    .criterion span {
        font-size: 0.75rem;
        line-height: 1.3;
    }

    .category-criteria h3 {
        font-size: 1rem;
    }
}