/* ====
   NFZee — styles.css (Full)
   Thème noir mat & or (#D4AF37)
   ==== */

:root {
  --gold: #D4AF37;
  --ink: #0b0b0c;   /* fond principal */
  --mat: #111214;   /* surfaces mates */

  /* Easing custom pour gooey nav */
  --linear-ease: linear(
    0,
    0.068,
    0.19 2.7%,
    0.804 8.1%,
    1.037,
    1.199 13.2%,
    1.245,
    1.27 15.8%,
    1.274,
    1.272 17.4%,
    1.249 19.1%,
    0.996 28%,
    0.949,
    0.928 33.3%,
    0.926,
    0.933 36.8%,
    1.001 45.6%,
    1.013,
    1.019 50.8%,
    1.018 54.4%,
    1 63.1%,
    0.995 68%,
    1.001 85%,
    1
  );
}

html, body {
  background: var(--ink);
  color: #e9e9ea;
  min-height: 100%;
}
/* Effet apparition au scroll */
.reveal-on-scroll { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal-on-scroll.in-view { opacity: 1; transform: translateY(0); }

/* Reveal-up animation (utilisé dans le HTML) */
.reveal-up {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}


/**** Intro Video ****/
html.intro-lock, body.intro-lock {
  height: 100%;
  overflow: hidden; /* bloque le scroll tant que l'intro est active */
}

.intro-video {
  position: relative;
  width: 100%;
  height: 100svh; /* écran entier mobile/desktop */
  min-height: 480px;
  isolation: isolate;
  background: #000;
  z-index: 9999; /* au-dessus du reste au démarrage */
}

.intro-video__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* couvre sans bandes noires */
  filter: saturate(1.05) contrast(1.05) brightness(0.9);
}

.intro-video__overlay {
  position: relative;
  z-index: 2;
  height: 100%;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 2rem;
  background: radial-gradient(ellipse at center, rgba(0,0,0,0.15), rgba(0,0,0,0.55));
  color: #fff;
}

.intro-video__title {
  font-size: clamp(2.5rem, 6vw, 5rem);
  line-height: 1.1;
  letter-spacing: 0.04em;
  margin: 0 0 0.25em;
  color: #f5d37a; /* ton doré */
  text-shadow: 0 8px 24px rgba(0,0,0,0.45);
}

.intro-video__subtitle {
  font-size: clamp(1rem, 2.4vw, 1.5rem);
  opacity: 0.9;
}

.intro-video__skip {
  position: absolute;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  background: rgba(255,255,255,0.1);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 0.95rem;
  backdrop-filter: blur(6px);
  cursor: pointer;
  z-index: 3;
  transition: background 0.25s ease, transform 0.2s ease;
}
.intro-video__skip:hover { background: rgba(255,255,255,0.18); transform: translateX(-50%) translateY(-1px); }

/* Transition de sortie de l'intro */
.intro-exit {
  animation: introFadeOut 550ms var(--linear-ease, ease) forwards;
}
@keyframes introFadeOut {
  to {
    opacity: 0;
    visibility: hidden;
  }
}

/* Quand l'intro disparaît, réactive le scroll et fais remonter le site sous-jacent */
body.revealed .site-root {
  transform: none;
  opacity: 1;
}
.site-root {
  transform: translateY(0);
  opacity: 1;
  transition: transform 500ms ease, opacity 500ms ease;
}

/* Optionnel: assure que la liquid-ether-container reste derrière la vidéo d'intro */
.liquid-ether-container { z-index: 1; }
/* Couleurs utilitaires */
.gold { color: var(--gold); }
.bg-gold { background: var(--gold); }

/* Anneau / halo doré discret */
.ring-gold {
  box-shadow: 0 0 0 1px rgba(212,175,55,.35),
    inset 0 0 0 1px rgba(0,0,0,.35);
}

/* Cartes / panneaux */
.card {
  background: #0f0f11;
  border: 1px solid rgba(212,175,55,.15);
  border-radius: 16px;
  transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}
.card:hover {
  border-color: rgba(212,175,55,.3);
  box-shadow: 0 30px 100px rgba(0,0,0,.55);
}

/* Boutons */
.btn {
  transition: all .25s ease;
  border-radius: 999px;
  padding: .9rem 1.25rem;
  font-weight: 600;
}
.btn-gold {
  background: var(--gold);
  color: #0b0b0c;
}
.btn-gold:hover {
  filter: brightness(1.05);
  transform: translateY(-2px);
}
.btn-outline {
  background: transparent;
  color: #e9e9ea;
  border: 1px solid rgba(212,175,55,.45);
}
.btn-outline:hover {
  background: rgba(212,175,55,.08);
  transform: translateY(-2px);
}

/* Sections */
.section {
  padding-top: 80px;
  padding-bottom: 80px;
  position: relative; /* nécessaire pour couches d'effets */
  z-index: 2;    /* au-dessus du canvas BG */
}

/* Petites étiquettes */
.tag {
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: .8rem;
}

/* Légère atténuation */
.fade { opacity: .92; }

/* Ombres */
.shadow-soft { box-shadow: 0 30px 80px rgba(0,0,0,.45); }

/* Halo doré en arrière-plan du hero */
.gold-gradient {
  background: radial-gradient(1200px 600px at 80% -10%, rgba(212,175,55,.15), transparent 40%);
}

/* Majuscules discrètes */
.caps { letter-spacing: .06em; text-transform: uppercase; }

/* Grille auto-fit */
.grid-auto {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

/* Accent des cartes "stat" */
.stat::after {
  content: "";
  display: block;
  height: 2px;
  width: 56px;
  background: var(--gold);
  margin-top: 10px;
  opacity: .5;
}

/* Logo mot */
.logo-word { font-weight: 800; letter-spacing: .04em; }

/* Images - style par défaut */
img { border-radius: 14px; max-width: 100%; height: auto; }

/* Micro interactions */
a, button, .card img {
  transition: transform .25s ease, box-shadow .25s ease, filter .25s ease;
}
.card img:hover { transform: translateY(-2px); }

/* Sélection de texte */
.selection\:bg-gold::selection { background: var(--gold); color: #000; }

/* ====
   Uniformisation des images (galeries)
   ==== */
#how img,
#who img,
#custom img,
#why img,
#innov img,
#products img,
#made img {
  width: 100%;
  height: 260px;    /* desktop */
  object-fit: cover;    /* ou contain */
  background: #0f0f11;  /* utile si contain */
  border-radius: 14px;
}

/* Responsive spacing + images */
@media (max-width: 1024px) {
  .section { padding-top: 72px; padding-bottom: 72px; }
}
@media (max-width: 768px) {
  .section { padding-top: 64px; padding-bottom: 64px; }
  #how img, #who img, #custom img, #why img, #innov img, #products img { height: 200px; }
}
@media (max-width: 480px) {
  .section { padding-top: 56px; padding-bottom: 56px; }
  #how img, #who img, #custom img, #why img, #innov img, #products img { height: 180px; }
}

/* ====
   Electric Border Effect (exact version)
   ==== */
.electric-border {
  --electric-light-color: oklch(from var(--electric-border-color) l c h);
  --eb-border-width: 2px;
  position: relative;
  border-radius: inherit;
  overflow: visible;
  isolation: isolate;
}

.eb-svg {
  position: fixed;
  left: -10000px;
  top: -10000px;
  width: 10px;
  height: 10px;
  opacity: 0.001;
  pointer-events: none;
}

.eb-content {
  position: relative;
  border-radius: inherit;
  z-index: 1;
}

.eb-layers {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 2;
}

.eb-stroke,
.eb-glow-1,
.eb-glow-2,
.eb-overlay-1,
.eb-overlay-2,
.eb-background-glow {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-sizing: border-box;
}

.eb-stroke {
  border: var(--eb-border-width) solid var(--electric-border-color);
}

.eb-glow-1 {
  border: var(--eb-border-width) solid oklch(from var(--electric-border-color) l c h / 0.6);
  opacity: 0.5;
  filter: blur(calc(0.5px + (var(--eb-border-width) * 0.25)));
}

.eb-glow-2 {
  border: var(--eb-border-width) solid var(--electric-light-color);
  opacity: 0.5;
  filter: blur(calc(2px + (var(--eb-border-width) * 0.5)));
}

.eb-background-glow {
  z-index: -1;
  transform: scale(1.08);
  filter: blur(32px);
  opacity: 0.3;
  background: linear-gradient(-30deg, var(--electric-light-color), transparent, var(--electric-border-color));
}

/* ====
   Make it yours — Section avec electric border
   ==== */
#make-it-yours .masonry { display: block; }
#make-it-yours .masonry-top { display: flex; justify-content: center; gap: 24px; margin-bottom: 20px; padding: 0 20px; }
#make-it-yours .masonry-top .mi-card, #make-it-yours .masonry-bottom .mi-card { max-width: 420px; width: 100%; }
#make-it-yours .masonry-bottom { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; padding: 0 20px; }

#make-it-yours .mi-card {
  position: relative;
  overflow: visible;
  border-radius: 16px;
  background: #0f0f11;
  transition: transform .28s ease, box-shadow .28s ease;
}

#make-it-yours .mi-card:hover {
  transform: translateY(-4px);
}

#make-it-yours .mi-card .media {
  position: relative;
  border-radius: 16px;
  overflow: visible;
}

#make-it-yours .mi-card .electric-border {
  border-radius: 16px;
  display: block;
}

#make-it-yours .mi-card img {
  display: block;
  width: 100%;
  height: clamp(320px, 38vw, 480px);
  object-fit: cover;
  object-position: center;
  border-radius: 16px;
  filter: contrast(1.06) saturate(1.03);
}

#make-it-yours .mi-card:hover img {
  filter: contrast(1.08) saturate(1.06) brightness(1.02);
}

/* Couleurs de bordure par carte */
#make-it-yours .mi-card[data-card="1"] .electric-border {
  --electric-border-color: #fafafa;
}

#make-it-yours .mi-card[data-card="2"] .electric-border {
  --electric-border-color: #d19a66;
}

#make-it-yours .mi-card[data-card="3"] .electric-border {
  --electric-border-color: #e6a5a8;
}

#make-it-yours .mi-card[data-card="4"] .electric-border {
  --electric-border-color: #6acaaa;
}

#make-it-yours .mi-card[data-card="5"] .electric-border {
  --electric-border-color: #8fb4ff;
}

/* Hover video container */
#make-it-yours .mi-card .hover-video {
  position: absolute;
  inset: 0;
  border-radius: 16px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  z-index: 2;
}

#make-it-yours .mi-card:hover .hover-video {
  opacity: 1;
}

#make-it-yours .mi-card .hover-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
}

/* Overlays et captions */
#make-it-yours .mi-card .overlay,
#make-it-yours .mi-card .caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 16px 18px;
  background: linear-gradient(to top, rgba(0,0,0,.65), rgba(0,0,0,.25) 60%, transparent);
  color: #f1f1f2;
  border-radius: 0 0 16px 16px;
  z-index: 3;
}

#make-it-yours .mi-card h3 {
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--gold);
  margin: 0 0 4px 0;
}

#make-it-yours .mi-card p {
  font-size: .95rem;
  opacity: .9;
  margin: 0;
}

/* Responsive tweaks */
@media (max-width: 1024px) {
  #make-it-yours .mi-card img {
    height: clamp(280px, 42vw, 400px);
  }
}

@media (max-width: 768px) {
  #make-it-yours .masonry {
    gap: 18px;
    padding: 15px;
  }
  #make-it-yours .mi-card img {
    height: clamp(240px, 50vw, 340px);
  }
}

@media (max-width: 480px) {
  #make-it-yours .masonry {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 10px;
  }
  #make-it-yours .mi-card {
    border-radius: 14px;
  }
  #make-it-yours .mi-card img {
    height: clamp(220px, 60vw, 300px);
  }
}

/* ====
   Hamburger Menu Animation (3 traits → X)
   Disponible sur desktop et mobile
   ==== */
.hamburger {
  width: 28px;
  height: 22px;
  position: relative;
  cursor: pointer;
  display: flex; /* Toujours visible */
  flex-direction: column;
  justify-content: space-between;
  background: none;
  border: none;
  padding: 0;
  z-index: 9999;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2.5px;
  background: var(--gold);
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  transform-origin: center;
}

/* Animation quand le menu est ouvert (X) */
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
  transform: translateX(-20px);
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Navigation Overlay (Desktop + Mobile) */
#mobile-nav {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.95);
  backdrop-filter: blur(10px);
  z-index: 9998;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

#mobile-nav.active {
  opacity: 1;
  pointer-events: auto;
}

#mobile-nav nav {
  text-align: center;
}

#mobile-nav nav a {
  display: block;
  color: #e9e9ea;
  font-size: 1.5rem;
  font-weight: 600;
  padding: 1rem;
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
}

#mobile-nav nav a:hover {
  color: var(--gold);
  transform: translateX(8px);
}

/* Responsive: ajustement de la taille des liens sur desktop */
@media (min-width: 769px) {
  #mobile-nav nav a {
    font-size: 2rem;
    padding: 1.25rem;
  }
}

/* ====
   Liquid Ether Background
   ==== */
.liquid-ether-container {
  position: fixed;    /* fixe derrière tout */
  inset: 0;
  overflow: hidden;
  width: 100%;
  height: 100%;
  touch-action: none;
  z-index: 1;    /* sous le contenu (.section z-index:2) */
  pointer-events: none; /* pour ne pas bloquer les clics */
}

/* Canvas plein écran si besoin de fallback CSS */
#fluid {
  position: absolute;
  inset: 0;
  width: 100vw;
  height: 100vh;
  display: block;
}

/* ====
   Infinite Marquee Section
   ==== */
.section-marquee {
  padding-top: 80px;
  padding-bottom: 80px;
  position: relative;
  z-index: 2;
  overflow: hidden;
}

.marquee-container {
  width: 100%;
  overflow: hidden;
  position: relative;
  margin-top: 40px;
}

.marquee-track {
  display: flex;
  gap: 24px;
  will-change: transform;
  scroll-behavior: smooth;
}

.marquee-card {
  flex-shrink: 0;
  width: 320px;
}

.marquee-card .card {
  height: 100%;
}

.marquee-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 14px;
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .section-marquee {
    padding-top: 64px;
    padding-bottom: 64px;
    overflow: visible !important;
  }

  .marquee-card {
    width: 280px;
  }

  .marquee-card img {
    height: 180px;
  }

  .marquee-track {
    animation: marquee 30s linear infinite;
  }
}

@media (max-width: 480px) {
  .marquee-card {
    width: 240px;
  }

  .marquee-card img {
    height: 160px;
  }
}

/* Reworked layout for the hero images — large main image + floating card */
.outils-section { padding: 0; }
.outils-inner {
  display: block;
}
.outils-visual {
  position: relative;
  width: 100%;
}

.ov-main {
  width: 100%;
  aspect-ratio: 16/10;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(16,16,40,0.08);
}

.ov-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .45s ease;
}

.ov-card {
  position: absolute;
  right: -6%;
  bottom: -6%;
  width: 46%;
  aspect-ratio: 4/5;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(16,16,40,0.12);
  transform: translateZ(0);
  transition: transform .35s ease, box-shadow .35s ease;
  border: 1px solid #eee;
}

.ov-card img { width: 100%; height: 100%; object-fit: cover; display: block; }

.outils-visual:hover .ov-main img { transform: scale(1.03); }
.outils-visual:hover .ov-card { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(16,16,40,0.18); }

/* Responsive — stack on small screens */
@media (max-width: 900px) {
  .ov-card { position: relative; right: auto; bottom: auto; width: 52%; margin: -4rem auto 0 auto; transform: none; }
  .ov-main { aspect-ratio: 16/11; }
}

/* --- Mobile / intro fixes --- */
@media (max-width: 768px) {
  .intro-video {
    height: auto;
    min-height: 260px; /* moins envahissant sur mobile */
  }
  /* Permettre le scroll si l'intro est bloquante sur petits écrans */
  html.intro-lock,
  body.intro-lock {
    overflow: auto;
  }

  /* Rendre les vidéos / images moins hautes sur petits écrans */
  .card video,
  .carousel-slide img,
  .carousel-slide video {
    max-height: 320px !important;
    height: auto !important;
  }

  /* Ajuste la carte flottante dans la section outils */
  .ov-card {
    position: relative;
    right: auto;
    bottom: auto;
    width: 70%;
    margin: -2.5rem auto 0 auto;
  }
}

/* --- Footer logo & spacing --- */
.footer-logo {
  height: 16px; /* comme demandé */
  width: auto;
  display: block;
  object-fit: contain;
}

/* Reduce footer vertical padding on all screens (override excessive classes) */
footer .max-w-7xl {
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
}

/* Slightly increase spacing between footer columns on mobile for clarity */
@media (max-width: 640px) {
  footer .max-w-7xl { gap: 1rem; padding-left: 1rem; padding-right: 1rem; }
}

/* Footer logo — override des styles globaux pour éviter le recadrage/arrondi */
.footer-logo {
  display: block;
  width: auto;    /* conserve les proportions */
  max-width: 100%;    /* ne dépasse jamais son conteneur */
  height: auto;
  max-height: 56px;    /* hauteur max sur desktop (ajustable) */
  object-fit: contain;    /* affiche tout le logo sans le couper */
  border-radius: 0;    /* annule l'arrondi global appliqué à toutes les images */
  padding: 2px 0;    /* petit espacement pour éviter le collage visuel */
}

/* Réduction sur petits écrans */
@media (max-width: 768px) {
  .footer-logo { max-height: 44px; }
}
@media (max-width: 480px) {
  .footer-logo { max-height: 36px; }
}