body, html {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', sans-serif;
    background: linear-gradient(to right, #a8dadc, #f1faee);
    min-height: 100vh;
    box-sizing: border-box;
}

* {
    box-sizing: inherit;
}

header {
    background-color: #2c3e50;
    color: white;
    padding: 16px 24px;
    display: flex;
    align-items: center;
}

header h1 {
    color: white !important;
    font-size: 1.5rem;
    margin: 0;
}

header img {
    width: 32px;
    height: 32px;
    margin-right: 16px;
}

nav {
    margin-left: auto;
    display: flex;
    gap: 16px;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
}

nav a:hover {
    text-decoration: underline;
}

.background {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    min-height: 100%;
}

.form-container {
    background-color: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    max-width: 600px;
    width: 100%;
}

h1 {
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

h2 {
    margin-top: 1.5rem;
    font-size: 1.3rem;
}

form label {
    display: block;
    margin: 0.5rem 0;
    font-weight: 500;
}

input[type="number"] {
    width: 100%;
    padding: 0.5rem;
    font-size: 1rem;
    margin-top: 0.2rem;
    border: 1px solid #ccc;
    border-radius: 8px;
}

button {
    margin-top: 1.5rem;
    width: 100%;
    padding: 0.7rem;
    font-size: 1.1rem;
    background-color: #007BFF;
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.2s ease;
}

button:hover {
    background-color: #0056b3;
}

p {
    margin: 0.5rem 0;
}

/* --- Boutons années --- */
.annees-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.annee-btn {
    flex: 1 1 calc(33% - 10px);
    padding: 10px;
    background-color: #e0e0e0;
    border: 1px solid #ccc;
    border-radius: 5px;
    cursor: pointer;
    text-align: center;
    font-size: 0.9rem;
}

.annee-btn.selected {
    background-color: #4CAF50;
    color: white;
    border-color: #4CAF50;
}

/* --- Section éditoriale en bas --- */
.editorial {
    margin-top: 40px;
    background-color: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 6px 12px rgba(0,0,0,0.1);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.editorial h2 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.editorial p {
    line-height: 1.6;
    margin-bottom: 1rem;
}

.editorial a {
    color: #007BFF;
    text-decoration: none;
}

.editorial a:hover {
    text-decoration: underline;
}

@media screen and (max-width: 600px) {
    .form-container {
        padding: 1rem;
    }

    .annee-btn {
        flex: 1 1 45%;
    }

    h1 {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1.1rem;
    }

    input[type="number"],
    button {
        font-size: 1rem;
    }

    nav {
        flex-direction: column;
        gap: 8px;
        margin-top: 10px;
    }

    .menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  cursor: pointer;
  width: 30px;
  height: 30px;
}

.menu-toggle span {
  background-color: white;
  height: 3px;
  margin: 4px 0;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Mobile mode */
@media screen and (max-width: 900px) {
  .nav-links {
    display: none !important;
  }

  .container {
    flex-direction: column;
    padding: 20px;
  }

  .header-left {
    flex-direction: row;
    align-items: center;
    gap: 12px;
    width: 100%;
  }

  header {
    flex-direction: column;
    align-items: flex-start;
  }

  h1 {
    font-size: 1.2rem;
  }
}

}
