@font-face {
  font-family: "Outfit";
  src: url("/fonts/outfit.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Plex Mono";
  src: url("/fonts/plex-mono.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

:root {
  --bg: #fffaf5;
  --surface: #ffffff;
  --ink: #1d1b33;          /* bleu nuit */
  --muted: #5b5873;
  --line: #ece6f0;
  --accent: #f97316;       /* orange vif : boutons, pastilles */
  --accent-text: #c2410c;  /* orange lisible pour le texte */
  --accent-soft: #fff0e3;
  --teal: #0f766e;         /* vert « circuit imprimé » */
  --teal-soft: #e3f6f2;
  --ok: #15803d;
  --err: #b91c1c;
  --shadow: 0 1px 2px rgb(29 27 51 / .04), 0 8px 24px rgb(29 27 51 / .06);
  --sans: "Outfit", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "Plex Mono", ui-monospace, Menlo, monospace;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14131f;
    --surface: #1d1c2b;
    --ink: #f3f1fa;
    --muted: #a9a6c0;
    --line: #2d2b40;
    --accent: #fb923c;
    --accent-text: #fdba74;
    --accent-soft: #33231a;
    --teal: #5eead4;
    --teal-soft: #15302d;
    --ok: #4ade80;
    --err: #f87171;
    --shadow: 0 8px 24px rgb(0 0 0 / .3);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.65 var(--sans);
  font-weight: 350;
  -webkit-font-smoothing: antialiased;
  /* deux halos de couleur en haut de page */
  background-image:
    radial-gradient(600px 400px at 85% -60px, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%),
    radial-gradient(500px 380px at 5% 120px, color-mix(in srgb, var(--teal) 14%, transparent), transparent 70%);
  background-repeat: no-repeat;
}

.wrap { max-width: 960px; margin: 0 auto; padding: 0 24px; }
section.wrap { padding: 56px 24px; }

h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; font-weight: 650; }
h1 { font-size: clamp(2.5rem, 6vw, 3.6rem); letter-spacing: -.025em; font-weight: 700; }
h2 { font-size: 1.7rem; letter-spacing: -.015em; }
h2::after {
  content: "";
  display: block;
  width: 40px; height: 4px;
  margin-top: 10px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--accent), var(--teal));
}
h3 { font-size: 1.1rem; font-weight: 600; }
p { margin: 0 0 1em; }
strong { font-weight: 600; }
a { color: var(--accent-text); }

/* --- En-tête --- */
.hero {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 48px;
  align-items: center;
  padding-top: 80px;
  padding-bottom: 48px;
}
.portrait {
  width: 180px;
  height: 180px;
  object-fit: cover;
  border-radius: 50%;
  border: 5px solid var(--surface);
  box-shadow: 0 0 0 3px var(--accent), 0 18px 40px rgb(249 115 22 / .22);
  rotate: -3deg;
}
.kicker {
  display: inline-block;
  font-family: var(--mono);
  font-size: .8rem;
  color: var(--teal);
  background: var(--teal-soft);
  padding: 2px 10px;
  border-radius: 999px;
  margin-bottom: .8em;
}
.tagline {
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--accent-text);
  margin-top: -.3em;
}
.lead { font-size: 1.2rem; font-weight: 450; color: var(--ink); }
.hero p:not(.lead):not(.kicker):not(.actions):not(.tagline) { color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 1.6em; }
.where { font-size: .92rem; color: var(--muted); }

.btn {
  display: inline-block;
  background: var(--accent);
  color: #1d1b33;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  border: 0;
  border-radius: 999px;
  padding: 12px 26px;
  cursor: pointer;
  box-shadow: 0 6px 18px rgb(249 115 22 / .3);
  transition: transform .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgb(249 115 22 / .38); }
.btn:disabled { opacity: .6; cursor: wait; transform: none; }
.btn:focus-visible, input:focus-visible, textarea:focus-visible, a:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 2px;
}

/* --- Listes à flèches --- */
.muted { color: var(--muted); }
.note { color: var(--muted); font-size: .95rem; }
section .note { margin-top: 20px; }
.ticks { list-style: none; padding: 0; margin: 0; }
.ticks li { padding-left: 28px; position: relative; margin-bottom: 12px; color: var(--muted); }
.ticks li::before { content: "→"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.ticks strong { color: var(--ink); }
.ticks.cols { columns: 2; column-gap: 40px; }
.ticks.cols li { break-inside: avoid; }
.chill {
  margin-top: 22px;
  display: inline-block;
  background: var(--accent-soft);
  color: var(--ink);
  font-weight: 450;
  padding: 12px 20px;
  border-radius: 14px;
  rotate: -.6deg;
}

/* --- Savoir-faire --- */
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px 24px;
  box-shadow: var(--shadow);
  transition: transform .2s, border-color .2s;
}
.card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); }
.card h3::before {
  content: "";
  display: inline-block;
  width: 10px; height: 10px;
  margin-right: 10px;
  border-radius: 3px;
  background: var(--accent);
  vertical-align: 1px;
}
.card:nth-child(3n+2) h3::before { background: var(--teal); }
.card p { margin: 0; color: var(--muted); font-size: .97rem; }
.card.wide {
  grid-column: 1 / -1;
  background: linear-gradient(120deg, var(--accent-soft), var(--teal-soft));
  border-color: transparent;
}

/* --- Réalisations --- */
.cases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.case {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.case::before {
  content: "";
  position: absolute; inset: 0 0 auto 0;
  height: 5px;
  background: linear-gradient(90deg, var(--accent), var(--teal));
}
.case .tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: .7rem;
  color: var(--teal);
  background: var(--teal-soft);
  padding: 2px 8px;
  border-radius: 6px;
  margin-bottom: .8em;
}
.case dl { margin: 0; font-size: .93rem; }
.case dt { font-family: var(--mono); font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--accent-text); margin-top: 12px; }
.case dd { margin: 2px 0 0; color: var(--muted); }
.case dd strong { color: var(--ink); }
h3.sub { margin-top: 40px; font-size: 1.2rem; }
.projects { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px 36px; }
.projects li { padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--muted); font-size: .97rem; }
.projects li strong { color: var(--ink); }

/* --- Déroulé --- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; counter-reset: step; }
.steps li { counter-increment: step; }
.steps h3::before {
  content: counter(step);
  display: inline-grid; place-items: center;
  width: 30px; height: 30px; margin-right: 10px;
  border-radius: 50%;
  background: var(--accent); color: #1d1b33;
  font: 600 .9rem var(--sans);
}
.steps li:nth-child(2) h3::before { background: var(--teal); color: #fff; }
.steps p { color: var(--muted); font-size: .97rem; margin: 0; }
.philo {
  margin: 36px 0 0;
  padding: 22px 26px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 5px solid var(--accent);
  border-radius: 16px;
  box-shadow: var(--shadow);
}
.philo p { margin: 0; color: var(--muted); }
.philo strong { color: var(--ink); font-size: 1.08em; }

/* --- Atelier --- */
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li {
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 6px 16px;
  font-size: .93rem;
}
.chips li:nth-child(odd) { background: var(--accent-soft); }
.chips li:nth-child(even) { background: var(--teal-soft); }

/* --- Parcours --- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.timeline { list-style: none; padding: 0; margin: 0 0 1em; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding: 6px 0 6px 128px; font-size: .97rem; }
.timeline li::before {
  content: "";
  position: absolute; left: -6px; top: 14px;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--bg);
}
.timeline li:first-child::before { background: var(--teal); }
.timeline span {
  position: absolute;
  left: 18px;
  top: 9px;
  font-family: var(--mono);
  font-size: .78rem;
  color: var(--accent-text);
}
.timeline em { color: var(--muted); font-style: normal; }

/* --- Contact --- */
.contact > p { color: var(--muted); max-width: 640px; }
form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px;
  margin-top: 24px;
  box-shadow: var(--shadow);
}
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label { display: block; font-weight: 550; font-size: .93rem; margin-bottom: 16px; }
input, textarea {
  display: block;
  width: 100%;
  margin-top: 6px;
  font: inherit;
  font-weight: 400;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 11px 14px;
  transition: border-color .15s;
}
input:focus, textarea:focus { border-color: var(--accent); }
textarea { resize: vertical; min-height: 140px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.submit { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.status { margin: 0; font-size: .95rem; }
.status.ok { color: var(--ok); }
.status.err { color: var(--err); }
.fine { margin: 18px 0 0; font-size: .82rem; color: var(--muted); }

/* --- Pied de page --- */
.footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  padding-top: 28px;
  padding-bottom: 40px;
  border-top: 1px solid var(--line);
  font-size: .9rem;
  color: var(--muted);
}
.footer a { color: var(--muted); }
.footer a:hover { color: var(--accent-text); }

/* --- Page texte (mentions légales, 404) --- */
.page { padding-top: 56px; padding-bottom: 56px; max-width: 720px; }
.page h2 { margin-top: 1.6em; font-size: 1.2rem; }
.page h2::after { display: none; }
.page p, .page li { color: var(--muted); }

@media (max-width: 760px) {
  body { font-size: 16px; }
  .hero { grid-template-columns: 1fr; gap: 24px; padding-top: 48px; }
  .portrait { width: 130px; height: 130px; }
  .grid, .projects, .split, .row, .cases, .steps { grid-template-columns: 1fr; }
  .ticks.cols { columns: 1; }
  .split { gap: 36px; }
  section.wrap { padding: 44px 20px; }
}
