/* ============================= */
/* Styles généraux et communs à toutes les pages */
/* ============================= */

@import url('./design-system.css');

body {
  margin: 0;
  height: 100vh;
  background: url('../img/background.webp') center center / cover no-repeat fixed;
  font-family: 'Brandon Grotesque', Arial, sans-serif;
  font-family: var(--font-primary);
  color: var(--color-primary);
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

header {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 10;
}

.logo {
  height: 50px;
  width: auto;
}
img {
  max-width: 100%;
  width: 100%;
  display: block;
  box-sizing: border-box;
}

.menu-button {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

#burger {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 11000; /* Toujours au-dessus */
  background-color: rgba(0,0,0,0.7);
  font-family: 'Poppins', sans-serif;
  border: none;
  border-radius: 9999px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  color: white;
  padding: 8px 20px;
  white-space: nowrap;
  user-select: none;
  overflow: hidden;
  transition: background-color 0.3s ease;
}

/* Transformation des traits en croix */
#burger.active .burger-traits span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
  background-color: white;
}

#burger.active .burger-traits span:nth-child(2) {
  opacity: 0;
}

#burger.active .burger-traits span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
  background-color: white;
}

.menu-text {
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  color: white;
  user-select: none;
  cursor: pointer;
  margin-right: 12px;
  font-size: 1rem;
  letter-spacing: 0.05em;
}

/* 3 traits hamburger */
.burger-traits {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}

.burger-traits span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: white;
  border-radius: 1px;
}

/* Hacker text styling */
.hacker-text-container {
  position: fixed;
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  letter-spacing: 0.05em;
  white-space: normal;
  user-select: none;
  color: white;
  max-width: 600px;
  text-align: left;
  z-index: 20;
}

.hacker-text-container.left {
  left: 20px;
  bottom: 20px;
  top: auto;
  margin: 0;
  padding: 0;
  font-size: 1.5rem;
  white-space: pre-line;
}

.hacker-text-container.right {
  bottom: 20px;
  right: 20px;
  font-size: 1rem;
  text-align: right;
  max-width: 350px;
  white-space: pre-line;
}

.hacker-text-container.top-right {
  top: 20px;
  right: 20px;
  max-width: 350px;
  font-size: 1.2rem;
  text-align: right;
  user-select: none;
}

/* Disable glitch animations on letters */
.letter.glitch {
  color: white;
  text-shadow: none;
  animation: none;
}

/* Plein écran menu avec glassmorphism */
#fullscreen-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 10000;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  font-family: 'Poppins', sans-serif;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  display: flex;
  justify-content: center;
  align-items: center;
}

#fullscreen-menu.active {
  pointer-events: auto;
  opacity: 1;
  visibility: visible;
}

#fullscreen-menu .category {
  font-size: 2rem;
  font-weight: 700;
  color: white;
  user-select: none;
  cursor: default;
  text-shadow:
    0 0 0 rgba(0, 0, 0, 0.8),
    0 0 0 rgba(0, 0, 0, 0.6),
    0 0 10px rgba(0, 0, 0, 0.5);
  transition: color 0.3s ease;
}

#fullscreen-menu .category:hover {
  color: #f3f3f3;
}

.category a {
  color: white;
  text-decoration: none;
  cursor: pointer;
  display: inline-block;
  padding: 4px 8px;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.39);
  transition: color 0.3s ease;
}

.category a:hover,
.category a:focus {
  color: #ddd;
  outline: none;
}

a {
  text-decoration: none;
}

/* effet hover fluide */
.fluid-hover {
  position: absolute;
  pointer-events: none;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
  backdrop-filter: blur(25px);
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 10;
}

.fluid-hover.active {
  opacity: 1;
}

/* Glassmorphism menu internal */
.glassmorphism-menu {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 0;
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  align-items: center;
  padding: 60px;
  box-sizing: border-box;
  mask-image: none;
  -webkit-mask-image: none;
}

.glassmorphism-menu::before {
  content: "";
  position: absolute;
  top: var(--mask-y, 50%);
  left: var(--mask-x, 50%);
  width: 200px;
  height: 200px;
  pointer-events: none;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255 255 255 / 0.2), transparent 80%);
  transform: translate(-50%, -50%);
  transition: top 0.1s ease, left 0.1s ease;
  z-index: 10;
}

/* Close menu button */
#close-menu {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 18px;
  line-height: 18px;
  width: 40px;
  height: 40px;
  color: white;
  cursor: pointer;
  user-select: none;
  z-index: 12000;
  background: rgba(92, 92, 92, 0.6);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;
  transition: background-color 0.3s ease, color 0.3s ease;
  display: none;
}

#close-menu:hover,
#close-menu:focus {
  background: rgba(255, 255, 255, 0.8);
  color: rgb(0, 0, 0);
  outline: none;
}

/* Conteneur principal fullpage horizontal */
#fullpage-container {
  display: flex;
  flex-direction: row;
  width: calc(7 * 100vw); /* 7 pages */
  height: 100vh;
  overflow: hidden;
  transition: transform 0.6s ease;
  scroll-behavior: smooth;
  position: relative;
}

/* Chaque page */
.page {
  flex: 0 0 100vw;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  background: transparent;
  user-select: none;
  scroll-snap-align: start;
  position: relative;
}

/* Image dans chaque page */
.image-link {
  display: block;
  width: 70vw;
  max-width: 800px;
  height: 70vh;
  max-height: 600px;
  overflow: hidden;
  border-radius: 20px;
  cursor: pointer;
  position: relative;
  box-shadow: 0 8px 32px rgba(255 255 255 / 0.15);
  transition: transform 0.3s ease;
}

.image-link img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transition: transform 0.3s ease;
}

.image-link:hover img {
  transform: scale(1.05);
}

/* Image-link plein écran */
.fullscreen-link {
  width: 100vw;
  height: 100vh;
  max-width: 100vw;
  max-height: 100vh;
  border-radius: 0;
  box-shadow: none;
}

.fullscreen-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transition: transform 0.3s ease;
}

/* Project title top right */
.project-title-top-right {
  position: fixed;
  top: 20px;
  right: 20px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 1.5rem;
  color: white;
  text-shadow: 0 0 10px rgba(0,0,0,0.5);
  user-select: none;
  z-index: 20;
}

.page {
  position: relative;
}

.description-btn {
  position: absolute;
  bottom: var(--spacing-xl);
  right: var(--spacing-xl);
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: var(--spacing-sm) var(--spacing-lg);
  color: var(--color-primary);
  font-family: var(--font-primary);
  font-weight: var(--font-weight-medium);
  font-size: var(--font-size-sm);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all var(--transition-base);
  user-select: none;
  z-index: var(--z-dropdown);
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.description-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1),
              height 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: -1;
}

.description-btn:hover {
  background: var(--color-accent-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl), 0 0 20px rgba(255, 255, 255, 0.2);
}

.description-btn:hover::before {
  width: 200px;
  height: 200px;
}
.description-popup p {
  text-shadow: 2px 0px 10px rgba(0, 0, 0, 0.5);
}


.description-popup {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  width: 400px;
  max-width: 90vw;
  background: var(--glass-strong);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  color: var(--color-primary);
  padding: var(--spacing-xl) var(--spacing-2xl);
  border-radius: var(--radius-xl);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-xl),
              0 0 60px rgba(255, 255, 255, 0.15),
              inset 0 1px 0 rgba(255, 255, 255, 0.1);
  pointer-events: none;
  opacity: 0;
  transition: all var(--transition-base) cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: var(--z-popover);
  font-family: var(--font-primary);
  font-size: var(--font-size-base);
  line-height: 1.7;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}
/* Scroll indicator (top) */
.scroll-indicator {
  position: fixed;
  top: 28px;
  right : 28px;
  left: auto;
  transform: translateX(-50%);
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 900;
  pointer-events: none;

  /* glass shadow */
  text-shadow:
    0 0 12px rgba(255, 255, 255, 0.35),
    0 0 28px rgba(255, 255, 255, 0.25);
}

.scroll-indicator::after {
  content: '';
  position: relative;
  width: 1px;
  height: 28px;
  background: rgba(255, 255, 255, 0.85);
  animation: scroll-line 1.6s ease-in-out infinite;
}

/* Halo glass derrière le trait */
.scroll-indicator::before {
  content: '';
  position: absolute;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  width: 18px;
  height: 40px;
  background: rgba(255, 255, 255, 0.12);
  filter: blur(14px);
  border-radius: 999px;
  pointer-events: none;
}


/* Animation du trait */
@keyframes scroll-line {
  0% {
    opacity: 0;
    transform: translateY(-8px);
  }
  50% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateY(8px);
  }
}
/* Affiche la description quand le bouton est survolé */
.description-btn:hover + .description-popup,
.description-popup:hover {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
  cursor: default;
}


/* ============================= */
/* Styles spécifiques à 2.html - body.slider */
/* ============================= */

body.slider {
  height: 100vh;
  width: 100vw;
  overflow: hidden;
  user-select: none;
}

/* Container horizontal */
body.slider #slider-container {
  overflow-x: scroll;
  overflow-y: hidden;
  height: 100vh;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  will-change: scroll-position;
  transform: translate3d(0, 0, 0);
}

body.slider #slider {
  display: flex;
  height: 100vh;
  width: max-content;
}

/* Chaque page */
body.slider .page {
  flex: 0 0 100vw;
  height: 100vh;
  scroll-snap-align: start;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  will-change: transform, opacity;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Images fullscreen */
body.slider .fullscreen-link {
  width: 100vw;
  height: 100vh;
  max-width: 100vw;
  max-height: 100vh;
  border-radius: 0;
  box-shadow: none;
}

body.slider .fullscreen-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.3s ease;
  will-change: transform;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
}

/* Hover image */
body.slider .fullscreen-link:hover img {
  transform: scale(1.05);
}

/* Bouton Information */
body.slider .description-btn {
  position: absolute;
  bottom: 20px;
  right: 20px;
  padding: 10px 20px;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  color: #fff;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
}

body.slider .description-btn:hover {
  background: rgba(255, 255, 255, 0.35);
}

/* Popup description */
body.slider .description-popup {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60vw;
  max-width: 500px;
  padding: 20px;
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  text-align: center;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 16px;
  color: white;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 15;
}


/* Titre projet top right */
body.slider .project-title-top-right {
  position: fixed;
  top: 20px;
  right: 20px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 1.5rem;
  color: white;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
  z-index: 30;
}

/* ============================= */
/* Styles spécifiques à graphismeuiux.html - body.graphisme1 */
/* ============================= */

/* ============================= */
/* Base body */
/* ============================= */
body.graphisme1 {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  width: 100%;
  overflow-y: scroll;
  background-color: white;
  font-family: 'Poppins', sans-serif;
}

/* ============================= */
/* Scroll Wrapper */
/* ============================= */
.graphisme1-scroll-wrapper {
  background-color: white;
  width: 100%;
  min-height: 100vh;
}

/* ============================= */
/* Grid Container */
/* ============================= */
.graphisme1-container {
  background-color: white;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px; /* réduit de 8px à 4px */
  width: 100%;
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

/* ============================= */
/* Full-width image */
/* ============================= */
.full-width {
  grid-column: 1 / -1;
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  margin: 0;
  padding: 0;
}

/* ============================= */
/* Row with 2 side-by-side images */
/* ============================= */
.row-images {
  grid-column: 1 / -1;
  display: flex;
  gap: 4px; /* réduit la marge entre les images */
  width: 100%;
  box-sizing: border-box;
}


.row-images img {
  flex: 1;
  width: 50%;
  height: auto;
  display: block;
  object-fit: cover;
  margin: 0;
  padding: 0;
  border: none;
}
/* Scrollbar un peu plus large (6px) */
body::-webkit-scrollbar {
  width: 6px;
  background: transparent;
}

body::-webkit-scrollbar-track {
  background: transparent;
}

body::-webkit-scrollbar-thumb {
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 6px;
  border: 1.5px solid transparent;
  background-clip: padding-box;
}

.hack-text.visible {
  opacity: 1;
}
.hack-text {
  font-size: 0.9rem; /* Taille réduite */
  color: white;
  font-family: 'Poppins', sans-serif;
  max-width: 600px;
  line-height: 1.5;
  background: rgba(0, 0, 0, 0.45);
  padding: 16px 20px;
  border-radius: 10px;
  backdrop-filter: blur(6px);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
  position: absolute;
  bottom: 40px;
  left: 50px;
}



/* ============================= */
/* Responsive: mobile full-width images */
/* ============================= */
@media (max-width: 768px) {
  .graphisme1-container {
    grid-template-columns: 1fr;
  }

  .row-images {
    flex-direction: column;
  }

  .row-images img {
    width: 100%;
  }
}
