/* ═══════════════════════════════════════════════════
   COMING SOON — Dissociation Institute
   Palette Forêt (identique au site principal)
   ═══════════════════════════════════════════════════ */

:root {
  --bg:            #F0F3EC;
  --bg-deep:       #E1E8DC;
  --ink:           #0D2426;
  --ink-soft:      #2E4548;
  --muted:         #6B7F7C;
  --hairline:      #CFD8CB;
  --accent:        #16636A;
  --accent-deep:   #0F4A50;
  --accent-soft:   #C8DCAA;

  --serif: 'Fraunces', 'Times New Roman', serif;
  --sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --ease:  cubic-bezier(.2, .7, .2, 1);
}

:root[data-theme="dark"] {
  --bg:            #0D2326;
  --bg-deep:       #08171A;
  --ink:           #ECF0E4;
  --ink-soft:      #BFCBB9;
  --muted:         #7E8F84;
  --hairline:      #1F3338;
  --accent:        #99C254;
  --accent-deep:   #B5D875;
  --accent-soft:   #1F4A50;
}

html { transition: background-color .35s var(--ease); }
*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  display: flex;
  flex-direction: column;
  transition: background-color .35s var(--ease), color .35s var(--ease);
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; background: none; border: none; color: inherit; }
em { font-style: italic; }

/* ─────────── HEADER minimal ─────────── */
.cs-header {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 1.4rem clamp(1.25rem, 4vw, 3rem);
  border-bottom: 1px solid var(--hairline);
}
.cs-brand {
  margin-right: auto;
  display: inline-flex;
  align-items: center;
  gap: .85rem;
  color: var(--ink);
}
.cs-brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
}
.cs-brand-mark img {
  width: 100%; height: 100%;
  object-fit: contain;
}
.cs-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}
.cs-brand-name {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.05rem;
  letter-spacing: -.005em;
}
.cs-brand-sub {
  font-size: .7rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 2px;
}

.cs-actions {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}
.cs-theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  color: var(--ink-soft);
  transition: background .2s var(--ease), border-color .2s var(--ease),
              color .2s var(--ease), transform .2s var(--ease);
}
.cs-theme-toggle:hover {
  background: var(--bg-deep);
  border-color: var(--accent);
  color: var(--accent);
}
.cs-theme-toggle:active { transform: scale(.94); }
.cs-theme-toggle .ti-moon { display: block; }
.cs-theme-toggle .ti-sun  { display: none;  }
:root[data-theme="dark"] .cs-theme-toggle .ti-moon { display: none;  }
:root[data-theme="dark"] .cs-theme-toggle .ti-sun  { display: block; }

.cs-lang {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .78rem;
  letter-spacing: .12em;
  color: var(--muted);
}
.cs-lang-btn {
  padding: .25rem .15rem;
  letter-spacing: .12em;
  transition: color .2s var(--ease);
}
.cs-lang-btn.is-active { color: var(--ink); font-weight: 500; }
.cs-lang-btn:hover:not(.is-active) { color: var(--ink-soft); }
.cs-lang-sep { opacity: .5; }

/* ─────────── HERO principal ─────────── */
.cs-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(3rem, 8vw, 6rem) clamp(1.25rem, 4vw, 3rem);
}
.cs-inner {
  max-width: 720px;
  text-align: center;
}

.cs-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-size: .78rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 2.2rem;
  padding: .5rem 1.2rem;
  border: 1px solid var(--accent);
  border-radius: 999px;
  animation: csEyebrowFade 1s var(--ease) .1s both;
}
.cs-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: csDotPulse 2.4s ease-in-out infinite;
}

@keyframes csDotPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: .35; transform: scale(1.4); }
}
@keyframes csEyebrowFade {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.cs-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(3rem, 8vw, 5.5rem);
  line-height: 1;
  letter-spacing: -.025em;
  color: var(--ink);
  margin: 0 0 1.8rem;
}
.cs-line {
  display: block;
  opacity: 0;
  transform: translateY(20px);
  animation: csLineRise 1s var(--ease) forwards;
}
.cs-line:nth-child(1) { animation-delay: .3s; }
.cs-line:nth-child(2) { animation-delay: .5s; }
.cs-line.italic {
  font-style: italic;
  color: var(--accent);
}
@keyframes csLineRise {
  to { opacity: 1; transform: translateY(0); }
}

.cs-lede {
  max-width: 56ch;
  margin: 0 auto 3rem;
  font-size: clamp(1rem, 1.2vw, 1.15rem);
  color: var(--ink-soft);
  opacity: 0;
  animation: csFadeIn 1.2s var(--ease) 1s forwards;
}
.cs-lede em {
  font-family: var(--serif);
  font-style: italic;
  color: var(--ink);
}
@keyframes csFadeIn { to { opacity: 1; } }

/* ─── ANIMATION 3 silhouettes + souffles colorés ─── */
.cs-anim {
  margin: 0 auto 3rem;
  max-width: 400px;
  color: var(--ink-soft);
}
.cs-svg {
  width: 100%;
  height: auto;
  overflow: visible;
}
.cs-ground {
  stroke: var(--ink-soft);
  stroke-width: 1;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  opacity: .3;
  animation: csDrawStroke 1.4s var(--ease) 1.5s forwards;
}
@keyframes csDrawStroke {
  to { stroke-dashoffset: 0; }
}
.cs-figure {
  opacity: 0;
  animation: csFadeIn 1s var(--ease) 1.8s forwards;
  color: var(--ink);
}
.cs-figure-left  { transform: translateX(-40px); }
.cs-figure-right { transform: translateX( 40px); }
.cs-figure-left, .cs-figure-right {
  opacity: 0;
  animation: csEchoLoop 6s var(--ease) 2s infinite;
}
.cs-figure-right { animation-name: csEchoLoopRight; }

@keyframes csEchoLoop {
  0%, 100% { opacity: .55; transform: translateX(-40px); }
  50%      { opacity: .8;  transform: translateX(-10px); }
}
@keyframes csEchoLoopRight {
  0%, 100% { opacity: .55; transform: translateX(40px); }
  50%      { opacity: .8;  transform: translateX(10px); }
}
.cs-figure-center {
  animation: csCenterBreathe 4s ease-in-out 2.5s infinite;
  transform-origin: 250px 195px;
}
@keyframes csCenterBreathe {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.02); }
}

/* Souffles colorés qui montent en boucle */
.cs-spark {
  opacity: 0;
  transform-origin: center;
  animation: csSparkRise 5s var(--ease) infinite;
}
.cs-s1 { animation-delay: 3.2s; }
.cs-s2 { animation-delay: 3.8s; }
.cs-s3 { animation-delay: 4.4s; }
.cs-s4 { animation-delay: 5.0s; }
@keyframes csSparkRise {
  0%   { opacity: 0;   transform: translateY(0)   scale(.6); }
  15%  { opacity: .85; transform: translateY(-6px) scale(1); }
  60%  { opacity: .85; transform: translateY(-40px) scale(1); }
  100% { opacity: 0;   transform: translateY(-60px) scale(.5); }
}

/* ─── Reduced motion ─── */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .cs-line, .cs-lede, .cs-figure, .cs-figure-left, .cs-figure-right {
    opacity: 1 !important;
    transform: none !important;
  }
  .cs-spark { opacity: .5 !important; }
}

/* ─── Mobile ─── */
@media (max-width: 640px) {
  .cs-header { flex-wrap: wrap; gap: 1rem; }
  .cs-brand-text { display: none; } /* logo seul sur mobile pour laisser plus de place */
  .cs-title { font-size: clamp(2.5rem, 12vw, 4rem); }
}
