/* =========================================================
   Styles personnalisés — Fouquet Studio
   Complète Tailwind avec animations et détails typographiques.
   ========================================================= */

/* --- Base --- */
html { scroll-behavior: smooth; }

body {
  font-feature-settings: "ss01", "cv11";
}

/* --- Liens de navigation : soulignement animé --- */
.nav-link {
  position: relative;
  display: inline-block;
  padding-bottom: 2px;
  color: #262626;
  transition: color .2s ease;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%;
  height: 1px;
  background: #0a0a0a;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .35s cubic-bezier(.22,.61,.36,1);
}
.nav-link:hover::after,
.nav-link.is-active::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* --- Apparition à l'arrivée sur la page --- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  animation: rise .9s cubic-bezier(.22,.61,.36,1) forwards;
}
.reveal-delay-1 { animation-delay: .1s; }
.reveal-delay-2 { animation-delay: .2s; }
.reveal-delay-3 { animation-delay: .3s; }
.reveal-delay-4 { animation-delay: .4s; }
.reveal-delay-5 { animation-delay: .5s; }
.reveal-delay-6 { animation-delay: .6s; }

@keyframes rise {
  to { opacity: 1; transform: translateY(0); }
}

/* --- Marqueur "n°" pour les sections numérotées --- */
.section-index {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #6e6e6e;
}

/* --- Carte de service : effet d'inversion au survol --- */
.service-card {
  position: relative;
  overflow: hidden;
  transition: color .4s ease, transform .4s ease;
}
.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #0a0a0a;
  transform: translateY(100%);
  transition: transform .55s cubic-bezier(.22,.61,.36,1);
  z-index: 0;
}
.service-card:hover::before { transform: translateY(0); }
.service-card:hover { color: #ffffff; }
.service-card > * { position: relative; z-index: 1; }

/* --- Tickers / défilement horizontal --- */
.marquee {
  display: flex;
  width: max-content;
  animation: marquee 40s linear infinite;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* --- Bandeau divisé en blocs --- */
.dot-rule {
  background-image: radial-gradient(circle, #cfcfcf 1px, transparent 1px);
  background-size: 8px 8px;
}

/* --- Titres display : Bricolage Grotesque, gras par défaut --- */
.font-display {
  font-optical-sizing: auto;
  font-weight: 700;
  font-variation-settings: "opsz" 96;
}

/* --- Lien souligné par défaut, animé --- */
.link-line {
  position: relative;
  display: inline;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 100% 1px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  transition: background-size .35s ease;
}
.link-line:hover { background-size: 0% 1px; background-position: 100% 100%; }

/* --- Input du formulaire de contact --- */
.field {
  border: 0;
  border-bottom: 1px solid #cfcfcf;
  padding: 14px 0;
  background: transparent;
  font: inherit;
  width: 100%;
  outline: none;
  transition: border-color .25s ease;
}
.field:focus { border-color: #0a0a0a; }
.field::placeholder { color: #9a9a9a; }

/* --- Grille de fond subtile pour le hero --- */
.grid-bg {
  background-image:
    linear-gradient(to right, rgba(10,10,10,0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(10,10,10,0.04) 1px, transparent 1px);
  background-size: 80px 80px;
}

/* --- Pour les écrans réduits, désactive certaines anims --- */
@media (prefers-reduced-motion: reduce) {
  .reveal, .marquee { animation: none; opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
