/* ============================================================
   Cabinet Pedetti — design éditorial noir & blanc.
   Aucune couleur : noir d'encre, blanc, niveaux de gris.
   Display serif (Fraunces) + Inter. Sans quadrillage.
   ============================================================ */

:root {
  --ink: #0a0a0a;        /* noir d'encre */
  --ink-soft: #1c1c1c;
  --paper: #ffffff;
  --paper-soft: #f4f4f2; /* blanc cassé, sections alt */
  --gray-700: #3a3a3a;
  --gray-500: #6b6b6b;
  --gray-400: #9a9a9a;
  --gray-300: #c9c9c9;
  --line: rgba(10, 10, 10, .12);
  --line-soft: rgba(10, 10, 10, .08);
  --line-invert: rgba(255, 255, 255, .16);

  --radius: 4px;
  --maxw: 1180px;

  --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;

  --ease: cubic-bezier(.22, 1, .36, 1);
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body {
  font-family: var(--font-sans);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
address { font-style: normal; }
button { font-family: inherit; cursor: pointer; }
::selection { background: var(--ink); color: var(--paper); }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 26px; border-radius: 999px; font-weight: 600; font-size: 14.5px;
  letter-spacing: .01em; border: 1.5px solid var(--ink);
  transition: background .25s var(--ease), color .25s var(--ease), transform .2s var(--ease);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-sm { padding: 9px 18px; font-size: 13.5px; }
.btn-block { width: 100%; }
.btn-dark { background: var(--ink); color: var(--paper); }
.btn-dark:hover { background: transparent; color: var(--ink); }
.btn-outline { background: transparent; color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--paper); }
.btn-light { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn-light:hover { background: transparent; color: var(--paper); }

/* ── Header (conventionnel, sobre) ─────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.site-header.scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }

.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 38px; height: 38px; flex: 0 0 38px; border-radius: 9px;
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 500; font-size: 21px; color: var(--paper);
  background: var(--ink);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-weight: 700; font-size: 15.5px; letter-spacing: -.01em; }
.brand-tag { font-size: 10.5px; color: var(--gray-400); letter-spacing: .16em; text-transform: uppercase; }

.nav { display: flex; gap: 34px; }
.nav a { color: var(--gray-500); font-size: 14.5px; font-weight: 500; transition: color .2s var(--ease); position: relative; }
.nav a:hover { color: var(--ink); }
.nav a::after { content: ''; position: absolute; left: 0; bottom: -5px; height: 1.5px; width: 0; background: var(--ink); transition: width .28s var(--ease); }
.nav a:hover::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: 14px; }
.nav-toggle { display: none; flex-direction: column; gap: 6px; background: none; border: 0; padding: 8px; }
.nav-toggle span { width: 24px; height: 1.5px; background: var(--ink); border-radius: 2px; transition: .28s var(--ease); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(3.75px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(-3.75px) rotate(-45deg); }

.mobile-nav { display: flex; flex-direction: column; gap: 2px; padding: 8px 28px 24px; border-bottom: 1px solid var(--line); background: var(--paper); }
.mobile-nav[hidden] { display: none; }
.mobile-nav a:not(.btn) { padding: 14px 2px; color: var(--gray-700); border-bottom: 1px solid var(--line-soft); font-weight: 500; }
.mobile-nav .btn { margin-top: 16px; }

/* ── Section primitives ────────────────────────────────────── */
.section { padding: 128px 0; position: relative; }
.section-alt { background: var(--paper-soft); }
.section-dark { background: var(--ink); color: var(--paper); }
.section-head { max-width: 720px; margin: 0 auto 72px; text-align: center; }
.kicker {
  display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: .22em;
  text-transform: uppercase; color: var(--gray-500); margin-bottom: 22px;
}
.kicker::before { content: ''; display: inline-block; width: 22px; height: 1px; background: var(--gray-400); vertical-align: middle; margin-right: 12px; }
.kicker-invert { color: var(--gray-300); }
.kicker-invert::before { background: var(--gray-500); }

h1, h2, h3 { letter-spacing: -.02em; line-height: 1.08; font-weight: 600; }
.section h2 { font-family: var(--font-display); font-size: clamp(30px, 4.4vw, 52px); font-weight: 500; }
.section-sub { color: var(--gray-500); font-size: 18px; margin-top: 20px; line-height: 1.6; }
.section-dark .section-sub { color: var(--gray-300); }
.section-sub strong, .section-dark .section-sub strong { color: inherit; font-weight: 600; }

/* ── Hero ──────────────────────────────────────────────────── */
.hero { position: relative; padding: 130px 0 0; }
.hero-inner { max-width: 940px; }
.eyebrow {
  display: inline-block; font-size: 12.5px; font-weight: 500; letter-spacing: .14em;
  text-transform: uppercase; color: var(--gray-500); margin-bottom: 34px;
}
.hero-title {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(48px, 9vw, 116px); line-height: .98; letter-spacing: -.035em;
}
.hero-title em { font-style: italic; font-weight: 400; }
.hero-punch { font-size: clamp(19px, 2.6vw, 26px); font-weight: 500; margin-top: 30px; color: var(--ink); }
.punch-mark { font-family: var(--font-display); font-style: italic; font-weight: 500; border-bottom: 2px solid var(--ink); padding-bottom: 1px; }
.hero-lead { font-size: clamp(16px, 2vw, 19px); color: var(--gray-500); max-width: 620px; margin-top: 22px; }
.hero-lead strong { color: var(--ink); font-weight: 600; }
.hero-cta { display: flex; gap: 14px; margin-top: 40px; flex-wrap: wrap; }

.hero-meta {
  display: flex; gap: 36px; flex-wrap: wrap; align-items: center;
  margin-top: 80px; padding: 26px 28px; border-top: 1px solid var(--line);
  font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--gray-500); font-weight: 500;
}
.hero-loc { margin-left: auto; color: var(--ink); }

/* ── Marquee ───────────────────────────────────────────────── */
.marquee { overflow: hidden; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); background: var(--ink); color: var(--paper); }
.marquee-track {
  display: inline-flex; align-items: center; gap: 28px; white-space: nowrap;
  padding: 16px 0; font-family: var(--font-display); font-size: 17px; font-style: italic;
  animation: marquee 38s linear infinite;
}
.marquee-track span { letter-spacing: .01em; }
.marquee-track .sep { font-style: normal; opacity: .5; font-size: 12px; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ── Écosystème (liste numérotée) ──────────────────────────── */
.eco-list { border-top: 1px solid var(--line); }
.eco-row {
  display: grid; grid-template-columns: 80px 1.1fr 1.4fr 40px; gap: 32px; align-items: center;
  padding: 40px 8px; border-bottom: 1px solid var(--line);
  transition: padding .35s var(--ease), background .35s var(--ease);
}
.eco-row:hover { padding-left: 24px; padding-right: 24px; background: var(--paper-soft); }
.eco-num { font-family: var(--font-display); font-size: 30px; color: var(--gray-400); font-weight: 400; }
.eco-main h3 { font-family: var(--font-display); font-size: clamp(26px, 3vw, 36px); font-weight: 500; }
.eco-kind { display: block; margin-top: 6px; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--gray-500); }
.eco-desc { color: var(--gray-500); font-size: 15.5px; line-height: 1.6; }
.eco-arrow { font-size: 24px; color: var(--gray-400); transition: transform .3s var(--ease), color .3s var(--ease); justify-self: end; }
.eco-row:hover .eco-arrow { transform: translateX(8px); color: var(--ink); }

/* ── Split sections ────────────────────────────────────────── */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.split-text h2 { font-family: var(--font-display); font-size: clamp(28px, 3.6vw, 44px); font-weight: 500; }
.split-text > p { color: var(--gray-500); font-size: 17px; margin-top: 20px; }
.split-text > p strong { color: var(--ink); font-weight: 600; }
.section-dark .split-text > p { color: var(--gray-300); }
.section-dark .split-text > p strong { color: var(--paper); }
.feature-list { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 36px; margin: 40px 0; }
.feature { border-top: 1px solid var(--line); padding-top: 16px; }
.section-dark .feature { border-top-color: var(--line-invert); }
.feature h4 { font-size: 16px; font-weight: 600; margin-bottom: 6px; }
.feature p { font-size: 14px; color: var(--gray-500); }
.section-dark .feature p { color: var(--gray-400); }
.split-cta { display: flex; gap: 12px; flex-wrap: wrap; }

/* Dashboard mockup (mono) */
.split-visual { position: relative; }
.dash { border: 1px solid var(--ink); border-radius: var(--radius); background: var(--paper); overflow: hidden; box-shadow: 18px 18px 0 -2px var(--ink); }
.dash-head { display: flex; align-items: center; gap: 7px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.dash-dot { width: 10px; height: 10px; border-radius: 50%; border: 1px solid var(--ink); }
.dash-dot:nth-child(3) { background: var(--ink); }
.dash-title { margin-left: 10px; font-size: 12.5px; color: var(--gray-500); }
.dash-kpis { display: grid; grid-template-columns: 1fr 1fr; }
.kpi { padding: 18px; display: flex; flex-direction: column; gap: 4px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.kpi:nth-child(2n) { border-right: 0; }
.kpi-label { font-size: 11.5px; letter-spacing: .04em; text-transform: uppercase; color: var(--gray-400); }
.kpi-val { font-size: 24px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.kpi-delta { font-size: 12px; font-weight: 600; color: var(--gray-500); }
.kpi-delta.up { color: var(--ink); }
.kpi-delta.down { color: var(--gray-400); }
.dash-chart { padding: 16px 18px 8px; }
.dash-chart svg { width: 100%; height: 90px; }
.dash-ai { padding: 16px 18px 20px; font-size: 13.5px; color: var(--gray-700); border-top: 1px solid var(--line); background: var(--paper-soft); }
.ai-tag { display: inline-block; font-weight: 700; margin-right: 8px; }

/* Motto (conseil, fond noir) */
.motto { position: relative; max-width: 480px; }
.motto-mark { font-family: var(--font-display); font-size: 120px; line-height: .4; display: block; color: var(--gray-700); }
.motto p { font-family: var(--font-display); font-style: italic; font-size: clamp(32px, 4.4vw, 52px); line-height: 1.1; font-weight: 400; margin: 4px 0 36px; }
.motto footer { display: flex; flex-direction: column; gap: 3px; padding-top: 22px; border-top: 1px solid var(--line-invert); }
.motto footer strong { font-size: 16px; font-weight: 600; }
.motto footer span { font-size: 13px; color: var(--gray-400); }

/* ── YOAT'LAB grid ─────────────────────────────────────────── */
.lab-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 24px; }
.lab-card {
  padding: 34px 32px; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--paper);
  transition: transform .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.lab-card:hover { transform: translateY(-4px); border-color: var(--ink); box-shadow: 8px 8px 0 -2px var(--ink); }
.lab-feature { background: var(--ink); color: var(--paper); border-color: var(--ink); display: flex; flex-direction: column; }
.lab-feature:hover { box-shadow: 8px 8px 0 -2px var(--gray-400); }
.lab-badge { display: inline-block; align-self: flex-start; font-size: 11.5px; font-weight: 600; letter-spacing: .06em; padding: 6px 13px; border: 1px solid var(--line-invert); border-radius: 999px; margin-bottom: 22px; }
.lab-feature h3 { font-family: var(--font-display); font-size: 34px; font-weight: 500; margin-bottom: 14px; }
.lab-feature > p { color: var(--gray-300); font-size: 15px; }
.bullets { margin: 24px 0 28px; display: flex; flex-direction: column; gap: 11px; }
.bullets li { position: relative; padding-left: 24px; font-size: 14.5px; color: var(--gray-300); }
.bullets li::before { content: '→'; position: absolute; left: 0; top: 0; }
.lab-feature .eco-link { color: var(--paper); }
.lab-side { display: grid; gap: 24px; }
.lab-card h4 { font-family: var(--font-display); font-size: 21px; font-weight: 500; margin-bottom: 8px; }
.lab-card > p { color: var(--gray-500); font-size: 14.5px; }

.eco-link { margin-top: auto; font-weight: 600; font-size: 15px; display: inline-flex; gap: 8px; align-items: center; }
.eco-link span { transition: transform .25s var(--ease); }
.eco-link:hover span { transform: translateX(5px); }

/* ── Méthode steps ─────────────────────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line); }
.step { padding: 36px 28px 36px 0; border-bottom: 1px solid var(--line); }
.step-num { font-family: var(--font-display); font-size: 16px; color: var(--gray-400); display: block; margin-bottom: 20px; letter-spacing: .1em; }
.step h4 { font-family: var(--font-display); font-size: 24px; font-weight: 500; margin-bottom: 10px; }
.step p { font-size: 14px; color: var(--gray-500); padding-right: 12px; }

/* ── CTA / contact ─────────────────────────────────────────── */
.cta-section { background: var(--paper-soft); }
.cta-inner { max-width: 640px; margin: 0 auto; text-align: center; }
.cta-inner .kicker::before { display: none; }
.cta-inner h2 { font-family: var(--font-display); font-size: clamp(30px, 4.4vw, 48px); font-weight: 500; }
.cta-inner > p { color: var(--gray-500); font-size: 18px; margin: 18px 0 40px; }
.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; text-align: left; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field-full { grid-column: 1 / -1; }
.field label { font-size: 12.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--gray-500); }
.field input, .field select, .field textarea {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 13px 15px; color: var(--ink); font-family: inherit; font-size: 15px; transition: border-color .2s var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); }
.field textarea { resize: vertical; }
.contact-form .btn { grid-column: 1 / -1; }
.form-note { grid-column: 1 / -1; font-size: 14px; color: var(--ink); min-height: 18px; margin: 0; }
.cta-alt { margin-top: 26px; font-size: 15px; color: var(--gray-500); }
.cta-alt a { color: var(--ink); font-weight: 600; border-bottom: 1px solid var(--ink); }

/* ── Footer ────────────────────────────────────────────────── */
.site-footer { border-top: 1px solid var(--ink); padding: 80px 0 36px; background: var(--paper); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.3fr; gap: 48px; }
.footer-brand .brand-mark { margin-bottom: 18px; }
.footer-name { font-family: var(--font-display); font-weight: 500; font-size: 20px; margin-bottom: 10px; }
.footer-desc { color: var(--gray-500); font-size: 14px; max-width: 290px; }
.footer-col h5 { font-size: 12px; text-transform: uppercase; letter-spacing: .14em; color: var(--gray-400); margin-bottom: 18px; }
.footer-col a { display: block; color: var(--gray-700); font-size: 14.5px; padding: 6px 0; transition: color .2s var(--ease); }
.footer-col a:hover { color: var(--ink); }
.footer-address { color: var(--gray-700); font-size: 14.5px; line-height: 1.5; margin-bottom: 12px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; margin-top: 56px; padding-top: 26px; border-top: 1px solid var(--line); font-size: 13px; color: var(--gray-400); gap: 16px; flex-wrap: wrap; }
.footer-legal a:hover { color: var(--ink); }

/* ── Plateformes (galerie visuels réels) ───────────────────── */
.platforms-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.platform-card {
  display: flex; flex-direction: column;
  background: var(--paper); border: 1px solid var(--ink); border-radius: var(--radius);
  overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.platform-card:hover { transform: translateY(-5px); box-shadow: 12px 12px 0 -2px var(--ink); }
.platform-shot { display: block; position: relative; background: var(--ink); }
.browser-bar {
  display: flex; align-items: center; gap: 6px;
  padding: 9px 12px; background: var(--ink); border-bottom: 1px solid var(--line-invert);
}
.browser-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--gray-500); display: block; }
.browser-bar i:nth-child(1) { background: #d9d9d9; }
.browser-url {
  margin-left: 10px; font-size: 11px; letter-spacing: .04em; color: var(--gray-300);
  background: rgba(255,255,255,.08); padding: 3px 12px; border-radius: 999px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.platform-shot img {
  width: 100%; aspect-ratio: 16 / 11; object-fit: cover; object-position: top center;
  border-bottom: 1px solid var(--line);
  transition: transform .6s var(--ease); transform-origin: top center;
}
.platform-card:hover .platform-shot img { transform: scale(1.03); }
.platform-body { display: flex; flex-direction: column; padding: 26px 26px 28px; flex: 1; }
.platform-top { margin-bottom: 12px; }
.platform-top h3 { font-family: var(--font-display); font-size: 24px; font-weight: 500; }
.platform-kind { display: block; margin-top: 5px; font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--gray-500); }
.platform-body p { font-size: 14.5px; color: var(--gray-500); line-height: 1.6; }
.platform-link { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); font-weight: 600; font-size: 14.5px; display: inline-flex; gap: 8px; align-items: center; }
.platform-link span { transition: transform .25s var(--ease); }
.platform-link:hover span { transform: translate(3px, -3px); }

/* ── À propos d'Éric (portrait + bio) ──────────────────────── */
.about { align-items: stretch; }
.portrait { display: flex; flex-direction: column; height: 100%; }
.portrait-frame {
  flex: 1; min-height: 360px; display: grid; place-items: center;
  background: var(--ink); color: var(--paper); border-radius: var(--radius);
  box-shadow: 18px 18px 0 -2px var(--ink); position: relative; overflow: hidden;
}
.portrait-frame::before {
  content: ''; position: absolute; inset: 18px; border: 1px solid var(--line-invert); border-radius: 2px;
}
.portrait-mono { font-family: var(--font-display); font-weight: 400; font-size: clamp(72px, 11vw, 132px); letter-spacing: .02em; }
.portrait-cap { margin-top: 22px; display: flex; flex-direction: column; gap: 4px; }
.portrait-cap strong { font-family: var(--font-display); font-weight: 500; font-size: 19px; }
.portrait-cap span { font-size: 13px; color: var(--gray-500); }

.cred-list { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 28px; margin: 36px 0 30px; }
.cred { border-top: 1px solid var(--line); padding-top: 14px; }
.cred-k { display: block; font-weight: 600; font-size: 14px; }
.cred-v { display: block; font-size: 13px; color: var(--gray-500); margin-top: 3px; }
.eric-quote {
  font-family: var(--font-display); font-style: italic; font-size: 18px; line-height: 1.5;
  color: var(--gray-700); border-left: 2px solid var(--ink); padding: 4px 0 4px 20px;
}
.split-text > p em { font-style: italic; }

/* ── Reveal animation ──────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee-track { animation: none; }
  html { scroll-behavior: auto; }
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 920px) {
  .nav, .header-cta { display: none; }
  .nav-toggle { display: flex; }
  .split { grid-template-columns: 1fr; gap: 44px; }
  .split-visual { order: 2; }
  .lab-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .eco-row { grid-template-columns: 56px 1fr; grid-template-areas: 'num main' 'desc desc'; gap: 8px 20px; }
  .eco-row .eco-desc { grid-area: desc; margin-top: 8px; }
  .eco-arrow { display: none; }
  .platforms-grid { grid-template-columns: 1fr 1fr; }
  .about .split-visual { order: 0; }
  .portrait-frame { min-height: 280px; }
}
@media (max-width: 600px) {
  .section { padding: 84px 0; }
  .hero { padding: 80px 0 0; }
  .feature-list, .contact-form, .footer-grid, .steps, .platforms-grid, .cred-list { grid-template-columns: 1fr; }
  .dash { box-shadow: 10px 10px 0 -2px var(--ink); }
  .hero-meta { gap: 16px 24px; }
  .hero-loc { margin-left: 0; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
