
/* Site volontairement en clair uniquement, couleurs du logo. */
/* Layout : planche d'ingénieur habitée. Le plan se dessine, la voix est celle du fondateur ; une colonne de 1120px, grille de bureau d'études en fond. */
:root {
  --bg: #F4F6F9;
  --surface: #FFFFFF;
  --ink: #17202D;
  --muted: #586378;
  --line: #DAE0E9;
  --grid: rgba(29, 63, 149, .055);
  --navy: #1D3F95;
  --blue: #1F73C0;
  --cyan: #1FA9C4;
  --lime: #7DB733;
  --lime-soft: rgba(125, 183, 51, .16);
  --accent-ink: #1D3F95;
  --on-accent: #FFFFFF;
  --chip: transparent;
  --display: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --body: "IBM Plex Sans", "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --hand: "Caveat", "Segoe Script", cursive;
  --cyan-tint: #E6F6FA;
  --lime-tint: #EFF7E4;
  --blue-tint: #EAF1FB;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }
.wrap { max-width: 1120px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
@media (min-width: 720px) { .wrap { padding-left: max(32px, env(safe-area-inset-left, 0px)); padding-right: max(32px, env(safe-area-inset-right, 0px)); } }
h1, h2, h3 { font-family: var(--display); line-height: 1.15; margin: 0; text-wrap: balance; letter-spacing: -.01em; }
p { margin: 0; }
.label { font-family: var(--mono); font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

/* Boutons */
.btn { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; border: 0; cursor: pointer; font: 600 15px/1 var(--body); padding: 14px 20px; border-radius: 999px; background: var(--navy); color: var(--on-accent); transition: background .2s, transform .2s; }
.btn:hover { background: var(--blue); transform: translateY(-1px); }
.btn .arr { transition: transform .2s; }
.btn:hover .arr { transform: translateX(3px); }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn.ghost:hover { box-shadow: inset 0 0 0 1.5px var(--muted); }

/* Monogramme (remplacé par une photo dès qu'elle est disponible) */
.avatar { flex: none; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font: 800 18px var(--display); color: #fff; background: conic-gradient(from 210deg, #1D3F95, #1F73C0, #1FA9C4, #7DB733, #1D3F95); position: relative; }
.avatar::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: #1D3F95; z-index: 0; }
.avatar span { position: relative; z-index: 1; letter-spacing: .02em; }
.avatar.lg { width: 84px; height: 84px; font-size: 28px; }

/* En-tête */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--surface); }
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 9; background: color-mix(in srgb, var(--surface) 90%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.brand-mark { width: 34px; height: 46px; display: grid; place-items: center; background: var(--chip); border-radius: 8px; }
.brand-mark img { height: 40px; width: auto; display: block; }
.brand-name { font-family: var(--display); font-weight: 800; font-size: 20px; color: var(--ink); line-height: 1; }
.nav { display: flex; gap: 26px; font-size: 15px; font-weight: 500; }
.nav a { text-decoration: none; color: var(--muted); position: relative; padding-block: 4px; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--lime); transform: scaleX(0); transform-origin: left; transition: transform .25s; }
.nav a:hover { color: var(--ink); }
.nav a:hover::after { transform: scaleX(1); }
@media (max-width: 860px) { .nav { display: none; } }
@media (max-width: 420px) { .top .btn { padding: 12px 14px; font-size: 14px; } }

/* Hero */
.hero { background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 24px 24px; border-bottom: 1px solid var(--line); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; padding-block: 64px 80px; }
.hero-copy { display: grid; gap: 22px; min-width: 0; }
.hello { display: inline-flex; align-items: center; gap: 10px; font-weight: 500; }
.hello .wave { display: inline-block; transform-origin: 70% 80%; animation: wave 2.4s ease-in-out 1s 2; }
@keyframes wave { 0%,60%,100% { transform: rotate(0) } 10%,30% { transform: rotate(14deg) } 20%,40% { transform: rotate(-8deg) } }
.hero h1 { font-size: clamp(34px, 5vw, 56px); font-weight: 800; isolation: isolate; }
.rot { display: inline-block; color: var(--accent-ink); position: relative; white-space: nowrap; }
.rot::after { content: ""; position: absolute; left: 0; right: 0; bottom: .02em; height: .14em; background: var(--lime); opacity: .55; border-radius: 2px; z-index: -1; }
.rot.out { animation: rotOut .35s ease forwards; }
.rot.in { animation: rotIn .45s cubic-bezier(.2,.8,.2,1); }
@keyframes rotOut { to { transform: translateY(-.35em); opacity: 0; } }
@keyframes rotIn { from { transform: translateY(.45em); opacity: 0; } }
.hero .lead { font-size: 19px; color: var(--muted); max-width: 33em; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }

.stage { position: relative; min-width: 0; padding-bottom: 34px; }
.drawing { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px 18px 14px; box-shadow: 0 24px 48px -32px rgba(23, 32, 45, .35); transform: rotate(1.2deg); transition: transform .4s; }
.drawing:hover { transform: rotate(0); }
.drawing svg { display: block; width: 100%; height: auto; }
.drawing figcaption { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; border-top: 1px solid var(--line); margin-top: 10px; padding-top: 10px; }
.replay { font: 500 12px var(--mono); letter-spacing: .06em; text-transform: uppercase; background: none; border: 0; color: var(--blue); cursor: pointer; padding: 4px 0; }
.d-line { fill: none; stroke: var(--ink); stroke-linecap: round; }
.d-slab { fill: url(#hatch); stroke: var(--ink); stroke-width: 1.4; }
.d-hatch { stroke: var(--muted); stroke-width: 1; }
.d-cote { stroke: var(--blue); stroke-width: 1; fill: none; }
.d-arrow { fill: var(--blue); }
.d-txt { font-family: var(--mono); font-size: 12px; fill: var(--blue); }
.d-txt.dim { fill: var(--muted); }
.d-hand { font-family: var(--hand); font-size: 22px; fill: var(--lime); }
.drawing.play .draw { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw var(--d, .8s) ease-out var(--t, 0s) forwards; }
.drawing.play .pop { opacity: 0; animation: pop .5s ease var(--t, 0s) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

.chip { position: absolute; left: -18px; bottom: 0; display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 12px 18px 12px 12px; box-shadow: 0 16px 32px -20px rgba(23, 32, 45, .4); max-width: calc(100% + 18px); }
.chip strong { display: block; font-size: 15px; line-height: 1.25; }
.chip small { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--muted); }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 0 var(--lime); animation: pulse 2s infinite; flex: none; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--lime) 60%, transparent); } 70%,100% { box-shadow: 0 0 0 9px transparent; } }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; gap: 40px; padding-block: 44px 56px; } .chip { left: 12px; } }

/* Bandeau défilant */
.ticker { background: var(--navy); color: var(--on-accent); overflow: hidden; }
.ticker-track { display: flex; width: max-content; animation: tick 38s linear infinite; padding-block: 14px; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker span { font: 600 15px var(--display); letter-spacing: .02em; white-space: nowrap; padding-inline: 18px; display: inline-flex; align-items: center; gap: 36px; }
.ticker span::after { content: ""; width: 7px; height: 7px; border-radius: 2px; background: var(--lime); transform: rotate(45deg); }
@keyframes tick { to { transform: translateX(-50%); } }

/* Sections */
section.block .wrap { padding-block: 92px; }
.sec-head { display: grid; gap: 12px; max-width: 40em; margin-bottom: 44px; }
.sec-head h2 { font-size: clamp(28px, 3.5vw, 40px); font-weight: 700; }
.sec-head p { color: var(--muted); }
.alt { background: var(--surface); border-block: 1px solid var(--line); }
@supports (animation-timeline: view()) {
  .rise { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 60%; }
  @keyframes rise { from { transform: translateY(36px); } to { transform: none; } }
}

/* Expertises */
.domains { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.domain { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 30px; display: grid; grid-template-columns: 56px 1fr; gap: 6px 20px; align-content: start; transition: transform .3s, box-shadow .3s, border-color .3s; }
.domain:hover { transform: translateY(-4px); box-shadow: 0 22px 40px -28px rgba(23, 32, 45, .45); border-color: color-mix(in srgb, var(--c) 55%, var(--line)); }
.ico { grid-row: span 3; width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 14%, transparent); }
.ico svg { width: 34px; height: 34px; fill: none; stroke: var(--c); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ico svg * { stroke-dasharray: 1; stroke-dashoffset: 0; }
.domain:hover .ico svg * { animation: redraw .9s ease-out; }
@keyframes redraw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
.domain h3 { font-size: 21px; font-weight: 700; padding-top: 4px; }
.domain p { color: var(--muted); min-width: 0; }
.domain ul { list-style: none; padding: 0; margin: 8px 0 0; display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
.domain li { font-size: 14px; padding: 4px 11px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); }
@media (max-width: 780px) { .domains { grid-template-columns: 1fr; } .domain { padding: 24px 20px; grid-template-columns: 1fr; } .ico { grid-row: auto; } }

/* Méthode interactive */
.method { display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; align-items: stretch; }
.steps { display: grid; gap: 8px; align-content: start; }
.step-btn { text-align: left; display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: center; background: transparent; border: 1px solid transparent; border-radius: 14px; padding: 14px 16px; cursor: pointer; font: inherit; color: var(--muted); position: relative; overflow: hidden; transition: background .25s, color .25s, border-color .25s; }
.step-btn .num { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font: 700 15px var(--display); border: 1.5px solid var(--line); color: var(--muted); transition: all .25s; }
.step-btn strong { font: 700 17px var(--display); display: block; }
.step-btn .bar { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: var(--lime); transform: scaleX(0); transform-origin: left; }
.step-btn[aria-selected="true"] { background: var(--bg); color: var(--ink); border-color: var(--line); }
.step-btn[aria-selected="true"] .num { background: var(--navy); border-color: var(--navy); color: var(--on-accent); }
.step-btn[aria-selected="true"] .bar { animation: fill var(--dur, 6s) linear forwards; }
.method.paused .step-btn .bar { animation-play-state: paused; }
@keyframes fill { to { transform: scaleX(1); } }
.panel { background: var(--bg); border: 1px solid var(--line); border-radius: 18px; padding: 34px; display: grid; gap: 16px; align-content: start; min-width: 0; }
.panel h3 { font-size: 26px; font-weight: 700; }
.panel p { color: var(--muted); font-size: 17.5px; }
.panel .get { display: flex; gap: 12px; align-items: flex-start; background: var(--lime-soft); border-radius: 12px; padding: 14px 16px; color: var(--ink); font-size: 16px; }
.panel .get b { font-weight: 600; }
.panel.swap { animation: swap .45s ease; }
@keyframes swap { from { opacity: 0; transform: translateY(8px); } }
@media (max-width: 860px) { .method { grid-template-columns: 1fr; } .panel { padding: 24px; } }

/* Histoire */
.story { display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: start; }
.quote { display: grid; gap: 22px; min-width: 0; }
.quote blockquote { margin: 0; font: 600 clamp(22px, 2.6vw, 30px)/1.4 var(--display); letter-spacing: -.01em; text-wrap: pretty; }
.quote blockquote::before { content: "«"; display: block; font-size: 72px; line-height: .6; color: var(--lime); margin-bottom: 10px; }
.quote p { color: var(--muted); max-width: 36em; }
.sig { display: flex; align-items: center; gap: 16px; margin-top: 6px; }
.sig .name { font: 600 34px/1 var(--hand); color: var(--accent-ink); }
.sig small { display: block; color: var(--muted); font-size: 14px; margin-top: 4px; }
.timeline { list-style: none; margin: 0; padding: 26px 26px 6px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.timeline li { position: relative; padding: 0 0 22px 28px; border-left: 2px solid var(--line); margin-left: 6px; }
.timeline li:last-child { border-left-color: transparent; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--surface); border: 2px solid var(--blue); }
.timeline li.now::before { background: var(--lime); border-color: var(--lime); box-shadow: 0 0 0 5px var(--lime-soft); }
.timeline .when { font: 500 13px var(--mono); color: var(--muted); font-variant-numeric: tabular-nums; display: block; }
.timeline .what { font-weight: 600; display: block; }
.timeline .sub { display: block; color: var(--muted); font-size: 15px; }
@media (max-width: 880px) { .story { grid-template-columns: 1fr; gap: 40px; } }

/* Engagements */
.promises { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.promise { padding: 28px; border-radius: 16px; background: var(--bg); border: 1px solid var(--line); display: grid; gap: 10px; align-content: start; }
.promise .big { font: 800 40px/1 var(--display); color: var(--accent-ink); font-variant-numeric: tabular-nums; }
.promise h3 { font-size: 18px; font-weight: 700; }
.promise p { color: var(--muted); font-size: 15.5px; }
@media (max-width: 820px) { .promises { grid-template-columns: 1fr; } }

/* Références */
.refs { display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: center; padding: 38px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; }
.refs-copy { display: grid; gap: 14px; min-width: 0; }
.refs-copy h3 { font-size: 23px; font-weight: 700; }
.refs p { color: var(--muted); }
.refs .note { font-size: 14.5px; border-left: 3px solid var(--cyan); padding-left: 14px; }
.refs-cta { display: grid; gap: 12px; justify-items: start; }
@media (max-width: 760px) { .refs { grid-template-columns: 1fr; padding: 26px 22px; } }

/* Contact */
.contact { display: grid; grid-template-columns: .85fr 1.15fr; gap: 56px; }
.contact-info { display: grid; gap: 22px; align-content: start; min-width: 0; }
.contact-info h2 { font-size: clamp(28px, 3.5vw, 40px); font-weight: 700; }
.contact-info p { color: var(--muted); }
.me { display: flex; gap: 16px; align-items: center; padding: 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.me strong { display: block; }
.me small { color: var(--muted); font-size: 14px; }
.coord { display: grid; gap: 14px; }
.coord div { display: grid; gap: 2px; }
.coord .val { font-weight: 500; word-break: break-word; }
.copy { font: 500 12.5px var(--mono); background: none; border: 1px solid var(--line); color: var(--muted); border-radius: 999px; padding: 3px 10px; cursor: pointer; margin-left: 8px; vertical-align: 2px; }
.copy:hover { color: var(--ink); border-color: var(--muted); }
form { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 32px; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field label, .field legend { font-size: 14px; font-weight: 500; padding: 0; }
.opt { color: var(--muted); font-weight: 400; }
fieldset { border: 0; margin: 0; padding: 0; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.pills input { position: absolute; opacity: 0; pointer-events: none; }
.pills label { font-size: 14.5px; font-weight: 500; padding: 9px 15px; border-radius: 999px; border: 1.5px solid var(--line); cursor: pointer; transition: all .2s; background: var(--bg); }
.pills label:hover { border-color: var(--muted); }
.pills input:checked + label { background: var(--navy); border-color: var(--navy); color: var(--on-accent); }
.pills input:focus-visible + label { outline: 2px solid var(--cyan); outline-offset: 2px; }
input[type="text"], input[type="email"], input[type="tel"], textarea { font: 400 16px var(--body); color: var(--ink); background: var(--bg); border: 1.5px solid var(--line); border-radius: 10px; padding: 11px 13px; width: 100%; transition: border-color .2s; }
input:focus, textarea:focus { outline: none; border-color: var(--cyan); }
textarea { min-height: 130px; resize: vertical; }
.form-foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 16px; justify-content: space-between; }
.form-foot small { color: var(--muted); font-size: 13.5px; max-width: 30em; }
.status { grid-column: 1 / -1; font-size: 15px; padding: 12px 14px; border-radius: 10px; background: var(--lime-soft); }
.hp { position: absolute; left: -9999px; }
@media (max-width: 880px) { .contact { grid-template-columns: 1fr; gap: 36px; } }
@media (max-width: 560px) { form { grid-template-columns: 1fr; padding: 22px; } }

/* Cartouche */
footer { border-top: 1px solid var(--line); background: var(--surface); }
footer .wrap { padding-block: 32px 40px; }
.cartouche { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); border: 1.5px solid var(--ink); }
.cartouche > div { padding: 12px 14px; display: grid; gap: 4px; border-left: 1px solid var(--ink); min-width: 0; }
.cartouche > div:first-child { border-left: 0; display: flex; align-items: center; gap: 12px; }
.cartouche .val { font-size: 15px; font-weight: 500; word-break: break-word; }
.cartouche img { height: 34px; width: auto; }
.legal { margin-top: 16px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; color: var(--muted); font-size: 13.5px; }
@media (max-width: 760px) { .cartouche { grid-template-columns: 1fr 1fr; } .cartouche > div:first-child { grid-column: 1 / -1; border-bottom: 1px solid var(--ink); } .cartouche > div:nth-child(2) { border-left: 0; } .cartouche > div:nth-child(4) { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--ink); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .drawing.play .draw { stroke-dashoffset: 0; } .drawing.play .pop { opacity: 1; }
}

/* ===== Couleurs ===== */
.btn { background: linear-gradient(135deg, var(--blue), var(--cyan)); box-shadow: 0 10px 22px -12px rgba(31, 115, 192, .7); }
.btn:hover { background: linear-gradient(135deg, var(--navy), var(--blue)); }
.btn.ghost { background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--line); }
.top { border-bottom: 0; }
.top::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: linear-gradient(90deg, var(--navy), var(--blue), var(--cyan), var(--lime)); }

.hero { background-color: #F7FAFD; background-image:
  radial-gradient(520px 380px at 92% 12%, rgba(31, 169, 196, .20), transparent 70%),
  radial-gradient(460px 360px at 70% 100%, rgba(125, 183, 51, .20), transparent 70%),
  radial-gradient(480px 360px at 0% 0%, rgba(31, 115, 192, .12), transparent 70%),
  linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: auto, auto, auto, 24px 24px, 24px 24px; }
.rot::after { background: linear-gradient(90deg, var(--cyan), var(--lime)); opacity: .45; }

.ticker { background: linear-gradient(90deg, var(--cyan-tint), var(--lime-tint), var(--blue-tint)); color: var(--navy); border-bottom: 1px solid var(--line); }
.ticker span:nth-child(4n+1)::after { background: var(--cyan); }
.ticker span:nth-child(4n+2)::after { background: var(--lime); }
.ticker span:nth-child(4n+3)::after { background: var(--blue); }
.ticker span:nth-child(4n)::after { background: var(--navy); }

#methode { background: var(--cyan-tint); }
#engagements { background: var(--lime-tint); }
#contact { background: var(--blue-tint); }
#methode .panel { background: var(--surface); }
.sec-head .label { color: var(--blue); }

.domain { border-top: 4px solid var(--c); }
.domain:hover { background: color-mix(in srgb, var(--c) 6%, var(--surface)); }
.domain li { background: color-mix(in srgb, var(--c) 9%, var(--surface)); border-color: color-mix(in srgb, var(--c) 28%, var(--line)); }

.step-btn:nth-child(1) { --c: var(--navy); } .step-btn:nth-child(2) { --c: var(--blue); }
.step-btn:nth-child(3) { --c: var(--cyan); } .step-btn:nth-child(4) { --c: var(--lime); }
.step-btn .num { color: var(--c); border-color: color-mix(in srgb, var(--c) 45%, var(--line)); }
.step-btn[aria-selected="true"] { background: var(--surface); }
.step-btn[aria-selected="true"] .num { background: var(--c); border-color: var(--c); color: #fff; }
.step-btn .bar { background: var(--c); }
.panel { border-top: 4px solid var(--pc, var(--navy)); }

.timeline li:nth-child(1)::before { border-color: var(--navy); }
.timeline li:nth-child(2)::before { border-color: var(--blue); }
.timeline li:nth-child(3)::before { border-color: var(--cyan); }
.timeline li:nth-child(4)::before { border-color: var(--blue); }
.timeline li:nth-child(5)::before { border-color: var(--cyan); }
.quote blockquote::before { background: linear-gradient(135deg, var(--cyan), var(--lime)); -webkit-background-clip: text; background-clip: text; color: transparent; }

.promise { background: var(--surface); border-top: 4px solid var(--c); }
.promise:nth-child(1) { --c: var(--blue); } .promise:nth-child(2) { --c: var(--cyan); } .promise:nth-child(3) { --c: var(--lime); }
.promise .big { color: var(--c); }

.refs { background: linear-gradient(135deg, var(--surface) 55%, var(--cyan-tint)); }
.pills input:checked + label { background: linear-gradient(135deg, var(--blue), var(--cyan)); border-color: transparent; color: #fff; }
.me { background: var(--surface); }
footer { border-top: 0; position: relative; }
footer::before { content: ""; display: block; height: 4px; background: linear-gradient(90deg, var(--navy), var(--blue), var(--cyan), var(--lime)); }

body { margin: 0; } img { max-width: 100%; } [hidden] { display: none !important; }
/* ===== Site multipage ===== */
.nav a[aria-current="page"] { color: var(--ink); }
.nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav .only-mobile { display: none; }
.burger { display: none; font: 600 14px var(--body); background: var(--surface); color: var(--ink); border: 1.5px solid var(--line); border-radius: 999px; padding: 10px 16px; cursor: pointer; }
@media (max-width: 860px) {
  .burger { display: inline-flex; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: 0 18px 30px -24px rgba(23, 32, 45, .5);
    padding: 6px max(16px, env(safe-area-inset-right, 0px)) 14px max(16px, env(safe-area-inset-left, 0px)); }
  .nav.open { display: flex; }
  .nav a { padding: 13px 4px; border-bottom: 1px solid var(--line); font-size: 16px; }
  .nav a:last-child { border-bottom: 0; }
  .nav a::after { display: none; }
  .nav a[aria-current="page"] { color: var(--blue); }
  .nav .only-mobile { display: block; }
}
@media (max-width: 540px) { .cta-top { display: none; } }

.page-head { background-color: #F7FAFD; background-image:
  radial-gradient(520px 320px at 95% 0%, rgba(31, 169, 196, .18), transparent 70%),
  radial-gradient(420px 300px at 75% 120%, rgba(125, 183, 51, .18), transparent 70%),
  linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: auto, auto, 24px 24px, 24px 24px; border-bottom: 1px solid var(--line); }
.page-head .wrap { padding-block: 56px 52px; display: grid; gap: 14px; }
.page-head .label { color: var(--blue); }
.page-head h1 { font-size: clamp(32px, 4.6vw, 50px); font-weight: 800; max-width: 18em; }
.page-head .lead { font-size: 19px; color: var(--muted); max-width: 36em; }
.crumbs { font-size: 14px; color: var(--muted); }
.crumbs a { color: var(--muted); }

.contact-info h1 { font-size: clamp(30px, 4vw, 44px); font-weight: 800; }
#contact .wrap { padding-block: 64px 92px; }

/* Aperçus de l'accueil */
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.tile { text-decoration: none; background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--c); border-radius: 16px; padding: 24px; display: grid; gap: 12px; align-content: start; transition: transform .3s, box-shadow .3s, background .3s; }
.tile:hover { transform: translateY(-4px); box-shadow: 0 22px 40px -28px rgba(23, 32, 45, .45); background: color-mix(in srgb, var(--c) 6%, var(--surface)); }
.tile:hover .ico svg * { animation: redraw .9s ease-out; }
.tile h3 { font-size: 18px; font-weight: 700; }
.tile p { color: var(--muted); font-size: 15px; }
.tile .more { font-weight: 600; font-size: 14.5px; color: var(--blue); margin-top: 4px; }
.tile .more span { display: inline-block; transition: transform .2s; }
.tile:hover .more span { transform: translateX(4px); }
@media (max-width: 980px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .tiles { grid-template-columns: 1fr; } }
.see-all { margin-top: 28px; }

.founder-card { display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 32px; }
.founder-card blockquote { margin: 0; font: 600 clamp(19px, 2.2vw, 24px)/1.45 var(--display); }
.founder-card small { display: block; margin-top: 10px; color: var(--muted); font-size: 15px; }
@media (max-width: 820px) { .founder-card { grid-template-columns: 1fr; padding: 26px 22px; } }

.cta-band .wrap { padding-block: 0 92px; }
.cta-box { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding: 40px; border-radius: 22px;
  background: linear-gradient(120deg, var(--cyan-tint), var(--lime-tint) 60%, var(--blue-tint)); border: 1px solid var(--line); }
.cta-box h2 { font-size: clamp(24px, 3vw, 32px); font-weight: 700; }
.cta-box p { color: var(--muted); margin-top: 8px; max-width: 34em; }
.cta-box > div { min-width: 0; }
@media (max-width: 560px) { .cta-box { padding: 28px 22px; } }
.cta-band.on-white .wrap { padding-top: 0; }
section.block + .cta-band .wrap { padding-top: 0; }

.foot-nav { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 18px; font-size: 14.5px; font-weight: 500; }
.foot-nav a { text-decoration: none; color: var(--muted); }
.foot-nav a:hover { color: var(--ink); }

.thanks { text-align: left; }

/* ===== Métiers ===== */
.metiers { display: grid; gap: 28px; }
.metier { display: grid; grid-template-columns: 1.15fr .85fr; gap: 0; background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--c); border-radius: 20px; overflow: hidden; }
.metier:nth-child(even) .m-media { order: -1; }
.m-copy { padding: 36px; display: grid; gap: 16px; align-content: start; min-width: 0; }
.m-title { display: flex; align-items: center; gap: 16px; }
.m-title h2 { font-size: clamp(24px, 2.8vw, 30px); font-weight: 700; }
.m-copy > p { color: var(--muted); max-width: 36em; }
.grp { display: grid; gap: 8px; }
.grp .label { color: var(--c); filter: brightness(.8); }
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.chips li { font-size: 14px; padding: 5px 12px; border-radius: 999px; background: color-mix(in srgb, var(--c) 10%, var(--surface)); border: 1px solid color-mix(in srgb, var(--c) 30%, var(--line)); }
.m-media { margin: 0; position: relative; min-height: 280px; background: color-mix(in srgb, var(--c) 10%, var(--surface)); }
.m-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.m-media figcaption { position: absolute; left: 14px; bottom: 14px; right: 14px; font-size: 13px; color: #fff; background: rgba(15, 22, 34, .62); backdrop-filter: blur(4px); padding: 6px 10px; border-radius: 8px; width: fit-content; }
.m-calc { display: grid; align-content: center; justify-items: center; gap: 12px; padding: 28px; }
.m-calc svg { width: 100%; max-width: 300px; height: auto; }
.calc-lines line, .calc-lines path { stroke: var(--navy); stroke-width: 2.5; fill: none; stroke-linecap: round; }
.calc-lines .defl { stroke: var(--lime); stroke-width: 2.5; stroke-dasharray: 6 5; animation: sag 3s ease-in-out infinite alternate; }
@keyframes sag { from { d: path("M40 40 Q130 46 220 40"); } to { d: path("M40 40 Q130 72 220 40"); } }
.calc-loads line { stroke: var(--blue); stroke-width: 1.6; }
.calc-ref { font: 500 13px var(--mono); color: var(--navy); }
@media (max-width: 860px) { .metier { grid-template-columns: 1fr; } .metier:nth-child(even) .m-media { order: 0; } .m-media { min-height: 240px; } .m-copy { padding: 26px 22px; } }
.tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 860px) { .tiles { grid-template-columns: 1fr; } }

/* ===== Références ===== */
.ref-note { display: flex; gap: 18px; align-items: flex-start; padding: 22px 24px; border-radius: 16px; background: var(--cyan-tint); border: 1px solid color-mix(in srgb, var(--cyan) 30%, var(--line)); }
.ref-note p { color: var(--ink); max-width: 60em; font-size: 16px; }
.ref-index { display: flex; flex-wrap: wrap; gap: 10px; margin: 28px 0 40px; }
.ref-index a { text-decoration: none; display: inline-flex; gap: 10px; align-items: center; padding: 9px 16px 9px 10px; border-radius: 999px; background: var(--surface); border: 1.5px solid var(--line); font-weight: 500; font-size: 15px; transition: border-color .2s, transform .2s; }
.ref-index a:hover { border-color: var(--c); transform: translateY(-2px); }
.ref-index a span { font: 600 12.5px var(--mono); color: #fff; background: var(--c); border-radius: 999px; padding: 3px 9px; }
.refs-list { display: grid; gap: 36px; }
.ref { display: grid; grid-template-columns: 1fr 1fr; gap: 0; background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--c); border-radius: 20px; overflow: hidden; scroll-margin-top: 90px; }
.ref:nth-child(even) .ref-media { order: 2; }
.ref-media { display: grid; grid-template-rows: 1fr auto; gap: 6px; padding: 6px; background: color-mix(in srgb, var(--c) 8%, var(--surface)); min-width: 0; }
.ph { position: relative; border: 0; padding: 0; margin: 0; cursor: zoom-in; border-radius: 14px; overflow: hidden; background: var(--line); display: block; width: 100%; }
.ph img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s; }
.ph:hover img { transform: scale(1.04); }
.ph.main { min-height: 300px; }
.ph.main img { position: absolute; inset: 0; }
.ph-row { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; }
.ph-row .ph { aspect-ratio: 4 / 3; max-width: 100%; }
.zoom { position: absolute; right: 12px; bottom: 12px; font: 600 12px var(--body); color: #fff; background: rgba(15, 22, 34, .6); padding: 5px 10px; border-radius: 999px; opacity: 0; transition: opacity .2s; }
.ph:hover .zoom, .ph:focus-visible .zoom { opacity: 1; }
.ref-body { padding: 34px; display: grid; gap: 14px; align-content: start; min-width: 0; }
.ref-tags { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.tag { font: 600 12.5px var(--mono); letter-spacing: .04em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; background: var(--c); color: #fff; }
.tag + .tag { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.where { color: var(--muted); font-size: 15px; font-weight: 500; }
.ref-body h2 { font-size: clamp(22px, 2.6vw, 28px); font-weight: 700; }
.what { color: var(--muted); }
.ref-body dl { margin: 6px 0 0; display: grid; gap: 14px; }
.ref-body dl > div { display: grid; gap: 6px; padding-top: 14px; border-top: 1px solid var(--line); }
.ref-body dd { margin: 0; font-size: 15.5px; }
@media (max-width: 900px) { .ref { grid-template-columns: 1fr; } .ref:nth-child(even) .ref-media { order: 0; } .ref-body { padding: 26px 22px; } .ph.main { min-height: 240px; } }

.lightbox { border: 0; padding: 0; background: transparent; max-width: min(1100px, 94vw); max-height: 92vh; }
.lightbox::backdrop { background: rgba(10, 15, 25, .82); }
.lightbox img { display: block; max-width: 100%; max-height: 80vh; margin: 0 auto; border-radius: 12px; }
.lb-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; color: #fff; padding: 12px 4px 0; font-size: 15px; }
.lb-bar button { font: 600 14px var(--body); color: #fff; background: rgba(255, 255, 255, .14); border: 0; border-radius: 999px; padding: 9px 16px; cursor: pointer; }

.ref-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.ref-tile { position: relative; text-decoration: none; border-radius: 18px; overflow: hidden; aspect-ratio: 4 / 3; max-width: 100%; display: block; border-bottom: 4px solid var(--c); background: var(--line); }
.ref-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.ref-tile:hover img { transform: scale(1.06); }
.rt-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 18px 16px; background: linear-gradient(transparent, rgba(12, 18, 30, .85)); color: #fff; display: grid; gap: 2px; }
.rt-body .label { color: rgba(255, 255, 255, .8); }
.rt-body strong { font: 700 18px/1.25 var(--display); }
@media (max-width: 860px) { .ref-tiles { grid-template-columns: 1fr; } }

/* ===== Mentions légales ===== */
.legal-page { display: grid; gap: 28px; max-width: 760px; }
.legal-page h2 { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.legal-page p { color: var(--muted); }
mark { background: color-mix(in srgb, var(--lime) 35%, transparent); color: var(--ink); padding: 0 4px; border-radius: 3px; }

/* ===== Planches en boucle ===== */
.sheet { display: none; }
.sheet.on { display: inline; }
.sheet.play .draw { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw var(--d, .8s) ease-out var(--t, 0s) forwards; }
.sheet.play .pop { opacity: 0; animation: pop .5s ease var(--t, 0s) forwards; }
.d-line[stroke-dasharray="4 4"] { stroke-dasharray: 4 4; }
.sheet.play .d-line[stroke-dasharray="4 4"] { stroke-dasharray: 4 4; stroke-dashoffset: 0; opacity: 0; animation: pop .5s ease var(--t, 0s) forwards; }
.halo { paint-order: stroke; stroke: var(--surface); stroke-width: 4px; }
.sheet-nav { display: inline-flex; align-items: center; gap: 10px; }
.dots { display: inline-flex; gap: 6px; }
.dots button { width: 9px; height: 9px; border-radius: 50%; border: 0; padding: 0; background: var(--line); cursor: pointer; transition: background .2s, width .2s; }
.dots button[aria-current="true"] { background: var(--blue); width: 22px; border-radius: 5px; }
.replay { font-size: 16px; }
.stage { padding-bottom: 62px; }
@media (prefers-reduced-motion: reduce) { .sheet.play .draw { stroke-dashoffset: 0; stroke-dasharray: none; } .sheet.play .pop, .sheet.play .d-line[stroke-dasharray="4 4"] { opacity: 1; } }

/* ===== Planches d'exécution ===== */
.drawing svg text { font-family: var(--mono); }
.p-t { font-size: 7.4px; fill: var(--ink); }
.p-t.b { font-weight: 600; }
.p-t.big { font-size: 8.6px; }
.p-t.n { font-size: 6.2px; }
.p-t.dim { fill: var(--muted); font-size: 6.4px; letter-spacing: .06em; }
.p-dim { font-size: 7.6px; fill: var(--blue); font-family: var(--mono); }
.p-fill { fill: var(--surface); }
.p-frame { fill: none; stroke: var(--ink); stroke-width: 1.2; }
.p-tab { fill: none; stroke: var(--ink); stroke-width: 1; }
.p-tabl { stroke: var(--ink); stroke-width: .6; }
.p-ax { stroke: #C0392B; stroke-width: .7; stroke-dasharray: 10 3 2 3; opacity: .75; }
.p-ext { stroke-width: .6; }
.p-lead { stroke: var(--ink); stroke-width: .7; }
.p-dot { fill: var(--ink); }
.p-tag { fill: var(--surface); stroke: var(--ink); stroke-width: .9; }
.p-call { fill: none; stroke: var(--blue); stroke-width: 1; stroke-dasharray: 3 2; }
.p-under { stroke: var(--ink); stroke-width: .8; }
.p-hid { stroke: var(--muted); stroke-width: .8; stroke-dasharray: 3 2; fill: none; }
.p-thin { stroke: var(--ink); stroke-width: .6; fill: none; }
.p-open { fill: none; stroke: var(--ink); stroke-width: .8; stroke-dasharray: 4 3; }
.p-cut { stroke: var(--ink); stroke-width: 2.2; }
.p-rpt { fill: var(--lime); opacity: .7; }
.p-behind { opacity: .55; }
.d-hand.sm { font-size: 13px; }
.drawing .d-slab { stroke-width: .9; }
.sheet.play .p-img { animation: wipe 2.6s cubic-bezier(.3,.1,.2,1) .1s both; }
@keyframes wipe { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@media (prefers-reduced-motion: reduce) { .sheet.play .p-img { animation: none; } }

/* ===== Illustrations 3D ===== */
.sheet.play .bld { animation: build .55s cubic-bezier(.2,.8,.2,1) var(--t, 0s) both; }
@keyframes build { from { opacity: 0; transform: translateY(-16px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .sheet.play .bld { animation: none; } }

/* ===== Diaporama photo ===== */
.photo-show { padding: 10px 10px 12px; transform: rotate(1deg); }
.slides { position: relative; aspect-ratio: 4 / 3; max-width: 100%; border-radius: 10px; overflow: hidden; background: var(--line); }
.slide { display: block; position: absolute; inset: 0; opacity: 0; transition: opacity 1s ease; }
.slide.on { display: block; opacity: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.slide.play img { animation: kb 8s ease-out both; }
@keyframes kb { from { transform: scale(1.1); } to { transform: scale(1); } }
.photo-show figcaption { padding-inline: 4px; }
.nw { white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { .slide { transition: none; } .slide.play img { animation: none; } }
