/* =====================================================
   100 ANS DU LOQUIDY
   Feuille de style principale
   ===================================================== */



/* =====================================================
   VARIABLES GLOBALES
   ===================================================== */

:root{
  --rouge:#b31217;
  --beige:#f2e6d8;
  --noir:#1c1c1c;
  --bleu-pastel:#eef4fb;
  --jaune-pastel:#ffeeb3;
}



/* =====================================================
   RESET GLOBAL
   ===================================================== */

*{
  margin:0;
  padding:0;
  box-sizing:border-box;
  font-family:Arial, Helvetica, sans-serif;
}

body{
  background:var(--bleu-pastel);
  color:var(--noir);
  line-height:1.6;
}



/* =====================================================
   HEADER & NAVIGATION
   ===================================================== */

header{
  position:fixed;
  top:0;
  left:0;
  width:100%;
  background:white;
  display:flex;
  flex-direction:column;
  align-items:center;
  padding:12px 15px;
  z-index:1000;
  box-shadow:0 4px 20px rgba(0,0,0,.08);
}

.logo-title{
  text-decoration: none;
  color: inherit;
  display:flex;
  align-items:center;
  gap:12px;
}
.logo-title h1,
.logo-title:visited,
.logo-title:hover,
.logo-title:active{
  text-decoration:none;
  color: var(--rouge);
}

/* Bloc logo + titre */

.logo-title{
  display:flex;
  align-items:center;
  gap:12px;
}

.logo-title img{
  width:42px;
  height:42px;
  object-fit:contain;
}

.logo-title h1{
  color:var(--rouge);
  font-size:18px;
  margin:0;
}

/* Menu */

nav{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:12px;
}

nav a{
  text-decoration:none;
  font-weight:bold;
  color:var(--noir);
  font-size:13px;
}



/* =====================================================
   STRUCTURE GENERALE DES SECTIONS
   ===================================================== */

.section-title{
  font-family:'Cormorant Garamond', serif;
  font-size:18px;
  font-weight:600;
  text-align:center;
  color:#163d6b;
  margin-bottom:50px;
  position:relative;
}

.section-title::after{
  content:"";
  display:block;
  width:80px;
  height:3px;
  background:#b31217;
  margin:12px auto 0;
  border-radius:10px;
}

section{
  padding:120px 20px 60px;
}

.card{
  background:white;
  padding:22px;
  border-radius:12px;
  box-shadow:0 10px 30px rgba(0,0,0,.08);
}

section{
  background:white;
}

section:nth-of-type(even){
  background:var(--bleu-pastel);
}



/* =====================================================
   HERO
   ===================================================== */

.hero{
  min-height:80vh;

  background:
    linear-gradient(
      rgba(0,0,0,.65),
      rgba(0,0,0,.65)
    ),
    url("View1.jpg");

  background-size:cover;
  background-position:center;

  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;

  text-align:center;
  color:white;

  padding:0 15px;
}

.hero h2{
  font-family:'Playfair Display', serif;
  font-size:42px;
  font-weight:700;
  letter-spacing:1px;
  margin-bottom:15px;
  text-shadow:0 3px 12px rgba(0,0,0,.35);
}

.hero p{
  font-size:16px;
  font-family:'Playfair Display', serif;
}



/* =====================================================
   ACTUALITES / NEWSLETTER
   ===================================================== */

.news{
  /*background:#fbf7f2;*/
  padding:70px 20px;
}

#news h2{
  text-align:center;
  margin-bottom:25px;
}

.news-card{
  position:relative;

  max-width:900px;
  margin:0 auto 30px auto;

  background:white;

  padding:30px 25px 60px;

  border-radius:14px;

  border-top:6px solid var(--rouge);

  box-shadow:0 15px 40px rgba(0,0,0,.08);

  overflow:hidden;
}

/* Contenu tronqué */

.news-content{
  max-height:320px;
  overflow:hidden;
  transition:max-height .6s ease;
}

/* Dégradé */

.fade{
  position:absolute;

  left:0;
  bottom:60px;

  width:100%;
  height:80px;

  background:
    linear-gradient(
      to bottom,
      rgba(255,255,255,0),
      white
    );

  pointer-events:none;
}

.news-card.open .news-content{
  max-height:3000px;
}

.news-card.open .fade{
  opacity:0;
}

/* Entête article */

.post-meta{
  font-size:12px;
  color:#888;
  text-transform:uppercase;
  margin-bottom:6px;
}

.post-title{
  font-size:20px;
  line-height:1.3;
}

/* Bouton lire la suite */

.read-more{
  position:absolute;

  bottom:15px;
  left:50%;

  transform:translateX(-50%);

  background:var(--rouge);
  color:white;

  border:none;

  padding:10px 22px;

  border-radius:25px;

  font-weight:bold;

  cursor:pointer;
}



/* =====================================================
   PROGRAMME DE LA JOURNEE
   ===================================================== */

#programme h2{
  text-align:center;
  margin-bottom:40px;
}

/*
  Timeline dynamique injectée depuis programme.json
*/

.timeline-item{
  border-left:5px solid var(--rouge);

  background:white;

  padding:20px;
  margin-bottom:20px;

  border-radius:12px;

  box-shadow:0 6px 20px rgba(0,0,0,.06);

}

.time{
  color:var(--rouge);
  font-weight:bold;
  margin-bottom:8px;
}

/* =====================================================
   PARTENAIRES / ANIMATIONS
   ===================================================== */

.partner-section{
  margin-top:50px;
}

.partner-section h3{
  text-align:center;
  margin-bottom:25px;
  font-size:20px;
}

.partner-card{
  background:white;
  padding:25px;
  border-radius:12px;
  box-shadow:0 10px 30px rgba(0,0,0,.08);
  max-width:900px;
  margin:auto;
  text-align:center;
}

.partner-card img{
  width:140px;
  margin-bottom:20px;
}

.partner-card blockquote{
  font-style:italic;
  line-height:1.6;
  margin-bottom:15px;
  color:#333;
}



/* =====================================================
   COURSE DES 100 ANS
   ===================================================== */

#course h2{
  text-align:center;
  margin-bottom:20px;
}

.btn{
  display:block;

  width:100%;
  max-width:300px;

  margin:20px auto;

  padding:12px;

  background:var(--rouge);
  color:white;

  text-decoration:none;
  text-align:center;

  border-radius:25px;

  font-weight:bold;
}

#map{
  height:300px;
  margin-top:20px;
  border-radius:12px;
}



/* =====================================================
   GALERIE PHOTOS
   ===================================================== */

.gallery-section{
  /*background:#fbf7f2;*/
  padding:80px 20px;
  text-align:center;
}

.gallery-section h2{
  margin-bottom:30px;
}

.carousel{
  position:relative;
  max-width:1000px;
  margin:auto;
  overflow:hidden;
}

.carousel-track{
  display:flex;
  transition:transform .5s ease;
}

.carousel img{
  min-width:100%;
  height:65vh;

  object-fit:contain;

  background:black;

  border-radius:12px;
}

/* Navigation galerie */

.nav{
  position:absolute;

  top:50%;
  transform:translateY(-50%);

  background:rgba(0,0,0,.5);

  color:white;

  border:none;

  cursor:pointer;

  border-radius:50%;

  z-index:10;
}

.prev{left:10px;}
.next{right:10px;}



/* =====================================================
   ACCES & PARKINGS
   ===================================================== */

#map-acces{
  height:300px;
  margin-top:20px;
  border-radius:12px;
}



/* =====================================================
   INFOS PRATIQUES
   ===================================================== */

#infos h2{
  text-align:center;
  margin-bottom:20px;
}



/* =====================================================
   FOOTER
   ===================================================== */

footer{
  background:var(--noir);
  color:white;
  text-align:center;
  padding:30px 15px;
  margin-top:40px;
}



/* =====================================================
   RESPONSIVE TABLETTE & MOBILE
   ===================================================== */

@media(max-width:768px){

  .carousel img{
    height:55vh;
  }

  .nav{
    font-size:24px;
    padding:8px 12px;
  }

}



/* =====================================================
   RESPONSIVE DESKTOP
   ===================================================== */

@media(min-width:900px){

  /* Header */

  header{
    flex-direction:row;
    justify-content:space-between;
    padding:18px 40px;
  }

  .logo-title img{
    width:55px;
    height:55px;
  }

  .logo-title h1{
    font-size:22px;
  }

  nav a{
    font-size:15px;
  }

  /* Sections */

  section{
    padding:140px 8vw 80px;
  }

  .section-title{
  font-size:38px;

}

  /* Hero */

.hero h2{
    font-size:78px;
  }

  .hero p{
    font-size:22px;
  }

  /* News */

  .news-content{
    max-height:420px;
  }

  .post-title{
    font-size:24px;
  }

  .post-meta{
    font-size:13px;
  }

  /* Cartes */

  .timeline-item{
    padding:25px 35px;
  }

  /* Cartes OSM */

  #map,
  #map-acces{
    height:500px;
  }

}