/* ===== RESET ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { width: 100%; height: 100%; }

/* ===== VARIABLES ===== */
:root {
  --ui-size: clamp(14px, 2.5vw, 18px); /* taille adaptative pour nav et liens sociaux */
  --text-size: clamp(20px, 3vw, 28px); /* taille adaptative pour texte principal */
}

/* ===== BODY ===== */
body {
  background: black;
  font-family: Helvetica, Arial, sans-serif;
}

/* ===== NAVIGATION ===== */
.nav {
  position: fixed;
  top: 20px;
  left: 20px;
  right: 20px;
  display: flex;
  justify-content: space-between; /* Mickael à gauche, About à droite */
  font-size: var(--ui-size);
  z-index: 20;
}

.nav a {
  text-decoration: none;
  transition: color 0.3s;
}

.nav.light a { color: black; }
.nav.dark a { color: white; }

/* ===== VIEWPORT / SLIDES ===== */
.viewport {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

.track {
  display: flex;
  height: 100%;
  width: max-content;
  transition: transform 0.6s ease;
}

.slide {
  flex: 0 0 100vw;
  height: 100vh;
  position: relative;
}

.slide img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* TITRES ET COMPTEUR */
.slide-title {
  position: absolute;
  bottom: 20px;
  left: 20px;
  font-size: var(--ui-size);
  font-weight: 500;
  z-index: 20;
  pointer-events: none;
  background: none;
}

.counter {
  position: absolute;
  bottom: 20px;
  right: 20px;
  font-size: var(--ui-size);
  font-weight: 500;
  z-index: 20;
  pointer-events: none;
  background: none;
}

.counter.light { color: black; }
.counter.dark { color: white; }

/* ===== PAGE ABOUT ===== */
.about-page {
  background-color: white;
  font-family: Helvetica, Arial, sans-serif;
  color: #111;
  height: 100vh;
  display: flex;
  flex-direction: column;
}

/* CONTENEUR TEXTE */
.about-container {
  margin-top: 50px; /* sous le menu */
  padding-left: 20px;
  padding-right: 20px;
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
}

.about-container p {
  font-size: var(--text-size);
  line-height: 1.15;
  width: 100%;
  margin: 0;
}

/* LIENS HORIZONTAUX */
.social-horizontal {
  position: fixed;
  bottom: 30px;
  left: 20px;
  font-size: var(--ui-size);
  font-weight: 500;
  color: #111;
  z-index: 20;
}

.social-horizontal a {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.2s ease;
}

.social-horizontal a:hover { color: #999; }

/* ABOUT LINKS – HOVER */
.about-container a {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.2s ease;
}

.about-container a:hover { color: #999; }

/* ===== SITE TEMPORAIRE (ABOUT EN HOME) ===== */
.about-page .nav a,
.about-page .nav span {
  color: #111;
}

.about-page .nav a {
  pointer-events: none;
  cursor: default;
}

/* ===== RESPONSIVE MOBILE ===== */
@media (max-width: 768px) {
  /* Onglets et flèches plus grands */
  .nav,
  .slide-title,
  .counter,
  .social-horizontal {
    font-size: 12px !important;
  }

  .nav {
    top: 12px;
    left: 12px;
    right: 12px;
  }

  .social-horizontal {
    left: 12px;
    bottom: 20px;
  }

  /* Texte principal plus lisible */
  .about-container p {
    font-size: 22px !important;
    line-height: 1.3 !important;
  }
}
