/* Identité visuelle commune : couleurs, typographie et composants réutilisables. */
:root {
  color-scheme: light dark;
  --bg: #f6f5f0;
  --surface: #fffefa;
  --text: #202b25;
  --muted: #526056;
  --line: #d7dcd3;
  --accent: #315f48;
  --accent-bg: #e4ebe1;
  --formation: #80522d;
  --formation-bg: #f1e7d8;
  --web: #385e70;
  --web-bg: #e4edf0;
  --button-text: #fff;
  --radius: 16px;
  --max-width: 1152px;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #171d1a; --surface: #202923; --text: #edf2e9; --muted: #b6c4b8;
    --line: #3e4c42; --accent: #a7d0ac; --accent-bg: #293d31;
    --formation: #e4bb8e; --formation-bg: #413326; --web: #a4cbdc; --web-bg: #293d48;
    --button-text: #18251c;
  }
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); }
a { color: inherit; text-underline-offset: .25em; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; border-radius: 3px; }
.skip-link { position: absolute; left: 1rem; top: 1rem; transform: translateY(-200%); padding: .6rem 1rem; background: var(--surface); z-index: 5; }
.skip-link:focus { transform: none; }
.shell { max-width: var(--max-width); width: calc(100% - 64px); margin-inline: auto; }
.site-header { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.55rem 0; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; gap: .75rem; align-items: center; text-decoration: none; font-weight: 650; }
.monogram { display: grid; place-content: center; grid-auto-flow: column; width: 43px; height: 43px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); font-size: 1.25rem; letter-spacing: -.09em; }
.monogram span { color: var(--accent); }
.site-header nav { display: flex; flex-wrap: wrap; gap: .65rem 1.6rem; font-size: .9rem; color: var(--muted); }
.site-header nav a { text-decoration: none; }
.site-header nav a:hover { text-decoration: underline; }
.hero { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, .85fr); gap: clamp(2rem, 6vw, 6rem); align-items: center; padding: clamp(3rem, 7vw, 6.25rem) 0; }
.eyebrow { margin: 0 0 .85rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 700; font-size: .72rem; color: var(--accent); }
.dot { width: .55rem; height: .55rem; display: inline-block; border-radius: 50%; background: currentColor; margin-right: .4rem; vertical-align: .04em; }
h1,h2,h3,p { overflow-wrap: break-word; }
h1,h2,h3 { line-height: 1.14; margin: 0; }
h1 { font-family: Georgia, "Times New Roman", serif; font-weight: 400; letter-spacing: -.05em; font-size: clamp(2.85rem, 6.2vw, 5.4rem); line-height: 1.02; }
h1 em { color: var(--accent); font-weight: inherit; }
.intro { font-size: clamp(1.05rem, 1.6vw, 1.25rem); max-width: 37rem; margin: 1.65rem 0 .7rem; font-weight: 550; }
.hero-description { margin: 0 0 1.5rem; max-width: 34rem; color: var(--muted); }
.hero-link { font-weight: 650; color: var(--accent); display: inline-flex; gap: .7rem; align-items: center; min-height: 44px; }
.hero-art { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 1.3rem; min-width: 0; aspect-ratio: 1 / 1.08; border: 1px solid var(--line); border-radius: var(--radius); background: var(--accent-bg); color: var(--accent); }
.hero-art svg { width: 100%; max-width: 360px; height: auto; }
.art-caption { font-size: .78rem; letter-spacing: .02em; text-align: center; }
.projects { padding: 2rem 0 3.75rem; border-top: 1px solid var(--line); scroll-margin-top: 1rem; }
.section-heading { display: grid; grid-template-columns: 1.5fr 1fr; gap: 1.5rem; align-items: end; margin-bottom: 1.6rem; }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); font-weight: 650; letter-spacing: -.04em; }
.section-heading p:not(.eyebrow) { color: var(--muted); margin: 0; max-width: 30rem; }
.project-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1rem; }
.project { display: flex; flex-direction: column; border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius); padding: clamp(1.2rem, 2.3vw, 1.8rem); --project-accent: var(--accent); --project-bg: var(--accent-bg); }
.project.web { --project-accent: var(--web); --project-bg: var(--web-bg); }
.project.formation { --project-accent: var(--formation); --project-bg: var(--formation-bg); }
.project-top { display: flex; justify-content: space-between; align-items: center; gap: .6rem; margin-bottom: 1.6rem; }
.project-icon { display: grid; place-items: center; width: 48px; height: 48px; background: var(--project-bg); color: var(--project-accent); border-radius: 12px; flex-shrink: 0; }
.project-icon svg { width: 27px; height: 27px; }
.number { text-transform: uppercase; letter-spacing: .075em; font-size: .65rem; font-weight: 700; color: var(--muted); }
h3 { font-size: clamp(1.24rem, 2vw, 1.45rem); letter-spacing: -.025em; font-weight: 670; }
.project p { font-size: .94rem; color: var(--muted); margin: .85rem 0 1.4rem; }
.project .project-link { margin: auto 0 0; display: flex; align-items: center; justify-content: space-between; gap: .45rem; color: var(--project-accent); font-weight: 650; font-size: .89rem; min-height: 44px; padding-top: .75rem; border-top: 1px solid var(--line); }
.contact { border: 1px solid var(--line); border-radius: var(--radius); background: var(--accent-bg); padding: clamp(1.4rem, 4vw, 2.5rem); display: flex; gap: 1.5rem; align-items: center; justify-content: space-between; }
.contact p:not(.eyebrow) { color: var(--muted); margin: .7rem 0 0; max-width: 38rem; }
.button { background: var(--accent); color: var(--button-text); font-size: .9rem; font-weight: 650; display: inline-flex; align-items: center; justify-content: center; gap: .7rem; text-decoration: none; padding: .8rem 1.1rem; min-height: 44px; border-radius: 8px; flex-shrink: 0; }
.button:hover { text-decoration: underline; }
.site-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1.5rem; font-size: .78rem; color: var(--muted); padding: 1.5rem 0 2rem; margin-top: 2.25rem; border-top: 1px solid var(--line); }
@media (max-width: 850px) {
  .hero { gap: 2rem; grid-template-columns: 1.3fr .8fr; }
  .project-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .project:last-child { grid-column: 1 / -1; }
  .contact { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 620px) {
  .shell { width: calc(100% - 36px); }
  .site-header { padding: 1rem 0; flex-wrap: wrap; }
  .site-header nav { gap: .65rem 1rem; }
  .site-header nav a { padding-block: .5rem; }
  .hero { grid-template-columns: 1fr; padding: 3rem 0; }
  .hero-art { max-width: 340px; width: 100%; aspect-ratio: 1.2; margin-inline: auto; padding: .6rem; }
  .hero-art svg { max-width: 245px; }
  .section-heading, .project-grid { grid-template-columns: 1fr; gap: 1rem; }
  .project:last-child { grid-column: auto; }
  .projects { padding-bottom: 2rem; }
  .site-footer { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
