/* ESKAVIA — site vitrine. Couleurs, police et règles du logo : brand-kit/README.md (ne jamais modifier les couleurs de marque). */

@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('fonts/SpaceGrotesk-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('fonts/SpaceGrotesk-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Couleurs de marque (kit) */
  --violet: #6C4BFF;
  --cyan: #22D3EE;
  --navy: #0B1020;
  --white: #FFFFFF;
  --grey-bg: #F3F4F8;

  /* Thème clair (par défaut) */
  --bg: var(--white);
  --bg-alt: var(--grey-bg);
  --card: var(--white);
  --text: var(--navy);
  --muted: #4A5068;
  --line: #DDE1EC;
  --stage-bg: var(--white);
  --focus: var(--violet);

  --font: 'Space Grotesk', 'Inter', 'Helvetica Neue', Arial, sans-serif;
  --radius: 18px;
  --max: 1080px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: var(--navy);
    --bg-alt: #0F1528;
    --card: #121A30;
    --text: var(--white);
    --muted: #A9B0C8;
    --line: #232C48;
    --stage-bg: var(--navy);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: var(--navy);
  --bg-alt: #0F1528;
  --card: #121A30;
  --text: var(--white);
  --muted: #A9B0C8;
  --line: #232C48;
  --stage-bg: var(--navy);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
}
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
img, svg { max-width: 100%; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}

/* ---------- Nom ESKAVIA en texte (kit, section 4) ---------- */
.wordmark { font-weight: 400; letter-spacing: 0.07em; white-space: nowrap; }
.wordmark .s { font-weight: 700; color: var(--violet); }
.wordmark .k { font-weight: 700; color: var(--cyan); }

/* Logo d'en-tête : symbole à gauche (hauteur 1,7 × la taille du texte, espace 0,43 × la taille du texte) */
.logo { display: inline-flex; align-items: center; gap: 0.43em; text-decoration: none; font-size: 1.35rem; line-height: 1; }
.logo svg { height: 1.7em; width: auto; flex: none; }

/* ---------- En-tête ---------- */
.site-header { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.nav { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.nav a { text-decoration: none; color: var(--muted); font-weight: 500; font-size: 0.95rem; padding: 10px 12px; border-radius: 10px; }
.nav a:hover { color: var(--text); background: var(--bg-alt); }

/* ---------- Héros : logo animé (kit « logo animé », durées et courbes de motion.json) ---------- */
.hero { padding: 28px 0 8px; }
.stage {
  container-type: inline-size;
  /* Scène basse (retour du 21/10 : trop de blanc au-dessus et au-dessous du logo, logo gardé à la même taille). */
  position: relative; width: 100%; aspect-ratio: 16 / 4.2; min-height: 150px;
  border-radius: var(--radius); overflow: hidden; background: var(--stage-bg);
  box-shadow: inset 0 0 0 1px var(--line);
}
.stage .center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3.4cqw; }
.stage .lockup { display: flex; align-items: center; gap: 3cqw; }
.stage .mark { width: 11cqw; min-width: 46px; height: auto; overflow: visible; }
.stage .mark polygon { transform-box: fill-box; transform-origin: center; }
.stage .word { font-size: max(6.8cqw, 28px); line-height: 1; letter-spacing: 0.07em; display: flex; white-space: nowrap; }
.stage .word span { display: inline-block; font-weight: 400; }
.stage .word .s { font-weight: 700; color: var(--violet); }
.stage .word .k { font-weight: 700; color: var(--cyan); }
.stage .tag { font-size: max(1.9cqw, 11px); font-weight: 500; letter-spacing: 0.25em; color: var(--muted); text-align: center; padding-left: 0.25em; }
.stage .bars { display: flex; gap: 0.8cqw; margin-top: -1.4cqw; }
.stage .bars i { display: block; width: 5.4cqw; height: max(0.42cqw, 2px); }
.stage .bars i:first-child { background: var(--violet); transform-origin: right; }
.stage .bars i:last-child { background: var(--cyan); transform-origin: left; }
.stage .streak { position: absolute; height: 1.1cqw; left: 0; width: 46cqw; border-radius: 1cqw; opacity: 0; pointer-events: none; }
.stage .streak.v { background: linear-gradient(90deg, transparent, var(--violet)); }
.stage .streak.c { background: linear-gradient(90deg, transparent, var(--cyan)); }

.play .b1 { animation: bandIn .7s cubic-bezier(.2,.9,.25,1.15) .15s both; }
.play .b2 { animation: bandIn .7s cubic-bezier(.2,.9,.25,1.15) .30s both; }
.play .b3 { animation: bandIn .7s cubic-bezier(.2,.9,.25,1.15) .45s both; }
@keyframes bandIn { 0% { transform: translateX(-260%) skewX(-25deg); opacity: 0; } 60% { opacity: 1; } 100% { transform: translateX(0) skewX(0); opacity: 1; } }
.play .streak { animation: streak .8s ease-out both; }
.play .streak:nth-of-type(1) { animation-delay: .12s; }
.play .streak:nth-of-type(2) { animation-delay: .27s; }
.play .streak:nth-of-type(3) { animation-delay: .42s; }
@keyframes streak { 0% { transform: translateX(-60cqw); opacity: 0; } 35% { opacity: .55; } 100% { transform: translateX(20cqw); opacity: 0; } }
.play .word span { animation: letterIn .55s cubic-bezier(.2,.8,.2,1) both; }
.play .word span:nth-child(1) { animation-delay: 1.00s; }
.play .word span:nth-child(4) { animation-delay: 1.08s; }
.play .word span:nth-child(5) { animation-delay: 1.14s; }
.play .word span:nth-child(6) { animation-delay: 1.20s; }
.play .word span:nth-child(7) { animation-delay: 1.26s; }
@keyframes letterIn { from { transform: translateY(40%); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.play .word .s { animation: popIn .6s cubic-bezier(.3,1.6,.4,1) 1.45s both; }
.play .word .k { animation: popIn .6s cubic-bezier(.3,1.6,.4,1) 1.60s both; }
@keyframes popIn { 0% { transform: scale(.2) translateY(-60%); opacity: 0; } 100% { transform: scale(1) translateY(0); opacity: 1; } }
.play .tag { animation: tagIn .8s ease-out 2.05s both; }
@keyframes tagIn { from { letter-spacing: .6em; opacity: 0; } to { letter-spacing: .25em; opacity: 1; } }
.play .bars i { animation: barIn .5s ease-out 2.45s both; }
@keyframes barIn { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.play .mark { animation: settle .5s ease-out 2.9s both; }
@keyframes settle { 0% { transform: scale(1); } 40% { transform: scale(1.06); } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) {
  .play *, .play { animation: none !important; }
  .stage .streak { display: none; }
}

.hero-text { text-align: center; max-width: 720px; margin: 28px auto 0; }
.hero-text h1 { font-size: clamp(1.7rem, 4.6vw, 2.6rem); line-height: 1.15; margin: 0 0 14px; font-weight: 700; text-wrap: balance; }
.hero-text p { margin: 0 auto; color: var(--muted); font-size: 1.1rem; text-wrap: pretty; }
.accent-bar { display: inline-flex; gap: 6px; margin-bottom: 18px; }
.accent-bar i { display: block; width: 34px; height: 4px; border-radius: 2px; background: var(--violet); }
.accent-bar i + i { background: var(--cyan); }

/* ---------- Sections ---------- */
section { padding: 64px 0; }
section.alt { background: var(--bg-alt); }
.section-head { max-width: 680px; margin-bottom: 28px; }
.eyebrow { display: block; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--violet); margin-bottom: 8px; }
:root[data-theme="dark"] .eyebrow { color: var(--cyan); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .eyebrow { color: var(--cyan); } }
h2 { font-size: clamp(1.45rem, 3.2vw, 2rem); line-height: 1.2; margin: 0 0 10px; font-weight: 700; text-wrap: balance; }
.section-head p { margin: 0; color: var(--muted); }

.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card h3 { margin: 0 0 8px; font-size: 1.2rem; line-height: 1.3; }
.card p { margin: 0; color: var(--muted); }

/* Carte d'application */
.app { display: flex; flex-direction: column; gap: 16px; }
.app-head { display: flex; align-items: center; gap: 14px; }
.app-head img { width: 64px; height: 64px; border-radius: 16px; flex: none; }
.app-head .name { font-weight: 700; font-size: 1.25rem; line-height: 1.2; }
.app-head .kind { color: var(--muted); font-size: 0.95rem; }
.badges { display: flex; flex-wrap: wrap; gap: 8px; }
.badge { font-size: 0.82rem; font-weight: 500; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.badge.soon { border-color: color-mix(in srgb, var(--violet) 55%, transparent); color: var(--text); }
.app .actions { margin-top: auto; }
.app.upcoming { border-style: dashed; justify-content: center; }
.upcoming .mark-small { width: 52px; height: auto; opacity: .9; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 10px 20px; border-radius: 12px;
  font: 700 1rem var(--font); text-decoration: none; cursor: pointer;
  background: var(--violet); color: var(--white); border: 0;
}
.btn:hover { filter: brightness(1.08); }
.btn.secondary { background: transparent; color: var(--text); border: 1px solid var(--line); }
.btn.secondary:hover { border-color: var(--violet); filter: none; }

/* Engagements */
.value .dot { display: inline-block; width: 10px; height: 10px; border-radius: 3px; transform: skewX(-18deg); margin-right: 10px; background: var(--violet); }
.value:nth-child(2) .dot { background: var(--cyan); }

/* Contact */
.contact { text-align: center; }
.contact .section-head { margin: 0 auto 22px; }
.contact .mail { font-size: clamp(1.15rem, 3vw, 1.5rem); font-weight: 700; word-break: break-all; }

/* ---------- Pages juridiques ---------- */
.legal { max-width: 760px; padding: 40px 0 64px; }
.legal h1 { font-size: clamp(1.6rem, 4vw, 2.2rem); margin: 18px 0 8px; }
.legal h2 { font-size: 1.25rem; margin: 32px 0 8px; }
.legal p, .legal li { color: var(--muted); }
.legal strong { color: var(--text); }
.back { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; color: var(--muted); font-weight: 500; padding: 8px 0; }
.back:hover { color: var(--text); }
.draft-note { border: 1px dashed var(--violet); border-radius: 12px; padding: 12px 16px; color: var(--text); background: color-mix(in srgb, var(--violet) 8%, transparent); }

/* ---------- Pied de page ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 28px 0 36px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.site-footer .logo { font-size: 1.05rem; }
.footer-links { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; color: var(--muted); font-size: 0.92rem; }
.footer-links > span { padding: 6px 0; }
.footer-links a { text-decoration: none; color: var(--muted); padding: 6px 0; }
.footer-links a:hover { color: var(--text); text-decoration: underline; }

@media (max-width: 560px) {
  .site-header .wrap { flex-direction: column; align-items: flex-start; gap: 2px; padding-top: 10px; padding-bottom: 4px; }
  .nav { justify-content: flex-start; margin-left: -8px; gap: 0; }
  .nav a { padding: 10px 8px; font-size: 0.9rem; }
  section { padding: 48px 0; }
  /* Téléphone : logo animé plus grand dans une scène moins haute */
  .stage { aspect-ratio: 16 / 7; min-height: 140px; }
  .stage .mark { width: 15cqw; }
  .stage .word { font-size: max(9cqw, 30px); }
  .stage .tag { font-size: max(2.8cqw, 11px); }
  .stage .bars i { width: 8cqw; }
}
