/* Phare — styles personnalisés (par-dessus Tailwind) */

html { scroll-behavior: smooth; }
body { background-color: #1A1714; }

::selection { background: #C8962C; color: #1A1714; }

/* Lueur dorée qui suit le curseur */
.cursor-glow {
  position: fixed;
  top: 0; left: 0;
  width: 460px; height: 460px;
  margin: -230px 0 0 -230px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200,150,44,0.10) 0%, rgba(200,150,44,0.03) 38%, transparent 70%);
  pointer-events: none;
  z-index: 40;
  mix-blend-mode: screen;
  opacity: 0;
  transition: opacity 0.55s ease;
  will-change: transform;
}
/* Au repos : présente mais très discrète */
.cursor-glow.is-visible { opacity: 0.4; }
/* En mouvement : un peu plus intense, sans jamais devenir forte */
.cursor-glow.is-visible.is-moving { opacity: 0.72; }

/* Lien d'évitement clavier */
.skip-link {
  position: absolute;
  left: 1rem; top: -100px;
  z-index: 100;
  background: #C8962C; color: #1A1714;
  padding: 0.6rem 1rem; border-radius: 8px;
  font-weight: 500;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 1rem; }

/* Focus visible doré, cohérent avec la marque */
a:focus-visible,
button:focus-visible {
  outline: 2px solid #C8962C;
  outline-offset: 3px;
  border-radius: 4px;
}

/* Liens du menu mobile */
.menu-mobile-link {
  color: rgba(237, 230, 216, 0.85);
  transition: color 0.25s ease;
}
.menu-mobile-link:hover { color: #EDE6D8; }

/* Nav : fond qui apparaît au scroll (toggle via JS) */
#nav.is-scrolled {
  background-color: rgba(26, 23, 20, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(58, 51, 43, 0.6);
}

.nav-link {
  position: relative;
  transition: color 0.25s ease;
}
.nav-link:hover { color: #EDE6D8; }
.nav-link::after {
  content: '';
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 1px;
  background: #C8962C;
  transition: width 0.3s ease;
}
.nav-link:hover::after { width: 100%; }

/* Halo chaud derrière le hero, discret */
.hero-glow {
  position: absolute;
  top: -10%; right: -5%;
  width: 55vw; height: 55vw;
  max-width: 760px; max-height: 760px;
  background: radial-gradient(circle, rgba(200,150,44,0.16) 0%, rgba(200,150,44,0) 68%);
  pointer-events: none;
}

/* Maquette de site dans le hero */
.hero-mockup {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(58, 51, 43, 0.9);
  background: #16130F;
  box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.6);
  transform: rotate(1.4deg);
  animation: float 6s ease-in-out infinite;
}
.hero-mockup__bar {
  display: flex; align-items: center; gap: 7px;
  padding: 11px 14px;
  background: #211C16;
  border-bottom: 1px solid rgba(58, 51, 43, 0.7);
}
.hero-mockup__dot { width: 9px; height: 9px; border-radius: 50%; background: #3A332B; }
.hero-mockup__url {
  margin-left: 12px; font-size: 11px; color: #6E665B;
  background: #16130F; padding: 3px 14px; border-radius: 20px;
}
.hero-mockup__screen {
  padding: 26px 28px 30px;
  background:
    radial-gradient(130% 90% at 80% 0%, rgba(200, 150, 44, 0.18), transparent 60%),
    #16130F;
}
.hero-mockup__nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 38px; }
.hero-mockup__brand { font-family: 'Fraunces', serif; font-size: 17px; font-weight: 600; color: #EDE6D8; }
.hero-mockup__links { display: flex; gap: 9px; }
.hero-mockup__links span { width: 22px; height: 5px; border-radius: 3px; background: #3A332B; }
.hero-mockup__eyebrow { font-size: 9px; letter-spacing: 2px; color: #C8962C; margin: 0 0 12px; }
.hero-mockup__title { font-family: 'Fraunces', serif; font-size: 30px; font-weight: 600; line-height: 1.1; color: #EDE6D8; margin: 0 0 22px; }
.hero-mockup__btn {
  display: inline-block; background: #C8962C; color: #1A1714;
  font-size: 12px; font-weight: 500; padding: 9px 16px; border-radius: 7px;
}
.hero-mockup__cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 34px; }
.hero-mockup__cards span {
  height: 64px; border-radius: 10px;
  background: #211C16; border: 1px solid rgba(58, 51, 43, 0.7);
}
@keyframes float {
  0%, 100% { transform: rotate(1.4deg) translateY(0); }
  50% { transform: rotate(1.4deg) translateY(-12px); }
}

/* Indice de défilement animé */
.scroll-cue {
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, #C8962C, transparent);
  animation: cue 2.2s ease-in-out infinite;
  transform-origin: top;
}
@keyframes cue {
  0%, 100% { transform: scaleY(0.4); opacity: 0.4; }
  50% { transform: scaleY(1); opacity: 1; }
}

/* Petite ligne dorée devant les eyebrows de section */
.eyebrow-tag { display: inline-flex; align-items: center; }
.eyebrow-tag::before {
  content: '';
  width: 28px; height: 1px;
  background: #C8962C;
  margin-right: 12px;
  display: inline-block;
}

/* Bandeau défilant (marquee) */
.marquee {
  display: flex;
  overflow: hidden;
  user-select: none;
  gap: 0;
  mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 3.5rem;
  padding-right: 3.5rem;
  animation: marquee 32s linear infinite;
}
.marquee__item {
  font-family: 'Fraunces', serif;
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  font-weight: 500;
  white-space: nowrap;
  color: rgba(237, 230, 216, 0.55);
}
.marquee__dot { color: #C8962C; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Listes de services avec coche dorée */
.service-li {
  position: relative;
  padding-left: 28px;
  line-height: 1.6;
}
.service-li::before {
  content: '';
  position: absolute;
  left: 0; top: 9px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #C8962C;
}

/* Visuel des pages secondaires */
.service-visual {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 16px;
  overflow: hidden;
  background:
    radial-gradient(120% 120% at 75% 15%, rgba(200,150,44,0.16), transparent 55%),
    #241F1A;
  border: 1px solid rgba(58, 51, 43, 0.7);
}
.service-visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.service-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(26,23,20,0) 45%, rgba(26,23,20,0.5));
  pointer-events: none;
}

/* Formulaire */
.form-label {
  display: block;
  font-size: 0.85rem;
  color: rgba(237, 230, 216, 0.85);
  margin-bottom: 8px;
}
.form-input,
.form-select,
.form-textarea {
  width: 100%;
  background: #16130F;
  border: 1px solid rgba(58, 51, 43, 0.9);
  border-radius: 10px;
  padding: 12px 14px;
  color: #EDE6D8;
  font-size: 1rem;
  font-family: 'Inter', sans-serif;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.form-input::placeholder,
.form-textarea::placeholder { color: #6E665B; }
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: #C8962C;
  box-shadow: 0 0 0 3px rgba(200, 150, 44, 0.18);
}
.form-textarea { resize: vertical; min-height: 130px; }
.form-select { appearance: none; cursor: pointer; }

/* Section chiffres */
.stat-num {
  font-family: 'Fraunces', serif;
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  font-weight: 600;
  color: #C8962C;
  line-height: 1;
}

/* Séparateurs verticaux entre les trois chiffres (desktop/tablette) */
.stats-grid > div { position: relative; }
@media (min-width: 640px) {
  .stats-grid > div:not(:first-child)::before {
    content: '';
    position: absolute;
    left: -1.5rem;
    top: 0.25rem;
    bottom: 0.25rem;
    width: 1px;
    background: rgba(58, 51, 43, 0.7);
  }
}

/* Ligne de clôture sous les chiffres, relie le bloc à un appel à l'action */
.stats-closing {
  margin-top: 4.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(58, 51, 43, 0.6);
  text-align: center;
}
.stats-closing p:first-child {
  font-family: 'Fraunces', serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 500;
  color: #EDE6D8;
}
.stats-closing p + p {
  color: rgba(237, 230, 216, 0.6);
  margin-top: 0.5rem;
}
.stats-closing a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #C8962C;
  font-weight: 500;
  margin-top: 1.75rem;
  transition: gap 0.25s ease;
}
.stats-closing a:hover { gap: 0.75rem; }

/* Cartes services */
.service-card {
  background: #241F1A;
  border: 1px solid rgba(58, 51, 43, 0.7);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.16,1,0.3,1), border-color 0.4s ease;
}
.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(200, 150, 44, 0.5);
}

/* Visuel en haut de carte (mêmes photos que la page Services) */
.service-card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #241F1A;
}
.service-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.7s cubic-bezier(0.16,1,0.3,1);
}
.service-card:hover .service-card__media img { transform: scale(1.05); }
/* Voile sombre pour rester dans le ton et garder le numéro lisible */
.service-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(165deg, rgba(26,23,20,0.15) 35%, rgba(36,31,26,0.95));
  pointer-events: none;
}
.service-card__num {
  position: absolute;
  bottom: 0.9rem;
  right: 1.2rem;
  z-index: 1;
  font-family: 'Fraunces', serif;
  font-size: 2.6rem;
  font-weight: 600;
  line-height: 1;
  color: rgba(200, 150, 44, 0.55);
}
.service-card__body { padding: 1.75rem 2rem 2rem; }
.service-icon {
  position: relative;
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 12px;
  background: rgba(200, 150, 44, 0.12);
  color: #C8962C;
}

/* Numéros de processus */
.step-num {
  font-family: 'Fraunces', serif;
  font-size: 2.75rem;
  font-weight: 600;
  color: #C8962C;
  line-height: 1;
  display: inline-block;
}
.step-num + h3 { border-top: 1px solid rgba(58,51,43,0.7); padding-top: 1rem; }

/* Ligne de parcours reliant les 4 étapes (desktop/tablette) */
.process-grid { position: relative; }
.process-rail {
  position: absolute;
  left: 0; right: 0;
  top: 24px;
  height: 1px;
  background: rgba(58, 51, 43, 0.7);
  display: none;
}
/* Révélation progressive des étapes, de gauche à droite et dans l'ordre */
.js .process-grid > [data-reveal] {
  transform: translateX(-32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.js .process-grid > [data-reveal].is-in { transform: none; }

@media (min-width: 768px) {
  .process-rail { display: block; }
  /* Les 4 étapes entrent en même temps dans le viewport côte à côte : le
     décalage se fait donc uniquement via transition-delay, dans l'ordre. */
  .process-grid > [data-reveal]:nth-child(2) { transition-delay: 0s; }
  .process-grid > [data-reveal]:nth-child(3) { transition-delay: 0.15s; }
  .process-grid > [data-reveal]:nth-child(4) { transition-delay: 0.3s; }
  .process-grid > [data-reveal]:nth-child(5) { transition-delay: 0.45s; }
}

/* Cartes réalisations */
.work-card { cursor: pointer; }
.work-thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 16px;
  background:
    radial-gradient(120% 120% at 70% 10%, rgba(200,150,44,0.14), transparent 55%),
    #241F1A;
  border: 1px solid rgba(58, 51, 43, 0.7);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  transition: border-color 0.4s ease, transform 0.5s cubic-bezier(0.16,1,0.3,1);
}
.work-card:hover .work-thumb {
  border-color: rgba(200, 150, 44, 0.5);
  transform: scale(1.015);
}
.work-thumb__cta {
  position: absolute;
  inset: auto auto 16px 18px;
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.85rem; color: #EDE6D8;
  opacity: 0; transform: translateY(8px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.work-card:hover .work-thumb__cta { opacity: 1; transform: translateY(0); }

/* États initiaux des animations (seulement si JS actif) */
.js [data-hero],
.js [data-hero-word],
.js [data-reveal] { will-change: transform, opacity; }

.js [data-hero] { opacity: 0; transform: translateY(20px); transition: opacity 0.7s ease, transform 0.7s ease; }
.js .hero-line { display: block; overflow: hidden; }
.js [data-hero-word] { display: inline-block; transform: translateY(110%); transition: transform 0.9s cubic-bezier(0.16,1,0.3,1); }
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 0.9s ease, transform 0.9s ease; }

/* États finaux (classe ajoutée par main.js au bon moment) */
.js [data-hero].is-in,
.js [data-hero-word].is-in,
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* Filet de sécurité : si les animations ne peuvent pas tourner
   (GSAP indisponible, mouvement réduit), on affiche tout d'office. */
.no-anim [data-hero],
.no-anim [data-hero-word],
.no-anim [data-reveal] {
  opacity: 1 !important;
  transform: none !important;
}

/* Bande de transition dorée entre les sections, qui se dessine au scroll
   (vient se poser sur le filet border-bordure déjà présent, ne le remplace pas).
   Le conteneur .seam garde toujours sa taille finale (pour que l'IntersectionObserver
   le détecte correctement) ; c'est la barre intérieure .seam__bar qui se dessine via scaleX. */
.seam {
  position: absolute;
  top: 0; left: 50%;
  width: min(220px, 42%); height: 1px;
  transform: translateX(-50%);
  pointer-events: none;
}
.seam--bottom { top: auto; bottom: 0; }
/* Neutralise l'animation générique [data-reveal] (fondu + translateY) sur ce
   conteneur : lui doit rester fixe et centré, seule .seam__bar se dessine. */
.js .seam[data-reveal],
.js .seam[data-reveal].is-in {
  opacity: 1;
  transform: translateX(-50%) !important;
}
.no-anim .seam[data-reveal] {
  transform: translateX(-50%) !important;
}
.seam__bar {
  display: block; width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, #B03A24 32%, #C8962C 50%, #B03A24 68%, transparent);
  opacity: 0;
  transform: scaleX(0);
  transition: transform 1.1s cubic-bezier(0.16,0.84,0.44,1) 0.1s, opacity 0.5s ease 0.1s;
}
.js .seam[data-reveal].is-in .seam__bar {
  opacity: 1;
  transform: scaleX(1);
  box-shadow: 0 0 14px rgba(200, 150, 44, 0.45);
}
.no-anim .seam__bar {
  opacity: 1 !important;
  transform: scaleX(1) !important;
}

/* FAQ (page Services) */
.faq-item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.4rem 0;
  font-family: 'Fraunces', serif;
  font-size: 1.25rem;
  font-weight: 500;
  color: #EDE6D8;
  transition: color 0.25s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  flex: none;
  width: 2.1rem;
  height: 2.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #3A332B;
  border-radius: 9999px;
  color: #C8962C;
  font-family: 'Inter', sans-serif;
  font-size: 1.15rem;
  font-weight: 400;
  transition: transform 0.3s, background-color 0.3s;
}
.faq-item[open] summary::after {
  transform: rotate(45deg);
  background-color: rgba(200, 150, 44, 0.12);
}
.faq-item summary:hover { color: #C8962C; }
.faq-item summary:focus-visible {
  outline: 2px solid #C8962C;
  outline-offset: 4px;
  border-radius: 4px;
}
.faq-item p {
  padding: 0 0 1.5rem;
  color: rgba(237, 230, 216, 0.72);
  line-height: 1.7;
  max-width: 60ch;
}

/* Accessibilité : on désactive tout mouvement si demandé */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .scroll-cue,
  .hero-mockup,
  .marquee__track { animation: none; }
  .hero-mockup { transform: rotate(1.4deg); }
  .service-card:hover { transform: none; }
  .service-card:hover .service-card__media img { transform: none; }
  .js [data-hero],
  .js [data-hero-word],
  .js [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }
}
