/* =========================================================
   Leocia — site vitrine
   Système visuel sombre, accent teal #07B9B3
   ========================================================= */

:root {
  /* fonds */
  --bg:        #0a0e14;
  --bg-alt:    #0c1119;
  --surface:   #12171f;
  --surface-2: #1a2029;
  --border:    rgba(255,255,255,.08);
  --border-2:  rgba(255,255,255,.14);

  /* marque */
  --accent:    #07B9B3;
  --accent-2:  #38bdf8;
  --accent-3:  #67e8f9;
  --accent-dim:rgba(7,185,179,.14);

  /* texte */
  --title:  #ffffff;
  --text:   #d1d5db;
  --muted:  #8a94a3;
  --faint:  #5b6472;

  /* mesures */
  --maxw: 1160px;
  --radius: 16px;
  --radius-sm: 10px;
  --gap: clamp(1rem, 3vw, 2rem);
  --sect-y: clamp(4.5rem, 9vw, 8rem);

  --ease: cubic-bezier(.16,.84,.44,1);
  --font: "Inter", "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: clamp(15px, 1.05vw, 17px);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: none; }
::selection { background: var(--accent); color: #04252a; }

/* ---------- layout ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(1.15rem, 4vw, 2.5rem); }
.section { padding-block: var(--sect-y); position: relative; }
.section--alt { background: var(--bg-alt); border-block: 1px solid var(--border); }

/* ---------- typographie ---------- */
.eyebrow {
  font-size: .74rem; font-weight: 600; letter-spacing: .28em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 1.1rem;
}
.section__title {
  font-size: clamp(1.7rem, 4vw, 2.9rem); line-height: 1.1; font-weight: 800;
  letter-spacing: -.02em; color: var(--title); max-width: 20ch;
}
.section__lead {
  margin-top: 1.1rem; max-width: 62ch; color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.18rem);
}
.section__note { margin-top: 1.6rem; color: var(--faint); font-size: .85rem; font-style: italic; }
.section--figures { background:
  radial-gradient(1200px 400px at 50% -10%, rgba(7,185,179,.10), transparent 70%), var(--bg); }

/* ---------- boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .8rem 1.5rem; border-radius: 999px; font-weight: 600; font-size: .95rem;
  letter-spacing: .01em; border: 1px solid transparent; transition: transform .2s var(--ease), background .2s, box-shadow .3s, border-color .2s;
  white-space: nowrap;
}
.btn--sm { padding: .55rem 1.05rem; font-size: .85rem; }
.btn--lg { padding: 1rem 2rem; font-size: 1.05rem; }
.btn--primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #04252a; box-shadow: 0 8px 30px rgba(7,185,179,.28);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(7,185,179,.42); }
.btn--ghost { border-color: var(--border-2); color: var(--title); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10,14,20,.55); backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent; transition: background .3s, border-color .3s;
}
.nav.is-scrolled { background: rgba(10,14,20,.9); border-bottom-color: var(--border); }
.nav__inner { display: flex; align-items: center; gap: 1.5rem; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: .6rem; font-weight: 800; color: var(--title); letter-spacing: -.01em; }
.brand__name { font-size: 1.2rem; }
.nav__links { display: flex; gap: 1.7rem; margin-left: 1rem; margin-right: auto; }
.nav__links a { color: var(--muted); font-size: .92rem; font-weight: 500; position: relative; transition: color .2s; }
.nav__links a:hover, .nav__links a.is-active { color: var(--title); }
.nav__links a.is-active::after {
  content: ""; position: absolute; left: 0; bottom: -6px; width: 100%; height: 2px;
  background: var(--accent); border-radius: 2px;
}
.nav__actions { display: flex; align-items: center; gap: 1rem; margin-left: auto; }

/* langue */
.lang { display: inline-flex; align-items: center; gap: .35rem; font-size: .82rem; font-weight: 600; }
.lang__btn { color: var(--faint); transition: color .2s; padding: .15rem; }
.lang__btn.is-active { color: var(--accent); }
.lang__btn:hover { color: var(--title); }
.lang__sep { color: var(--faint); }

/* burger */
.nav__burger { display: none; flex-direction: column; gap: 5px; padding: 6px; }
.nav__burger span { width: 22px; height: 2px; background: var(--title); border-radius: 2px; transition: transform .3s, opacity .3s; }
.nav__burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger.is-open span:nth-child(2) { opacity: 0; }
.nav__burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: min(92vh, 820px); display: flex; align-items: center;
  overflow: hidden; border-bottom: 1px solid var(--border);
}
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__glow {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(680px 420px at 72% 30%, rgba(7,185,179,.16), transparent 70%),
    radial-gradient(560px 380px at 15% 80%, rgba(56,189,248,.10), transparent 70%);
}
.hero__inner { position: relative; z-index: 2; padding-block: 4rem; }
.hero__title {
  font-size: clamp(2.4rem, 6.5vw, 5rem); line-height: 1.03; font-weight: 800;
  letter-spacing: -.03em; color: var(--title); max-width: 16ch; margin-top: .4rem;
}
.hero__sub {
  margin-top: 1.5rem; font-size: clamp(.92rem, 1.8vw, 1.2rem); letter-spacing: .08em;
  color: var(--accent-3); font-weight: 500;
}
.hero__cta { margin-top: 2.4rem; display: flex; flex-wrap: wrap; gap: .9rem; }
.hero__scroll {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 2;
  width: 24px; height: 40px; border: 2px solid var(--border-2); border-radius: 14px;
}
.hero__scroll::after {
  content: ""; position: absolute; top: 7px; left: 50%; transform: translateX(-50%);
  width: 4px; height: 8px; border-radius: 2px; background: var(--accent);
  animation: scrolldot 1.8s var(--ease) infinite;
}
@keyframes scrolldot { 0%{opacity:0;transform:translate(-50%,0)} 40%{opacity:1} 80%{opacity:0;transform:translate(-50%,12px)} 100%{opacity:0} }

/* ---------- stats ---------- */
.stats { display: grid; gap: var(--gap); margin-top: 3rem; }
.stats--3 { grid-template-columns: repeat(3, 1fr); }
.stats--6 { grid-template-columns: repeat(3, 1fr); }
.stat__num {
  font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 800; line-height: 1;
  letter-spacing: -.03em; color: var(--title);
  background: linear-gradient(120deg, #fff 30%, var(--accent-3)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.stat__cap { margin-top: .9rem; color: var(--muted); font-size: .95rem; max-width: 34ch;
  border-top: 2px solid var(--accent); padding-top: .8rem; display: inline-block; }

/* ---------- cards / pillars ---------- */
.pillars, .modules, .who { display: grid; gap: var(--gap); margin-top: 3rem; }
.pillars { grid-template-columns: repeat(3, 1fr); }
.card, .module, .who__item {
  background: linear-gradient(180deg, var(--surface), var(--bg-alt));
  border: 1px solid var(--border); border-radius: var(--radius); padding: 1.7rem;
  transition: transform .3s var(--ease), border-color .3s, box-shadow .3s;
}
.card:hover, .module:hover, .who__item:hover {
  transform: translateY(-4px); border-color: var(--border-2);
  box-shadow: 0 18px 50px rgba(0,0,0,.4);
}
.card__index { font-size: .8rem; font-weight: 700; color: var(--accent); letter-spacing: .1em; }
.card__title { margin-top: .7rem; font-size: 1.25rem; color: var(--title); font-weight: 700; }
.card__text { margin-top: .6rem; color: var(--muted); font-size: .95rem; }

/* ---------- flow ---------- */
.flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr; align-items: stretch; gap: .4rem; margin-top: 3rem; }
.flow__step {
  background: linear-gradient(180deg, var(--surface-2), var(--surface)); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.5rem; position: relative; transition: border-color .3s, box-shadow .3s;
}
.flow__step.is-active { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 12px 40px rgba(7,185,179,.22); }
.flow__idx { font-size: .78rem; font-weight: 700; color: var(--accent); letter-spacing: .1em; }
.flow__title { margin-top: .5rem; font-size: 1.25rem; color: var(--title); font-weight: 700; }
.flow__text { margin-top: .5rem; font-size: .88rem; color: var(--muted); }
.flow__arrow { align-self: center; width: 22px; height: 2px; background: var(--border-2); position: relative; }
.flow__arrow::after { content: ""; position: absolute; right: -1px; top: 50%; transform: translateY(-50%); border: 5px solid transparent; border-left-color: var(--border-2); }

/* ---------- examples table ---------- */
.examples { margin-top: 2.2rem; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.examples__row { display: grid; grid-template-columns: 1.1fr 1.2fr 1fr 1.2fr; gap: 1rem; padding: .95rem 1.3rem; border-top: 1px solid var(--border); font-size: .9rem; }
.examples__row:first-child { border-top: none; }
.examples__row--head { background: var(--surface); color: var(--faint); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 600; }
.examples__k { color: var(--accent); font-weight: 600; }

/* ---------- channels ---------- */
.channels { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: 3rem; }
.channel { display: flex; align-items: center; gap: .85rem; padding: 1.05rem 1.15rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); transition: border-color .25s, transform .25s, background .25s; }
.channel:hover { border-color: var(--accent); transform: translateY(-2px); background: var(--surface-2); }
.channel__ic { flex: 0 0 22px; width: 22px; height: 22px; color: var(--accent); }
.channel__ic svg { width: 100%; height: 100%; stroke: currentColor; fill: none; stroke-width: 1.7; }
.channel__label { font-size: .9rem; color: var(--text); font-weight: 500; }

/* ---------- modules ---------- */
.modules { grid-template-columns: repeat(3, 1fr); }
.module__ic { width: 42px; height: 42px; border-radius: 11px; background: var(--accent-dim); color: var(--accent); display: grid; place-items: center; }
.module__ic svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.7; }
.module__title { margin-top: 1.1rem; font-size: 1.18rem; color: var(--title); font-weight: 700; }
.module__text { margin-top: .55rem; color: var(--muted); font-size: .92rem; }

/* ---------- who ---------- */
.who { grid-template-columns: repeat(4, 1fr); }
.who__item { padding: 1.4rem; }
.who__idx { font-size: .78rem; font-weight: 700; color: var(--accent); }
.who__title { margin-top: .5rem; font-size: 1.02rem; color: var(--title); font-weight: 700; }
.who__text { margin-top: .4rem; font-size: .84rem; color: var(--muted); }

/* ---------- positionnement ---------- */
.position { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); margin-top: 3rem; }
.position__col { border-radius: var(--radius); padding: 2rem; border: 1px solid var(--border); }
.position__col--no { background: var(--surface); }
.position__col--yes { background: linear-gradient(180deg, rgba(7,185,179,.12), var(--surface)); border-color: rgba(7,185,179,.35); }
.position__head { font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: 1.3rem; }
.position__col--yes .position__head { color: var(--accent); }
.position__col li { padding: .6rem 0 .6rem 1.8rem; position: relative; border-top: 1px solid var(--border); font-size: .96rem; }
.position__col li:first-child { border-top: none; }
.position__col--no li::before { content: "\00d7"; position: absolute; left: 0; color: var(--faint); font-weight: 700; }
.position__col--yes li { color: var(--title); }
.position__col--yes li::before { content: "\2713"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }

/* ---------- CTA final ---------- */
.cta { text-align: center; overflow: hidden; border-top: 1px solid var(--border); background: var(--bg-alt); }
.cta__glow { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(700px 340px at 50% 0%, rgba(7,185,179,.16), transparent 70%); }
.cta__inner { position: relative; z-index: 2; max-width: 760px; }
.cta__title { font-size: clamp(1.9rem, 5vw, 3.4rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.08; color: var(--title); display: grid; gap: .1rem; }
.cta__accent { color: var(--accent); font-style: italic; }
.cta__sub { margin-top: 1.4rem; color: var(--muted); }
.cta .btn { margin-top: 2.2rem; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--border); padding-block: 2.6rem; background: var(--bg); }
.footer__inner { display: flex; flex-wrap: wrap; gap: 1.5rem 2rem; align-items: center; justify-content: space-between; }
.footer__tag { margin-top: .7rem; color: var(--faint); font-size: .88rem; max-width: 34ch; }
.footer__meta { display: flex; align-items: center; gap: 1.4rem; flex-wrap: wrap; }
.footer__mail { color: var(--accent); font-weight: 600; font-size: .92rem; }
.footer__mail:hover { text-decoration: underline; }
.footer__copy { color: var(--faint); font-size: .85rem; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .hero__scroll::after { animation: none; }
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 960px) {
  .stats--3, .stats--6 { grid-template-columns: repeat(2, 1fr); }
  .pillars, .modules, .who { grid-template-columns: repeat(2, 1fr); }
  .channels { grid-template-columns: repeat(3, 1fr); }
  .flow { grid-template-columns: 1fr 1fr; }
  .flow__arrow { display: none; }
  .position { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .nav__links { display: none; }
  .nav__links.is-open {
    display: flex; flex-direction: column; position: absolute; top: 68px; left: 0; right: 0;
    background: rgba(10,14,20,.97); backdrop-filter: blur(14px); padding: 1.2rem 1.5rem 1.6rem;
    gap: 1.1rem; border-bottom: 1px solid var(--border); margin: 0;
  }
  .nav__burger { display: flex; }
  .nav .btn--sm { display: none; }
  .stats--3, .stats--6 { grid-template-columns: 1fr; }
  .pillars, .modules, .who, .channels { grid-template-columns: 1fr; }
  .flow { grid-template-columns: 1fr; }
  .examples { overflow-x: auto; }
  .examples__row { grid-template-columns: 1fr; gap: .25rem; }
  .examples__row--head { display: none; }
  .examples__k { color: var(--accent); }
  .footer__inner { flex-direction: column; align-items: flex-start; }
}
