html,
body {
  padding: 0;
  margin: 0;
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
  font-family: "Open Sans", sans-serif;
}
* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
  -webkit-user-drag: none;
}
#main .part + .part {
  /* chevauchement d'1px : évite les fines lignes verticales entre les 3 colonnes */
  margin-left: -1px;
}
#main {
  /* zone fixe sous la navbar : la page elle-même ne défile jamais */
  position: fixed;
  top: var(--nav-h, 68px);
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  overflow: hidden;
  touch-action: none;
}
#main::after {
  /* voile léger pour garder le texte lisible sur les photos claires */
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.38), rgba(0, 0, 0, 0.12) 70%);
  z-index: 2;
  pointer-events: none;
}
#main .part {
  flex: 1;
}
#main .part .section {
  width: 100%;
  height: var(--hero-h, 100vh);
  position: relative;
  overflow: hidden;
}
#main .part .section img {
  width: 100vw;
  height: var(--hero-h, 100vh);
  object-fit: cover;
  position: absolute;
  left: var(--x);
  pointer-events: none;
}
.buttons {
  position: absolute;
  right: 25px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 99;
}
.buttons button {
  border: none;
  background-size: contain;
  background: url("data:image/svg+xml,%3Csvg width='10' height='29' viewBox='0 0 10 29' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M9 0V27L1 17.4857' stroke='white' stroke-width='2' /%3E%3C/svg%3E%0A") no-repeat;
  background-position: center;
  width: 10px;
  height: 30px;
  display: block;
  margin: 20px 0;
  padding: 0 15px;
  transition-duration: 0.6s;
}
.buttons button.next {
  transform: scaleY(-1);
}
.buttons button.prev:active {
  transform: translateY(8px);
}
.buttons button.next:active {
  transform: scaleY(-1) translateY(8px);
}
.hero-texte {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  z-index: 99;
  padding: 0 16px;
  text-align: center;
  color: white;
  pointer-events: none;
}
.hero-texte h1 {
  margin: 0 0 0.6rem;
  font-size: clamp(2rem, 6vw, 3.6rem);
  font-weight: 800;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45);
}
.content {
  width: 90%;
  position: absolute;
  bottom: 44px;
  text-align: center;
  left: 0;
  right: 0;
  margin: auto;
  color: white;
  z-index: 99;
  font-size: 0.85em;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
}
.content p {
  margin: 0.5em auto;
}
.content kbd {
  width: 15px;
  height: 15px;
  border: 1px solid white;
  display: inline-block;
  border-radius: 3px;
  font-size: 0.9em;
  vertical-align: text-top;
}
.content a {
  color: rgba(227, 227, 227, 0.78);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}
.content a:hover {
  padding-bottom: 1px;
}
.buttons button {
  cursor: pointer;
}
.site-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  text-align: center;
  z-index: 100;
  padding: 0.5rem 1rem;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.8);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}
@media (hover: none) {
  .content {
    display: none;
  }
}
.hero-sous {
  max-width: 560px;
  margin: 0 auto;
  font-size: clamp(0.95rem, 2.2vw, 1.15rem);
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.6);
}
@media (max-width: 600px) {
  /* flèches en bas, côte à côte, pour ne pas couvrir le texte */
  .buttons {
    top: auto;
    bottom: 56px;
    right: 50%;
    transform: translateX(50%);
    display: flex;
    gap: 28px;
  }
  .buttons button {
    margin: 0;
  }
}
