@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("fonts/archivo-latin-wdth-normal.woff2") format("woff2-variations");
}

:root {
  --ink: #0c0e11;
  --ink-2: #14171c;
  --line: #262b33;
  --text: #eef1f4;
  --muted: #8d96a3;
  --ice: #9fe3ff;          /* bleu « azote liquide » */
  --red: #d8262f;          /* rappel SFConnect / Ferrari */
  --radius: 18px;
  --pad: clamp(20px, 5vw, 64px);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font: 400 17px/1.6 "Archivo", system-ui, sans-serif;
  font-stretch: 100%;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-stretch: 125%; line-height: 1.05; margin: 0; letter-spacing: -0.01em; }
h3 { font-size: 1.35rem; font-weight: 700; }
p { margin: 0; }

/* En-tête */
.top {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px var(--pad);
  background: color-mix(in srgb, var(--ink) 82%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.brand { text-decoration: none; font-weight: 800; font-stretch: 125%; font-size: 1.2rem; color: var(--ice); }
.brand sub { font-size: .6em; }
.brand span { color: var(--text); font-weight: 500; font-size: .85rem; margin-left: 6px; }
.top nav { display: flex; gap: 22px; align-items: center; font-size: .92rem; }
.top nav a { text-decoration: none; color: var(--muted); }
.top nav a:hover { color: var(--text); }
@media (max-width: 640px) {
  .top nav a:not(.pill):not(.lang) { display: none; }
  .brand span { display: none; }
}

.pill {
  display: inline-block; text-decoration: none;
  padding: 8px 18px; border-radius: 999px;
  background: var(--ice); color: var(--ink) !important; font-weight: 600;
}
.pill.big { padding: 14px 26px; font-size: 1.05rem; }
.pill.ghost { background: transparent; color: var(--text) !important; border: 1px solid var(--line); }
.pill:hover { filter: brightness(1.08); }

/* Hero */
.hero {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(24px, 5vw, 72px); align-items: center;
  padding: clamp(40px, 9vw, 120px) var(--pad) clamp(40px, 7vw, 90px);
  max-width: 1280px; margin: 0 auto;
}
.kicker { color: var(--ice); font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; margin-bottom: 18px; }
.hero h1 { font-size: clamp(2.3rem, 6.4vw, 5rem); font-weight: 800; }
.hero h1 em { font-style: normal; font-weight: 300; color: var(--muted); }
.lede { margin-top: 26px; font-size: 1.12rem; color: #c3c9d1; max-width: 38em; }
.tags { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { border: 1px solid var(--line); border-radius: 999px; padding: 5px 14px; font-size: .88rem; color: #c3c9d1; }
.hero-photo { margin: 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/5; background: #ddd; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; }
  .hero-photo { order: -1; max-width: 260px; aspect-ratio: 1; border-radius: 50%; }
}

/* Sections */
.block { max-width: 1280px; margin: 0 auto; padding: clamp(48px, 8vw, 110px) var(--pad); border-top: 1px solid var(--line); }
.section-title { font-size: clamp(1.8rem, 4.5vw, 3.2rem); font-weight: 800; margin-bottom: 36px; }
.section-intro { color: #c3c9d1; max-width: 40em; margin: -14px 0 36px; }
.client { color: var(--muted); font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; font-weight: 600; margin-bottom: 4px; }
.link { display: inline-block; margin-top: 14px; color: var(--ice); text-decoration: none; font-weight: 600; }
.link:hover { text-decoration: underline; }
.link.muted { color: var(--muted); font-weight: 500; }

/* App phare : SFConnect */
.feature {
  background: radial-gradient(120% 80% at 0% 0%, #3a0a0e 0%, var(--ink-2) 55%);
  border: 1px solid #3a1d20; border-radius: calc(var(--radius) + 6px);
  padding: clamp(22px, 4vw, 44px);
}
.feature-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.app-icon { width: 64px; height: 64px; border-radius: 15px; }
.feature h3 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; }
.feature .client { color: #f08a8f; }
.badge { margin-left: auto; font-size: .8rem; border: 1px solid #5a2a2e; color: #f3b9bc; border-radius: 999px; padding: 4px 12px; }
.feature-text { margin-top: 20px; max-width: 46em; color: #d6dbe1; }
.stack { margin-top: 12px; color: var(--muted); font-size: .92rem; }
.shots {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(160px, 1fr);
  gap: 16px; margin-top: 28px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding-bottom: 8px; scrollbar-width: thin;
}
.shots img {
  scroll-snap-align: start; border-radius: 22px; border: 1px solid #2c2f36;
  cursor: zoom-in; transition: transform .25s;
}
.shots img:hover { transform: translateY(-4px); }
@media (max-width: 640px) { .shots { grid-auto-columns: 58%; } }

/* Autres apps */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 20px; }
.card { background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.card.wide { grid-column: 1 / -1; display: grid; grid-template-columns: 1.6fr 1fr; column-gap: 28px; align-content: center; }
.card.wide .card-shots { grid-row: span 4; margin-bottom: 0; }
.card p:last-child { color: #c3c9d1; margin-top: 8px; font-size: .96rem; }
.card-shots {
  display: flex; gap: 10px; justify-content: center; align-items: center;
  background: #0f1115; border-radius: 12px; padding: 16px; margin-bottom: 18px; height: 300px;
}
.card-shots img { max-height: 100%; width: auto; border-radius: 10px; cursor: zoom-in; }
.card-shots.browser { height: auto; padding: 0; overflow: hidden; }
.card-shots.browser img { width: 100%; border-radius: 0; }
@media (max-width: 960px) {
  .grid { grid-template-columns: 1fr 1fr; }
  .card.wide { grid-template-columns: 1fr; }
  .card.wide .card-shots { grid-row: auto; margin-bottom: 18px; }
}
@media (max-width: 600px) {
  .grid { grid-template-columns: 1fr; }
  .card-shots { height: 260px; }
}

/* Sites */
.sites { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.screen {
  display: block; position: relative; aspect-ratio: 16/10; overflow: hidden;
  border-radius: 12px; border: 1px solid var(--line); margin-bottom: 18px; background: #1a1d22;
}
.screen::before {           /* barre de navigateur */
  content: ""; position: absolute; inset: 0 0 auto 0; height: 22px; z-index: 1;
  background: #1d2026 radial-gradient(circle at 12px 11px, #ff5f57 4px, transparent 5px),
              radial-gradient(circle at 26px 11px, #febc2e 4px, transparent 5px),
              radial-gradient(circle at 40px 11px, #28c840 4px, transparent 5px);
  background-color: #1d2026;
}
.screen img { position: absolute; top: 22px; width: 100%; height: calc(100% - 22px); object-fit: cover; object-position: top; transition: transform .5s; }
a.screen:hover img { transform: scale(1.03); }
.screen.mousnier img:first-child { object-position: center; filter: brightness(.82); }
.screen.mousnier .logo {
  position: absolute; top: auto; bottom: 14px; left: 14px; width: 150px; height: auto;
  background: #fff; padding: 8px 12px; border-radius: 8px; z-index: 2;
}
.site p:not(.client) { color: #c3c9d1; margin-top: 8px; font-size: .96rem; }
@media (max-width: 960px) { .sites { grid-template-columns: 1fr; max-width: 620px; } }

/* Parcours */
.timeline { list-style: none; padding: 0; margin: 0; max-width: 820px; }
.timeline li {
  display: grid; grid-template-columns: 230px 1fr; gap: 20px;
  padding: 18px 0; border-bottom: 1px solid var(--line);
}
.timeline strong { font-stretch: 115%; }
.timeline span { color: #c3c9d1; }
.timeline li:first-child strong { color: var(--ice); }
@media (max-width: 640px) { .timeline li { grid-template-columns: 1fr; gap: 4px; } }

/* Contact */
.contact {
  text-align: center; padding: clamp(60px, 10vw, 130px) var(--pad);
  background: radial-gradient(60% 80% at 50% 100%, #0f2a36 0%, var(--ink) 70%);
  border-top: 1px solid var(--line);
}
.contact h2 { font-size: clamp(2.6rem, 8vw, 6rem); font-weight: 800; margin-bottom: 32px; }
.contact-links { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.foot { padding: 24px var(--pad); color: var(--muted); font-size: .85rem; text-align: center; }

/* Visionneuse */
dialog {
  border: 0; padding: 0; background: transparent; max-width: 94vw; max-height: 92vh;
}
dialog::backdrop { background: rgba(5, 6, 8, .88); backdrop-filter: blur(4px); }
dialog img { max-width: 94vw; max-height: 92vh; width: auto; border-radius: 14px; }
dialog .close {
  position: fixed; top: 14px; right: 18px; width: 44px; height: 44px; border-radius: 50%;
  border: 0; background: #fff; color: #000; font-size: 26px; cursor: pointer;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* Langue et contact */
.top nav a.lang {
  display: inline-block; color: var(--text); font-weight: 600; font-size: .8rem;
  border: 1px solid var(--line); border-radius: 6px; padding: 3px 8px;
}
.contact-more { margin-top: 22px; }
.contact-more a { color: var(--muted); text-decoration: none; }
.contact-more a:hover { color: var(--text); }
