/* ── RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --grey-blue: #84929A;
  --accent-taupe: #9E8066;
  --text-main: #333333;
  --text-light: #777777;
  --bg-white: #ffffff;
  --bg-off: #f4f5f7;
  --border-color: #e0e0e0;
  --radius: 4px;
  --trans: 0.3s ease;
}

body { 
  font-family: 'Lato', sans-serif; 
  background: var(--bg-white); 
  color: var(--text-main); 
  line-height: 1.6;
  padding-top: 64px;
}

/* ── NAVIGATION ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: white; height: 64px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 5vw; border-bottom: 1px solid var(--border-color);
}
.nav-logo {
  font-weight: 700; color: var(--grey-blue); text-decoration: none;
  font-size: 1.2rem; text-transform: uppercase;
}
.nav-links { display: flex; height: 100%; }
.nav-link {
  color: var(--text-light); text-decoration: none;
  font-size: 0.85rem; font-weight: 700; text-transform: uppercase;
  padding: 0 1.2rem; height: 100%;
  display: flex; align-items: center;
  border-bottom: 3px solid transparent; transition: all var(--trans);
}
.nav-link:hover, .nav-link.active {
  color: var(--grey-blue); border-bottom-color: var(--grey-blue);
}

/* ── BARRE SPONSORS AU-DESSUS DE L'IMAGE ── */
.top-sponsor-bar {
  max-width: 1200px;
  margin: 0 auto;
  background: #ffffff;
  padding: 1rem 5vw;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 2.5rem;
  border-bottom: 1px solid var(--border-color);
}

.top-sponsor-bar .sponsor-img {
  height: 40px;
  width: auto;
  object-fit: contain;
  filter: grayscale(20%);
  transition: transform var(--trans), filter var(--trans);
}

.top-sponsor-bar .sponsor-img:hover {
  filter: grayscale(0%);
  transform: scale(1.05);
}

/* ── HERO SECTION (ACCUEIL) ── */
.hero-image-container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}
.hero-main-image { width: 100%; height: auto; display: block; }

/* ── COPYRIGHT SUR L'IMAGE ── */
.copyright-overlay {
  position: absolute;
  bottom: 8px;
  right: 10px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.6);
  font-family: sans-serif;
  pointer-events: none;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

.hero-content {
  background: var(--grey-blue); color: white;
  padding: 3rem 5vw; max-width: 1200px; margin: 0 auto;
}
.hero-title { font-size: 2.8rem; font-weight: 300; line-height: 1.2; }
.hero-subtitle { font-size: 1.8rem; font-weight: 300; margin-bottom: 1.5rem; }
.hero-meta { border-top: 1px solid rgba(255,255,255,0.3); padding-top: 1rem; font-size: 1.2rem; }

/* ── PEOPLE SECTIONS ── */
.section-container { max-width: 1200px; margin: 0 auto; padding: 4rem 5vw; }
.people-grid { display: flex; flex-wrap: wrap; gap: 4rem; }
.column { flex: 1; min-width: 280px; }
.heading { font-size: 1rem; font-weight: 700; text-transform: uppercase; margin-bottom: 1.5rem; border-bottom: 1px solid var(--border-color); padding-bottom: 0.5rem; }
.person-card { margin-bottom: 1.2rem; }
.person-name { display: block; font-weight: 700; font-size: 1.1rem; }
.person-affil { color: var(--accent-taupe); }

/* ── TIMELINE (PROGRAMME) ── */
.timeline { border-left: 2px solid var(--border-color); padding-left: 2rem; margin-top: 2rem; }
.timeline-item { position: relative; margin-bottom: 2.5rem; }
.timeline-item::before {
  content: ''; position: absolute; left: -2.6rem; top: 0.2rem;
  width: 16px; height: 16px; border-radius: 50%;
  background: white; border: 3px solid var(--grey-blue);
}
.time { color: var(--accent-taupe); font-weight: 700; font-size: 0.9rem; }
.event { font-size: 1.1rem; font-weight: 700; }
.speaker { color: var(--text-light); font-size: 0.95rem; }

/* ── CARDS (A PROPOS) ── */
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; }
.info-card { background: var(--bg-off); padding: 2rem; border-radius: 4px; border-top: 4px solid var(--grey-blue); }
.info-card h3 { margin-bottom: 1rem; font-size: 1.2rem; }
.info-list { list-style: none; }
.info-list li { padding: 0.5rem 0; border-bottom: 1px solid #ddd; }
.info-list a { color: var(--accent-taupe); font-weight: 700; text-decoration: none; }

/* ── FOOTER ── */
footer { background: var(--text-main); color: white; padding: 3rem; text-align: center; margin-top: 4rem; }

/* ── SPONSORS DANS LE FOOTER ── */
.footer-sponsors {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sponsor-title {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-light);
}

.sponsor-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 3rem;
}

.sponsor-img {
  height: 45px;
  width: auto;
  object-fit: contain;
}

.sponsor-img:hover {
  filter: grayscale(0%) brightness(100%) opacity(100%);
  transform: scale(1.05);
}

.footer-bottom {
  opacity: 0.6;
  font-size: 0.85rem;
}

/* ── GOOGLE MAPS ── */
.map-container {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  border: 1px solid var(--border-color);
}

.map-image {
  width: 100%;
  height: auto;
  display: block;
  transition: transform var(--trans);
}

.map-container:hover .map-image {
  transform: scale(1.03);
}

/* ── LIENS INVISIBLES ── */
.lien-invisible {
  text-decoration: none;
  color: inherit;
}
.lien-invisible:hover {
  opacity: 0.8;
}

/* ══════════════════════════════════════════
   RESPONSIVE — MOBILE (≤ 768px)
══════════════════════════════════════════ */
@media (max-width: 768px) {

  /* 1. Menu de navigation empilé */
  nav {
    flex-direction: column;
    height: auto;
    padding: 0.8rem 5vw;
    gap: 0.4rem;
  }
  .nav-links {
    justify-content: center;
    width: 100%;
    flex-wrap: wrap;
    height: auto;
  }
  .nav-link {
    padding: 0.4rem 0.7rem;
    font-size: 0.8rem;
    border-bottom: none;
    border-radius: 4px;
  }
  .nav-link:hover, .nav-link.active {
    background: var(--bg-off);
    color: var(--grey-blue);
    border-bottom: none;
  }

  /* 2. Espace sous la nav (qui est plus haute sur mobile) */
  body {
    padding-top: 105px;
  }

  /* 3. Barre sponsors : logos plus petits */
  .top-sponsor-bar {
    gap: 1.5rem;
    padding: 0.8rem 5vw;
  }
  .top-sponsor-bar .sponsor-img {
    height: 28px;
  }

  /* 4. Titres hero réduits */
  .hero-title   { font-size: 1.8rem; }
  .hero-subtitle { font-size: 1.2rem; }
  .hero-meta    { font-size: 0.95rem; }
  .hero-content { padding: 1.8rem 5vw; }

  /* 5. Boutons hero en colonne */
  .hero-cta-group {
    flex-direction: column !important;
    gap: 0.8rem !important;
  }
  .hero-cta-group button {
    width: 100%;
  }

  /* 6. Speakers et organisateurs en colonne */
  .people-grid, .speakers-grid {
    flex-direction: column;
    gap: 2rem;
  }

  /* 7. Grille speakers intérieure en 1 colonne */
  .people-grid .info-grid {
    grid-template-columns: 1fr !important;
  }

  /* 8. Section container : padding réduit */
  .section-container {
    padding: 2rem 5vw;
  }

  /* 9. Bloc inscription : empiler texte + bouton */
  .inscription-wrapper > div {
    flex-direction: column !important;
    text-align: center;
  }

  /* 10. Cards info en 1 colonne */
  .info-grid {
    grid-template-columns: 1fr;
  }

  /* 11. Carte Maps moins haute */
  .map-container iframe {
    height: 280px;
  }

  /* 12. Footer sponsors : logos plus petits */
  .sponsor-logos {
    gap: 1.5rem;
  }
  .sponsor-img {
    height: 32px;
  }
}