html {
    font-size: 16px;
    overflow-x: hidden;
  }
  
  @media (max-width: 768px) {
    html {
      font-size: 15px;
    }
  
    h1 {
      font-size: 2rem;
    }
  
    h2 {
      font-size: 1.4rem;
    }
  
    nav ul {
      flex-direction: column;
      gap: 1rem;
      padding: 1rem;
    }
  }
  

/* Base globale */
body, html {
    margin: 0;
    padding: 0;
    font-family: 'Lato', sans-serif;
    box-sizing: border-box;
    height: 100%;
}  
  a {
    text-decoration: none;
    color: inherit;
  }
  
/* NAVIGATION AMÉLIORÉE */
nav {
    background-color: #7a001e;
    position: sticky;
    top: 0;
    z-index: 9999;
    width: 100%;
  }
  
  nav ul {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 1rem 0;
  }
  
  nav a {
    color: #fff;
    font-size: 1rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    transition: all 0.3s ease;
    font-family: 'Lato', sans-serif;
  }
  
  nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: #a36f2e; /* cuivre */
    transition: all 0.3s ease;
    transform: translateX(-50%);
  }
  
  nav a:hover::after {
    width: 100%;
  }
  
  nav a:hover {
    color: #cfc19c; /* doré clair */
  }
  
  
  .hero {
    position: relative;
    height: 100vh;
    background-size: cover;
    background-position: center;
    background-color: #cfc19c;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    overflow: hidden;
  }
  
  .hero-overlay {
    position: absolute;
    inset: 0; /* top: 0; right: 0; bottom: 0; left: 0 */
    background: rgba(0, 0, 0, 0.6); /* Assombrissement à 40% */
    z-index: 0;
  }
  
  .hero-content {
    position: relative;
    z-index: 1;
    color: white;
  }
  
  
  .hero-logo {
    width: 140px;
    margin-bottom: 1rem;
  }
  
  .hero-title {
    font-family: 'League Spartan', serif;
    font-size: 3rem;
    margin: 0;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
  }
  
  .hero-subtitle {
    font-size: 1.2rem;
    margin: 1rem 0 2rem;
    font-weight: 300;
    color: #f5f5f5;
  }
  

  .cta {
    display: inline-block;
    background-color: #a36f2e;
    color: white;
    padding: 0.8rem 2rem;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: bold;
    transition: background 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  }
  .cta:hover {
    background-color: #7a001e;
  }
  
  /* Animation douce */
  @keyframes fadeIn {
    from {
      opacity: 0;
      transform: translateY(30px);
    }
    to {
      opacity: 1;
      transform: none;
    }
  }
  
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(207, 193, 156, 0.7), rgba(207, 193, 156, 0.7)),
    url('../img/banniere.jpg') center center / cover no-repeat;
  z-index: 0;
}



  
  .content {
    position: relative;
    z-index: 1;
  }
  
  h1 {
    font-family: 'League Spartan', serif;
    font-size: 3.5rem;
    color: #fff;
    margin-bottom: 2rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4); /* ombre douce pour le détacher */
  }
  
  .cta {
    display: inline-block;
    background-color: #a36f2e;
    color: #fff;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1.1rem;
    transition: background 0.3s ease;
  }

  a.tanin-link {
    color: #7a001e;
    font-weight: bold;
    text-decoration: underline;
  }
  
  
  .cta:hover {
    background-color: #7a001e;
  }

  .container {
    max-width: 960px;
    margin: 3rem auto;
    padding: 0 1rem;
    color: #333;
  }
  
  h1, h2 {
    font-family: 'League Spartan', serif;
    color: #7a001e;
    margin-bottom: 1rem;
  }
  
  p, li {
    font-size: 1.1rem;
    line-height: 1.6;
  }
  
  ul {
    padding-left: 1.5rem;
    margin-top: 1rem;
  }
  
  .intro {
    background-color: #f9f5ed;
    border-left: 4px solid #a36f2e;
    padding: 1.5rem;
    margin-bottom: 2rem;
  }
  
  .details, .objectifs {
    margin-bottom: 2rem;
  }
  
  
  .contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 600px;
    margin: 2rem auto;
  }
  
  .contact-form input,
  .contact-form textarea {
    padding: 0.75rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
    font-family: 'Lato', sans-serif;
  }
  
  .contact-form button {
    background-color: #7a001e;
    color: white;
    border: none;
    padding: 1rem;
    font-size: 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s ease;
  }
  
  .contact-form button:hover {
    background-color: #a36f2e;
  }


  
  /* Animations d'apparition */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
  }
  .reveal.visible {
    opacity: 1;
    transform: none;
  }
  
  /* Titres & sections */
  section h2 {
    color: #7a001e;
    font-family: 'League Spartan', serif;
    margin-bottom: 0.5rem;
  }
  section p, section ul {
    font-family: 'Lato', sans-serif;
    color: #333;
    line-height: 1.6;
  }
  section ul {
    list-style: disc inside;
    padding-left: 1rem;
    margin-bottom: 1rem;
  }
  

  body {
    margin: 0;
    padding: 0;
    font-family: 'Lato', sans-serif;
    background-color: #f2eee9;
    color: #333;
    overflow-x: hidden;
    cursor: url('../img/icon_raisin.png'), auto;
    background: url('../img/texture-fond.jpg') repeat;

    }

    main {
      flex: 1;
    }
    
  .navbar {
    background-color: #fff;
    padding: 1rem 2rem;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  }
  .navbar ul {
    display: flex;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
  }
  .navbar a {
    text-decoration: none;
    color: #444;
    font-weight: bold;
    transition: color 0.3s;
  }
  .navbar a:hover,
  .navbar a.active {
    color: #a31523;
  }
  
  .container {
    max-width: 900px;
    margin: 2rem auto;
    padding: 0 1rem;
  }
  
  .page-title {
    text-align: center;
    font-family: 'League Spartan', serif;
    font-size: 2.4rem;
    margin-bottom: 2rem;
    color: #222;
  }
  
  .card {
    background-color: white;
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    text-align: justify;
  }
  .card:hover {
    transform: translateY(-4px);
  }
  
  .card h2 {
    font-family: 'League Spartan', serif;
    color: #7a001e;
    margin-bottom: 1rem;
  }
  
  .card ul {
    list-style: none;
    padding-left: 0;
  }
  .card ul li::before {
    content: "• ";
    color: #a31523;
    font-weight: bold;
  }
  
  .carte-itineraire {
    max-width: 100%;
    border-radius: 10px;
    margin-top: 1rem;
  }
  
  .timeline {
    max-width: 800px;
    margin: 4rem auto;
    padding: 0 1.5rem;
  }
  
  .timeline h2 {
    text-align: center;
    color: #7a001e;
    font-family: 'League Spartan', serif;
    margin-bottom: 3rem;
  }
  
  .timeline-container {
    position: relative;
    border-left: 3px solid #a36f2e;
    padding-left: 2rem;
  }

  @media (max-width: 600px) {
    .timeline-container {
      padding-left: 1rem;
    }
    .timeline-content p {
      font-size: 0.95rem;
    }
  }
  
  .timeline-item {
    margin-bottom: 2.5rem;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
    position: relative;
  }
  
  .timeline-item::before {
    content: '';
    position: absolute;
    left: -11px;
    top: 10px;
    width: 16px;
    height: 16px;
    background-color: #7a001e;
    border: 3px solid #cfc19c;
    border-radius: 50%;
  }
  
  .timeline-content h3 {
    margin-top: 0;
    color: #7a001e;
    font-family: 'League Spartan', serif;
  }
  
  .timeline-content p {
    margin: 0.5rem 0 0;
  }
  
  .timeline-item.visible {
    opacity: 1;
    transform: translateY(0);
  }
  
  .sponsors-banner {
    overflow: hidden;
    width: 100%;
    background-color: transparent;
    padding: 2rem 0;
    margin: 2rem auto;
    max-width: 100%;
  }
  
  .expo{
    text-align: center;
  }

  .sponsors-track {
    display: flex;
    align-items: center;
    gap: 4rem;
    animation: scroll 10s linear infinite;
    width: max-content;
  }
  
  @keyframes scroll {
    0% {
      transform: translateX(0);
    }
    100% {
      transform: translateX(-50%);
    }
  }
  
  .sponsors-banner img {
    height: 60px;
    max-height: 60px;
    width: auto;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.8;
    transition: transform 0.3s ease;
  }
  
  .sponsors-banner img:hover {
    transform: scale(1.05);
    filter: none;
    opacity: 1;
  }
  

  .contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    padding: 1rem 0;
  }
  
  .contact-form input,
  .contact-form textarea {
    padding: 0.9rem 1rem;
    border: 2px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Lato', sans-serif;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
  }
  
  .contact-form input:focus,
  .contact-form textarea:focus {
    border-color: #a36f2e;
    outline: none;
    box-shadow: 0 0 0 4px rgba(163, 111, 46, 0.2);
  }
  
  .contact-form button {
    background-color: #7a001e;
    color: white;
    border: none;
    padding: 1rem;
    font-size: 1.1rem;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
  }
  
  .contact-form button:hover {
    background-color: #a36f2e;
    transform: translateY(-2px);
  }
  
  .team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
  }

  @media (min-width: 600px) {
    .team-grid {
      grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    }
  }
  
  .team-card {
    background-color: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  
  .team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.15);
  }
  
  .team-card img {
    width: 140px;
    height: 140px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid #a36f2e;
    margin-bottom: 1rem;
  }
  
  .team-card h2 {
    font-family: 'League Spartan', serif;
    color: #7a001e;
    margin-bottom: 0.3rem;
  }
  
  .team-card .role {
    font-weight: bold;
    color: #a36f2e;
    margin-bottom: 1rem;
  }
  
  #map {
    height: 60vh;
    width: 100%;
    border-radius: 12px;
  }
  

  /* === NAVBAR RESPONSIVE === */

.nav-container {
    display: flex;
    justify-content: center; /* ← centré sur desktop */
    align-items: center;
    max-width: 960px;
    margin: 0 auto;
    padding: 0 1rem;
    position: relative;
    min-height: 60px;
}
  
  
  .burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 110;
  }
  
  .burger span {
    width: 25px;
    height: 3px;
    background-color: white;
    border-radius: 2px;
    transition: 0.3s;
  }
  
  @media (max-width: 768px) {
    .burger {
      display: flex;
    }
  
    nav ul {
      position: absolute;
      top: 100%;
      left: 0;
      right: 0;
      flex-direction: column;
      background-color: #7a001e;
      transform: translateY(-150%);
      opacity: 0;
      transition: all 0.4s ease-in-out;
      z-index: 101;
    }
  
    nav ul.open {
      transform: translateY(0);
      opacity: 1;
    }
  
    nav ul li {
      padding: 1rem;
      text-align: center;
      border-top: 1px solid rgba(255,255,255,0.1);
    }
  }
  

  .leaflet-container {
    z-index: 1 !important;
  }
  
  @media (max-width: 768px) {
    .nav-container {
        padding: 0.5rem 1rem;
        min-height: 64px;
        justify-content: space-between; /* ← alignement burger / menu sur mobile */
    }
  }
  
  .footer {
    background-color: #7a001e;
    color: #fff;
    padding: 0.1rem 1rem;
    font-size: 0.9rem;
    text-align: center;
    position: relative;
    bottom: 0;
    width: 100%;
    z-index: 50;
    border-top: 4px solid #a36f3e
  }
  
  .footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 3rem;
    align-items: center;
  }
  
  .footer a {
    color: #cfc19c;
    text-decoration: none;
    transition: color 0.3s ease;
  }
  
  .footer a:hover {
    color: #ffffff;
  }

  @media (max-width: 600px) {
    .footer-content {
      flex-direction: column;
      gap: 0.3rem;
      text-align: center;
    }
  }
  
  #progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background-color: #a36f2e; /* couleur cuivrée */
    z-index: 9999;
    transition: width 0.25s ease-out;
  }

  .stats-section {
    background-color: #f9f5ed;
    padding: 3rem 1rem;
    margin-top: 3rem;
    border-top: 4px solid #a36f2e;
    border-bottom: 4px solid #a36f2e;
  }
  
  .stats-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 3rem;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
  }
  
  .stat {
    flex: 1 1 200px;
    min-height: 100px;
    padding: 1rem;

  }
  .stat .number {
    font-size: 3rem;
    color: #7a001e;
    font-weight: bold;
    display: block;
    font-family: 'League Spartan', serif;
    transition: all 0.3s ease;
}
 
  .stat p {
    margin-top: 0.5rem;
    font-size: 1.2rem;
    color: #333;
  }

  /* Bouton toggle */
.mode-toggle {
  top: 1rem;
  right: 1rem;
  background-color: #a36f2e;
  color: white;
  border: none;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  z-index: 10000;
  transition: background 0.3s ease;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}
.mode-toggle:hover {
  background-color: #7a001e;
}

/* Mode vin blanc (clair) */
body.vin-blanc {
  background-color: #f5f5f5;
  color: #222;
}
body.vin-blanc nav {
  background-color: #cfc19c;
}
body.vin-blanc .footer {
  background-color: #cfc19c;
  color: #333;
}
body.vin-blanc .mode-toggle {
  background-color: #a36f2e;
  color: #7a001e;
}

body.vin-blanc h2,
body.vin-blanc h3,
body.vin-blanc .footer-text,
body.vin-blanc .cgu {
  color: #2e1e12; /* un brun vin, bien lisible sur fond clair */
}

body.vin-blanc .footer {
  background-color: #e9e3d5;
  color: #2e1e12;
}

html.vin-blanc,
body.vin-blanc {
  background-color: #f5f5f5;
  color: #2e1e12;
}

.association-reveal {
  max-width: 800px;
  margin: 3rem auto;
  padding: 1rem 2rem;
  background-color: rgb(255, 255, 255);
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  text-align: center;
}

.association-reveal h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: #a36f2e;
}

body.vin-blanc .association-reveal {
  background-color: #faf6ed;
  color: #2e1e12;
}

body.vin-blanc .association-reveal h2 {
  color: #7a001e;
}

body:not(.vin-blanc) .mode-toggle {
  background-color: #a36f2e;
  color: white;
}

.logo-asso {
  margin: 3rem auto;
  text-align: center;
}

.logo-asso img {
  max-width: 200px;
  width: 100%;
  height: auto;
  opacity: 1;
  transition: transform 0.3s ease;
}

.logo-asso img:hover {
  transform: scale(1.05);
}

.live-indicator {
  display: inline-block;
  margin-left: 0.4rem;
  font-size: 0.9rem;
  color: #ff2d2d;
  animation: blink 1s steps(1, start) infinite;
  font-weight: bold;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

.budget-summary {
  text-align: center;
  margin-top: 3rem;
}

.budget-note {
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 1rem;
}

.budget-total {
  font-size: 2.5rem;
  font-weight: bold;
  color: #7a001e;
  margin-bottom: 2rem;
}

.big-number {
  font-size: 3rem;
  font-weight: bold;
  color: #7a001e;
}

.euro {
  font-size: 2rem;
  margin-left: 4px;
}

.budget-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.budget-item {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: transform 0.3s ease;
}

.number {
  font-size: 1.8rem;
  font-weight: bold;
  color: #7a001e;
}

.euro-small {
  font-size: 1.2rem;
  margin-left: 2px;
}


.budget-item:hover {
  transform: translateY(-4px);
}

.budget-item .number {
  font-size: 2rem;
  font-weight: 800;
  color: #7a001e;
}

.euro-small {
  font-size: 1.4rem;
  color: #7a001e;
  font-weight: bold;
  margin-left: 4px;
}

.budget-item p {
  margin-top: 0.5rem;
  font-size: 1rem;
  color: #444;
}


/* ===== PAGE 404 ===== */
.page-404 {
  background-color: #f9f5ed;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  text-align: center;
  padding: 2rem;
}

.error-container {
  max-width: 600px;
}

.error-logo {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
  margin-bottom: 2rem;
  transition: transform 0.3s ease;
}
.error-logo:hover {
  transform: scale(1.05);
}
.error-code {
  font-size: 6rem;
  color: #7a001e;
  font-weight: bold;
  font-family: 'Playfair Display', serif;
  margin-bottom: 1rem;
}

.error-message {
  font-size: 1.5rem;
  color: #444;
  margin-bottom: 2rem;
  font-family: 'Lato', sans-serif;
}

.cta-404 {
  display: inline-block;
  padding: 1rem 2rem;
  background-color: #a36f2e;
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  transition: background 0.3s ease;
}

.cta-404:hover {
  background-color: #7a001e;
}

.error-container {
  opacity: 1;
  transform: none;
}

