:root {
  --accent: #FF3B14;
  --bg: #F2F2F0;
  --ink: #0C0C0D;
  --muted: #5A5A5F;
  --line: rgba(12, 12, 13, .14);
  --surface: #E6E6E3;
  --on-accent: #FFFFFF;
  --accent-ink: var(--accent);
  --inv-line: rgba(242, 242, 240, .22);
  --inv-muted: #A6A6AB;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0A0A0B; --ink: #F0F0EC; --muted: #9D9DA3; --line: rgba(240, 240, 236, .14);
    --surface: #151517; --accent-ink: color-mix(in oklch, var(--accent) 62%, white);
    --inv-line: rgba(10, 10, 11, .2); --inv-muted: #55555A; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0A0A0B; --ink: #F0F0EC; --muted: #9D9DA3; --line: rgba(240, 240, 236, .14);
  --surface: #151517; --accent-ink: color-mix(in oklch, var(--accent) 62%, white);
  --inv-line: rgba(10, 10, 11, .2); --inv-muted: #55555A; color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: 'Geist', system-ui, sans-serif; -webkit-font-smoothing: antialiased;
  transition: background .4s, color .4s; overflow-x: hidden;
}
a { color: inherit; }
a:hover { color: var(--accent-ink); }
::selection { background: var(--accent); color: #fff; }
input, textarea, button { font: inherit; }
img { max-width: 100%; display: block; }

@keyframes cdMarquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes cdPulse { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }

.mono { font-family: 'Geist Mono', monospace; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }

/* Header */
header.site {
  position: sticky; top: 0; z-index: 20; display: flex; flex-wrap: wrap;
  align-items: center; justify-content: space-between; gap: 12px 32px;
  padding: 16px clamp(20px, 4vw, 56px);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.logo { font-family: 'Archivo'; font-weight: 800; font-stretch: 88%; font-size: 24px; letter-spacing: -0.03em; text-decoration: none; color: var(--ink); }
nav.main { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 28px; font-family: 'Geist Mono'; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; }
nav.main a { text-decoration: none; }
#theme-toggle {
  display: flex; align-items: center; gap: 8px; background: transparent; border: 1px solid var(--line);
  color: var(--ink); padding: 8px 12px; cursor: pointer; font-family: 'Geist Mono'; font-size: 12px;
  text-transform: uppercase; letter-spacing: .04em;
}
#theme-toggle:hover { border-color: var(--ink); }
#theme-toggle .dot { width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid currentColor; background: linear-gradient(90deg, currentColor 50%, transparent 50%); }
.btn-cta { text-decoration: none; background: var(--accent); color: var(--on-accent); padding: 10px 16px; }
.btn-cta:hover { background: var(--ink); color: var(--bg); }

/* Hero */
#top { position: relative; padding: clamp(40px, 7vw, 96px) clamp(20px, 4vw, 56px) 0; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 10px 40px; font-family: 'Geist Mono'; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: clamp(28px, 5vw, 64px); }
.hero-tags .live { display: flex; align-items: center; gap: 8px; color: var(--ink); }
.hero-tags .live .pip { width: 8px; height: 8px; background: var(--accent); animation: cdPulse 1.6s ease-in-out infinite; }
.hero-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 32px clamp(32px, 6vw, 96px); }
.hero-row h1 { flex: 3 1 560px; margin: 0; font-family: 'Archivo'; font-weight: 600; font-stretch: 78%; font-size: clamp(48px, 8.4vw, 136px); line-height: .9; letter-spacing: -0.035em; text-wrap: balance; }
.hero-row h1 em { font-style: italic; font-weight: 800; color: var(--accent-ink); }
.hero-copy { flex: 1 1 300px; max-width: 420px; padding-bottom: 12px; }
.hero-copy p { margin: 0 0 28px; font-size: clamp(17px, 1.35vw, 20px); line-height: 1.5; text-wrap: pretty; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-dark { display: inline-flex; align-items: center; gap: 10px; padding: 16px 22px; background: var(--ink); color: var(--bg); text-decoration: none; font-weight: 500; }
.btn-dark:hover { background: var(--accent); color: var(--on-accent); }
.btn-outline { display: inline-flex; align-items: center; padding: 16px 22px; border: 1px solid var(--line); text-decoration: none; font-weight: 500; color: var(--ink); }
.btn-outline:hover { border-color: var(--ink); }

.kinetic {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin: clamp(40px, 6vw, 88px) calc(-1 * clamp(4px, 1vw, 16px)) 0;
  font-family: 'Archivo'; font-size: 16.4vw; line-height: .74; letter-spacing: -0.02em;
  color: var(--ink); user-select: none; overflow: hidden; padding-top: .04em;
  font-variation-settings: 'wdth' 80, 'wght' 700;
}
.kinetic span { color: var(--accent-ink); }

.marquee-wrap { background: var(--accent); color: var(--on-accent); overflow: hidden; border-top: 1px solid var(--accent); padding: 18px 0; }
.marquee { display: flex; width: max-content; animation: cdMarquee 34s linear infinite; font-family: 'Archivo'; font-weight: 700; font-stretch: 70%; font-size: clamp(24px, 3vw, 40px); text-transform: uppercase; letter-spacing: -0.01em; white-space: nowrap; }
.marquee span.group { display: flex; gap: 40px; padding-right: 40px; }

/* Section headers */
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px 48px; }
.section-head h2 { margin: 0; font-family: 'Archivo'; font-weight: 700; font-stretch: 78%; font-size: clamp(36px, 5vw, 72px); line-height: .95; letter-spacing: -0.03em; }
.section-head p { margin: 0; max-width: 360px; color: var(--muted); line-height: 1.55; text-wrap: pretty; }
.eyebrow { margin-bottom: 18px; }

/* Offres */
#offres { padding: clamp(72px, 10vw, 150px) 0 0; }
#offres .section-head { padding: 0 clamp(20px, 4vw, 56px) clamp(40px, 5vw, 72px); }
.offre { display: flex; flex-wrap: wrap; gap: 20px 48px; align-items: flex-start; padding: clamp(28px, 4vw, 52px) clamp(20px, 4vw, 56px); border-top: 1px solid var(--line); color: var(--ink); text-decoration: none; transition: background .35s, color .35s; }
.offre:hover { background: var(--accent); color: var(--on-accent); }
.offre:last-child { border-bottom: 1px solid var(--line); }
.offre-head { flex: 2 1 460px; display: flex; gap: clamp(16px, 3vw, 40px); align-items: baseline; }
.offre-head .num { font-family: 'Geist Mono'; font-size: 13px; opacity: .7; }
.offre-head h3 { margin: 0; font-family: 'Archivo'; font-weight: 700; font-stretch: 66%; font-size: clamp(48px, 9vw, 140px); line-height: .85; letter-spacing: -0.02em; text-transform: uppercase; }
.offre-body { flex: 1 1 300px; max-width: 440px; padding-top: 8px; }
.offre-body p.lead { margin: 0 0 16px; font-size: 18px; line-height: 1.45; }
.offre-body p.tags { margin: 0; font-family: 'Geist Mono'; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; line-height: 1.9; opacity: .75; }

/* Realisations */
#realisations { padding: clamp(72px, 10vw, 150px) clamp(20px, 4vw, 56px); }
#realisations .section-head { margin-bottom: clamp(40px, 5vw, 72px); }
.real-grid { display: flex; flex-wrap: wrap; gap: clamp(32px, 4vw, 56px) clamp(20px, 3vw, 40px); align-items: flex-start; }
.real-grid figure { margin: 0; }
.real-grid img { width: 100%; height: 100%; object-fit: cover; background: var(--surface); }
.real-1 { flex: 1.5 1 520px; }
.real-1 .frame { aspect-ratio: 4/3; }
.real-2 { flex: 1 1 340px; margin: clamp(0px, 9vw, 140px) 0 0; }
.real-2 .frame { aspect-ratio: 4/5; }
.real-3 { flex: 1 1 340px; }
.real-3 .frame { aspect-ratio: 4/5; }
.real-4 { flex: 1.5 1 520px; margin: clamp(0px, 5vw, 80px) 0 0; }
.real-4 .frame { aspect-ratio: 16/10; }
.real-grid figcaption { display: flex; justify-content: space-between; gap: 16px; padding-top: 14px; border-bottom: 1px solid var(--line); padding-bottom: 14px; }
.real-grid figcaption .name { font-family: 'Archivo'; font-weight: 700; font-stretch: 80%; font-size: 22px; }
.real-grid figcaption .kind { font-family: 'Geist Mono'; font-size: 12px; text-transform: uppercase; color: var(--muted); padding-top: 6px; }

/* Methode */
#methode { padding: clamp(72px, 10vw, 150px) clamp(20px, 4vw, 56px); border-top: 1px solid var(--line); }
.methode-row { display: flex; flex-wrap: wrap; gap: 48px clamp(40px, 7vw, 120px); align-items: flex-start; }
.methode-intro { flex: 1 1 320px; position: sticky; top: 110px; }
.methode-intro h2 { margin: 0 0 24px; font-family: 'Archivo'; font-weight: 700; font-stretch: 78%; font-size: clamp(36px, 5vw, 72px); line-height: .95; letter-spacing: -0.03em; }
.methode-intro h2 span { color: var(--accent-ink); }
.methode-intro p { margin: 0; max-width: 340px; color: var(--muted); line-height: 1.55; text-wrap: pretty; }
.methode-list { flex: 2 1 480px; list-style: none; margin: 0; padding: 0; }
.methode-list li { display: flex; gap: clamp(20px, 4vw, 56px); padding: 32px 0; border-top: 1px solid var(--line); }
.methode-list li:last-child { border-bottom: 1px solid var(--line); }
.methode-list .step-num { font-family: 'Archivo'; font-weight: 800; font-stretch: 62%; font-size: clamp(48px, 6vw, 88px); line-height: .8; color: var(--accent-ink); min-width: 1.4em; }
.methode-list h3 { margin: 0 0 10px; font-family: 'Archivo'; font-weight: 700; font-stretch: 85%; font-size: clamp(24px, 2.4vw, 32px); letter-spacing: -0.02em; }
.methode-list p { margin: 0; line-height: 1.55; color: var(--muted); max-width: 52ch; }

.pourquoi { margin-top: clamp(72px, 9vw, 130px); }
.pourquoi-title { margin-bottom: 28px; }
.pourquoi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 40px 32px; }
.pourquoi-grid .card { border-top: 2px solid var(--ink); padding-top: 22px; }
.pourquoi-grid .card.accent { border-top-color: var(--accent); }
.pourquoi-grid h3 { margin: 0 0 10px; font-family: 'Archivo'; font-weight: 700; font-stretch: 85%; font-size: 24px; letter-spacing: -0.02em; }
.pourquoi-grid p { margin: 0; line-height: 1.55; color: var(--muted); }

/* Contact */
#contact { background: var(--ink); color: var(--bg); padding: clamp(72px, 10vw, 150px) clamp(20px, 4vw, 56px); }
#contact .eyebrow { color: var(--inv-muted); }
#contact h2 { margin: 0 0 clamp(48px, 6vw, 88px); font-family: 'Archivo'; font-weight: 800; font-stretch: 68%; font-size: clamp(56px, 11vw, 184px); line-height: .84; letter-spacing: -0.03em; text-transform: uppercase; }
#contact h2 em { color: var(--accent); font-style: italic; }
.contact-row { display: flex; flex-wrap: wrap; gap: 56px clamp(40px, 7vw, 120px); align-items: flex-start; }
.contact-info { flex: 1 1 300px; display: flex; flex-direction: column; gap: 36px; }
.contact-info .label { font-family: 'Geist Mono'; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--inv-muted); margin-bottom: 10px; }
.contact-info a.mail { font-family: 'Archivo'; font-weight: 600; font-stretch: 85%; font-size: clamp(24px, 2.6vw, 36px); letter-spacing: -0.02em; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; text-decoration-color: var(--accent); }
.contact-zones { display: flex; flex-wrap: wrap; gap: 32px 56px; }
.contact-zones div div:last-child { font-size: 18px; line-height: 1.5; }
.contact-info .note { margin: 0; max-width: 340px; color: var(--inv-muted); line-height: 1.55; }

form#contact-form { flex: 1.4 1 420px; display: flex; flex-direction: column; gap: 28px; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 28px; }
form#contact-form label { display: flex; flex-direction: column; gap: 8px; font-family: 'Geist Mono'; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--inv-muted); }
form#contact-form input, form#contact-form textarea { background: transparent; border: 0; border-bottom: 1px solid var(--inv-line); color: var(--bg); padding: 10px 0; font-family: 'Geist'; font-size: 18px; text-transform: none; letter-spacing: 0; outline: none; }
form#contact-form input:focus, form#contact-form textarea:focus { border-bottom-color: var(--accent); }
form#contact-form textarea { resize: vertical; }
.chips-label { display: flex; flex-direction: column; gap: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 10px 16px; border: 1px solid var(--inv-line); background: transparent; color: var(--bg); cursor: pointer; font-size: 15px; transition: background .2s; }
.chip[aria-pressed="true"] { border-color: var(--accent); background: var(--accent); color: var(--on-accent); }
.btn-submit { align-self: flex-start; display: flex; align-items: center; gap: 14px; padding: 18px 26px; background: var(--accent); color: var(--on-accent); border: 0; cursor: pointer; font-size: 17px; font-weight: 500; }
.btn-submit:hover { background: var(--bg); color: var(--ink); }
.form-sent { border-top: 2px solid var(--accent); padding-top: 28px; }
.form-sent .title { font-family: 'Archivo'; font-weight: 700; font-stretch: 80%; font-size: clamp(32px, 4vw, 52px); letter-spacing: -0.02em; line-height: 1; margin-bottom: 14px; }
.form-sent p { margin: 0; color: var(--inv-muted); line-height: 1.55; }
[hidden] { display: none !important; }

/* Footer */
footer.site { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px 32px; padding: 24px clamp(20px, 4vw, 56px); font-family: 'Geist Mono'; font-size: 12px; letter-spacing: .03em; color: var(--muted); }
footer.site .links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
footer.site button { background: none; border: 0; padding: 0; color: var(--muted); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; font-family: 'Geist Mono'; font-size: 12px; }
footer.site button:hover { color: var(--ink); }
footer.site a { text-decoration: none; }

/* Legal drawer */
#legal-overlay { position: fixed; inset: 0; z-index: 50; background: rgba(0, 0, 0, .5); display: flex; justify-content: flex-end; }
#legal-panel { width: min(560px, 100%); height: 100%; overflow-y: auto; background: var(--bg); color: var(--ink); padding: clamp(24px, 4vw, 48px); border-left: 1px solid var(--line); }
.legal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 32px; }
.legal-head h2 { margin: 0; font-family: 'Archivo'; font-weight: 700; font-stretch: 80%; font-size: 32px; letter-spacing: -0.02em; }
#legal-close { background: none; border: 1px solid var(--line); color: var(--ink); width: 44px; height: 44px; cursor: pointer; font-size: 18px; }
#legal-close:hover { border-color: var(--ink); }
.legal-body { display: flex; flex-direction: column; gap: 24px; font-size: 15px; line-height: 1.6; color: var(--muted); }
.legal-body h3 { margin: 0 0 6px; font-size: 13px; font-family: 'Geist Mono'; text-transform: uppercase; letter-spacing: .06em; color: var(--ink); }
.legal-body p { margin: 0; }
