:root {
  --ink: #12151c;
  --ink-soft: #3a4150;
  --muted: #626b7d;
  --cream: #f3f5f8;
  --paper: #ffffff;
  --line: #dce1ea;
  --sage: #2c5f4e;
  --sage-dark: #1f4639;
  --sage-soft: #e3eee9;
  --terra: #c45c26;
  --terra-dark: #9a4318;
  --terra-soft: #fbe9dd;
  --shadow-sm: 0 4px 14px rgba(18, 21, 28, 0.05);
  --shadow: 0 18px 40px rgba(18, 21, 28, 0.08);
  --shadow-lg: 0 26px 60px rgba(18, 21, 28, 0.14);
  --shadow-sage: 0 14px 30px rgba(44, 95, 78, 0.25);
  --shadow-terra: 0 14px 30px rgba(196, 92, 38, 0.25);
  --radius: 12px;
  --max: 1120px;
  --serif: "Syne", "Avenir Next", system-ui, sans-serif;
  --sans: "Manrope", "Segoe UI", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --ease: cubic-bezier(.22,1,.36,1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  font-size: 17px;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: inherit; }

a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 2px solid var(--sage); outline-offset: 3px; border-radius: 4px;
}

.wrap { width: min(var(--max), calc(100% - 40px)); margin-inline: auto; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(243, 245, 248, 0.82);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid transparent;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.site-header.scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 8px 24px rgba(18,21,28,.06);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 74px;
}
.brand { display: flex; align-items: center; transition: transform .2s var(--ease); }
.brand:hover { transform: translateY(-1px); }
.brand img {
  height: 44px; width: auto; border-radius: 9px;
  display: block; object-fit: cover;
  box-shadow: 0 4px 14px rgba(18,21,28,.14);
}
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a:not(.btn) {
  position: relative; color: var(--ink-soft); font-size: .95rem;
  padding-bottom: 3px; transition: color .2s;
}
.nav-links a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0;
  height: 2px; background: var(--terra); border-radius: 2px;
  transition: right .25s var(--ease);
}
.nav-links a:not(.btn):hover { color: var(--sage); }
.nav-links a:not(.btn):hover::after { right: 0; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--sage); color: #fff !important;
  padding: 11px 18px; border-radius: 10px; border: 0; cursor: pointer;
  font-weight: 560; font-size: .95rem;
  box-shadow: 0 1px 0 rgba(255,255,255,.08) inset;
  transition: background .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.btn:hover { background: var(--sage-dark); transform: translateY(-2px); box-shadow: var(--shadow-sage); }
.btn:active { transform: translateY(0); }
.btn-terra { background: var(--terra); }
.btn-terra:hover { background: var(--terra-dark); box-shadow: var(--shadow-terra); }
.btn-ghost {
  background: var(--paper); color: var(--ink) !important;
  border: 1px solid var(--line);
  box-shadow: none;
}
.btn-ghost:hover { background: #fff; border-color: var(--sage); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.menu-toggle {
  display: none; background: none; border: 0; cursor: pointer; width: 42px; height: 42px;
}
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after {
  display: block; width: 22px; height: 2px; background: var(--ink); position: relative;
  transition: background .2s;
}
.menu-toggle span::before, .menu-toggle span::after {
  content: ""; position: absolute; left: 0;
}
.menu-toggle span::before { top: -7px; }
.menu-toggle span::after { top: 7px; }

/* Hero */
.hero {
  padding: 60px 0 32px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; top: -220px; right: -160px;
  width: 520px; height: 520px; border-radius: 50%;
  background: radial-gradient(circle, rgba(44,95,78,.14), rgba(44,95,78,0) 70%);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute; bottom: -200px; left: -180px;
  width: 460px; height: 460px; border-radius: 50%;
  background: radial-gradient(circle, rgba(196,92,38,.10), rgba(196,92,38,0) 70%);
  pointer-events: none;
}
.hero-grid {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center;
  position: relative; z-index: 1;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--sage); font-family: var(--mono); font-weight: 500;
  font-size: .78rem; letter-spacing: .04em; margin-bottom: 16px;
}
.eyebrow::before { content: ""; width: 14px; height: 2px; background: var(--terra); }
.stack { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; }
.stack span {
  font-family: var(--mono); font-size: .75rem; color: var(--ink-soft);
  border: 1px solid var(--line); background: #fff;
  padding: 5px 9px; border-radius: 6px;
}
h1, h2, h3 { font-family: var(--serif); font-weight: 700; letter-spacing: -.04em; line-height: 1.12; }
h1 { font-size: clamp(2.2rem, 4.4vw, 3.55rem); margin-bottom: 18px; }
h1 em { font-style: normal; color: var(--sage); position: relative; }
.lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 38ch; margin-bottom: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 16px 24px; color: var(--muted); font-size: .92rem; }
.hero-points strong { color: var(--ink); font-weight: 600; }
.hero-visual { position: relative; }
.window {
  background: #1b1f28; border-radius: 16px; overflow: hidden;
  box-shadow: var(--shadow-lg);
  transform: perspective(1400px) rotateY(-2deg);
  transition: transform .5s var(--ease);
}
.hero-visual:hover .window { transform: perspective(1400px) rotateY(0deg) translateY(-4px); }
.window-bar {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 12px; background: #252a35;
}
.window-bar span { width: 9px; height: 9px; border-radius: 50%; background: #3d4454; }
.window-bar span:first-child { background: #c45c26; }
.window-bar em {
  margin-left: 8px; font-style: normal; font-family: var(--mono);
  font-size: .7rem; color: #9aa3b5;
}
.hero-visual img {
  width: 100%; height: 400px; object-fit: cover; border-radius: 0;
}
.hero-badge {
  position: absolute; left: -14px; bottom: 22px;
  background: #fff; border: 1px solid var(--line);
  padding: 14px 16px; border-radius: 12px; box-shadow: var(--shadow);
  font-size: .9rem; max-width: 230px;
  display: flex; align-items: flex-start; gap: 10px;
}
.hero-badge .dot {
  flex: none; width: 10px; height: 10px; border-radius: 50%;
  background: var(--terra); margin-top: 6px;
  box-shadow: 0 0 0 4px var(--terra-soft);
}
.hero-badge b { display: block; font-family: var(--serif); font-size: 1.05rem; }

/* Sections */
section { padding: 88px 0; }
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); margin: 8px 0 12px; }
.section-head p { color: var(--ink-soft); }
.alt { background: #fff; border-block: 1px solid var(--line); }

/* Audience */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.cards3 { grid-template-columns: repeat(3, 1fr); }
.why { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.why .card { padding: 24px; }
.why .card h3 { font-size: 1.08rem; }
.tools { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; }
.tools li {
  background: #fff; border: 1px solid var(--line); border-radius: 8px;
  padding: 8px 12px; font-size: .92rem; transition: border-color .2s, transform .2s;
}
.tools li:hover { border-color: var(--sage); transform: translateY(-2px); }
.mid-cta { margin-top: 28px; }
.demo-tag {
  display: inline-block; font-family: var(--mono); font-size: .68rem;
  color: var(--muted); margin-bottom: 8px; letter-spacing: .04em;
}
.plan .extra { color: var(--muted); font-size: .85rem; margin: -8px 0 16px; }
.about-me { display: grid; grid-template-columns: 180px 1fr; gap: 36px; align-items: start; }
.portrait {
  width: 100%; max-width: 220px; aspect-ratio: 1;
  object-fit: cover; border-radius: 14px;
  box-shadow: var(--shadow);
}
.photo-slot {
  aspect-ratio: 3/4; border: 1px dashed var(--line); border-radius: 12px;
  display: grid; place-items: center; color: var(--muted); font-size: .82rem;
  background: #fff; text-align: center; padding: 12px;
}
.faq details {
  border-bottom: 1px solid var(--line); padding: 16px 0;
}
.faq summary {
  cursor: pointer; font-weight: 600; list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; flex: none; width: 26px; height: 26px; border-radius: 50%;
  background: var(--sage-soft); color: var(--sage); font-size: 1.1rem;
  display: grid; place-items: center; line-height: 1;
  transition: transform .25s var(--ease), background .2s;
}
.faq details[open] summary::after { transform: rotate(135deg); background: var(--sage); color: #fff; }
.faq details p { margin-top: 10px; color: var(--ink-soft); padding-right: 42px; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.consent input { width: 18px; height: 18px; margin-top: 3px; }
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow-sm);
  position: relative; overflow: hidden;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--sage), var(--terra));
  transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #cbd6e8; }
.card:hover::before { transform: scaleX(1); }
.card h3 { font-size: 1.35rem; margin: 10px 0 8px; }
.card p { color: var(--ink-soft); }
.icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--sage-soft); color: var(--sage);
  display: grid; place-items: center;
}
.icon svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.list { margin-top: 16px; color: var(--ink-soft); padding-left: 18px; }
.list li { margin: 6px 0; }

/* Services */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service {
  background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px; display: flex; flex-direction: column; min-height: 100%;
}
.service h3 { font-size: 1.25rem; margin-bottom: 8px; }
.service p { color: var(--ink-soft); flex: 1; }
.price-hint {
  margin-top: 18px; font-weight: 600; color: var(--sage);
  font-size: .95rem;
}

/* Steps */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; position: relative; }
.step {
  background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 22px 18px;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); }
.num {
  font-family: var(--mono); color: #fff; background: var(--terra);
  font-size: .85rem; font-weight: 600;
  width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; margin-bottom: 12px;
}
.step h3 { font-size: 1.05rem; margin-bottom: 6px; }
.step p { color: var(--muted); font-size: .92rem; }

/* Work */
.work-intro { margin-bottom: 28px; max-width: 640px; }
.portfolio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.shot {
  background: #fff; border: 1px solid var(--line); border-radius: 20px; overflow: hidden;
  display: flex; flex-direction: column; color: inherit;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.shot:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.shot .thumb { position: relative; overflow: hidden; }
.shot .thumb img { height: 190px; width: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.shot:hover .thumb img { transform: scale(1.07); }
.shot .thumb .demo-tag {
  position: absolute; top: 12px; left: 12px; margin: 0;
  background: rgba(18,21,28,.65); color: #fff;
  padding: 5px 10px; border-radius: 999px; backdrop-filter: blur(4px);
}
.shot div { padding: 18px 18px 20px; }
.shot h3 { font-size: 1.2rem; margin-bottom: 6px; }
.shot p { color: var(--ink-soft); font-size: .94rem; }
.shot .go { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; color: var(--sage); font-weight: 600; font-size: .92rem; transition: gap .2s; }
.shot:hover .go { gap: 10px; }

/* Pricing */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.plan {
  background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 28px 24px;
  display: flex; flex-direction: column;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.plan:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.plan.featured { border-color: var(--sage); box-shadow: var(--shadow-sage); position: relative; }
.plan.featured:hover { box-shadow: var(--shadow-lg), var(--shadow-sage); }
.plan.featured::after {
  content: "Prix doux asso";
  position: absolute; top: -12px; left: 22px;
  background: var(--sage); color: #fff; font-size: .75rem; font-weight: 600;
  padding: 4px 10px; border-radius: 6px;
}
.plan h3 { font-size: 1.3rem; }
.plan .amount { font-family: var(--serif); font-size: 2rem; margin: 10px 0 6px; color: var(--sage); }
.plan .amount span { font-size: 1rem; color: var(--muted); font-family: var(--sans); }
.plan ul { list-style: none; margin: 16px 0 22px; color: var(--ink-soft); flex: 1; }
.plan li { padding: 7px 0 7px 22px; position: relative; }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--sage); font-weight: 700; }
.note { margin-top: 18px; color: var(--muted); font-size: .92rem; }

/* Code samples */
.code-grid { display: grid; grid-template-columns: 1.15fr 1fr .9fr; gap: 16px; }
.code-card {
  background: #171b24; color: #d7deea; border-radius: 14px; overflow: hidden;
  display: flex; flex-direction: column; min-width: 0;
  box-shadow: 0 20px 44px rgba(9,11,16,.35);
}
.code-card header {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px; background: #222836;
}
.code-card header::before {
  content: ""; width: 9px; height: 9px; border-radius: 50%; background: #c45c26; flex: none;
}
.code-card header span:first-child {
  font-family: var(--mono); font-size: .75rem; color: #d7deea;
}
.code-card header span:last-child {
  margin-left: auto; font-family: var(--mono); font-size: .7rem; color: #9aa3b5;
}
.code-card pre {
  margin: 0; padding: 16px 16px 18px;
  font-family: var(--mono); font-size: .78rem; line-height: 1.55;
  overflow: auto; white-space: pre;
}
.code-card code { color: #e8eef8; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 36px; }
.contact-card {
  background: linear-gradient(155deg, var(--sage), var(--sage-dark));
  color: #eef6f2; border-radius: 22px; padding: 32px 28px;
  position: relative; overflow: hidden;
}
.contact-card::before {
  content: ""; position: absolute; top: -80px; right: -80px;
  width: 220px; height: 220px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.10), rgba(255,255,255,0) 70%);
}
.contact-card h2 { color: #fff; margin-bottom: 10px; }
.contact-card p { color: #d5e6de; margin-bottom: 22px; }
.contact-meta { display: grid; gap: 14px; position: relative; z-index: 1; }
.contact-meta div {
  background: rgba(255,255,255,.08); border-radius: 14px; padding: 14px 16px;
  border: 1px solid rgba(255,255,255,.12);
  transition: background .2s;
}
.contact-meta div:hover { background: rgba(255,255,255,.14); }
.contact-meta small { display: block; opacity: .75; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; }
.form {
  background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 28px;
  display: grid; gap: 14px; box-shadow: var(--shadow-sm);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
label { display: grid; gap: 6px; font-size: .88rem; font-weight: 560; }
input, select, textarea {
  border: 1px solid var(--line); background: var(--cream); border-radius: 12px;
  padding: 12px 13px; font-size: 1rem; color: var(--ink);
  transition: border-color .2s, background .2s, box-shadow .2s;
}
input:hover, select:hover, textarea:hover { border-color: #c3cbdb; }
input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--sage); outline-offset: 1px; background: #fff;
}
textarea { min-height: 130px; resize: vertical; }
.form-ok {
  display: none; background: var(--sage-soft); color: var(--sage-dark);
  padding: 14px 16px; border-radius: 12px;
}
.form-ok.show { display: block; }

/* Footer */
footer {
  padding: 28px 0 40px; color: var(--muted); font-size: .9rem;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(44,95,78,.03), transparent 40%);
}
.foot { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.foot a { transition: color .2s; }
.foot a:hover { color: var(--sage); }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in-view { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .card, .step, .shot, .plan, .btn, .btn-ghost, .window, .shot .thumb img { transition: none !important; }
}

@media (max-width: 900px) {
  .hero-grid, .cards, .cards3, .work-grid, .contact-grid, .form-row, .portfolio, .code-grid, .about-me { grid-template-columns: 1fr; }
  .services, .pricing { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .hero-visual img, .work-grid img { height: 320px; }
  .hero-badge { left: 12px; }
  .window { transform: none; }
  .nav-links {
    display: none; position: absolute; top: 74px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    flex-direction: column; padding: 18px 20px 22px; align-items: flex-start; gap: 14px;
  }
  .nav-links.open { display: flex; }
  .menu-toggle { display: grid; place-items: center; }
  section { padding: 64px 0; }
}
@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; }
  .hero { padding-top: 28px; }
}
