/* SC Couture — Direction « Noir Éditorial » (monochrome noir & blanc)
   Esthétique maison de couture : noir profond, accents ivoire/blanc, filets fins,
   typographie serif éditoriale à fort contraste, mises en page asymétriques. */

:root {
  /* Thème clair : fond blanc, écriture noire */
  --noir: #FAF8F4;        /* fond (clair) */
  --noir-soft: #EFE9DF;   /* fond alterné (clair) */
  --ink: #FFFFFF;
  --gold: #1A1712;        /* accents / écriture (noir) */
  --gold-soft: #000000;
  --champagne: #8A6D3B;
  --emerald: #123F33;
  --ivory: #1A1712;       /* texte principal (noir) */
  --ivory-dim: rgba(26, 23, 18, 0.66);
  --ivory-faint: rgba(26, 23, 18, 0.42);
  --line: rgba(26, 23, 18, 0.14);
  --line-strong: rgba(26, 23, 18, 0.42);
  --hover-wipe: #2E2A22;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--noir);
}

body {
  background-color: var(--noir);
  color: var(--ivory);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection {
  background: var(--gold);
  color: var(--noir);
}

::-webkit-scrollbar { width: 9px; }
::-webkit-scrollbar-track { background: var(--noir); }
::-webkit-scrollbar-thumb { background: var(--emerald); }
::-webkit-scrollbar-thumb:hover { background: var(--gold); }

:focus-visible {
  outline: 1px solid var(--gold);
  outline-offset: 4px;
}

.font-display { font-family: "Cormorant Garamond", serif; }
.font-body { font-family: "Jost", sans-serif; }

/* ---------- Typographie éditoriale ---------- */
.display-xl {
  font-family: "Cormorant Garamond", serif;
  font-weight: 300;
  line-height: 0.98;
  letter-spacing: -0.01em;
}
.display-italic { font-style: italic; font-weight: 400; }

.eyebrow {
  font-family: "Jost", sans-serif;
  font-weight: 400;
  font-size: 0.68rem;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--gold);
}
.section-index {
  font-family: "Jost", sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.4em;
  color: var(--gold);
}

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--gold);
  color: var(--noir);
  padding: 0.75rem 1.25rem;
  font-family: "Jost", sans-serif;
  letter-spacing: 0.1em;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* ---------- Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 1.1s cubic-bezier(0.16, 1, 0.3, 1),
              transform 1.1s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.12s; }
.reveal-delay-2 { transition-delay: 0.24s; }
.reveal-delay-3 { transition-delay: 0.36s; }
.reveal-delay-4 { transition-delay: 0.48s; }

/* Rideau qui se lève sur les images */
.img-mask { position: relative; overflow: hidden; }
.img-mask::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--noir);
  transform: scaleY(1);
  transform-origin: bottom;
  transition: transform 1.2s cubic-bezier(0.77, 0, 0.175, 1);
}
.img-mask.is-visible::after { transform: scaleY(0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .img-mask::after { display: none; }
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* ---------- Header ---------- */
#site-header {
  transition: background-color 0.6s ease, padding 0.5s ease,
              border-color 0.6s ease, backdrop-filter 0.6s ease;
  border-bottom: 1px solid transparent;
}
#site-header.header-scrolled {
  background-color: rgba(250, 248, 244, 0.85);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.nav-link {
  position: relative;
  color: var(--ivory);
  transition: color 0.4s ease;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 100%; height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}
.nav-link:hover { color: var(--gold-soft); }
.nav-link:hover::after { transform: scaleX(1); transform-origin: left; }

/* ---------- Boutons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  padding: 1.05rem 2.4rem;
  font-family: "Jost", sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-weight: 400;
  overflow: hidden;
  transition: color 0.5s ease, border-color 0.5s ease;
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 0;
}
.btn > * { position: relative; z-index: 1; }
.btn span { position: relative; z-index: 1; }
.btn:hover { transform: translateY(-2px); }
.btn { transition: color 0.5s ease, border-color 0.5s ease, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1); }

.btn-gold {
  background: var(--gold);
  color: var(--noir);
}
.btn-gold::before { background: var(--hover-wipe); }
.btn-gold:hover::before { transform: scaleX(1); transform-origin: left; }

.btn-ghost {
  border: 1px solid var(--line-strong);
  color: var(--ivory);
}
.btn-ghost::before { background: var(--gold); }
.btn-ghost:hover { color: var(--noir); border-color: var(--gold); }
.btn-ghost:hover::before { transform: scaleX(1); transform-origin: left; }

/* ---------- Hero ---------- */
.hero-media { position: absolute; inset: 0; overflow: hidden; }
.hero-media img,
.hero-media video {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  opacity: 0;
  animation: heroReveal 1.8s ease forwards;
}
@keyframes heroReveal { to { opacity: 1; } }

/* Fond flouté qui remplit tout l'écran */
.hero-video-bg {
  object-fit: cover;
  object-position: center;
  filter: blur(30px) brightness(1) saturate(1.05);
  transform: scale(1.15);
}
/* Vidéo nette entière (dézoomée), centrée par-dessus */
.hero-video-main {
  object-fit: contain;
  object-position: center;
}

/* Voile blanc léger : seulement derrière le texte (gauche) et la nav (haut),
   la partie droite/centre reste dégagée pour laisser ressortir les couleurs de la vidéo */
.hero-grain {
  position: absolute; inset: 0;
  background:
    linear-gradient(to bottom, rgba(250,248,244,0.82) 0%, rgba(250,248,244,0) 15%),
    linear-gradient(to right, rgba(250,248,244,0.96) 0%, rgba(250,248,244,0.78) 28%, rgba(250,248,244,0.22) 56%, rgba(250,248,244,0) 78%),
    linear-gradient(to top, rgba(250,248,244,0.68) 0%, rgba(250,248,244,0) 12%);
}

.hero-side {
  writing-mode: vertical-rl;
  letter-spacing: 0.42em;
  font-size: 0.66rem;
  text-transform: uppercase;
  color: var(--ivory-faint);
  font-family: "Jost", sans-serif;
}

@keyframes lineGrow { from { height: 0; } to { height: 72px; } }
.scroll-line {
  width: 1px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: lineGrow 2s ease-in-out infinite alternate;
}

/* ---------- Filets & titres de section ---------- */
.rule { height: 1px; background: var(--line); width: 100%; }
.rule-gold { height: 1px; background: var(--line-strong); }

.marquee-title {
  font-family: "Cormorant Garamond", serif;
  font-weight: 300;
  letter-spacing: -0.01em;
  line-height: 1;
}

/* ---------- Créations ---------- */
.filter-btn {
  font-family: "Jost", sans-serif;
  color: var(--ivory-dim);
  transition: color 0.4s ease;
  position: relative;
}
.filter-btn::after {
  content: "";
  position: absolute; left: 0; bottom: -6px;
  width: 100%; height: 1px; background: var(--gold);
  transform: scaleX(0); transform-origin: center;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.filter-btn:hover { color: var(--ivory); }
.filter-btn.active { color: var(--gold); }
.filter-btn.active::after { transform: scaleX(1); }

.creation-card {
  position: relative;
  overflow: hidden;
  background: var(--noir-soft);
}
.creation-card img {
  transition: transform 1.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.creation-card:hover img {
  transform: scale(1.06);
}
.creation-overlay {
  background: linear-gradient(to top, rgba(250,248,244,0.96) 0%, rgba(250,248,244,0.55) 40%, rgba(250,248,244,0.05) 75%, transparent 100%);
  opacity: 0.9;
  transition: opacity 0.6s ease;
}
.creation-card:hover .creation-overlay { opacity: 0.96; }
.creation-caption { transform: translateY(12px); transition: transform 0.6s cubic-bezier(0.16,1,0.3,1); }
.creation-card:hover .creation-caption { transform: translateY(0); }
.creation-view {
  opacity: 0; transform: translateY(8px);
  transition: opacity 0.5s ease 0.05s, transform 0.5s ease 0.05s;
}
.creation-card:hover .creation-view { opacity: 1; transform: translateY(0); }

/* ---------- Pourquoi (liste éditoriale) ---------- */
.why-row {
  border-top: 1px solid var(--line);
  transition: background-color 0.5s ease, padding-left 0.5s cubic-bezier(0.16,1,0.3,1);
}
.why-row:last-child { border-bottom: 1px solid var(--line); }
.why-row:hover { background-color: rgba(244,239,230,0.06); padding-left: 1rem; }
.why-row:hover .why-num { color: var(--gold); }
.why-row:hover .why-arrow { opacity: 1; transform: translateX(0); }
.why-num { color: var(--ivory-faint); transition: color 0.5s ease; }
.why-arrow { opacity: 0; transform: translateX(-12px); transition: opacity 0.5s ease, transform 0.5s ease; color: var(--gold); }

/* ---------- Processus (timeline) ---------- */
.process-line { background: var(--line); }
.process-step:hover .process-num {
  background: var(--gold);
  color: var(--noir);
  border-color: var(--gold);
}
.process-num {
  transition: background-color 0.5s ease, color 0.5s ease, border-color 0.5s ease;
}

/* ---------- Témoignages ---------- */
.testi-quote { font-family: "Cormorant Garamond", serif; }
.star { color: var(--gold); }
.testimonial-card {
  border: 1px solid var(--line);
  transition: border-color 0.5s ease, transform 0.6s cubic-bezier(0.16,1,0.3,1);
}
.testimonial-card:hover { border-color: var(--line-strong); transform: translateY(-6px); }

/* ---------- Instagram ---------- */
.insta-card { position: relative; overflow: hidden; }
.insta-card img {
  transition: transform 1s cubic-bezier(0.16,1,0.3,1);
}
.insta-card:hover img { transform: scale(1.08); }
.insta-hover {
  opacity: 0;
  background: rgba(250,248,244,0.55);
  transition: opacity 0.5s ease;
}
.insta-card:hover .insta-hover { opacity: 1; }

/* ---------- FAQ ---------- */
.faq-item { border-top: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-question { transition: color 0.4s ease; }
.faq-item:hover .faq-question { color: var(--gold-soft); }
.faq-icon { transition: transform 0.5s cubic-bezier(0.16,1,0.3,1); }
.faq-item.open .faq-icon { transform: rotate(45deg); color: var(--gold); }
.faq-answer {
  max-height: 0; overflow: hidden; opacity: 0;
  transition: max-height 0.6s cubic-bezier(0.16,1,0.3,1), opacity 0.5s ease, margin 0.5s ease;
}
.faq-item.open .faq-answer { opacity: 1; }

/* ---------- Formulaire ---------- */
.field input, .field select, .field textarea {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line);
  color: var(--ivory);
  font-family: "Jost", sans-serif;
  transition: border-color 0.4s ease;
  padding: 0.85rem 0;
}
.field input::placeholder, .field textarea::placeholder { color: var(--ivory-faint); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--gold);
}
.field select option { background: var(--noir); color: var(--ivory); }
.field label {
  font-family: "Jost", sans-serif;
  font-size: 0.62rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ---------- WhatsApp ---------- */
.whatsapp-float { animation: waPulse 2.8s ease-in-out infinite; }
@keyframes waPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(18, 63, 51, 0.5); }
  50% { box-shadow: 0 0 0 14px rgba(18, 63, 51, 0); }
}

/* ---------- Lightbox ---------- */
#lightbox { transition: opacity 0.5s ease; }

/* ---------- Compteurs ---------- */
.counter { font-variant-numeric: tabular-nums; }

/* ---------- Menu mobile ---------- */
#mobile-menu { background: var(--noir); }

/* ---------- Divers ---------- */
.link-underline {
  position: relative;
  padding-bottom: 3px;
}
.link-underline::after {
  content: "";
  position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px; background: var(--gold);
  transform: scaleX(1); transform-origin: left;
  transition: transform 0.45s cubic-bezier(0.16,1,0.3,1);
}
.link-underline:hover::after { transform: scaleX(0); transform-origin: right; }

/* ---------- Barre de progression de défilement ---------- */
#scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0%;
  background: var(--gold-soft);
  z-index: 60;
  transition: width 0.12s linear;
  pointer-events: none;
}

/* ---------- Parallaxe douce (piloté par JS) ---------- */
[data-parallax] { will-change: transform; }

/* ---------- Révélation raffinée par ligne de titre ---------- */
.line-reveal { overflow: hidden; }
.line-reveal > span {
  display: inline-block;
  transform: translateY(105%);
  transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}
.line-reveal.is-visible > span { transform: translateY(0); }
.line-reveal.rd-1 > span { transition-delay: 0.08s; }
.line-reveal.rd-2 > span { transition-delay: 0.18s; }

@media (prefers-reduced-motion: reduce) {
  #scroll-progress { display: none; }
  [data-parallax] { transform: none !important; }
  .line-reveal > span { transform: none; transition: none; }
}
