main h1 {
    text-align: center;
    font-family: 'Ribeye', cursive;
    margin: 2rem 0 1rem;
    color: #2f4f4f;
}
.nav {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
    font-family: 'Open Sans', sans-serif;
}
.nav a {
    background-color: #7fb196;
    color: white;
    padding: 0.5rem 1.2rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease;
}
.nav a:hover {
    background-color: #5f8672;
}
.calendrier {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.5rem;
    margin: 0 2rem 3rem;
    font-family: 'Open Sans', sans-serif;
    background-color: #f3efdb;
    padding: 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    border-radius: 12px;
}
.jour-titre {
    text-align: center;
    font-weight: 700;
    padding: 0.75rem 0;
    background-color: #f2c98c;
    border-radius: 8px;
    color: #333;
    font-size: 1.1rem;
    box-shadow: 0 1px 4px rgba(0,0,0,0.15);
}
.case-vide {
    background: transparent;
    box-shadow: none;
    pointer-events: none;
}
.case-jour {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    border-radius: 10px;
    background-color: white;
    min-height: 100px;
    padding: 0.4rem 0.5rem 0.3rem;
    box-shadow: 0 2px 6px rgba(127, 177, 150, 0.25);
    overflow: hidden;
}
.numero-jour {
    font-weight: 700;
    color: #7fb196;
    font-size: 1.25rem;
    padding-bottom: 0.3rem;
    border-bottom: 1px solid #ddd;
}
.evenement {
    font-size: 0.85rem;
    background-color: #a7facd;
    border-radius: 12px;
    padding: 3px 7px;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.evenement a {
    color: #333;
    text-decoration: none;
    font-weight: 600;
}
.evenement a:hover {
    color: #7fb196;
    text-decoration: underline;
}
@media (max-width: 1024px) {
  .calendrier {
    margin: 0 1rem 2rem;
  }
}
@media (max-width: 768px) {
  .calendrier {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    padding: 0.5rem;
  }
  .jour-titre {
    display: none;
  }
  .nav {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }
  .nav a {
    width: 80%;
    text-align: center;
  }
  main h1 {
    font-size: 1.5rem;
  }
}
@media (max-width: 480px) {
  .calendrier {
    grid-template-columns: 1fr;
  }
  .case-jour {
    min-height: auto;
    padding: 0.5rem;
  }
  .numero-jour {
    font-size: 1.1rem;
  }
  .evenement {
    font-size: 0.8rem;
    padding: 4px 6px;
  }
  main h1 {
    font-size: 1.3rem;
  }
  .nav a {
    font-size: 0.95rem;
    padding: 0.4rem 1rem;
  }
}