/*! Sanatura — intro « Du point au lotus » · scroll storytelling vidéo · Créavolution 2026 */

/* L'intro n'existe que si le script du <head> a posé data-snt-intro="on" sur <html>
   (attribut et non classe : Salient réécrit className de <html> au chargement). */
#snt-intro { display: none; }
html[data-snt-intro="on"] #snt-intro { display: block; }

#snt-intro {
  --snt-cream: #f8f0e5;
  --snt-burgundy: #95192e;
  --snt-wine: #7d1527;
  --snt-aubergine: #431a2c;
  --snt-night: #24101a;
  --snt-serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --snt-sans: "Plus Jakarta Sans", "Helvetica Neue", Arial, sans-serif;
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  overflow: hidden;
  background: var(--snt-night);
  color: var(--snt-cream);
  font-family: var(--snt-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  contain: strict;
  isolation: isolate;
}

/* Remise à zéro au niveau de l'id : les règles du thème (h1, p, blockquote, button, img…) ne passent pas. */
#snt-intro div, #snt-intro span, #snt-intro p, #snt-intro button, #snt-intro canvas, #snt-intro svg {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border: 0;
  font: inherit;
  color: inherit;
  letter-spacing: inherit;
  text-transform: none;
  font-style: normal;
  background: none;
  box-shadow: none;
  max-width: none;
  line-height: inherit;
}
#snt-intro p::before, #snt-intro p::after, #snt-intro div::before, #snt-intro div::after { content: none; }

/* ---------- défilement : un scroller natif transparent, la scène au-dessus ignore la souris ---------- */
#snt-intro .snt-scroller {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow-x: hidden;
  overflow-y: scroll;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  outline: none;
}
#snt-intro .snt-scroller::-webkit-scrollbar { display: none; }
#snt-intro .snt-spacer { width: 1px; height: 1400vh; }

#snt-intro .snt-stage {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}
#snt-intro .snt-layer { position: absolute; inset: 0; }

/* ---------- ouverture : le point ---------- */
#snt-intro .snt-bg {
  background:
    radial-gradient(120% 90% at 50% 45%, #4a1c2f 0%, var(--snt-night) 62%, #170910 100%);
}
#snt-intro .snt-dot {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 14px;
  height: 14px;
  margin: -7px 0 0 -7px;
  will-change: transform, opacity;
}
#snt-intro .snt-dot i {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--snt-cream);
  box-shadow: 0 0 18px 2px rgba(248, 240, 229, .55);
  transform: scale(0);
}
#snt-intro .snt-dot b {
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  border: 1px solid rgba(248, 240, 229, .7);
  opacity: 0;
}
#snt-intro.is-ready .snt-dot i { animation: snt-dot-in 1.1s .5s cubic-bezier(.2, .9, .25, 1.25) forwards; }
#snt-intro.is-ready .snt-dot b { animation: snt-ripple 2.6s 1.4s cubic-bezier(.2, .6, .3, 1) infinite; }
#snt-intro.is-ready .snt-dot b + b { animation-delay: 2.7s; }
@keyframes snt-dot-in { to { transform: scale(1); } }
@keyframes snt-ripple {
  0% { transform: scale(1); opacity: .8; }
  100% { transform: scale(7); opacity: 0; }
}

/* ---------- le portail : un disque qui s'ouvre depuis le point (échelle compositée, pas de clip-path) ---------- */
#snt-intro .snt-portal {
  position: absolute;
  left: 50%;
  top: 50%;
  border-radius: 50%;
  overflow: hidden;
  will-change: transform;
  transform: scale(0);
  background: var(--snt-night);
}
#snt-intro .snt-portal-in {
  position: absolute;
  will-change: transform;
}
#snt-intro .snt-video {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  display: block;
}

#snt-intro .snt-flash { background: var(--snt-cream); opacity: 0; will-change: opacity; }
#snt-intro .snt-shade { background: var(--snt-night); opacity: 0; will-change: opacity; }
#snt-intro .snt-veil { background: radial-gradient(60% 60% at 50% 50%, rgba(36, 16, 26, .35), rgba(36, 16, 26, .85)); opacity: 0; will-change: opacity; }
#snt-intro .snt-grad {
  background:
    linear-gradient(90deg, rgba(36, 16, 26, .62) 0%, rgba(36, 16, 26, .18) 42%, rgba(36, 16, 26, 0) 60%),
    linear-gradient(0deg, rgba(36, 16, 26, .45) 0%, rgba(36, 16, 26, 0) 35%);
  opacity: 0;
  will-change: opacity;
}

/* ---------- fin : le hero de la page d'accueil, relu dans la page au moment voulu ---------- */
#snt-intro .snt-hero { opacity: 0; will-change: opacity; }
#snt-intro .snt-hero-img {
  position: absolute;
  background-size: cover;
  background-position: 50% 50%;
  background-repeat: no-repeat;
}
#snt-intro .snt-hero-veil { position: absolute; inset: 0; background: rgba(149, 25, 46, .95); opacity: .5; }

/* ---------- le logo qui se dessine (WebGL) ---------- */
#snt-intro .snt-logo {
  position: absolute;
  left: 0;
  top: 0;
  display: block;
  transform-origin: 50% 50%;
  will-change: transform, opacity;
  opacity: 0;
}

/* ---------- l'onde du pouls, en pointillés comme les rayons du logo ---------- */
#snt-intro .snt-wave {
  position: absolute;
  left: 0;
  width: 100%;
  top: 59%;
  height: 16vh;
  overflow: visible;
  opacity: 0;
  will-change: opacity, clip-path;
}
#snt-intro .snt-wave path {
  fill: none;
  stroke: var(--snt-cream);
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-dasharray: 0.1 8;
  opacity: .95;
  vector-effect: non-scaling-stroke;
}
#snt-intro .snt-wave-head {
  position: absolute;
  left: 0;
  top: 0;
  width: 10px;
  height: 10px;
  margin: -5px 0 0 -5px;
  border-radius: 50%;
  background: var(--snt-cream);
  box-shadow: 0 0 16px 3px rgba(248, 240, 229, .7);
  opacity: 0;
  will-change: transform, opacity;
}

/* ---------- textes ---------- */
#snt-intro .snt-txt {
  position: absolute;
  left: clamp(24px, 7.5vw, 140px);
  bottom: clamp(96px, 17vh, 200px);
  width: min(46rem, 84vw);
  opacity: 0;
  will-change: opacity, transform;
  text-shadow: 0 1px 24px rgba(36, 16, 26, .35);
}
#snt-intro .snt-label {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
  font-family: var(--snt-sans);
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: .16em;
  text-transform: uppercase;
  opacity: .9;
}
#snt-intro .snt-label::before {
  content: "";
  flex: 0 0 auto;
  width: 46px;
  height: 2px;
  background: radial-gradient(circle, var(--snt-cream) 0 1px, transparent 1.3px) 0 50% / 7px 2px repeat-x;
}
#snt-intro .snt-title {
  font-family: var(--snt-serif);
  font-weight: 400;
  font-size: clamp(34px, 4.7vw, 76px);
  line-height: 1.08;
  letter-spacing: -.025em;
}
#snt-intro .snt-title em { font-style: normal; color: #f3c9c4; }
#snt-intro .snt-cite {
  margin-top: 22px;
  font-family: var(--snt-sans);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  opacity: .8;
}
#snt-intro .snt-line { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
#snt-intro .snt-line > span { display: block; white-space: nowrap; will-change: transform; }
#snt-intro .snt-txt:not(.snt-open) { width: max-content; max-width: 88vw; }
#snt-intro .snt-quote .snt-title { font-size: clamp(30px, 3.7vw, 62px); }

/* ouverture : centré sous le point */
#snt-intro .snt-open {
  left: 50%;
  bottom: auto;
  top: calc(50% + 52px);
  width: min(40rem, 88vw);
  transform: translateX(-50%);
  text-align: center;
  opacity: 1;
}
#snt-intro .snt-open .snt-label { justify-content: center; margin-bottom: 18px; }
#snt-intro .snt-open .snt-label::before { display: none; }
#snt-intro .snt-open .snt-title { font-size: clamp(30px, 3.6vw, 56px); }
#snt-intro .snt-open .snt-line > span { transform: translateY(105%); }
#snt-intro .snt-open .snt-label { opacity: 0; }
#snt-intro.is-ready .snt-open .snt-line > span { animation: snt-up 1.3s cubic-bezier(.16, 1, .3, 1) forwards; }
#snt-intro.is-ready .snt-open .snt-line:nth-child(2) > span { animation-delay: .12s; }
#snt-intro.is-ready .snt-open .snt-label { animation: snt-fade 1.4s .7s ease forwards; }
@keyframes snt-up { to { transform: translateY(0); } }
@keyframes snt-fade { to { opacity: .9; } }

/* ---------- interface ---------- */
#snt-intro .snt-skip {
  position: absolute;
  top: 22px;
  right: 24px;
  z-index: 3;
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 38px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid rgba(248, 240, 229, .35);
  background: rgba(36, 16, 26, .25);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: var(--snt-cream);
  font-family: var(--snt-sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .3s ease, border-color .3s ease;
}
#snt-intro .snt-skip:hover, #snt-intro .snt-skip:focus-visible { background: var(--snt-burgundy); border-color: var(--snt-burgundy); outline: none; }
#snt-intro .snt-skip svg { width: 10px; height: 10px; stroke: currentColor; stroke-width: 1.6; fill: none; }

#snt-intro .snt-hint {
  position: absolute;
  left: 50%;
  bottom: 30px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  opacity: 0;
  will-change: opacity;
}
#snt-intro.is-ready .snt-hint { animation: snt-fade 1.2s 1.6s ease forwards; }
#snt-intro .snt-hint i {
  position: relative;
  width: 2px;
  height: 44px;
  overflow: hidden;
}
#snt-intro .snt-hint i::after {
  content: "";
  position: absolute;
  left: 0;
  top: -44px;
  width: 2px;
  height: 88px;
  background: radial-gradient(circle, var(--snt-cream) 0 1px, transparent 1.3px) 50% 0 / 2px 7px repeat-y;
  animation: snt-drip 1.8s linear infinite;
}
@keyframes snt-drip { to { transform: translateY(44px); } }

/* progression : les 12 points du logo, en couronne */
#snt-intro .snt-rail {
  position: absolute;
  right: 30px;
  bottom: 30px;
  width: 46px;
  height: 46px;
  opacity: 0;
  will-change: opacity;
}
#snt-intro.is-ready .snt-rail { animation: snt-fade 1s 1.8s ease forwards; }
#snt-intro .snt-rail span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 4px;
  height: 4px;
  margin: -2px 0 0 -2px;
  border-radius: 50%;
  background: var(--snt-cream);
  opacity: .28;
  transition: opacity .35s ease, transform .35s ease;
}
#snt-intro .snt-rail span.on { opacity: 1; }

/* mention de l'agence, en bas à gauche */
#snt-intro .snt-credit {
  position: absolute;
  left: 26px;
  bottom: 22px;
  z-index: 3;
  font-family: var(--snt-sans);
  font-size: 11px;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: .02em;
  color: rgba(248, 240, 229, .55);
  opacity: 0;
}
#snt-intro.is-ready .snt-credit { animation: snt-fade 1s 1.8s ease forwards; }
#snt-intro .snt-credit span { display: block; }
#snt-intro .snt-credit a {
  pointer-events: auto;
  font: inherit;
  color: rgba(248, 240, 229, .88);
  text-decoration: none;
  border-bottom: 1px solid rgba(248, 240, 229, .35);
  padding-bottom: 1px;
  transition: color .25s ease, border-color .25s ease;
}
#snt-intro .snt-credit a:hover, #snt-intro .snt-credit a:focus-visible { color: var(--snt-cream); border-bottom-color: #f3c9c4; outline: none; }

/* sortie */
#snt-intro.is-leaving { pointer-events: none; }

@media (max-width: 767px), (orientation: portrait) and (max-width: 1024px) {
  #snt-intro .snt-txt, #snt-intro .snt-txt:not(.snt-open) { left: 22px; right: 22px; width: auto; max-width: none; bottom: 108px; }
  #snt-intro .snt-line > span { white-space: normal; }
  #snt-intro .snt-quote .snt-title { font-size: clamp(26px, 7.2vw, 38px); }
  #snt-intro .snt-open { left: 50%; right: auto; width: 88vw; top: calc(50% + 40px); bottom: auto; }
  #snt-intro .snt-title { font-size: clamp(30px, 8.6vw, 44px); }
  #snt-intro .snt-open .snt-title { font-size: clamp(28px, 7.8vw, 40px); }
  #snt-intro .snt-label { font-size: 11px; margin-bottom: 16px; }
  #snt-intro .snt-skip { top: 14px; right: 14px; height: 34px; padding: 0 14px; font-size: 11px; }
  #snt-intro .snt-rail { right: 18px; bottom: 22px; width: 38px; height: 38px; }
  #snt-intro .snt-hint { bottom: 76px; }
  #snt-intro .snt-credit { left: 22px; right: 76px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); font-size: 10px; }
  #snt-intro .snt-grad {
    background: linear-gradient(0deg, rgba(36, 16, 26, .72) 0%, rgba(36, 16, 26, .3) 34%, rgba(36, 16, 26, 0) 58%);
  }
  #snt-intro .snt-wave { top: 34%; height: 12vh; }
}

@media (prefers-reduced-motion: reduce) {
  #snt-intro.is-ready .snt-dot b, #snt-intro .snt-hint i::after { animation: none; }
}
