:root {
  --bg: #f6f5ef;
  --text: #121316;
  --muted: #afb4b9;
  --accent: #ff691e;
  --accent-2: #0078c8;
  --card: #f4f5f7;
  --border: #e5e7eb;
  --shadow: 0 10px 30px rgba(0, 0, 0, .1)
}

@font-face {
  font-family: "BVHStefWeb";
  src: url("typo/BVHStefWeb-Regular.woff2") format("woff2"), url("typo/BVHStefWeb-Regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "BVHStefWeb";
  src: url("typo/BVHStefWeb-Italic.woff2") format("woff2"), url("typo/BVHStefWeb-Italic.woff") format("woff");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "BVHStefWeb";
  src: url("typo/BVHStefWeb-Bold.woff2") format("woff2"), url("typo/BVHStefWeb-Bold.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "BVHStefWeb";
  src: url("typo/BVHStefWeb-BoldItalic.woff2") format("woff2"), url("typo/BVHStefWeb-BoldItalic.woff") format("woff");
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

* {
  box-sizing: border-box
}

html,
body {
  height: 100%
}

body {
  margin: 0;
  font-family: "BVHStefWeb", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  background: var(--bg);
  color: var(--text);
  line-height: 1.6
}

img {
  max-width: 100%;
  height: auto;
  display: block
}

a {
  color: inherit
}

.wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px
}

img,
video {
  height: auto;
  max-width: 100%
}

.section {
  padding: 64px 0
}

.kicker {
  letter-spacing: .18em;
  color: var(--accent);
  font-weight: 700;
  font-size: xx-large;
}

.meta {
  color: #919599;
  font-size: xx-large
}

.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: transform .1s ease
}

.btn:hover {
  transform: translateY(-1px)
}

.btn.ghost {
  background: #919599;
  color: #fff;
  border: 1px solid var(--border);
  box-shadow: none
}

.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  box-shadow: var(--shadow);
  position: relative
}

.card .stretched-link {
  position: static;
  color: inherit;
  text-decoration: none;
  font-weight: 600
}

.card .stretched-link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1
}

.card:hover,
.card:focus-within {
  box-shadow: 0 8px 24px rgba(0, 0, 0, .12);
  transform: translateY(-2px);
  transition: transform .12s ease, box-shadow .12s ease
}

.card .stretched-link:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 4px;
  border-radius: 12px
}

.expo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 32px;
  align-items: start
}

.expo-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease, max-height 0.4s ease-out;
  max-height: 450px;
  outline: none;
  position: relative
}

.expo-card img {
  width: 100%;
  height: auto;
  display: block
}

.expo-info {
  padding: 16px
}

.expo-info h3 {
  margin: 0 0 8px;
  font-size: 1.2rem
}

.expo-date {
  font-size: 0.95rem;
  color: var(--muted);
  margin-bottom: 12px
}

.expo-details {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  visibility: hidden;
  transition: max-height 0.4s ease-out, opacity 0.4s ease-out, visibility 0.4s;
  padding-top: 0
}

.expo-card[aria-expanded="true"] .expo-details {
  max-height: 1000px;
  opacity: 1;
  visibility: visible;
  padding-top: 10px
}

.expo-card[aria-expanded="true"] {
  max-height: 1000px
}

.tiny {
  font-size: .9rem;
  color: var(--muted)
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden
}

.skip-link:focus {
  position: fixed;
  left: 20px;
  top: 10px;
  width: auto;
  height: auto;
  background: var(--accent);
  color: #0b0b0c;
  padding: 8px 12px;
  border-radius: 8px
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border)
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 20px
}

.brand img {
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .1))
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 16px
}

.site-nav a {
  text-decoration: none;
  padding: 10px 8px;
  border-radius: 8px;
  color: var(--text)
}

.site-nav a:hover {
  background: var(--card)
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 8px;
  padding: 8px 10px
}

.theme-toggle {
  margin-left: auto;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 8px;
  padding: 8px 10px
}

@media (max-width:860px) {
  .nav-toggle {
    display: inline-block
  }

  .site-nav {
    display: none;
    width: 100%
  }

  .site-nav.open {
    display: block
  }

  .site-nav ul {
    flex-direction: column;
    padding: 8px 0
  }

  .theme-toggle {
    order: 3
  }

  .site-header .wrap {
    flex-wrap: wrap
  }
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1fr
}

.hero-media {
  position: relative;
  aspect-ratio: 5/4;
  background: linear-gradient(135deg, #1b1c20 0%, #0f1013 100%);
  border-bottom: 1px solid var(--border)
}

.hero-text {
  position: absolute;
  top: 15%;
  left: 45%;
  z-index: 2;
  margin: 0;
  max-width: min(780px, 92%);
  padding-top: 16px;
  padding-left: 20px
}

.hero .kicker {
  margin-bottom: 8px
}

.hero h1 {
  font-size: clamp(2rem, 2.8vw + 1rem, 3.2rem);
  margin: 0 0 8px;
  color: #fff;
  line-height: normal
}

.hero .meta {
  margin: 0 0 20px
}

.hero .actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap
}

.hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .85;
  mix-blend-mode: lighten
}

.timeline {
  display: grid;
  gap: 10px;
  margin: 20px 0 24px
}

.t-item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 12px;
  align-items: baseline;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px
}

.t-year {
  font-weight: 800;
  color: var(--accent-2)
}

.video-placeholder {
  display: grid;
  place-items: center;
  background: repeating-linear-gradient(45deg, #181a1d, #181a1d 10px, #131417 10px, #131417 20px);
  color: #aab;
  height: auto;
  border: 1px dashed var(--border);
  border-radius: 12px;
  text-align: center;
  padding: 20px
}

.video-wrapper {
  position: relative;
  width: 100%;
  max-width: 960px;
  aspect-ratio: 16/9;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: var(--shadow)
}

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

.partner-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  margin-top: 32px;
  align-items: stretch
}

.partner-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px 16px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  overflow: hidden;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center
}

.partner-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.18)
}

.partner-card img {
  max-width: 160px;
  max-height: 120px;
  width: 100%;
  height: auto;
  margin: 0 auto;
  display: block;
  object-fit: contain
}

.partner-info {
  position: absolute;
  inset: 0;
  background: rgba(255, 105, 30, 0.95);
  color: #fff;
  padding: 24px;
  opacity: 0;
  transition: opacity 0.35s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-radius: 14px
}

.partner-info p {
  font-size: 0.95rem;
  line-height: 1.4;
  margin: 0
}

.partner-card:hover .partner-info {
  opacity: 1
}

.badge-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  list-style: none;
  padding: 0
}

.badge-list li {
  border: 1px solid var(--border);
  background: var(--card);
  padding: 12px 14px;
  border-radius: 10px
}

.site-footer {
  margin-top: 40px;
  padding: 32px 0;
  border-top: 2px solid var(--accent);
  background-color: var(--bg);
  background-image: linear-gradient(180deg, var(--bg) 0%, #ffffff 100%)
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px
}

@media (prefers-reduced-motion:no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity .6s ease, transform .6s ease
  }

  .reveal.in {
    opacity: 1;
    transform: none
  }
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.3s ease
}

.overlay.show {
  display: flex;
  opacity: 1
}

.popup {
  background: #fff;
  padding: 20px;
  max-width: 500px;
  width: 90%;
  border-radius: 8px;
  position: relative;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  animation: fadeInPopup 0.3s ease
}

@keyframes fadeInPopup {
  from {
    transform: scale(0.9);
    opacity: 0
  }

  to {
    transform: scale(1);
    opacity: 1
  }
}

.popup .close-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 20px;
  cursor: pointer;
  color: #333;
  border: 2px solid var(--accent);
  background-color: rgba(255, 105, 30, 0.5);
  padding: 0 10px;
  border-radius: 10px
}

.popup .close-btn:hover {
  background-color: var(--accent);
  color: #fff
}

@media (max-width:600px) {
  body {
    font-size: 16px
  }

  .wrap {
    padding: 0 16px
  }

  .site-nav a {
    padding: 14px 10px
  }

  .hero-media {
    aspect-ratio: 5/4
  }

  .hero-text {
    top: -1px;
    left: 0;
    padding: 12px 14px;
    max-width: 100%;
    background: #DBDBDB;
    color: #fff;
    backdrop-filter: blur(6px);
    position: relative;
  }

  .hero h1 {
    font-size: clamp(1.5rem, 5vw + .5rem, 2.2rem)
  }

  .hero .actions {
    gap: 10px
  }

  .hero .actions .btn {
    width: 100%;
    text-align: center;
  }

  .meta {
    font-size: x-large;
  }

  .btn.ghost {
    color: #fff;
  }

  .timeline {
    gap: 8px;
  }

  .t-item {
    grid-template-columns: 64px 1fr;
    padding: 8px 10px;
  }

  .cards,
  .badge-list {
    grid-template-columns: 1fr
  }

  .partner-grid {
    grid-template-columns: 1fr;
    gap: 16px
  }

  .partner-card {
    min-height: 160px;
    padding: 20px 14px
  }

  .partner-card img {
    max-width: 140px;
    max-height: 100px
  }

  .footer-grid {
    grid-template-columns: 1fr
  }
}

@media (min-width: 601px) and (max-width: 1024px) {
  .partner-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 18px
  }

  .partner-card img {
    max-width: 150px;
    max-height: 110px
  }
}


.section-divider {
  position: relative;
  height: 1px;
  background-color: var(--border);
  margin: 20px auto;
  max-width: 1100px;
  width: 90%
}

.section-divider::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 4px;
  background-color: var(--accent);
  border-radius: 2px
}

@media (min-width: 1400px) {
  .hero-media {
    aspect-ratio: 16/9;
  }
}

.espaces-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 32px;
}

.espaces-grid figure {
  margin: 0;
}

.espaces-grid img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: var(--shadow);
  object-fit: cover;
  aspect-ratio: 4/3;
  display: block;
}

.espaces-grid figcaption {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 8px;
  line-height: 1.4;
}

.logo-banner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 60px;
  margin-top: 40px;
  padding: 20px 0;
  border-top: 1px solid var(--border);
}

.logo-banner img {
  max-height: 100px;
  width: auto;
  opacity: 0.8;
  transition: opacity 0.3s ease, transform 0.3s ease;
  cursor: help;
}

.logo-banner img:hover {
  opacity: 1;
  transform: scale(1.05);
}

#intro-temporaire {
  padding: 32px 20px;
  background-color: rgba(255, 255, 255, 0.5);
  border: 1px dashed var(--muted);
  border-radius: 12px;
  text-align: center;
  margin-top: 40px;
  margin-bottom: 20px;
}

#intro-temporaire h2 {
  font-size: 1.2rem;
  color: var(--muted);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

#intro-temporaire .meta {
  font-size: 1rem;
  color: var(--text);
  max-width: 700px;
  margin: 0 auto;
}

/* Légende de l'image hero */
.hero-caption {
  position: absolute;
  bottom: 10px;
  left: 10px;
  font-size: 0.7rem;
  color: #999;
  line-height: 1.4;
  padding: 8px 10px;
  border-radius: 4px;
  backdrop-filter: blur(4px);
  z-index: 1;
}

@media (max-width: 600px) {
  .hero-caption {
    font-size: 0.65rem;
    padding: 6px 8px;
    bottom: 8px;
    left: 8px;
  }
}