/* WebDev Studio, refonte test (septembre 2026)
   Couleurs tirées du logo : graphite + ambre. Une seule famille : Mona Sans (axe de largeur). */

@font-face {
  font-family: "Mona Sans"; font-style: normal; font-weight: 200 900; font-stretch: 75% 125%; font-display: swap;
  src: url("/fonts/MonaSans-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Mona Sans"; font-style: normal; font-weight: 200 900; font-stretch: 75% 125%; font-display: swap;
  src: url("/fonts/MonaSans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ink: #201F1D;          /* graphite : fonds sombres, titres */
  --ink-raised: #2B2A27;
  --amber: #FBB03B;        /* ambre du logo : actions principales */
  --amber-hover: #FFC262;
  --mist: #F3F3F0;         /* fond clair alterné */
  --white: #FFFFFF;
  --text: #3B3A37;
  --muted: #6B6A65;
  --line: #E0DFDA;
  --on-ink: #EEEDEA;
  --on-ink-muted: #B5B3AD;
  --on-ink-line: rgba(238, 237, 234, .14);

  --font: "Mona Sans", "Helvetica Neue", Arial, sans-serif;
  --wide: 116%;
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(80px, 10vw, 136px);
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  font-kerning: normal;
  text-rendering: optimizeLegibility;
}
@media (min-width: 960px) { body { font-size: 1.125rem; } }

img, svg { display: block; max-width: 100%; }
sup { font-size: .7em; line-height: 0; vertical-align: .45em; }
img { height: auto; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
a { color: inherit; }

h1, h2, h3 {
  margin: 0;
  color: var(--ink);
  font-weight: 700;
  font-stretch: var(--wide);
  letter-spacing: -0.022em;
  line-height: 1.06;
  text-wrap: balance;
}
h2 { font-size: clamp(2rem, 1.35rem + 2.4vw, 3.25rem); }
h3 { font-size: 1.3125rem; line-height: 1.2; letter-spacing: -0.012em; }

:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 2px; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  padding: 12px 18px; background: var(--amber); color: var(--ink); font-weight: 600; border-radius: 4px;
}
.skip-link:focus { top: 12px; }

/* Boutons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0.7em 1.3em;
  border: 1px solid transparent; border-radius: 4px;
  font: inherit; font-size: 1rem; font-weight: 600; line-height: 1.2;
  text-decoration: none; cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn-sm { min-height: 40px; padding: 0.5em 1em; font-size: .9375rem; }
.btn-lg { min-height: 56px; padding: 0.8em 1.6em; font-size: 1.0625rem; }
.btn-block { width: 100%; }
.btn-amber { background: var(--amber); color: var(--ink); }
.btn-amber:hover { background: var(--amber-hover); }
.btn-ink { background: var(--ink); color: var(--white); }
.btn-ink:hover { background: #3E3C39; }
.btn:disabled { opacity: .6; cursor: progress; }

/* Sections sombres : focus ambre */
.site-header :focus-visible, .hero :focus-visible, .contact-intro :focus-visible, .offer-featured :focus-visible {
  outline-color: var(--amber);
}

/* ---------- En-tête ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--ink);
  border-bottom: 1px solid var(--on-ink-line);
}
.header-inner { display: flex; align-items: center; gap: 28px; height: var(--header-h); }
.brand { flex: none; }
.brand img { width: auto; height: 44px; }

.main-nav { margin-left: auto; display: flex; align-items: center; }
.main-nav ul { display: flex; gap: 28px; margin: 0; padding: 0; list-style: none; }
.main-nav a:not(.btn) {
  color: var(--on-ink-muted); font-size: .9375rem; font-weight: 500; text-decoration: none;
  transition: color .15s ease;
}
.main-nav a:not(.btn):hover { color: var(--white); }
.nav-cta { display: none; }

.header-phone {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--white); font-size: .9375rem; font-weight: 600; text-decoration: none;
}
.header-phone svg { color: var(--amber); }

.nav-toggle {
  display: none; width: 44px; height: 44px; margin-right: -10px;
  background: none; border: 0; color: var(--white); cursor: pointer;
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  display: block; width: 22px; height: 2px; margin: auto; background: currentColor; border-radius: 1px;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -7px; }
.nav-toggle-bars::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1023px) {
  .header-inner { gap: 16px; }
  .nav-toggle { display: block; }
  .header-phone { margin-left: auto; }
  .main-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    display: none; flex-direction: column; align-items: stretch; gap: 20px;
    padding: 12px var(--gutter) 28px;
    background: var(--ink); border-bottom: 1px solid var(--on-ink-line);
  }
  .main-nav.is-open { display: flex; }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav a:not(.btn) { display: block; padding: 14px 0; font-size: 1.125rem; color: var(--on-ink); border-bottom: 1px solid var(--on-ink-line); }
  .nav-cta { display: flex; }
}
@media (max-width: 559px) {
  .header-cta { display: none; }
  .header-phone span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .header-phone { width: 44px; height: 44px; justify-content: center; }
  .header-phone svg { width: 22px; height: 22px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  color: var(--on-ink);
  background:
    radial-gradient(40% 55% at 77% 50%, rgba(251, 176, 59, .07), transparent 70%),
    radial-gradient(58% 75% at 75% 52%, #302E2B, transparent 72%),
    var(--ink);
  padding: clamp(40px, 5vw, 72px) 0 clamp(48px, 6vw, 88px);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 4vw, 56px);
  align-items: center;
}
.hero h1 {
  color: var(--white);
  font-size: clamp(2.125rem, 1.2rem + 2.6vw, 3.25rem);
  font-stretch: 106%;
  line-height: 1.04;
  letter-spacing: -0.028em;
}
.h1-for {
  display: block; margin-top: .45em;
  color: var(--amber); font-size: .5em; font-weight: 600; font-stretch: 100%;
  letter-spacing: -0.01em; line-height: 1.3;
}
.hero-lead { margin-top: 24px; font-size: clamp(1.0625rem, .95rem + .35vw, 1.25rem); line-height: 1.55; max-width: 30em; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 36px; }
.link-light {
  color: var(--white); font-weight: 600; text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, .4); text-decoration-thickness: 1px; text-underline-offset: 6px;
  transition: text-decoration-color .15s ease;
}
.link-light:hover { text-decoration-color: var(--amber); }

/* L'empilement isométrique : site, référencement, automatisations, applications métier */
.stack { margin: 0; margin-right: clamp(-96px, calc((var(--wrap) - 100vw) / 2 + 24px), 0px); }
.stack-art, .stack-canvas { position: relative; }
.stack-svg { width: 100%; height: auto; overflow: visible; }
.stack-shadow { fill: #0F0E0D; opacity: .6; filter: url(#stack-blur); }
.stack-guides line { stroke: var(--on-ink-muted); stroke-width: 1; stroke-dasharray: 3 5; opacity: .4; }
.plate-mark circle { fill: var(--amber); transform-box: fill-box; transform-origin: center; transition: scale .4s ease; }
.plate-mark line { stroke: var(--on-ink-muted); stroke-width: 1; opacity: .6; }
.plate.is-active .plate-mark circle { scale: 1.7; }
.plate-query { font-family: var(--font); font-size: 13px; font-weight: 500; fill: var(--ink); }

/* Étiquettes en HTML, calées sur le dessin (--u = pixels par unité du dessin, posé par le script) */
.stack-labels { position: absolute; inset: 0; margin: 0; padding: 0; list-style: none; pointer-events: none; }
.stack-label {
  position: absolute;
  left: calc(var(--u, .83) * 514px);
  top: calc(var(--u, .83) * (var(--y) + 24) * 1px);
  translate: 0 calc(-50% - var(--lift, 0) * var(--u, .83) * 1px);
  line-height: 1.35;
  transition: translate .9s cubic-bezier(.65, 0, .35, 1), opacity .5s ease;
}
.stack-label strong {
  display: block; color: var(--white); font-size: 1.0625rem; font-weight: 600; font-stretch: 106%;
  transition: color .4s ease;
}
.stack-label span { display: block; margin-top: 2px; color: var(--on-ink-muted); font-size: .875rem; white-space: nowrap; }
.stack-label .swatch { display: none; }
.stack.has-active .stack-label:not(.is-active) { opacity: .6; }
.stack-label.is-active strong { color: var(--amber); }
.swatch { width: 22px; height: 13px; margin-bottom: 8px; clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); }
.swatch-site { background: var(--white); }
.swatch-seo { background: #D6D5D0; }
.swatch-auto { background: #6A6863; }
.swatch-apps { background: var(--amber); }

@media (prefers-reduced-motion: no-preference) {
  .plate { animation: plate-in .9s cubic-bezier(.18, .8, .26, 1) backwards; animation-delay: calc(.2s + var(--k) * .2s); }
  .stack-label { animation: label-in .5s ease-out backwards; animation-delay: calc(.75s + var(--k) * .2s); }
  .stack-floor { animation: fade-in 1s ease-out backwards; }
  .stack-guides, .stack-shadow { animation: fade-in .8s ease-out backwards; animation-delay: 1.3s; }
}
@keyframes plate-in { from { translate: 0 -64px; opacity: 0; } }
@keyframes label-in { from { transform: translateX(-10px); opacity: 0; } }
@keyframes fade-in { from { opacity: 0; } }

/* Boucle : chaque couche s'ouvre à tour de rôle et montre ce qu'elle fait.
   Le script pose --lift sur les couches et leurs étiquettes, et .is-active sur la couche montrée. */
.plate { translate: 0 calc(var(--lift, 0) * -1px); transition: translate .9s cubic-bezier(.65, 0, .35, 1); }
.stack-guides line {
  transform-box: fill-box; transform-origin: 50% 100%;
  scale: 1 calc(1 + var(--top-lift, 0) / 256);
  transition: scale .9s cubic-bezier(.65, 0, .35, 1);
}
.type-cover, .hit-pin, .magnifier { transform-box: fill-box; }
.type-cover { transform-origin: 100% 50%; scale: 0 1; }
.hit-pin, .magnifier { transform-origin: center; }
.shot { opacity: 0; transition: opacity .8s ease; }
.shot.is-current { opacity: 1; }
.node rect { fill: #fff; fill-opacity: .1; stroke: #fff; stroke-opacity: .5; stroke-width: 1.5; }
.node-ico { fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.flow-dot { opacity: 0; }

.notif { opacity: 0; translate: 0 14px; transition: opacity .4s ease, translate .6s cubic-bezier(.2, .8, .3, 1); }
.notif.is-shown { opacity: 1; translate: 0 0; }
.notif-a, .notif-b { transition: opacity .35s ease; }
.notif-b, .notif.is-auto .notif-a { opacity: 0; }
.notif.is-auto .notif-b { opacity: 1; }
.notif-t { font-size: 16.5px; font-weight: 600; font-stretch: 104%; fill: var(--ink); }
.notif-s { font-size: 14px; fill: var(--muted); }

@media (prefers-reduced-motion: no-preference) {
  /* Applications métier : les tâches avancent dans le planning */
  .plate.is-active .card-move { animation: card-move .9s cubic-bezier(.65, 0, .3, 1) backwards; animation-delay: calc(.5s + var(--m) * .7s); }
  /* Automatisations : demande reçue, réponse envoyée, relance programmée */
  .plate.is-active .flow-dot { animation: flow 1.5s cubic-bezier(.45, 0, .55, 1) .45s both; }
  .plate.is-active .node rect { animation: node-on .35s ease-out both; animation-delay: calc(.45s + var(--n) * .68s); }
  .plate.is-active .node-ico { animation: ico-on .35s ease-out both; animation-delay: calc(.45s + var(--n) * .68s); }
  /* Référencement : la recherche est tapée, votre site sort en premier */
  .plate.is-active .type-cover { animation: type-reveal 1s steps(13, end) .6s backwards; }
  .plate.is-active .magnifier { animation: pulse .45s ease-in-out 1.65s; }
  .plate.is-active .hit { animation: fade-in .5s ease-out 1.95s backwards; }
  .plate.is-active .hit-pin { animation: pin-pop .55s cubic-bezier(.3, 1.6, .5, 1) 1.95s backwards; }
}
@keyframes card-move { from { translate: -80px 0; } }
@keyframes flow { 0% { translate: 0 0; opacity: 0; } 10%, 90% { opacity: 1; } 100% { translate: 204px 0; opacity: 0; } }
@keyframes node-on { to { fill: #FBB03B; fill-opacity: 1; stroke: #FBB03B; stroke-opacity: 1; } }
@keyframes ico-on { to { stroke: #201F1D; } }
@keyframes type-reveal { from { scale: 1 1; } to { scale: 0 1; } }
@keyframes pulse { 50% { scale: 1.4; } }
@keyframes pin-pop { from { scale: 0; } }

.stack-toggle {
  position: absolute; left: calc(var(--u, .83) * 514px); top: calc(var(--u, .83) * 514px);
  display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 13px 0 11px;
  background: transparent; border: 1px solid var(--on-ink-line); border-radius: 16px;
  color: var(--on-ink-muted); font: inherit; font-size: .8125rem; cursor: pointer;
  transition: color .15s ease, border-color .15s ease;
}
.stack-toggle:hover { color: var(--white); border-color: rgba(238, 237, 234, .45); }
.stack-toggle[hidden] { display: none; }
.stack-toggle svg { width: 12px; height: 12px; }
.stack-toggle .i-play, .stack-toggle.is-paused .i-pause { display: none; }
.stack-toggle.is-paused .i-play { display: block; }

@media (max-width: 1179px) {
  .hero-grid { grid-template-columns: 1fr; }
  .stack { margin-right: 0; max-width: 720px; }
}
@media (max-width: 699px) {
  .stack { width: 100%; max-width: 440px; margin-inline: auto; }
  .plate-mark { display: none; }
  .stack-labels { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 18px 16px; margin-top: 8px; }
  .stack-label { position: static; translate: none; }
  .stack-label strong { font-size: .9375rem; }
  .stack-label span { white-space: normal; }
  .stack-label .swatch { display: block; }
  .stack.has-active .stack-label:not(.is-active) { opacity: 1; }
  .stack-toggle { left: auto; top: auto; right: 0; bottom: 4%; }
}

/* ---------- Sections claires ---------- */
.section { padding-block: var(--section); }
.section-head {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 20px 56px; align-items: end;
  margin-bottom: clamp(40px, 6vw, 80px);
}
.section-head h2 { max-width: 16ch; }
.section-head p { color: var(--muted); max-width: 36em; }
@media (max-width: 799px) { .section-head { grid-template-columns: 1fr; } }

/* Réalisations */
.project {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 24px clamp(24px, 3vw, 40px); align-items: center;
}
.project + .project { margin-top: clamp(64px, 8vw, 112px); }
.project > .project-shot { grid-column: 1 / span 8; }
.project > .project-body { grid-column: 9 / span 4; }
.project-flip > .project-shot { grid-column: 5 / span 8; grid-row: 1; }
.project-flip > .project-body { grid-column: 1 / span 4; grid-row: 1; }

.project-shot {
  display: block; overflow: hidden;
  border: 1px solid var(--line); border-radius: 6px; background: var(--mist);
}
.project-shot img { width: 100%; aspect-ratio: 1280 / 600; object-fit: cover; }

.project-body h3, .project-small h3 { font-size: clamp(1.5rem, 1.2rem + .9vw, 2rem); }
.project-kind { margin: .45em 0 1.1em; color: var(--muted); font-size: 1rem; }
.project-body p:not(.project-kind), .project-small p:not(.project-kind) { max-width: 34em; }

.ext-link {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 1.25em;
  color: var(--ink); font-weight: 600; text-decoration: underline;
  text-decoration-color: var(--amber); text-decoration-thickness: 2px; text-underline-offset: 6px;
}
.ext-link:hover { text-decoration-color: var(--ink); }

.project-pair {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 48px clamp(24px, 3vw, 40px);
  margin-top: clamp(64px, 8vw, 112px);
}
.project-small .project-shot { margin-bottom: 28px; }

@media (max-width: 899px) {
  .project, .project-pair { grid-template-columns: 1fr; }
  .project > .project-shot, .project > .project-body,
  .project-flip > .project-shot, .project-flip > .project-body { grid-column: 1; grid-row: auto; }
}

/* Offres */
.offers { background: var(--mist); }
.offer-list { display: grid; gap: 16px; }
.offer {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 28px clamp(32px, 5vw, 80px);
  padding: clamp(28px, 4vw, 48px);
  background: var(--white); border: 1px solid var(--line); border-radius: 8px;
}
.offer h3 { font-size: clamp(1.5rem, 1.25rem + .8vw, 1.875rem); }
.offer-main > p:not(.offer-price):not(.offer-flag) { margin-top: .6em; color: var(--muted); max-width: 30em; }
.offer-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 1.4em 0 1.6em; color: var(--muted); font-size: .9375rem; }
.offer-price strong {
  color: var(--ink); font-size: clamp(2rem, 1.6rem + 1.2vw, 2.625rem);
  font-weight: 700; font-stretch: 118%; letter-spacing: -0.03em; line-height: 1;
  font-variant-numeric: lining-nums;
}

.offer-price-quote { flex-direction: column; gap: 6px; }
.offer-price-quote strong { font-size: clamp(1.5rem, 1.3rem + .6vw, 1.875rem); }

.checks { margin: 0; padding: 0; list-style: none; align-self: center; }
.checks li {
  position: relative; padding: 14px 0 14px 34px;
  border-top: 1px solid var(--line); line-height: 1.45;
}
.checks li:last-child { border-bottom: 1px solid var(--line); }
.checks li::before {
  content: ""; position: absolute; left: 2px; top: 19px; width: 16px; height: 12px;
  background: currentColor; color: var(--ink);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 12'%3E%3Cpath d='M1.5 6.5l4.2 4L14.5 1.5' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 12'%3E%3Cpath d='M1.5 6.5l4.2 4L14.5 1.5' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain;
}

.offer-featured { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
.offer-featured h3, .offer-featured .offer-price strong { color: var(--white); }
.offer-featured .offer-main > p:not(.offer-price):not(.offer-flag), .offer-featured .offer-price { color: var(--on-ink-muted); }
.offer-featured .checks li { border-color: var(--on-ink-line); }
.offer-featured .checks li::before { color: var(--amber); }
.offer-flag {
  display: inline-block; margin-bottom: 16px; padding: 4px 10px;
  background: var(--amber); color: var(--ink); border-radius: 3px;
  font-size: .8125rem; font-weight: 600; line-height: 1.4;
}

.offers-more { margin-top: 40px; color: var(--muted); }
.offers-more a { color: var(--ink); font-weight: 600; text-decoration-color: var(--amber); text-decoration-thickness: 2px; text-underline-offset: 4px; }

@media (max-width: 799px) { .offer { grid-template-columns: 1fr; } }

/* Méthode : une vraie séquence, donc numérotée */
.steps {
  position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 40px clamp(24px, 3vw, 40px); margin: 0; padding: 0; list-style: none;
}
.steps::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: var(--line);
}
.steps li { position: relative; padding-top: 36px; }
.steps li::before {
  content: ""; position: absolute; top: -6px; left: 0; width: 22px; height: 13px;
  background: var(--amber); clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}
.step-n {
  display: block; margin-bottom: 20px;
  color: var(--ink); font-size: 3.5rem; font-weight: 300; font-stretch: 125%; line-height: 1;
  letter-spacing: -0.04em;
}
.steps h3 { margin-bottom: .5em; }
.steps p { color: var(--muted); font-size: 1rem; }

@media (max-width: 899px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 559px) {
  .steps { grid-template-columns: 1fr; gap: 0; }
  .steps::before { top: 0; bottom: 0; left: 10px; right: auto; width: 1px; height: auto; }
  .steps li { padding: 0 0 36px 48px; }
  .steps li::before { top: 6px; left: 0; }
  .step-n { font-size: 2.5rem; margin-bottom: 12px; }
}

/* Qui suis-je */
.about { background: var(--mist); }
.about-grid {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(40px, 6vw, 96px); align-items: start;
}
.about-photo { margin: 0; position: sticky; top: calc(var(--header-h) + 32px); }
.about-photo img { width: 100%; border-radius: 6px; aspect-ratio: 4 / 5; object-fit: cover; }
.about-body h2 { max-width: 15ch; }
.about-intro { margin-top: 28px; font-size: clamp(1.125rem, 1rem + .35vw, 1.25rem); max-width: 34em; }
.about-intro a { color: var(--ink); font-weight: 600; text-decoration-color: var(--amber); text-decoration-thickness: 2px; text-underline-offset: 4px; }

.promises-title { margin: 48px 0 8px; font-size: 1.0625rem; font-stretch: 100%; letter-spacing: 0; color: var(--muted); font-weight: 600; }
.promises { margin: 0; padding: 0; list-style: none; }
.promises li { padding: 22px 0; border-bottom: 1px solid var(--line); color: var(--muted); }
.promises strong {
  display: block; margin-bottom: 4px;
  color: var(--ink); font-size: clamp(1.1875rem, 1.05rem + .45vw, 1.375rem); font-weight: 650; font-stretch: 110%;
  letter-spacing: -0.012em; line-height: 1.25;
}

.credentials { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 40px; }
.credential { display: flex; gap: 16px; align-items: flex-start; }
.credential img { flex: none; }
.credential p { font-size: .9375rem; line-height: 1.5; color: var(--muted); }

@media (max-width: 899px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-photo { position: static; max-width: 420px; }
}
@media (max-width: 559px) { .credentials { grid-template-columns: 1fr; } }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 40px clamp(40px, 6vw, 96px); }
.faq-head { align-self: start; position: sticky; top: calc(var(--header-h) + 32px); }
.faq-head p { margin-top: 20px; color: var(--muted); }
.faq-head a { color: var(--ink); font-weight: 600; text-decoration-color: var(--amber); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.faq-list details { border-top: 1px solid var(--line); }
.faq-list details:last-child { border-bottom: 1px solid var(--line); }
.faq-list summary {
  position: relative; display: block; padding: 26px 56px 26px 0; cursor: pointer; list-style: none;
  color: var(--ink); font-size: clamp(1.0625rem, 1rem + .3vw, 1.25rem); font-weight: 600; line-height: 1.35;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::before, .faq-list summary::after {
  content: ""; position: absolute; right: 8px; top: 50%; width: 16px; height: 2px; margin-top: -1px;
  background: var(--ink); transition: transform .25s ease;
}
.faq-list summary::after { transform: rotate(90deg); }
.faq-list details[open] summary::after { transform: rotate(0deg); }
.faq-list summary:hover { color: #55534F; }
.faq-a { padding: 0 56px 28px 0; max-width: 42em; }

@supports (interpolate-size: allow-keywords) {
  .faq-list { interpolate-size: allow-keywords; }
  .faq-list details::details-content {
    block-size: 0; overflow: hidden;
    transition: block-size .3s ease, content-visibility .3s allow-discrete;
  }
  .faq-list details[open]::details-content { block-size: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .faq-list details::details-content { transition: none; }
}
@media (max-width: 799px) {
  .faq-grid { grid-template-columns: 1fr; }
  .faq-head { position: static; }
  .faq-a { padding-right: 0; }
}

/* ---------- Contact ---------- */
.contact { background: var(--ink); color: var(--on-ink); padding-block: var(--section); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px clamp(40px, 6vw, 96px); align-items: start; }
.contact h2 { color: var(--white); max-width: 12ch; }
.contact-intro > p { margin-top: 20px; color: var(--on-ink-muted); font-size: clamp(1.125rem, 1rem + .3vw, 1.25rem); }
.contact-phone {
  display: inline-block; margin: 36px 0 40px; padding-bottom: 6px;
  color: var(--white); text-decoration: none; border-bottom: 3px solid var(--amber);
  font-size: clamp(2rem, 1.5rem + 1.8vw, 2.875rem); font-weight: 700; font-stretch: 118%;
  letter-spacing: -0.02em; line-height: 1.1; white-space: nowrap;
}
.contact-phone:hover { border-bottom-color: var(--white); }
.contact-info { margin: 0; display: grid; gap: 20px; }
.contact-info dt { color: var(--on-ink-muted); font-size: .875rem; margin-bottom: 2px; }
.contact-info dd { margin: 0; color: var(--white); }
.contact-info a { color: var(--white); text-decoration-color: rgba(255, 255, 255, .35); text-underline-offset: 4px; }
.contact-info a:hover { text-decoration-color: var(--amber); }

.quote-form {
  padding: clamp(24px, 4vw, 44px);
  background: var(--white); color: var(--text); border-radius: 8px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.field { margin-bottom: 20px; }
.field label { display: block; margin-bottom: 8px; color: var(--ink); font-size: .9375rem; font-weight: 600; }
.field input, .field textarea {
  width: 100%; padding: 13px 14px;
  font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--white); border: 1px solid #CAC8C2; border-radius: 4px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input::placeholder, .field textarea::placeholder { color: #85837D; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(32, 31, 29, .18); }
.field-error { display: none; margin: 6px 0 0; color: #B3261E; font-size: .875rem; }
.field.has-error input, .field.has-error textarea { border-color: #B3261E; }
.field.has-error .field-error { display: block; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.email-toggle {
  display: inline-block; margin: -4px 0 24px; padding: 4px 0;
  background: none; border: 0; cursor: pointer;
  font: inherit; font-size: .9375rem; color: var(--ink); font-weight: 500;
  text-decoration: underline; text-decoration-color: var(--amber); text-decoration-thickness: 2px; text-underline-offset: 4px;
}
.email-toggle[aria-expanded="true"] { display: none; }
.form-status { margin: 14px 0 0; font-size: .9375rem; font-weight: 600; color: var(--ink); }
.form-status:empty { display: none; }
.form-status.is-error { color: #B3261E; }
.form-status.is-ok { padding: 14px 16px; background: #E8F3EA; color: #1E5B2C; border-radius: 4px; }
.form-legal { margin-top: 16px; font-size: .8125rem; line-height: 1.5; color: var(--muted); }
.form-legal a { color: var(--muted); }

@media (max-width: 899px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 559px) { .form-row { grid-template-columns: 1fr; } }

/* ---------- Pied de page : le grand « WEBDEV-STUDIO » en filigrane ---------- */
.site-footer {
  position: relative; overflow: hidden;
  background: var(--ink); color: var(--on-ink-muted);
  padding: 72px 0 32px; font-size: .9375rem;
  border-top: 1px solid var(--on-ink-line);
}
.site-footer::before {
  content: "WEBDEV-STUDIO";
  position: absolute; left: 50%; bottom: -.12em; translate: -50% 0;
  font-size: 15vw; font-weight: 800; font-stretch: 112%; letter-spacing: -0.045em; line-height: 1;
  color: rgba(255, 255, 255, .035); white-space: nowrap;
  pointer-events: none; user-select: none;
}
.site-footer .wrap { position: relative; }
.site-footer :focus-visible { outline-color: var(--amber); }
.footer-top { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 48px; }
.footer-logo { width: auto; height: 44px; margin-bottom: 20px; }
.footer-brand p { max-width: 30em; }
.footer-badges { display: grid; justify-items: start; gap: 16px; margin-top: 24px; }
.footer-badges div { display: flex; align-items: center; gap: 16px; }
.badge-hostinger { width: auto; height: 36px; }
.badge-francenum { width: auto; height: 58px; border-radius: 4px; }
.badge-normandie { width: 176px; height: auto; }
.footer-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 24px; }
.footer-cols h2 { margin-bottom: 16px; color: var(--white); font-size: .9375rem; font-stretch: 100%; letter-spacing: 0; line-height: 1.4; }
.footer-cols ul { margin: 0; padding: 0; list-style: none; }
.footer-cols li + li { margin-top: 10px; }
.footer-cols a, .footer-bottom a { color: var(--on-ink-muted); text-decoration: none; transition: color .15s ease; }
.footer-cols a:hover, .footer-bottom a:hover { color: var(--white); }
.footer-bottom {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px;
  margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--on-ink-line); font-size: .875rem;
}
.footer-socials { display: flex; gap: 18px; }
.footer-socials a { display: inline-flex; }
.footer-socials svg { width: 18px; height: 18px; }

@media (max-width: 999px) { .footer-top { grid-template-columns: 1fr; } }
@media (max-width: 639px) {
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .site-footer::before { font-size: 19vw; }
}

/* Bouton WhatsApp flottant, empilé au-dessus du bouton « Prendre rendez-vous » de Koalendar (56 px, à 24 px du bord) */
.wa-float {
  position: fixed; right: 26px; bottom: 92px; z-index: 40;
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
  background: var(--ink); color: var(--white); border: 1px solid rgba(255, 255, 255, .2);
  box-shadow: 0 10px 28px rgba(0, 0, 0, .28);
  transition: color .15s ease, border-color .15s ease, translate .15s ease;
}
.wa-float:hover { color: #25D366; border-color: #25D366; translate: 0 -2px; }
.wa-float:focus-visible { outline-color: var(--amber); }
.wa-float svg { width: 24px; height: 24px; }
@media (max-width: 767px) { .wa-float { right: 14px; bottom: 76px; } } /* Koalendar : 48 px de haut, à 16 px du bord */

/* ---------- Pages intérieures ---------- */
.section.is-mist { background: var(--mist); }

.page-hero {
  position: relative; overflow: hidden; color: var(--on-ink);
  background:
    radial-gradient(40% 90% at 86% 45%, rgba(251, 176, 59, .06), transparent 70%),
    radial-gradient(55% 110% at 84% 45%, #302E2B, transparent 72%),
    var(--ink);
  padding: clamp(36px, 4.5vw, 60px) 0 clamp(56px, 7vw, 96px);
}
.page-hero :focus-visible { outline-color: var(--amber); }
.page-hero .wrap { position: relative; }
.page-hero-copy { position: relative; max-width: 780px; }
.page-hero h1 { color: var(--white); font-size: clamp(2rem, 1.2rem + 2.6vw, 3.25rem); font-stretch: 106%; line-height: 1.05; letter-spacing: -0.028em; }
.page-lead { margin-top: 24px; max-width: 40em; font-size: clamp(1.0625rem, .95rem + .35vw, 1.25rem); line-height: 1.6; }
.page-lead-sub { margin-top: 16px; color: var(--on-ink-muted); font-size: 1rem; }
.page-meta { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 22px 0 0; padding: 0; list-style: none; color: var(--on-ink-muted); font-size: .9375rem; }
.page-meta strong { color: var(--white); font-weight: 600; }
.page-hero .hero-actions { margin-top: 32px; }
.page-hero-art {
  position: absolute; right: 0; top: 50%; translate: 0 -50%;
  width: min(25vw, 330px); height: auto; pointer-events: none;
}
@media (max-width: 1099px) { .page-hero-art { display: none; } }

.breadcrumb ol { display: flex; flex-wrap: wrap; margin: 0 0 28px; padding: 0; list-style: none; font-size: .875rem; color: var(--on-ink-muted); }
.breadcrumb li + li::before { content: "/"; margin: 0 10px; opacity: .5; }
.breadcrumb a { color: var(--on-ink-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--white); text-decoration: underline; }
.breadcrumb [aria-current] { color: var(--on-ink); }

.anchor-nav { display: flex; flex-wrap: wrap; gap: 10px; margin: 32px 0 0; padding: 0; list-style: none; }
.anchor-nav a {
  display: inline-block; padding: 8px 15px; border: 1px solid var(--on-ink-line); border-radius: 999px;
  color: var(--on-ink); font-size: .9375rem; text-decoration: none; transition: border-color .15s ease, color .15s ease;
}
.anchor-nav a:hover { border-color: var(--amber); color: var(--white); }

/* Titre à gauche, texte à droite */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 24px clamp(40px, 6vw, 96px); align-items: start; }
.split h2 { max-width: 16ch; font-size: clamp(1.75rem, 1.2rem + 1.6vw, 2.5rem); }
.split-text p { max-width: 38em; }
.split-text p:first-child { color: var(--ink); font-size: clamp(1.125rem, 1rem + .35vw, 1.25rem); }
.more-zones { margin-top: 40px; color: var(--muted); }
.more-zones a, .text-link { color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--amber); text-decoration-thickness: 2px; text-underline-offset: 4px; }
@media (max-width: 899px) { .split { grid-template-columns: 1fr; } }

/* Grille de tarifs (page Prestations) */
.price-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 16px; }
.price-card { display: flex; flex-direction: column; padding: clamp(24px, 3vw, 32px); background: var(--white); border: 1px solid var(--line); border-radius: 8px; }
.price-card h3 { font-size: 1.375rem; }
.price-card .offer-price { margin: 16px 0 10px; }
.price-card .offer-price strong { font-size: clamp(1.75rem, 1.5rem + .8vw, 2.25rem); }
.price-card .offer-price-quote strong { font-size: 1.5rem; }
.price-tagline { color: var(--muted); font-size: 1rem; }
.price-card .checks { align-self: stretch; margin: 18px 0 28px; }
.price-card .checks li { padding: 10px 0 10px 30px; font-size: 1rem; }
.price-card .checks li::before { top: 15px; }
.price-card .btn { margin-top: auto; align-self: flex-start; }

/* Texte long : pages légales et articles */
.prose { max-width: 72ch; }
.prose > :first-child, .prose > :first-child > :first-child { margin-top: 0; }
.prose h2 { margin: 2em 0 .6em; font-size: clamp(1.5rem, 1.25rem + .9vw, 2rem); line-height: 1.15; scroll-margin-top: calc(var(--header-h) + 24px); }
.prose h3 { margin: 1.6em 0 .5em; font-size: 1.25rem; font-stretch: 106%; }
.prose p, .prose ul, .prose ol, .prose blockquote { margin: 0 0 1.1em; }
.prose ul, .prose ol { padding-left: 1.25em; }
.prose li + li { margin-top: .45em; }
.prose a { color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--amber); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.prose a:hover { text-decoration-color: var(--ink); }
.prose strong { color: var(--ink); font-weight: 650; }
.prose img { border-radius: 6px; }
.prose p:has(> picture), .prose p:has(> img) { margin: 1.8em 0; }
.prose table { display: block; width: 100%; overflow-x: auto; margin: 1.5em 0; border-collapse: collapse; font-size: .9375rem; }
.prose th, .prose td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.prose thead th { background: var(--mist); color: var(--ink); font-weight: 600; }
.prose blockquote { padding: 6px 0 6px 20px; border-left: 3px solid var(--amber); color: var(--ink); font-size: 1.0625rem; }
.prose code { padding: 2px 6px; background: var(--mist); border-radius: 4px; font-size: .88em; }
.info-card { margin: 0 0 16px; padding: 20px 24px; background: var(--mist); border: 1px solid var(--line); border-radius: 8px; }
.info-card p { margin: 0 0 .4em; }
.info-card p:last-child { margin: 0; }
.notice-card { margin: 0 0 1.5em; padding: 16px 20px; background: #FFF6E6; border-left: 3px solid var(--amber); border-radius: 0 6px 6px 0; color: var(--ink); }
.tag { display: inline-block; padding: 3px 10px; background: var(--amber); color: var(--ink); border-radius: 3px; font-size: .8125rem; font-weight: 600; }
.prose .tag { background: var(--ink); color: var(--white); }

/* Blog */
.post-card { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: 24px clamp(32px, 4vw, 56px); align-items: center; }
.post-card img { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; border: 1px solid var(--line); border-radius: 6px; }
.post-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0 0 12px; padding: 0; list-style: none; color: var(--muted); font-size: .9375rem; }
.post-card h2 { font-size: clamp(1.625rem, 1.3rem + 1.2vw, 2.25rem); }
.post-card h2 a { text-decoration: none; }
.post-card h2 a:hover { text-decoration: underline; text-decoration-color: var(--amber); text-decoration-thickness: 3px; text-underline-offset: 6px; }
.post-card p { margin-top: 14px; max-width: 36em; }
.post-card .text-link { display: inline-block; margin-top: 8px; }
.note-panel {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px;
  margin-top: clamp(56px, 7vw, 96px); padding: clamp(28px, 4vw, 44px); background: var(--mist); border-radius: 8px;
}
.note-panel h2 { font-size: 1.5rem; }
.note-panel p { max-width: 36em; margin-top: 8px; color: var(--muted); }
@media (max-width: 799px) { .post-card { grid-template-columns: 1fr; } }

/* Article */
.article-layout { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: 40px clamp(40px, 5vw, 80px); align-items: start; }
.toc { position: sticky; top: calc(var(--header-h) + 32px); font-size: .9375rem; }
.toc p { margin: 0 0 12px; color: var(--ink); font-weight: 600; }
.toc ol { margin: 0; padding: 0; list-style: none; border-left: 1px solid var(--line); }
.toc a { display: block; margin-left: -1px; padding: 6px 0 6px 16px; border-left: 2px solid transparent; color: var(--muted); text-decoration: none; }
.toc a:hover { color: var(--ink); border-left-color: var(--amber); }
.article-cta { margin-top: 3em; padding: clamp(24px, 4vw, 40px); background: var(--ink); color: var(--on-ink); border-radius: 8px; }
.article-cta :focus-visible { outline-color: var(--amber); }
.article-cta h2 { margin: 0; color: var(--white); font-size: 1.625rem; }
.article-cta p { margin: 12px 0 0; color: var(--on-ink-muted); }
.article-cta .hero-actions { margin-top: 24px; }
.back-link { display: inline-block; margin-top: 32px; }
@media (max-width: 999px) {
  .article-layout { grid-template-columns: 1fr; }
  .toc { position: static; }
}

/* Audit gratuit */
.audit-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px clamp(40px, 5vw, 72px); align-items: start; }
.audit-points { display: grid; gap: 18px; margin: 32px 0 0; padding: 0; list-style: none; }
.audit-points li { display: grid; grid-template-columns: 38px 1fr; gap: 14px; align-items: start; }
.audit-points .ico { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 8px; background: rgba(251, 176, 59, .12); color: var(--amber); }
.audit-points .ico svg { width: 18px; height: 18px; }
.audit-points strong { display: block; color: var(--white); font-weight: 600; }
.audit-points span { color: var(--on-ink-muted); font-size: .9375rem; }
.audit-facts { margin-top: 28px; color: var(--on-ink-muted); font-size: .9375rem; }
.audit-card { padding: clamp(24px, 3.5vw, 40px); background: var(--white); color: var(--text); border-radius: 10px; box-shadow: 0 24px 60px rgba(0, 0, 0, .35); }
.audit-card :focus-visible { outline-color: var(--ink); }
.audit-card h2 { font-size: 1.625rem; }
.audit-card .field { margin-bottom: 16px; }
#view-form, #view-loading, #view-results, #view-error { flex-direction: column; gap: 20px; }
#view-loading, #view-results, #view-error { display: none; }
#view-form > p { margin: 6px 0 0; color: var(--muted); font-size: .9375rem; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.req { color: #B3261E; }
.form-notice { margin: 14px 0 0; color: var(--muted); font-size: .8125rem; line-height: 1.5; }
.form-notice a { color: var(--ink); }
#view-loading { align-items: center; padding: 24px 0; text-align: center; }
#view-loading p { margin: 0; }
#loading-url { color: var(--muted); font-size: .875rem; word-break: break-all; }
.loader-ring { width: 64px; height: 64px; border: 3px solid var(--line); border-top-color: var(--amber); border-radius: 50%; animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .loader-ring { animation-duration: 3s; } }
.loader-steps { display: grid; gap: 10px; text-align: left; }
.loader-step { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: .9375rem; }
.loader-step.active { color: var(--ink); font-weight: 600; }
.loader-step.done { color: #1E7B3A; }
.step-icon { display: grid; place-items: center; width: 18px; height: 18px; border: 1.5px solid currentColor; border-radius: 50%; font-size: 11px; line-height: 1; }
.results-url { margin: 0; color: var(--muted); font-size: .9375rem; }
.results-url a { color: var(--ink); font-weight: 600; word-break: break-all; }
.scores-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.score-card { padding: 16px 8px; border: 1px solid var(--line); border-radius: 8px; text-align: center; }
.score-ring-wrap { position: relative; width: 72px; height: 72px; margin: 0 auto 8px; }
.score-ring-wrap svg { transform: rotate(-90deg); }
.score-num { position: absolute; inset: 0; display: grid; place-items: center; color: var(--ink); font-size: 1.25rem; font-weight: 700; font-stretch: 110%; }
.score-ring-bg { fill: none; stroke: var(--line); stroke-width: 5; }
.score-ring-fill { fill: none; stroke-width: 5; stroke-linecap: round; transition: stroke-dashoffset 1.2s cubic-bezier(.2, .8, .2, 1); }
.score-ring-fill.green { stroke: #22A55A; }
.score-ring-fill.orange { stroke: #F29D1F; }
.score-ring-fill.red { stroke: #E0453A; }
.score-label { color: var(--ink); font-size: .875rem; font-weight: 600; }
.metrics-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.metric-card { padding: 14px 16px; background: var(--mist); border-radius: 8px; }
.metric-label, .metric-desc { color: var(--muted); font-size: .8125rem; }
.metric-value { color: var(--ink); font-size: 1.375rem; font-weight: 700; font-stretch: 110%; }
.opps-title, .loss-section-title, .loss-breakdown-title { margin-bottom: 10px; color: var(--ink); font-size: 1.0625rem; font-weight: 700; }
.opp-item { display: flex; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: .9375rem; }
.opp-item strong { display: block; color: var(--ink); }
.opp-dot { flex: none; width: 8px; height: 8px; margin-top: 8px; border-radius: 50%; background: #E0453A; }
.opp-dot.orange { background: #F29D1F; }
.opp-dot.green { background: #22A55A; }
.loss-estimator { padding: 20px; background: var(--mist); border-radius: 8px; }
.loss-intro { color: var(--muted); font-size: .9375rem; }
.loss-controls { display: grid; gap: 16px; margin: 16px 0; }
.loss-sector-field label, .loss-slider-label { display: flex; justify-content: space-between; gap: 12px; color: var(--ink); font-size: .875rem; font-weight: 600; }
.loss-sector-field select { width: 100%; margin-top: 6px; padding: 10px 12px; background: var(--white); border: 1px solid #C9C8C2; border-radius: 4px; font: inherit; font-size: 1rem; }
.loss-slider { width: 100%; accent-color: var(--amber); }
.loss-cta-row { display: flex; align-items: flex-start; gap: 10px; font-size: .875rem; }
.loss-cta-row input { margin-top: 3px; accent-color: var(--amber); }
.loss-result { padding: 18px 20px; background: var(--ink); color: var(--on-ink); border-radius: 8px; }
.loss-amount { color: var(--amber); font-size: 2rem; font-weight: 800; font-stretch: 110%; }
.loss-result-monthly, .loss-result-range { color: var(--on-ink-muted); font-size: .875rem; }
.loss-result-monthly strong { color: var(--white); }
.loss-formula { margin: 12px 0; color: var(--muted); font-size: .8125rem; }
.loss-breakdown-item { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); font-size: .9375rem; }
.loss-breakdown-item small { display: block; color: var(--muted); font-size: .8125rem; }
.loss-breakdown-item .val { color: #B3261E; font-weight: 700; }
.loss-formula-toggle, .retry-btn {
  align-self: flex-start; padding: 0; background: none; border: 0; cursor: pointer;
  font: inherit; font-weight: 600; color: var(--ink);
  text-decoration: underline; text-decoration-color: var(--amber); text-decoration-thickness: 2px; text-underline-offset: 4px;
}
.loss-formula-toggle { margin-top: 12px; font-size: .875rem; }
.loss-formula-detail { display: none; margin-top: 10px; color: var(--muted); font-size: .8125rem; }
.loss-formula-detail.open { display: block; }
.loss-formula-detail strong { display: block; margin: 8px 0 4px; color: var(--ink); }
.loss-formula-detail code { padding: 2px 4px; background: var(--white); border-radius: 3px; font-size: .78rem; word-break: break-word; }
.loss-result-empty { padding: 14px; background: #E8F3EA; color: #1E5B2C; border-radius: 6px; font-size: .9375rem; }
.results-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 8px; }
.results-cta p { margin: 0; color: var(--muted); font-size: .9375rem; }
.results-cta strong { display: block; color: var(--ink); }
#view-error { align-items: flex-start; }
#view-error h3 { font-size: 1.375rem; }
#view-error p { margin: 0; color: var(--muted); }
.error-badge { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #FDECEA; color: #B3261E; font-size: 1.375rem; font-weight: 800; }
@media (max-width: 999px) { .audit-grid { grid-template-columns: 1fr; } }
@media (max-width: 559px) {
  .scores-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-row-2 { grid-template-columns: 1fr; }
}

/* Page 404 */
.error-hero { display: grid; align-items: center; min-height: calc(100vh - var(--header-h)); min-height: calc(100svh - var(--header-h)); }
.error-code { display: block; margin-bottom: 16px; color: var(--amber); font-size: clamp(5.5rem, 3rem + 12vw, 12rem); font-weight: 800; font-stretch: 125%; line-height: .9; letter-spacing: -0.05em; }
.error-links { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 28px 0 0; padding: 0; list-style: none; }
.error-links a { color: var(--on-ink); font-weight: 600; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .35); text-underline-offset: 5px; }
.error-links a:hover { text-decoration-color: var(--amber); }
.redirect-notice { margin-top: 24px; color: var(--on-ink-muted); font-size: .875rem; }
.retry-wait { color: var(--muted); font-size: .875rem; text-align: center; }
.retry-wait strong { color: var(--ink); }
.main-nav a[aria-current="page"] { color: var(--white); text-decoration: underline; text-decoration-color: var(--amber); text-decoration-thickness: 2px; text-underline-offset: 8px; }

/* Méthode sur fond graphite */
.method { background: var(--ink); color: var(--on-ink); }
.method :focus-visible { outline-color: var(--amber); }
.method h2, .method h3, .method .step-n { color: var(--white); }
.method .section-head p, .method .steps p { color: var(--on-ink-muted); }
.method .steps::before { background: var(--on-ink-line); }
