/* dev.noret.eu · Alexandre Noret, développeur indépendant */

@font-face { font-family: "Space Grotesk"; font-weight: 500; font-display: swap; src: url(/fonts/space-grotesk-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-weight: 700; font-display: swap; src: url(/fonts/space-grotesk-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url(/fonts/inter-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 500; font-display: swap; src: url(/fonts/inter-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap; src: url(/fonts/inter-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-weight: 400; font-display: swap; src: url(/fonts/jetbrains-mono-latin-400-normal.woff2) format("woff2"); }

:root {
  --paper: #f4f1ea;
  --paper-2: #ebe6db;
  --ink: #16150f;
  --ink-2: #4a473e;
  --ink-3: #7a766a;
  --line: #d9d3c4;
  --accent: #e5482d;
  --accent-ink: #b8321b;
  --night: #15140f;
  --night-2: #201f19;
  --night-line: #34322a;
  --night-text: #ece8dd;
  --night-mute: #a39e8f;
  --display: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --body: "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --r: 14px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.6 var(--body); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.08; letter-spacing: -0.02em; margin: 0; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(1160px, 100% - 48px); margin-inline: auto; }

/* Barre du haut */
.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--paper) 86%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.top.scrolled { border-bottom-color: var(--line); }
.top-in { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-weight: 700; font-size: 18px; letter-spacing: -0.01em; }
.brand-mark { display: flex; align-items: baseline; justify-content: center; padding-top: 9px; width: 34px; height: 34px; border-radius: 9px; background: var(--ink); color: var(--paper); font: 500 15px/1 var(--mono); letter-spacing: -0.04em; }
.brand-mark::after { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--accent); margin-left: 1px; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { text-decoration: none; font-size: 15px; font-weight: 500; color: var(--ink-2); padding: 8px 12px; border-radius: 999px; transition: color .15s, background .15s; }
.nav a:hover { color: var(--ink); background: var(--paper-2); }
.nav .nav-cta { background: var(--ink); color: var(--paper); margin-left: 6px; }
.nav .nav-cta:hover { background: var(--accent); color: #fff; }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 600 16px/1 var(--body); padding: 15px 22px; border-radius: 999px; text-decoration: none; border: 1.5px solid transparent; cursor: pointer; transition: background .15s, color .15s, border-color .15s, transform .15s; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-ink); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn-block { width: 100%; }

/* Hero */
.hero { padding: clamp(64px, 11vw, 140px) 0 clamp(56px, 8vw, 104px); border-bottom: 1px solid var(--line); background-image: radial-gradient(var(--line) 1px, transparent 1px); background-size: 22px 22px; background-position: -11px -11px; }
.kicker { display: inline-flex; align-items: center; gap: 10px; font: 400 13px/1 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-2); background: var(--paper); border: 1px solid var(--line); padding: 9px 14px; border-radius: 999px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #2fa05a; box-shadow: 0 0 0 4px color-mix(in srgb, #2fa05a 20%, transparent); }
.hero h1 { font-size: clamp(46px, 8.4vw, 108px); margin: 28px 0 28px; max-width: 14ch; }
.hero h1 em { font-style: normal; color: var(--accent); }
.lede { font-size: clamp(18px, 1.8vw, 21px); color: var(--ink-2); max-width: 60ch; background: color-mix(in srgb, var(--paper) 80%, transparent); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero-facts { list-style: none; padding: 0; margin: 56px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--ink); }
.hero-facts li { padding: 16px 20px 0 0; font-size: 15px; color: var(--ink-2); }
.hero-facts strong { display: block; font-family: var(--display); font-size: 22px; color: var(--ink); letter-spacing: -0.01em; margin-bottom: 2px; }

/* Sections */
.section { padding: clamp(72px, 10vw, 128px) 0; }
.sec-head { display: grid; grid-template-columns: 80px 1fr; column-gap: 24px; margin-bottom: 56px; }
.sec-num { font: 400 14px/1 var(--mono); color: var(--accent); padding-top: 12px; }
.sec-head h2, .contact h2 { font-size: clamp(34px, 5vw, 60px); }
.sec-sub { grid-column: 2; margin-top: 16px; font-size: 18px; color: var(--ink-2); max-width: 58ch; }
.tags { font: 400 12.5px/1.5 var(--mono); color: var(--ink-3); margin-top: auto; padding-top: 18px; letter-spacing: .01em; }

/* Services */
.services { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.svc { display: flex; flex-direction: column; padding: 32px 28px 28px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: background .2s; }
.svc:hover { background: color-mix(in srgb, var(--paper-2) 60%, transparent); }
.svc-ico { width: 30px; height: 30px; fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 22px; }
.svc:hover .svc-ico { stroke: var(--accent); }
.svc h3 { font-size: 22px; margin-bottom: 10px; }
.svc p:not(.tags) { color: var(--ink-2); font-size: 16px; }

/* Réalisations */
.section-dark { background: var(--night); color: var(--night-text); }
.section-dark .sec-sub { color: var(--night-mute); }
.works { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.work { display: flex; flex-direction: column; background: var(--night-2); border: 1px solid var(--night-line); border-radius: var(--r); overflow: hidden; text-decoration: none; color: inherit; transition: border-color .2s, transform .2s; }
.work:hover { border-color: var(--accent); transform: translateY(-3px); }
.work img { aspect-ratio: 40 / 21; object-fit: cover; width: 100%; border-bottom: 1px solid var(--night-line); }
.work-body { display: flex; flex-direction: column; flex: 1; padding: 24px 26px 26px; }
.work-type { font: 400 12px/1 var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--accent); margin-bottom: 12px; }
.work h3 { font-size: 26px; margin-bottom: 10px; }
.work-body > p:not(.work-type):not(.tags) { color: var(--night-mute); font-size: 16px; }
.work .tags { color: #8a8576; }
.work-link { margin-top: 18px; font-weight: 600; font-size: 15px; color: var(--night-text); }
.work:hover .work-link { color: var(--accent); }
.work-wide { grid-column: 1 / -1; display: grid; grid-template-columns: 1.15fr 1fr; }
.work-wide img { height: 100%; aspect-ratio: auto; border-bottom: 0; border-right: 1px solid var(--night-line); object-position: left top; }
.work-wide .work-body { padding: 36px; justify-content: center; }
.work-wide h3 { font-size: 34px; }
.works-note { margin-top: 36px; font: 400 13.5px/1.6 var(--mono); color: var(--night-mute); max-width: 70ch; }
.works-note::before { content: "› "; color: var(--accent); }

/* Méthode */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; counter-reset: s; }
.steps li { position: relative; padding: 0 22px 0 0; }
.steps li::before { content: ""; position: absolute; top: 21px; left: 44px; right: 0; height: 1.5px; background: var(--line); }
.steps li:last-child::before { display: none; }
.step-n { position: relative; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--ink); font: 500 16px/1 var(--mono); background: var(--paper); margin-bottom: 22px; }
.steps li:first-child .step-n { background: var(--accent); border-color: var(--accent); color: #fff; }
.steps h3 { font-size: 20px; margin-bottom: 8px; }
.steps p { font-size: 15.5px; color: var(--ink-2); }

/* Contact */
.contact { background: var(--paper-2); border-top: 1px solid var(--line); }
.contact-in { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.contact .sec-num { padding-top: 0; margin-bottom: 18px; }
.contact .sec-sub { margin-top: 18px; }
.mail { display: inline-block; margin: 36px 0 26px; font-family: var(--display); font-weight: 700; font-size: clamp(28px, 3.6vw, 44px); letter-spacing: -0.02em; text-decoration: none; background-image: linear-gradient(var(--accent), var(--accent)); background-size: 100% 3px; background-position: 0 100%; background-repeat: no-repeat; padding-bottom: 4px; word-break: break-all; transition: color .15s; }
.mail:hover { color: var(--accent); }
.mail-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.copy-msg { min-height: 24px; margin-top: 12px; font: 400 14px/1.5 var(--mono); color: #2a8a4f; }

.brief { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: clamp(22px, 3vw, 34px); box-shadow: 0 1px 0 var(--line), 0 24px 48px -32px rgba(22, 21, 15, .35); }
.brief-title { font-family: var(--display); font-weight: 700; font-size: 21px; letter-spacing: -0.01em; margin-bottom: 22px; }
.brief-title span { display: block; font: 400 15px/1.5 var(--body); color: var(--ink-2); margin-top: 4px; letter-spacing: 0; }
.brief fieldset { border: 0; padding: 0; margin: 0 0 18px; }
.brief legend, .field > span { display: block; font-size: 14px; font-weight: 600; margin-bottom: 8px; padding: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { position: relative; cursor: pointer; }
.chips input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chips span { display: inline-block; padding: 8px 14px; border: 1.5px solid var(--line); border-radius: 999px; font-size: 14.5px; font-weight: 500; color: var(--ink-2); transition: all .15s; user-select: none; }
.chips label:hover span { border-color: var(--ink-3); }
.chips input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.chips input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.field { display: block; margin-bottom: 16px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.brief textarea, .brief select, .brief input[type=text] { width: 100%; font: 400 16px/1.5 var(--body); color: var(--ink); background: #fff; border: 1.5px solid var(--line); border-radius: 10px; padding: 11px 13px; transition: border-color .15s; }
.brief textarea { resize: vertical; min-height: 120px; }
.brief select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink-2) 50%), linear-gradient(135deg, var(--ink-2) 50%, transparent 50%); background-position: calc(100% - 18px) 52%, calc(100% - 13px) 52%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 34px; }
.brief textarea:focus, .brief select:focus, .brief input:focus { outline: none; border-color: var(--ink); }
.brief .btn-block { margin-top: 6px; }
.brief-note { margin-top: 14px; font-size: 13.5px; color: var(--ink-3); line-height: 1.5; }

/* Pied */
.foot { background: var(--night); color: var(--night-mute); font-size: 14.5px; }
.foot-in { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 28px 0; }
.foot a { color: var(--night-text); text-decoration: none; }
.foot a:hover { color: var(--accent); }

/* 404 */
.notfound { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 80px 0; }
.notfound h1 { font-size: clamp(56px, 10vw, 120px); }
.notfound p { color: var(--ink-2); margin: 16px 0 28px; font-size: 18px; }

/* Responsive */
@media (max-width: 1000px) {
  .services { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .steps li { display: grid; grid-template-columns: 44px 1fr; column-gap: 20px; padding: 0; }
  .steps li::before { top: 44px; bottom: -28px; left: 21px; right: auto; width: 1.5px; height: auto; }
  .step-n { grid-row: span 2; margin: 0; }
  .steps h3 { padding-top: 10px; }
  .contact-in { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .wrap { width: min(1160px, 100% - 36px); }
  .nav a:not(.nav-cta) { display: none; }
  .brand-name { font-size: 16px; }
  .hero-facts { grid-template-columns: 1fr; }
  .hero-facts li { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .sec-head { grid-template-columns: 1fr; margin-bottom: 40px; }
  .sec-num { padding: 0 0 14px; }
  .sec-sub { grid-column: 1; }
  .services, .works { grid-template-columns: 1fr; }
  .work-wide { display: flex; }
  .work-wide img { aspect-ratio: 40 / 21; border-right: 0; border-bottom: 1px solid var(--night-line); }
  .work-wide .work-body { padding: 24px 26px 26px; }
  .work-wide h3 { font-size: 26px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .btn { width: 100%; }
  .nav .btn, .nav-cta { width: auto; }
}
.work-rev { grid-template-columns: 1fr 1.15fr; }
.work-rev img { order: 2; border-right: 0; border-left: 1px solid var(--night-line); object-position: center; }
@media (max-width: 760px) { .work-rev img { order: 0; border-left: 0; } }
@media (max-width: 420px) { .kicker { font-size: 11.5px; letter-spacing: .05em; padding: 8px 12px; } }
