@import url("../fonts/fonts.css");

/* ==========================================================================
   eyenet : feuille de style
   Palette issue du logo : orange empreinte, bleu « net », encre pétrole.
   ========================================================================== */

:root {
  --paper: #f3f6f6;
  --paper-2: #e8eeef;
  --mist: #d5e1e3;
  --ink: #12292f;
  --ink-2: #1b3a42;
  --text: #1c2326;
  --muted: #4f5f64;
  --orange: #e46d2b;
  --orange-text: #b4501a;   /* orange lisible sur fond clair (AA) */
  --teal: #2f9ab3;
  --teal-text: #1d6f82;     /* bleu lisible sur fond clair (AA) */
  --white: #ffffff;

  --f-display: "Unbounded", "Segoe UI", system-ui, sans-serif;
  --f-body: "Figtree", "Segoe UI", system-ui, sans-serif;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: clamp(1.35rem, 1.1rem + 0.9vw, 1.7rem);
  --step-3: clamp(1.75rem, 1.3rem + 1.9vw, 2.6rem);
  --step-4: clamp(2.2rem, 1.4rem + 3.4vw, 3.9rem);
  --step-5: clamp(2.6rem, 1.3rem + 5.6vw, 6rem);

  --gutter: clamp(1rem, 4vw, 3rem);
  --max: 1240px;
  --radius-s: 6px;
  --radius-m: 14px;
  --radius-l: 28px;
  --ease-out: cubic-bezier(.22, .9, .3, 1);
  --header-h: 76px;
}

@view-transition { navigation: auto; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--f-body);
  font-size: var(--step-0);
  line-height: 1.62;
  font-feature-settings: "ss01";
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; }
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 300; line-height: 1.08; letter-spacing: -0.02em; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: var(--step-5); }
h2 { font-size: var(--step-4); }
h3 { font-size: var(--step-2); font-weight: 400; letter-spacing: -0.01em; }
h4 { font-size: var(--step-1); font-weight: 400; }
::selection { background: var(--orange); color: var(--white); }

:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 4px; }

.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--ink); color: var(--white); padding: .6em 1em; border-radius: var(--radius-s); }
.skip:focus { left: 8px; }

.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.lead { font-size: var(--step-1); line-height: 1.55; color: var(--muted); max-width: 38em; }
.measure { max-width: 40em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Boutons ---------- */
.btn {
  --bg: var(--ink); --fg: var(--white);
  display: inline-flex; align-items: center; gap: .6em;
  padding: .95em 1.5em; border-radius: 999px;
  background: var(--bg); color: var(--fg);
  font: 600 var(--step-0)/1 var(--f-body); text-decoration: none;
  border: 1.5px solid var(--bg);
  transition: background-color .25s, color .25s, border-color .25s, transform .25s var(--ease-out);
}
.btn:hover { --bg: var(--orange); transform: translateY(-2px); }
.btn--ghost { --bg: transparent; --fg: var(--ink); border-color: currentColor; }
.btn--ghost:hover { --bg: var(--ink); --fg: var(--white); border-color: var(--ink); }
.btn--light { --bg: var(--white); --fg: var(--ink); }
.btn--light:hover { --bg: var(--orange); --fg: var(--white); }
.btn svg { width: 1.1em; height: 1.1em; }

.link {
  font-weight: 600; text-decoration: none; color: var(--teal-text);
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat;
  transition: background-size .35s var(--ease-out);
  padding-bottom: 2px;
}
.link:hover { background-size: 100% 1.5px; }

/* ---------- En-tête ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid transparent;
  transition: transform .4s var(--ease-out), border-color .3s;
}
.site-header.is-scrolled { border-bottom-color: var(--mist); }
.site-header.is-hidden { transform: translateY(-100%); }
.site-header .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.brand { display: block; width: 138px; view-transition-name: brand; }
.brand img { width: 100%; }
.nav { display: flex; align-items: center; gap: clamp(1rem, 2.4vw, 2.2rem); }
.nav a { text-decoration: none; font-weight: 500; position: relative; padding: .4em 0; }
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px;
  background: var(--orange); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease-out);
}
.nav a:not(.btn):hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav .btn { padding: .7em 1.2em; }
.nav-toggle { display: none; }

@media (max-width: 820px) {
  .nav-toggle {
    display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
    border: 1.5px solid var(--ink); background: transparent; color: var(--ink); cursor: pointer;
  }
  .nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
    display: block; width: 18px; height: 1.5px; background: currentColor; position: relative; transition: transform .3s var(--ease-out), background .2s;
  }
  .nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
  .nav-toggle span::before { top: -6px; } .nav-toggle span::after { top: 6px; }
  .nav-open .nav-toggle span { background: transparent; }
  .nav-open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
  .nav-open .nav-toggle span::after { transform: translateY(-6px) rotate(-45deg); }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: flex-start; gap: .4rem;
    padding: 1.5rem var(--gutter) 2rem; background: var(--paper); border-bottom: 1px solid var(--mist);
    font-size: var(--step-2); font-family: var(--f-display); font-weight: 300;
    clip-path: inset(0 0 100% 0); visibility: hidden; transition: clip-path .45s var(--ease-out), visibility 0s .45s;
  }
  .nav a:not(.btn) { font-weight: 300; }
  .nav .btn { margin-top: 1rem; font-size: var(--step-0); }
  .nav-open .nav { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path .45s var(--ease-out); }
}

/* ---------- Héros (accueil) ---------- */
.hero { position: relative; min-height: calc(100svh - var(--header-h)); display: grid; align-items: center; overflow: clip; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 2rem; align-items: center; padding-block: clamp(2rem, 6vw, 5rem); }
.hero h1 { font-weight: 250; margin-bottom: .35em; text-transform: lowercase; }
.hero h1 .dot { color: var(--orange); }
.hero .lead { margin-bottom: 2rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.hero__print { position: relative; aspect-ratio: 1 / 1; width: 100%; max-width: 640px; justify-self: end; }
.hero__print canvas, .hero__print svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__print > img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__print.is-live > img { display: none; }
.hero__caption { position: absolute; right: 0; bottom: -2.2rem; margin: 0;font-size: var(--step--1); color: var(--muted); max-width: 15em; text-align: right; }
.hero__scroll { position: absolute; left: 50%; bottom: 1.2rem; translate: -50% 0; width: 22px; height: 36px; border: 1.5px solid var(--muted); border-radius: 12px; display: block; transition: border-color .25s, transform .25s var(--ease-out); }
.hero__scroll::before { content: ""; position: absolute; inset: -12px; }
.hero__scroll:hover { border-color: var(--orange); transform: translateY(3px); }
.hero__scroll::after { content: ""; position: absolute; left: 50%; top: 7px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: var(--orange); animation: wheel 1.8s infinite var(--ease-out); }
@keyframes wheel { 0% { opacity: 0; transform: translateY(-3px); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(10px); } }

@media (max-width: 1080px) {
  .hero { min-height: auto; }
  .hero .wrap { grid-template-columns: 1fr; }
  .hero .wrap { position: relative; isolation: isolate; padding-top: clamp(3.5rem, 18vw, 6rem); }
  .hero__print { position: absolute; z-index: -1; top: 0; right: -18%; width: min(78vw, 360px); opacity: .32; pointer-events: none; }
  .hero__caption, .hero__scroll { display: none; }
}

/* ---------- Bandeau clients ---------- */
.marquee { border-block: 1px solid var(--mist); overflow: hidden; padding-block: 1.3rem; background: var(--white); }
.marquee__track { display: flex; gap: 3rem; width: max-content; animation: marquee 60s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee span { font-family: var(--f-display); font-weight: 300; font-size: var(--step-2); white-space: nowrap; color: var(--ink); display: flex; align-items: center; gap: 3rem; }
.marquee span::after { content: ""; width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid var(--orange); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding-block: clamp(4rem, 10vw, 8.5rem); }
.section--tight { padding-block: clamp(3rem, 6vw, 5rem); }
.section--dark { background: var(--ink); color: #dfe9eb; }
.section--dark h2, .section--dark h3 { color: var(--white); }
.section--dark .lead { color: #a9bfc4; }
.section--dark .link { color: #7fd0e2; }
.section--white { background: var(--white); }
.section__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.5rem 3rem; align-items: end; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section__head h2 { margin: 0; }
.section__head .lead { margin: 0; }
@media (max-width: 820px) { .section__head { grid-template-columns: 1fr; } }

/* ---------- Trois pôles ---------- */
.poles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 1.6rem); }
.pole {
  position: relative; display: flex; flex-direction: column; padding: 1.4rem 1.4rem 1.6rem;
  background: var(--white); border-radius: var(--radius-l); border: 1px solid var(--mist);
  transition: border-color .3s, transform .4s var(--ease-out);
}
.pole:hover { border-color: var(--teal); transform: translateY(-4px); }
.pole__illus { border-radius: calc(var(--radius-l) - 10px); overflow: hidden; background: var(--paper); margin-bottom: 1.4rem; aspect-ratio: 4 / 3; }
.pole__illus img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-out); }
.pole:hover .pole__illus img { transform: scale(1.04); }
.pole h3 { margin-bottom: .4em; }
.pole p { color: var(--muted); }
.pole ul { list-style: none; margin-top: auto; padding-top: 1rem; border-top: 1px solid var(--mist); display: grid; gap: .25rem; }
.pole li a { display: flex; justify-content: space-between; align-items: center; text-decoration: none; padding: .35em 0; font-weight: 500; }
.pole li a::after { content: ""; width: 7px; height: 7px; border-top: 1.5px solid var(--orange); border-right: 1.5px solid var(--orange); transform: rotate(45deg); transition: transform .3s var(--ease-out); }
.pole li a:hover { color: var(--teal-text); }
.pole li a:hover::after { transform: translateX(4px) rotate(45deg); }
@media (max-width: 900px) { .poles { grid-template-columns: 1fr; } .pole__illus { aspect-ratio: 16 / 9; } }

/* ---------- Maquettes (écran + mobile) ---------- */
.devices { position: relative; display: block; padding: 0 9% 9% 0; text-decoration: none; }
.device-desk {
  position: relative; background: var(--white); border-radius: 12px; overflow: hidden;
  box-shadow: 0 1px 0 rgba(18, 41, 47, .06), 0 30px 60px -30px rgba(18, 41, 47, .45);
  border: 1px solid rgba(18, 41, 47, .08);
}
.device-desk__bar { display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; background: var(--paper-2); border-bottom: 1px solid var(--mist); }
.device-desk__bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--mist); }
.device-desk__bar i:first-child { background: var(--orange); opacity: .8; }
.device-desk__bar i:nth-child(2) { background: var(--teal); opacity: .6; }
.device-desk__bar span { flex: 1; margin-left: 10px; height: 18px; border-radius: 9px; background: var(--white); font-size: 11px; line-height: 18px; padding-inline: 10px; color: var(--muted); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; max-width: 260px; }
.device-desk img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.device-phone {
  position: absolute; right: 0; bottom: 0; width: 24%; min-width: 92px;
  padding: 5px; background: var(--ink); border-radius: 22px;
  box-shadow: 0 30px 50px -20px rgba(18, 41, 47, .55);
  transition: transform .6s var(--ease-out);
}
.device-phone img { width: 100%; aspect-ratio: 390 / 844; object-fit: cover; object-position: top; border-radius: 17px; }
.device-desk img, .device-phone img { transition: transform .9s var(--ease-out); }
.section--dark .device-phone { background: #050f12; box-shadow: 0 0 0 1px #3a5a62, 0 30px 50px -20px rgba(0,0,0,.6); }
a.devices:hover .device-phone { transform: translateY(-14px) rotate(-2deg); }
a.devices:hover .device-desk img { transform: scale(1.025); }
.devices--solo { padding: 0; }

/* ---------- Vitrine de projets (accueil) ---------- */
.showcase { display: grid; gap: clamp(4rem, 9vw, 7rem); }
.show { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.show:nth-child(even) .devices { order: 2; }
.show__body h3 { font-size: var(--step-3); font-weight: 300; margin-bottom: .3em; }
.tags { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; margin-bottom: 1.2rem; }
.tags li { font-size: var(--step--1); font-weight: 600; padding: .3em .8em; border-radius: 999px; background: var(--white); border: 1px solid var(--mist); color: var(--ink-2); }
.section--dark .tags li { background: transparent; border-color: #36575f; color: #cfe0e3; }
.show__body p { color: var(--muted); }
.section--dark .show__body p { color: #a9bfc4; }
@media (max-width: 860px) { .show { grid-template-columns: 1fr; } .show:nth-child(even) .devices { order: 0; } }

[data-reveal] .device-desk, [data-reveal] .device-phone { transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
.js [data-reveal]:not(.is-in) .device-desk { opacity: 0; transform: translateY(40px); }
.js [data-reveal]:not(.is-in) .device-phone { opacity: 0; transform: translateY(80px); }

/* ---------- Méthode (vraie séquence) ---------- */
.steps { position: relative; margin: 0; list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1.5rem; counter-reset: step; padding-top: 2.6rem; }
.steps::before, .steps::after { content: ""; position: absolute; left: 0; top: 11px; height: 2px; border-radius: 2px; }
.steps::before { right: 0; background: #2c4c54; }
.steps::after { width: calc(var(--progress, 0) * 100%); background: linear-gradient(90deg, var(--orange), var(--teal)); }
.steps li { position: relative; counter-increment: step; }
.steps li::before {
  content: counter(step); position: absolute; top: -2.6rem; left: 0;
  width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center;
  font: 500 12px/1 var(--f-display); background: var(--ink); color: var(--white); border: 1.5px solid var(--teal);
}
.steps h3 { font-size: var(--step-1); margin-bottom: .4em; }
.steps p { font-size: .95rem; color: #a9bfc4; margin: 0; }
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr; padding-top: 0; padding-left: 2.6rem; gap: 2rem; }
  .steps::before, .steps::after { left: 11px; top: 0; width: 2px; height: auto; bottom: 0; }
  .steps::after { height: calc(var(--progress, 0) * 100%); bottom: auto; background: linear-gradient(180deg, var(--orange), var(--teal)); }
  .steps li::before { top: 0; left: -2.6rem; }
}

/* ---------- Interlocuteur ---------- */
.duo { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.duo__illus { border-radius: var(--radius-l); overflow: hidden; background: var(--white); border: 1px solid var(--mist); }
.duo .portrait { justify-self: center; }
.duo blockquote { margin: 0 0 1.5rem; font-family: var(--f-display); font-weight: 300; font-size: var(--step-3); line-height: 1.2; letter-spacing: -0.02em; color: var(--ink); }
.duo blockquote::before { content: "« "; color: var(--orange); }
.duo blockquote::after { content: " »"; color: var(--orange); }
@media (max-width: 860px) { .duo { grid-template-columns: 1fr; } .duo__illus { max-width: 420px; } .duo .portrait { justify-self: start; max-width: 340px; } }

/* ---------- Appel à l'action ---------- */
.cta { position: relative; overflow: hidden; border-radius: var(--radius-l); background: var(--orange); color: var(--white); padding: clamp(2.5rem, 7vw, 5.5rem); display: grid; grid-template-columns: minmax(0, 1.4fr) auto; gap: 2rem; align-items: end; isolation: isolate; }
.cta h2 { color: var(--white); margin: 0 0 .3em; text-transform: lowercase; }
.cta p { margin: 0; font-size: var(--step-1); max-width: 30em; color: #fff3ea; }
.cta__print { position: absolute; right: -8%; top: -30%; width: 55%; z-index: -1; opacity: .28; }
.cta .btn { --bg: var(--ink); }
.cta .btn:hover { --bg: var(--white); --fg: var(--ink); }
@media (max-width: 760px) { .cta { grid-template-columns: 1fr; } .cta__print { width: 90%; top: -10%; } }

/* ---------- En-tête de page intérieure ---------- */
.page-head { position: relative; padding-block: clamp(3rem, 8vw, 6.5rem) clamp(2.5rem, 5vw, 4rem); overflow: clip; }
.page-head h1 { font-size: var(--step-5); text-transform: lowercase; font-weight: 250; max-width: 14em; }
.page-head .lead { max-width: 36em; }
.page-head__print { position: absolute; right: -6%; top: 50%; translate: 0 -50%; width: min(46vw, 560px); opacity: .9; pointer-events: none; z-index: -1; }
.crumbs { display: flex; gap: .5rem; flex-wrap: wrap; font-size: var(--step--1); color: var(--muted); margin-bottom: 1.6rem; list-style: none; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--teal-text); }
.crumbs li + li::before { content: "/"; margin-right: .5rem; color: var(--mist); }
@media (max-width: 760px) { .page-head__print { opacity: .25; width: 80vw; } }

/* ---------- Expertises ---------- */
.xp-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.xp-nav { position: sticky; top: calc(var(--header-h) + 1.5rem); display: grid; gap: 1.4rem; }
.xp-nav p { margin: 0 0 .3rem; font-family: var(--f-display); font-size: var(--step--1); color: var(--orange-text); }
.xp-nav ul { list-style: none; display: grid; }
.xp-nav a { display: block; text-decoration: none; padding: .32em 0 .32em 1rem; border-left: 2px solid var(--mist); color: var(--muted); transition: color .2s, border-color .2s; }
.xp-nav a:hover { color: var(--ink); }
.xp-nav a.is-active { color: var(--ink); border-left-color: var(--orange); font-weight: 600; }
.xp-group + .xp-group { margin-top: clamp(4rem, 8vw, 6rem); }
.xp-group > h2 { font-size: var(--step-3); color: var(--teal-text); margin-bottom: 1.5rem; }
.xp { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 260px); gap: 1.5rem 3rem; padding-block: 2.5rem; border-top: 1px solid var(--mist); }
.xp h3 { font-size: var(--step-3); font-weight: 300; grid-column: 1 / -1; margin-bottom: 0; }
.xp__text p { max-width: 38em; }
.xp__illus { border-radius: var(--radius-m); overflow: hidden; background: var(--white); border: 1px solid var(--mist); }
.xp__lists { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1.5rem 2rem; }
.xp__lists h4 { font-family: var(--f-body); font-weight: 700; font-size: var(--step-0); letter-spacing: 0; margin-bottom: .6rem; }
.xp__lists ul { list-style: none; display: grid; gap: .3rem; }
.xp__lists li { position: relative; padding-left: 1.1rem; color: var(--muted); }
.xp__lists li::before { content: ""; position: absolute; left: 0; top: .65em; width: 6px; height: 6px; border-radius: 50%; border: 1.5px solid var(--orange); }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; }
.chips li { padding: .28em .75em; border-radius: 999px; border: 1px solid var(--mist); background: var(--white); font-size: var(--step--1); font-weight: 600; color: var(--ink-2); }
.chips li::before { display: none; }
.xp__lists ul.chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.xp__lists .chips li { padding: .28em .75em; color: var(--ink-2); }
@media (max-width: 960px) { .xp-layout { grid-template-columns: 1fr; } .xp-nav { display: none; } }
@media (max-width: 640px) { .xp { grid-template-columns: 1fr; } .xp__illus { max-width: 320px; } }

/* ---------- Portfolio ---------- */
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2.5rem; }
.filters button {
  font: 600 var(--step--1)/1 var(--f-body); padding: .75em 1.15em; border-radius: 999px; cursor: pointer;
  background: var(--white); color: var(--ink); border: 1px solid var(--mist); transition: background .2s, color .2s, border-color .2s;
}
.filters button:hover { border-color: var(--ink); }
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--white); border-color: var(--ink); }
.filters button sup { font-size: .75em; margin-left: .25em; opacity: .65; vertical-align: top; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: clamp(1.5rem, 3vw, 2.5rem) clamp(1rem, 2.5vw, 2rem); list-style: none; }
.card a { display: block; text-decoration: none; }
.card .device-desk { transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out); }
.card a:hover .device-desk { transform: translateY(-6px); box-shadow: 0 1px 0 rgba(18,41,47,.06), 0 40px 60px -30px rgba(18,41,47,.55); }
.card h3 { font-size: var(--step-1); margin: 1rem 0 .2rem; }
.card p { margin: 0; font-size: var(--step--1); color: var(--muted); }
.card[hidden] { display: none; }
.card .device-desk__bar { height: 24px; }
.card .device-desk__bar span { height: 14px; line-height: 14px; font-size: 10px; }

/* ---------- Fiche projet ---------- */
.project-hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2rem; align-items: end; }
.project-hero h1 { text-transform: none; font-size: var(--step-5); }
.project-stage { padding-block: 1rem clamp(3rem, 7vw, 6rem); }
.project-stage .devices { max-width: 1080px; margin-inline: auto; }
.project-body { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 6rem); }
.project-body h2 { font-size: var(--step-3); }
.works { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .1rem 1.5rem; }
.works li { padding: .7em 0; border-bottom: 1px solid var(--mist); display: flex; gap: .7rem; align-items: baseline; }
.works li::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--orange); translate: 0 -2px; }
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 1rem; list-style: none; margin-top: clamp(3rem, 6vw, 5rem); }
.gallery img { border-radius: var(--radius-m); border: 1px solid var(--mist); width: 100%; aspect-ratio: 7 / 5; object-fit: cover; object-position: top; background: var(--white); }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; border-top: 1px solid var(--mist); padding-top: 2rem; margin-top: clamp(3rem, 7vw, 6rem); }
.pager a { text-decoration: none; display: grid; gap: .2rem; padding: 1rem 0; }
.pager a span { font-size: var(--step--1); color: var(--muted); }
.pager a strong { font-family: var(--f-display); font-weight: 300; font-size: var(--step-2); }
.pager a:hover strong { color: var(--orange-text); }
.pager a:last-child { text-align: right; }
.note-archive { display: inline-block; font-size: var(--step--1); padding: .5em 1em; border-radius: 999px; background: var(--paper-2); color: var(--muted); }
@media (max-width: 820px) { .project-hero, .project-body { grid-template-columns: 1fr; } }

/* ---------- À propos ---------- */
.timeline { list-style: none; display: grid; gap: 0; border-left: 2px solid var(--mist); margin-left: 6px; }
.timeline li { position: relative; padding: 0 0 2rem 2rem; }
.timeline li::before { content: ""; position: absolute; left: -8px; top: .35em; width: 14px; height: 14px; border-radius: 50%; background: var(--paper); border: 2px solid var(--orange); }
.timeline li:last-child::before { background: var(--orange); }
.timeline strong { display: block; font-family: var(--f-display); font-weight: 400; font-size: var(--step-1); margin-bottom: .2rem; }
.timeline p { color: var(--muted); margin: 0; }
.reasons { list-style: none; display: grid; gap: 1px; background: #2c4c54; border-radius: var(--radius-m); overflow: hidden; }
.reasons li { background: var(--ink); padding: 1.8rem 1.6rem; font-size: var(--step-1); line-height: 1.4; color: #e7f0f2; }
.reasons svg { width: 34px; height: 34px; margin-bottom: 1rem; color: var(--orange); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 6rem); }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.coords { display: grid; gap: 1.6rem; }
.coords h2 { font-size: var(--step-1); font-family: var(--f-body); font-weight: 700; letter-spacing: 0; margin: 0 0 .3rem; }
.coords p { margin: 0; color: var(--muted); }
.coords a { font-size: var(--step-2); font-family: var(--f-display); font-weight: 300; text-decoration: none; color: var(--ink); }
.coords a:hover { color: var(--orange-text); }
.form { display: grid; gap: 1.1rem; background: var(--white); border: 1px solid var(--mist); border-radius: var(--radius-l); padding: clamp(1.5rem, 4vw, 2.6rem); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field { display: grid; gap: .35rem; }
.field label { font-weight: 600; font-size: var(--step--1); }
.field input, .field textarea, .field select {
  font: inherit; color: var(--text); padding: .85em 1em; border-radius: var(--radius-s);
  border: 1.5px solid var(--mist); background: var(--paper); transition: border-color .2s, background .2s;
}
.field textarea { min-height: 170px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--teal); background: var(--white); }
.field--hp { position: absolute; left: -9999px; }
.form small { color: var(--muted); }
.form-status { min-height: 1.5em; font-weight: 600; margin: 0; }
.form-status.is-ok { color: var(--teal-text); }
.form-status.is-err { color: var(--orange-text); }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .form__row { grid-template-columns: 1fr; } }

/* ---------- Texte courant (mentions) ---------- */
.prose { max-width: 42em; }
.prose h2 { font-size: var(--step-2); font-weight: 400; margin-top: 2.5rem; }
.prose a { color: var(--teal-text); }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--ink); color: #a9bfc4; padding-block: clamp(3.5rem, 7vw, 5.5rem) 2rem; margin-top: clamp(3rem, 6vw, 5rem); }
.site-footer--flush { margin-top: 0; }
.footer-top { display: grid; grid-template-columns: 1.3fr repeat(3, 1fr); gap: 2.5rem; padding-bottom: 3rem; border-bottom: 1px solid #2c4c54; }
.footer-brand img { width: 150px; margin-bottom: 1.2rem; }
.footer-brand p { max-width: 22em; }
.site-footer h2 { font-size: var(--step-1); color: var(--white); margin-bottom: 1rem; font-weight: 400; }
.site-footer ul { list-style: none; display: grid; gap: .35rem; }
.site-footer a { text-decoration: none; color: #dfe9eb; }
.site-footer a:hover { color: var(--orange); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding-top: 1.6rem; font-size: var(--step--1); }
.socials { display: flex; gap: .6rem; }
.socials a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 1px solid #2c4c54; transition: border-color .2s, background .2s; }
.socials a:hover { border-color: var(--orange); background: var(--orange); color: var(--white); }
.socials svg { width: 17px; height: 17px; }
@media (max-width: 900px) { .footer-top { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer-top { grid-template-columns: 1fr; } }

/* ---------- 404 ---------- */
.lost { min-height: 70vh; display: grid; place-items: center; text-align: center; }
.lost img { width: 220px; margin: 0 auto 2rem; }

/* ---------- Mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .marquee__track { animation: none; flex-wrap: wrap; width: auto; }
  .js [data-reveal]:not(.is-in) .device-desk, .js [data-reveal]:not(.is-in) .device-phone { opacity: 1; transform: none; }
  @view-transition { navigation: none; }
}

::view-transition-old(root), ::view-transition-new(root) { animation-duration: .35s; }

/* ---------- Portrait (photo noir et blanc + empreinte en filigrane) ---------- */
.portrait { position: relative; margin: 0; aspect-ratio: 4 / 5; border-radius: var(--radius-l); overflow: hidden; background: var(--paper-2); isolation: isolate; max-width: 460px; width: 100%; }
.portrait__photo { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.08) brightness(1.03); transition: filter 1s var(--ease-out), transform 1.2s var(--ease-out); }
.portrait:hover .portrait__photo { filter: grayscale(0) contrast(1) brightness(1); transform: scale(1.02); }
.portrait__print { position: absolute; z-index: 1; width: 95%; left: -38%; bottom: -30%; mix-blend-mode: multiply; opacity: .85; pointer-events: none; transition: transform 1.2s var(--ease-out); }
.portrait:hover .portrait__print { transform: rotate(-6deg) scale(1.05); }

/* ---------- À propos ---------- */
.about-hero { position: relative; overflow: clip; padding-block: clamp(2.5rem, 6vw, 5rem) clamp(2rem, 4vw, 3rem); isolation: isolate; }
.about-hero__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.about-hero h1 { font-size: var(--step-5); font-weight: 250; margin-bottom: .15em; }
.about-hero__role { font-family: var(--f-display); font-weight: 300; font-size: var(--step-2); color: var(--teal-text); margin-bottom: 1.4rem; }
.about-hero .lead { margin-bottom: 2rem; }
.portrait--hero { justify-self: end; }
.about-hero .page-head__print { left: -16%; right: auto; width: min(36vw, 440px); opacity: .3; }
@media (max-width: 860px) {
  .about-hero__grid { grid-template-columns: 1fr; }
  .portrait--hero { justify-self: start; max-width: 320px; }
}
.reasons { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.reasons li { display: flex; flex-direction: column; }
@media (max-width: 1000px) { .reasons { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .reasons { grid-template-columns: 1fr; } }
.partner > div { max-width: 48em; }
.partner h2 { font-size: var(--step-3); }

/* ---------- Question anti-robot ---------- */
.field--captcha { padding: 1rem 1.1rem; border-radius: var(--radius-m); background: var(--paper); border: 1px dashed var(--mist); }
.field--captcha input { background: var(--white); max-width: 260px; }
.field--captcha small { margin-top: .1rem; }
