/* Design épuré inspiré d'Apple : polices SF Pro (système), fonds neutres, accent vert sauge. */
:root {
  --bg: #ffffff;
  --bg-alt: #f5f6f7;
  --card: #ffffff;
  --card-alt: #f5f6f7;
  --ink: #1e2a32;
  --ink-2: #5f6b72;
  --ink-3: #8a9399;
  --line: #d5d9dd;
  --accent: #2f6f5e;
  --on-accent: #ffffff;
  --link: #2f6f5e;
  --chip: #eceef0;
  --nav: rgba(255, 255, 255, 0.75);
  --shadow: 0 4px 24px rgba(30, 42, 50, 0.06);
  --grad: linear-gradient(90deg, #2f6f5e, #8fb59a);
  --radius: 18px;
  /* Comme apple.com : SF Pro Text pour le texte, SF Pro Display pour les titres (≥ 20 px).
     Sur Mac/iPhone, -apple-system donne SF Pro avec le bon dessin selon la taille ;
     ailleurs, Inter (très proche) puis Helvetica Neue. */
  --font-text: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Icons", "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Icons", "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --bg-alt: #101112;
    --card: #1c1c1e;
    --card-alt: #1c1c1e;
    --ink: #f5f5f7;
    --ink-2: #a1a1a6;
    --ink-3: #86868b;
    --line: #38383a;
    --accent: #7cc3a8;
    --on-accent: #000000;
    --link: #7cc3a8;
    --chip: #2c2c2e;
    --nav: rgba(22, 22, 23, 0.75);
    --shadow: none;
    --grad: linear-gradient(90deg, #7cc3a8, #c9e2b8);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 56px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.47059 var(--font-text);
  letter-spacing: -0.022em;
  font-feature-settings: "kern";
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
code { font: 0.88em var(--mono); background: var(--chip); padding: 1px 6px; border-radius: 6px; }

.wrap { max-width: 1024px; margin: 0 auto; padding: 0 22px; }

/* barre de navigation */
.top {
  position: sticky; top: 0; z-index: 10;
  background: var(--nav);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 50%, transparent);
}
.top-inner { display: flex; align-items: center; justify-content: space-between; height: 48px; }
.brand { font-size: 14px; font-weight: 600; color: var(--ink); }
.brand:hover { text-decoration: none; }
nav { display: flex; gap: 28px; }
nav a { color: var(--ink); opacity: .8; font-size: 12px; letter-spacing: -0.01em; }
nav a:hover { opacity: 1; text-decoration: none; }

/* typographie */
.eyebrow { font-size: 17px; font-weight: 600; color: var(--ink-2); margin: 0 0 8px; letter-spacing: -0.02em; }
h1, h2, h3 { margin: 0; font-weight: 600; color: var(--ink); font-family: var(--font-display); }
h1 { font-size: clamp(44px, 8vw, 80px); line-height: 1.05; letter-spacing: -0.015em; font-weight: 700; }
h2 { font-size: clamp(32px, 5vw, 48px); line-height: 1.08; letter-spacing: -0.003em; font-weight: 700; }
h3 { font-size: 21px; line-height: 1.2; letter-spacing: -0.012em; }
.grad {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* hero */
.hero { padding: 112px 22px 96px; text-align: center; }
.lede { font-family: var(--font-display); font-size: 21px; line-height: 1.381; color: var(--ink-2); max-width: 640px; margin: 24px auto 36px; letter-spacing: -0.01em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.btn {
  display: inline-block; padding: 12px 22px; border-radius: 980px;
  background: var(--accent); color: var(--on-accent); font-size: 17px; font-weight: 400;
  border: 1px solid var(--accent); transition: background .2s;
}
.btn:hover { text-decoration: none; background: color-mix(in srgb, var(--accent) 88%, #000); }
.btn.ghost { background: transparent; color: var(--link); border-color: var(--line); }
.btn.ghost:hover { background: var(--accent); color: var(--on-accent); }
.facts {
  list-style: none; padding: 0; margin: 80px auto 0; max-width: 900px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
}
.facts li { display: flex; flex-direction: column; gap: 4px; }
.facts strong { font-family: var(--font-display); font-size: 19px; font-weight: 600; }
.facts span { color: var(--ink-2); font-size: 14px; }

/* sections */
section { padding: 112px 0; }
section.wrap { padding: 112px 22px; }
.band { background: var(--bg-alt); }
.section-head { text-align: center; margin: 0 auto 64px; max-width: 760px; }
.section-intro { font-family: var(--font-display); color: var(--ink-2); font-size: 21px; line-height: 1.381; letter-spacing: .011em; margin: 18px 0 0; }

/* schéma de flux */
.flow {
  margin: 0 0 24px; padding: 40px;
  background: var(--card); border-radius: 28px; box-shadow: var(--shadow);
  display: grid; grid-template-columns: 1fr 20px 1fr 20px 1.1fr 20px 1fr; gap: 12px; align-items: center;
}
.flow-col { display: flex; flex-direction: column; gap: 8px; }
.flow-label { font-size: 12px; font-weight: 600; color: var(--ink-3); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 6px; }
.node { padding: 10px 14px; border-radius: 12px; font-size: 14px; background: var(--bg-alt); }
.band .node { background: var(--bg-alt); }
.layer { display: flex; flex-direction: column; line-height: 1.3; font-weight: 600; }
.layer small { font-weight: 400; color: var(--ink-2); font-size: 12px; }
.l1 { background: linear-gradient(90deg, rgba(176,141,87,.22), transparent) !important; }
.l2 { background: linear-gradient(90deg, rgba(142,154,166,.28), transparent) !important; }
.l3 { background: linear-gradient(90deg, rgba(212,167,44,.28), transparent) !important; }
.flow-arrow { height: 1px; background: var(--line); position: relative; }
.flow-arrow::after {
  content: ""; position: absolute; right: -1px; top: -4px;
  border: 4.5px solid transparent; border-left: 6px solid var(--ink-3); border-right: 0;
}

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.item { background: var(--card); border-radius: var(--radius); padding: 32px 28px; box-shadow: var(--shadow); }
.item .num { font-size: 13px; font-weight: 600; color: var(--ink-3); }
.item h3 { margin: 10px 0 10px; }
.item p { margin: 0; color: var(--ink-2); font-size: 15px; line-height: 1.5; }

.principles { margin-top: 96px; text-align: center; }
.principles h3 { font-size: 32px; font-weight: 700; }
.principles ul { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px 48px; text-align: left; }
.principles li { color: var(--ink-2); font-size: 17px; }
.principles strong { font-family: var(--font-display); color: var(--ink); display: block; font-size: 19px; margin-bottom: 4px; }

/* projets */
.project {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center;
  padding: 56px 0;
}
.project + .project { border-top: 1px solid color-mix(in srgb, var(--line) 60%, transparent); }
.project.reverse .project-media { order: 2; }
.project-media {
  border-radius: 28px; overflow: hidden; background: var(--card-alt);
  min-height: 360px; display: flex; align-items: center; justify-content: center;
}
.media-wide img { width: 100%; height: 100%; object-fit: cover; }
.media-phones { gap: 20px; padding: 40px 32px; align-items: center; }
.media-phones img {
  width: auto; height: auto; max-width: 40%; max-height: 460px;
  aspect-ratio: 1320 / 2868; object-fit: contain;
  border-radius: 24px; box-shadow: 0 8px 30px rgba(0,0,0,.12);
}
.media-logo { padding: 56px; background: #ffffff; }
.media-logo img { max-height: 200px; width: auto; }
.media-text { background: linear-gradient(160deg, #1e2a32, #2f6f5e 55%, #8fb59a); }
.mini-site { color: #fff; text-align: center; display: flex; flex-direction: column; gap: 6px; padding: 32px; }
.mini-site strong { font-family: var(--font-display); font-size: 40px; font-weight: 700; letter-spacing: -0.02em; }
.mini-site span { font-size: 15px; opacity: .85; }
.mini-bar { display: none; }

.project-title { display: flex; align-items: center; gap: 12px; }
.project-title img { border-radius: 10px; }
.project-title h3 { font-size: 40px; font-weight: 700; letter-spacing: -0.01em; }
.tagline { font-family: var(--font-display); font-size: 21px; line-height: 1.3; color: var(--ink); font-weight: 600; margin: 10px 0 16px; }
.project-body > p:not(.tagline) { color: var(--ink-2); margin: 0 0 20px; }
.tags { list-style: none; padding: 0; margin: 0 0 24px; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { font-size: 12px; padding: 5px 12px; border-radius: 980px; background: var(--chip); color: var(--ink); }
.links { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; }
.links a { font-size: 17px; }
.links a::after { content: " ›"; }
.status { font-size: 12px; color: var(--ink-2); background: var(--chip); padding: 5px 12px; border-radius: 980px; }

/* carrière */
.timeline { list-style: none; padding: 0; margin: 0 auto; max-width: 820px; }
.job { display: grid; grid-template-columns: 180px 1fr; gap: 32px; padding: 28px 0; position: relative; }
.job + .job { border-top: 1px solid color-mix(in srgb, var(--line) 60%, transparent); }
.when { color: var(--ink-3); font-size: 15px; padding-top: 3px; }
.job:first-child .when { color: var(--accent); font-weight: 600; }
.what h3 { font-size: 24px; }
.org { color: var(--ink); font-weight: 500; margin: 4px 0 10px; font-size: 15px; }
.what p:not(.org) { color: var(--ink-2); margin: 0; font-size: 16px; }
.cv-extra { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 80px; }
.cv-extra > div { background: var(--card); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.cv-extra h3 { font-size: 19px; margin-bottom: 14px; }
.cv-extra ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.cv-extra li { display: flex; flex-direction: column; }
.cv-extra strong { font-weight: 600; font-size: 16px; }
.cv-extra span { color: var(--ink-2); font-size: 14px; }

/* compétences */
.skills { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.skills > div { background: var(--bg-alt); border-radius: var(--radius); padding: 28px; }
.skills h3 { font-size: 19px; margin-bottom: 8px; }
.skills p { margin: 0; color: var(--ink-2); font-size: 15px; }

/* contact */
.contact { text-align: center; }
.contact p { font-family: var(--font-display); color: var(--ink-2); font-size: 21px; margin: 16px 0 32px; }
.foot { padding: 20px 22px 40px; border-top: 1px solid color-mix(in srgb, var(--line) 60%, transparent); color: var(--ink-3); font-size: 12px; }

/* responsive */
@media (max-width: 900px) {
  .grid-3, .skills { grid-template-columns: 1fr 1fr; }
  .project { grid-template-columns: 1fr; gap: 32px; }
  .project.reverse .project-media { order: 0; }
  .flow { grid-template-columns: 1fr; padding: 28px; }
  .flow-arrow { width: 1px; height: 18px; margin: 0 auto; }
  .flow-arrow::after { right: -4px; top: auto; bottom: -1px; border: 4.5px solid transparent; border-top: 6px solid var(--ink-3); border-bottom: 0; }
  .facts { grid-template-columns: 1fr 1fr; }
  .cv-extra { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .wrap, section.wrap { padding-left: 16px; padding-right: 16px; }
  nav { gap: 16px; }
  nav a:nth-child(4) { display: none; }
  .hero { padding-top: 72px; padding-bottom: 72px; }
  section, section.wrap { padding-top: 72px; padding-bottom: 72px; }
  .grid-3, .skills, .principles ul { grid-template-columns: 1fr; }
  .project-title h3 { font-size: 32px; }
  .job { grid-template-columns: 1fr; gap: 6px; }
  .project-media { min-height: 260px; }
}
