/* =========================================================
   IMPORT DES FONTES
   ========================================================= */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Libre+Baskerville:wght@400;700&display=swap');

/* =========================================================
   BASE GÉNÉRALE
   ========================================================= */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.65;
  color: #333;
}

/* =========================================================
   HEADER & MENU DESKTOP
   ========================================================= */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1em 10%;
}

.logo {
  max-height: 100px;
}

/* Navigation */
.navigation-container {
  position: relative;
  z-index: 100;
  display: flex;
  align-items: center;
}

.menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.menu > li {
  position: relative;
  margin-left: 1em;
}

.menu a,
.menu-label {
  font-family: "Inter", sans-serif;
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  padding: 0.4em 0.6em;
  color: #000;
  cursor: pointer;
}

.menu li.current_page a {
  background: rgba(132, 161, 70, 0.15);
}

/* ✅ Hover menu – Option A */
.menu a:hover {
  background: rgba(70, 132, 161, 0.15);
  color: #000;
}

/* Sous-menu desktop */
.submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: #fff;
  list-style: none;
  padding: 0.5em 0;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  z-index: 200;
}

.submenu li a {
  display: block;
  padding: 0.5em 1em;
  font-weight: 400;
}

.submenu li a:hover {
  background: rgba(70, 132, 161, 0.15);
  color: #000;
}

.has-submenu:hover .submenu,
.has-submenu:focus-within .submenu {
  display: block;
}

/* Burger */
#menu-toggle,
.menu-toggle,
.close-menu {
  display: none;
}

/* =========================================================
   HERO DE PAGE
   ========================================================= */
.page-hero {
  padding: 2em 1em 1em;
  text-align: center;
  background: #f2f2f2;
}

.page-hero h1 {
  font-family: "Libre Baskerville", serif;
  font-weight: 700;
  font-size: 2.7rem;              /* ✅ h1 légèrement augmenté */
  color: #4684A1;
  margin: 0;
}

/* =========================================================
   CONTENU
   ========================================================= */
.page-content {
  max-width: 1000px;
  margin: 3em auto;
  padding: 0 1em;
}

/* Sections */
.section {
  margin: 4em 0;
}

.section-video,
.section-photos,
.section-background {
  background: #f7f7f7;
  padding: 3em 1em;
}

.section h2 {
  font-family: "Libre Baskerville", serif;
  font-weight: 700;
  font-size: 1.7rem;              /* ✅ h2 légèrement augmenté */
  text-align: center;
  margin-bottom: 1.5em;
  color: #333;
}

.section-landscape .intro-layout {
  flex-direction: column;
}

.section-landscape .intro-poster img {
  width: 100%;
  max-width: 700px;
  margin: 0 auto 2em;
}

/* =========================================================
   INTRO + AFFICHE
   ========================================================= */
.intro-layout {
  display: flex;
  gap: 2.5em;
  align-items: flex-start;
}

.intro-poster img {
  width: 300px;
  height: auto;
}

.intro {
  font-style: italic;
  font-size: 1.05rem;
}

/* =========================================================
   VIDÉO
   ========================================================= */
.video-wrapper {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
}

.video-wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* =========================================================
   PHOTOS
   ========================================================= */
.photo-strip {
  display: flex;
  gap: 1.5em;
  justify-content: center;
  flex-wrap: wrap;
}

.photo-strip-nogap {
  display: flex;
  gap: 0;
  justify-content: center;
  flex-wrap: wrap;
}

.photo-strip img,
.photo-strip-nogap img {
  max-height: 300px;
  width: auto;
  max-width: 400px;
  object-fit: contain;
  flex: 0 0 auto;
}

/* =========================================================
   ÉQUIPE
   ========================================================= */
.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3em 2em;
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.team-grid img {
  max-height: 220px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

.team-grid figcaption {
  margin-top: 0.5em;
  font-weight: 500;
}

.team-grid figcaption span {
  display: block;
  font-size: 0.9em;
  font-weight: 400;
  color: #666;
}

figure {
  margin: auto;
}

/* =========================================================
   FOOTER – HARMONISÉ
   ========================================================= */
.footer {
  background: #f2f2f2;
  border-top: 1px solid #e0e0e0;
  padding: 2.5em 1em;
  font-size: 0.9rem;
  margin-top: 5em;
}

.footer-inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  font-family: "Inter", sans-serif;
  color: #555;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75em;
  flex-wrap: wrap;  
}

.footer a {
  color: #4684A1;
  text-decoration: none;
  font-weight: 500;
}

.footer a:hover {
  text-decoration: underline;
}

.social-icon {
  height: 22px;
  width: auto;
  vertical-align: middle; /* sécurité supplémentaire */
}

/* =========================================================
   CALENDRIER
   ========================================================= */
.cal-list {
  display: flex;
  flex-direction: column;
  gap: 2em;
  list-style: none;
  padding: 0;
  margin: 0;
}

.cal-event.past {
  opacity: 0.45;
  filter: grayscale(40%);
}

.cal-event-title {
  font-family: "Libre Baskerville", serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: #333;
  margin: 0 0 0.25em;
}

.cal-event-date {
  font-weight: 600;
  color: #4684A1;
  font-size: 0.95rem;
  margin-bottom: 0.3em;
}

.cal-event-venue {
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 0.5em;
}

.cal-event-venue a {
  color: #4684A1;
  text-decoration: none;
  font-weight: 500;
}

.cal-event-venue a:hover { text-decoration: underline; }

.cal-event-desc {
  font-size: 0.95rem;
  color: #444;
  line-height: 1.6;
  margin: 0.5em 0 0.8em;
}

.cal-event-link {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #4684A1;
  text-decoration: none;
  border: 1.5px solid #4684A1;
  padding: 0.3em 0.8em;
  border-radius: 3px;
  transition: background 0.2s, color 0.2s;
}

.cal-event-link:hover {
  background: #4684A1;
  color: #fff;
}

.cal-card {
  display: flex;
  gap: 2em;
  align-items: flex-start;
  background: #fff;
  border: 1px solid #e4e4e4;
  border-radius: 6px;
  padding: 1.5em;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.cal-card-poster {
  flex: 0 0 130px;
  width: 130px;
}

.cal-card-poster img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 3px;
  object-fit: cover;
}

.cal-card-poster .poster-placeholder {
  width: 100%;
  aspect-ratio: 2/3;
  background: #e8edf0;
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: #aaa;
  text-align: center;
  padding: 0.5em;
}

.cal-card-body { flex: 1; }

/* =========================================================
   MOBILE
   ========================================================= */
@media (max-width: 768px) {

  .menu-toggle {
    display: block;
    font-size: 2rem;
    cursor: pointer;
  }

  .close-menu {
    display: block;
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 2.5rem;
    color: #fff;
    cursor: pointer;
  }

  .navigation-container {
    position: fixed;
    inset: 0;
    background: #111;
    flex-direction: column;
    padding-top: 6rem;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
  }

  .menu {
    flex-direction: column;
    width: 100%;
    max-width: 420px;
  }

  .menu a,
  .menu-label {
    color: #fff;
    text-align: center;
    font-size: 1.4rem;
  }

  .menu a:hover {
    background: rgba(160, 162, 161, 1);
    color: #000;
  }

  .menu li.current_page a {
    background: rgba(132, 161, 170, 1);
  }

  .submenu li a:hover {
    background: rgba(160, 162, 161, 1);
    color: #000;
  }

  .submenu {
    position: static;
    background: none;
    box-shadow: none;
  }

  .has-submenu .submenu {
    display: none;
  }

  .has-submenu:focus-within .submenu {
    display: block;
  }

  #menu-toggle:checked + .menu-toggle + .navigation-container {
    transform: translateY(0);
  }

  .intro-layout {
    flex-direction: column;
    align-items: center;
  }

  .photo-strip {
    flex-direction: column;
    align-items: center;
  }

  .team-grid {
    grid-template-columns: 1fr;
  }

  .cal-card {
    flex-direction: column;
  }

  .cal-card-poster {
    flex: unset;
    width: 120px;
  }
}