* {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }

    html {
      scroll-behavior: smooth;
    }

    html, body {
      overflow-x: hidden;
    }

    body {
      font-family: 'Georgia', serif;
      background-color: white;
      min-height: 100vh;
      display: flex;
      flex-direction: column;
      line-height: 1.6;
      color: #161514;
      overflow-x: hidden;
    }

    .main-nav {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      z-index: 1100; 
      padding: 1.5rem 0;
    }

    .nav-container {
      display: flex;
      justify-content: flex-end;
      max-width: 1200px;
      margin: 0 auto;
      padding: 0 2rem;
    }

    .nav-links {
      max-width: 100vw;
      contain: layout;
      display: flex;
      gap: 1.5rem; /* Réduit l'espace entre les liens */
      list-style: none;
      flex-wrap: wrap; /* Permet le retour à la ligne */
      justify-content: center; /* Centre les liens sur plusieurs lignes */
    }

    .nav-links a {
      color: #f9dd8d; 
      font-weight: 400; 
      text-decoration: none;
      font-size: 1.1rem; /* Taille de police légèrement réduite */
      transition: color 0.3s ease;
      padding: 0.5rem 0;
      position: relative;
      text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
      white-space: nowrap; /* Empêche le texte de se couper */
    }

    .nav-links a:hover {
      color: #f9dd8d;
    }

    .nav-links a::after {
      content: '';
      position: absolute;
      bottom: 0;
      left: 0;
      width: 0;
      height: 2px;
      background-color: #f9dd8d;
      transition: width 0.3s ease;
    }

    .nav-links a:hover::after {
      width: 100%;
    }

    .hero {
      background-image: url('../Photo/memorial2.png');
      background-size: cover;
      background-position: center;
      background-repeat: no-repeat;
      height: 80vh;
      min-height: 500px;
      display: flex;
      align-items: center;
      justify-content: center;
      text-align: center;
      color: white;
      padding: 0 1rem;
      position: relative;
    }

    .hamburger {
      display: none;
      flex-direction: column;
      justify-content: space-between;
      width: 25px;
      height: 20px;
      cursor: pointer;
      z-index: 1101;
      position: absolute;
      top: 1.5rem;
      left: 1.5rem;
    }

    .hamburger span {
      display: block;
      height: 3px;
      background: white;
      border-radius: 2px;
      transition: 0.3s ease;
    }

    .nav-overlay {
      position: fixed;
      inset: 0;
      background-color: transparent; 
      z-index: 1099;
      display: none;
      opacity: 0;
      transition: opacity 0.3s ease;
      box-shadow: inset 0 0 0 1000px rgba(0, 0, 0, 0.15); 
      pointer-events: none;
    }

    .nav-overlay.active {
      display: block;
      opacity: 1;
      pointer-events: auto;
    }

    .nav-links {
      transition: right 0.3s ease;
    }

    .hero::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background-color: rgba(0, 0, 0, 0.3);
    }

    .overlay {
      position: relative;
      z-index: 1;
      background-color: rgba(0, 0, 0, 0.5);
      padding: 2rem;
      border-radius: 12px;
      max-width: 800px;
      width: 90%;
      margin: 0 auto;
    }

    .hero h1 {
      font-size: clamp(2rem, 5vw, 3rem);
      margin: 0;
      line-height: 1.2;
      text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    }

    .subtitle {
      font-size: clamp(1rem, 3vw, 1.3rem);
      color: #f9dd8d;
      font-style: italic;
      margin-top: 0.5rem;
      text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    }

    .cards {
      display: flex;
      justify-content: center;
      gap: 1.5rem;
      margin: -6rem auto 0;
      padding: 1rem;
      max-width: 1200px;
      flex-wrap: wrap;
      position: relative;
      z-index: 2;
    }

    .card {
      background-color: white;
      padding: 1.5rem;
      border-radius: 20px;
      text-align: center;
      flex: 1 1 280px;
      max-width: 350px;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
      transition: all 0.3s ease;
      margin-bottom: 1.5rem;
    }

    .card:hover {
      transform: translateY(-5px);
      box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
    }

    .card-link {
      display: block;
      color: inherit;
      text-decoration: none;
    }

    .card span {
      position: relative;
      padding-right: 1rem;
    }

    .card span::after {
      content: '→';
      position: absolute;
      right: 0;
      transition: transform 0.3s ease;
    }

    .card:hover span {
      color: #f9dd8d;
    }

    .card:hover span::after {
      transform: translateX(3px);
      color: #f9dd8d;
    }

    .highlight-quote {
      padding: 3rem 1rem; 
      text-align: center;
      background-color: #f8f4ef;
    }

    .quote-content {
      max-width: 800px;
      margin: 0 auto;
    }

    .main-quote {
      font-family: 'Old Standard TT', serif;
      font-size: clamp(1.5rem, 3vw, 2rem);
      line-height: 1.4;
      color: #333;
      font-style: italic;
      position: relative;
    }

    .main-quote::before,
    .main-quote::after {
      content: '"';
      color: #f9dd8d;
    }

    .statuts {
      background-color: white;
      padding: 1.5rem 1rem;
      margin-bottom: 0.5rem;
    }

    .statuts-container {
      max-width: 1200px;
      margin: 0 auto;
    }

    .statuts h2 {
      color: #112337;
      text-align: center;
      font-size: 1.8rem;
      margin-bottom: 1rem; 
      position: relative;
      padding-bottom: 0.8rem; 
    }

    .statuts h2::after {
      content: '';
      position: absolute;
      bottom: 0;
      left: 50%;
      transform: translateX(-50%);
      width: 60px; 
      height: 2px; 
      background-color: #f9dd8d;
    }

    .subtitle-statuts {
      font-family: 'Old Standard TT', serif;
      font-size: 1.1rem;
      color: #5a4a42;
      text-align: center;
      margin-bottom: 1.5rem; 
      font-style: italic;
      line-height: 1.5;
    }

    .articles {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
      gap: 1.25rem; 
    }

    .articles article {
      background-color: #f8f4ef;
      border-left: 4px solid #f9dd8d;
      padding: 1.25rem;
      margin-bottom: 0.5rem; 
      border-radius: 8px;
      transition: all 0.3s ease;
    }

    .articles article:hover {
      transform: translateY(-3px);
      box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }

    .articles h3 {
      color: #112337;
      font-family: 'Old Standard TT', serif;
      font-size: 1.2rem; 
      margin-bottom: 0.6rem; 
      position: relative;
      padding-bottom: 0.4rem; 
    }

    .articles h3::after {
      content: '';
      position: absolute;
      bottom: 0;
      left: 0;
      width: 40px; 
      height: 2px;
      background-color: #f9dd8d;
    }

    .site-footer {
      background-color: #112337;
      color: white;
      text-align: center;
      padding: 1.5rem 1rem; 
      margin-top: auto;
    }

    .footer-content {
      max-width: 1200px;
      margin: 0 auto;
    }

    .footer-contact a {
      color: #f9dd8d;
      text-decoration: none;
      transition: opacity 0.3s ease;
    }

    .footer-contact a:hover {
      opacity: 0.8;
      text-decoration: underline;
    }

    .history-link,.inline-link {
      transition: all 0.3s ease;
    }

    .history-link {
      display: inline-block;
      color: #112337;
      text-decoration: none;
      margin-top: 0.75rem; 
      font-family: 'Old Standard TT', serif;
      font-style: italic;
      position: relative;
      padding-right: 1.2rem;
    }

    .history-link::after {
      content: '→';
      position: absolute;
      right: 0;
      transition: transform 0.3s ease;
    }

    .history-link:hover {
      color: #f9dd8d;
    }

    .history-link:hover::after {
      transform: translateX(3px);
    }

    .inline-link {
      color: #112337;
      text-decoration: underline;
      text-underline-offset: 3px;
      text-decoration-color: #f9dd8d;
    }

    .inline-link:hover {
      color: #f9dd8d;
    }

    .history-content {
      margin-top: 0.75rem; 
      padding-top: 0.75rem; 
      border-top: 1px dashed rgba(226, 198, 126, 0.3);
    }

    @media (max-width: 1200px) {
      .cards {
          max-width: 900px;
      }
    }

    @media (max-width: 992px) {
      .hero {
          height: 70vh;
      }
      
      .nav-links {
          gap: 1.5rem; /* Espace réduit */
      }
    }

    @media (max-width: 768px) {
      .hero {
          height: 60vh;
          min-height: 400px;
      }
      
      .nav-container {
          justify-content: center;
      }
      
      .nav-links {
          gap: 1.2rem; /* Espace encore réduit */
          padding: 0.5rem 0; /* Ajout de padding */
      }
      
      .cards {
          margin-top: -4rem;
          gap: 1rem;
      }
      
      .card {
          flex: 1 1 100%;
          max-width: 400px;
      }
      
      .articles {
          grid-template-columns: 1fr;
          gap: 1rem;
      }
      
      .statuts {
          padding: 1.25rem 0.75rem;
      }
      
      .statuts h2 {
          font-size: 1.6rem;
      }
      .nav-links {
        position: fixed;
        top: 0;
        left: -100%;
        width: 70%;
        height: 100%;
        background: rgba(176, 176, 176, 0);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        padding: 4rem 2rem;
        z-index: 1102;
        transition: left 0.3s ease;
      }

      .nav-links.active {
        left: 0;
      }

      .nav-links a {
        font-size: 1.3rem;
        margin: 1rem 0;
        color: #f9dd8d;
        width: 100%;
      }

      .nav-container {
        justify-content: flex-start;
      }
      .hamburger {
        display: flex;
      }
      
      .hamburger.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
      }
      .hamburger.active span:nth-child(2) {
        opacity: 0;
      }
      .hamburger.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
      }
    }

    @media (max-width: 576px) {
      .hero {
          height: 50vh;
          min-height: 300px;
      }
      
      .nav-links {
          flex-wrap: wrap;
          justify-content: center;
          gap: 0.8rem; /* Espace très réduit */
          padding: 0.5rem 0; /* Plus d'espace vertical */
      }
      
      .nav-links a {
        font-size: 1rem; /* Taille de police plus petite */
      }
      
      .overlay {
          padding: 1.5rem;
      }
      
      .cards {
          margin-top: -3rem;
      }
      
      .statuts {
          padding: 1rem 0.5rem;
      }
      
      .statuts h2 {
          font-size: 1.4rem;
      }
      
      .subtitle-statuts {
          font-size: 1rem;
          margin-bottom: 1rem;
      }
    }

    /* Correction spécifique pour les très petits écrans */
    @media (max-width: 375px) {
      .nav-links {
        gap: 0.7rem; /* Espace minimal entre les liens */
        padding: 0.4rem 0; /* Réduction du padding */
      }
      
      .nav-links a {
        font-size: 0.9rem; /* Taille de police encore plus petite */
      }
    }
    
    .photo-slider {
      margin: 1rem auto;
      max-width: 900px;
      padding: 0 1rem;
    }

    .slider-container {
      position: relative;
      overflow: hidden;
      border-radius: 8px;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
      background-color: #f6f0f0;
      height: 500px; 
      display: flex;
      align-items: center;
    }

    .slider {
      display: flex;
      transition: transform 0.5s ease;
      width: 100%; 
    }

    .slide {
      min-width: 100%;
      position: relative;
      display: flex;
      justify-content: center; 
      align-items: center; 
    }

    .slide img {
      max-width: 100%;
      max-height: 100%; 
      width: auto;
      height: auto;
      object-fit: contain; 
    }

    .slider-indicators {
      position: absolute;
      bottom: 1rem;
      left: 0;
      right: 0;
      display: flex;
      justify-content: center;
      gap: 0.5rem;
      z-index: 10;
    }

    .indicator {
      width: 12px;
      height: 12px;
      border-radius: 50%;
      background-color: rgba(255, 255, 255, 0.5);
      cursor: pointer;
      transition: background-color 0.3s ease;
    }

    .indicator.active {
      background-color: #f9dd8d;
    }

    @media (max-width: 992px) {
      .slider-container {
        height: 400px;
      }
    }

    @media (max-width: 768px) {
      .slider-container {
        height: 350px;
      }
    }

    @media (max-width: 576px) {
      .slider-container {
        height: 250px;
      }
      
      .indicator {
        width: 10px;
        height: 10px;
      }
    }

    .hero-carousel {
      position: relative;
      width: 100vw;
      height: 93vh;
      overflow: hidden;
    }

    .hero-carousel .slider {
      width: 100%;
      height: 100%;
    }

    .hero-carousel .slide {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      opacity: 0;
      visibility: hidden;
      transition: opacity 1s ease;
      z-index: 1;
    }

    .hero-carousel .slide.active {
      opacity: 1;
      visibility: visible;
    }

    .hero-carousel .overlay {
      z-index: 20;
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      width: 90%;
    }

    .hero-carousel .overlay .titre{
      font-size: clamp(2rem, 5vw, 3rem);
      margin: 0;
      line-height: 1.2;
      text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
      color: white;
      text-align: center;
    }

    .hero-carousel .overlay .subtitle{
      font-size: clamp(1rem, 3vw, 1.3rem);
      color: #f9dd8d;
      font-style: italic;
      margin-top: 0.5rem;
      text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
      text-align: center;
    }

    .hero-carousel .slide.image-slide {
      background-size: cover;
      background-position: center;
    }

    .hero-carousel .slide.video-slide {
      display: flex;
      justify-content: center;
      align-items: center;
      background-color: #000;
    }

    .hero-carousel .slide.video-slide video {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }
    
    .hero-carousel .slide:nth-child(1) {
      background-image: url('../mussecraoussel/rouge.jpg');
    }
    
    .hero-carousel .slide:nth-child(2) {
      background-image: url('../mussecraoussel/resque-temporel.jpg');
    }
    
    .hero-carousel .slide:nth-child(3) {
      background-image: url('../mussecraoussel/bleu.jpg');
    }

    .museum-description {
      max-width: 900px;
      margin: 2rem auto;
      padding: 0 1.5rem;
      line-height: 1.8;
      color: #333;
    }

    .museum-description p {
      margin-bottom: 1.5rem;
      text-align: justify;
    }

    @media (max-width: 768px) {
      .museum-description {
        padding: 0 1rem;
      }
      
      .museum-description p {
        text-align: left;
      }
    }

    .anchor-nav {
      background-color: #112337;
      padding: 1rem 0;
      position: sticky;
      top: 0;
      z-index: 1050;
      box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }
    
    .anchor-container {
      max-width: 1200px;
      margin: 0 auto;
      padding: 0 2rem;
      display: flex;
      justify-content: center;
      flex-wrap: wrap;
    }
    
    .anchor-links {
      display: flex;
      flex-wrap: wrap;
      gap: 1rem;
      justify-content: center;
    }
    
    .anchor-links a {
      color: #f9dd8d;
      text-decoration: none;
      font-family: 'Old Standard TT', serif;
      font-size: 1.1rem;
      padding: 0.5rem 1rem;
      border-radius: 4px;
      transition: all 0.3s ease;
      position: relative;
      white-space: nowrap;
    }
    
    .anchor-links a:hover {
      background-color: rgba(249, 221, 141, 0.1);
    }
    
    .anchor-links a::after {
      content: '';
      position: absolute;
      bottom: 0;
      left: 0;
      width: 0;
      height: 2px;
      background-color: #f9dd8d;
      transition: width 0.3s ease;
    }
    
    .anchor-links a:hover::after {
      width: 100%;
    }
    
    section.statuts {
      scroll-margin-top: 80px;
    }
    
    @media (max-width: 768px) {
      .anchor-links {
        gap: 0.5rem;
      }
      
      .anchor-links a {
        font-size: 0.9rem;
        padding: 0.4rem 0.8rem;
      }
      
      section.statuts {
        scroll-margin-top: 70px;
      }
    }
    
    @media (max-width: 576px) {
      .anchor-container {
        padding: 0 1rem;
      }
      
      .anchor-links {
        overflow-x: auto;
        justify-content: flex-start;
        padding-bottom: 0.5rem;
        scrollbar-width: thin;
      }
      
      .anchor-links::-webkit-scrollbar {
        height: 5px;
      }
      
      .anchor-links::-webkit-scrollbar-thumb {
        background: #f9dd8d;
        border-radius: 10px;
      }
    }

    .site-footer {
      background-color: #112337;
      color: white;
      text-align: center;
      padding: 1.5rem 1rem;
      margin-top: auto;
      display: flex;
      flex-direction: column;
      gap: 0.5rem;
    }

    .footer-credit {
      font-size: 0.9rem;
      opacity: 0.8;
      margin-top: 0.5rem;
    }

    .footer-credit a {
      color: #f9dd8d;
      text-decoration: none;
      transition: opacity 0.3s ease;
    }

    .footer-credit a:hover {
      opacity: 0.7;
      text-decoration: underline;
    }

    @media (max-width: 576px) {
      .footer-credit {
        font-size: 0.8rem;
      }
    }