/* Mesures relevées sur la maquette Home (export @2x : 1 080 px de large = largeur CSS).
   Version claire uniquement, comme les maquettes : le site ne suit pas le mode sombre du système. */
:root {
  --bg: #f3f4f4;
  --card: #ffffff;
  --text: #111111;
  --muted: #6b6b6f;
  --faint: #737378;
  --line: #ececee;
  --chip: #f1f1f2;
  --accent: #111111;
  --on-accent: #ffffff;
  --ok-bg: #dcfce7;
  --ok: #15803d;
  --plus: #b9b9bd;
  --shadow: 0 1px 2px rgba(0, 0, 0, .03);
  --shadow-soft: 0 2px 10px rgba(0, 0, 0, .08);
  --radius: 16px;
  color-scheme: light;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  padding: 18px 16px 100px;
}
body[data-page="home"] { padding-bottom: 110px; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; border-radius: 6px; }

.page { max-width: 900px; margin: 0 auto; display: grid; gap: 18px; }
.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
}
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
h1 { font-size: clamp(1.5rem, 4vw, 2rem); line-height: 1.2; letter-spacing: -.02em; font-weight: 600; }
h2 { font-size: 22px; font-weight: 500; letter-spacing: -.01em; line-height: 1.3; }
.muted { color: var(--muted); }
/* Titre de page intérieure (maquette Projets : 28px, 600, 14px avant la grille) */
.page-title { font-size: 28px; font-weight: 600; line-height: 1.3; letter-spacing: -.01em; margin: 0 0 14px; }
.small { font-size: .8rem; }
.eyebrow { font-size: 11px; letter-spacing: .04em; text-transform: uppercase; color: var(--faint); }

/* Boutons */
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 500; line-height: 1;
  border: 1px solid var(--line); border-radius: 999px;
  padding: 7px 10px 7px 11px; background: var(--card); transition: background .15s;
}
.pill:hover { background: var(--chip); }
.pill svg { width: 13px; height: 13px; }
.btn {
  display: inline-flex; justify-content: center; align-items: center; gap: 8px;
  background: var(--accent); color: var(--on-accent);
  border: 0; border-radius: 999px; padding: 13px 24px;
  font: inherit; font-weight: 500; cursor: pointer; transition: opacity .15s;
}
.btn:hover { opacity: .85; }
.status {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; font-weight: 500; color: var(--ok); background: var(--ok-bg);
  padding: 4px 9px; border-radius: 999px; line-height: 1.2;
}
.status::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }

/* Réseaux */
.socials { display: flex; gap: 14px; }
.socials a { color: var(--faint); display: grid; place-items: center; padding: 6px; margin: -6px; border-radius: 8px; }
.socials a:hover { color: var(--text); }
.socials svg { width: 19px; height: 19px; }

/* Avatar */
.avatar {
  border-radius: 50%; overflow: hidden; background: var(--chip);
  display: grid; place-items: center; font-weight: 600; color: var(--muted);
}
.avatar img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }

/* Hero (accueil) */
.hero { position: relative; text-align: center; padding: 22px 18px 22px; }
.hero-top { display: flex; justify-content: space-between; align-items: center; }
.hero .avatar { width: 224px; height: 224px; margin: 5px auto 0; font-size: 4rem; }
.hero h1 { font-size: 28px; font-weight: 500; line-height: 1.32; letter-spacing: -.01em; margin-top: 6px; }
.hero p.intro { max-width: 590px; margin: 16px auto 0; color: var(--muted); font-size: 12px; line-height: 1.22; }
.hero-meta { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 38px; flex-wrap: wrap; }
.loc { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; color: var(--faint); }
.loc svg { width: 12px; height: 12px; }

/* Compétences (bandeau) */
.skills { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; margin-top: 22px; font-size: 12.5px; color: var(--muted); }
.skills.spread { justify-content: space-between; flex-wrap: wrap; gap: 8px 12px; padding: 0 12px; }
.skills.spread li { white-space: nowrap; }
.skills li { list-style: none; display: inline-flex; align-items: center; gap: 10px; }
.skills li::before {
  content: ""; width: 10px; height: 10px; flex: none; border-radius: 2px;
  background:
    linear-gradient(var(--card), var(--card)) center / 6px 1.4px no-repeat,
    linear-gradient(var(--card), var(--card)) center / 1.4px 6px no-repeat,
    var(--plus);
}

/* Stack */
.stack-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.tool {
  display: flex; align-items: center; gap: 12px; min-height: 57px;
  border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .03);
}
.tool-logo { flex: none; width: 34px; height: 34px; display: grid; place-items: center; }
.tool-logo img { width: 34px; height: 34px; object-fit: contain; }
.tool-icon {
  flex: none; width: 34px; height: 34px; border-radius: 9px;
  display: grid; place-items: center; color: #fff; font-weight: 700; font-size: .78rem;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14);
}
.tool-icon.round { border-radius: 50%; }
.tool b { font-weight: 500; font-size: 15px; display: block; line-height: 1.3; }
.tool span { display: block; font-size: 11px; line-height: 1.3; color: var(--faint); }
.tool-list { display: grid; gap: 10px; }
.tool-row { display: flex; gap: 17px; border-radius: 8px; padding: 22px 18px 20px; box-shadow: 0 1px 4px rgba(0, 0, 0, .14); }
.tool-row .tool-logo, .tool-row .tool-icon { margin-top: 2px; }
.tool-row b { font-weight: 400; font-size: 14px; display: block; }
.tool-row .tag { display: block; font-size: 11px; color: var(--faint); margin-top: 6px; }
.tool-row p { font-size: 12.5px; line-height: 14px; color: var(--muted); margin-top: 8px; max-width: 740px; }
.page-title.light { font-weight: 400; margin-bottom: 20px; }

/* Parcours */
.journey { text-align: center; padding: 86px 40px 116px; }
.journey h2 { font-size: 26px; font-weight: 600; line-height: 1.27; max-width: 700px; margin: 18px auto 20px; text-wrap: balance; }
.journey p { max-width: 660px; margin: 0 auto; color: var(--muted); font-size: 12px; line-height: 1.22; }

/* Projets */
.project-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.project { border: 1px solid var(--line); border-radius: 10px; padding: 17px 17px 26px; transition: transform .2s, box-shadow .2s; }
.project:hover { transform: translateY(-2px); box-shadow: var(--shadow-soft); }
.cover {
  aspect-ratio: 392 / 247; border-radius: 4px; overflow: hidden;
  display: grid; place-items: center; color: rgba(255, 255, 255, .92);
  font-weight: 700; font-size: 1.4rem; letter-spacing: -.02em; text-align: center; padding: 16px;
}
.cover img { width: 100%; height: 100%; object-fit: cover; }
.cover:has(> img) { padding: 0; background: var(--chip); }
.project .cat { font-size: 13px; color: var(--faint); margin: 18px 0 6px; }
.project h3 { font-size: 14.5px; font-weight: 500; }

/* Blog : cartes d'article et page article */
.post .excerpt { margin-top: 6px; font-size: 13px; line-height: 1.45; color: var(--muted); }
.empty { font-size: 14px; color: var(--muted); padding: 24px 0 8px; }
.post-meta { display: inline-flex; align-items: center; gap: 6px; margin: -6px 0 20px; font-size: 13px; color: var(--faint); }
.post-meta svg { width: 15px; height: 15px; }
.post-page > .cover { aspect-ratio: 864 / 520; border-radius: 8px; margin-bottom: 32px; }
.prose { max-width: 680px; margin: 0 auto 12px; font-size: 15px; line-height: 1.7; color: var(--text); }
.prose > * + * { margin-top: 16px; }
.prose h2 { font-size: 22px; font-weight: 600; line-height: 1.3; margin-top: 32px; }
.prose h3 { font-size: 17px; font-weight: 600; margin-top: 24px; }
.prose ul { padding-left: 22px; }
.prose li + li { margin-top: 6px; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }

/* Détail projet (maquette View Project) */
.case h1 { font-size: 30px; font-weight: 600; line-height: 1.25; letter-spacing: -.01em; margin: 12px 0 18px; }
.case > .cover { aspect-ratio: 864 / 520; border-radius: 8px; font-size: 2rem; }
.back-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.back-row .pill { font-size: 13px; font-weight: 400; padding: 4px 9px; border-color: var(--faint); }
.facts { display: grid; gap: 13px; margin: 50px 0 20px; font-size: 14px; color: var(--muted); }
.facts div { display: flex; align-items: center; gap: 16px; }
.facts div::after { content: ""; order: 1; flex: 1; border-top: 1.5px dotted var(--line); }
.facts dt { display: inline-flex; align-items: center; gap: 6px; order: 0; }
.facts dt svg { width: 15px; height: 15px; }
.facts dd { order: 2; text-align: right; }
.gallery { display: grid; gap: 24px; margin-bottom: 26px; }
.slide { width: 100%; border-radius: 0; background: var(--chip); }
.slide.placeholder { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; padding: 22px 46px; }
.slide.placeholder .cover { font-size: .85rem; font-weight: 500; box-shadow: var(--shadow-soft); }

/* Profil (maquette Profile) */
.profile { padding-bottom: 22px; }
.profile-head { position: relative; display: flex; gap: 18px; align-items: flex-start; }
.profile-head .avatar { width: 150px; height: 150px; border-radius: 10px; font-size: 2.6rem; flex: none; }
.profile-head .who { flex: 1; padding-top: 5px; }
.profile-head .status { font-size: 12px; padding: 4px 10px; }
.profile-head h1 { font-size: 28px; font-weight: 600; line-height: 1.2; margin: 14px 0 6px; }
.profile-head .tagline { font-size: 13px; line-height: 14px; color: var(--muted); max-width: 300px; }
.profile-head .loc { margin-top: 18px; font-size: 12px; }
.profile-head .socials { position: absolute; top: 5px; right: 6px; }
.about { border-top: 1.5px dashed var(--line); margin-top: 22px; padding-top: 22px; display: grid; gap: 15px; font-size: 13px; line-height: 14px; color: var(--muted); }
.profile .skills { margin-top: 18px; }
.skills.plain { font-size: 13px; color: var(--muted); }
.skills.plain.spread { gap: 8px; padding: 0 6px; }
.skills.plain li { gap: 8px; }
.skills.plain li::before { content: "+"; width: auto; height: auto; background: none; color: var(--muted); font-size: 15px; font-weight: 400; }
.section-text { font-size: 13px; line-height: 14px; color: var(--muted); }
.page > section.card > .card-head h2 { font-weight: 600; }
body[data-page="home"] .card-head h2 { font-weight: 500; }
.timeline { display: grid; gap: 14px; list-style: none; padding: 0 2px; }
.timeline li { position: relative; display: flex; gap: 10px; padding: 12px 18px 16px; border-radius: 8px; box-shadow: 0 6px 8px -7px rgba(0, 0, 0, .12); }
.timeline li + li::before { content: ""; position: absolute; left: 25px; top: -14px; height: 14px; border-left: 1.5px dotted var(--line); }
.timeline svg { width: 14px; height: 14px; color: var(--muted); flex: none; margin-top: 4px; }
.timeline b { font-weight: 400; font-size: 15px; color: var(--text); display: block; }
.timeline span { font-size: 11px; color: var(--faint); display: block; margin-top: 6px; }

/* Bloc d'appel / pied de page */
.cta { text-align: center; display: grid; justify-items: center; padding: 18px 18px 22px; }
.cta h2 { font-size: 21px; font-weight: 600; line-height: 1.25; margin-top: 2px; }
.cta .pill { margin-top: 20px; font-size: 13px; padding: 11px 14px 11px 16px; }
.cta .socials { margin-top: 22px; gap: 16px; }
.cta .socials svg { width: 18px; height: 18px; }
.qr { position: relative; width: 117px; height: 117px; margin-top: 18px; }
.qr canvas, .qr img { width: 117px !important; height: 117px !important; }
.footer-meta { font-size: 11px; color: var(--faint); display: grid; gap: 6px; margin-top: 26px; }
.footer-meta b { font-weight: 600; color: var(--muted); }
.form { width: 100%; max-width: 340px; display: grid; gap: 10px; margin-top: 24px; }
.field { display: grid; gap: 4px; text-align: left; }
.field label { font-size: .75rem; color: var(--muted); padding-left: 16px; }
.form input, .form textarea {
  font: inherit; color: var(--text); background: var(--chip);
  border: 1px solid transparent; border-radius: 18px; padding: 12px 18px; width: 100%;
}
.form textarea { min-height: 140px; resize: vertical; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--faint); }
.form-note { font-size: .75rem; color: var(--faint); }
.cta > .pill:first-of-type { margin-top: 16px; }

/* Contact (maquette Contact) */
.contact { min-height: 742px; align-content: start; padding-top: 18px; }
.contact h1 { font-size: 24px; font-weight: 600; line-height: 1.05; letter-spacing: -.01em; }
.contact .pill.email { margin-top: 18px; font-size: 11px; font-weight: 400; padding: 5px 9px; }
.contact .socials { margin-top: 24px; gap: 22px; }
.contact .form { width: 225px; gap: 8px; margin-top: 44px; }
.contact .form input, .contact .form textarea { border: 0; border-radius: 18px; background: var(--chip); padding: 10px 22px; font-size: 13px; height: 37px; }
.contact .form textarea { height: 133px; min-height: 133px; resize: none; }
.contact .form ::placeholder { color: var(--muted); }
.contact .btn { height: 37px; padding: 0 24px; font-size: 15px; }
.contact .qr { margin-top: 28px; }
.contact .footer-meta { gap: 9px; margin-top: 28px; font-size: 11px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* Lien d'évitement : visible seulement au clavier */
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 20; background: var(--accent); color: var(--on-accent); padding: 10px 16px; border-radius: 999px; font-size: 13px; font-weight: 500; }
.skip-link:focus { top: 12px; }
#app:focus { outline: none; }
.form-status { min-height: 1.2em; font-size: 12px; color: var(--ok); text-align: center; }

/* Navigation : boutons ronds séparés */
.dock {
  position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 10;
  display: flex; gap: 10px;
}
.hero .dock { position: absolute; bottom: 0; transform: translate(-50%, 50%); }
.dock a {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  color: var(--muted); background: var(--card); box-shadow: var(--shadow-soft);
  transition: background .15s, color .15s;
}
.dock a:hover { color: var(--text); }
.dock a[aria-current="page"] { background: var(--chip); color: var(--text); box-shadow: none; }
.dock svg { width: 16px; height: 16px; }
.page > .card:nth-child(2) { position: relative; z-index: 0; }
.hero { z-index: 1; }

@media (max-width: 760px) {
  .stack-grid { grid-template-columns: repeat(2, 1fr); }
  .project-grid, .gallery { grid-template-columns: 1fr; }
  .skills.spread { justify-content: center; flex-wrap: wrap; gap: 8px 20px; }
  .slide.placeholder { grid-template-columns: 1fr; padding: 16px; gap: 16px; }
  .facts div::after { display: none; }
  .facts div { justify-content: space-between; }
  .journey { padding: 56px 20px 64px; }
}
@media (max-width: 480px) {
  .stack-grid { grid-template-columns: 1fr; }
  .profile-head { flex-direction: column; }
  .hero .avatar { width: 180px; height: 180px; }
  .hero h1 { font-size: 23px; }
  .hero-meta { justify-content: center; }
  .journey h2 { font-size: 21px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
