/* =========================================================
   Maple & Coast — système de design
   DA : dark finance + neon green
   Version « tech haut de gamme » : aurora animé, spotlight curseur,
   bordures lumineuses, glassmorphism, grille bento, fenêtre terminal.
   Palette : noir profond + vert menthe/émeraude pour le rythme.
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600&family=Inter:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500;600&display=swap');

:root {
  /* Fonds sombres (finance / trading terminal) */
  --bg:        #05070A;   /* noir bleuté profond */
  --bg-2:      #0B1014;   /* section alternée */
  --bg-3:      #10151B;   /* panneaux / cartes */
  --panel:     #10151B;
  --panel-2:   #151B23;

  /* Texte */
  --ink:       #FFFFFF;   /* titres full white */
  --ink-soft:  #C6CDD5;   /* body gris clair (contraste doux sur dark) */
  --muted:     #8B959F;   /* gris atténué */
  --faint:     #566069;

  /* Accent vert principal (les CTA et highlights) */
  --maple:     #21E38A;   /* vert menthe vif */
  --maple-2:   #4EE9A2;   /* vert plus clair (hover/glow) */
  --maple-deep:#0BA86A;   /* vert émeraude profond */
  --maple-tint:rgba(33,227,138,.12);

  /* Accent secondaire (teal → vert forestier, gardé pour dégradés) */
  --teal:      #0FCF7A;
  --teal-soft: rgba(15,207,122,.14);

  /* Lignes / bordures */
  --line:      #1D252E;
  --line-2:    #263038;

  /* Verre */
  --glass:     rgba(16,21,27,.55);
  --glass-2:   rgba(16,21,27,.72);

  /* Typo */
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --mono:  'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  /* Mesures */
  --max: 1200px;
  --radius: 16px;
  --radius-lg: 22px;
  --shadow: 0 1px 0 rgba(255,255,255,.04) inset, 0 28px 70px -24px rgba(0,0,0,.7);
  --glow: 0 0 0 1px rgba(33,227,138,.4), 0 0 30px -6px rgba(33,227,138,.5);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* texture : aurora animée + grille fine + bruit */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -3; pointer-events: none;
  background:
    radial-gradient(700px 380px at 82% -6%, rgba(33,227,138,.16), transparent 60%),
    radial-gradient(620px 460px at 6% 4%, rgba(13,59,41,.34), transparent 55%),
    radial-gradient(520px 520px at 96% 88%, rgba(15,207,122,.07), transparent 60%);
  animation: aurora 22s ease-in-out infinite alternate;
}
@keyframes aurora {
  0%   { transform: translate3d(0,0,0) scale(1); }
  50%  { transform: translate3d(-2.5%,1.5%,0) scale(1.06); }
  100% { transform: translate3d(2%,-1.5%,0) scale(1.03); }
}
body::after {
  content: "";
  position: fixed; inset: 0; z-index: -3; pointer-events: none; opacity: .45;
  background-image:
    linear-gradient(rgba(255,255,255,.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.028) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: radial-gradient(ellipse 110% 70% at 50% 0%, #000 25%, transparent 78%);
}

/* spotlight qui suit le curseur (injecté par main.js) */
#spotlight {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background: radial-gradient(420px 420px at var(--mx,50%) var(--my,12%), rgba(33,227,138,.10), transparent 65%);
  opacity: 0; transition: opacity .5s ease;
}
#spotlight.on { opacity: 1; }

/* barre de progression de lecture (injectée par main.js) */
#progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 0%;
  z-index: 100; background: linear-gradient(90deg, var(--maple), var(--maple-2), var(--teal));
  box-shadow: 0 0 12px rgba(33,227,138,.8); transition: width .1s linear;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--maple); color: #031309; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 26px; }
section { padding: 100px 0; position: relative; }
.section-2 { background: var(--bg-2); }
.section-2::before, .section-3::before {
  content:""; position:absolute; inset:0 0 auto 0; height:1px;
  background: linear-gradient(90deg, transparent, var(--line-2), transparent);
}
.section-3 { background: linear-gradient(180deg, var(--bg-3), var(--bg-2)); }

/* ---------- Typo ---------- */
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.05; letter-spacing: -.015em; color: var(--ink); }
h1 { font-size: clamp(2.5rem, 5.8vw, 4.5rem); }
h2 { font-size: clamp(2rem, 3.8vw, 3rem); }
h3 { font-size: 1.3rem; font-weight: 600; letter-spacing: -.01em; }
p { color: var(--ink-soft); }
.lead { font-size: 1.22rem; color: var(--muted); max-width: 62ch; }
.muted { color: var(--muted); }
.amber { color: var(--maple); }
em { color: var(--maple-2); font-style: italic; }

/* étiquette mono « data » */
.eyebrow {
  font-family: var(--mono);
  font-size: .76rem; font-weight: 500;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--maple);
  display: inline-flex; align-items: center; gap: 11px;
  margin-bottom: 22px;
}
.eyebrow::before {
  content: ""; width: 24px; height: 1px; background: var(--maple);
  display: inline-block; box-shadow: 0 0 10px var(--maple);
}

/* puce de statut mono */
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: .72rem; letter-spacing: .08em;
  color: var(--ink-soft); padding: 6px 12px; border-radius: 999px;
  border: 1px solid var(--line-2); background: rgba(255,255,255,.03);
}
.chip .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 8px var(--teal); }
.chip .dot.amber { background: var(--maple); box-shadow: 0 0 8px var(--maple); }

/* ---------- Boutons FLATS à jeu de lumière ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--sans); font-weight: 600; font-size: .98rem;
  padding: 14px 26px; border-radius: 12px;          /* flat = coins nets, pas de pilule */
  border: 1px solid transparent; cursor: pointer;
  transition: transform .18s ease, box-shadow .25s ease, border-color .2s, color .2s, background .2s;
  position: relative; overflow: hidden; isolation: isolate;
}
.btn > * { position: relative; z-index: 2; }
.btn svg { width: 17px; height: 17px; }
/* reflet lumineux qui balaie EN CONTINU sur la surface plate */
.btn::before {
  content:""; position:absolute; top:-60%; left:-75%; width:45%; height:220%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.55), transparent);
  transform: skewX(-18deg); z-index: 1; pointer-events: none;
  animation: sheen 5.5s ease-in-out infinite;
}
@keyframes sheen {
  0%   { left: -75%; }
  42%  { left: 150%; }
  100% { left: 150%; }
}

/* Primary : ambre PLAT (aucun dégradé), surface lustrée */
.btn-primary {
  background: var(--maple);
  color: #031309;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.4), 0 10px 28px -12px rgba(33,227,138,.7);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 16px 36px -12px rgba(33,227,138,.95); }
.btn-primary:active { transform: translateY(0); }

/* Ghost : sombre PLAT, reflet plus discret + filet lumineux au survol */
.btn-ghost { border-color: var(--line-2); color: var(--ink); background: rgba(255,255,255,.03); }
.btn-ghost::before { background: linear-gradient(100deg, transparent, rgba(78,233,162,.35), transparent); }
.btn-ghost:hover { border-color: var(--maple); color: var(--maple-2); transform: translateY(-2px); box-shadow: inset 0 0 0 1px rgba(33,227,138,.35), 0 0 30px -8px rgba(33,227,138,.6); }
.btn-arrow::after { content: "→"; transition: transform .2s; position: relative; z-index: 2; }
.btn-arrow:hover::after { transform: translateX(4px); }
@media (prefers-reduced-motion: reduce) { .btn::before { animation: none; opacity: 0; } }

/* ---------- Header / Nav ---------- */
header.site {
  position: sticky; top: 0; z-index: 60;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background .3s ease, border-color .3s ease, backdrop-filter .3s;
}
header.site.scrolled {
  background: var(--glass-2);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 78px; }

.brand { display: flex; align-items: center; gap: 13px; }
.brand .mark { width: 40px; height: 40px; flex: 0 0 auto; transition: transform .4s ease; }
.brand:hover .mark { transform: rotate(-8deg) scale(1.05); }
.brand .wordmark { display: flex; flex-direction: column; line-height: 1; }
.brand .wordmark b { font-family: var(--serif); font-size: 1.32rem; font-weight: 600; letter-spacing: -.01em; color: var(--ink); }
.brand .wordmark small { font-family: var(--mono); color: var(--muted); font-size: .6rem; font-weight: 500; letter-spacing: .26em; text-transform: uppercase; margin-top: 4px; }

.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a { font-size: .96rem; font-weight: 500; color: var(--ink-soft); position: relative; transition: color .2s; }
.nav-links a:not(.btn)::after {
  content:""; position:absolute; left:0; bottom:-6px; width:0; height:1.5px;
  background: var(--maple); transition: width .25s ease; box-shadow: 0 0 8px var(--maple);
}
.nav-links a:not(.btn):hover { color: var(--ink); }
.nav-links a:not(.btn):hover::after { width: 100%; }
.nav-links a.active:not(.btn) { color: var(--maple-2); }
.nav-links a.active:not(.btn)::after { width: 100%; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line-2); border-radius: 9px; padding: 7px 9px; cursor: pointer; }
.nav-toggle span { display:block; width: 20px; height: 2px; background: var(--ink); margin: 4px 0; border-radius: 2px; transition: .25s; }

/* ---------- Hero ---------- */
.hero { padding: 90px 0 92px; position: relative; }
#hero3d {
  position: absolute; inset: -40px 0 0 0; width: 100%; height: calc(100% + 40px);
  z-index: 0; pointer-events: none;
  -webkit-mask-image: radial-gradient(120% 100% at 70% 45%, #000 35%, transparent 80%);
  mask-image: radial-gradient(120% 100% at 70% 45%, #000 35%, transparent 80%);
}
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 60px; align-items: center; position: relative; z-index: 1; }
.hero h1, .hero .lead { text-shadow: 0 2px 30px rgba(5,7,10,.7); }
.hero h1 { margin-bottom: 24px; }
.hero h1 .grad {
  background: linear-gradient(100deg, var(--maple-2), var(--maple), var(--maple-2));
  background-size: 200% auto; -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: var(--maple-2);
  animation: shine 6s linear infinite;
}
@keyframes shine { to { background-position: 200% center; } }
.hero .lead { margin-bottom: 32px; font-size: 1.24rem; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-note { margin-top: 26px; font-family: var(--mono); font-size: .78rem; letter-spacing: .04em; color: var(--muted); display: flex; gap: 22px; flex-wrap: wrap; }
.hero-note span { display: inline-flex; gap: 8px; align-items: center; }
.hero-note span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--maple); box-shadow: 0 0 8px var(--maple); }

/* ---------- Carte « flux d'automatisation » (fenêtre terminal) ---------- */
.flow-card {
  background: linear-gradient(165deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line-2);
  border-radius: var(--radius-lg); padding: 0;
  box-shadow: var(--shadow);
  position: relative; overflow: hidden;
  transform-style: preserve-3d; transition: transform .2s ease;
}
.flow-card::before {
  content:""; position:absolute; inset:0; pointer-events:none;
  background: radial-gradient(420px 120px at 80% 0%, var(--maple-tint), transparent 70%);
}
/* barre de titre type fenêtre */
.win-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 13px 18px; border-bottom: 1px solid var(--line);
  background: rgba(8,15,22,.4); position: relative;
}
.win-bar .dot { width: 11px; height: 11px; border-radius: 50%; }
.win-bar .dot.r { background: #ff5f57; } .win-bar .dot.y { background: #febc2e; } .win-bar .dot.g { background: #28c840; }
.win-bar .win-title { margin-left: 10px; font-family: var(--mono); font-size: .72rem; color: var(--muted); letter-spacing: .04em; }
.flow-inner { padding: 22px 24px 26px; position: relative; }
/* ligne de scan */
.flow-inner::after {
  content:""; position:absolute; left:0; right:0; top:0; height:60px; pointer-events:none;
  background: linear-gradient(180deg, rgba(33,227,138,.12), transparent);
  animation: scan 4.5s linear infinite;
}
@keyframes scan { 0%{transform:translateY(-60px);opacity:0;} 12%{opacity:1;} 100%{transform:translateY(420px);opacity:0;} }
.flow-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; position: relative; }
.flow-head .t { font-family: var(--mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.flow-head .live { display:inline-flex; align-items:center; gap:8px; font-family: var(--mono); font-size:.68rem; color: var(--maple-2); letter-spacing:.1em; }
.flow-head .live::before { content:""; width:7px; height:7px; border-radius:50%; background: var(--maple); animation: blink 1.6s infinite; }
@keyframes blink { 0%,100%{opacity:1; box-shadow:0 0 8px var(--maple);} 50%{opacity:.35; box-shadow:none;} }

.flow { display: grid; gap: 0; position: relative; }
.flow .node {
  display: grid; grid-template-columns: 38px 1fr auto; align-items: center; gap: 14px;
  padding: 15px 4px; position: relative;
}
.flow .node + .node { border-top: 1px dashed var(--line); }
.flow .ic {
  width: 38px; height: 38px; border-radius: 10px;
  display: grid; place-items: center;
  background: rgba(255,255,255,.04); border: 1px solid var(--line-2);
  color: var(--muted); transition: .35s;
}
.flow .ic svg { width: 19px; height: 19px; }
.flow .node .lbl b { display:block; font-size: .98rem; color: var(--ink); font-weight: 600; }
.flow .node .lbl span { font-size: .82rem; color: var(--faint); }
.flow .node .tick {
  width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--line-2);
  display: grid; place-items: center; color: transparent; transition: .35s;
}
.flow .node.on .ic { color: var(--maple-2); border-color: var(--maple); background: var(--maple-tint); box-shadow: 0 0 22px -4px rgba(33,227,138,.6); }
.flow .node.on .tick { border-color: var(--maple); color: var(--maple-2); background: var(--maple-tint); }
.flow .node.on .lbl b { color: #fff; }
.flow-foot { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); display:flex; align-items:baseline; gap: 12px; }
.flow-foot b { font-family: var(--serif); font-size: 2.1rem; color: var(--maple-2); font-weight: 500; }
.flow-foot span { font-size: .9rem; color: var(--muted); }

/* ---------- Bande mots-clés (marquee) ---------- */
.marquee { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 18px 0; overflow: hidden; background: var(--bg-2); position: relative; }
.marquee::before, .marquee::after { content:""; position:absolute; top:0; bottom:0; width:120px; z-index:2; pointer-events:none; }
.marquee::before { left:0; background: linear-gradient(90deg, var(--bg-2), transparent); }
.marquee::after { right:0; background: linear-gradient(270deg, var(--bg-2), transparent); }
.marquee .track { display: inline-flex; gap: 46px; white-space: nowrap; animation: scrollx 32s linear infinite; font-family: var(--serif); font-style: italic; font-size: 1.5rem; color: var(--faint); }
.marquee .track span { display:inline-flex; align-items:center; gap:46px; }
.marquee .track span::after { content:"·"; color: var(--maple); }
@keyframes scrollx { to { transform: translateX(-50%); } }

/* ---------- En-tête de section ---------- */
.section-head { max-width: 66ch; margin-bottom: 54px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 + p { margin-top: 18px; color: var(--muted); font-size: 1.12rem; }

/* ---------- Grilles cartes ---------- */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* grille bento (cellules de tailles variées) */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.bento .card { margin: 0; }
.bento .b-wide { grid-column: span 4; }
.bento .b-mid  { grid-column: span 3; }
.bento .b-sm   { grid-column: span 2; }
.bento .b-tall { grid-row: span 2; }

.card {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 30px;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
  position: relative; overflow: hidden;
}
/* halo qui suit le curseur sur la carte (vars posées par main.js) */
.card::before {
  content:""; position:absolute; inset:0; pointer-events:none; opacity:0; transition: opacity .3s;
  background: radial-gradient(280px 280px at var(--cx,50%) var(--cy,50%), rgba(33,227,138,.14), transparent 60%);
}
.card:hover::before { opacity: 1; }
.card::after {
  content:""; position:absolute; left:0; top:0; height:2px; width:0;
  background: linear-gradient(90deg, var(--maple), transparent);
  transition: width .35s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--line-2); box-shadow: var(--shadow); }
.card:hover::after { width: 100%; }
.card > * { position: relative; z-index: 1; }
.card .ico {
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--maple-tint); border: 1px solid rgba(33,227,138,.28);
  color: var(--maple-2);
  display: grid; place-items: center; margin-bottom: 20px;
  transition: transform .3s ease;
}
.card:hover .ico { transform: scale(1.06) rotate(-3deg); }
.card .ico svg { width: 24px; height: 24px; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--muted); font-size: .99rem; }
.card .ex {
  margin-top: 16px; font-family: var(--mono); font-size: .82rem; line-height: 1.55;
  color: var(--ink-soft); border-left: 2px solid var(--maple); padding-left: 13px;
}
.num-badge { font-family: var(--mono); font-size: .8rem; color: var(--maple); letter-spacing: .1em; }

/* ---------- Étapes process ---------- */
.steps { display: grid; gap: 0; counter-reset: step; }
.step {
  display: grid; grid-template-columns: 78px 1fr; gap: 26px;
  padding: 30px 0; border-top: 1px solid var(--line); align-items: start;
}
.step:last-child { border-bottom: 1px solid var(--line); }
.step .num { counter-increment: step; font-family: var(--serif); font-size: 1.7rem; color: var(--maple); position: relative; }
.step .num::before { content: "0" counter(step); }
.step .num::after { content:""; display:block; width:30px; height:1px; background: var(--line-2); margin-top: 10px; }
.step h3 { margin-bottom: 7px; }
.step p { color: var(--muted); }

/* ---------- Bande stats ---------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; text-align: center; }
.stats .stat { padding: 30px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255,255,255,.02); position: relative; overflow: hidden; }
.stats .stat::before { content:""; position:absolute; inset:0; background: radial-gradient(200px 80px at 50% 0%, var(--maple-tint), transparent 70%); }
.stats .stat b { font-family: var(--serif); font-size: clamp(2.6rem, 5vw, 3.6rem); font-weight: 500; display: block; color: var(--maple-2); position: relative; }
.stats .stat span { color: var(--muted); font-size: .96rem; position: relative; }

/* ---------- Bloc CTA ---------- */
.cta { position: relative; }
.cta-block { text-align: center; max-width: 760px; margin: 0 auto; position: relative; }
.cta-block .eyebrow { justify-content: center; }
.cta-block h2 { margin: 0 auto 18px; }
.cta-block .lead { margin: 0 auto 30px; }
.cta-block .hero-cta { justify-content: center; }

/* ---------- Liste à puces ---------- */
.ticks { list-style: none; display: grid; gap: 14px; margin-top: 6px; }
.ticks li { position: relative; padding-left: 32px; color: var(--ink-soft); }
.ticks li b { color: var(--ink); }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 8px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--maple-tint); border: 1px solid var(--maple);
}
.ticks li::after {
  content: ""; position: absolute; left: 5px; top: 11px;
  width: 5px; height: 8px; border: solid var(--maple-2); border-width: 0 1.5px 1.5px 0;
  transform: rotate(42deg);
}

/* ---------- Bloc service détaillé ---------- */
.svc { display: grid; grid-template-columns: 1.15fr .85fr; gap: 44px; align-items: start; padding: 60px 0; border-top: 1px solid var(--line); }
.svc:first-of-type { border-top: 0; }
.svc:nth-of-type(even) .svc-body { order: 2; }
.svc .tag { font-family: var(--mono); font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; color: var(--maple); font-weight: 500; }
.svc h2 { margin: 12px 0 16px; }
.svc .ex { margin-top: 18px; font-family: var(--mono); font-size: .86rem; line-height: 1.6; color: var(--ink-soft); background: rgba(33,227,138,.06); border: 1px solid rgba(33,227,138,.2); border-radius: 12px; padding: 15px 17px; }
.svc-side { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; }
.svc-side h3 { margin-bottom: 16px; font-size: 1.06rem; }

/* ---------- Étude de cas ---------- */
.casehero { background: linear-gradient(165deg, var(--panel-2), var(--panel)); border: 1px solid var(--line-2); border-radius: var(--radius-lg); padding: 46px; margin-top: 30px; box-shadow: var(--shadow); }
.casehero .stats .stat { background: transparent; border: 0; }
.casehero .stats .stat::before { display: none; }
.casehero .stats .stat + .stat { border-left: 1px solid var(--line); }
.prose { max-width: 72ch; }
.prose h2 { margin: 48px 0 16px; }
.prose h3 { margin: 28px 0 9px; color: var(--maple-2); }
.prose p { margin-bottom: 15px; color: var(--ink-soft); }
.prose .ticks { margin: 18px 0; }

/* ---------- Blog ---------- */
.posts { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.post { display: flex; flex-direction: column; cursor: pointer; }
.post .meta { font-family: var(--mono); font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--maple); margin-bottom: 14px; }
.post h3 { margin-bottom: 12px; line-height: 1.25; }
.post p { color: var(--muted); font-size: .96rem; flex: 1; }
.post .more { margin-top: 18px; font-weight: 600; color: var(--maple-2); font-size: .92rem; transition: gap .2s; display:inline-flex; gap:6px; }
.post:hover .more { gap: 12px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 50px; align-items: start; }
.form-wrap { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 34px; }
.field { margin-bottom: 20px; }
.field label { display: block; font-size: .88rem; font-weight: 600; margin-bottom: 8px; color: var(--ink-soft); }
.field input, .field textarea, .field select {
  width: 100%; font-family: var(--sans); font-size: 1rem; color: var(--ink);
  padding: 13px 15px; border: 1px solid var(--line-2); border-radius: 11px;
  background: rgba(5,7,10,.6); transition: border-color .2s, box-shadow .2s;
}
.field select option { color: #111; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--maple); box-shadow: 0 0 0 3px rgba(33,227,138,.18); }
.field input::placeholder, .field textarea::placeholder { color: var(--faint); }
.contact-info { padding: 0; margin: 0; list-style: none; }
.contact-info li { padding: 18px 0; border-bottom: 1px solid var(--line); }
.contact-info .lbl { font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.contact-info .val { font-size: 1.06rem; margin-top: 5px; color: var(--ink); }
.contact-info .val a:hover { color: var(--maple-2); }

/* ---------- Footer ---------- */
footer.site { background: #070D14; border-top: 1px solid var(--line); padding: 70px 0 32px; }
footer.site a:hover { color: var(--maple-2); }
.foot-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1.2fr; gap: 40px; }
footer .brand { margin-bottom: 16px; }
footer .foot-desc { max-width: 36ch; color: var(--muted); font-size: .96rem; }
footer h4 { font-family: var(--mono); font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--maple); margin-bottom: 18px; font-weight: 500; }
footer ul { list-style: none; display: grid; gap: 11px; font-size: .95rem; color: var(--muted); }
footer ul a { color: var(--muted); }
.foot-bottom { margin-top: 52px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-family: var(--mono); font-size: .8rem; color: var(--faint); }

/* ---------- Hero compact (sous-pages) ---------- */
.pagehead { padding: 86px 0 20px; position: relative; }
.pagehead h1 { margin-bottom: 20px; max-width: 18ch; }

/* ---------- Scroll reveal ---------- */
.rv { opacity: 0; transform: translateY(26px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.rv.left { transform: translateX(-30px); }
.rv.right { transform: translateX(30px); }
.rv.scale { transform: scale(.96); }
.rv.in { opacity: 1; transform: none; }
.d1 { transition-delay: .08s; } .d2 { transition-delay: .16s; } .d3 { transition-delay: .24s; }
.d4 { transition-delay: .32s; } .d5 { transition-delay: .40s; }
@media (prefers-reduced-motion: reduce) {
  .rv { opacity:1; transform:none; transition:none; }
  body::before, .flow-inner::after, .hero h1 .grad { animation: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .hero-grid, .contact-grid, .svc { grid-template-columns: 1fr; }
  .svc:nth-of-type(even) .svc-body { order: 0; }
  .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
  .posts { grid-template-columns: 1fr 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento .b-wide, .bento .b-mid, .bento .b-sm { grid-column: span 1; }
  .bento .b-tall { grid-row: span 1; }
}
@media (max-width: 640px) {
  section { padding: 64px 0; }
  .hero { padding: 48px 0 56px; }
  .nav-links {
    display: none; position: absolute; top: 78px; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 18px;
    background: var(--glass-2); backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line); padding: 24px 26px;
  }
  .nav-links.open { display: flex; }
  .nav-links .btn { width: 100%; justify-content: center; }
  .nav-toggle { display: block; }
  .grid-2, .grid-3, .grid-4, .posts, .stats, .bento { grid-template-columns: 1fr; }
  .casehero { padding: 28px; }
  .casehero .stats .stat + .stat { border-left: 0; border-top: 1px solid var(--line); }
  .foot-grid { grid-template-columns: 1fr; gap: 30px; }
  .marquee .track { font-size: 1.2rem; }
}
