* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
}

.page {
  height: 100vh;
  scroll-snap-align: start;
  /* scroll-snap-stop: always;  ← supprime cette ligne */
  display: flex;
  justify-content: center;
  align-items: center;
}

/* (optionnel) pour debug */
.page:nth-child(odd) {
  background: #ffffff;
}
.page:nth-child(even) {
  background: #ffffff;
}

#navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  display: flex;
  justify-content: center; /* liens centrés */
  align-items: center;
  height: 60px;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

#nav-logo {
  position: absolute; /* ← sort du flux pour ne pas décaler les liens */
  left: 20px;
  height: 50px;
  width: auto;
  color: #A54646;
  font-size: 30px;
}
.nav-links {
  list-style: none;
  display: flex;
  gap: 30px;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: #A54646;
  text-decoration: none;
  font-size: 1.2rem;
  transition: opacity 0.2s;
  font-family: 'lib';
  margin: 100px;
  letter-spacing: 1.20px;
}

.nav-links a:hover {
  opacity: 0.6;
}

.nav-logo {
  color: white;
  font-size: 1.2rem;
  font-weight: bold;
}

@font-face {
  font-family: 'chole';
  src: url('../font/chole/CHOLE.ttf') format('truetype');
  font-weight: normal;
}

@font-face {
  font-family: 'lib';
  src: url('../font/lib/LiberationSansNarrow-Regular.ttf') format('truetype');
  font-weight: normal;
}

#current{
    text-decoration:underline;
    text-underline-offset: 5px; /* plus grand = plus bas */
}

.titre{
    display: flex;
    align-items: center;
    flex-direction: column;
    color:#A54646;
    font-family: "chole";
    transform: scale(2.4);
}

#page2 {
  display: flex;
  justify-content:space-around;
}

#page2 > * {
  width: 800px;
  flex-shrink: 0;
}


#page2 > p {
  flex: 0 0 25%;
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: normal;
  font-size: 1.4rem;
  font-family: "lib";
  text-align: justify;
  transform: scaleX(1.2);
  letter-spacing: 0.2px;
  margin-left: 150px;
}

#page3{
    display: flex;
}

#page3 > *{
    width: 800px;
}

.modal-backdrop {
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  background-color: rgba(0, 0, 0, 0.3) !important;
  opacity: 1 !important;
}

#imageModal .modal-dialog {
  display: flex;
  align-items: center;
  min-height: calc(100vh - 20px);
  margin: 10px auto;
  max-width: 95vw;
}

#imageModal .modal-content {
  background: transparent;
  border: 0;
}

#imageModal .modal-body {
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}