/* ==========================================================================
   uData — « Un site est comme un dessin »
   Style carnet de croquis : papier, graphite, trait orange du « u ».
   ========================================================================== */

:root {
  --paper: #fbf8f3;
  --paper-2: #f3ede3;
  --white: #fffdf9;
  --ink: #1e2430;
  --ink-2: #2a3141;
  --pencil: #5f6676;
  --pencil-light: #a7adb9;
  --line: rgba(30, 36, 48, .14);
  --line-light: rgba(255, 253, 249, .14);
  --orange: #ef8a0c;
  --orange-soft: #f6b445;
  --blue: #2f5f9e;
  --container: 1160px;
  --radius: 6px;
  --ease: cubic-bezier(.22, .8, .2, 1);
  --sans: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Cormorant Garamond", Georgia, serif;
  --hand: "Caveat", "Segoe Print", cursive;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; -webkit-text-size-adjust: 100%; }
html, body { overflow-x: clip; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
  background-color: var(--paper);
  /* grain de papier */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.12 0 0 0 0 0.14 0 0 0 0 0.19 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0 0 .5em; line-height: 1.05; }
h1, h2 { font-family: var(--serif); font-weight: 600; letter-spacing: -.01em; }
h3 { font-size: 1.3rem; font-weight: 700; letter-spacing: -.01em; line-height: 1.25; }
p { margin: 0 0 1em; }
.container { width: min(100% - 32px, var(--container)); margin-inline: auto; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 100; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 2px dashed var(--orange); outline-offset: 4px; }

/* ---------- Écriture manuscrite & trait du « u » ---------- */
.hand { font-family: var(--hand); font-weight: 600; color: var(--orange); line-height: 1.1; }
.note {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--hand); font-size: 1.55rem; font-weight: 600; color: var(--orange);
  transform: rotate(-2deg); transform-origin: left; margin-bottom: 14px;
}
.note svg { width: 34px; height: 20px; flex: none; }
.section-head .note, .contact-box .note { font-size: 1.55rem; color: var(--orange); }
.dark .section-head .note, .contact-box .note { color: var(--orange-soft); }

.mark { position: relative; display: inline-block; white-space: nowrap; }
.mark > svg {
  position: absolute; left: -4%; width: 108%; height: auto; top: calc(100% - .32em);
  overflow: visible; pointer-events: none;
}
.mark.circle > svg { left: -10%; width: 120%; top: 50%; bottom: auto; transform: translateY(-50%); }
.mark path { fill: none; stroke: var(--orange); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }

/* Tracé progressif générique : <path pathLength="1"> */
.draw :is(path, circle, rect), .ss-sketch path {
  stroke-dasharray: 1 2; stroke-dashoffset: 1;
  transition: stroke-dashoffset var(--dur, .9s) var(--ease) var(--d, 0s);
}
.in-view .draw :is(path, circle, rect), .draw.in-view :is(path, circle, rect), .ss-sketch.drawn path { stroke-dashoffset: 0; }
.mark path { --d: .55s; --dur: .8s; }

/* ---------- Boutons ---------- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; gap: .6em;
  padding: .95em 1.5em;
  border-radius: var(--radius);
  font-weight: 700; font-size: 1rem; text-decoration: none;
  border: 1.5px solid var(--ink);
  transition: background .3s, color .3s, transform .3s var(--ease), box-shadow .3s var(--ease);
  cursor: pointer;
}
.btn svg { width: 1.1em; height: 1.1em; transition: transform .3s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn-primary { background: var(--ink); color: var(--white); box-shadow: 4px 4px 0 var(--orange); }
.btn-primary:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--orange); }
.btn-primary:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--orange); }
.btn-line { border-color: transparent; padding-inline: .2em; }
.btn-line .ul { position: absolute; left: 0; right: 0; bottom: .35em; height: 10px; width: 100%; overflow: visible; }
.btn-line .ul path { fill: none; stroke: var(--orange); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 1 2; stroke-dashoffset: 1; transition: stroke-dashoffset .5s var(--ease); }
.btn-line:hover .ul path { stroke-dashoffset: 0; }
.btn-light { background: var(--white); color: var(--ink); border-color: var(--white); box-shadow: 4px 4px 0 var(--orange); }
.btn-light:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--orange); }

/* ---------- En-tête ---------- */
.header { position: fixed; inset: 0 0 auto 0; z-index: 50; padding: 18px 0; transition: background .35s, padding .35s, box-shadow .35s; }
.header.scrolled {
  background: rgba(251, 248, 243, .9);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--line);
  padding: 10px 0;
}
.header .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo img { height: 38px; width: auto; }
.nav { display: flex; align-items: center; gap: 34px; }
.nav ul { list-style: none; display: flex; gap: 28px; margin: 0; padding: 0; }
.nav a:not(.btn) { position: relative; text-decoration: none; font-weight: 600; font-size: .97rem; }
.nav a:not(.btn) svg { position: absolute; left: -6%; width: 112%; height: 8px; bottom: -8px; overflow: visible; }
.nav a:not(.btn) path { fill: none; stroke: var(--orange); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 1 2; stroke-dashoffset: 1; transition: stroke-dashoffset .45s var(--ease); }
.nav a:not(.btn):hover path, .nav a.active path { stroke-dashoffset: 0; }
.nav .btn { padding: .6em 1.15em; box-shadow: 3px 3px 0 var(--orange); }
.burger { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; position: relative; z-index: 60; }
.burger span { position: absolute; left: 10px; width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s var(--ease), opacity .3s, top .3s; }
.burger span:nth-child(1) { top: 15px; }
.burger span:nth-child(2) { top: 21px; width: 18px; }
.burger span:nth-child(3) { top: 27px; }
.nav-open .burger span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.nav-open .burger span:nth-child(2) { opacity: 0; }
.nav-open .burger span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

/* ---------- Accueil ---------- */
.hero { position: relative; padding: 140px 0 90px; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; }
.hero::before {
  /* papier quadrillé de carnet */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: .45;
  mask-image: radial-gradient(ellipse 70% 60% at 70% 45%, #000 10%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 70% 45%, #000 10%, transparent 75%);
}
.hero .container { position: relative; display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(30px, 5vw, 70px); align-items: center; }
.hero h1 { font-size: clamp(3rem, 6.6vw, 5.6rem); }
.hero-lead { font-size: clamp(1.08rem, 1.5vw, 1.25rem); color: var(--pencil); max-width: 36ch; margin-bottom: 2em; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 26px; }
.signature { display: flex; align-items: center; gap: 14px; margin-top: 44px; }
.signature img { width: 54px; height: 54px; border-radius: 50%; border: 2px solid var(--white); box-shadow: 0 0 0 1.5px var(--ink); }
.signature p { margin: 0; font-size: .95rem; color: var(--pencil); line-height: 1.4; }
.signature strong { color: var(--ink); }

/* --- Comparateur croquis / site --- */
.sketch-site { position: relative; --p: 0%; }
.ss-frame {
  background: var(--white);
  border: 1.5px solid var(--ink);
  border-radius: 10px;
  box-shadow: 10px 10px 0 var(--paper-2), 10px 10px 0 1.5px var(--ink);
  overflow: hidden;
}
.ss-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1.5px solid var(--ink); background: var(--white); }
.ss-bar i { width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid var(--ink); }
.ss-bar span { margin-left: 12px; flex: 1; font-size: .75rem; color: var(--pencil); border: 1px solid var(--line); border-radius: 4px; padding: 2px 10px; max-width: 220px; }
.ss-stage { position: relative; aspect-ratio: 600 / 380; overflow: hidden; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.ss-stage > svg, .ss-stage > img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.ss-stage > img { object-fit: cover; object-position: top; }
.ss-final { clip-path: inset(0 calc(100% - var(--p)) 0 0); }
.ss-sketch { clip-path: inset(0 0 0 var(--p)); background: var(--white); }
.ss-sketch path { fill: none; stroke: #4a5160; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ss-sketch path.accent-stroke { stroke: var(--orange); stroke-width: 1.8; }
.ss-sketch path.fillish { stroke-width: 1; opacity: .55; }
.ss-sketch text { font-family: var(--hand); font-weight: 600; fill: var(--orange); opacity: 0; transition: opacity .5s var(--d, 0s); }
.ss-sketch.drawn text { opacity: 1; }
.ss-handle {
  position: absolute; top: 0; bottom: 0; left: var(--p); width: 0; z-index: 3;
  border-left: 1.5px dashed var(--ink);
  opacity: 0; transition: opacity .4s;
}
.sketch-site.ready .ss-handle { opacity: 1; }
.ss-grip {
  position: absolute; top: 50%; left: 0; transform: translate(-50%, -50%);
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--ink); color: var(--orange-soft);
  border: 2px solid var(--white);
  box-shadow: 0 6px 18px rgba(30, 36, 48, .3);
  cursor: ew-resize;
}
.ss-grip svg { width: 22px; height: 22px; }
.ss-grip:focus-visible { outline-offset: 3px; }
.ss-hint {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 22px; padding: 0 6px;
  font-family: var(--hand); font-size: 1.35rem; font-weight: 600; color: var(--pencil);
}
.ss-hint span:last-child { color: var(--orange); }
.ss-hint em { font-style: normal; font-size: 1.15rem; color: var(--pencil-light); }

.scroll-cue {
  position: absolute; left: 50%; bottom: 24px; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  font-family: var(--hand); font-size: 1.15rem; color: var(--pencil); text-decoration: none;
}
.scroll-cue svg { width: 22px; height: 36px; animation: nudge 2.2s var(--ease) infinite; }
.scroll-cue path { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
@keyframes nudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }

/* ---------- Sections ---------- */
.section { padding: clamp(80px, 11vw, 140px) 0; position: relative; }
.section-head { max-width: 700px; margin-bottom: clamp(44px, 6vw, 72px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .note { transform-origin: center; }
.section h2 { font-size: clamp(2.4rem, 5.2vw, 4rem); }
.section-head p { color: var(--pencil); font-size: 1.12rem; }
.alt { background-color: var(--paper-2); }
.dark { background: var(--ink); color: var(--white); }
.dark .section-head p, .dark .muted { color: var(--pencil-light); }

/* ---------- Services ---------- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1.5px solid var(--ink); }
.service { padding: 40px 34px 10px 0; position: relative; }
.service + .service { padding-left: 34px; border-left: 1px solid var(--line); }
.service-icon { width: 76px; height: 76px; margin-bottom: 24px; overflow: visible; }
.service-icon path, .service-icon circle, .service-icon rect { fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.service-icon .o { stroke: var(--orange); }
.service h3 { font-size: 1.4rem; }
.service p { color: var(--pencil); }
.checks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 30px; font-size: .98rem; }
.checks svg { position: absolute; left: 0; top: .3em; width: 20px; height: 16px; overflow: visible; }
.checks path { fill: none; stroke: var(--orange); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.zone {
  margin-top: 60px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px;
  padding: 26px 30px; border: 1.5px dashed var(--ink); border-radius: var(--radius);
}
.zone p { margin: 0; font-size: 1.15rem; font-weight: 600; }

/* ---------- Méthode (trait de crayon piloté par le scroll) ---------- */
.method { overflow: hidden; }
.steps { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; padding-top: 10px; }
.steps-path { position: absolute; left: 0; right: 0; top: 0; width: 100%; height: 90px; overflow: visible; pointer-events: none; }
.steps-path path { fill: none; stroke-linecap: round; }
.steps-path .track { stroke: var(--line-light); stroke-width: 2; stroke-dasharray: 4 8; }
.steps-path .ink { stroke: var(--orange); stroke-width: 3; stroke-dasharray: 1 2; stroke-dashoffset: calc(1 - var(--progress, 0)); }
.step { position: relative; padding-top: 110px; }
.step-dot {
  position: absolute; top: 18px; left: 0;
  width: 54px; height: 54px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--hand); font-size: 2.1rem; font-weight: 600; line-height: 1; padding-bottom: 4px;
  background: var(--ink); color: var(--pencil-light);
  border: 1.5px solid var(--line-light);
  transition: background .4s, color .4s, border-color .4s, transform .4s var(--ease);
}
.step.done .step-dot { background: var(--orange); color: var(--ink); border-color: var(--orange); transform: rotate(-6deg) scale(1.05); }
.step h3 { font-size: 1.3rem; }
.step p { color: var(--pencil-light); font-size: 1rem; }
.step .hand { font-size: 1.25rem; display: block; margin-top: 6px; opacity: 0; transform: translateY(6px) rotate(-2deg); transition: opacity .5s, transform .5s var(--ease); }
.step.done .hand { opacity: 1; transform: rotate(-2deg); }

/* ---------- Réalisations ---------- */
.project { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(30px, 5vw, 70px); align-items: center; }
.project .ss-stage { aspect-ratio: 16 / 9.5; }
.ss-stage { cursor: ew-resize; }
.project-info h3 { font-family: var(--serif); font-size: clamp(2.2rem, 4vw, 3rem); font-weight: 600; margin-bottom: .3em; }
.project-info p { color: var(--pencil); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; padding: 0; list-style: none; }
.tags li { font-size: .82rem; font-weight: 700; padding: 4px 12px; border: 1px solid var(--ink); border-radius: 999px; }
.projects-note { margin-top: 80px; text-align: center; font-size: 1.1rem; color: var(--pencil); }
.projects-note .hand { font-size: 1.6rem; }

/* ---------- À propos ---------- */
.about .container { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(40px, 7vw, 90px); align-items: center; }
.portrait { position: relative; max-width: 420px; }
.portrait-img { position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--radius); background: var(--orange-soft); }
.portrait-img img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.portrait-frame { position: absolute; inset: -18px; width: calc(100% + 36px); height: calc(100% + 36px); overflow: visible; pointer-events: none; }
.portrait-frame path { fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; }
.about-text p { color: var(--pencil); font-size: 1.1rem; }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 34px; border-top: 1.5px solid var(--ink); }
.value { padding: 18px 18px 0 0; }
.value + .value { padding-left: 18px; border-left: 1px solid var(--line); }
.value strong { display: block; font-family: var(--serif); font-size: 1.45rem; font-weight: 600; }
.value span { font-size: .93rem; color: var(--pencil); }

/* ---------- FAQ ---------- */
.faq-list { max-width: 840px; margin-inline: auto; border-top: 1.5px solid var(--ink); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 24px 4px; font-weight: 700; font-size: 1.12rem;
  transition: color .3s;
}
.faq-item summary:hover { color: var(--orange); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary svg { flex: none; width: 26px; height: 26px; overflow: visible; transition: transform .4s var(--ease); }
.faq-item summary svg path { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; transition: opacity .3s; }
.faq-item[open] summary svg { transform: rotate(180deg); }
.faq-item[open] summary svg .v { opacity: 0; }
.faq-body { overflow: hidden; }
.faq-body > div { padding: 0 4px 26px; color: var(--pencil); max-width: 70ch; }
.faq-body p:last-child { margin-bottom: 0; }

/* ---------- Contact ---------- */
.contact { padding-bottom: clamp(60px, 8vw, 100px); }
.contact-box {
  position: relative;
  background: var(--ink); color: var(--white);
  border-radius: 10px;
  padding: clamp(40px, 7vw, 86px);
  display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center;
  box-shadow: 12px 12px 0 var(--orange);
}
.contact-box h2 { font-size: clamp(2.6rem, 5.4vw, 4.2rem); }
.contact-box p { color: var(--pencil-light); font-size: 1.1rem; }
.contact-box .note { color: var(--orange-soft); }
.contact-links { display: grid; gap: 0; border-top: 1px solid var(--line-light); }
.contact-item { position: relative; border-bottom: 1px solid var(--line-light); }
.contact-link { display: flex; align-items: center; gap: 18px; padding: 22px 4px; text-decoration: none; transition: padding .35s var(--ease); }
.contact-link:hover { padding-left: 14px; }
.contact-link i { flex: none; width: 46px; height: 46px; display: grid; place-items: center; border: 1.5px solid var(--orange-soft); border-radius: 50%; color: var(--orange-soft); transition: background .3s, color .3s; }
.contact-link:hover i { background: var(--orange-soft); color: var(--ink); }
.contact-link i svg { width: 22px; height: 22px; }
.contact-link small { display: block; color: var(--pencil-light); font-family: var(--hand); font-size: 1.2rem; line-height: 1; margin-bottom: 4px; }
.contact-link strong { font-size: clamp(1rem, 1.6vw, 1.15rem); overflow-wrap: anywhere; }
.contact-item .contact-link { padding-right: 96px; }
.copy-btn {
  position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  background: none; border: 1px solid var(--line-light); color: var(--pencil-light);
  border-radius: 999px; padding: 5px 12px; font: inherit; font-size: .8rem; font-weight: 700; cursor: pointer;
  transition: color .3s, border-color .3s;
}
.copy-btn:hover { color: var(--white); border-color: var(--white); }
.contact-zone { display: flex; align-items: center; gap: 10px; font-size: .95rem; margin: 0; }
.contact-zone svg { width: 18px; height: 18px; color: var(--orange-soft); flex: none; }

/* ---------- Pied de page ---------- */
.footer { padding: 60px 0 30px; font-size: .95rem; color: var(--pencil); border-top: 1px solid var(--line); }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 30px; padding-bottom: 34px; }
.footer-top img { height: 36px; width: auto; margin-bottom: 12px; }
.footer-top p { max-width: 36ch; margin: 0; }
.footer nav ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, auto); gap: 8px 40px; }
.footer a { text-decoration: none; transition: color .3s; }
.footer a:hover { color: var(--orange); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding-top: 22px; border-top: 1px solid var(--line); font-size: .88rem; }

/* ---------- Pages intérieures ---------- */
.page-hero { padding: 150px 0 50px; }
.page-hero h1 { font-size: clamp(2.8rem, 7vw, 5rem); }
.page-hero .lead { font-size: 1.2rem; color: var(--pencil); max-width: 60ch; }
.back-link { display: flex; width: fit-content; align-items: center; gap: 8px; text-decoration: none; font-weight: 700; color: var(--pencil); margin-bottom: 26px; }
.back-link svg { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.back-link:hover { color: var(--ink); }
.back-link:hover svg { transform: translateX(-4px); }
.case-shot { margin-bottom: clamp(60px, 9vw, 110px); }
.case-grid { display: grid; grid-template-columns: 1fr 2fr; gap: clamp(30px, 6vw, 80px); }
.facts { display: grid; gap: 20px; align-content: start; }
.facts div { border-top: 1px solid var(--line); padding-top: 12px; }
.facts small { display: block; font-family: var(--hand); font-size: 1.2rem; color: var(--orange); line-height: 1.1; }
.facts strong { font-size: 1.08rem; }
.case-content h2 { font-size: clamp(2rem, 3.4vw, 2.6rem); margin-top: 1.3em; }
.case-content h2:first-child { margin-top: 0; }
.case-content > p { color: var(--pencil); }
.feature-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1.5px solid var(--ink); }
.feature-list li { padding: 18px 18px 18px 0; border-bottom: 1px solid var(--line); }
.feature-list li:nth-child(even) { padding-left: 18px; border-left: 1px solid var(--line); }
.feature-list strong { display: block; }
.feature-list span { color: var(--pencil); font-size: .97rem; }

.legal { padding-bottom: 100px; }
.legal .container { max-width: 820px; }
.legal h2 { font-size: 2rem; margin-top: 1.6em; }
.legal p, .legal li { color: var(--pencil); }
.legal strong { color: var(--ink); }

/* ---------- Apparitions au scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(30px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.in-view { opacity: 1; transform: none; }
.split-words .w { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: .1em; margin-bottom: -.1em; }
.split-words .w > span { display: inline-block; transform: translateY(105%); transition: transform 1s var(--ease); transition-delay: calc(var(--i) * 60ms); }
.split-words.in-view .w > span { transform: none; }
.split-words .mark .w { overflow: visible; }

.progress { position: fixed; top: 0; left: 0; height: 2px; width: 100%; background: var(--orange); transform-origin: left; transform: scaleX(0); z-index: 70; }

.to-top {
  position: fixed; right: 20px; bottom: 20px; z-index: 40;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--white); color: var(--ink); border: 1.5px solid var(--ink); cursor: pointer;
  display: grid; place-items: center; box-shadow: 3px 3px 0 var(--orange);
  opacity: 0; transform: translateY(20px); pointer-events: none;
  transition: opacity .3s, transform .3s var(--ease);
}
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top svg { width: 20px; height: 20px; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero { min-height: auto; padding-bottom: 110px; }
  .sketch-site { max-width: 680px; }
  .services-grid { grid-template-columns: 1fr; }
  .service, .service + .service { padding: 34px 0 30px; border-left: 0; border-bottom: 1px solid var(--line); }
  .contact-box { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .burger { display: block; }
  .nav {
    position: fixed; inset: 0; z-index: 55;
    flex-direction: column; justify-content: center; gap: 36px;
    background: var(--paper);
    opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s;
  }
  .nav ul { flex-direction: column; align-items: center; gap: 20px; }
  .nav a:not(.btn) { font-family: var(--serif); font-size: 2.2rem; font-weight: 600; }
  .nav-open .nav { opacity: 1; visibility: visible; }
  .nav-open { overflow: hidden; }

  .steps { grid-template-columns: 1fr; gap: 0; padding-left: 74px; }
  .steps-path { display: none; }
  .steps::before { content: ""; position: absolute; left: 26px; top: 20px; bottom: 20px; width: 2px; background: repeating-linear-gradient(var(--line-light) 0 4px, transparent 4px 12px); }
  .steps::after { content: ""; position: absolute; left: 26px; top: 20px; width: 3px; height: calc((100% - 40px) * var(--progress, 0)); background: var(--orange); border-radius: 2px; }
  .step { padding: 14px 0 34px; }
  .step-dot { left: -74px; top: 8px; z-index: 1; }
  .project, .about .container, .case-grid { grid-template-columns: 1fr; }
  .portrait { margin-inline: auto; width: 82%; }
  .values { grid-template-columns: 1fr; }
  .value, .value + .value { padding: 14px 0; border-left: 0; border-bottom: 1px solid var(--line); }
}

@media (max-width: 600px) {
  body { font-size: 1rem; }
  .hero { padding-top: 118px; }
  .feature-list { grid-template-columns: 1fr; }
  .feature-list li:nth-child(even) { padding-left: 0; border-left: 0; }
  .ss-grip { width: 40px; height: 40px; }
  .ss-hint { font-size: 1.15rem; }
  .ss-hint em { display: none; }
  .copy-btn { display: none; }
  .contact-item .contact-link { padding-right: 4px; }
  .contact-box { box-shadow: 6px 6px 0 var(--orange); }
  .footer nav ul { gap: 8px 24px; }
  .scroll-cue { display: none; }
}

/* Mouvements réduits (réglage système) : on retire les déplacements,
   mais on garde les traits qui se dessinent et les fondus, sans effet de mouvement. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .scroll-cue svg { animation: none; }
  .js .reveal { transform: none; }
  .split-words .w > span { transform: none; opacity: 0; transition: opacity .8s var(--ease) calc(var(--i) * 60ms); }
  .split-words.in-view .w > span { opacity: 1; }
  .step-dot, .step .hand, .step.done .hand { transform: none !important; }
}
