﻿/* ═══════════════════════════════════════════════════════════════
   FUTURISTE.CSS — Couche visuelle premium
   Inspiré : SpaceX · Louis Vuitton · WeareBrand.io
   Ne remplace pas styles.css — vient s'y superposer
═══════════════════════════════════════════════════════════════ */


/* ══════════════════════════════════════════════════════════════
   GRAIN ANIMÉ — Overlay global
══════════════════════════════════════════════════════════════ */
body::after {
  content: '';
  position: fixed;
  inset: -50%;
  width: 200%;
  height: 200%;
  pointer-events: none;
  z-index: 9998;
  opacity: 0.038;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='250' height='250'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='250' height='250' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grainShift 0.12s steps(1) infinite;
}

@keyframes grainShift {
  0%  { transform: translate(0, 0); }
  10% { transform: translate(-3%, -4%); }
  20% { transform: translate(5%, 2%); }
  30% { transform: translate(-2%, 6%); }
  40% { transform: translate(4%, -3%); }
  50% { transform: translate(-5%, 1%); }
  60% { transform: translate(3%, 5%); }
  70% { transform: translate(-4%, -2%); }
  80% { transform: translate(2%, -5%); }
  90% { transform: translate(-3%, 4%); }
  100%{ transform: translate(5%, -1%); }
}


/* ══════════════════════════════════════════════════════════════
   PRELOADER — Animation pliage tôle 3D
══════════════════════════════════════════════════════════════ */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: #050505;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.6s;
}

#preloader.done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* ── Conteneur centré ── */
.pl-scene {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.6rem;
}

/* ── SVG animé ── */
.pl-svg {
  width: clamp(220px, 48vw, 340px);
  height: auto;
  opacity: 0;
  animation: plAppear 0.3s 0.05s ease-out forwards;
}

@keyframes plAppear {
  to { opacity: 1; }
}

/* ── Couvertine : descend depuis le haut et se pose sur le muret ── */
.pl-couv {
  transform: translateY(-90px);
  opacity: 0;
  animation: plCouvDrop 0.85s 0.25s cubic-bezier(0.45, 1.6, 0.55, 1) forwards;
}
@keyframes plCouvDrop {
  0%   { transform: translateY(-90px); opacity: 0; }
  18%  { opacity: 1; }
  78%  { transform: translateY(0); }
  86%  { transform: translateY(-3px); }
  100% { transform: translateY(0); opacity: 1; }
}

/* ── Goutte d'eau : tombe depuis le rejet 45° ── */
.pl-water {
  animation: plWaterDrip 0.7s 1.05s ease-in forwards;
}
@keyframes plWaterDrip {
  0%   { opacity: 0; transform: translateY(0); }
  20%  { opacity: 1; transform: translateY(0); }
  85%  { opacity: 1; transform: translateY(26px); }
  100% { opacity: 0; transform: translateY(34px); }
}

/* ── Check vert "étanche" : pop in ── */
.pl-check {
  opacity: 0;
  transform: scale(0.5);
  transform-origin: 220px 50px;
  animation: plCheckPop 0.45s 1.4s cubic-bezier(0.4, 1.5, 0.55, 1) forwards;
}
@keyframes plCheckPop {
  to { opacity: 1; transform: scale(1); }
}

/* ── Label METAL PLIAGE ── */
.pl-label {
  font-family: 'Inter', sans-serif;
  font-size: clamp(1rem, 3.5vw, 1.45rem);
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(10px);
  animation: plLabelIn 0.5s 1.12s cubic-bezier(0, 0, 0.2, 1) forwards;
}
@keyframes plLabelIn {
  to { opacity: 1; transform: translateY(0); }
}

.pl-name   { color: #EEF3F8; }
.pl-accent { color: #FF4500; }

/* ── Barre de progression ── */
.preloader-bar-wrap {
  width: clamp(140px, 28vw, 260px);
  height: 1px;
  background: #1C1C1C;
  position: relative;
  overflow: hidden;
}

.preloader-bar-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #FF4500, #FFB347);
  animation: preloaderBar 1.6s 0.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes preloaderBar {
  to { width: 100%; }
}


/* ══════════════════════════════════════════════════════════════
   BARRE DE PROGRESSION SCROLL
══════════════════════════════════════════════════════════════ */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, #FF4500 0%, #FFB347 100%);
  z-index: 9999;
  pointer-events: none;
  box-shadow: 0 0 8px rgba(255, 111, 0, 0.6);
  transition: width 0.05s linear;
}


/* ══════════════════════════════════════════════════════════════
   MARQUEE / TICKER
══════════════════════════════════════════════════════════════ */
.marquee-section {
  overflow: hidden;
  background: #050505;
  border-top: 1px solid #1E1E1E;
  border-bottom: 1px solid #1E1E1E;
  padding: 1.1rem 0;
  position: relative;
}

.marquee-section::before,
.marquee-section::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 120px;
  z-index: 2;
  pointer-events: none;
}
.marquee-section::before {
  left: 0;
  background: linear-gradient(to right, #050505, transparent);
}
.marquee-section::after {
  right: 0;
  background: linear-gradient(to left, #050505, transparent);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 28s linear infinite;
}

.marquee-track:hover { animation-play-state: paused; }

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-33.3333%); }
}

.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 1.8rem;
  padding: 0 1.8rem;
  white-space: nowrap;
  font-family: 'Inter', sans-serif;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #404040;
}

.marquee-item strong {
  color: #FF4500;
  font-weight: 700;
}

.marquee-dot {
  display: inline-block;
  width: 3px;
  height: 3px;
  background: #FF4500;
  border-radius: 50%;
  flex-shrink: 0;
}


/* ══════════════════════════════════════════════════════════════
   GHOST TEXT — Arrière-plan ambient
══════════════════════════════════════════════════════════════ */
.hero-ghost {
  position: absolute;
  font-family: 'Inter', sans-serif;
  font-size: clamp(14rem, 28vw, 36rem);
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 0.85;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.04);
  text-transform: uppercase;
  pointer-events: none;
  z-index: 1;
  bottom: -1rem;
  right: -2rem;
  user-select: none;
}


/* ══════════════════════════════════════════════════════════════
   GRADIENT TEXT — Shimmer orange
══════════════════════════════════════════════════════════════ */
.text-gradient {
  background: linear-gradient(90deg, #FF4500 0%, #FFB347 40%, #FF4500 80%, #FFB347 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 3s linear infinite;
}

@keyframes shimmer {
  to { background-position: 200% center; }
}


/* ══════════════════════════════════════════════════════════════
   SPLIT TEXT — Animation lettre par lettre
══════════════════════════════════════════════════════════════ */
.split-ready .char {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
}

.split-ready .char-inner {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: calc(var(--i, 0) * 0.035s);
}

.split-ready.in-view .char-inner {
  transform: translateY(0);
}

.split-ready .char-space {
  display: inline-block;
  width: 0.3em;
}


/* ══════════════════════════════════════════════════════════════
   SECTION MATIÈRES — Défilement horizontal
══════════════════════════════════════════════════════════════ */
.materials-section {
  background: #050505;
  border-top: 1px solid #1E1E1E;
  border-bottom: 1px solid #1E1E1E;
  overflow: hidden;
  position: relative;
}

.materials-header {
  max-width: 1320px;
  margin: 0 auto;
  padding: clamp(60px, 8vw, 100px) clamp(1.5rem, 5vw, 4rem) 3rem;
}

.materials-scroll-container {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  cursor: grab;
}

.materials-scroll-container::-webkit-scrollbar { display: none; }
.materials-scroll-container.is-grabbing { cursor: grabbing; }

.material-panel {
  flex: 0 0 clamp(320px, 42vw, 580px);
  scroll-snap-align: start;
  min-height: 520px;
  padding: 4rem 3.5rem;
  border-right: 1px solid #1E1E1E;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  transition: background 0.4s ease;
}

.material-panel:last-child { border-right: none; }

.material-panel--acier {
  background: linear-gradient(145deg, #0a0a0a 0%, #141414 50%, #0c0c0c 100%);
}
.material-panel--inox {
  background: linear-gradient(145deg, #0c0e0f 0%, #161c20 50%, #0a0c0e 100%);
}
.material-panel--sable {
  background: linear-gradient(145deg, #100c08 0%, #1c1510 50%, #0c0a06 100%);
}

/* Ambient glow per panel */
.material-panel--acier::before {
  content: '';
  position: absolute;
  bottom: -40%;
  left: -20%;
  width: 120%;
  height: 120%;
  background: radial-gradient(ellipse, rgba(255, 111, 0, 0.06) 0%, transparent 60%);
  pointer-events: none;
}
.material-panel--inox::before {
  content: '';
  position: absolute;
  bottom: -40%;
  left: -20%;
  width: 120%;
  height: 120%;
  background: radial-gradient(ellipse, rgba(180, 220, 255, 0.05) 0%, transparent 60%);
  pointer-events: none;
}
.material-panel--sable::before {
  content: '';
  position: absolute;
  bottom: -40%;
  left: -20%;
  width: 120%;
  height: 120%;
  background: radial-gradient(ellipse, rgba(255, 200, 100, 0.05) 0%, transparent 60%);
  pointer-events: none;
}

.material-num {
  font-family: 'Inter', sans-serif;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  color: #FF4500;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.material-name-big {
  font-family: 'Inter', sans-serif;
  font-size: clamp(2.8rem, 5vw, 5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  text-transform: uppercase;
  color: #F5F5F5;
  margin-bottom: 0.5rem;
}

.material-name-sub {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #404040;
  margin-bottom: 2.5rem;
}

.material-specs {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 2.5rem;
}

.material-spec {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 0;
  border-top: 1px solid #1E1E1E;
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
}

.material-spec-label {
  color: #404040;
  text-transform: uppercase;
  font-weight: 600;
  font-size: 0.62rem;
  letter-spacing: 0.12em;
}

.material-spec-value {
  color: #F5F5F5;
  font-weight: 500;
}

.material-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #FF4500;
  transition: gap 0.3s ease, opacity 0.3s ease;
}
.material-cta:hover { gap: 1rem; opacity: 0.8; }

.material-ghost-num {
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  font-family: 'Inter', sans-serif;
  font-size: clamp(8rem, 14vw, 18rem);
  font-weight: 800;
  letter-spacing: -0.06em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.04);
  pointer-events: none;
  line-height: 1;
  user-select: none;
}

.materials-scroll-hint {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1.5rem clamp(1.5rem, 5vw, 4rem);
  max-width: 1320px;
  margin: 0 auto;
  font-family: 'Inter', sans-serif;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #404040;
}

.materials-scroll-hint svg {
  animation: arrowSlide 1.5s ease-in-out infinite;
}

@keyframes arrowSlide {
  0%, 100% { transform: translateX(0); }
  50%       { transform: translateX(8px); }
}


/* ══════════════════════════════════════════════════════════════
   SECTION DIVIDER — Ligne orange animée
══════════════════════════════════════════════════════════════ */
.section-divider {
  height: 1px;
  background: linear-gradient(90deg, #FF4500, transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
  max-width: 1320px;
  margin: 0 auto;
}

.section-divider.in-view {
  transform: scaleX(1);
}


/* ══════════════════════════════════════════════════════════════
   HERO ENHANCEMENTS — Parallax, glow
══════════════════════════════════════════════════════════════ */
#hero {
  overflow: visible; /* allow ghost text to overflow */
}

.hero-content {
  position: relative;
  z-index: 3;
}

.hero-ambient-glow {
  position: absolute;
  bottom: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 500px;
  background: radial-gradient(ellipse, rgba(255, 111, 0, 0.12) 0%, transparent 65%);
  pointer-events: none;
  z-index: 1;
  animation: glowPulse 4s ease-in-out infinite;
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.8; transform: translateX(-50%) scale(1); }
  50%       { opacity: 1;   transform: translateX(-50%) scale(1.08); }
}

/* Cinematic letter-box bars */
.hero-letterbox-top,
.hero-letterbox-bottom {
  position: absolute;
  left: 0;
  right: 0;
  height: 0;
  background: #050505;
  z-index: 3;
  transition: height 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}
.hero-letterbox-top { top: 0; }
.hero-letterbox-bottom { bottom: 0; }

/* Show letterbox bars on preload then hide */
body.is-loading .hero-letterbox-top,
body.is-loading .hero-letterbox-bottom {
  height: 80px;
}


/* ══════════════════════════════════════════════════════════════
   MAGNETIC BUTTONS — Base
══════════════════════════════════════════════════════════════ */
.btn-magnetic {
  will-change: transform;
  transition: transform 0.15s cubic-bezier(0.25, 0.1, 0.25, 1),
              box-shadow 0.3s ease,
              background 0.3s ease;
}


/* ══════════════════════════════════════════════════════════════
   AMBIENT GLOWS — Sections
══════════════════════════════════════════════════════════════ */
.stats-section {
  position: relative;
}

.portfolio-section {
  position: relative;
}

.testimonials-section {
  position: relative;
}

.testimonials-section::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(ellipse, rgba(255, 111, 0, 0.05) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}


/* ══════════════════════════════════════════════════════════════
   NAV — Scan line
══════════════════════════════════════════════════════════════ */
#navbar::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: -100%;
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, #FF4500, transparent);
  animation: navScan 6s ease-in-out infinite;
  opacity: 0.5;
  pointer-events: none;
}

@keyframes navScan {
  0%   { left: -10%; opacity: 0; }
  10%  { opacity: 0.5; }
  90%  { opacity: 0.5; }
  100% { left: 110%; opacity: 0; }
}


/* ══════════════════════════════════════════════════════════════
   STATS SECTION — Améliorations
══════════════════════════════════════════════════════════════ */
.stat-number {
  position: relative;
}

.stat-number::after {
  content: attr(data-suffix);
  font-size: 0.5em;
  vertical-align: super;
  opacity: 0.6;
  margin-left: 0.1em;
}


/* ══════════════════════════════════════════════════════════════
   FOOTER — Glow subtil
══════════════════════════════════════════════════════════════ */
#footer {
  position: relative;
}

#footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 400px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 111, 0, 0.4), transparent);
}


/* ══════════════════════════════════════════════════════════════
   SCROLL REVEAL — Clip path (alternatif à fadeup)
══════════════════════════════════════════════════════════════ */
.reveal-clip {
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-clip.in-view {
  clip-path: inset(0 0 0% 0);
}


/* ══════════════════════════════════════════════════════════════
   RESPONSIVE — Futuriste
══════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .hero-ghost { font-size: clamp(8rem, 40vw, 16rem); right: -1rem; }

  .materials-scroll-container {
    flex-direction: column;
    overflow-x: visible;
    scroll-snap-type: none;
  }
  .material-panel {
    flex: none;
    width: 100%;
    min-height: 380px;
    border-right: none;
    border-bottom: 1px solid #1E1E1E;
  }
  .material-ghost-num { font-size: clamp(5rem, 25vw, 10rem); }
  .materials-scroll-hint { display: none; }
}

@media (max-width: 480px) {
  .pl-svg { width: 200px; }
  .marquee-item { font-size: 0.58rem; letter-spacing: 0.2em; }
}


/* ══════════════════════════════════════════════════════════════
   REDUCED MOTION — Respect des préférences
══════════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  body::after { animation: none; }
  .marquee-track { animation: none; }
  .text-gradient { animation: none; }
  #preloader .preloader-bar-fill { animation: none; width: 100%; }
  #preloader .pl-couv  { animation: none; opacity: 1; transform: none; }
  #preloader .pl-water { display: none; }
  #preloader .pl-check { animation: none; opacity: 1; transform: scale(1); }
  #preloader .pl-svg   { animation: none; opacity: 1; }
  #preloader .pl-label { animation: none; opacity: 1; transform: none; }
  .hero-ambient-glow { animation: none; }
  #navbar::before { animation: none; }
  .split-ready .char-inner { transition: none; }
}
