/* Fichiers CSS du site : base.css (couleurs & base) · labo-projets.css · contact-dock.css · parcours-competences.css · mascotte.css
   Les couleurs se changent UNIQUEMENT dans les blocs :root au début de base.css. */
/* Layout : ouverture « lentille » épinglée, choix du parcours de visite, labo de démos manipulables, projets en grille + fiche détaillée, parcours dépliable, dock façon macOS (barre d'onglets sur mobile). */
:root {
  --ground: #0d0e10; --surface: #16181c; --surface-2: #1e2126; --raise: #23272d;
  --ink: #f4f1ec; --ink-muted: #a8a49c; --ink-faint: #55575b;
  --gold: #e8b65f; --accent-ink: #e8b65f; --on-gold: #15171a; --sand: #e6cfa8; --line-art: #e6cfa8;
  --blue: #7fb2e5; --ok: #3fd18f;
  --hair: rgba(244, 241, 236, .09); --glass: rgba(22, 24, 28, .72); --halo: rgba(230, 207, 168, .1); --shadow: rgba(0, 0, 0, .45);
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --gl: max(20px, env(safe-area-inset-left, 0px)); --gr: max(20px, env(safe-area-inset-right, 0px));
  --sb: env(safe-area-inset-bottom, 0px);
  color-scheme: dark;
}
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) {
  --ground: #e8dcc8; --surface: #f2eadc; --surface-2: #f7f1e6; --raise: #fbf8f2;
  --ink: #15171a; --ink-muted: #5a5d62; --ink-faint: #b5a990; --accent-ink: #2f4a6b; --line-art: #a88a5a; --blue: #2f6fb0; --ok: #1e8a57;
  --hair: rgba(21, 23, 26, .11); --glass: rgba(242, 234, 220, .74); --halo: rgba(232, 182, 95, .2); --shadow: rgba(21, 23, 26, .16); color-scheme: light; } }
:root[data-theme="light"] {
  --ground: #e8dcc8; --surface: #f2eadc; --surface-2: #f7f1e6; --raise: #fbf8f2;
  --ink: #15171a; --ink-muted: #5a5d62; --ink-faint: #b5a990; --accent-ink: #2f4a6b; --line-art: #a88a5a; --blue: #2f6fb0; --ok: #1e8a57;
  --hair: rgba(21, 23, 26, .11); --glass: rgba(242, 234, 220, .74); --halo: rgba(232, 182, 95, .2); --shadow: rgba(21, 23, 26, .16); color-scheme: light; }

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 20px; }
body { margin: 0; background: var(--ground); color: var(--ink); font: 400 17px/1.55 var(--body); -webkit-font-smoothing: antialiased; overflow-x: clip; padding-bottom: calc(96px + var(--sb)); }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 80; background: var(--ground); }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 400; margin: 0; letter-spacing: -.02em; text-wrap: balance; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 8px; }
.gut { padding-left: var(--gl); padding-right: var(--gr); }
.wrap { max-width: 1200px; margin: 0 auto; }
.caps { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; font-weight: 500; color: var(--ink-muted); }
.it { font-style: italic; color: var(--accent-ink); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sec { padding-block: clamp(80px, 11vw, 150px); }
.head { display: grid; grid-template-columns: 1.5fr 1fr; gap: 16px clamp(28px, 6vw, 90px); align-items: end; margin-bottom: clamp(32px, 5vw, 60px); }
.head > * { min-width: 0; }
.head .caps { grid-column: 1 / -1; }
.head h2 { font-size: clamp(38px, 5.6vw, 76px); line-height: 1.02; font-weight: 300; }
.head p { color: var(--ink-muted); font-size: 18px; max-width: 40ch; padding-bottom: 8px; }
@media (max-width: 820px) { .head { grid-template-columns: 1fr; } .head p { font-size: 16px; } }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 999px; font-weight: 500; font-size: 15px; border: 1px solid var(--hair); background: var(--surface); cursor: pointer; transition: transform .35s var(--ease), background .25s; }
.btn:hover { transform: scale(1.03); }
.btn:active { transform: scale(.97); }
.btn-gold { background: var(--gold); color: var(--on-gold); border-color: var(--gold); }

/* ===== ouverture ===== */
.intro { position: relative; height: 240vh; }
.stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: grid; place-items: center; }
.stage::before { content: ""; position: absolute; width: 120vmax; height: 120vmax; left: 50%; top: 50%; transform: translate(-50%, -50%); background: radial-gradient(closest-side, var(--halo), transparent 70%); pointer-events: none; }
.name { position: absolute; inset: 0; display: grid; align-content: center; padding-left: var(--gl); padding-right: var(--gr); pointer-events: none; }
.name .nrow { display: block; white-space: nowrap; font-family: var(--display); font-size: clamp(60px, 17.5vw, 290px); line-height: .86; letter-spacing: -.045em; will-change: transform; }
.name .r2 { text-align: right; font-style: italic; color: var(--accent-ink); }
.name .ch { display: inline-block; font-variation-settings: "wght" 300, "opsz" 144; transition: font-variation-settings .25s; }
.lens { position: relative; z-index: 2; width: min(32vw, 300px); aspect-ratio: 1; border-radius: 50%; overflow: hidden; box-shadow: 0 30px 90px var(--shadow); will-change: width; }
.lens img { width: 100%; height: 100%; object-fit: cover; display: block; transform: scale(1.06); will-change: transform; }
.orbit { position: absolute; z-index: 1; width: min(46vw, 430px); aspect-ratio: 1; pointer-events: none; animation: spin 50s linear infinite; }
.orbit circle { fill: none; stroke: var(--line-art); }
@keyframes spin { to { transform: rotate(360deg); } }
.over { position: absolute; z-index: 3; inset: auto 0 0 0; padding: 32vh var(--gr) calc(110px + var(--sb)) var(--gl); background: linear-gradient(transparent, rgba(13, 14, 16, .9) 70%); color: #f4f1ec; opacity: 0; pointer-events: none; }
.over .wrap { display: grid; gap: 16px; }
.over h1 { font-size: clamp(34px, 5.6vw, 82px); line-height: 1; font-weight: 300; max-width: 16ch; }
.over h1 em { color: #e8b65f; }
.over p { color: #e6cfa8; font-size: clamp(15px, 1.5vw, 19px); max-width: 52ch; }
.foot { position: absolute; z-index: 3; left: 0; right: 0; bottom: calc(104px + var(--sb)); padding-left: var(--gl); padding-right: var(--gr); display: flex; justify-content: space-between; align-items: end; gap: 16px; }
.foot .tag { font-family: var(--display); font-size: clamp(17px, 2vw, 22px); line-height: 1.25; max-width: 28ch; }
.hint { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--ink-muted); white-space: nowrap; }
.hint i { width: 22px; height: 34px; border-radius: 12px; border: 1.5px solid var(--ink-muted); position: relative; }
.hint i::after { content: ""; position: absolute; left: 50%; top: 7px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: var(--gold); animation: wheel 1.6s var(--ease) infinite; }
@keyframes wheel { 60% { transform: translateY(9px); opacity: 0; } }
@media (max-width: 700px) {
  .lens { width: 58vw; } .orbit { width: 82vw; }
  .name { align-content: space-between; padding-block: 18vh 30vh; }
  .foot { flex-direction: column; align-items: flex-start; } .hint { display: none; }
}

/* ===== choix du visiteur ===== */
.who { padding-block: clamp(70px, 9vw, 120px); }
.choices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 820px) { .choices { grid-template-columns: 1fr; } }
.choice { position: relative; text-align: left; border: 1px solid var(--hair); background: var(--surface); border-radius: 26px; padding: 26px; display: grid; gap: 10px; cursor: pointer; transition: transform .45s var(--ease), border-color .3s, background .3s; min-height: 170px; align-content: start; }
.choice:hover { transform: translateY(-4px); }
.choice[aria-pressed="true"] { border-color: var(--gold); background: color-mix(in srgb, var(--gold) 10%, var(--surface)); }
.choice h3 { font-size: 26px; }
.choice p { color: var(--ink-muted); font-size: 15px; }
.choice .go { position: absolute; top: 22px; right: 22px; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); transition: background .3s, transform .45s var(--ease); }
.choice[aria-pressed="true"] .go { background: var(--gold); color: var(--on-gold); transform: rotate(-45deg); }
.choice-out { margin-top: 18px; min-height: 26px; color: var(--ink-muted); font-size: 15px; }
