:root {
  --indigo: #442AC9;
  --indigo-d: #2E1B94;
  --brick: #7F00FF;
  --paper: #F4F1EA;
  --ink: #111111;
  --muted: #55524B;
  --line: #DDD7CA;
  --font: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--paper); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img, svg { display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -0.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.3rem, 6vw, 4.4rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; z-index: 99; background: #fff; padding: 8px 12px; }

.eyebrow { font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--brick); margin-bottom: 1rem; }

.btn { display: inline-flex; align-items: center; gap: .5em; padding: .9em 1.5em; background: var(--indigo); color: #fff; text-decoration: none; font-weight: 700; border: 2px solid var(--indigo); border-radius: 2px; cursor: pointer; font: inherit; font-weight: 700; transition: background .15s, color .15s, transform .15s; }
.btn:hover { background: var(--indigo-d); border-color: var(--indigo-d); transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--indigo); }
.btn--ghost:hover { background: var(--indigo); color: #fff; }
.btn--sm { padding: .55em 1em; font-size: .9rem; }
.btn--light { background: var(--paper); color: var(--indigo); border-color: var(--paper); }
.btn--light:hover { background: #fff; border-color: #fff; color: var(--indigo-d); }
:focus-visible { outline: 3px solid var(--brick); outline-offset: 2px; }

/* Header */
.top { position: sticky; top: 0; z-index: 10; background: rgba(244,241,234,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top__in { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.brand { color: var(--indigo); }
.brand svg { height: 34px; width: auto; }
.nav { display: flex; align-items: center; gap: 28px; font-weight: 600; font-size: .95rem; }
.nav a:not(.btn) { text-decoration: none; }
.nav a:not(.btn):hover { color: var(--indigo); }
@media (max-width: 760px) { .nav a:not(.btn) { display: none; } }

/* Hero */
.hero { position: relative; overflow: hidden; padding: clamp(64px, 11vw, 140px) 0 clamp(56px, 8vw, 100px); }
.hero__in { position: relative; z-index: 1; }
.hero h1 span { color: var(--indigo); }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); max-width: 620px; color: var(--muted); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 2rem 0 3.5rem; }
.facts { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 220px)); gap: 24px; }
.facts li { border-top: 3px solid var(--indigo); padding-top: 12px; }
.facts strong { display: block; }
.facts span { color: var(--muted); font-size: .92rem; }
@media (max-width: 640px) { .facts { grid-template-columns: 1fr; gap: 16px; } }
.hero__bricks { position: absolute; right: -40px; top: 50%; transform: translateY(-50%); display: grid; grid-template-columns: repeat(3, 120px); gap: 10px; opacity: .9; }
.hero__bricks i { height: 54px; background: var(--indigo); opacity: .08; }
.hero__bricks i:nth-child(3n+2) { opacity: .14; }
.hero__bricks i:nth-child(n+4):nth-child(-n+6) { transform: translateX(-65px); }
.hero__bricks i:nth-child(n+10) { transform: translateX(-65px); }
.hero__bricks i.v { background: var(--brick); opacity: .9; }
@media (max-width: 980px) { .hero__bricks { display: none; } }

/* Sections */
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section__head { max-width: 640px; margin-bottom: 48px; }
.section__head > p:not(.eyebrow) { color: var(--muted); font-size: 1.05rem; }
.section--ink { background: var(--ink); color: var(--paper); }
.section--ink .section__head > p:not(.eyebrow) { color: #bdb8ad; }
.section--brand { background: var(--indigo); color: #fff; }
.section--brand .eyebrow { color: #CDBFFF; }
.section--brand .section__head > p:not(.eyebrow) { color: #DAD3FF; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 2px; background: var(--line); border: 2px solid var(--line); }
.card { background: #FBFAF6; padding: 32px 28px 28px; position: relative; transition: background .2s; }
.card:hover { background: #fff; }
.card::after { content: ""; position: absolute; left: 28px; bottom: 0; width: 34px; height: 6px; background: var(--brick); transform: scaleX(0); transform-origin: left; transition: transform .25s; }
.card:hover::after { transform: scaleX(1); }
.card__n { display: block; font-weight: 800; color: var(--indigo); font-size: .85rem; letter-spacing: .1em; margin-bottom: 18px; }
.card p { color: var(--muted); margin: 0; }

.steps { list-style: none; counter-reset: s; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.steps li { counter-increment: s; border-top: 1px solid #3a3a3a; padding-top: 20px; }
.steps li::before { content: "0" counter(s); display: block; font-size: 2.6rem; font-weight: 800; color: var(--brick); line-height: 1; margin-bottom: 16px; }
.steps p { color: #bdb8ad; margin: 0; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.split .section__head { margin-bottom: 0; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 40px; } }
.checks { list-style: none; margin: 0; padding: 0; }
.checks li { position: relative; padding: 18px 0 18px 40px; border-bottom: 1px solid var(--line); color: var(--muted); }
.checks li strong { color: var(--ink); }
.checks li::before { content: ""; position: absolute; left: 0; top: 25px; width: 22px; height: 10px; background: var(--brick); }

address { font-style: normal; margin-top: 2rem; line-height: 1.8; }
address a { color: #fff; }

.form { display: grid; gap: 16px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.18); padding: 28px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 520px) { .form .row { grid-template-columns: 1fr; } .form { padding: 20px; } }
.form label { display: grid; gap: 6px; font-size: .9rem; font-weight: 600; }
.form input, .form select, .form textarea { font: inherit; font-weight: 400; color: var(--ink); background: var(--paper); border: 2px solid transparent; border-radius: 2px; padding: .7em .8em; width: 100%; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--brick); }
.form button { justify-self: start; }
.form__note { font-size: .82rem; color: #CDBFFF; margin: 0; }

/* Footer */
.foot { background: var(--ink); color: #bdb8ad; padding: 40px 0; font-size: .88rem; }
.foot__in { display: grid; gap: 8px; }
.foot__logo { height: 28px; width: auto; color: var(--paper); margin-bottom: 12px; }
.foot p { margin: 0; }

/* Legal page */
.legal { padding: 64px 0 96px; }
.legal .wrap { max-width: 780px; }
.legal h2 { font-size: 1.3rem; margin-top: 2.2em; }
.legal p, .legal li { color: var(--muted); }

/* Réalisations */
.section--tight { padding-top: clamp(48px, 7vw, 80px); }
.h1--page { font-size: clamp(2rem, 5vw, 3.4rem); }
.nav a[aria-current="page"] { color: var(--indigo); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filters button { font: inherit; font-size: .9rem; font-weight: 600; padding: .45em 1em; background: transparent; border: 2px solid var(--line); border-radius: 2px; cursor: pointer; color: var(--ink); }
.filters button[aria-pressed="true"] { background: var(--indigo); border-color: var(--indigo); color: #fff; }
.works { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.work { all: unset; box-sizing: border-box; display: flex; flex-direction: column; background: #FBFAF6; border: 2px solid var(--line); cursor: pointer; transition: border-color .2s, transform .2s; }
.work:hover { border-color: var(--indigo); transform: translateY(-2px); }
.work:focus-visible { outline: 3px solid var(--brick); outline-offset: 2px; }
.work__img { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--line); }
.work__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.work:hover .work__img img { transform: scale(1.03); }
.work__body { display: grid; gap: 4px; padding: 18px 20px 20px; position: relative; }
.work__body::before { content: ""; position: absolute; left: 20px; top: -3px; width: 34px; height: 6px; background: var(--brick); }
.work__meta { font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brick); }
.work__title { font-weight: 700; font-size: 1.1rem; line-height: 1.3; }
.work__count { font-size: .88rem; color: var(--muted); }
.empty { text-align: center; max-width: 560px; margin: 24px auto 0; padding: 56px 24px; border: 2px dashed var(--line); }
.empty p { color: var(--muted); }
.empty__bricks { display: inline-grid; grid-template-columns: repeat(3, 44px); gap: 6px; margin-bottom: 24px; }
.empty__bricks i { height: 20px; background: var(--indigo); opacity: .15; }
.empty__bricks i.v { background: var(--brick); opacity: 1; }

.lb { width: min(1100px, calc(100vw - 32px)); max-height: calc(100vh - 32px); padding: 0; border: 0; background: var(--ink); color: var(--paper); }
.lb::backdrop { background: rgba(17,17,17,.85); }
.lb__head { display: flex; justify-content: space-between; gap: 16px; padding: 20px 24px 12px; }
.lb__head h2 { font-size: 1.3rem; margin: 0 0 2px; }
.lb__head p { margin: 0; color: #bdb8ad; font-size: .9rem; }
.lb__close { font: inherit; font-size: 2rem; line-height: 1; background: none; border: 0; color: var(--paper); cursor: pointer; padding: 0 4px; }
.lb__fig { position: relative; margin: 0; background: #000; }
.lb__fig img { width: 100%; max-height: 66vh; object-fit: contain; }
.lb__fig figcaption { padding: 10px 24px; font-size: .9rem; color: #d8d3c8; background: #1b1b1b; min-height: 1em; }
.tag { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; background: var(--brick); color: #fff; padding: 2px 8px; margin-right: 6px; }
.lb__nav { position: absolute; top: calc(50% - 20px); transform: translateY(-50%); width: 44px; height: 64px; font-size: 2.2rem; background: rgba(17,17,17,.6); color: #fff; border: 0; cursor: pointer; }
.lb__nav:hover { background: var(--indigo); }
.lb__nav--prev { left: 0; } .lb__nav--next { right: 0; }
.lb--single .lb__nav, .lb--single .lb__thumbs { display: none; }
.lb__desc { padding: 12px 24px 0; margin: 0; color: #d8d3c8; }
.lb__desc:empty { display: none; }
.lb__thumbs { display: flex; gap: 8px; padding: 16px 24px 24px; overflow-x: auto; }
.lb__thumbs button { flex: 0 0 auto; padding: 0; border: 2px solid transparent; background: none; cursor: pointer; opacity: .6; }
.lb__thumbs button[aria-current="true"] { border-color: var(--brick); opacity: 1; }
.lb__thumbs img { width: 88px; height: 66px; object-fit: cover; }

/* Formulaire : envoi en ligne */
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form { position: relative; }
.form button[disabled] { opacity: .7; cursor: wait; }
.form__status { margin: 0; font-size: .95rem; min-height: 0; }
.form__status:empty { display: none; }
.form__status--ok { background: rgba(255,255,255,.14); border-left: 4px solid #fff; padding: 12px 14px; font-weight: 600; }
.form__status--err { background: rgba(17,17,17,.25); border-left: 4px solid var(--brick); padding: 12px 14px; }
.form__status a, .linkbtn { color: #fff; }
.linkbtn { font: inherit; background: none; border: 0; padding: 0; text-decoration: underline; cursor: pointer; }
