:root {
  --1: 0,0,0;
}

@font-face {
  font-family: 'Univers';
  src: url('fonts/Univers.woff') format('woff');
  font-display: swap;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: hidden;
  overflow-y: hidden;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'Univers';
  font-size: 9px;
  padding: 25px 25px;
  width: 100%;
  z-index: 9000;
  position: fixed;
}

header .top {
  display: flex;
  justify-content: left;
  align-items: center;
  gap: 10px;
}

/* --- FOOTER --- */
footer {
  display: flex;
  justify-content: left;
  align-items: center;
  gap: 10px;
  font-size: 9px;
  font-family: 'Univers';
  padding: 25px 25px;
  width: 100%;
  position: fixed;
  bottom: 0;
  left: 0;
  background: white;
  z-index: 9000;
}

.footer-plus {
  position: fixed;
  right: 25px;
  bottom: 25px;
  font-size: 12px;
  font-family: 'Univers';
  font-weight: 300;
  cursor: pointer;
  user-select: none;
  z-index: 4500;
}

/* --- MAIN / CAROUSEL --- */
main.home {
  display: flex;
  justify-content: center;
  align-items: center;
  height: calc(100vh - 60px);
  position: relative;
  z-index: 0;
}

.carousel {
  position: relative;
  height: calc(100vh - 60px);
  cursor: pointer;
  z-index: 0;
}

.slide {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity .3s ease;
  pointer-events: none;
}

.slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.carousel img {
  max-width: 65vw;
  max-height: 65vh;
  object-fit: contain;
}

/* --- OVERLAY --- */
#overlay {
  position: absolute; /* au lieu de fixed */
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: flex-start; /* en haut */
  justify-content: flex-start; /* à gauche */
  padding-left: 25px; /* pour un peu d’air */
  padding-top: 40px;
  background: transparent;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(0px);
  z-index: 2000; /* sous le header/footer */
}

.overlay.active {
  display: flex;
  animation: fadeIn 0.3s ease forwards;
  z-index: 200;
}

.overlay-content {
  background: transparent;
  max-width: 700px;
  font-family: 'Univers';
  text-align: left;
  font-size: 9px;
  text-transform: uppercase;
  line-height: 1.1;
  color: #000;
  z-index: 200;
}

.overlay-content .intro,
.overlay-content .section {
  margin-bottom: 1.6em;
}

.overlay-content p {
  margin: 0;
  font-weight: 400;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Contenu du texte */
#overlay .overlay-content {
  max-width: 600px;
  text-transform: uppercase;
  font-family: 'Univers', sans-serif;
  font-size: 9px;
  color: black;
  line-height: 1.1;
  background: transparent;
}

/* Bouton + bien visible et cliquable */
.footer-plus {
  position: fixed;
  right: 25px;
  bottom: 25px;
  font-size: 12px;
  font-family: 'Univers', sans-serif;
  cursor: pointer;
  z-index: 10000;
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
  .carousel img { max-width: 90vw; max-height: 60vh; }
  header, footer { font-size: 7px; }
  .overlay-content { font-size: 7px; }
  #overlay .overlay-content {
    font-size: 7px;
  }
  .footer-plus {
    font-size: 10px;
  }
}



/* Quand on clique sur le + */
#overlay.active {
  display: flex;
}



/* --- OVERLAY --- */
#overlay {
  position: absolute;
  inset: 0;
  display: none; /* caché par défaut */
  align-items: flex-start;
  justify-content: flex-start;
  padding-left: 121px;
  padding-top: 48px; /* distance sous le header */
  background:  transparent;
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  z-index: 2000; /* sous le header/footer */
  transition: opacity 0.3s ease;
  opacity: 0;
}

/* Quand on clique sur le + */
#overlay.active {
  display: flex;
  opacity: 1;
}

/* Contenu texte */
#overlay .overlay-content {
  max-width: 600px;
  font-family: 'Univers', sans-serif;
  font-size: 9px;
  line-height: 1.2;
  text-transform: uppercase;
  color: black;
  background: transparent;
}

@media (max-width: 768px) {
  #overlay {
    padding-left: 103px;
    padding-top: 41px; /* distance sous le header */
  }
  #overlay .overlay-content {
    font-size: 7px;
    max-width: 90vw;
  }
}