html {
    height: 100%;
    scrollbar-gutter: stable;
  }
   body {
     margin: 0;
     min-height: 100vh; /* s'assure que ça couvre toujours la hauteur de l'écran */
     background: linear-gradient(to bottom, #6ba869, #dc5f5f);
     background-attachment: fixed; /* Empêche le dégradé de se répéter en scroll */
     background-repeat: no-repeat;
     background-size: cover;
   }
  .container {
    max-width: 960px;
    margin: 0 auto;
    padding: 20px;
  }
   header {
     background-color: rgba(255, 255, 255, 0.8);
     padding: 15px 0;
     box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
     border-bottom: 2px solid #90c695;
   }
  nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 20px;
  }
  nav ul li a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
    padding: 8px 15px;
    border-radius: 5px;
    transition: background-color 0.3s ease, color 0.3s ease;
  }
   nav ul li a:hover {
     background-color: #f5b7b1;
     color: #000;
   }
  h1 {
    font-size: 3em;
    text-align: center;
    color: #333;
    margin-bottom: 40px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
  }
   .story-section {
     background-color: rgba(255, 255, 255, 0.7);
     padding: 30px;
     margin-bottom: 30px;
     border-radius: 15px;
     box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
     border: 2px solid #f5b7b1;
     display: flex;
     flex-direction: column;
     align-items: center;
     gap: 20px;
   }
  .story-section.reverse {
    flex-direction: column-reverse;
  }
  .story-section h2 {
    font-size: 2em;
    color: #333;
    margin-bottom: 15px;
    text-align: center;
  }
  .story-section p {
    font-size: 1.1em;
    color: #555;
    text-align: justify;
  }
   .story-section img {
     max-width: 100%;
     height: auto;
     border-radius: 10px;
     border: 3px solid #90c695;
     box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
   }
  @media (min-width: 768px) {
    .story-section {
      flex-direction: row;
      text-align: left;
      align-items: center; /* centre verticalement l'image et le texte */
    }
    .story-section.reverse {
      flex-direction: row-reverse;
    }
    .story-section img {
      max-width: 45%;
    }
    .story-section div {
      flex: 1;
      padding: 0 20px;
    }
  }
  main {
    flex-grow: 1;
  }
   footer {
     text-align: center;
     padding: 20px;
     /* margin-top: 50px; */
     background-color: rgba(255, 255, 255, 0.8);
     border-top: 2px solid #90c695;
     color: #555;
   }
  
  
  /* Image sous le texte */
  .story-section.below {
    flex-direction: column;            /* empile en colonne */
  }
  .story-section.below > div { order: 1; }  /* texte en haut   */
  .story-section.below > img { order: 2; }  /* image en bas    */
  
  /* On RE-force le comportement même sur desktop */
  @media (min-width: 768px) {
    .story-section.below {
      flex-direction: column !important; /* ne passe pas en row */
      text-align: center;                /* optionnel : centrage */
      align-items: center;
    }
    .story-section.below div {
      padding: 0 0 10px 0;               /* un petit espace au-dessus de l’image */
    }
    .story-section.below img {
      max-width: 100%;                   /* l’image prend la largeur de la carte */
    }
  }
  