/* ==========================
   BASE GLOBAL STYLES
   ========================== */
   * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  }
  
  :root {
    --primary-color: #0D47A1;
    --secondary-color: #030588;
    --accent: #dcedc8;
    --background-color: #f9f9f9;
    --light: #f8f9fa;
    --dark: #343a40;
    --text-color: #333;
    --success-bg: #d4edda;
    --success-text: #155724;
    --success-border: #c3e6cb;
    --error-bg: #f8d7da;
    --error-text: #721c24;
    --error-border: #f5c6cb;
  }
  
  body {
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    font-size: 1rem;
  }
  
  /* ==========================
     NAVIGATION BAR
     ========================== */
  .navbar {
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
    position: relative;
    z-index: 100;
  }
  
  .navbar .logo img {
    height: 50px;
  }
  
  .navbar .nav-links {
    list-style: none;
    display: flex;
    gap: 1.5rem;
  }
  
  .navbar .nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
  }
  
  .navbar .nav-links a:hover {
    color: var(--accent);
  }
  
  .menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
  }
  
  /* ==========================
     FORM SECTION
     ========================== */
  .form-section {
    max-width: 720px;
    margin: 2rem auto;
    background-color: white;
    padding: 2.5rem 2rem;
    border-radius: 16px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
  }
  
  .form-section h1 {
    margin-bottom: 2rem;
    text-align: center;
    color: var(--primary-color);
    font-size: 2rem;
  }
  
  form label {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 600;
    color: var(--dark);
  }
  
  form input,
  form select {
    width: 100%;
    padding: 0.75rem;
    margin-bottom: 1.5rem;
    border: 1px solid #ccc;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.2s ease;
    background-color: #fff;
  }
  
  form input:focus,
  form select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 5px rgba(13, 71, 161, 0.25);
    outline: none;
  }
  
  form input[type="submit"] {
    background-color: var(--secondary-color);
    color: white;
    padding: 0.85rem;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
  }
  
  form input[type="submit"]:hover {
    background-color: var(--primary-color);
    transform: scale(1.02);
  }
  
  p.spam-message {
    margin-top: 1rem;
    color: #f39c12;
    font-size: 1rem;
    font-weight: bold;
    text-align: center;
  }
  
  /* ==========================
     MESSAGES
     ========================== */
  .message {
    max-width: 700px;
    margin: 2rem auto;
    padding: 1.2rem;
    border-radius: 10px;
    font-size: 1.05rem;
    background-color: var(--success-bg);
    color: var(--success-text);
    border: 1px solid var(--success-border);
    text-align: center;
  }
  
  .message.error {
    background-color: var(--error-bg);
    color: var(--error-text);
    border-color: var(--error-border);
  }
  
  /* ==========================
     FOOTER
     ========================== */
  footer {
    background-color: #e0e0e0;
    text-align: center;
    padding: 1rem;
    font-size: 0.9rem;
    color: #333;
  }
  
  /* ==========================
     POPUP
     ========================== */
  #popup-avertissement {
    position: fixed;
    bottom: 20px;
    right: 20px;
    max-width: 320px;
    background: #fff9e6;
    border: 2px solid #f2c94c;
    border-radius: 10px;
    padding: 16px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    animation: fadeIn 0.5s ease-in-out;
  }
  
  #popup-avertissement h4 {
    margin-top: 0;
    font-size: 16px;
    color: #b36b00;
  }
  
  #popup-avertissement p {
    margin: 8px 0;
    font-size: 14px;
    color: #333;
  }
  
  #popup-avertissement small {
    display: block;
    margin-top: 8px;
    font-size: 12px;
    color: #777;
  }
  
  #fermer-popup {
    background: none;
    border: none;
    color: #b36b00;
    font-weight: bold;
    float: right;
    font-size: 16px;
    cursor: pointer;
  }
  
  @keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
  }
  
  /* ==========================
     RESPONSIVE DESIGN
     ========================== */
  @media (max-width: 768px) {
    .navbar {
      flex-direction: row;
      justify-content: space-between;
      position: relative;
    }
  
    .menu-toggle {
      display: block;
    }
  
    .nav-links {
      display: none;
      flex-direction: column;
      background-color: var(--primary-color);
      width: 100%;
      position: absolute;
      top: 100%;
      right: 0;
      left: 0;
      padding: 1rem;
    }
  
    .nav-links.show {
      display: flex;
    }
  
    .nav-links a {
      padding: 0.5rem 0;
      border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    }
  
    .form-section {
      margin: 1rem;
      padding: 2rem 1.2rem;
    }
  
    .form-section h1 {
      font-size: 1.6rem;
    }
  
    form input,
    form select {
      font-size: 1rem;
      padding: 0.7rem;
    }
  
    p.spam-message {
      font-size: 0.95rem;
    }
  
    .message {
      font-size: 1rem;
      padding: 1rem;
    }
  }
  