@charset "utf-8";
/* Layout: page éditoriale à colonne unique, nom en très grand corps, sections séparées par un filet et une étiquette mono. */
:root {
  --bg: #EEEEEE;
  --surface: #FFFFFF;
  --ink: #111111;
  --muted: #6B6B6B;
  --line: #D5D5D5;
  --accent: #111111;
  --accent-ink: #F4F4F4;
  --tint: #DEDEDE;
  --hero-bg: #E1E1E1;
  --bar: var(--bg); --bar-h: 81px;
  --ok: #1F9D55;
  --r: 22px; --r-lg: 30px;
  --f-display: "Archivo", "Arial Narrow", Arial, sans-serif;
  --f-body: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "DM Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --gutter: 16px;
  --maxw: 1240px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0E0E0E; --surface: #181818; --ink: #EDEDED; --muted: #8E8E8E; --line: #2B2B2B; --accent: #EDEDED; --accent-ink: #0E0E0E; --tint: #242424; --hero-bg: #1A1A1A; --ok: #3BD47C; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0E0E0E; --surface: #181818; --ink: #EDEDED; --muted: #8E8E8E; --line: #2B2B2B; --accent: #EDEDED; --accent-ink: #0E0E0E; --tint: #242424; --hero-bg: #1A1A1A; --ok: #3BD47C; color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--f-body); font-size: 17px; line-height: 1.55;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px);
  z-index: 40; background: var(--bg);
}
a { color: inherit; }
.wrap { max-width: var(--maxw); margin: 0 auto; }
.mono { font-family: var(--f-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* Header */
/* Transparente au-dessus du hero, blanche (ou noire en thème sombre) dès qu'on fait défiler */
.top {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30;
  margin-inline: calc(-1 * max(var(--gutter), env(safe-area-inset-left, 0px))) calc(-1 * max(var(--gutter), env(safe-area-inset-right, 0px)));
  padding-inline: max(var(--gutter), env(safe-area-inset-left, 0px)) max(var(--gutter), env(safe-area-inset-right, 0px));
  margin-bottom: calc(-1 * var(--bar-h));
  background: transparent; border-bottom: 1px solid transparent;
  transition: background-color .35s ease, border-color .35s ease, box-shadow .35s ease;
}
.top.is-solid { background: var(--bar); } /* même gris que le site, sans filet */
@media (prefers-reduced-motion: reduce) { .top { transition: none; } }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 80px; }
.mark { display: inline-flex; align-items: center; text-decoration: none; color: var(--ink); }
/* Logo hE : masque PNG, il prend la couleur du texte (noir en clair, blanc en sombre) */
.logo { display: block; width: 44px; aspect-ratio: 410 / 316; background: currentColor; -webkit-mask: url(../assets/logos/logo.png) center / contain no-repeat; mask: url(../assets/logos/logo.png) center / contain no-repeat; }
.foot-id { display: inline-flex; align-items: center; gap: 12px; }
.foot-id .logo { width: 30px; color: var(--ink); }
.nav { display: flex; gap: 28px; margin-left: 24px; margin-right: auto; } /* menu collé au logo, à gauche */
.nav a { text-decoration: none; font-size: 14px; color: var(--muted); }
.nav a:hover { color: var(--ink); }
.top-actions { display: flex; align-items: center; gap: 10px; }
.theme {
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line);
  background: transparent; color: var(--ink); cursor: pointer; display: grid; place-items: center;
}
.theme svg { width: 16px; height: 16px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none; cursor: pointer;
  font: 500 15px/1 var(--f-body); padding: 15px 22px; border-radius: 999px; border: 1px solid var(--ink);
  background: var(--ink); color: var(--bg); transition: transform .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.sm { padding: 11px 16px; font-size: 14px; }
.btn.on-accent { background: var(--accent-ink); color: var(--accent); border-color: var(--accent-ink); }

/* Hero plein écran, inspiré du modèle : fond gris du site, visage en gros plan au centre, nom en très grand derrière */
.hero {
  --h-pad: max(var(--gutter), env(safe-area-inset-left, 0px));
  position: relative; overflow: hidden; background: var(--hero-bg); color: var(--ink);
  margin-inline: calc(-1 * max(var(--gutter), env(safe-area-inset-left, 0px))) calc(-1 * max(var(--gutter), env(safe-area-inset-right, 0px)));
  height: calc(100svh - env(safe-area-inset-top, 0px)); min-height: 620px;
}
.hero-meta, .hero-foot { position: absolute; z-index: 4; left: 0; right: 0; padding-inline: var(--h-pad); display: flex; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; }
.hero-meta { top: calc(var(--bar-h) + clamp(20px, 4vh, 36px)); color: var(--muted); }
.hero-foot { bottom: clamp(20px, 4vh, 36px); align-items: flex-end; }
.avail { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); }
.avail i { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); display: inline-block; animation: blink 1.6s ease-in-out infinite; }
.avail i::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--ok); animation: ping 1.6s cubic-bezier(0,0,.2,1) infinite; }
@keyframes blink { 50% { opacity: .45; } }
@keyframes ping { 0% { transform: scale(1); opacity: .55; } 80%, 100% { transform: scale(2.8); opacity: 0; } }
.name {
  position: absolute; z-index: 1; left: 0; right: 0; top: calc(var(--bar-h) + 9%); margin: 0; text-align: center; white-space: nowrap;
  font-family: var(--f-display); font-stretch: 100%; font-weight: 300; font-size: 15.2vw; line-height: .8; letter-spacing: -.05em;
}
.name span { display: inline-block; }
.name .alt { color: var(--muted); }
.portrait { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; height: 80%; margin: 0; display: flex; justify-content: center; align-items: flex-end; pointer-events: none; }
.portrait img { display: block; height: 100%; width: auto; max-width: none; filter: grayscale(1) contrast(1.05); }
.hero-role { margin: 0; max-width: 15em; font-family: var(--f-display); font-weight: 400; font-size: clamp(1.1rem, 1.7vw, 1.6rem); line-height: 1.15; letter-spacing: -.02em; }
.hero-scroll { color: var(--muted); text-decoration: none; display: inline-flex; gap: 8px; }
.hero-scroll:hover { color: var(--ink); }
.hero-scroll span { display: inline-block; animation: nudge 1.8s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateY(4px); } }
/* Fondu en bas du hero : le gris du hero rejoint celui du site */
.hero::before { content: ""; position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; height: 22%; background: linear-gradient(to bottom, transparent, var(--bg)); pointer-events: none; }
/* Rond discret qui suit le curseur, seulement dans le hero et à la souris */
.cursor { position: absolute; z-index: 5; top: 0; left: 0; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; border: 1px solid var(--ink); opacity: 0; pointer-events: none; transition: opacity .3s ease, width .3s ease, height .3s ease, margin .3s ease, background .3s ease; }
.hero.is-hover .cursor { opacity: .5; }
.hero.is-link .cursor { width: 72px; height: 72px; margin: -36px 0 0 -36px; background: var(--ink); opacity: .08; }
@media (min-width: 901px) {
  /* Étiquette verticale à gauche, comme « Product designer » dans le modèle */
  .hero-meta > span:first-child { position: absolute; left: var(--h-pad); top: calc(100svh - var(--bar-h) - 150px); transform: rotate(-90deg); transform-origin: 0 0; white-space: nowrap; }
  .hero-meta { justify-content: flex-end; }
}
@media (min-width: 1240px) { .hero-meta, .hero-foot { padding-inline: calc((100% - var(--maxw)) / 2); } .hero-meta > span:first-child { left: calc((100% - var(--maxw)) / 2); } }
@media (max-width: 900px) {
  /* Le bas du portrait s'arrête sur un filet, le texte passe dessous */
  .hero { height: auto; min-height: 0; padding-bottom: 76px; }
  .hero::after { content: ""; display: block; height: calc(var(--bar-h) + min(150vw, 76svh)); }
  .portrait { bottom: 76px; height: min(96vw, 52svh); }
  .hero::before { height: calc(76px + 22%); background: linear-gradient(to bottom, transparent, var(--bg) calc(100% - 76px)); }
  .name { top: calc(var(--bar-h) + 92px); font-size: 24vw; line-height: .84; white-space: normal; }
  .name span { display: block; }
  .hero-meta { top: calc(var(--bar-h) + 20px); flex-direction: column; gap: 6px; font-size: 11px; }
  .hero-foot { bottom: 22px; align-items: center; }
  .cursor { display: none; }
}

/* Bande d'informations sous le hero */
.intro { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 56px; align-items: end; padding-block: 72px; }
.lead { font-size: clamp(1.25rem, 2.2vw, 1.75rem); line-height: 1.3; max-width: 28em; margin: 0; letter-spacing: -.01em; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
.reach { margin: 18px 0 0; color: var(--muted); user-select: all; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.stat { padding: 18px 16px 0 0; }
.stat + .stat { padding-left: 16px; border-left: 1px solid var(--line); }
.stat b { display: block; font-family: var(--f-display); font-stretch: 100%; font-weight: 400; font-size: clamp(1.9rem, 3.4vw, 2.8rem); letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.stat span { display: block; margin-top: 8px; font-size: 13px; line-height: 1.35; color: var(--muted); }
@media (max-width: 900px) { .intro { grid-template-columns: minmax(0, 1fr); gap: 36px; padding-block: 48px 56px; } }
@media (max-width: 520px) { .stats { grid-template-columns: minmax(0, 1fr); } .stat, .stat + .stat { padding: 16px 0; border-left: 0; border-bottom: 1px solid var(--line); } }

/* Sections */
.sec { padding-block: 72px; }
.sec-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 32px; align-items: end; margin-bottom: 48px; }
.sec-head .mono { color: var(--muted); display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.sec-head .mono::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
h2 { font-family: var(--f-display); font-stretch: 100%; font-weight: 400; font-size: clamp(2.2rem, 5.4vw, 4.4rem); letter-spacing: -.035em; line-height: .96; margin: 0; text-wrap: balance; }
.sec-head p { margin: 0; color: var(--muted); max-width: 34em; justify-self: end; }

/* About */
.about { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 56px; }
.about p { margin: 0 0 1.1em; max-width: 36em; }
.about p.big { font-size: clamp(1.3rem, 2.4vw, 1.9rem); line-height: 1.28; letter-spacing: -.015em; }
.facts { display: grid; gap: 0; align-content: start; }
.fact { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.fact:first-child { border-top: 1px solid var(--line); }
.fact dt { color: var(--muted); padding-top: 3px; }
.fact dd { margin: 0; }
.facts-dl { margin: 0; }

/* Projects */
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
.card { grid-column: span 4; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; min-height: 360px; padding: 26px; background: var(--surface); }
.card.wide { grid-column: span 7; }
.card.mid { grid-column: span 5; }
.card.olive { background: var(--tint); color: var(--ink); }
.card.ink { background: var(--ink); color: var(--bg); }
.card .tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tag { font-family: var(--f-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; border: 1px solid currentColor; opacity: .8; }
.card .fig { font-family: var(--f-display); font-stretch: 100%; font-weight: 300; font-size: clamp(3rem, 6.4vw, 5.4rem); letter-spacing: -.045em; line-height: .9; font-variant-numeric: tabular-nums; }
.card .fig small { display: block; margin-top: 10px; font-family: var(--f-body); font-stretch: 100%; font-weight: 500; font-size: 14px; letter-spacing: 0; line-height: 1.3; opacity: .75; }
.card h3 { font-family: var(--f-display); font-stretch: 100%; font-weight: 500; font-size: 1.45rem; letter-spacing: -.02em; line-height: 1.1; margin: 0 0 8px; }
.card p { margin: 0; font-size: 15px; line-height: 1.5; opacity: .85; max-width: 34em; }

/* Services */
.svc { border-top: 1px solid var(--line); }
.svc details { border-bottom: 1px solid var(--line); }
.svc summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 26px 0; font-family: var(--f-display); font-stretch: 100%; font-weight: 400; font-size: clamp(1.5rem, 3.2vw, 2.4rem); letter-spacing: -.03em; line-height: 1.05; }
.svc summary::-webkit-details-marker { display: none; }
.svc .plus { flex: none; width: 40px; height: 40px; border: 1px solid var(--line); display: grid; place-items: center; transition: background .15s, color .15s; }
.svc .plus svg { width: 14px; height: 14px; transition: transform .2s ease; }
.svc details[open] .plus { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.svc details[open] .plus svg { transform: rotate(45deg); }
.svc .body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 32px; padding: 0 0 32px; }
.svc .body p { margin: 0; color: var(--muted); max-width: 30em; }
.svc ul { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.svc li { font-size: 14px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; }
.local { margin-top: 28px; display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 22px 26px; background: var(--surface); }
.local p { margin: 0; max-width: 40em; }
.local b { font-weight: 600; }

/* Experience */
.row { display: grid; grid-template-columns: 180px minmax(0, 1fr) minmax(0, 1.4fr); gap: 32px; padding: 28px 0; border-top: 1px solid var(--line); }
.row:last-of-type { border-bottom: 1px solid var(--line); }
.row .when { color: var(--muted); padding-top: 4px; }
.row h3 { font-family: var(--f-display); font-stretch: 100%; font-weight: 500; font-size: 1.35rem; letter-spacing: -.02em; line-height: 1.15; margin: 0 0 4px; }
.row .org { color: var(--muted); font-size: 15px; }
.row ul { margin: 0; padding: 0 0 0 1.1em; display: grid; gap: 8px; font-size: 15.5px; }
.row li::marker { color: var(--accent); }
.edu { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 56px; margin-top: 56px; }
.edu h3, .certs h3 { grid-column: 1 / -1; font-family: var(--f-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; font-weight: 500; color: var(--muted); margin: 0 0 14px; }
.edu .item { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.edu .item small { display: block; color: var(--muted); font-size: 14px; }
.edu .item time { color: var(--muted); font-family: var(--f-mono); font-size: 12px; padding-top: 4px; white-space: nowrap; }
.certs { margin-top: 48px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font-size: 14px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; }
.chip em { font-style: normal; color: var(--muted); font-family: var(--f-mono); font-size: 11px; margin-left: 6px; }

/* CTA band */
.band { background: var(--accent); color: var(--accent-ink); padding: clamp(36px, 6vw, 72px); margin-block: 0 72px; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 32px; align-items: end; }
.band h2 { font-size: clamp(2.2rem, 5vw, 4rem); }
.band p { margin: 0 0 20px; opacity: .85; max-width: 26em; }

/* Contact */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 56px; }
.direct { display: grid; gap: 0; align-content: start; }
.direct .line { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
.direct .line:last-child { border-bottom: 1px solid var(--line); }
.direct .k { color: var(--muted); width: 100px; }
.direct .v { flex: 1; min-width: 0; overflow-wrap: anywhere; user-select: all; }
.copy { font: 500 13px var(--f-body); background: transparent; color: var(--ink); border: 1px solid var(--line); padding: 7px 12px; border-radius: 999px; cursor: pointer; }
.copy:hover { border-color: var(--ink); }
form { display: grid; gap: 18px; }
.f2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
label { display: grid; gap: 8px; }
label span { color: var(--muted); }
input, select, textarea {
  font: 400 16px var(--f-body); color: var(--ink); background: transparent; width: 100%;
  border: 0; border-bottom: 1px solid var(--ink); border-radius: 0; padding: 10px 0; min-width: 0;
}
textarea { min-height: 130px; resize: vertical; border: 1px solid var(--ink); padding: 12px; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: calc(100% - 14px) 55%, calc(100% - 9px) 55%; background-size: 5px 5px; background-repeat: no-repeat; }
select option { background: var(--bg); color: var(--ink); }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.err { color: #B3412F; font-size: 14px; min-height: 1.2em; margin: 0; }
:root[data-theme="dark"] .err { color: #E58A78; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .err { color: #E58A78; } }
.sent { padding: 22px; background: var(--surface); display: grid; gap: 14px; }
.sent p { margin: 0; }
.sent pre { margin: 0; white-space: pre-wrap; font: 14px/1.5 var(--f-body); padding: 14px; border: 1px solid var(--line); overflow-wrap: anywhere; }

/* Footer */
.foot { padding-block: 28px 0; overflow: hidden; }
.foot-row { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--muted); }
.foot-row a { text-decoration: none; }
.foot-row a:hover { color: var(--ink); }
.foot-big { font-family: var(--f-display); font-stretch: 100%; font-weight: 300; font-size: 19.5vw; letter-spacing: -.05em; line-height: .7; margin: 36px 0 0; white-space: nowrap; } /* .7 : le bas des lettres touche le bas de la page (métriques d'Archivo) */
@media (min-width: 1280px) { .foot-big { font-size: 15.5rem; } }

/* Responsive */
@media (max-width: 900px) {
  .nav { display: none; }
  .about, .contact, .sec-head, .band, .svc .body { grid-template-columns: minmax(0, 1fr); }
  .sec-head p { justify-self: start; }
  .grid .card, .grid .card.wide, .grid .card.mid { grid-column: span 12; min-height: 300px; }
  .row { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .edu { grid-template-columns: minmax(0, 1fr); }
  .sec { padding-block: 56px; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .f2 { grid-template-columns: minmax(0, 1fr); }
  .fact { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .top .btn { display: none; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn, .svc .plus svg { transition: none; } }

/* Gris, coins arrondis */
.card, .band, .local, .sent, .step, .res { border-radius: 14px; }
.more { display: inline-block; margin-top: 16px; text-underline-offset: 4px; }
.lbl { font-family: var(--f-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; font-weight: 500; color: var(--muted); margin: 0 0 20px; display: flex; align-items: center; gap: 8px; }
.lbl::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.meta4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0 0 56px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.meta4 div { padding: 18px 16px 18px 0; }
.meta4 div + div { padding-left: 16px; border-left: 1px solid var(--line); }
.meta4 dt { color: var(--muted); }
.meta4 dd { margin: 8px 0 0; font-size: 15px; line-height: 1.4; }
.cs { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 56px; }
.cs p { margin: 0 0 1em; max-width: 36em; }
.cs .big { font-size: clamp(1.3rem, 2.4vw, 1.9rem); line-height: 1.28; letter-spacing: -.015em; font-family: var(--f-body); font-weight: 400; white-space: normal; transform: none; margin: 0; }
.cs-block { margin-top: 64px; }
.flow { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.step { background: var(--surface); padding: 22px; min-height: 230px; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; }
.step .mono { color: var(--muted); }
.step b { display: block; font-family: var(--f-display); font-weight: 500; font-size: 1.2rem; letter-spacing: -.02em; line-height: 1.15; margin-bottom: 8px; }
.step p { margin: 0; font-size: 14.5px; line-height: 1.45; color: var(--muted); }
.choice { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 32px; padding: 22px 0; border-top: 1px solid var(--line); }
.choice:last-child { border-bottom: 1px solid var(--line); }
.choice b { font-family: var(--f-display); font-weight: 500; font-size: 1.2rem; letter-spacing: -.02em; }
.choice p { margin: 0; color: var(--muted); max-width: 38em; }
.results { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.res { background: var(--ink); color: var(--bg); padding: 26px; min-height: 210px; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; }
.res .fig { font-family: var(--f-display); font-weight: 300; font-size: clamp(2.8rem, 6vw, 4.8rem); letter-spacing: -.045em; line-height: .9; }
.res p { margin: 0; font-size: 14.5px; opacity: .75; }
.auto { display: flex; flex-wrap: wrap; gap: 8px; }
.cs-cta { margin-top: 56px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding-top: 28px; border-top: 1px solid var(--line); }
.cs-cta p { margin: 0; font-family: var(--f-display); font-size: clamp(1.4rem, 2.6vw, 2rem); letter-spacing: -.02em; }
@media (max-width: 900px) {
  .meta4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .meta4 div:nth-child(3) { padding-left: 0; border-left: 0; }
  .meta4 div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .cs, .choice, .results { grid-template-columns: minmax(0, 1fr); }
  .choice { gap: 8px; }
}

.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.tab { font: 500 14px var(--f-body); padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--ink); cursor: pointer; }
.tab:hover { border-color: var(--ink); }
.tab[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.card .fig { font-size: clamp(2.2rem, 3.8vw, 3.2rem); }
.card { min-height: 320px; }

.projs { border-top: 1px solid var(--ink); }
.proj { border-bottom: 1px solid var(--line); }
.proj summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) 40px; gap: 24px; align-items: center; padding: 24px 0; }
.proj summary::-webkit-details-marker { display: none; }
.p-title { font-family: var(--f-display); font-weight: 400; font-size: clamp(1.4rem, 2.8vw, 2.1rem); letter-spacing: -.025em; line-height: 1.1; }
.p-tags { color: var(--muted); }
.proj .plus { width: 40px; height: 40px; border: 1px solid var(--line); display: grid; place-items: center; border-radius: 50%; transition: background .15s, color .15s; }
.proj .plus svg { width: 14px; height: 14px; transition: transform .2s ease; }
.proj[open] .plus { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.proj[open] .plus svg { transform: rotate(45deg); }
.proj summary:hover .p-title { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
.p-body { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 24px; padding: 0 64px 30px 0; }
.p-body p { margin: 0; color: var(--muted); max-width: 40em; }
.p-fig b { display: block; font-family: var(--f-display); font-weight: 300; font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -.04em; line-height: 1; }
.p-fig span { display: block; margin-top: 8px; font-size: 14px; color: var(--muted); }
.more-wrap { margin-top: 28px; display: flex; justify-content: center; }
#more-parcours { margin-top: 0; }
#more-parcours > div > .row:first-child { border-top: 0; }
@media (max-width: 700px) {
  .proj summary { grid-template-columns: minmax(0, 1fr) 40px; gap: 6px 16px; }
  .proj .plus { grid-column: 2; grid-row: 1 / span 2; }
  .p-body { grid-template-columns: minmax(0, 1fr); padding-right: 0; }
}

/* Assistant */
.btn.on-accent-ghost { background: transparent; color: var(--accent-ink); border-color: var(--accent-ink); }
.bot-launch { position: fixed; z-index: 50; right: calc(16px + env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); display: inline-flex; align-items: center; gap: 10px; font: 500 14px/1 var(--f-body); padding: 14px 18px; border-radius: 999px; border: 1px solid var(--ink); background: var(--ink); color: var(--bg); cursor: pointer; box-shadow: 0 6px 24px rgba(0,0,0,.18); }
.bot-launch i { width: 8px; height: 8px; border-radius: 50%; background: var(--bg); display: inline-block; }
.chat-panel { position: fixed; z-index: 55; right: calc(16px + env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); width: min(390px, calc(100vw - 32px)); height: min(600px, 70vh); height: min(600px, calc(100dvh - 120px - env(safe-area-inset-bottom, 0px) - env(safe-area-inset-top, 0px))); display: flex; flex-direction: column; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 18px 60px rgba(0,0,0,.22); overflow: hidden; }
.bot-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 16px; border-bottom: 1px solid var(--line); }
.bot-head b { display: block; font-family: var(--f-display); font-weight: 500; font-size: 1.1rem; letter-spacing: -.02em; }
.bot-head span { display: block; margin-top: 2px; font-size: 13px; color: var(--muted); }
.bot-x { flex: none; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: var(--ink); cursor: pointer; font-size: 13px; }
.bot-log { flex: 1; min-height: 0; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.msg { max-width: 90%; padding: 11px 14px; border-radius: 14px; font-size: 15px; line-height: 1.45; overflow-wrap: anywhere; }
.msg.bot { background: var(--tint); align-self: flex-start; border-bottom-left-radius: 4px; }
.msg.me { background: var(--ink); color: var(--bg); align-self: flex-end; border-bottom-right-radius: 4px; }
.acts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.acts.sugg { margin-top: 0; }
.act { font: 500 13px/1.2 var(--f-body); padding: 8px 12px; border-radius: 999px; border: 1px solid var(--ink); background: transparent; color: var(--ink); cursor: pointer; text-decoration: none; text-align: left; }
.act.alt { border-color: var(--line); }
.act:hover { border-color: var(--ink); }
.bot-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); }
.bot-form input { flex: 1; min-width: 0; font: 400 16px var(--f-body); color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: 11px 16px; }
.bot-send { flex: none; border-radius: 999px; border: 1px solid var(--ink); background: var(--ink); color: var(--bg); padding: 0 16px; font: 500 14px var(--f-body); cursor: pointer; }

.sw { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; }
.swc { background: var(--surface); border-radius: 14px; padding: 14px; display: grid; gap: 14px; }
.swc .bars { display: grid; grid-template-columns: 2fr 1fr; height: 84px; border-radius: 8px; overflow: hidden; }
.swc .bars i { display: block; }
.swc b { display: block; font-family: var(--f-display); font-weight: 500; font-size: 1.1rem; letter-spacing: -.02em; }
.swc span { display: block; margin-top: 2px; color: var(--muted); font-size: 12.5px; font-family: var(--f-mono); }

[hidden] { display: none !important; }
@media (max-width: 700px) { .step { min-height: 0; gap: 12px; } }

/* Animations sobres */
.prog { position: fixed; top: 0; left: 0; height: 2px; width: 100%; background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); z-index: 60; pointer-events: none; }
/* Entrée du hero : masqué avant le premier rendu uniquement quand GSAP va l'animer (classe posée dans <head>) */
.anim .hero .name span, .anim .hero-meta, .anim .hero-foot, .anim .portrait img { opacity: 0; }
/* Lenis */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
.proj summary .p-title { transition: transform .25s ease; }
.proj summary:hover .p-title { transform: translateX(8px); }
.proj summary .p-tags { transition: color .25s ease; }
.proj summary:hover .p-tags { color: var(--ink); }
.proj summary:hover .plus { border-color: var(--ink); }
.proj:not([open]) summary:hover .plus svg { transform: rotate(90deg); }
.btn span[aria-hidden] { display: inline-block; transition: transform .2s ease; }
.btn:hover span[aria-hidden] { transform: translate(2px,-2px); }
@keyframes caseIn { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* Créations */
.gal-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; }
.gal-tabs button { font: inherit; font-size: 14px; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--ink); cursor: pointer; transition: background .15s, color .15s; }
.gal-tabs button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.gal { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.tile { position: relative; aspect-ratio: 4/3; border-radius: 14px; overflow: hidden; border: 0; padding: 0; cursor: pointer; text-align: left; color: var(--t-fg, #fff); background: var(--t-bg, #333); display: flex; flex-direction: column; justify-content: space-between; padding: 22px; transition: transform .35s cubic-bezier(.2,.7,.2,1); font-family: var(--t-font, var(--f-body)); }
.tile:hover { transform: translateY(-4px); }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tile .t-type { font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; opacity: .75; position: relative; }
.tile .t-name { font-size: clamp(22px, 2.6vw, 32px); font-weight: 500; line-height: 1.05; position: relative; }
.tile .t-bar { display: block; width: 36px; height: 3px; background: var(--t-ac, currentColor); margin-bottom: 12px; }
.tile[hidden] { display: none !important; }
.gal-note { margin-top: 20px; color: var(--muted); font-size: 14px; }
.lb { position: fixed; inset: 0; z-index: 90; background: rgba(10,10,10,.78); display: grid; place-items: center; padding: 24px; animation: caseIn .25s ease; }
.lb[hidden] { display: none !important; }
.lb-box { width: min(920px, 100%); }
.lb-view { aspect-ratio: 16/10; border-radius: 14px; overflow: hidden; position: relative; display: flex; flex-direction: column; justify-content: space-between; padding: clamp(20px, 4vw, 44px); color: var(--t-fg, #fff); background: var(--t-bg, #333); font-family: var(--t-font, var(--f-body)); }
.lb-view img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.lb-view .t-name { font-size: clamp(28px, 6vw, 64px); font-weight: 500; line-height: 1; position: relative; }
.lb-view .t-type { font-family: var(--f-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; opacity: .75; position: relative; }
.lb-view .t-bar { display: block; width: 56px; height: 4px; background: var(--t-ac, currentColor); margin-bottom: 16px; }
.lb-cap { color: #EDEDED; margin-top: 16px; display: flex; justify-content: space-between; gap: 16px; align-items: center; flex-wrap: wrap; }
.lb-cap p { margin: 0; max-width: 40em; }
.lb-btns { display: flex; gap: 8px; }
.lb-btns button { font: inherit; color: #EDEDED; background: transparent; border: 1px solid #555; border-radius: 999px; padding: 8px 16px; cursor: pointer; }
.lb-btns button:hover { background: #EDEDED; color: #111; }
@media (max-width: 860px) { .gal { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .gal { grid-template-columns: minmax(0, 1fr); } }
@media (prefers-reduced-motion: reduce) { .lb, .avail i, .avail i::after, .hero-scroll span { animation: none; } .tile, .portrait img, .proj summary .p-title, .proj summary .p-tags, .proj .plus svg, .btn span[aria-hidden] { transition: none; } .proj summary:hover .p-title, .proj:not([open]) summary:hover .plus svg { transform: none; } }
.stack { display: grid; gap: 16px; } .stk { display: grid; grid-template-columns: 200px minmax(0,1fr); gap: 16px; align-items: start; } .stk > .mono { color: var(--muted); padding-top: 10px; font-size: 12px; } @media (max-width: 640px) { .stk { grid-template-columns: minmax(0,1fr); gap: 6px; } .stk > .mono { padding-top: 0; } }

/* Noir et gris uniquement : les repères passent à l'encre, le bouton ouvert se remplit */
.proj summary:hover .plus { border-color: var(--ink); }
.svc .plus { border-radius: 50%; }

/* Coins plus arrondis */
.card, .local, .sent, .step, .res, .swc, .tile, .lb-view, .chat-panel, textarea { border-radius: var(--r); }
.band { border-radius: var(--r-lg); }

/* Certifications : bandeau qui défile juste sous le hero, logos monochromes (Simple Icons) */
.certs-band { padding-block: 40px 8px; }
.certs-band .lbl { margin-bottom: 16px; }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; width: max-content; }
.marquee-list { display: flex; gap: 12px; margin: 0; padding: 18px 12px 18px 0; list-style: none; }
.marquee.is-ready .marquee-track { animation: marquee 38s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.cert { flex: none; display: flex; align-items: center; gap: 14px; padding: 14px 22px; background: var(--surface); border-radius: 999px; white-space: nowrap; }
.cert b { font-family: var(--f-display); font-weight: 600; font-size: 1.15rem; letter-spacing: -.02em; }
.cert-logo { display: block; width: 22px; height: 22px; opacity: .85; }
:root[data-theme="dark"] .cert-logo { filter: invert(1); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .cert-logo { filter: invert(1); } }
.cert span { font-family: var(--f-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
@media (prefers-reduced-motion: reduce) {
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .marquee.is-ready .marquee-track { animation: none; }
  .marquee-track, .marquee-list { width: auto; flex-wrap: wrap; }
  .marquee-list[aria-hidden] { display: none; }
}

/* Projets : visuel ou mockup affiché quand le fichier existe dans assets/mockups/projets/ */
.p-media { grid-column: 1 / -1; margin: 8px 0 0; border-radius: var(--r); overflow: hidden; background: var(--tint); }
.p-media img { display: block; width: 100%; height: auto; }

/* Assistant : pendant la réponse, la mascotte sort son ordinateur et tape */
.msg.typing { display: flex; align-items: center; gap: 12px; padding: 8px 14px 8px 8px; }
.typist { position: relative; display: block; flex: none; width: 92px; aspect-ratio: 600 / 498; animation: bob 1.1s ease-in-out infinite; }
.typist img { position: absolute; display: block; }
.typist .t-body { inset: 0; width: 100%; height: 100%; }
.t-hand.g { left: 13.44%; top: 61.49%; width: 23.26%; animation: tap .3s ease-in-out infinite; }
.t-hand.d { left: 39.18%; top: 66.78%; width: 7.24%; animation: tap .3s ease-in-out infinite .15s; }
.t-label { font-size: 11px; color: var(--muted); }
.t-label::after { content: "…"; animation: dots 1.2s steps(4) infinite; display: inline-block; width: 1.2em; overflow: hidden; vertical-align: bottom; }
@keyframes tap { 50% { transform: translateY(14%); } }
@keyframes bob { 50% { transform: translateY(-1.5px); } }
@keyframes dots { from { width: 0; } to { width: 1.2em; } }
/* En-tête du chat : même pose, le temps de la réponse */
.mascot .m-pc { position: absolute; left: -8%; top: -4%; width: 116%; aspect-ratio: 600 / 498; opacity: 0; transition: opacity .25s ease; pointer-events: none; }
.m-pc img { position: absolute; display: block; }
.m-pc .t-body { inset: 0; width: 100%; height: 100%; }
.mascot:not(.is-typing) .t-hand { animation-play-state: paused; }
.mascot .m-body, .mascot .m-eye { transition: opacity .25s ease; }
.mascot.is-typing .m-pc { opacity: 1; animation: bob .5s ease-in-out infinite; }
.mascot.is-typing .m-body, .mascot.is-typing .m-eye { opacity: 0; }
/* Réponse qui s'écrit : curseur clignotant */
.caret { display: inline-block; width: 2px; height: 1em; margin-left: 2px; vertical-align: -2px; background: currentColor; animation: caret .8s steps(2) infinite; }
@keyframes caret { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .typist, .t-hand, .t-label::after, .mascot.is-typing .m-pc, .caret { animation: none; } }

/* Mascotte de l'assistant : sphère sans yeux + deux yeux en calques qui suivent le curseur et clignent */
.mascot { position: relative; display: inline-block; flex: none; width: 46px; aspect-ratio: 512 / 480; }
.mascot.lg { width: 58px; }
.mascot .m-body { display: block; width: 100%; height: 100%; }
.m-eye { position: absolute; top: 45.5%; width: 8.6%; height: 15.7%; transition: transform .22s cubic-bezier(.2,.7,.2,1); will-change: transform; }
.m-eye.l { left: 36.4%; } .m-eye.r { left: 59.5%; top: 44.1%; }
.m-eye img { display: block; width: 100%; height: 100%; transform-origin: 50% 55%; transition: transform .09s ease-in; }
.mascot.blink .m-eye img { transform: scaleY(.12); }
/* Bouton de l'assistant : la mascotte seule, sans fond ni texte */
.bot-launch { padding: 0; background: none; border: 0; box-shadow: none; border-radius: 50%; transition: transform .25s cubic-bezier(.2,.7,.2,1); }
.bot-launch .mascot { width: 76px; filter: drop-shadow(0 6px 14px rgba(0,0,0,.18)); }
.bot-launch:hover { transform: translateY(-3px) scale(1.04); }
.bot-launch:focus-visible { outline-offset: 4px; }
@media (max-width: 520px) { .bot-launch .mascot { width: 64px; } }
@media (prefers-reduced-motion: reduce) { .bot-launch { transition: none; } .bot-launch:hover { transform: none; } }
.bot-id { display: flex; align-items: center; gap: 12px; }
@media (prefers-reduced-motion: reduce) { .m-eye, .m-eye img { transition: none; } }

/* Réponses structurées de l'assistant */
.msg-text p { margin: 0; }
.msg-text p + p, .msg-text p + ul, .msg-text ul + p { margin-top: 8px; }
.msg-text ul { margin: 8px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.msg-text li { position: relative; padding-left: 14px; }
.msg-text li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 5px; height: 5px; border-radius: 50%; background: currentColor; opacity: .55; }
.msg-text strong { font-weight: 600; }
