/* Accueil — papier gris froid, encre verte-noire, un seul accent orange */
:root {
  --paper: #F1F2EF;
  --ink: #0F1511;
  --muted: #566058;
  --line: #D3D8D0;
  --accent: #F77F00;
  --accent-ink: #A34F00;
  --wrap: 1180px;
  --gutter: 20px;
  --ff-display: 'Bricolage Grotesque', 'Helvetica Neue', Arial, sans-serif;
  --ff-body: 'Hanken Grotesk', 'Helvetica Neue', Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--ff-body);
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- En-tête ---------- */
.top {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 56px; }
.brand { font: 700 1.05rem/1 var(--ff-display); font-stretch: 85%; text-decoration: none; letter-spacing: -0.01em; }
.top nav { display: flex; gap: 22px; font-size: .95rem; }
.top nav a { text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; }
.top nav a:hover { border-bottom-color: var(--accent); }
.top nav .contact-link { font-weight: 600; }

/* ---------- Accueil ---------- */
.hero { padding: clamp(40px, 8vw, 96px) 0 clamp(48px, 7vw, 88px); }
.status { display: inline-flex; align-items: center; gap: 10px; font-size: .95rem; color: var(--muted); margin-bottom: 28px; }
.status::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.hero h1 {
  font-family: var(--ff-display);
  font-weight: 800;
  font-stretch: 78%;
  font-size: clamp(4rem, 17vw, 13rem);
  line-height: .88;
  letter-spacing: -0.01em;
  margin-left: -0.04em;
}
.hero h1 span { display: block; }
.hero-foot {
  display: grid; gap: 28px;
  margin-top: clamp(32px, 5vw, 64px);
  padding-top: 24px; border-top: 1px solid var(--ink);
}
.hero-foot p { font-size: clamp(1.15rem, 2.2vw, 1.5rem); line-height: 1.4; max-width: 34em; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn {
  display: inline-block; padding: 13px 22px; border: 1.5px solid var(--ink);
  font: 600 1rem/1 var(--ff-body); text-decoration: none; background: transparent; color: var(--ink); cursor: pointer;
  transition: background .15s, color .15s;
}
.btn:hover { background: var(--ink); color: var(--paper); }
.btn.solid { background: var(--ink); color: var(--paper); }
.btn.solid:hover { background: var(--accent); border-color: var(--accent); color: var(--ink); }

/* ---------- Sections ---------- */
.section { padding: clamp(48px, 7vw, 96px) 0; border-top: 1px solid var(--ink); }
.section > .wrap > h2 {
  font: 800 clamp(2rem, 5vw, 3.5rem)/1 var(--ff-display); font-stretch: 80%; letter-spacing: -0.02em;
  margin-bottom: clamp(28px, 4vw, 56px);
}

/* Projets */
.project { display: grid; gap: 20px; padding-bottom: clamp(40px, 6vw, 80px); }
.project + .project { padding-top: clamp(40px, 6vw, 80px); border-top: 1px solid var(--line); }
.project:last-child { padding-bottom: 0; }
.shot { display: block; background: #fff; border: 1px solid var(--line); overflow: hidden; aspect-ratio: 16 / 9; }
.shot img { width: 100%; height: 100%; object-fit: cover; object-position: top left; transition: transform .5s ease; }
.shot:hover img { transform: scale(1.02); }
.project h3 { font: 700 clamp(1.6rem, 3vw, 2.2rem)/1.1 var(--ff-display); font-stretch: 85%; letter-spacing: -0.015em; }
.project .when { color: var(--muted); font-size: .95rem; margin: 6px 0 14px; }
.project .stack { color: var(--muted); font-size: .95rem; margin-top: 12px; }
.links { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 18px; }
.links a { font-weight: 600; text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.links a:hover { color: var(--accent-ink); }

/* Parcours */
.rows > li { display: grid; gap: 6px; padding: 22px 0; border-top: 1px solid var(--line); }
.rows > li:first-child { border-top: 0; padding-top: 0; }
.rows .when { color: var(--muted); font-size: .95rem; }
.rows h3 { font: 700 1.3rem/1.2 var(--ff-display); font-stretch: 90%; }
.rows .who { color: var(--muted); }
.rows ul.tasks { margin-top: 10px; display: grid; gap: 4px; }
.rows ul.tasks li { padding-left: 16px; position: relative; max-width: 62ch; }
.rows ul.tasks li::before { content: ""; position: absolute; left: 0; top: .72em; width: 6px; height: 2px; background: var(--accent); }
.sub { font: 700 1.1rem/1 var(--ff-display); margin: 48px 0 20px; }
.sub:first-of-type { margin-top: 0; }

/* Compétences */
.skills { display: grid; gap: 32px; }
.skills h3 { font: 700 1.1rem/1 var(--ff-display); padding-bottom: 12px; border-bottom: 1px solid var(--ink); margin-bottom: 4px; }
.skills li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.skills li span:last-child { color: var(--muted); font-size: .95rem; text-align: right; flex-shrink: 0; }

/* Prestations */
.services > li { display: grid; gap: 4px; padding: 20px 0; border-top: 1px solid var(--line); }
.services > li:first-child { border-top: 0; padding-top: 0; }
.services h3 { font: 700 1.3rem/1.2 var(--ff-display); font-stretch: 90%; }
.services p { color: var(--muted); }

/* À propos */
.about { display: grid; gap: 28px; }
.about img { width: 100%; max-width: 280px; aspect-ratio: 1; object-fit: cover; border: 1px solid var(--line); }
.about p + p { margin-top: 14px; }
.about .prose { max-width: 62ch; }

/* Contact */
.contact { display: grid; gap: 40px; }
.contact .mail {
  display: inline-block; font: 800 clamp(1.5rem, 4.6vw, 3rem)/1.1 var(--ff-display); font-stretch: 80%;
  letter-spacing: -0.02em; overflow-wrap: anywhere;
  text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 4px; text-underline-offset: 6px;
}
.contact dl { margin: 28px 0 0; display: grid; gap: 14px; }
.contact dt { color: var(--muted); font-size: .9rem; }
.contact dd { margin: 0; }
form { display: grid; gap: 16px; }
label { display: grid; gap: 6px; font-weight: 600; font-size: .95rem; }
input, select, textarea {
  width: 100%; font: 400 1rem/1.4 var(--ff-body); color: var(--ink);
  background: #fff; border: 1.5px solid var(--ink); border-radius: 0; padding: 12px 14px;
}
textarea { min-height: 150px; resize: vertical; }
.two { display: grid; gap: 16px; }
.hp { display: none; }
form button { justify-self: start; }
.notice { padding: 14px 16px; border-left: 4px solid var(--accent); background: #fff; display: none; }
.notice.show { display: block; }

/* Pied de page */
footer { border-top: 1px solid var(--ink); padding: 28px 0 40px; color: var(--muted); font-size: .95rem; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; }
footer nav { display: flex; gap: 20px; }

/* ---------- Plus large ---------- */
@media (max-width: 640px) {
  .top nav { gap: 16px; }
  .top nav .opt { display: none; }
}
@media (min-width: 760px) {
  :root { --gutter: 32px; }
  body { font-size: 1.125rem; }
  .hero-foot { grid-template-columns: 1fr auto; align-items: end; gap: 48px; }
  .rows > li { grid-template-columns: 220px 1fr; gap: 32px; }
  .skills { grid-template-columns: repeat(3, 1fr); gap: 40px; }
  .services > li { grid-template-columns: 340px 1fr; gap: 32px; align-items: baseline; }
  .about { grid-template-columns: 280px 1fr; gap: 56px; align-items: start; }
  .contact { grid-template-columns: 1fr 1fr; gap: 72px; }
  .two { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 980px) {
  .project { grid-template-columns: 7fr 4fr; gap: 56px; align-items: start; }
  .project .info { position: sticky; top: 88px; }
}

/* ---------- Mouvement : une seule entrée, à l'ouverture ---------- */
@media (prefers-reduced-motion: no-preference) {
  .hero h1 span { animation: rise .9s cubic-bezier(.2, .7, .2, 1) both; }
  .hero h1 span:nth-child(2) { animation-delay: .12s; }
  .hero .status, .hero-foot { animation: fade .8s .45s ease both; }
  @keyframes rise { from { transform: translateY(40%); opacity: 0; } }
  @keyframes fade { from { opacity: 0; } }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .shot img { transition: none; }
}

/* ---------- Page projet ---------- */
.detail-head { padding: clamp(28px, 5vw, 64px) 0 clamp(32px, 5vw, 56px); }
.back { display: inline-block; margin-bottom: 28px; color: var(--muted); text-underline-offset: 4px; }
.back:hover { color: var(--ink); }
.detail-head h1 {
  font: 800 clamp(2.6rem, 9vw, 7rem)/.95 var(--ff-display); font-stretch: 78%; letter-spacing: -0.01em;
  overflow-wrap: anywhere;
}
.meta { margin: clamp(24px, 4vw, 48px) 0 0; padding-top: 20px; border-top: 1px solid var(--ink); display: grid; gap: 14px; }
.meta dt { color: var(--muted); font-size: .9rem; }
.meta dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.meta a { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.detail-body { display: grid; gap: 40px; }
.detail-body .lead { font-size: clamp(1.1rem, 2vw, 1.35rem); line-height: 1.55; max-width: 60ch; }
.detail-body .sub { margin: 0 0 16px; }
.chips li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.gallery { display: grid; gap: 16px; }
.gallery a { display: block; border: 1px solid var(--line); background: #fff; }
.gallery img { width: 100%; height: auto; }
[hidden] { display: none !important; }
@media (min-width: 760px) {
  .meta { grid-template-columns: repeat(3, 1fr); gap: 32px; }
  .gallery { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 980px) {
  .detail-body { grid-template-columns: 2fr 1fr; gap: 72px; }
}
