/* Reset et styles de base */
html {
  background-color: black;
  height: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: black;
  color: white;
  overflow-x: hidden;
  min-height: 100%;
  overscroll-behavior: none;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

/* Masquer la barre de défilement */
::-webkit-scrollbar {
  display: none;
}

/* Container principal */
#container {
  height: 100vh;
  overflow-y: auto;
  scroll-snap-type: y mandatory;
}

/* Section d'intro */
.intro-section {
  height: 100vh;
  width: 100vw;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  scroll-snap-align: start;
}

.logo {
  width: 40vw;
  height: 40vw;
  max-width: 45rem;
  max-height: 45rem;
  min-width: 20rem;
}

.baseline {
  display: flex;
  justify-content: space-between;
  width: 32rem;
}

.baseline span {
  font-size: 1.25rem;
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  width: 2rem;
  height: 2rem;
  animation: bounce 1.5s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(10px); }
}

/* Filtres */
.filters {
  position: fixed;
  right: 1rem;
  bottom: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  z-index: 50;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.filters.visible {
  opacity: 1;
}

.filter-btn {
  --size: 48px;               /* diamètre plus petit */
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  border: 1px solid #fff;
  background: transparent;
  padding: 0;
  margin: 0px;                /* moins d’espacement entre les boutons */
  cursor: pointer;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  /* typo Helvetica Thin */
  font-family: Helvetica, Arial, sans-serif;
  font-weight: 100;           /* Thin */
  font-size: 0.85rem;
  color: #fff;

  transition: transform 120ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.filter-btn span { pointer-events: none; }

.filter-btn:hover {
  transform: translateY(1px);
  box-shadow: 0 2px 10px rgba(0,0,0,0.25);
}

.filter-btn.active {
  background: rgba(0, 0, 0, 0.302);
  transform: translateY(2px);
}

.filter-btn:focus-visible {
  outline: 2px solid #7eb6ff;
  outline-offset: 3px;
}


/* Projets */
.project-section {
  height: 100vh;
  width: 100vw;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  position: relative;
}

.project-container {
  height: 100%;
  width: 100%;
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  overscroll-behavior-x: contain;
}

.project-slide {
  height: 100%;
  min-width: 100%;
  flex: none;
  scroll-snap-align: center;
  scroll-snap-stop: always;
  position: relative;
  display: flex;
}

/* Desktop view */
@media (min-width: 769px) {
  .project-slide {
    min-width: 50%;
    scroll-snap-align: start;
  }

  .image-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
  }

  .project-title {
    font-size: 1.5rem;
  }

  .project-baseline {
    font-size: 0.875rem;
  }
}

/* Mobile view */
@media (max-width: 768px) {
  .project-slide {
    min-width: 100%;
  }

  .image-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
  }

  .project-title {
    font-size: 1.25rem;
  }

  .project-baseline {
    font-size: 0.75rem;
  }

  .project-title-container {
    padding: 0.5rem 1rem;
  }
}

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

/* Project Overlay */
.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  justify-content: center;
  padding-top: 1.5rem;
  pointer-events: none;
}

.project-title-container {
  position: relative;
  padding: 0.75rem 1.5rem;
}

.project-title-container::before {
  content: '';
  position: absolute;
  top: -20px;
  left: -20px;
  right: -20px;
  bottom: -20px;
  background: radial-gradient(ellipse at center, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0) 70%);
  z-index: -1;
}

.project-title {
  font-family: Helvetica, Arial, sans-serif;
  font-weight: bold;
  font-size: 1.5rem;
  color: white;
  text-transform: uppercase;
  text-align: center;
  margin: 0;
  letter-spacing: 0.05em;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.project-baseline {
  font-family: Helvetica, Arial, sans-serif;
  font-weight: normal;
  font-size: 0.875rem;
  color: white;
  text-transform: uppercase;
  text-align: center;
  margin-top: 0.25rem;
  letter-spacing: 0.05em;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.project-label {
  background-color: #fff;
  padding: 0.3rem 1.3rem; /* plus fin */
  display: inline-block;
  position: relative;
  box-shadow: 0 2px 5px rgba(0,0,0,0.25);
  border-radius: 5px;
  transform-origin: center;
  max-width: 220px;
  background-image: url('/images/paper-texture.jpg'); /* placeholder transparent */
  background-size: cover;
}

.project-label {
  background-color: #fff;
  padding: 0.8rem 1.2rem;
  display: inline-block;
  position: relative;
  box-shadow: 0 2px 5px rgba(0,0,0,0.25);
  border-radius: 4px;
  transform-origin: center;
  max-width: 260px;
  background-clip: padding-box;
  overflow: hidden; /* pour bien découper le coin */
}

/* Coin biseauté + repli sombre */
.project-label::before {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 24px;
  height: 24px;
  background-color: #e6e6e6; /* arrière du papier, plus sombre */
  clip-path: polygon(100% 0, 0% 100%, 100% 100%);
  border-bottom-right-radius: 4px; /* même radius que l'étiquette */
  box-shadow: inset -1px 1px 2px rgba(0,0,0,0.15); /* ombre intérieure subtile */
}

.project-label h2 {
  font-family: Helvetica, Arial, sans-serif;
  font-weight: bold;
  font-size: 1rem;
  margin: 0 0 0.25rem;
  color: #000;
}

.project-label p {
  font-family: Helvetica, Arial, sans-serif;
  font-size: 0.75rem;
  margin: 0 0 0.5rem;
  color: #333;
  text-transform: uppercase;
}

.project-label .barcode {
  width: 100%;
  height: auto;
  display: block;
  margin-top: 0.3rem;
}

.manifesto-btn {
  position: absolute;
  top: 10px;      /* espace du haut */
  right: 10px;    /* espace du bord droit */
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.2px solid #000; /* contour noir */
  background: transparent; /* vide au milieu */
  color: #000; /* point d'interrogation noir */
  font-family: "Courier New", Courier, monospace;
  font-size: 0.85rem;
  font-weight: bold;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  pointer-events: auto; /* indispensable pour que ça clique */
  z-index: 5; /* pour qu'il soit au-dessus des autres éléments */
}


/* Overlay: fade-in/out */
.manifesto-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  opacity: 0;
  transition: opacity 280ms ease;
}

/* état visible */
.manifesto-overlay.show {
  opacity: 1;
}

/* Contenu: pop-in doux */
.manifesto-content {
  max-width: 700px;
  padding: 2rem;
  color: #fff;
  font-family: Helvetica, Arial, sans-serif;
  line-height: 1.5;
  text-align: left;
  transform: translateY(8px) scale(0.985);
  opacity: 0;
  transition: transform 320ms ease, opacity 320ms ease;
}

/* quand overlay est visible, le contenu finit sa transition */
.manifesto-overlay.show .manifesto-content {
  transform: translateY(0) scale(1);
  opacity: 1;
}

/* Bouton close déjà existant; ok tel quel */


.manifesto-close {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 2rem;
  color: #fff;
  background: none;
  border: none;
  cursor: pointer;
}

.manifesto-title {
  font-family: Helvetica, Arial, sans-serif;
  font-weight: bold;
  font-size: 4rem;
  margin: 0 0 -1rem;
  line-height: 1;
  text-align: center;
}

.manifesto-baseline {
  font-family: Helvetica, Arial, sans-serif;
  font-weight: 100; /* Thin */
  font-size: 3rem;
  margin: 0 0 1.5rem;
  text-align: center;
}

.manifesto-text {
  font-family: Helvetica, Arial, sans-serif;
  font-weight: 300;
  font-size: 1rem;
  text-align: justify;
}


.barcode-container {
  position: relative;
  display: inline-block;
}

.barcode-serial {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.55rem;
  color: #000;
  letter-spacing: 1px;
  position: absolute;
  top: -0.5rem;  /* au-dessus du code-barres */
  right: 0;      /* aligné à droite */
}

#scrollTopBtn{
  position: fixed;
  bottom: 2rem;
  left: 1rem;
  z-index: 999;

  --size: 48px;
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  border: 2px solid #fff;
  background: rgba(0, 0, 0, 0.302);
  padding: 0;
  cursor: pointer;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  font-family: Helvetica, Arial, sans-serif; /* ou Helvetica Thin si tu veux */
  font-size: 1.5rem;
  color: #fff;

  transition: transform 120ms ease, background-color 160ms ease, box-shadow 160ms ease, opacity 160ms ease, visibility 160ms ease;
  opacity: 0;
  visibility: hidden;
}
#scrollTopBtn span{ pointer-events:none; }
#scrollTopBtn:hover{ transform: translateY(1px); box-shadow: 0 2px 10px rgba(0,0,0,0.25); }
#scrollTopBtn:active{ background: rgba(0,0,0,0.45); transform: translateY(2px); }
#scrollTopBtn.show{ opacity:1; visibility:visible; }

#scrollTopBtn span {
  transform: translateY(-3px);          /* prend toute la hauteur du bouton */
}

.top-buttons {
  position: fixed;
  top: 1rem;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between; /* un à gauche, un à droite */
  padding: 0 1rem;
  z-index: 1000;
}

#indexBtn span {
  transform: translateY(-2px); /* ajuste la valeur à ton goût */
  display: inline-block;       /* nécessaire pour que transform fonctionne */
}
.top-buttons {
  opacity: 1;
  transition: opacity 0.3s ease;
}

.top-buttons.hidden {
  opacity: 0;
  pointer-events: none;
}

.top-buttons button {
  --size: 48px;
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  border: 2px solid #fff;
  background: transparent;
  cursor: pointer;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  font-family: 'Press Start 2P', monospace; /* même style que scrollTop */
  font-size: 1.2rem;
  color: #fff;

  transition: transform 120ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.top-buttons button:hover {
  transform: translateY(1px);
  box-shadow: 0 2px 10px rgba(0,0,0,0.25);
}

.top-buttons button:active {
  background: rgba(0,0,0,0.45);
  transform: translateY(2px);
}

.top-buttons button span {
  pointer-events: none;
  line-height: 1;
}

/* Layout About (image au-dessus, texte dessous, centré) */
.info-grid {
  display: grid;
  grid-template-columns: 1fr;      /* empilé */
  gap: 1.25rem;
  align-items: start;
  justify-items: center;           /* centre horizontalement les blocs */
  text-align: center;              /* centre le texte de .info-right */
}

/* Optionnel : limiter les largeurs pour un rendu éditorial */
.info-left,
.info-right {
  width: min(820px, 100%);
}

.info-left img {
  width: min(360px, 90%);          /* image raisonnable et responsive */
  height: auto;
  display: block;
}

/* Harmoniser les titres et le paragraphe */
.info-right .manifesto-title {
  margin-bottom: 0.2rem;
}

.info-right .manifesto-baseline {
  margin-bottom: 1rem;
  font-size: 1.25rem;              /* un peu plus modeste si tu veux */
  line-height: 1.2;
}

.info-right .manifesto-text {
  font-size: 1rem;
  line-height: 1.55;
  opacity: 0.9;
  margin: 0 auto;
  max-width: 60ch;                 /* confort de lecture */
}

/* Boutons sociaux centrés + petit gap */
.info-actions {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
}



/* Boutons ronds cohérents avec le reste */
.social-btn {
  --size: 42px;
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  border: 1.5px solid #fff;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: transform 120ms ease, background 160ms ease, box-shadow 160ms ease;
}
.social-btn:hover { transform: translateY(1px); background: rgba(255,255,255,0.08); box-shadow: 0 2px 10px rgba(0,0,0,0.25); }

.info-actions { display: flex; gap: 0.75rem; margin-top: 0.5rem; flex-wrap: wrap; }

/* Responsive */
@media (max-width: 820px) {
  .info-grid { grid-template-columns: 1fr; }
  .info-left img { max-width: 520px; }
}

/* Overlay au-dessus de tout (version unique) */
.manifesto-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  transition: opacity 280ms ease;
}
.manifesto-overlay.show { opacity: 1; }

/* Verrou des interactions du fond quand un overlay est ouvert */
body.has-overlay #container,
body.has-overlay .top-buttons,
body.has-overlay #scrollTopBtn,
body.has-overlay .filters { pointer-events: none !important; }
body.has-overlay .manifesto-overlay { pointer-events: auto; }

/* Contenu commun du manifesto (déjà présent chez toi) */
.manifesto-content {
  max-width: 700px;
  padding: 2rem;
  color: #fff;
  font-family: Helvetica, Arial, sans-serif;
  line-height: 1.5;
  text-align: left;
  transform: translateY(8px) scale(0.985);
  opacity: 0;
  transition: transform 320ms ease, opacity 320ms ease;
}
.manifesto-overlay.show .manifesto-content { transform: translateY(0) scale(1); opacity: 1; }

/* Variante pour l'overlay Infos (2 colonnes image/texte) */
.manifesto-content.info-grid {
  max-width: min(1100px, 92vw); /* plus large pour accueillir image + texte */
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 1.25rem;
  align-items: center;
}

/* colonnes */
.info-left { display: grid; place-items: center; }
.info-left img {
  width: 100%;
  height: auto;
  max-width: 460px;
  border-radius: 12px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.35);
}
.info-right { display: flex; flex-direction: column; gap: 0.9rem; }

/* Responsive : pile l’image au-dessus du texte */
@media (max-width: 820px) {
  .manifesto-content.info-grid { grid-template-columns: 1fr; }
  .info-left img { max-width: 520px; }
}

/* ===== INDEX OVERLAY ===== */
.index-content{
  max-width: min(1200px, 92vw);
  padding: 2rem 1rem 3rem;
  font-family: Helvetica, Arial, sans-serif;
  color:#fff;
  text-align:left;
}

.index-list{
  display:flex;
  flex-direction:column;
  gap:2rem;
}

.index-item{
  cursor:pointer;
}

.index-title{
  font-weight:700;          /* Helvetica bold */
  font-size:4rem;           /* demandé */
  line-height:0.95;
  margin:0 0 0.5rem 0;
  text-transform:uppercase;
}

.index-baseline{
  font-weight:100;          /* Helvetica Thin */
  font-size:3rem;           /* demandé */
  line-height:1;
  margin:0 0 0.75rem 0;
  opacity:0.95;
  text-transform:uppercase;
}

.index-separator{
  height:1px;
  width:95%;
  max-width:1100px;         /* quasi full width visuelle */
  background:linear-gradient(90deg, rgba(255,255,255,0.9), rgba(255,255,255,0.25));
  border:0;
}

/* petit hover pour feedback */
.index-item:hover .index-title,
.index-item:hover .index-baseline{
  opacity:0.9;
  transform:translateX(2px);
  transition:transform 160ms ease, opacity 160ms ease;
}

/* responsive */
@media (max-width: 820px){
  .index-title{ font-size: clamp(2.2rem, 7vw, 3rem); }
  .index-baseline{ font-size: clamp(1.4rem, 5.2vw, 2.2rem); }
  .index-separator{ width:100%; }
}

/* Overlay Index scrollable */
.index-overlay {
  align-items: flex-start;         /* place le contenu en haut */
  justify-content: center;
  overflow-y: auto;                /* permet le scroll vertical */
  -webkit-overflow-scrolling: touch;
  padding: 4vh 0 4vh;              /* un peu d’air autour */
}

.index-overlay .index-content {
  max-width: min(1200px, 92vw);
  margin: 0 auto;
}

.index-overlay .manifesto-close {
  position: absolute;  /* toujours par rapport à l’overlay */
  top: 20px;           /* même valeur que les autres overlays */
  right: 24 px;         /* colle au bord droit */
  z-index: 10;
}

.project-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0; left: 0;
  z-index: 0;               /* la vidéo reste derrière les UI */
}

/* Bouton MUTE/UNMUTE pilule */
.mute-btn {
  position: absolute;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  z-index: 20;

  font-family: Helvetica, Arial, sans-serif;
  font-weight: 200;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-size: 0.9rem;

  color: #fff;
  background: transparent;
  border: 1px solid #fff;
  border-radius: 9999px;
  padding: 0.5rem 1.1rem;
  cursor: pointer;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  overflow: hidden;  /* la barre ne sort pas du cadre */
  position: absolute;
}

/* Barre diagonale visible seulement quand muted */
.mute-btn.is-muted::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 120%;
  height: 1px;
  background: #fff;
  transform: translate(-50%, -50%) rotate(-20deg);
  pointer-events: none;
  border-radius: 2px;
}
