body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background-color: #f5f3eb;
    color: #333;
  }
  
  #main-header {
    height: 70vh;
    position: relative;
    overflow: hidden;
    transition: height 0.6s ease;
  }
  
  #main-header.small {
    height: 100px;
  }
  
  .bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
    opacity: 0;
    transition: opacity 1s ease-in-out;
  }
  .bg1 { z-index: 1; }
  .bg2 { z-index: 2; }
  
  .overlay {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 3;
    height: 100%;
    width: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    flex-direction: column !important; /* empêche le passage en row */
    transition: padding 0.5s ease;
    padding: 60px 20px;
  }
  
  #main-header h1 {
    font-size: 3em;
    color: white;
    margin: 0;
    transition: font-size 0.4s ease;
  }
  #main-header.small h1 {
    font-size: 2em;
  }
  
  nav ul {
    list-style: none;
    margin: 20px 0 0;
    padding: 0;
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
  }
  
  #main-header.small nav ul {
    margin: 0;
  }
  
  nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
  }
  
  nav ul li a:hover {
    text-decoration: underline;
  }
  
  section {
    padding: 60px 20px;
    max-width: 1000px;
    margin: auto;
  }
  
  section h2 {
    color: #5a7d3a;
    margin-bottom: 15px;
  }
  
  form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 500px;
    margin-top: 20px;
  }
  
  input, textarea {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
  }
  
  button {
    background-color: #5a7d3a;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 5px;
    cursor: pointer;
  }
  
  button:hover {
    background-color: #46632f;
  }
  
  footer {
    background-color: #3e3e3e;
    color: white;
    text-align: center;
    padding: 20px;
    font-size: 0.9em;
  }
  .gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    padding: 20px 0;
  }
  
  .gallery-grid img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  }
  .carousel-container {
    position: relative;
    overflow: hidden;
    max-width: 1000px;
    margin: auto;
  }
  
  .carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
  }
  
  .carousel-track img {
    width: 25%; /* 4 images par slide */
    object-fit: cover;
    border-radius: 8px;
    padding: 5px;
    box-sizing: border-box;
  }
  
  .carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: #5a7d3a;
    color: white;
    border: none;
    padding: 10px;
    font-size: 24px;
    cursor: pointer;
    z-index: 2;
  }
  
  .carousel-btn.prev {
    left: 0;
  }
  
  .carousel-btn.next {
    right: 0;
  }
  .vertical-gallery-container {
    position: relative;
    height: 500px;
    overflow: hidden;
    max-width: 400px;
    margin: auto;
    border: 2px solid #5a7d3a;
    border-radius: 10px;
  }
  
  .vertical-track {
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    height: 100%;
    scroll-behavior: smooth;
  }
  
  .vertical-track img {
    width: 100%;
    height: auto;
    padding: 5px;
    object-fit: cover;
    border-bottom: 1px solid #ccc;
  }
  
  .scroll-btn {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    background-color: #5a7d3a;
    color: white;
    border: none;
    padding: 10px;
    font-size: 20px;
    z-index: 1;
    cursor: pointer;
  }
  
  .scroll-btn.up {
    top: 0;
  }
  
  .scroll-btn.down {
    bottom: 0;
  }
  .vertical-gallery-container {
    position: relative;
    height: 600px;
    overflow: hidden;
    max-width: 1000px;
    margin: auto;
    border: 2px solid #5a7d3a;
    border-radius: 10px;
  }
  
  .vertical-track {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    overflow-y: auto;
    height: 100%;
    padding: 10px;
    scroll-behavior: smooth;
  }
  
  .vertical-track img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  }
  
  .scroll-btn {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    background-color: #5a7d3a;
    color: white;
    border: none;
    padding: 10px;
    font-size: 20px;
    z-index: 1;
    cursor: pointer;
  }
  
  .scroll-btn.up {
    top: 0;
  }
  
  .scroll-btn.down {
    bottom: 0;
  }
  /* Menu sticky après le header */
#main-menu {
    position: sticky;
    top: 0;
    background-color: #5a7d3a;
    z-index: 1000;
    padding: 10px 20px;
    display: flex;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  }
  
  #main-menu ul {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
  }
  
  #main-menu ul li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
  }
  
  #main-menu ul li a:hover {
    text-decoration: underline;
  }
  #main-header h1 {
    font-size: 3em;
    color: white;
    margin: 0 auto;
    transition: font-size 0.4s ease;
    text-align: center;
  }
  #main-menu {
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 10px 20px;
    background-image: url('images/menu-bg.jpg'); /* <-- ton image ici */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  }
  
  #main-menu::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4); /* filtre sombre pour lisibilité */
    z-index: -1;
  }
  
  #main-menu ul {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
    z-index: 1;
  }
  
  #main-menu ul li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
  }
  #contact {
    padding: 60px 20px;
    background-color: #f5f5f5;
  }
  
  .contact-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-between;
    max-width: 1000px;
    margin: auto;
  }
  
  .contact-box {
    flex: 1 1 300px;
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  }
  
  .contact-box h3 {
    margin-top: 0;
    color: #5a7d3a;
  }
  
  .contact-box p {
    margin: 10px 0;
  }
  
  form {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  
  form input, form textarea {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: inherit;
  }
  
  form button {
    background-color: #5a7d3a;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 5px;
    cursor: pointer;
  }
  
  form button:hover {
    background-color: #46632f;
  }
  html {
    scroll-behavior: smooth;
  }
  @keyframes section-highlight {
    0%   { background-color: #fff9d6; }
    50%  { background-color: #fff2a8; }
    100% { background-color: transparent; }
  }
  
  .highlighted {
    animation: section-highlight 1.2s ease-in-out;
  }
  section {
    scroll-margin-top: 100px; /* correspond à la hauteur du header réduit */
  }