/* ===================================================================
   Krz Digital — styles.css
   Direction : atelier brut / tech sombre — charbon, bleu électrique
   (palette du logo : #25282e / #03205c / #0960f5)
   =================================================================== */

/* ---------- Fonts (auto-hébergées) ---------- */
@font-face {
  font-family: 'Bricolage Grotesque';
  src: url('assets/fonts/bricolage-grotesque-latin.woff2') format('woff2');
  font-weight: 500 700;
  font-display: swap;
}
@font-face {
  font-family: 'Instrument Sans';
  src: url('assets/fonts/instrument-sans-latin.woff2') format('woff2');
  font-weight: 400 600;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --bg: #1a1d22;
  --bg-2: #25282e;
  --bg-3: #14161a;
  --ink: #eef0f3;
  --ink-dim: #9aa1ab;
  --blue: #0960f5;
  --navy: #03205c;
  --line: #3a3e46;
  --line-soft: #2c2f36;
  --display: 'Bricolage Grotesque', 'Arial Narrow', sans-serif;
  --body: 'Instrument Sans', Arial, sans-serif;
  --pad: clamp(1.25rem, 4vw, 4rem);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-weight: 400;
  line-height: 1.6;
  font-size: 1rem;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
::selection { background: var(--blue); color: #0b0c0e; }

/* ---------- Curseur custom ----------
   mix-blend-mode: difference + blanc → toujours visible,
   quel que soit le fond (bleu, charbon, blanc) */
@media (pointer: fine) {
  body.has-cursor, body.has-cursor a, body.has-cursor button,
  body.has-cursor input, body.has-cursor textarea, body.has-cursor label { cursor: none; }
}
.cursor {
  position: fixed; top: 0; left: 0; z-index: 9999;
  width: 18px; height: 18px;
  pointer-events: none;
  mix-blend-mode: difference;
  display: none;
  transition: opacity .15s linear;
}
.cursor::before, .cursor::after {
  content: ""; position: absolute; background: #fff;
  transition: transform .15s steps(3);
}
.cursor::before { left: 50%; top: 0; width: 2px; height: 100%; margin-left: -1px; }
.cursor::after  { top: 50%; left: 0; height: 2px; width: 100%; margin-top: -1px; }
.cursor.is-active::before { transform: rotate(45deg); }
.cursor.is-active::after  { transform: rotate(45deg); }
.cursor.is-off { opacity: 0; }
@media (pointer: fine) { body.has-cursor .cursor { display: block; } }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 10000;
  background: var(--blue); color: #0b0c0e; padding: .75rem 1.25rem;
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { left: 0; }

/* ---------- Lignes de construction ---------- */
.blueprint {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 80px 80px;
}
main, .site-header, .site-footer, .marquee { position: relative; z-index: 1; }

.crosses { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.crosses span { position: absolute; width: 13px; height: 13px; opacity: .5; }
.crosses span::before, .crosses span::after { content: ""; position: absolute; background: var(--blue); }
.crosses span::before { left: 6px; top: 0; width: 1px; height: 13px; }
.crosses span::after  { top: 6px; left: 0; height: 1px; width: 13px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(26,29,34,.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: stretch; justify-content: space-between;
  border-left: 1px solid var(--line); border-right: 1px solid var(--line);
  max-width: 1400px; margin: 0 auto;
}
.brand {
  display: flex; align-items: center; gap: .75rem;
  text-decoration: none; padding: .9rem var(--pad) .9rem clamp(1rem, 3vw, 2rem);
  border-right: 1px solid var(--line);
}
.brand-logo { width: 34px; height: 36px; }
.brand-name {
  font-family: var(--display); font-weight: 700; font-size: 1.15rem;
  text-transform: uppercase; letter-spacing: .08em;
}
.site-nav { display: flex; align-items: stretch; }
.site-nav a {
  display: flex; align-items: center; padding: 0 1.4rem;
  text-decoration: none; font-size: .85rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .12em;
  border-left: 1px solid var(--line);
  transition: background .12s linear, color .12s linear;
}
.site-nav a:hover, .site-nav a:focus-visible { background: var(--blue); color: #0b0c0e; }
.site-nav .nav-cta { background: var(--ink); color: var(--bg); }
.site-nav .nav-cta:hover, .site-nav .nav-cta:focus-visible { background: var(--blue); color: #0b0c0e; }
.nav-toggle {
  display: none; background: none; border: 0; border-left: 1px solid var(--line);
  padding: 0 1.25rem; flex-direction: column; justify-content: center; gap: 7px;
}
.nav-toggle span { display: block; width: 26px; height: 2px; background: var(--ink); transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child  { transform: translateY(-4.5px) rotate(-45deg); }

/* ---------- Cadre ---------- */
.frame { max-width: 1400px; margin: 0 auto; border-left: 1px solid var(--line); border-right: 1px solid var(--line); }

/* ---------- Hero ---------- */
.hero { padding: clamp(3rem, 7vw, 6rem) var(--pad) 0; position: relative; overflow: hidden; }
.hero-eyebrow {
  display: inline-block; border: 1px solid var(--blue); color: var(--blue);
  font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .18em;
  padding: .45rem .9rem; margin-bottom: 2rem;
}
.hero-title {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(2.3rem, 6.5vw, 6rem);
  line-height: .95; text-transform: uppercase; letter-spacing: -.015em;
}
.hero-title .line { display: block; }
.hero-title em { font-style: normal; color: var(--blue); }
.hero-title .outline {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--ink);
}
.hero-low {
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 2rem; align-items: end;
  margin-top: clamp(2rem, 4vw, 3.5rem);
  padding-bottom: clamp(2.5rem, 5vw, 4.5rem);
}
.hero-sub { color: var(--ink-dim); max-width: 34rem; font-size: 1.06rem; }
.hero-sub strong { color: var(--ink); font-weight: 600; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.75rem; }
.hero-foot {
  display: flex; flex-wrap: wrap; gap: 0;
  border: 1px solid var(--line);
  justify-self: stretch;
}
.hero-foot span {
  flex: 1 1 auto; padding: .85rem 1rem; font-size: .8rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .1em; color: var(--ink-dim);
  border-right: 1px solid var(--line); white-space: nowrap; text-align: center;
}
.hero-foot span:last-child { border-right: 0; }
.hero-foot b { color: var(--blue); font-weight: 600; margin-right: .35rem; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--display); font-weight: 600; font-size: 1rem;
  text-transform: uppercase; letter-spacing: .06em;
  text-decoration: none; padding: 1rem 1.6rem;
  border: 2px solid var(--ink);
  transition: background .12s linear, color .12s linear, border-color .12s linear;
}
.btn-primary { background: var(--blue); border-color: var(--blue); color: #0b0c0e; }
.btn-primary:hover, .btn-primary:focus-visible { background: var(--ink); border-color: var(--ink); color: var(--bg-3); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover, .btn-ghost:focus-visible { background: var(--blue); border-color: var(--blue); color: #0b0c0e; }
.btn-block { width: 100%; justify-content: center; border: 0; }

/* ---------- Marquee ---------- */
.marquee {
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: var(--blue); color: #0b0c0e;
  overflow: hidden; padding: .8rem 0;
  transform: skewY(-1.5deg); transform-origin: left center;
  margin: 0 -2px;
}
.marquee-track { display: flex; width: max-content; animation: marquee 14s linear infinite; }
.marquee-group { display: flex; align-items: center; gap: 2.2rem; padding-right: 2.2rem; }
.marquee-group span {
  font-family: var(--display); font-weight: 700; font-size: 1.25rem;
  text-transform: uppercase; letter-spacing: .05em; white-space: nowrap;
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Chiffres ---------- */
.stats { border-bottom: 1px solid var(--line); background: var(--bg-2); }
.stats-inner { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat {
  padding: clamp(1.5rem, 3vw, 2.75rem) clamp(1rem, 2.5vw, 2rem);
  border-right: 1px solid var(--line); position: relative;
}
.stat:last-child { border-right: 0; }
.stat::before {
  content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 4px;
  background: var(--navy);
}
.stat:hover::before { background: var(--blue); }
.stat-num {
  display: block; font-family: var(--display); font-weight: 700;
  font-size: clamp(2.2rem, 4.5vw, 4rem); line-height: 1; color: var(--ink);
}
.stat-label {
  display: block; margin-top: .6rem; color: var(--ink-dim);
  font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 600;
}

/* ---------- Sections ---------- */
.section { padding: clamp(3.5rem, 8vw, 7rem) var(--pad); border-bottom: 1px solid var(--line); position: relative; scroll-margin-top: 3.5rem; }
.section-head { margin-bottom: clamp(2.5rem, 5vw, 4.5rem); position: relative; }
.section-index {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(5rem, 14vw, 13rem); line-height: .8;
  color: transparent; -webkit-text-stroke: 1px var(--line);
  position: absolute; right: -.05em; top: -.25em; z-index: 0;
  user-select: none; pointer-events: none;
}
.section-kicker {
  color: var(--blue); font-size: .8rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .2em; margin-bottom: 1rem;
}
.section-kicker::before { content: "// "; }
.section h2 {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(1.8rem, 4.5vw, 3.4rem); line-height: 1.05;
  text-transform: uppercase; letter-spacing: -.01em;
  position: relative; z-index: 1; max-width: 20ch;
}
.section h2 em { font-style: normal; color: var(--blue); }

/* ---------- Services ---------- */
.services-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  border: 1px solid var(--line);
}
.service-card {
  padding: clamp(1.5rem, 3vw, 2.75rem); position: relative;
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  transition: background .12s linear, color .12s linear;
}
.service-card:nth-child(2n) { border-right: 0; }
/* 5e carte en pleine largeur (service mis en avant) */
.service-card--wide { grid-column: 1 / -1; border-right: 0; border-bottom: 0; }
.service-card--wide p:last-child { max-width: 64ch; }
.service-card h3 { display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; }
.service-tag {
  font-family: var(--body); font-weight: 600; font-size: .68rem;
  text-transform: uppercase; letter-spacing: .1em;
  padding: .25rem .6rem; border: 1px solid var(--blue); color: var(--blue);
}
.service-card:hover .service-tag { border-color: #0b0c0e; color: #0b0c0e; }
.service-num {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(2.5rem, 5vw, 4rem); line-height: 1;
  color: transparent; -webkit-text-stroke: 1.5px var(--blue);
  margin-bottom: 1rem;
}
.service-card h3 {
  font-family: var(--display); font-weight: 700; font-size: 1.4rem;
  text-transform: uppercase; letter-spacing: .02em; margin-bottom: .75rem;
}
.service-card p:not(.service-num):not(.service-link) { color: var(--ink-dim); }
.service-card:hover { background: var(--blue); color: #0b0c0e; }
.service-card:hover .service-num { -webkit-text-stroke-color: #0b0c0e; }
.service-card:hover p:not(.service-num):not(.service-link) { color: #03205c; }
.service-link { margin-top: 1.1rem; }
.service-link a {
  font-family: var(--display); font-weight: 600; font-size: .85rem;
  text-transform: uppercase; letter-spacing: .08em; color: var(--blue);
  text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px;
}
.service-link a span { display: inline-block; transition: transform .15s var(--ease); }
.service-link a:hover span { transform: translateX(4px); }
.service-card:hover .service-link a { color: #0b0c0e; }

/* ---------- Réalisations ---------- */
#realisations { background: var(--bg-3); }
.projects { list-style: none; border-top: 2px solid var(--ink); }
.project {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center; gap: clamp(1rem, 3vw, 2.5rem);
  padding: clamp(1.4rem, 3vw, 2.2rem) clamp(.5rem, 1.5vw, 1.5rem);
  text-decoration: none; border-bottom: 1px solid var(--line);
  position: relative; transition: background .12s linear, color .12s linear;
}
.project-num {
  font-family: var(--display); font-weight: 500; font-size: 1rem;
  color: var(--blue); letter-spacing: .05em;
}
.project-name {
  display: block; font-family: var(--display); font-weight: 700;
  font-size: clamp(1.7rem, 4.5vw, 3.2rem); line-height: .95;
  text-transform: uppercase; letter-spacing: -.01em;
}
.project-desc { display: block; margin-top: .55rem; color: var(--ink-dim); max-width: 46rem; font-size: .95rem; }
.project-tags { display: flex; flex-wrap: wrap; gap: .5rem; justify-self: end; }
.project-tags span {
  border: 1px solid var(--line); padding: .3rem .7rem;
  font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .1em;
  color: var(--ink-dim); white-space: nowrap;
}
.project-arrow { font-size: clamp(1.6rem, 3vw, 2.4rem); color: var(--blue); transition: transform .15s; }
.project-tags .tag-demo { border-color: var(--blue); color: var(--blue); }
.project:hover .project-tags .tag-demo { border-color: #0b0c0e; color: #0b0c0e; font-weight: 700; }
.project:hover, .project:focus-visible { background: var(--blue); color: #0b0c0e; }
.project:hover .project-num, .project:hover .project-arrow,
.project:focus-visible .project-num, .project:focus-visible .project-arrow { color: #0b0c0e; }
.project:hover .project-desc, .project:focus-visible .project-desc { color: #03205c; }
.project:hover .project-tags span, .project:focus-visible .project-tags span { border-color: #03205c; color: #03205c; }
.project:hover .project-arrow { transform: translate(4px, -4px); }
/* vignette masquée sur desktop — elle suit le curseur */
.project-thumb { display: none; }
.float-thumb {
  position: fixed; z-index: 90; width: 340px; pointer-events: none;
  border: 2px solid var(--ink); transform: translate(-50%, -50%) rotate(-3deg);
  opacity: 0; transition: opacity .12s linear;
}
.float-thumb.is-on { opacity: 1; }
.float-thumb img { width: 100%; height: auto; }

/* ---------- Méthode ---------- */
#methode {
  clip-path: polygon(0 0, 100% 2.5rem, 100% 100%, 0 100%);
  padding-top: clamp(5rem, 9vw, 9rem);
  background: var(--bg-2);
}
.steps {
  list-style: none; counter-reset: step;
  display: grid; grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
}
.step {
  padding: clamp(1.5rem, 2.5vw, 2.25rem);
  border-right: 1px solid var(--line); position: relative;
}
.step:last-child { border-right: 0; }
.step-num {
  display: inline-block; background: var(--navy); color: var(--ink);
  border: 1px solid var(--blue);
  font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .15em;
  padding: .35rem .75rem; margin-bottom: 1.1rem;
}
.step h3 {
  font-family: var(--display); font-weight: 700; font-size: 1.35rem;
  text-transform: uppercase; margin-bottom: .65rem;
}
.step p:last-child { color: var(--ink-dim); font-size: .95rem; }
.method-note {
  margin-top: 2.5rem; border: 2px solid var(--blue);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  position: relative; background: var(--bg);
}
.method-note::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: repeating-linear-gradient(45deg,
    rgba(9,96,245,.07) 0, rgba(9,96,245,.07) 2px, transparent 2px, transparent 12px);
}
.method-note-title {
  font-family: var(--display); font-weight: 700; font-size: 1.25rem;
  text-transform: uppercase; letter-spacing: .04em; color: var(--blue);
  margin-bottom: .75rem; position: relative;
}
.method-note p { position: relative; max-width: 70ch; }
.method-note strong { color: var(--ink); }

/* ---------- Pourquoi ---------- */
#pourquoi { background: var(--bg-3); }
.why-grid { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); }
.why-item {
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  position: relative;
}
.why-item:nth-child(2n) { border-right: 0; }
.why-item:nth-child(n+3) { border-bottom: 0; }
.why-item h3 {
  font-family: var(--display); font-weight: 700; font-size: 1.35rem;
  text-transform: uppercase; margin-bottom: .65rem;
  padding-left: 1.1rem; position: relative;
}
.why-item h3::before {
  content: ""; position: absolute; left: 0; top: .2em; width: 8px; height: 8px;
  background: var(--blue); transform: rotate(45deg);
}
.why-item p { color: var(--ink-dim); }

/* ---------- Zone d'intervention ---------- */
.zone-text { max-width: 60ch; color: var(--ink-dim); font-size: 1.06rem; }
.zone-text strong { color: var(--ink); font-weight: 600; }
.zone-cities {
  list-style: none; display: flex; flex-wrap: wrap; gap: .6rem;
  margin-top: 1.75rem;
}
.zone-cities li {
  border: 1px solid var(--line); padding: .5rem 1rem;
  font-family: var(--display); font-weight: 600; font-size: .9rem;
  text-transform: uppercase; letter-spacing: .08em;
  transition: background .12s linear, color .12s linear, border-color .12s linear;
}
.zone-cities li:hover { background: var(--blue); border-color: var(--blue); color: #0b0c0e; }
.zone-cities li:last-child { border-color: var(--blue); color: var(--blue); }
.zone-cities li:last-child:hover { color: #0b0c0e; }
/* puce ville cliquable (mène à une page locale dédiée) */
.zone-cities li.zone-cities--link { padding: 0; border-color: var(--blue); }
.zone-cities li.zone-cities--link a {
  display: block; padding: .5rem 1rem; color: var(--blue); text-decoration: none;
}
.zone-cities li.zone-cities--link a span { display: inline-block; transition: transform .15s var(--ease); }
.zone-cities li.zone-cities--link:hover { background: var(--blue); }
.zone-cities li.zone-cities--link:hover a { color: #0b0c0e; }
.zone-cities li.zone-cities--link:hover a span { transform: translate(3px, -3px); }

/* ---------- FAQ ---------- */
#faq { background: var(--bg-2); }
.faq-list { border: 1px solid var(--line); max-width: 56rem; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 0; }
.faq-item summary {
  list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding: 1.25rem clamp(1rem, 2.5vw, 1.75rem);
  font-family: var(--display); font-weight: 600; font-size: 1.05rem;
  text-transform: uppercase; letter-spacing: .03em;
  transition: background .12s linear, color .12s linear;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; flex-shrink: 0;
  font-family: var(--display); font-weight: 500; font-size: 1.6rem; line-height: 1;
  color: var(--blue);
  transition: transform .15s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item summary:hover { background: var(--blue); color: #0b0c0e; }
.faq-item summary:hover::after { color: #0b0c0e; }
.faq-item p {
  padding: 0 clamp(1rem, 2.5vw, 1.75rem) 1.5rem;
  color: var(--ink-dim); max-width: 70ch;
}
.faq-item p strong { color: var(--ink); }

/* ---------- Contact ---------- */
.contact {
  clip-path: polygon(0 2.5rem, 100% 0, 100% 100%, 0 100%);
  padding-top: clamp(5rem, 9vw, 9rem);
  background: var(--navy);
  border-bottom: 0;
}
.contact-inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
.contact .section-index { -webkit-text-stroke-color: rgba(238,240,243,.18); position: static; font-size: clamp(3rem, 7vw, 6rem); line-height: 1; margin-bottom: .5rem; }
.contact h2 { margin-bottom: 1.25rem; }
.contact-text > p { color: #b9c4dc; max-width: 36rem; }
.contact-alt { margin-top: 1.75rem; font-weight: 600; }
.contact-alt a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--blue); text-underline-offset: 4px; }
.contact-alt a:hover { color: var(--blue); }
.contact-form { border: 2px solid var(--ink); padding: clamp(1.5rem, 3vw, 2.5rem); background: var(--bg-3); }
.hp { position: absolute; left: -9999px; }
.field { margin-bottom: 1.4rem; }
.field label {
  display: block; font-size: .78rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .14em; color: var(--ink-dim);
  margin-bottom: .5rem;
}
.field input, .field textarea {
  width: 100%; background: var(--bg); color: var(--ink);
  border: 1px solid var(--line); border-radius: 0;
  padding: .85rem 1rem; font-family: var(--body); font-size: 1rem;
  transition: border-color .12s linear;
}
.field input:focus, .field textarea:focus { outline: 2px solid var(--blue); outline-offset: 0; border-color: var(--blue); }
.field textarea { resize: vertical; min-height: 8rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-3); border-top: 1px solid var(--line); }
.footer-inner {
  max-width: 1400px; margin: 0 auto;
  border-left: 1px solid var(--line); border-right: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between;
  padding: 1.5rem var(--pad);
  font-size: .88rem; color: var(--ink-dim);
}
.footer-inner strong { color: var(--ink); text-transform: uppercase; letter-spacing: .06em; }
.footer-inner nav { display: flex; gap: 1.5rem; }
.footer-inner a { color: var(--ink-dim); text-decoration: none; border-bottom: 1px solid var(--line); padding-bottom: 2px; }
.footer-inner a:hover { color: var(--blue); border-bottom-color: var(--blue); }

/* ---------- Mentions légales ---------- */
.legal { padding: clamp(3rem, 7vw, 5rem) var(--pad) clamp(4rem, 8vw, 7rem); max-width: 1400px; }
.legal h1 {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1;
  text-transform: uppercase; margin-bottom: 2.5rem;
}
.legal h1 em { font-style: normal; color: var(--blue); }
.legal h2 {
  font-family: var(--display); font-weight: 700; font-size: 1.25rem;
  text-transform: uppercase; margin: 2.2rem 0 .7rem;
  padding-left: 1.1rem; position: relative;
}
.legal h2::before {
  content: ""; position: absolute; left: 0; top: .25em; width: 8px; height: 8px;
  background: var(--blue); transform: rotate(45deg);
}
.legal p { color: var(--ink-dim); margin-bottom: .6rem; max-width: 75ch; }
.legal a { color: var(--ink); text-decoration-color: var(--blue); text-underline-offset: 4px; }
.legal .todo { color: var(--blue); font-weight: 600; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .5s ease, transform .5s ease; }
.reveal.is-in { opacity: 1; transform: none; }

a:focus-visible, button:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .stats-inner { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2n) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .steps { grid-template-columns: 1fr 1fr; }
  .step:nth-child(2n) { border-right: 0; }
  .step:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .contact-inner { grid-template-columns: 1fr; }
  .hero-low { grid-template-columns: 1fr; }
  .project { grid-template-columns: auto 1fr auto; }
  .project-tags { display: none; }
}
@media (max-width: 760px) {
  .site-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; background: var(--bg-3);
    border-bottom: 2px solid var(--blue);
    display: none;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 1.1rem var(--pad); border-left: 0; border-top: 1px solid var(--line); }
  .nav-toggle { display: flex; }
  .services-grid, .why-grid, .steps { grid-template-columns: 1fr; }
  .service-card, .why-item, .step { border-right: 0 !important; border-bottom: 1px solid var(--line) !important; }
  .service-card:last-child, .why-item:last-child, .step:last-child { border-bottom: 0 !important; }
  .project { grid-template-columns: 1fr; gap: .9rem; align-items: start; }
  .project-num { order: -1; }
  .project-arrow { display: none; }
  /* sur tactile / petits écrans, vignettes affichées en ligne */
  .project-thumb { display: block; border: 1px solid var(--line); }
  .hero-foot { flex-direction: column; }
  .hero-foot span { border-right: 0; border-bottom: 1px solid var(--line); text-align: left; }
  .hero-foot span:last-child { border-bottom: 0; }
  .section-index { font-size: 4.5rem; top: -.4em; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-track { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
