/* ===== SECTION IDÉES - SYSTÈME DE VOTES BEMA ===== */

.ideas-section {
  background: linear-gradient(135deg, #2E86DE 0%, #1e40af 100%) !important;
  padding: 240px 0 240px 0 !important;
  position: relative;
  overflow: hidden;
  border-bottom-left-radius: 50px;
  border-bottom-right-radius: 50px;
}

.ideas-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary-blue), transparent);
}

.ideas-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  gap: var(--spacing-3xl);
  align-items: start;
}

/* Séparateur vertical */
.ideas-separator {
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--primary-blue), transparent);
  min-height: 600px;
  position: relative;
}

.ideas-separator::before {
  content: '💡';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--white);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 4px 20px rgba(46, 134, 222, 0.2);
}

/* Section gauche - Header */
.ideas-header {
  text-align: center;
  padding: var(--spacing-2xl);
}

.ideas-header h2 {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: var(--spacing-md);
  text-align: center;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  /* Titre "Idées" en blanc pur */
}

.ideas-subtitle {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  margin-bottom: var(--spacing-xl);
}

.ideas-description {
  /* GLASSMORPHISME MODERNE PREMIUM */
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  padding: 3rem 2.5rem; /* AUGMENTÉ: padding plus généreux */
  border-radius: 24px; /* AUGMENTÉ: coins plus arrondis */
  box-shadow: 
    0 35px 70px rgba(0, 0, 0, 0.2),
    0 10px 40px rgba(255, 255, 255, 0.15),
    inset 0 2px 0 rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.35);
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.ideas-description:hover {
  transform: translateY(-8px);
  box-shadow: 
    0 45px 90px rgba(0, 0, 0, 0.25),
    0 15px 50px rgba(255, 255, 255, 0.2),
    inset 0 2px 0 rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.45);
}

.ideas-description::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-blue), var(--secondary-blue));
  border-radius: 24px 24px 0 0; /* AJUSTÉ: pour cohérence */
}

.ideas-description h3 {
  color: var(--primary-blue);
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: var(--spacing-lg);
  text-shadow: 0 2px 4px rgba(46, 134, 222, 0.1);
  position: relative;
}

.ideas-description h3::after {
  content: '🚀';
  position: absolute;
  right: 0;
  top: 0;
  font-size: 1.5rem;
  animation: rocketFloat 3s ease-in-out infinite;
}

@keyframes rocketFloat {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-5px) rotate(5deg); }
}

.ideas-description p {
  color: var(--black);
  line-height: 1.8;
  font-weight: 500;
  font-size: 1.1rem;
  margin-bottom: var(--spacing-lg);
  text-align: justify;
}

.ideas-description p:first-of-type {
  font-weight: 600;
  color: rgba(0, 0, 0, 0.8);
}

.ideas-description p:last-of-type {
  font-style: italic;
  color: rgba(46, 134, 222, 0.8);
  border-left: 3px solid var(--primary-blue);
  padding-left: var(--spacing-md);
  margin-bottom: 0;
}

/* Icônes animées sous "Participez au changement" */
.ideas-floating-icons {
  position: absolute;
  bottom: -50px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: var(--spacing-lg);
  opacity: 0;
  animation: floatUp 2s ease-out 1s forwards;
}

.floating-icon {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-blue);
  font-size: 1.2rem;
  box-shadow: 0 4px 15px rgba(46, 134, 222, 0.2);
  animation: bounce 2s ease-in-out infinite;
}

.floating-icon:nth-child(1) { animation-delay: 0s; }
.floating-icon:nth-child(2) { animation-delay: 0.2s; }
.floating-icon:nth-child(3) { animation-delay: 0.4s; }
.floating-icon:nth-child(4) { animation-delay: 0.6s; }
.floating-icon:nth-child(5) { animation-delay: 0.8s; }

@keyframes floatUp {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.ideas-description {
  background: var(--white);
  padding: var(--spacing-xl);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 32px rgba(46, 134, 222, 0.1);
  border: 1px solid rgba(46, 134, 222, 0.1);
  position: relative;
  overflow: visible;
}

/* Section droite - Cards de votes */
.ideas-voting {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xl);
}

.idea-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-lg);
  padding: var(--spacing-xl);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.idea-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-blue), #1e40af);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.idea-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.3);
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.98);
}

.idea-card:hover::before {
  transform: scaleX(1);
}

.idea-header {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-lg);
}

.idea-icon {
  background: linear-gradient(135deg, var(--primary-blue), #1e40af);
  color: var(--white);
  width: 50px;
  height: 50px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
  /* Animations spécifiques par icône */
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

/* Animation flottement synchronisé pour toutes les icônes */
.idea-icon {
  animation: ideaFloat 4s ease-in-out infinite;
}

.idea-icon.moon-icon {
  animation-delay: 0s;
}

.idea-icon.notification-icon {
  animation-delay: 1s;
}

.idea-icon.video-icon {
  animation-delay: 2s;
}

.idea-icon.blockchain-icon {
  animation-delay: 3s;
}

@keyframes ideaFloat {
  0%, 100% { 
    transform: translateY(0px) rotate(0deg);
    box-shadow: 0 4px 15px rgba(46, 134, 222, 0.2);
  }
  50% { 
    transform: translateY(-8px) rotate(2deg);
    box-shadow: 0 8px 25px rgba(46, 134, 222, 0.3);
  }
}

/* Effet hover pour toutes les icônes */
.idea-icon:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 25px rgba(46, 134, 222, 0.3);
}

.idea-content h3 {
  color: var(--text-dark);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: var(--spacing-xs);
  line-height: 1.3;
}

.idea-content p {
  color: var(--black);
  line-height: 1.5;
  font-size: 0.95rem;
  font-weight: 500;
}

/* Système de votes */
.idea-voting-system {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--spacing-lg);
  border-top: 1px solid rgba(46, 134, 222, 0.1);
}

.vote-buttons {
  display: flex;
  gap: var(--spacing-sm);
  align-items: center;
  flex-wrap: wrap;
}

.vote-btn {
  background: var(--white);
  border: 2px solid;
  border-radius: var(--radius-md);
  padding: var(--spacing-sm) var(--spacing-md);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  min-width: 80px;
  justify-content: center;
}

.vote-btn i {
  font-size: 1rem;
}

/* Bouton Pour (vert) */
.vote-btn.pour {
  border-color: #10b981;
  color: #10b981;
}

.vote-btn.pour:hover {
  background: #10b981;
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.3);
}

.vote-btn.pour.active {
  background: #10b981;
  color: var(--white);
}

/* Bouton Contre (rouge) */
.vote-btn.contre {
  border-color: #ef4444;
  color: #ef4444;
}

.vote-btn.contre:hover {
  background: #ef4444;
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(239, 68, 68, 0.3);
}

.vote-btn.contre.active {
  background: #ef4444;
  color: var(--white);
}

/* Bouton Neutre (gris) */
.vote-btn.neutre {
  border-color: #6b7280;
  color: #6b7280;
}

.vote-btn.neutre:hover {
  background: #6b7280;
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(107, 114, 128, 0.3);
}

.vote-btn.neutre.active {
  background: #6b7280;
  color: var(--white);
}

/* Compteurs de votes */
.vote-stats {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  font-size: 0.9rem;
  color: var(--text-light);
}

.vote-count {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  font-weight: 600;
}

.vote-count.pour { color: #10b981; }
.vote-count.contre { color: #ef4444; }
.vote-count.neutre { color: #6b7280; }

/* Modal d'authentification */
.auth-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.auth-modal.active {
  opacity: 1;
  visibility: visible;
}

.auth-modal-content {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: var(--spacing-3xl);
  max-width: 400px;
  width: 90%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  transform: scale(0.9) translateY(20px);
  transition: all 0.3s ease;
}

.auth-modal.active .auth-modal-content {
  transform: scale(1) translateY(0);
}

.auth-modal-header {
  text-align: center;
  margin-bottom: var(--spacing-xl);
}

.auth-modal-header h3 {
  color: var(--primary-blue);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: var(--spacing-sm);
}

.auth-modal-header p {
  color: var(--text-light);
  line-height: 1.5;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
}

.auth-input {
  padding: var(--spacing-md);
  border: 2px solid rgba(46, 134, 222, 0.2);
  border-radius: var(--radius-md);
  font-size: 1rem;
  transition: all 0.3s ease;
}

.auth-input:focus {
  outline: none;
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(46, 134, 222, 0.1);
}

.auth-submit {
  background: linear-gradient(135deg, var(--primary-blue), #1e40af);
  color: var(--white);
  border: none;
  padding: var(--spacing-md);
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.auth-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(46, 134, 222, 0.3);
}

.auth-close {
  position: absolute;
  top: var(--spacing-lg);
  right: var(--spacing-lg);
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-light);
  cursor: pointer;
  transition: color 0.3s ease;
}

.auth-close:hover {
  color: var(--text-dark);
}

/* Responsive */
@media (max-width: 1024px) {
  .ideas-container {
    grid-template-columns: 1fr;
    gap: var(--spacing-2xl);
  }
  
  .ideas-separator {
    display: none;
  }
  
  .ideas-header {
    order: -1;
  }
}

@media (max-width: 768px) {
  .vote-buttons {
    flex-direction: column;
    gap: var(--spacing-xs);
  }
  
  .vote-btn {
    min-width: auto;
    width: 100%;
  }
  
  .idea-voting-system {
    flex-direction: column;
    gap: var(--spacing-md);
    align-items: stretch;
  }
  
  .vote-stats {
    justify-content: center;
  }
}
