/* guik.io — Guillaume Bisiaux. De la famille de cumulus.guik.io. */

:root {
  --ground: #f6f7f9;
  --card: #ffffff;
  --ink: #14161b;
  --text: #454a57;
  --soft: #5a6070;
  --line: #d9dce3;
  --line-soft: #e3e6ec;
  --frame: #c9cdd6;
  --chip: #e8eaef;
  --accent: #2f54d9;
  --accent-ink: #1f3fb0;
  --on-accent: #ffffff;
  --term: #14161b;
  --term-text: #d6d9e0;
  --term-cmd: #9db1ff;
  --term-dim: #a5a8b3;
  --ok: #18a558;
  --bezel: #14161b;
  --elan: #4f4ce0;
  --elan-wash: #e9e8ff;
  --cumulus: #2f54d9;
  --cumulus-wash: #cbd5e8;
  --velo: #c9302a;
  --velo-wash: #f9e4e1;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", "Segoe UI", sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ground: #0f1116;
    --card: #171a21;
    --ink: #f1f3f7;
    --text: #b6bbc8;
    --soft: #9097a6;
    --line: #2a2e38;
    --line-soft: #232730;
    --frame: #353a47;
    --chip: #222631;
    --accent: #8ea6ff;
    --accent-ink: #b5c4ff;
    --on-accent: #0f1116;
    --term: #07080b;
    --ok: #3fcf82;
    --bezel: #000000;
    --elan: #8f8dff;
    --elan-wash: #1c1b4d;
    --cumulus: #8ea6ff;
    --cumulus-wash: #1b2540;
    --velo: #ff7a70;
    --velo-wash: #3a1715;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
a { color: var(--accent); }
a:hover { color: var(--accent-ink); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, p, ul, dl, dd, figure, pre { margin: 0; }
ul { padding: 0; list-style: none; }

/* Une langue à la fois ; sans JavaScript la page reste en français. */
[data-lang="en"] [lang="fr"],
[data-lang="fr"] [lang="en"] { display: none !important; }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.mono { font-family: var(--mono); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; z-index: 10; background: var(--card); color: var(--ink); padding: 12px 16px; border-radius: 8px; }

/* En-tête */
.site-header { border-bottom: 1px solid var(--line); background: var(--ground); }
.site-header .wrap { min-height: 72px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 20px; letter-spacing: -0.01em; min-height: 44px; margin-right: auto; }
.brand:hover { color: var(--ink); }
.brand img { width: 32px; height: 32px; border-radius: 8px; object-fit: cover; }
.site-nav { display: flex; flex-wrap: wrap; gap: 0 26px; font-family: var(--mono); font-size: 13px; }
.site-nav a { color: var(--text); text-decoration: none; padding: 14px 0; }
.site-nav a:hover { color: var(--ink); }
.lang-switch { display: flex; gap: 2px; background: var(--chip); border-radius: 8px; padding: 3px; }
.lang-switch button { border: 0; background: transparent; color: var(--soft); font: 600 13px var(--mono); padding: 0 14px; min-height: 38px; border-radius: 6px; cursor: pointer; }
.lang-switch button[aria-pressed="true"] { background: var(--card); color: var(--ink); }

/* Boutons et liens */
.btn { display: inline-flex; align-items: center; min-height: 50px; padding: 10px 26px; border-radius: 8px; font-weight: 700; text-decoration: none; background: var(--accent); color: var(--on-accent); }
.btn:hover { background: var(--accent-ink); color: var(--on-accent); }
.btn-ink { background: var(--ink); color: var(--ground); }
.btn-ink:hover { background: var(--text); color: var(--ground); }
.text-link { font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.text-link:hover { text-decoration: underline; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
.eyebrow { font-family: var(--mono); font-size: 13px; color: var(--accent); }

/* Ouverture */
.hero { padding: 80px 0 56px; }
.hero-top { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 40px 64px; }
.hero-copy { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.status-chip { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-family: var(--mono); font-size: 13px; color: var(--text); background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 8px 14px; }
.status-chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); display: inline-block; margin-right: 8px; }
h1 { font-weight: 800; font-size: clamp(42px, 6vw, 84px); line-height: 0.98; letter-spacing: -0.04em; text-wrap: balance; }
.lead { max-width: 640px; font-size: 21px; line-height: 1.45; color: var(--text); }
.hero .actions { margin-top: 8px; }
.portrait { flex: 0 1 280px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.portrait img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 12px; border: 1px solid var(--frame); }
.portrait figcaption { font-family: var(--mono); font-size: 12px; color: var(--soft); display: flex; justify-content: space-between; gap: 12px; }

/* Les trois apps, dès l'ouverture */
.dock { margin-top: 64px; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.dock a { display: flex; align-items: center; gap: 16px; padding: 18px 20px; background: var(--card); border: 1px solid var(--frame); border-radius: 12px; color: var(--ink); text-decoration: none; min-width: 0; transition: border-color .15s, transform .15s; }
.dock a:hover { border-color: var(--app); transform: translateY(-2px); }
@media (prefers-reduced-motion: reduce) { .dock a { transition: none; } .dock a:hover { transform: none; } }
.dock img, .dock svg { width: 56px; height: 56px; border-radius: 13px; flex: none; }
.dock b { display: block; font-weight: 800; font-size: 19px; letter-spacing: -0.01em; }
.dock span { display: block; font-family: var(--mono); font-size: 12px; color: var(--soft); }
.dock .go { margin-left: auto; font-family: var(--mono); font-size: 18px; color: var(--app); }

/* Chapitres d'apps */
.t-elan { --app: var(--elan); --app-wash: var(--elan-wash); }
.t-cumulus { --app: var(--cumulus); --app-wash: var(--cumulus-wash); }
.t-velo { --app: var(--velo); --app-wash: var(--velo-wash); }
.app { border-top: 1px solid var(--line); padding: 80px 0; scroll-margin-top: 8px; }
.app .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 40px 64px; }
.app-text { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.app-id { display: flex; align-items: center; gap: 14px; }
.app-id img, .app-id svg { width: 64px; height: 64px; border-radius: 15px; flex: none; }
.app-id .eyebrow { color: var(--app); display: block; }
.app-id b { display: block; font-weight: 800; font-size: 22px; letter-spacing: -0.01em; }
h2 { font-weight: 800; font-size: clamp(30px, 3.4vw, 46px); line-height: 1.03; letter-spacing: -0.03em; text-wrap: balance; }
.app-text p { color: var(--text); max-width: 34em; }
.app-specs { align-self: stretch; font-family: var(--mono); font-size: 13px; border-top: 1px solid var(--line); }
.app-specs > div { display: flex; flex-wrap: wrap; gap: 2px 20px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.app-specs dt { flex: 0 0 110px; color: var(--soft); }
.app-specs dd { flex: 1 1 200px; min-width: 0; }
.app .btn { background: var(--app); }
.app .btn:hover { background: var(--ink); color: var(--ground); }
.app .text-link { color: var(--app); }
.stage { flex: 1.25 1 460px; min-width: 0; background: var(--app-wash); border: 1px solid var(--frame); border-radius: 16px; overflow: hidden; }
.app:nth-of-type(even) .stage { order: -1; }

/* Elan : trois iPhone qui dépassent du cadre */
.phones { display: flex; justify-content: center; align-items: flex-start; gap: 4%; padding: 9% 7% 0; aspect-ratio: 5 / 4; }
.phone { flex: 1 1 0; min-width: 0; border-radius: 12% / 5.6%; border: 0.5em solid var(--bezel); background: var(--bezel); overflow: hidden; box-shadow: 0 1.5em 3.5em rgba(23, 20, 74, 0.28); font-size: clamp(8px, 1.1vw, 13px); }
.phone img { display: block; width: 100%; height: auto; }
.phone:nth-child(2) { margin-top: -4%; }
.phone:nth-child(1), .phone:nth-child(3) { margin-top: 6%; }

/* Cumulus : la fenêtre et le menu, comme sur son site */
.scene { position: relative; aspect-ratio: 1160 / 760; font-size: clamp(7px, 1vw, 12px); }
.scene-bar { position: absolute; inset: 0 0 auto 0; height: 2.5em; background: rgba(255, 255, 255, 0.72); border-bottom: 1px solid rgba(20, 22, 27, 0.08); display: flex; align-items: center; gap: 1.5em; padding: 0 1.4em; white-space: nowrap; overflow: hidden; color: #14161b; }
.scene-bar strong { font-weight: 700; }
.scene-item { position: absolute; top: 0; left: 68%; height: 2.5em; display: flex; align-items: center; padding: 0 0.7em; border-radius: 0.45em; background: rgba(20, 22, 27, 0.12); }
.scene-item svg { width: 1.85em; height: 1.3em; display: block; }
.scene-window { position: absolute; top: 13%; left: 4%; width: 74%; border-radius: 0.9em; overflow: hidden; border: 1px solid rgba(20, 22, 27, 0.14); box-shadow: 0 1.8em 4.6em rgba(20, 22, 27, 0.28); background: #fff; }
.scene-menu { position: absolute; top: 2.8em; left: 68%; width: 28%; border-radius: 0.75em; overflow: hidden; border: 1px solid rgba(20, 22, 27, 0.16); box-shadow: 0 1.4em 3.7em rgba(20, 22, 27, 0.34); background: #fff; }
.scene img { display: block; width: 100%; height: auto; }

/* Mon Vélo Lillois : les planches de l'App Store, puis l'architecture et ses chiffres */
.panels { display: flex; justify-content: center; align-items: center; gap: 3%; padding: 6% 5%; }
.panels img { display: block; width: 30.6%; height: auto; border-radius: 9% / 4.2%; box-shadow: 0 1.2em 2.6em rgba(120, 20, 16, 0.22); }
.panels img:nth-child(2) { margin-top: -5%; }
.under { flex: 1 1 100%; min-width: 0; display: flex; flex-wrap: wrap; gap: 16px; }
.terminal { flex: 1.5 1 380px; min-width: 0; background: var(--term); border-radius: 12px; padding: 20px 22px; overflow-x: auto; display: flex; align-items: center; }
.terminal pre { font-family: var(--mono); font-size: 13px; line-height: 1.7; color: var(--term-text); }
.terminal .cmd { color: var(--term-cmd); }
.terminal .dim { color: var(--term-dim); }
.figures { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.figures > div { flex: 1; background: var(--card); border: 1px solid var(--frame); border-radius: 12px; padding: 14px 18px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 16px; }
.figures b { flex: 0 0 4.1em; font-size: 30px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; color: var(--app); font-variant-numeric: tabular-nums; }
.figures span { flex: 1 1 150px; font-family: var(--mono); font-size: 12px; color: var(--soft); }

/* Parcours */
.section { border-top: 1px solid var(--line); padding: 80px 0; scroll-margin-top: 8px; }
.section-head { display: flex; flex-direction: column; gap: 12px; max-width: 760px; }
.section-head p { color: var(--text); font-size: 19px; }
.xp { margin-top: 40px; border-top: 1px solid var(--line); }
.xp > li { display: flex; flex-wrap: wrap; gap: 16px 48px; padding: 36px 0; border-bottom: 1px solid var(--line); }
.xp-when { flex: 0 0 250px; display: flex; gap: 14px; align-items: flex-start; }
.xp-when img { width: 48px; height: 48px; border-radius: 11px; flex: none; }
.xp-when time { font-family: var(--mono); font-size: 13px; color: var(--soft); line-height: 1.5; padding-top: 4px; }
.xp-when time b { display: block; color: var(--ink); font-weight: 600; }
.xp-what { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
h3 { font-weight: 800; font-size: 26px; line-height: 1.1; letter-spacing: -0.02em; }
.xp-role { font-family: var(--mono); font-size: 13px; color: var(--accent); }
.xp-what > p { color: var(--ink); font-size: 19px; max-width: 40em; }
.xp-list { display: flex; flex-direction: column; gap: 8px; max-width: 46em; }
.xp-list li { color: var(--text); padding-left: 18px; position: relative; }
.xp-list li::before { content: ""; position: absolute; left: 0; top: 0.68em; width: 8px; height: 2px; background: var(--frame); }
.xp-list strong { color: var(--ink); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.tags li { font-family: var(--mono); font-size: 12px; color: var(--text); background: var(--chip); border-radius: 6px; padding: 4px 9px; }

/* Profil */
.sheet { border-top: 1px solid var(--line); background: var(--card); padding: 88px 0; scroll-margin-top: 8px; }
.split { display: flex; flex-wrap: wrap; gap: 32px 64px; }
.split > :first-child { flex: 1 1 300px; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.split > :first-child p { color: var(--text); max-width: 30em; }
.specs { flex: 1.6 1 460px; min-width: 0; font-family: var(--mono); font-size: 14px; }
.specs > div { display: flex; flex-wrap: wrap; gap: 4px 24px; padding: 16px 0; border-bottom: 1px solid var(--line-soft); }
.specs > div:first-child { padding-top: 0; }
.specs > div:last-child { border-bottom: 0; }
.specs dt { flex: 0 0 150px; color: var(--soft); }
.specs dd { flex: 1 1 260px; min-width: 0; }
.specs dd > span { display: block; }
.specs dd .dim { color: var(--soft); white-space: nowrap; }

/* Contact */
.closing { border-top: 1px solid var(--line); padding: 104px 0; scroll-margin-top: 8px; }
.closing h2 { max-width: 900px; font-size: clamp(36px, 5vw, 72px); line-height: 0.98; letter-spacing: -0.04em; }
.closing .actions { margin-top: 36px; }
.mail { font-family: var(--mono); font-size: 15px; color: var(--soft); user-select: all; }

.site-footer { border-top: 1px solid var(--line); padding: 28px 0 44px; font-size: 14px; color: var(--soft); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 4px 28px; align-items: center; }
.site-footer p { flex: 1 1 420px; }
.site-footer a { color: var(--text); display: inline-flex; align-items: center; min-height: 44px; }

@media (max-width: 860px) {
  .app:nth-of-type(even) .stage { order: 0; }
}
@media (max-width: 760px) {
  .site-nav { display: none; }
  .hero { padding: 48px 0 40px; }
  .dock { margin-top: 40px; }
  .app, .section { padding: 56px 0; }
  .sheet, .closing { padding: 64px 0; }
  .xp-when { flex-basis: 100%; }
  .xp > li { padding: 28px 0; }
  .portrait { flex-basis: 200px; margin: 0; }
  .specs dt, .app-specs dt { flex-basis: 100%; }
}
