/* Variables */
:root {
  --pitch-black: #000000;
  --blood-red: #A31621; /* Rouge profond et élégant, moins flashy */
  --concrete: #E0E0E0;
  
  --font-display: 'Bebas Neue', sans-serif;
  --font-tech: 'Space Grotesk', sans-serif;
  
  --transition-smooth: 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}

/* Base Styles & Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background-color: var(--pitch-black);
  color: var(--concrete);
  font-family: var(--font-tech);
  cursor: auto; /* Fallback si JS échoue */
  overflow-x: hidden;
}

body {
  overflow-x: hidden;
  position: relative;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  /* PLUS DE FILTRE NOIR ET BLANC. La couleur éclate ! */
  transition: var(--transition-smooth);
}

/* Custom Cursor */
.cursor {
  position: fixed;
  top: 0; left: 0;
  width: 20px;
  height: 20px;
  background-color: var(--blood-red);
  border-radius: 50%;
  mix-blend-mode: difference;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.2s, height 0.2s;
  /* On cache le curseur CSS standard via JS si supporté */
}

.cursor.hovered {
  width: 60px;
  height: 60px;
  background-color: transparent;
  border: 2px solid var(--blood-red);
}



/* Typography Basics */
.blood {
  color: var(--blood-red);
}

.concrete {
  color: var(--concrete);
}

.mega-text {
  font-family: var(--font-display);
  font-size: clamp(8rem, 25vw, 20rem);
  line-height: 0.75;
  text-transform: uppercase;
  color: transparent;
  -webkit-text-stroke: 2px rgba(224, 224, 224, 0.2);
  white-space: nowrap;
}

.mega-text.offset {
  color: rgba(224, 224, 224, 0.1);
  -webkit-text-stroke: 0;
  margin-left: 10vw;
}

h1, h2, h3 {
  font-family: var(--font-display);
  text-transform: uppercase;
  line-height: 0.9;
}

/* Header / Navbar Chill */
.navbar-chill {
  position: absolute;
  top: 0; width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 3rem 2rem;
  z-index: 100;
  background: transparent;
}

.nav-left, .nav-right {
  flex: 1;
  display: flex;
  gap: 1.5rem;
}

.nav-left {
  padding-top: 0.5rem;
}

.social-icon {
  color: #888;
  transition: color 0.3s ease;
}
.social-icon:hover {
  color: #fff;
}

.nav-center {
  flex: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.logo-chill {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.2rem;
  font-weight: 300;
  letter-spacing: 4px;
  color: #fff;
  text-transform: uppercase;
}

.nav-links-chill {
  display: flex;
  gap: 2.5rem;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.1rem;
  font-weight: 400;
}

.nav-links-chill a {
  color: #888;
  position: relative;
  text-decoration: none;
  padding-bottom: 0.3rem;
  transition: color 0.3s ease;
}

.nav-links-chill a:hover, .nav-links-chill a.active {
  color: #fff;
}

.nav-links-chill a.active::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 100%;
  height: 1px;
  background: #fff;
}
.btn-brutal {
  border: 2px solid var(--concrete);
  padding: 0.5rem 1.5rem;
  text-transform: uppercase;
  font-weight: 700;
  background: transparent;
  color: var(--concrete);
  cursor: none;
  transition: all 0.2s;
}

.btn-brutal:hover {
  background: var(--blood-red);
  border-color: var(--blood-red);
  color: var(--pitch-black);
}

.btn-brutal.invert {
  background: var(--concrete);
  color: var(--pitch-black);
  width: 100%;
  font-size: 2rem;
  padding: 1.5rem;
  font-family: var(--font-display);
  margin-top: 2rem;
}


/* Work / Section Headers */
.work-header {
  position: relative;
  margin-bottom: 4rem;
  padding: 0 2rem;
  scroll-margin-top: 10rem;
}

.bg-typography {
  position: absolute;
  top: -10vh;
  left: 2vw;
  z-index: -1;
  pointer-events: none;
  opacity: 0.7;
}

.work-header h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 300;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #fff;
}

.sub-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.85rem;
  font-weight: 300;
  letter-spacing: 4px;
  color: #888;
  display: block;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

.section-desc {
  max-width: 600px;
  margin-top: 1rem;
  font-size: 1.2rem;
  opacity: 0.8;
}

/* Photography Masonry */
.photo-work {
  padding: 25vh 0 5rem 0;
  position: relative;
  z-index: 1; /* Par-dessus les textes de fond géants */
}

/* Masonry Gallery — compact */
.masonry-gallery {
  column-count: 5;
  column-gap: 0.8rem;
  padding: 0 2rem;
  max-width: 1600px;
  margin: 0 auto;
}

.masonry-item {
  break-inside: avoid;
  margin-bottom: 0.8rem;
  position: relative;
  cursor: pointer;
}

.masonry-item img {
  width: 100%;
  border-radius: 3px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.masonry-item:hover img {
  transform: scale(1.03);
  z-index: 2;
  position: relative;
  box-shadow: 0 10px 30px rgba(0,0,0,0.7);
}

/* Lightbox */
.lightbox {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
  animation: lbFadeIn 0.25s ease;
  padding: 2rem;
}

@keyframes lbFadeIn { from { opacity: 0; } to { opacity: 1; } }

.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
  animation: lbZoomIn 0.3s ease;
}

@keyframes lbZoomIn { from { transform: scale(0.85); opacity: 0; } to { transform: scale(1); opacity: 1; } }

.lightbox-close {
  position: absolute;
  top: 1.5rem; right: 2rem;
  background: transparent;
  border: 1px solid rgba(224,224,224,0.3);
  color: var(--concrete);
  width: 40px; height: 40px;
  border-radius: 50%;
  font-size: 1.4rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  z-index: 9001;
}

.lightbox-close:hover {
  border-color: var(--blood-red);
  color: var(--blood-red);
}

/* Design Section — compact cards */
.design-studio {
  padding: 5rem 0;
  background: var(--pitch-black);
}

.design-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1.2rem;
  padding: 0 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.design-project {
  background: rgba(224, 224, 224, 0.02);
  border: 1px solid rgba(224, 224, 224, 0.08);
  border-radius: 6px;
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s;
}

.design-project:hover {
  transform: translateY(-4px);
  border-color: rgba(224, 224, 224, 0.2);
}

.poster-wrapper {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #111;
}

.poster-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-info {
  padding: 0.8rem;
}

.project-tag {
  display: inline-block;
  background: var(--blood-red);
  color: var(--pitch-black);
  padding: 0.15rem 0.5rem;
  font-family: var(--font-display);
  font-size: 0.75rem;
  border-radius: 3px;
  margin-bottom: 0.4rem;
}

.project-info h3 {
  font-size: 1rem;
  margin-bottom: 0.3rem;
  text-transform: uppercase;
}

.project-info p {
  font-size: 0.75rem;
  line-height: 1.4;
  color: rgba(224, 224, 224, 0.6);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Contact Brutal */
.contact {
  padding: 8rem 2vw;
  display: flex;
  justify-content: center;
}

.contact-wrapper {
  width: 100%;
  max-width: 800px;
}

.giant-contact {
  font-size: 10vw;
  text-align: center;
  color: transparent;
  -webkit-text-stroke: 2px var(--blood-red);
  margin-bottom: -3rem;
  position: relative;
  z-index: 10;
  pointer-events: none;
}

.form-brutal {
  background: var(--concrete);
  padding: 5rem 3rem 3rem;
  border-radius: 8px;
}

.form-row input, .form-row textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 2px solid var(--pitch-black);
  padding: 1rem 0;
  font-family: var(--font-tech);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--pitch-black);
  margin-bottom: 2rem;
}

.form-row input:focus, .form-row textarea:focus {
  outline: none;
  border-color: var(--blood-red);
}

/* Footer */
.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  padding: 3rem 2rem;
  border-top: 1px solid rgba(224, 224, 224, 0.1);
}

.foot-logo {
  font-size: 4rem;
  line-height: 1;
}

.links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  font-weight: 700;
  font-size: 1.2rem;
}

.links a:hover {
  color: var(--blood-red);
}

.legal {
  text-align: right;
  font-size: 0.9rem;
  opacity: 0.6;
}

/* Hardware Selection Roulette */
.hardware-selection {
  padding: 8rem 0;
  background: var(--pitch-black);
  user-select: none;
}

.hardware-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  padding: 0 4rem;
  max-width: 1400px;
  margin: 0 auto;
}

.hardware-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.column-label {
  font-family: var(--font-tech);
  font-size: 0.9rem;
  letter-spacing: 4px;
  color: rgba(224, 224, 224, 0.4);
  font-weight: 700;
  text-transform: uppercase;
}

.wheel-container {
  width: 100%;
  height: 420px; /* Hauteur pour voir l'item central + un peu du haut/bas */
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  scrollbar-width: none; /* Firefox */
  position: relative;
  border-radius: 24px;
  background: rgba(224, 224, 224, 0.03);
  mask-image: linear-gradient(to bottom, transparent, black 25%, black 75%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, transparent, black 25%, black 75%, transparent);
}

.wheel-container::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

.wheel-track {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 0 1rem;
}

.wheel-spacer {
  height: 140px; /* Doit correspondre à la hauteur d'un item pour le centrage */
}

.wheel-item {
  height: 140px;
  min-height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  scroll-snap-align: center;
  transition: transform 0.5s cubic-bezier(0.19, 1, 0.22, 1), opacity 0.5s ease;
  opacity: 0.2;
}

.wheel-item img {
  width: 110px;
  height: 110px;
  object-fit: contain;
  border-radius: 18px;
  border: 1px solid rgba(224, 224, 224, 0.1);
  background: #0a0a0a;
  padding: 10px;
  transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

.wheel-item.active {
  opacity: 1;
  transform: scale(1.1);
}

.wheel-item.active img {
  border-color: var(--blood-red);
  box-shadow: 0 0 30px rgba(163, 22, 33, 0.2);
}

.active-name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--blood-red);
  text-align: center;
  min-height: 2rem;
  text-transform: uppercase;
}

/* Responsive Hardware */
@media (max-width: 1024px) {
  .hardware-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
  }
}

@media (max-width: 600px) {
  .hardware-container {
    grid-template-columns: 1fr;
    padding: 0 2rem;
  }
  .wheel-container {
    height: 360px;
  }
}

/* Responsive */
@media (max-width: 1200px) {
  .masonry-gallery { column-count: 4; }
}

@media (max-width: 1024px) {
  .masonry-gallery { column-count: 3; }
  .design-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .masonry-gallery { column-count: 2; padding: 0 0.5rem; column-gap: 0.5rem; }
  .masonry-item { margin-bottom: 0.5rem; }
  .design-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 0.8rem; padding: 0 1rem; }
  .bg-huge-text { font-size: 8rem; top: 0; }
  
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }
  .legal { text-align: center; }
}

@media (min-width: 769px) {
  .menu-toggle { display: none; }
}
