/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  html, body {
    height: 100%;
    scroll-behavior: smooth;
    font-family: 'Lora', serif;
    background: linear-gradient(to bottom, #0f172a, #1e293b);
    color: white;
  }
  
  /* Container */
  .container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
  }
  
  /* Header */
  .main-header {
    background: rgba(30, 41, 59, 0.95);
    backdrop-filter: blur(5px);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    animation: fadeInTop 1s ease forwards;
  }
  
  .header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .logo {
    width: 60px;
  }
  
  .nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
    font-family: 'Poppins', sans-serif;
  }
  
  .nav-links li {
    position: relative;
  }
  
  .nav-links a {
    color: #cbd5e1;
    text-decoration: none;
    font-weight: 600;
    position: relative;
    transition: color 0.3s ease;
  }
  
  .nav-links a::after {
    content: '';
    position: absolute;
    width: 0%;
    height: 2px;
    background: #22c55e;
    left: 0;
    bottom: -5px;
    transition: width 0.4s ease;
  }
  
  .nav-links a:hover::after,
  .nav-links a.active::after {
    width: 100%;
  }
  
  .nav-links a:hover,
  .nav-links a.active {
    color: #22c55e;
  }
  
  /* Hero Section */
  .hero {
    position: relative;
    text-align: center;
    height: 90vh;
    background: url('abstract_white.png') center/cover no-repeat fixed;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
  }
  
  .hero::before {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.7);
  }
  
  .hero-content {
    position: relative;
    z-index: 2;
  }
  
  .hero-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-style: italic;
    margin-bottom: 2rem;
    color: #facc15;
    opacity: 0;
    animation: fadeInUp 1.5s ease forwards;
  }
  
  .main-button {
    padding: 1rem 2.5rem;
    font-size: 1.2rem;
    background: #22c55e;
    color: white;
    border: none;
    border-radius: 30px;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
  }
  
  .main-button:hover {
    background: #16a34a;
    transform: scale(1.05) rotate(-1deg);
  }
  
  /* Ideas Section */
  .ideas-section {
    background: #475569;
    padding: 5rem 2rem;
    text-align: center;
  }
  
  .ideas-section h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    font-family: 'Poppins', sans-serif;
  }
  
  .ideas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
  }
  
  .idea-item {
    background: #0f172a;
    padding: 1.5rem;
    border-radius: 12px;
    color: #e0f2fe;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column; /* 🔥 Flexbox pour pousser la date en bas */
    justify-content: space-between; /* 🔥 Distribuer espace entre texte et date */
    min-height: 250px; /* 🔥 Assurer une hauteur minimum agréable */
    word-break: break-word;
    opacity: 0;
    transform: translateY(30px);
    transition: transform 0.5s, opacity 0.5s, box-shadow 0.3s;
  }
  
  .idea-item.visible {
    opacity: 1;
    transform: translateY(0);
  }
  
  .idea-text {
    font-size: 1rem;
    margin-bottom: 1rem;
  }
  
  .idea-date {
    font-size: 0.85rem;
    color: #94a3b8;
    margin-top: auto; /* 🔥 Pousse la date tout en bas */
  }
  
  
  /* Modal */
  .modal {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
  }
  
  .modal-content {
    background: #1e293b;
    margin: 8% auto;
    padding: 2rem;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    position: relative;
    animation: fadeInModal 0.5s ease forwards;
  }
  
  .close {
    position: absolute;
    top: 15px;
    right: 20px;
    color: #cbd5e1;
    font-size: 2rem;
    cursor: pointer;
  }
  
  .modal-content h3 {
    margin-bottom: 1rem;
    font-family: 'Poppins', sans-serif;
  }
  
  #idea-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }
  
  #idea-input {
    resize: vertical;
    min-height: 100px;
    padding: 1rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    width: 100%;
  }
  
  .submit-button {
    padding: 0.8rem 2rem;
    background: #22c55e;
    border: none;
    border-radius: 8px;
    color: white;
    font-weight: bold;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    transition: background 0.3s ease;
  }
  
  .submit-button:hover {
    background: #16a34a;
  }
  
  /* Animations */
  @keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
  }
  
  @keyframes fadeInModal {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
  }
  
  @keyframes fadeInTop {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
  }
/* Effet hover sur les cartes d'idées */
.idea-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
  }
  
  /* Toast Notification */
  .toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #22c55e;
    color: white;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    z-index: 2000;
  }
  
  .toast.show {
    opacity: 1;
    transform: translateY(0);
  }
/* Flèche de scroll */
.scroll-down {
    margin-top: 2rem;
    animation: bounce 2s infinite;
  }
  
  .scroll-down span {
    font-size: 2rem;
    color: #22c55e;
  }
  
  /* Animation de rebond */
  @keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
      transform: translateY(0); 
    }
    40% {
      transform: translateY(10px);
    }
    60% {
      transform: translateY(5px);
    }
  }

  .footer {
    background-color: #1e293b;
    padding: 2rem;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.1);
  }
  
  .footer p {
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    color: #cbd5e1;
    margin-bottom: 1rem;
  }
  
  .footer-social {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin: 1rem 0;
  }
  
  .footer-social a img {
    width: 28px;
    height: 28px;
    opacity: 0.7;
    transition: transform 0.3s ease, opacity 0.3s ease;
  }
  
  .footer-social a:hover img {
    opacity: 1;
    transform: scale(1.1);
  }
  
  .footer-credit {
    font-size: 0.9rem;
    color: #94a3b8;
    font-style: italic;
  }
  
/* --- MOBILE HEADER --- */
.mobile-menu-toggle {
  display: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: #22c55e;
}

@media screen and (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    background: #1e293b;
    width: 100%;
    flex-direction: column;
    gap: 1.2rem;
    padding: 2rem;
    z-index: 999;
  }

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

  .mobile-menu-toggle {
    display: block;
  }

  .header-container {
    flex-direction: row;
    justify-content: space-between;
  }
}
