/* MAI Système, page d'accueil, version mélange : base variante B (graphique), rythme et blocs repris de la version A.
   Palette : vert forêt #1F3D33, cuivre #C77B3B (cuivre clair #E0914F sur fond foncé), crème #F6F1E9.
   Police : Jost (SIL Open Font License), autohébergée. */

@font-face { font-family: "Jost"; src: url("assets/fonts/jost-300.woff2") format("woff2"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Jost"; src: url("assets/fonts/jost-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Jost"; src: url("assets/fonts/jost-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Jost"; src: url("assets/fonts/jost-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Jost"; src: url("assets/fonts/jost-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Jost"; src: url("assets/fonts/jost-800.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Jost"; src: url("assets/fonts/jost-italic-300.woff2") format("woff2"); font-weight: 300; font-style: italic; font-display: swap; }
@font-face { font-family: "Jost"; src: url("assets/fonts/jost-italic-400.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Jost"; src: url("assets/fonts/jost-italic-700.woff2") format("woff2"); font-weight: 700; font-style: italic; font-display: swap; }

:root {
  --green: #1F3D33;
  --green-deep: #152B24;
  --green-mid: #2B5245;
  --green-soft: #DCE4DE;
  --copper: #C77B3B;
  --copper-l: #E0914F;
  --copper-ink: #A35A22;   /* cuivre lisible sur fond clair */
  --cream: #F6F1E9;
  --cream-2: #EDE5D8;
  --paper: #FBF8F3;
  --ink: #14261F;
  --ink-soft: #3D4C46;
  --line: rgba(31, 61, 51, .14);
  --line-light: rgba(246, 241, 233, .16);
  --sand: #E4D9C6;      /* fond de la section avant / après */
  --sand-2: #EFE7D8;    /* fond de la scène « aujourd'hui » */
  --sand-3: #D8CCB6;    /* pastille de sélection */

  --f: "Jost", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 20px;
  --radius-sm: 12px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --header-h: 60px;
  --shadow: 0 30px 60px -32px rgba(21, 43, 36, .45);
  --shadow-sm: 0 12px 30px -18px rgba(21, 43, 36, .4);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--f); font-size: 18px; line-height: 1.6; color: var(--ink);
  background: var(--paper); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.05; font-weight: 600; letter-spacing: -.02em; }
p { margin: 0; }
ol, ul { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--copper); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 32px; }
@media (max-width: 600px) { .wrap { padding: 0 16px; } body { font-size: 17px; } }

.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--copper); color: var(--ink); padding: 8px 16px; border-radius: 8px; font-weight: 600; }
.skip:focus { left: 8px; }

.ico { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ico-lg { width: 34px; height: 34px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.copper { color: var(--copper-ink); }
.copper-l { color: var(--copper-l); }

/* ---------- Typo commune ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px; margin-bottom: 26px;
  font-size: 14px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--copper-ink);
}
.eyebrow::before { content: ""; width: 6px; height: 22px; background: currentColor; flex: none; }
.eyebrow-light { color: var(--copper-l); }
.eyebrow-ink { color: var(--ink); }
.h2 { font-size: clamp(30px, 3.3vw, 48px); line-height: 1.05; letter-spacing: -.025em; }
.h2 .copper, .h2 .copper-l { display: block; }
.sec-head { max-width: 900px; margin-bottom: clamp(28px, 5vh, 56px); }
.sec-head-center { margin-left: auto; margin-right: auto; text-align: center; }
.sec-head-center .eyebrow { justify-content: center; }
.sec-lead { margin-top: 32px; font-size: clamp(18px, 1.6vw, 21px); font-weight: 400; color: var(--ink-soft); max-width: 640px; }
.section { padding: clamp(40px, 5.5vh, 72px) 0; position: relative; }

/* Texte courant plus léger, titres seuls en très gras */
.lead, .pain p, .pillar p, .offer p, .step p, .rule p, .acc-panel p, .aios-text p:not(.eyebrow), .qui-lead, .contact-lead, .fit-card li { font-weight: 400; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  font: 600 16px/1.2 var(--f); letter-spacing: .01em; text-decoration: none;
  padding: 19px 30px; border-radius: 4px; border: 0; position: relative; overflow: hidden; isolation: isolate;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), color .4s var(--ease);
}
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease-out); }
.btn .ico { transition: transform .4s var(--ease); }
.btn:hover .ico { transform: translateX(4px); }
.btn:hover { transform: translateY(-2px); }
.btn-green { background: var(--green); color: var(--cream); box-shadow: var(--shadow-sm); }
.btn-green::before { background: var(--copper); }
.btn-green:hover { color: var(--ink); }
.btn-green:hover::before { transform: scaleX(1); }
.btn-copper { background: var(--copper); color: var(--ink); }
.btn-copper::before { background: var(--copper-l); }
.btn-copper:hover::before { transform: scaleX(1); }
.btn-sm { padding: 12px 20px; font-size: 15px; }
.link-arrow {
  display: inline-flex; align-items: center; gap: 10px; font-weight: 600; text-decoration: none; padding: 8px 0;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat; transition: background-size .45s var(--ease-out);
}
.link-arrow:hover { background-size: 100% 2px; }
.link-arrow .ico { transition: transform .4s var(--ease); }
.link-arrow:hover .ico { transform: translateX(4px); }

/* ---------- En-tête ---------- */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h); transition: background-color .4s var(--ease), box-shadow .4s var(--ease), transform .45s var(--ease); }
.site-header.scrolled { background: rgba(251, 248, 243, .9); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); box-shadow: 0 1px 0 var(--line); }
.site-header.hidden { transform: translateY(-100%); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: block; position: relative; flex: none; }
.brand img { height: 40px; width: auto; transition: opacity .3s; }
.brand .brand-dark { position: absolute; inset: 0; opacity: 0; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a:not(.btn) { text-decoration: none; font-size: 15.5px; font-weight: 400; color: var(--ink-soft); position: relative; padding: 6px 0; transition: color .3s; }
.nav a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--copper); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease-out); }
.nav a:not(.btn):hover, .nav a.active { color: var(--ink); }
.nav a:not(.btn):hover::after, .nav a.active::after { transform: scaleX(1); }
.burger { display: none; background: none; border: 0; width: 46px; height: 46px; padding: 11px; cursor: pointer; margin-right: -8px; }
.burger span { display: block; height: 3px; background: var(--green); margin: 5px 0; transition: transform .4s var(--ease), opacity .3s, background-color .3s; }
.burger span:nth-child(2) { width: 60%; margin-left: auto; }
.burger[aria-expanded="true"] span { background: var(--cream); }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 1080px) {
  .burger { display: block; position: relative; z-index: 2; }
  .nav {
    position: fixed; inset: 0; z-index: 1; flex-direction: column; align-items: stretch; justify-content: center; gap: 0;
    background: var(--green); padding: calc(var(--header-h) + 8px) 24px 32px; overflow-y: auto;
    clip-path: inset(0 0 100% 0); visibility: hidden; transition: clip-path .55s var(--ease-out), visibility 0s .55s;
  }
  .nav.open { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path .55s var(--ease-out), visibility 0s; }
  .nav a:not(.btn) { color: var(--cream); font-size: clamp(26px, 7vw, 40px); font-weight: 700; letter-spacing: -.02em; padding: 10px 0; border-bottom: 1px solid var(--line-light); }
  .nav a:not(.btn):hover, .nav a.active { color: var(--copper-l); }
  .nav a:not(.btn)::after { display: none; }
  .nav-cta { margin-top: 28px; padding: 18px; font-size: 17px; }
  .site-header.menu-open .brand-light { opacity: 0; }
  .site-header.menu-open .brand-dark { opacity: 1; }
  .site-header.menu-open { background: transparent; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .site-header .brand { z-index: 2; }
}
@media (max-width: 380px) { .brand img { height: 34px; } }

/* ---------- Ouverture ---------- */
.hero { position: relative; overflow: hidden; background: var(--cream); padding: calc(var(--header-h) + 56px) 0 96px; min-height: min(100vh, 980px); display: flex; align-items: center; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(32px, 4vw, 56px); align-items: center; position: relative; }
.hero-title { font-size: clamp(38px, 4.8vw, 72px); line-height: 1; letter-spacing: -.035em; margin-bottom: 36px; }
.hero-title .line { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.hero-title .line > span { display: inline-block; }
.js .hero-title .line > span { transform: translateY(105%); animation: rise 1.1s var(--ease-out) forwards; }
.js .hero-title .line:nth-child(2) > span { animation-delay: .12s; }
.js .hero-title .line:nth-child(3) > span { animation-delay: .24s; }
@keyframes rise { to { transform: none; } }
.hero-title .copper { color: var(--copper-ink); }
.lead { font-size: clamp(19px, 1.8vw, 24px); line-height: 1.45; max-width: 560px; color: var(--ink-soft); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; margin-top: 44px; }

.hero-art { position: relative; aspect-ratio: 250 / 156; background: var(--green); border-radius: 0 0 0 96px; box-shadow: var(--shadow); }
.hero-mono { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: inherit; overflow: hidden; }
.draw { stroke-dasharray: 1400; stroke-dashoffset: 0; }
.js .draw { stroke-dashoffset: 1400; animation: draw 1.8s var(--ease-out) forwards; }
.js .d2 { animation-delay: .35s; }
.js .d3 { animation-delay: .6s; animation-duration: 1.2s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
/* flottement léger des lettres, chacune à son rythme */
.hero-mono .fl { transform-box: fill-box; transform-origin: center; animation: none; }
/* apparition douce des lettres : fondu et légère montée, l'une après l'autre */
.js .hero-mono .draw { stroke-dasharray: none; stroke-dashoffset: 0; opacity: 0; animation: monoIn 2.2s var(--ease-out) both; transform-box: fill-box; }
.js .hero-mono .d1 { animation-delay: .25s; }
.js .hero-mono .d2 { animation-delay: .75s; }
.js .hero-mono .d3 { animation-delay: 1.25s; }
@keyframes monoIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
/* ombre portée du M sur le A, pour la profondeur */
.hero-mono .fl1 { filter: drop-shadow(0 0 3px rgba(10, 28, 22, .55)); }
@keyframes monoFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes float { 50% { transform: translateY(-10px); } }
@keyframes ping { 70% { box-shadow: 0 0 0 12px rgba(199, 123, 59, 0); } 100% { box-shadow: 0 0 0 0 rgba(199, 123, 59, 0); } }

.scroll-cue { position: absolute; left: 50%; bottom: 28px; width: 26px; height: 42px; border: 2px solid var(--green); border-radius: 14px; transform: translateX(-50%); opacity: .5; transition: opacity .3s; }
.scroll-cue:hover { opacity: 1; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--green); animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 60% { transform: translateY(12px); opacity: 0; } 100% { transform: none; opacity: 0; } }

@media (max-width: 900px) {
  .hero { min-height: 0; padding-bottom: 72px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { aspect-ratio: 4 / 3; border-radius: 0 0 0 72px; margin-right: -32px; }
}
@media (max-width: 600px) {
  .hero { padding-top: calc(var(--header-h) + 32px); }
  .hero-title { font-size: 13.6vw; }
  .hero-art { margin-right: 0; aspect-ratio: 250 / 156; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
}

/* ---------- Les soucis du quotidien ---------- */
.quotidien { background: var(--paper); }
.pains { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 20px; counter-reset: pain; }
.pain {
  grid-column: span 4; position: relative; padding: 40px 34px 38px; border-radius: var(--radius); background: var(--cream);
  border: 1px solid var(--line); counter-increment: pain; overflow: hidden;
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out), background-color .4s;
}
.pain::after { content: counter(pain, decimal-leading-zero); position: absolute; right: 22px; top: 14px; font-size: 64px; font-weight: 600; line-height: 1; color: var(--green); opacity: .07; letter-spacing: -.04em; transition: opacity .4s, transform .5s var(--ease-out); }
.pain:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.pain:hover::after { opacity: .16; transform: translateY(4px); }
.pain:nth-child(1) { grid-column: span 5; }
.pain:nth-child(2) { grid-column: span 7; }
.pain:nth-child(6) { grid-column: 1 / -1; display: grid; grid-template-columns: 56px minmax(0, 1fr) minmax(0, 1.3fr); gap: 0 36px; align-items: center; padding: 44px 48px; }
.pain:nth-child(6) .pain-ico { margin: 0; }
.pain:nth-child(6) h3 { font-size: clamp(24px, 2.4vw, 34px); max-width: none; margin: 0; }
.pain:nth-child(6) p { font-size: 20px; }
.pain-ico { width: 56px; height: 56px; fill: none; stroke: var(--copper); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 26px; transition: transform .6s var(--ease-out); }
.pain:hover .pain-ico { transform: rotate(-8deg) scale(1.08); }
.pain h3 { font-size: clamp(19px, 1.5vw, 22px); line-height: 1.1; margin-bottom: 12px; max-width: 18ch; }
.pain p { color: var(--ink-soft); max-width: 46ch; }
.pain-dark { background: var(--green); color: var(--cream); border-color: transparent; }
.pain-dark p { color: rgba(246, 241, 233, .78); }
.pain-dark .pain-ico { stroke: var(--copper-l); }
.pain-dark::after { color: var(--cream); }
.pain-copper { background: var(--copper); border-color: transparent; }
.pain-copper p { color: var(--ink); }
.pain-copper .pain-ico { stroke: var(--ink); }
/* grand écran : section compacte, pour qu'elle tienne d'un coup sur l'écran */
@media (min-width: 1001px) {
  .pains { gap: 14px; }
  .pain { padding: 20px 28px 18px; }
  .pain-ico { width: 42px; height: 42px; margin-bottom: 14px; }
  .pain h3 { margin-bottom: 8px; }
  .pain::after { font-size: 52px; top: 10px; }
  .pain:nth-child(6) { padding: 18px 34px; grid-template-columns: 42px minmax(0, 1fr) minmax(0, 1.3fr); }
  .pain:nth-child(6) p { font-size: 18px; }
}
@media (max-width: 1000px) {
  .pain, .pain:nth-child(n) { grid-column: span 6; }
  .pain:nth-child(6) { grid-column: 1 / -1; grid-template-columns: 56px 1fr; gap: 16px 24px; }
  .pain:nth-child(6) p { grid-column: 2; }
}
@media (max-width: 640px) {
  .pain, .pain:nth-child(n) { grid-column: 1 / -1; padding: 32px 24px; }
  .pain:nth-child(6) { display: block; padding: 32px 24px; }
  .pain:nth-child(6) .pain-ico { margin-bottom: 26px; }
  .pain:nth-child(6) h3 { margin-bottom: 12px; font-size: 28px; }
}

/* ---------- Avant / après : une seule scène animée ---------- */
.compare { background: var(--sand); overflow: hidden; }
.compare::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 64px; background: var(--paper); clip-path: polygon(0 0, 100% 0, 100% 0, 50% 100%, 0 0); }
.stage-wrap { display: grid; justify-items: center; gap: 28px; }
.seg { display: inline-grid; grid-auto-flow: column; padding: 5px; border-radius: 999px; background: var(--sand-3); border: 1px solid rgba(31, 61, 51, .16); }
.seg-btn { appearance: none; border: 0; background: none; font: inherit; font-weight: 500; font-size: 16px; letter-spacing: .02em; color: var(--ink-soft); padding: 11px 26px; border-radius: 999px; cursor: pointer; transition: background-color .4s var(--ease), color .4s var(--ease), box-shadow .4s var(--ease); }
.seg-btn:hover { color: var(--ink); }
.seg-btn[aria-pressed="true"] { background: var(--green); color: var(--cream); box-shadow: var(--shadow-sm); }
.seg-btn:focus-visible { outline: 3px solid var(--copper); outline-offset: 2px; }

.stage { position: relative; width: 100%; margin: 0; aspect-ratio: 16 / 7; border-radius: 28px; overflow: hidden; background: var(--sand-2); border: 2px dashed rgba(31, 61, 51, .26); transition: background-color .9s var(--ease), border-color .9s var(--ease), box-shadow .9s var(--ease); isolation: isolate; }
.stage[data-state="after"] { background: var(--green); border-color: transparent; box-shadow: var(--shadow); }
.stage-cap { position: absolute; left: 28px; top: 22px; z-index: 3; font-size: 20px; font-weight: 600; letter-spacing: -.01em; }
.cap { position: absolute; left: 0; top: 0; white-space: nowrap; transition: opacity .6s var(--ease), transform .6s var(--ease), color .9s var(--ease); }
.cap-before { color: var(--ink); }
.cap-after { color: var(--cream); opacity: 0; transform: translateY(8px); }
.stage[data-state="after"] .cap-before { opacity: 0; transform: translateY(-8px); }
.stage[data-state="after"] .cap-after { opacity: 1; transform: none; }
.stage-cap::before { content: ""; display: block; width: 36px; height: 4px; background: var(--copper); margin-bottom: 12px; }

.links { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; overflow: visible; }
.lines-before, .lines-after { transition: opacity .6s var(--ease); }
.lines-after { opacity: 0; }
.stage[data-state="after"] .lines-before { opacity: 0; }
.stage[data-state="after"] .lines-after { opacity: 1; transition-delay: .55s; }
.lines-before path { fill: none; stroke: var(--copper); stroke-width: 2.5; stroke-dasharray: 6 9; stroke-linecap: round; }
.lines-before path.to-you { stroke: rgba(163, 90, 34, .38); stroke-width: 2; stroke-dasharray: 3 10; }
.stage[data-state="before"] .lines-before path { animation: dashMove 1.3s linear infinite; }
.lines-after path { fill: none; stroke: var(--copper-l); stroke-width: 3; stroke-linecap: round; }
.lines-after path.to-you { stroke: rgba(246, 241, 233, .55); stroke-width: 2; stroke-dasharray: 2 8; }
.pulses circle { fill: var(--cream); }
@keyframes dashMove { to { stroke-dashoffset: -30; } }

.xl { position: absolute; z-index: 2; transform: translate(-50%, -50%); font-size: 14px; font-weight: 700; color: var(--copper-ink); background: var(--sand-2); padding: 2px 8px; border-radius: 6px; transition: opacity .5s var(--ease); white-space: nowrap; }
.stage[data-state="after"] .xl { opacity: 0; }

.n { position: absolute; z-index: 2; left: var(--x); top: var(--y); transform: translate(-50%, -50%) rotate(var(--r, 0deg)) scale(var(--s, 1)); opacity: var(--o, 1); transition: left 1s var(--ease-out), top 1s var(--ease-out), transform 1s var(--ease-out), opacity .6s var(--ease); }
.tool, .pill, .hub, .you { --x: 50%; --y: 50%; }
/* positions : ordinateur */
.n[data-id="tableur"]  { --bx: 16%; --by: 30%; }
.n[data-id="mail"]     { --bx: 41%; --by: 19%; }
.n[data-id="carnet"]   { --bx: 29%; --by: 55%; }
.n[data-id="devis"]    { --bx: 18%; --by: 82%; }
.n[data-id="agenda"]   { --bx: 52%; --by: 80%; }
.n[data-id="you"]      { --bx: 80%; --by: 52%; --ax: 87%; --ay: 54%; }
.n[data-id="clients"]  { --ax: 50%; --ay: 17%; }
.n[data-id="devisp"]   { --ax: 74%; --ay: 34%; }
.n[data-id="planning"] { --ax: 66%; --ay: 83%; }
.n[data-id="stock"]    { --ax: 34%; --ay: 83%; }
.n[data-id="factures"] { --ax: 26%; --ay: 34%; }
/* états */
.stage[data-state="before"] .tool { --x: var(--bx); --y: var(--by); --r: var(--rb); --o: 1; --s: 1; }
.stage[data-state="after"]  .tool { --x: 50%; --y: 50%; --r: 0deg; --o: 0; --s: .22; }
.stage[data-state="before"] .pill { --x: 50%; --y: 50%; --o: 0; --s: .3; }
.stage[data-state="after"]  .pill { --x: var(--ax); --y: var(--ay); --o: 1; --s: 1; transition-delay: calc(var(--d) * 80ms + 300ms); }
.stage[data-state="before"] .hub  { --o: 0; --s: .35; }
.stage[data-state="after"]  .hub  { --o: 1; --s: 1; transition-delay: .25s; }
.stage[data-state="before"] .you  { --x: var(--bx); --y: var(--by); }
.stage[data-state="after"]  .you  { --x: var(--ax); --y: var(--ay); }

.card { display: flex; align-items: center; gap: 10px; background: var(--paper); border: 1.5px solid rgba(31, 61, 51, .32); border-radius: 12px; padding: 10px 16px 10px 12px; box-shadow: 0 10px 24px -16px rgba(21, 43, 36, .55); white-space: nowrap; }
.card b { font-weight: 600; font-size: 16px; color: var(--ink); }
.ti { width: 24px; height: 24px; flex: none; fill: none; stroke: var(--ink-soft); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.stage[data-state="before"] .tool .card { animation: jitter 3.6s ease-in-out infinite; }
.stage[data-state="before"] .tool:nth-of-type(2n) .card { animation-duration: 4.2s; animation-direction: reverse; }
@keyframes jitter { 25% { transform: rotate(1.6deg); } 75% { transform: rotate(-1.6deg); } }

.pill { background: var(--cream); color: var(--green); font-weight: 600; font-size: 17px; padding: 11px 24px; border-radius: 999px; white-space: nowrap; box-shadow: 0 14px 28px -16px rgba(0, 0, 0, .55); }
.hub { width: 132px; height: 132px; }
.hub svg { width: 100%; height: 100%; display: block; overflow: visible; }
.hub circle { fill: var(--copper); }
.hub .halo { fill: rgba(224, 145, 79, .2); transform-origin: 0 0; }
.stage[data-state="after"] .hub .halo { animation: halo 3.2s ease-in-out infinite; }
@keyframes halo { 50% { transform: scale(1.14); opacity: .5; } }
.hub path { fill: none; stroke: var(--green); stroke-width: 5; stroke-linejoin: miter; }

.you { display: grid; justify-items: center; gap: 6px; }
.you-ico { position: relative; width: 66px; height: 66px; border-radius: 50%; display: grid; place-items: center; background: var(--green); transition: background-color .9s var(--ease); box-shadow: var(--shadow-sm); }
.you-ico > svg { width: 34px; height: 34px; fill: none; stroke: var(--cream); stroke-width: 1.8; stroke-linecap: round; transition: stroke .9s var(--ease); }
.stage[data-state="after"] .you-ico { background: var(--cream); }
.stage[data-state="after"] .you-ico > svg { stroke: var(--green); }
.badge { position: absolute; right: -4px; top: -4px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-weight: 700; font-size: 15px; transition: opacity .5s var(--ease), transform .6s var(--ease-out); }
.badge-b { background: var(--copper); color: var(--ink); }
.badge-a { background: var(--copper-l); color: var(--green); opacity: 0; transform: scale(.3); }
.badge-a svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.stage[data-state="after"] .badge-b { opacity: 0; transform: scale(.3); }
.stage[data-state="after"] .badge-a { opacity: 1; transform: none; transition-delay: .7s; }
.you-l { font-size: 15px; font-weight: 600; color: var(--ink); transition: color .9s var(--ease); }
.stage[data-state="after"] .you-l { color: var(--cream); }

/* tablettes : scène un peu plus haute */
@media (max-width: 1000px) and (min-width: 761px) { .stage { aspect-ratio: 16 / 9; } }

/* positions : mobile */
@media (max-width: 760px) {
  .stage { aspect-ratio: 4 / 5.7; border-radius: 22px; }
  .stage-cap { left: 18px; top: 16px; font-size: 17px; }
  .n[data-id="tableur"]  { --bx: 27%; --by: 14%; }
  .n[data-id="mail"]     { --bx: 70%; --by: 25%; }
  .n[data-id="carnet"]   { --bx: 28%; --by: 39%; }
  .n[data-id="devis"]    { --bx: 71%; --by: 52%; }
  .n[data-id="agenda"]   { --bx: 27%; --by: 67%; }
  .n[data-id="you"]      { --bx: 68%; --by: 85%; --ax: 50%; --ay: 86%; }
  .n[data-id="clients"]  { --ax: 50%; --ay: 12%; }
  .n[data-id="devisp"]   { --ax: 79%; --ay: 30%; }
  .n[data-id="planning"] { --ax: 77%; --ay: 66%; }
  .n[data-id="stock"]    { --ax: 23%; --ay: 66%; }
  .n[data-id="factures"] { --ax: 21%; --ay: 30%; }
  .n[data-id="hub"]      { --y: 48%; }
  .card { padding: 8px 12px 8px 9px; gap: 8px; }
  .card b { font-size: 13.5px; }
  .ti { width: 19px; height: 19px; }
  .pill { font-size: 14px; padding: 9px 16px; }
  .hub { width: 96px; height: 96px; }
  .you-ico { width: 52px; height: 52px; }
  .you-ico > svg { width: 27px; height: 27px; }
  .badge { width: 22px; height: 22px; font-size: 13px; }
  .xl { font-size: 12px; padding: 1px 6px; }
  .seg-btn { padding: 10px 20px; font-size: 15px; }
}

/* ---------- Les trois piliers ---------- */
.piliers { background: var(--green); color: var(--cream); padding: clamp(48px, 7vh, 88px) 0 0; position: relative; overflow: hidden; }
.piliers-head { margin-bottom: clamp(48px, 6vw, 80px); }
.pillar-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pillar { position: relative; overflow: hidden; min-height: clamp(460px, 48vw, 640px); display: flex; align-items: flex-end; padding: 48px clamp(24px, 3vw, 48px) 56px; isolation: isolate; }
.pillar-m { background: var(--green-deep); }
.pillar-a { background: var(--green-mid); }
.pillar-i { background: var(--copper); color: var(--ink); }
.giant {
  position: absolute; left: 50%; top: -0.08em; transform: translateX(-50%); z-index: -1;
  font-size: clamp(240px, 28vw, 420px); font-weight: 600; line-height: 1; letter-spacing: -.06em;
  color: rgba(246, 241, 233, .07); transition: transform 1s var(--ease-out), color .6s;
  user-select: none;
}
.pillar-i .giant { color: rgba(20, 38, 31, .1); }
.pillar:hover .giant { transform: translateX(-50%) translateY(-14px); color: rgba(224, 145, 79, .16); }
.pillar-i:hover .giant { color: rgba(20, 38, 31, .18); }
.pillar-body { position: relative; }
.pillar h3 { font-size: clamp(26px, 2.5vw, 36px); letter-spacing: -.03em; margin-bottom: 18px; }
.pillar .initial { color: var(--copper-l); }
.pillar-i .initial { color: var(--cream); }
.pillar p { font-size: 18px; color: rgba(246, 241, 233, .82); max-width: 34ch; }
.pillar-i p { color: var(--ink); }
.pillar::before { content: ""; position: absolute; left: clamp(24px, 3vw, 48px); top: 48px; width: 48px; height: 8px; background: var(--copper-l); transform-origin: left; transition: transform .6s var(--ease-out); }
.pillar-i::before { background: var(--ink); }
.pillar:hover::before { transform: scaleX(1.8); }
@media (min-width: 901px) { .pillar p { min-height: 4.8em; } }
@media (max-width: 900px) {
  .pillar-row { grid-template-columns: 1fr; }
  .pillar { min-height: 400px; }
  .giant { font-size: 380px; left: auto; right: -0.04em; transform: none; }
  .pillar:hover .giant { transform: translateY(-10px); }
}
@media (max-width: 420px) { .giant { font-size: 300px; } .pillar { min-height: 360px; } }

/* ---------- Ce que je construis ---------- */
.construire { background: var(--paper); padding-bottom: 0; }
.build-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.offers { position: sticky; top: calc(var(--header-h) + 32px); display: grid; gap: 4px; }
.offer {
  display: grid; grid-template-columns: 56px 1fr; gap: 16px; padding: 24px 20px; border-radius: var(--radius-sm); cursor: default;
  border-left: 4px solid transparent; transition: background-color .4s, border-color .4s, transform .5s var(--ease-out);
}
.offer:hover, .offer:focus-visible, .offer.is-on { background: var(--cream); border-left-color: var(--copper); transform: translateX(6px); }
.offer-num { font-size: 28px; font-weight: 600; color: var(--copper-ink); line-height: 1.1; letter-spacing: -.02em; }
.offer h3 { font-size: clamp(19px, 1.5vw, 22px); margin-bottom: 8px; }
.offer p { color: var(--ink-soft); }

.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
.ui {
  background: #fff; border-radius: 16px; padding: 20px; box-shadow: 0 1px 0 var(--line), 0 24px 48px -30px rgba(21, 43, 36, .45);
  border: 1px solid var(--line); font-size: 14.5px; position: relative;
  transition: transform .55s var(--ease-out), box-shadow .55s var(--ease-out), opacity .4s, filter .4s;
}
.ui:hover { transform: translateY(-6px) rotate(-.4deg); box-shadow: 0 1px 0 var(--line), 0 40px 60px -32px rgba(21, 43, 36, .55); }
.cards.has-focus .ui { opacity: .45; filter: saturate(.6); }
.cards.has-focus .ui.is-lit { opacity: 1; filter: none; transform: translateY(-6px); box-shadow: 0 0 0 3px var(--copper), 0 40px 60px -32px rgba(21, 43, 36, .55); }
.ui-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 16px; }
.ui-title { font-weight: 700; font-size: 16px; }
.ui-pill, .ui-search { font-size: 12.5px; padding: 4px 10px; border-radius: 999px; background: var(--cream); color: var(--ink-soft); white-space: nowrap; }
.ui-search { padding-left: 26px; background: var(--cream) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234B5B54' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-4-4'/%3E%3C/svg%3E") 9px 50% / 12px no-repeat; }
.ui-live { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--green); }
.ui-live i { width: 8px; height: 8px; border-radius: 50%; background: #3F9B6E; animation: ping2 2s ease-out infinite; }
@keyframes ping2 { 0% { box-shadow: 0 0 0 0 rgba(63, 155, 110, .55); } 70%, 100% { box-shadow: 0 0 0 8px rgba(63, 155, 110, 0); } }
.cards-note { grid-column: 1 / -1; font-size: 14px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--copper-ink); }

.ui-auto { grid-column: 1 / -1; background: var(--green); color: var(--cream); border-color: transparent; }
.ui-auto .ui-live { color: var(--cream); }
.flow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; counter-reset: f; }
.flow li { position: relative; padding: 14px 12px; border-radius: 10px; background: rgba(246, 241, 233, .08); line-height: 1.3; display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.flow li:not(:last-child)::after { content: ""; position: absolute; right: -10px; top: 26px; width: 10px; height: 2px; background: var(--copper-l); }
.flow .ico { width: 24px; height: 24px; padding: 4px; border-radius: 50%; background: var(--copper-l); color: var(--ink); stroke-width: 3; }
.flow .wait { background: rgba(224, 145, 79, .16); }
.spin { width: 24px; height: 24px; border-radius: 50%; border: 3px solid rgba(246, 241, 233, .25); border-top-color: var(--copper-l); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.js .flow li { opacity: 0; transform: translateY(8px); transition: opacity .5s var(--ease-out), transform .5s var(--ease-out); }
.js .ui-auto.in .flow li { opacity: 1; transform: none; }
.js .ui-auto.in .flow li:nth-child(2) { transition-delay: .25s; }
.js .ui-auto.in .flow li:nth-child(3) { transition-delay: .5s; }
.js .ui-auto.in .flow li:nth-child(4) { transition-delay: .75s; }

.ui-table { width: 100%; border-collapse: collapse; }
.ui-table th { text-align: left; font-size: 11.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); padding: 0 6px 8px 0; border-bottom: 1px solid var(--line); }
.ui-table td { padding: 10px 6px 10px 0; border-bottom: 1px solid var(--line); white-space: nowrap; }
.ui-table tr:last-child td { border-bottom: 0; }
.ui-table tbody tr { transition: background-color .3s; }
.ui-table tbody tr:hover { background: var(--cream); }
.st { display: inline-block; font-size: 12px; font-weight: 600; padding: 3px 8px; border-radius: 999px; }
.st-todo { background: rgba(199, 123, 59, .16); color: #874716; }
.st-done { background: var(--green-soft); color: var(--green); }
.st-wait { background: var(--cream-2); color: var(--ink-soft); }

.plan { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); grid-template-rows: auto 40px 40px; gap: 6px; }
.plan-day { font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-soft); text-align: center; grid-row: 1; }
.slot { border-radius: 8px; font-size: 12.5px; font-weight: 600; display: flex; align-items: center; padding: 0 8px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.s-green { background: var(--green); color: var(--cream); }
.s-copper { background: var(--copper-l); color: var(--ink); }
.s-soft { background: var(--cream-2); color: var(--ink); }
.js .slot { transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease-out); }
.js .ui-plan.in .slot { transform: none; }
.js .ui-plan.in .slot:nth-of-type(n+8) { transition-delay: .15s; }

.gauges { display: grid; gap: 14px; }
.gauges li { display: grid; grid-template-columns: 78px 1fr; align-items: center; gap: 4px 12px; }
.gauges em { grid-column: 2; font-style: normal; font-size: 12px; font-weight: 600; color: var(--copper-ink); }
.gauge { height: 12px; border-radius: 999px; background: var(--cream-2); overflow: hidden; }
.gauge i { display: block; height: 100%; width: 100%; border-radius: inherit; background: var(--green); transform: scaleX(var(--v)); transform-origin: left; transition: transform 1.2s var(--ease-out); }
.low .gauge i { background: var(--copper); }
.js .ui-stock:not(.in) .gauge i { transform: scaleX(0); }

.kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.kpis div { background: var(--cream); border-radius: 10px; padding: 10px 12px; }
.kpis small { display: block; font-size: 12px; color: var(--ink-soft); line-height: 1.2; }
.kpis b { display: block; font-size: 28px; font-weight: 300; color: var(--ink-soft); line-height: 1.1; }
.bars { display: flex; align-items: flex-end; gap: 8px; height: 76px; border-bottom: 1px solid var(--line); }
.bars i { flex: 1; height: 100%; background: var(--cream-2); border: 1px solid var(--line); border-bottom: 0; border-radius: 4px 4px 0 0; transform: scaleY(.5); transform-origin: bottom; transition: transform 1s var(--ease-out); }
.js .ui-dash:not(.in) .bars i { transform: scaleY(0); }
.bars i:nth-child(2) { transition-delay: .05s; } .bars i:nth-child(3) { transition-delay: .1s; } .bars i:nth-child(4) { transition-delay: .15s; } .bars i:nth-child(5) { transition-delay: .2s; } .bars i:nth-child(6) { transition-delay: .25s; }

@media (max-width: 1000px) {
  .build-grid { grid-template-columns: 1fr; }
  .offers { position: static; }
}
@media (max-width: 640px) {
  .cards { grid-template-columns: 1fr; }
  .flow { grid-template-columns: 1fr 1fr; }
  .flow li:nth-child(2)::after { display: none; }
  .offer { grid-template-columns: 44px 1fr; padding: 20px 12px; }
}
@media (max-width: 360px) { .flow { grid-template-columns: 1fr; } .flow li::after { display: none; } }

/* AIOS */
.aios { margin-top: clamp(96px, 12vw, 160px); background: var(--green-deep); color: var(--cream); position: relative; overflow: hidden; padding: clamp(80px, 10vw, 140px) 0; }
.aios-grid { display: grid; grid-template-columns: minmax(0, .78fr) minmax(0, 1.35fr); gap: clamp(40px, 6vw, 96px); align-items: center; position: relative; }
.aios-text .h2 { margin-bottom: 36px; }
.aios-text p:not(.eyebrow) { font-size: clamp(18px, 1.5vw, 20px); color: rgba(246, 241, 233, .82); max-width: 56ch; }
.aios-text p + p { margin-top: 18px; }
.kg { margin: 0 auto; width: 100%; max-width: 780px; }
.kg-stage { position: relative; width: 100%; aspect-ratio: 1.08; background: radial-gradient(60% 56% at 50% 50%, rgba(224, 145, 79, .10), rgba(224, 145, 79, 0) 70%); }
.kg-svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; overflow: visible; touch-action: pan-y; }
.kg-cap { margin-top: 10px; text-align: center; font-size: 14px; letter-spacing: .06em; color: rgba(246, 241, 233, .78); }

.kg .edge { stroke: rgba(246, 241, 233, .15); stroke-width: 1; fill: none; transition: stroke .35s, opacity .35s, stroke-width .35s; }
.kg .edge.hubline { stroke: rgba(224, 145, 79, .38); stroke-width: 1.3; }
.kg .edge.hubmesh { stroke: rgba(224, 145, 79, .26); stroke-width: 1.1; }
.kg .edge.spoke { stroke: rgba(var(--tint, 224, 145, 79), .55); stroke-width: 1.6; }
.kg .node { cursor: default; transition: opacity .35s; }
.kg.can-drag .node { cursor: grab; }
.kg .node circle.dot { fill: #F6F1E9; transition: fill .3s, r .3s; }
.kg .node.k-sub circle.dot { opacity: .88; }
.kg .node.k-hub circle.dot { fill: var(--copper-l); }
.kg .node.k-center circle.dot { fill: #F6F1E9; }
.kg .node circle.halo { fill: rgba(224, 145, 79, .16); }
.kg .node.k-center circle.halo { fill: rgba(224, 145, 79, .26); }
.kg .lab { font: 500 13.5px var(--f); fill: #F6F1E9; text-anchor: middle; paint-order: stroke; stroke: var(--green-deep); stroke-width: 4px; stroke-linejoin: round; opacity: .82; transition: opacity .35s; pointer-events: none; }
.kg .node.k-hub .lab { font-size: 16.5px; font-weight: 600; opacity: 1; fill: #F6F1E9; }
.kg .node.k-center .lab { font-size: 17.5px; font-weight: 600; opacity: 1; }
.kg .node.is-lit .lab { opacity: 1; }
.kg.has-focus .node { opacity: .62; }
.kg.has-focus .node.is-lit { opacity: 1; }
.kg.has-focus .node:not(.is-lit) .lab { opacity: .38; }
.kg.has-focus .edge { opacity: .55; }
.kg .node circle.dot, .kg .node circle.halo { transform-box: fill-box; transform-origin: center; transition: transform .4s var(--ease-out), fill .3s; }
.kg .node.is-lit circle.dot { transform: scale(1.35); }
.kg .node.is-lit circle.halo { transform: scale(1.5); }
.kg .node.k-sub.is-lit .lab { font-size: 14.5px; font-weight: 600; }
.kg .node.k-hub circle.dot { filter: drop-shadow(0 0 9px rgba(224, 145, 79, .6)); }
.kg.has-focus .edge.is-lit { opacity: 1; stroke: rgba(var(--tint, 224, 145, 79), .95); stroke-width: 2; }
.kg .pulse { fill: #F6F1E9; }
@media (max-width: 900px) {
  .aios-grid { grid-template-columns: 1fr; }
  .kg { max-width: 560px; }
}
@media (max-width: 560px) { .kg-stage { aspect-ratio: 1 / 1.08; } .kg .node.k-hub .lab { font-size: 12.5px; } .kg .lab { font-size: 10px; stroke-width: 3px; } }

/* ---------- Méthode ---------- */
.methode { background: var(--cream); }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; position: relative; padding-top: 28px; }
.steps::before, .steps::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: var(--cream-2); }
.steps::after { background: var(--copper); transform-origin: left; transform: scaleX(var(--progress, 0)); transition: transform .2s linear; }
.no-anim .steps::after { transform: none; }
.step { position: relative; padding-right: 8px; display: flex; flex-direction: column; }
.step-num { display: block; font-size: clamp(56px, 5vw, 76px); font-weight: 600; line-height: .9; letter-spacing: -.06em; color: var(--green); margin-bottom: 20px; transition: color .4s, transform .5s var(--ease-out); }
.step:hover .step-num { color: var(--copper-ink); transform: translateY(-6px); }
.step h3 { font-size: clamp(20px, 1.7vw, 24px); margin-bottom: 12px; }
.step > p:not(.step-get) { margin-bottom: 18px; }
.step p { color: var(--ink-soft); }
.step .step-get { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); font-size: .94em; }
.step-get b { display: block; margin-bottom: 2px; font-size: .8em; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--copper-ink); }
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr 1fr; row-gap: 56px; }
}
@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; padding-top: 0; padding-left: 28px; row-gap: 40px; }
  .steps::before, .steps::after { right: auto; bottom: 0; width: 6px; height: auto; }
  .steps::after { transform-origin: top; transform: scaleY(var(--progress, 0)); }
  .no-anim .steps::after { transform: none; }
  .step-num { font-size: 88px; margin-bottom: 8px; }
}

/* ---------- Principes ---------- */
.principes { background: var(--paper); }
.principes-grid { display: grid; grid-template-columns: minmax(0, 3.6fr) minmax(0, 8.4fr); gap: clamp(32px, 4vw, 64px); align-items: start; }
.principes-head { position: sticky; top: calc(var(--header-h) + 40px); margin-bottom: 0; }
.rules { display: grid; }
.rule { display: grid; grid-template-columns: 14px 1fr; gap: 28px; padding: 34px 0; border-top: 1px solid var(--line); }
.rule:last-child { border-bottom: 1px solid var(--line); }
.rule-bar { width: 14px; height: 100%; min-height: 56px; background: var(--green); transition: background-color .4s, transform .5s var(--ease-out); transform-origin: top; }
.rule:hover .rule-bar { background: var(--copper); transform: scaleY(1.08); }
.rule h3 { font-size: clamp(20px, 1.8vw, 26px); margin-bottom: 10px; transition: color .4s; }
.rule:hover h3 { color: var(--copper-ink); }
.rule p { color: var(--ink-soft); max-width: 72ch; }
@media (max-width: 900px) {
  .principes-grid { grid-template-columns: 1fr; }
  .principes-head { position: static; margin-bottom: 40px; }
  .rule { gap: 20px; padding: 28px 0; }
  .rule-bar { width: 8px; }
  .rule { grid-template-columns: 8px 1fr; }
}

/* ---------- Qui je suis ---------- */
.qui { background: var(--cream); overflow: hidden; }
.qui-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.photo {
  position: relative; aspect-ratio: 4 / 5; border-radius: 0 120px 0 0; overflow: hidden; display: grid; place-items: center;
  background: var(--cream-2);
}
.photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; display: block; }
.qui-lead { font-style: italic; font-size: clamp(19px, 1.7vw, 24px); line-height: 1.4; margin-top: 32px; max-width: 42ch; }
.qui-sign { font-style: italic; text-align: right; max-width: 42ch; margin-top: 22px; font-size: 20px; font-weight: 700; letter-spacing: -.01em; color: var(--copper-ink); }
.todo { margin-top: 28px; display: inline-block; padding: 14px 18px; border: 2px dashed var(--copper); border-radius: 8px; color: var(--copper-ink); font-weight: 500; background: rgba(199, 123, 59, .06); }
@media (max-width: 900px) {
  .qui-grid { grid-template-columns: 1fr; }
  .photo { max-width: 420px; width: 100%; }
}

/* ---------- Cas concret ---------- */
.cas { background: var(--green); color: var(--cream); overflow: hidden; }
.cas .sec-lead { color: rgba(246, 241, 233, .75); }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px; background: var(--line-light); border: 1px solid var(--line-light); border-radius: var(--radius); overflow: hidden; position: relative; }
.fact { display: flex; align-items: center; gap: 20px; padding: 34px 28px; background: var(--green); font-size: clamp(19px, 1.7vw, 23px); font-weight: 400; line-height: 1.25; transition: background-color .4s; }
.fact .ico-lg { color: var(--copper-l); transition: transform .5s var(--ease-out); }
.fact:hover { background: var(--green-mid); }
.fact:hover .ico-lg { transform: scale(1.15) rotate(-6deg); }
.fact-wide { grid-column: span 3; background: var(--copper); color: var(--ink); }
.fact-wide .ico-lg { color: var(--ink); }
.fact-wide:hover { background: var(--copper-l); }
@media (max-width: 900px) { .facts { grid-template-columns: 1fr 1fr; } .fact-wide { grid-column: span 2; } }
@media (max-width: 560px) { .facts { grid-template-columns: 1fr; } .fact-wide { grid-column: auto; } .fact { padding: 24px 20px; } }

/* ---------- Pour qui, et ce que je ne fais pas (repris de A) ---------- */
.pourqui { background: var(--cream); }
.fit { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.fit-card { position: relative; border-radius: var(--radius); padding: clamp(48px, 5vw, 64px) clamp(24px, 4vw, 56px) clamp(40px, 5vw, 56px); overflow: hidden; }
.fit-card::before { content: ""; position: absolute; left: clamp(24px, 4vw, 56px); top: 0; width: 48px; height: 8px; background: var(--copper-l); transform-origin: left; transition: transform .6s var(--ease-out); }
.fit-card:hover::before { transform: scaleX(1.8); }
.fit-card h3 { font-size: clamp(24px, 2.3vw, 32px); letter-spacing: -.03em; margin-bottom: 32px; }
.fit-card ul { display: grid; gap: 22px; }
.fit-card li { display: flex; gap: 16px; align-items: flex-start; font-size: clamp(18px, 1.6vw, 21px); line-height: 1.45; }
.fit-card li .ico { width: 30px; height: 30px; padding: 6px; border-radius: 50%; margin-top: 1px; stroke-width: 2.6; }
.fit-yes { background: var(--green); color: var(--cream); box-shadow: var(--shadow); }
.fit-yes h3 { color: var(--copper-l); }
.fit-yes li { color: rgba(246, 241, 233, .88); }
.fit-yes .ico { background: var(--copper-l); color: var(--ink); }
.fit-no { background: var(--sand); border: 1px solid rgba(31, 61, 51, .12); }
.fit-no::before { background: var(--green); }
.fit-no h3 { color: var(--ink); }
.fit-no li { color: var(--ink-soft); }
.fit-no .ico { background: var(--cream-2); color: var(--copper-ink); }
#fit-title .copper { display: inline; }
.fit-note { margin-top: clamp(16px, 2.4vh, 26px); padding-left: 22px; border-left: 6px solid var(--copper); font-size: clamp(18px, 1.5vw, 20px); line-height: 1.4; color: var(--ink-soft); }
.fit-note strong { display: block; margin-bottom: 4px; color: var(--copper-ink); font-weight: 700; font-size: clamp(18px, 1.5vw, 21.5px); line-height: 1.25; letter-spacing: -.01em; }
@media (min-width: 1200px) { .fit-note strong { white-space: nowrap; } }
.fit-note { max-width: none; }
.fit-note { text-wrap-style: pretty; }
.fit-note { font-style: italic; }
.fit-note a { color: var(--copper-ink); font-weight: 600; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; }
.fit-note a:hover { color: var(--ink); }
@media (min-width: 1001px) {
  .fit-card { padding: 44px clamp(24px, 4vw, 56px) 36px; }
  .fit-card h3 { margin-bottom: 22px; }
  .fit-card ul { gap: 13px; }
  .fit-card li { font-size: 19px; }
  .fit-card { padding-top: 40px; padding-bottom: 30px; }
  .fit-card h3 { margin-bottom: 18px; }
}
@media (max-width: 800px) { .fit { grid-template-columns: 1fr; } }

/* ---------- Questions ---------- */
.faq { background: var(--paper); }
.faq-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq-head { margin-bottom: 0; }
.acc { border-top: 2px solid var(--green); }
.acc:last-child { border-bottom: 2px solid var(--green); }
.acc h3 { font-size: inherit; letter-spacing: normal; }
.acc button {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; text-align: left;
  padding: 32px 0; background: none; border: 0; cursor: pointer; font-size: clamp(20px, 2vw, 26px); font-weight: 700; line-height: 1.2; letter-spacing: -.01em;
  transition: color .3s;
}
.acc button:hover { color: var(--copper-ink); }
.acc-ico { position: relative; width: 44px; height: 44px; flex: none; border-radius: 50%; background: var(--cream); transition: background-color .4s, transform .5s var(--ease-out); }
.acc-ico::before, .acc-ico::after { content: ""; position: absolute; left: 50%; top: 50%; width: 16px; height: 3px; margin: -1.5px 0 0 -8px; background: var(--green); transition: transform .5s var(--ease-out), background-color .4s; }
.acc-ico::after { transform: rotate(90deg); }
.acc button[aria-expanded="true"] .acc-ico { background: var(--copper); transform: rotate(180deg); }
.acc button[aria-expanded="true"] .acc-ico::after { transform: rotate(0); }
.acc button[aria-expanded="true"] .acc-ico::before, .acc button[aria-expanded="true"] .acc-ico::after { background: var(--ink); }
.acc-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s var(--ease-out); }
.acc-panel > div { overflow: hidden; }
.acc-panel p { padding: 0 64px 30px 0; color: var(--ink-soft); font-size: 18px; max-width: 60ch; }
.acc.open .acc-panel { grid-template-rows: 1fr; }
.no-js .acc-panel, html:not(.js) .acc-panel { grid-template-rows: 1fr; }
@media (max-width: 900px) { .faq-grid { grid-template-columns: 1fr; } .faq-head { margin-bottom: 32px; } .acc-panel p { padding-right: 0; } }

/* ---------- Contact ---------- */
.contact { background: var(--copper); color: var(--ink); padding: clamp(48px, 7vh, 88px) 0; position: relative; overflow: hidden; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: start; position: relative; padding-right: clamp(0px, 6vw, 80px); }
.contact-title { font-size: clamp(32px, 4.2vw, 60px); line-height: 1; letter-spacing: -.03em; }
.contact-lead { margin-top: 28px; font-size: clamp(19px, 1.7vw, 22px); max-width: 44ch; }
.contact-list { display: grid; gap: 14px; margin-top: 44px; max-width: 520px; }
.contact-list li { display: flex; align-items: center; gap: 18px; background: var(--paper); border-radius: 14px; padding: 20px 22px; box-shadow: 0 20px 40px -26px rgba(20, 38, 31, .6); transition: transform .5s var(--ease-out); }
.contact-list li:hover { transform: translateX(6px); }
.contact-list .ico { width: 44px; height: 44px; padding: 11px; border-radius: 50%; background: var(--green); color: var(--cream); }
.contact-list small { display: block; font-size: 14px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); font-weight: 600; }
.contact-list b { font-size: 20px; font-weight: 500; }
.placeholder-txt { color: var(--copper-ink); }
.contact-form { background: var(--paper); border-radius: var(--radius); padding: clamp(24px, 3vw, 40px); box-shadow: 0 30px 60px -34px rgba(20, 38, 31, .6); }
.contact-form fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 18px; min-width: 0; }
.contact-form label { display: grid; gap: 8px; font-size: 14px; font-weight: 500; letter-spacing: .04em; color: var(--green); }
.contact-form input, .contact-form textarea { width: 100%; font: inherit; font-size: 16px; font-weight: 400; color: var(--ink); padding: 14px 16px; border-radius: 10px; border: 1px solid var(--line); background: var(--cream); resize: vertical; }
.contact-form fieldset[disabled] { opacity: .62; }
.contact-form fieldset[disabled] .btn { cursor: not-allowed; transform: none; }
.btn-block { width: 100%; }
.form-note { margin-top: 18px; font-size: 14px; color: var(--copper-ink); text-align: center; }
@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; padding-right: 0; }
  .contact-band { display: none; }
}

/* ---------- Pied de page ---------- */
.footer { background: var(--green-deep); color: rgba(246, 241, 233, .72); padding: 56px 0; font-size: 15px; }
.footer-inner { display: flex; align-items: center; gap: 20px 32px; flex-wrap: wrap; }
.footer-mark { height: 40px; width: auto; }
.signature { font-size: 17px; font-weight: 500; letter-spacing: .04em; color: var(--cream); }
.legal { flex: 1 1 260px; font-weight: 400; }
.footer-top { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 500; color: var(--cream); transition: color .3s; }
.footer-top:hover { color: var(--copper-l); }
.footer-top .ico { transform: rotate(-90deg); transition: transform .4s var(--ease-out); }
.footer-top:hover .ico { transform: rotate(-90deg) translateX(4px); }

/* ---------- Apparitions ---------- */
/* Texte visible dès le chargement (règle du CLAUDE.md, décision de Jones du 2026-11-20) : seul le glissement reste */
.js .reveal { opacity: 1; transform: translateY(28px); transition: transform .9s var(--ease-out); }
.js .reveal.in { opacity: 1; transform: none; }
.js .pillar.reveal { transform: translateY(60px); }
.js .pillar.reveal.in { transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal, .js .pillar.reveal { opacity: 1; transform: none; transition: none; }
  .js .hero-title .line > span { transform: none; animation: none; }
  .js .draw { stroke-dashoffset: 0; animation: none; }
  .hero-mono .fl { animation: none; }
  .js .hero-mono .draw { opacity: 1; animation: none; }
  .js .flow li, .js .slot { opacity: 1; transform: none; transition: none; }
  .js .ui-stock:not(.in) .gauge i { transform: scaleX(var(--v)); }
  .js .ui-dash:not(.in) .bars i { transform: scaleY(.5); }
  .scheme-after .spokes path { stroke-dashoffset: 0; transition: none; }
  .steps::after { transform: none !important; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}


/* ---------- Reflet cuivré qui suit le pointeur (effet repris de la version A) ---------- */
.glow { position: relative; overflow: hidden; --glow: rgba(199, 123, 59, .15); --glow-line: rgba(199, 123, 59, .5); }
.pain-dark.glow, .fact.glow, .fit-yes.glow, .cx.glow { --glow: rgba(224, 145, 79, .2); --glow-line: rgba(224, 145, 79, .5); }
.glow-fx {
  position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 0; opacity: 0; transition: opacity .45s;
  background: radial-gradient(360px 240px at var(--mx, 50%) var(--my, 0%), var(--glow), transparent 70%);
  box-shadow: inset 0 0 0 1px var(--glow-line);
}
.glow:hover .glow-fx { opacity: 1; }
.glow > :not(.glow-fx) { position: relative; z-index: 1; }

@media (prefers-reduced-motion: reduce) {
  .n, .stage, .lines-before, .lines-after, .cap, .badge, .xl, .you-ico, .you-ico > svg, .you-l, .seg-btn { transition: none !important; }
  .stage .tool .card, .lines-before path, .hub .halo { animation: none !important; }
}

@media (max-width: 560px) {
  .kg .node.k-sub .lab { opacity: 0; }
  .kg .node.k-sub.is-lit .lab { opacity: 1; }
}

/* ---------- Grand écran : chaque section tient d'un coup sur l'écran ---------- */
@media (min-width: 1001px) {
  .stage { aspect-ratio: 3 / 1; }
  .piliers-head { margin-bottom: clamp(24px, 4vh, 48px); }
  .pillar { min-height: clamp(320px, 46vh, 440px); padding: 40px clamp(24px, 3vw, 48px) 44px; }
  .pillar::before { top: 40px; }
  .rule { padding: 20px 0; }
  .acc button { padding: 20px 0; }
  .compare::before { height: 40px; }
  .compare { padding-top: calc(clamp(40px, 5.5vh, 72px) + 28px); }
  .compare .sec-head { max-width: 1120px; }
}

/* Grand écran : chaque section occupe exactement la hauteur de l'écran sous le bandeau,
   contenu centré, pour qu'on ne voie jamais le début de la suivante */
@media (min-width: 1001px) and (min-height: 640px) {
  .section:not(.construire), .piliers, .contact {
    min-height: calc(100vh - var(--header-h));
    display: flex; flex-direction: column; justify-content: center;
  }
  .piliers .pillar-row { flex: 1; }
  .piliers-head { margin-bottom: clamp(24px, 4vh, 48px); }
}

/* ---------- Rangée d'exemples, défilement latéral ---------- */
.cases { margin-top: clamp(40px, 6vh, 72px); }
.cases-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.cases-title { font-size: clamp(22px, 2vw, 28px); font-weight: 600; letter-spacing: -.02em; }
.cases-nav { display: flex; gap: 10px; }
.cases-btn { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--green); background: transparent; color: var(--green); display: grid; place-items: center; cursor: pointer; transition: background-color .25s, color .25s, opacity .25s; }
.cases-btn:hover:not(:disabled) { background: var(--green); color: var(--cream); }
.cases-btn:disabled { opacity: .3; cursor: default; }
.cases-btn .ico { width: 20px; height: 20px; }
.cases-row { list-style: none; display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding: 6px 2px 22px; margin: 0; overscroll-behavior-x: contain; scrollbar-width: thin; scrollbar-color: var(--copper) transparent; }
.cases-row:focus-visible { outline: 3px solid var(--copper); outline-offset: 4px; border-radius: 12px; }
.case { flex: 0 0 min(500px, 84vw); scroll-snap-align: start; display: flex; flex-direction: column; gap: 14px; }
.case-num { font-size: 14px; font-weight: 700; letter-spacing: .14em; color: var(--copper-ink); }
.case h4 { font-size: clamp(20px, 1.7vw, 24px); font-weight: 600; letter-spacing: -.02em; line-height: 1.2; }
.case-pain { font-weight: 400; font-size: 17px; line-height: 1.5; }
.case-does { font-size: 15.5px; line-height: 1.5; color: var(--ink-soft); }
.case .ui { flex: 1; }
.case .ui:hover { transform: none; }
.case .gauges em { grid-column: 1 / -1; }
.journal { display: grid; gap: 12px; }
.journal li { display: grid; grid-template-columns: 48px auto 1fr; gap: 10px; align-items: baseline; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.journal li:last-child { border-bottom: 0; padding-bottom: 0; }
.journal time { font-size: 12.5px; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.journal b { font-weight: 600; }
.journal span { color: var(--ink-soft); }
.bars-demo i { transform: none; background: var(--green); border-color: transparent; }
.bars-demo i:nth-child(even) { background: var(--copper); }
@media (prefers-reduced-motion: reduce) { .cases-row { scroll-behavior: auto; } }
.case h4 { margin: 0; }
.js .case .slot { transform: none; }
.sales { display: block; width: 100%; height: auto; }
.sales .v1 { fill: var(--green); } .sales .v2 { fill: var(--copper); } .sales .v3 { fill: var(--green-soft); }
.sales-grid line { stroke: var(--line); stroke-width: 1; }
.sales-trend { fill: none; stroke: var(--ink); stroke-width: 2; stroke-dasharray: 5 4; stroke-linecap: round; stroke-linejoin: round; opacity: .55; }
.sales-dot { fill: var(--cream); stroke: var(--ink); stroke-width: 2.5; }
.sales-labels text { font-size: 10.5px; font-weight: 500; fill: var(--ink-soft); }
.sales-labels .now { font-weight: 700; fill: var(--ink); }
.sales-legend { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 10px; font-size: 13px; color: var(--ink-soft); }
.sales-legend li { display: inline-flex; align-items: center; gap: 6px; }
.sales-legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.sales-legend .v1 { background: var(--green); } .sales-legend .v2 { background: var(--copper); } .sales-legend .v3 { background: var(--green-soft); border: 1px solid var(--line); }

/* ---------- Simulation : une commande qui traverse les cinq cartes ---------- */
.sim-hint { font-size: 16px; font-weight: 500; color: var(--copper-ink); margin: -6px 0 16px; }
.ui-order { display: flex; flex-direction: column; gap: 14px; }
.order-client { font-weight: 600; }
.chips { border: 0; padding: 0; margin: 0; display: flex; gap: 8px; flex-wrap: wrap; }
.chips label { cursor: pointer; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span { display: inline-block; padding: 8px 14px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--cream); font-size: 14px; font-weight: 600; transition: background-color .2s, color .2s, border-color .2s; }
.chips input:checked + span { background: var(--green); color: var(--cream); border-color: var(--green); }
.chips input:focus-visible + span { outline: 3px solid var(--copper); outline-offset: 2px; }
.stepper { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.stepper > div { display: inline-flex; align-items: center; gap: 12px; }
.stepper button { width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid var(--green); background: transparent; color: var(--green); font: 600 20px/1 var(--f); cursor: pointer; }
.stepper button:hover:not(:disabled) { background: var(--green); color: var(--cream); }
.stepper button:disabled { opacity: .3; cursor: default; }
.stepper output { min-width: 24px; text-align: center; font-weight: 700; font-size: 18px; }
.sim-go { width: 100%; padding: 15px 20px; }
.sim-go:disabled { opacity: .55; cursor: default; transform: none; }
.case .plan { grid-template-rows: auto 40px 40px 40px; }
.slot-free { border: 1.5px dashed var(--line); border-radius: 8px; font-size: 12.5px; font-weight: 600; color: var(--ink-soft); display: flex; align-items: center; padding: 0 8px; }
.js .case .slot-new { transform: scaleX(0); z-index: 1; }
.js .case .slot-new.on { transform: none; }
.gauges .kg { grid-column: 2; font-style: normal; font-weight: 500; color: var(--ink-soft); }
.gauges li.low .kg { color: var(--copper-ink); font-weight: 600; }
.stock-warn { margin-top: 14px; padding: 10px 12px; border-radius: 10px; background: rgba(199, 123, 59, .14); color: var(--copper-ink); font-size: 13.5px; font-weight: 600; }
.journal li.nouveau { animation: entree .7s var(--ease-out) both; background: rgba(199, 123, 59, .12); border-radius: 8px; margin: 0 -8px; padding: 8px; }
@keyframes entree { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
.case.est-actif .ui { box-shadow: 0 0 0 3px var(--copper), 0 24px 48px -30px rgba(21, 43, 36, .45); }
.sim-result { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 8px; padding: 18px 22px; border-radius: 14px; background: var(--green); color: var(--cream); }
.sim-result[hidden] { display: none; }
.sim-result p { font-size: 18px; font-weight: 500; max-width: 62ch; }
.sim-result .btn { padding: 13px 22px; }
@media (prefers-reduced-motion: reduce) { .journal li.nouveau { animation: none; } }

/* ---------- Bande sombre, fil de progression, jeton qui voyage ---------- */
.cases-band { background: var(--green); color: var(--cream); margin-top: clamp(56px, 8vh, 96px); padding: clamp(48px, 7vh, 88px) 0; position: relative; overflow: hidden; }
.cases-band + .aios { margin-top: 0; }
.cases-band .cases { margin-top: 0; position: relative; }
.cases-band .cases-title { color: var(--cream); }
.cases-band .cases-btn { border-color: var(--cream); color: var(--cream); }
.cases-band .cases-btn:hover:not(:disabled) { background: var(--cream); color: var(--green); }
.cases-band .sim-hint { color: var(--copper-l); }
.cases-band .case-num { color: var(--copper-l); }
.cases-band .case h4 { color: var(--cream); }
.cases-band .case-pain { color: rgba(246, 241, 233, .9); }
.cases-band .case-does { color: rgba(246, 241, 233, .72); }
.cases-band .cards-note { color: var(--copper-l); }
.cases-band .ui { box-shadow: 0 30px 60px -28px rgba(0, 0, 0, .65); color: var(--ink); }
.cases-band .case.est-actif .ui { box-shadow: 0 0 0 3px var(--copper-l), 0 0 48px 6px rgba(224, 145, 79, .35), 0 30px 60px -28px rgba(0, 0, 0, .65); }
.cases-band .cases-row { scrollbar-color: var(--copper-l) transparent; }
.cases-band .sim-result { background: var(--cream); color: var(--green); }
.rail { --p: 0; position: relative; display: flex; justify-content: space-between; margin: 0 0 28px; max-width: 860px; }
.rail::before, .rail::after { content: ""; position: absolute; left: 16px; top: 15px; height: 3px; border-radius: 2px; }
.rail::before { right: 16px; background: rgba(246, 241, 233, .18); }
.rail::after { width: calc((100% - 32px) * var(--p)); background: var(--copper-l); transition: width .9s var(--ease-out); }
.rail li { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; width: 80px; }
.rail b { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--green-deep); border: 2px solid rgba(246, 241, 233, .3); font-size: 14px; font-weight: 700; color: rgba(246, 241, 233, .7); transition: background-color .4s, border-color .4s, color .4s, box-shadow .4s, transform .4s; }
.rail span { font-size: 12.5px; font-weight: 500; letter-spacing: .04em; color: rgba(246, 241, 233, .6); transition: color .4s; }
.rail li.on b { background: var(--copper-l); border-color: var(--copper-l); color: var(--ink); box-shadow: 0 0 0 6px rgba(224, 145, 79, .25), 0 0 22px rgba(224, 145, 79, .6); transform: scale(1.08); }
.rail li.on span { color: var(--cream); }
.chip-fly { position: absolute; left: 0; top: 0; z-index: 6; pointer-events: none; padding: 11px 18px; border-radius: 999px; background: var(--copper-l); color: var(--ink); font: 700 14px/1 var(--f); white-space: nowrap; opacity: 0; box-shadow: 0 0 0 5px rgba(224, 145, 79, .3), 0 0 36px rgba(224, 145, 79, .7), 0 18px 30px -10px rgba(0, 0, 0, .6); }
.ripple { position: absolute; z-index: 5; width: 28px; height: 28px; border-radius: 50%; border: 3px solid var(--copper-l); pointer-events: none; opacity: 0; }
@media (max-width: 700px) { .rail span { display: none; } .rail li { width: auto; } }
@media (prefers-reduced-motion: reduce) { .rail::after, .rail b { transition: none; } }

/* ---------- Rapport des ventes simplifié : un petit graphique par commande ---------- */
.mini-total { display: flex; align-items: baseline; gap: 10px; margin-bottom: 14px; }
.mini-total b { font-size: 48px; font-weight: 600; line-height: 1; color: var(--green); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.mini-total span { font-size: 15px; color: var(--ink-soft); }
.mini-graphs { --n: 3; display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 12px; height: 168px; }
.mg { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.mg-plot { flex: 1; display: flex; align-items: flex-end; background: var(--cream); border-bottom: 2px solid var(--line); border-radius: 10px 10px 0 0; overflow: hidden; }
.mg-plot i { display: block; width: 100%; height: 0; background: linear-gradient(180deg, var(--copper-l), var(--copper)); border-radius: 10px 10px 0 0; transition: height .9s var(--ease-out); }
.mg span { font-size: 12.5px; font-weight: 600; text-align: center; color: var(--ink-soft); white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { .mg-plot i { transition: none; } }
.case:last-child { scroll-snap-align: end; }

/* ---------- Commandes par produit ---------- */
.prod-list { display: grid; gap: 10px; }
.prod-list .stepper { padding: 8px 0; border-bottom: 1px solid var(--line); }
.prod-list .stepper:last-child { border-bottom: 0; }
.prod-list .stepper > span { font-weight: 600; }
.case .plan { grid-template-rows: auto repeat(5, 40px); }
.mg-plot { position: relative; }
.mg-plot em { position: absolute; left: 0; right: 0; top: 8px; text-align: center; font-style: normal; font-size: 20px; font-weight: 700; color: var(--ink); opacity: 0; transition: opacity .4s; }
.mg-plot em.vu { opacity: 1; }
.mg-plot em { top: auto; bottom: 10px; color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, .25); }

/* Rapport des ventes : un niveau existant (vert), les nouvelles commandes s'empilent dessus (cuivre) */
.mg-plot { flex-direction: column-reverse; justify-content: flex-start; }
.mg-plot i { border-radius: 0; }
.mg-plot .b { background: var(--green); }
.mg-plot .nv { background: linear-gradient(180deg, var(--copper-l), var(--copper)); }
.mg-plot em { opacity: 1; z-index: 1; color: var(--cream); text-shadow: none; }
.mg span .plus { margin-left: 2px; color: var(--copper-ink); font-weight: 700; opacity: 0; transition: opacity .4s; }
.mg span .plus.vu { opacity: 1; }

/* Le petit numéro passe devant le titre : on gagne une ligne en hauteur */
.case-head { display: flex; align-items: baseline; gap: 14px; }
.case-head .case-num { flex: none; }

/* ---------- Méthode : tableau d'intervention ---------- */
.process { --progress: 0; position: relative; padding-left: 28px; margin-top: 8px; }
.process::before, .process::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--cream-2); }
.process::after { background: var(--copper); transform-origin: top; transform: scaleY(var(--progress, 0)); transition: transform .2s linear; }
.no-anim .process::after { transform: none; }
.proc-head, .proc { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 6fr) minmax(0, 4fr); gap: clamp(20px, 3vw, 48px); align-items: baseline; }
.proc-head { padding-bottom: 14px; border-bottom: 1px solid var(--line); font-size: 14px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--copper-ink); }
.proc { padding: 26px 0; border-bottom: 1px solid var(--line); }
.proc h3 { font-size: clamp(20px, 1.7vw, 24px); }
.proc p { color: var(--ink-soft); font-weight: 400; margin: 0; }
.proc .proc-get { color: var(--green); font-weight: 400; }
.proc-lab { display: none; margin-bottom: 4px; font-size: 14px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--copper-ink); }
@media (max-width: 760px) {
  .proc-head { display: none; }
  .proc { grid-template-columns: 1fr; gap: 8px; }
  .proc-lab { display: block; }
  .proc .proc-get { margin-top: 8px; }
}
@media (prefers-reduced-motion: reduce) { .process::after { transform: none !important; } }

.rule .rule-lead { color: var(--green); font-weight: 500; margin-bottom: 6px; }

/* ---------- Cas concret : pièce par pièce, du souci à "chez vous" ---------- */
.cx-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.cx { display: flex; flex-direction: column; gap: 14px; padding: 28px 26px; background: rgba(246, 241, 233, .05); border: 1px solid var(--line-light); border-radius: var(--radius); transition: background-color .4s, border-color .4s; }
.cx:hover { background: rgba(246, 241, 233, .09); border-color: rgba(224, 145, 79, .5); }
.cx-top { display: flex; align-items: center; gap: 16px; }
.cx-top .ico-lg { flex: none; color: var(--copper-l); }
.cx h3 { font-size: clamp(19px, 1.6vw, 22px); line-height: 1.2; }
.cx p { font-size: 16px; font-weight: 400; line-height: 1.5; color: rgba(246, 241, 233, .82); margin: 0; }
.cx p b { display: block; margin-bottom: 3px; font-size: 14px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: rgba(246, 241, 233, .78); }
.cx .cx-you { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line-light); color: var(--cream); font-weight: 400; }
.cx .cx-you b { color: #EBA96F; }
.cx-wide { grid-column: span 3; }
.cx-wide .cx-pb, .cx-wide .cx-sol, .cx-wide .cx-you { max-width: none; }
@media (min-width: 901px) { .cx-wide { display: grid; grid-template-columns: max-content minmax(0, 1fr) minmax(0, 1.5fr) minmax(0, 1fr); align-items: start; gap: 20px 36px; padding-block: 22px; } .cx-wide .cx-you { margin-top: 0; padding-top: 0; border-top: 0; } }
@media (max-width: 900px) { .cx-grid { grid-template-columns: 1fr 1fr; } .cx-wide { grid-column: span 2; } }
@media (max-width: 600px) { .cx-grid { grid-template-columns: 1fr; } .cx-wide { grid-column: auto; } }

/* Cas concret : le texte d'introduction se place à droite du titre */
@media (min-width: 901px) {
  .cas .sec-head { max-width: none; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, .9fr); column-gap: clamp(40px, 6vw, 96px); align-items: center; margin-bottom: clamp(48px, 7vh, 80px); }
  .cas .sec-head .eyebrow { grid-column: 1 / -1; margin-bottom: 28px; }
  .cas .sec-head .sec-lead { margin-top: 0; max-width: none; padding-bottom: 8px; line-height: 1.6; }
}
@media (min-width: 1180px) {
  .cas .sec-head { grid-template-columns: max-content minmax(0, 1fr); }
  .cas .sec-head .h2 { white-space: nowrap; font-size: clamp(30px, 3vw, 44px); }
  .cas .sec-head .sec-lead { font-size: 18px; }
}

.cx-tag { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: #EBA96F; }
.cx-cta { display: flex; align-items: center; justify-content: space-between; gap: 24px 40px; flex-wrap: wrap; margin-top: clamp(40px, 6vh, 64px); padding-top: clamp(28px, 4vh, 40px); border-top: 1px solid var(--line-light); }
.cx-cta p { font-size: clamp(22px, 2.2vw, 30px); font-weight: 600; line-height: 1.2; letter-spacing: -.01em; color: var(--cream); margin: 0; }

/* Logo du bandeau : monogramme + mots en texte réel, pour que les trois mots se lisent */
.brand-lock { display: flex; align-items: center; gap: 12px; transition: opacity .3s; }
.brand .brand-dark { position: absolute; inset: 0; opacity: 0; }
.brand-lock img { height: 42px; width: auto; }
.brand-txt { display: flex; flex-direction: column; gap: 2px; line-height: 1; transform: translateY(3px); }
.brand-txt b { font: 600 20px/1 var(--f); letter-spacing: -.01em; color: var(--green); }
.brand-txt i { font: 500 8px/1 var(--f); font-style: normal; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); white-space: nowrap; }
.brand-dark .brand-txt b { color: var(--cream); }
.brand-dark .brand-txt i { color: rgba(246, 241, 233, .75); }
@media (max-width: 380px) { .brand-lock img { height: 36px; } .brand-txt b { font-size: 19px; } .brand-txt i { font-size: 9px; letter-spacing: .1em; } }

.brand, .brand:hover { text-decoration: none; }

/* Formulaire de contact court */
.contact-form .form-title { font-size: clamp(20px, 1.7vw, 24px); font-weight: 600; color: var(--green); letter-spacing: -.01em; padding: 0; }
.contact-form .form-intro { font-size: 15px; font-weight: 400; color: var(--ink-soft); margin: -6px 0 0; }
.contact-form .f-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.contact-form .f-group { display: grid; gap: 8px; }
.contact-form .f-q { font-size: 14px; font-weight: 500; letter-spacing: .04em; color: var(--green); margin: 0; }
.contact-form .f-q small { font-weight: 400; color: var(--ink-soft); letter-spacing: 0; }
.contact-form .f-sub { font-weight: 400; }
.contact-form .chips { display: flex; flex-wrap: wrap; gap: 6px; }
.contact-form .chips label { display: block; position: relative; font-size: 14px; letter-spacing: 0; font-weight: 400; }
.contact-form .chips input { position: absolute; opacity: 0; width: 0; height: 0; padding: 0; }
.contact-form .chips span { display: block; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--cream); color: var(--ink); }
.contact-form .chips input:checked + span { background: var(--green); color: var(--cream); border-color: var(--green); }
.contact-form .chips input:focus-visible + span { outline: 2px solid var(--copper); outline-offset: 2px; }
.contact-form .f-promise { margin: -6px 0 0; font-size: 14px; font-weight: 400; color: var(--ink-soft); text-align: center; }
.contact-form fieldset { gap: 12px; }
.contact-form input, .contact-form textarea { padding: 10px 14px; }
@media (max-width: 600px) { .contact-form .f-row { grid-template-columns: 1fr; } }

/* Formulaire court : compactage pour tenir sur un écran */
@media (min-width: 1001px) {
  .contact-grid { grid-template-columns: minmax(0, .8fr) minmax(0, 1.5fr); padding-right: 0; }
  .contact-form { padding: 22px 28px; }
  .contact-form fieldset { gap: 9px; }
  .contact-form label { gap: 4px; font-size: 14px; }
  .contact-form input, .contact-form textarea { padding: 7px 12px; font-size: 15px; }
  .contact-form textarea { height: 46px; min-height: 46px; }
  .contact-form .f-group { gap: 5px; }
  .contact-form .chips { gap: 5px; }
  .contact-form .chips span { padding: 3px 10px; font-weight: 400; }
  .contact-form .form-intro { font-size: 14px; }
  .contact-form .form-note { margin-top: 8px; font-size: 14px; }
  .contact-form .btn { padding-top: 11px; padding-bottom: 11px; }
}
@media (min-width: 1001px) { .contact { padding: clamp(28px, 3.4vh, 48px) 0; } }
@media (min-width: 1001px) { .contact-form { padding: 16px 28px; } .contact-form textarea { height: 40px; min-height: 40px; } }

.contact-form .f-alt { margin: 14px 0 0; font-size: 14px; font-weight: 400; text-align: center; color: var(--ink-soft); }
.contact-form .f-alt a { color: var(--green); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.contact-form .f-alt .ico { width: 14px; height: 14px; vertical-align: -2px; }
.page-diag main { padding-top: var(--header-h, 76px); }

/* Page diagnostic : sobre, une colonne, sans carte */
.page-diag { background: var(--cream); }
.page-diag main { padding-top: var(--header-h, 76px); }
.diag { padding: clamp(32px, 6vh, 72px) 0 clamp(56px, 9vh, 110px); }
.diag-wrap { width: min(680px, 100% - 2 * var(--gutter, 24px)); margin: 0 auto; }
.diag-back { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-soft); text-decoration: none; margin-bottom: 36px; }
.diag-back .ico { width: 16px; height: 16px; }
.diag-back:hover { color: var(--green); }
.diag-eyebrow { font-size: 14px; letter-spacing: .12em; text-transform: uppercase; color: var(--copper-ink); font-weight: 500; margin: 0 0 12px; }
.diag-title { font-size: clamp(28px, 3vw, 38px); font-weight: 500; letter-spacing: -.015em; line-height: 1.15; color: var(--green); margin: 0; }
.diag-lead { margin: 16px 0 0; font-size: 18px; font-weight: 400; line-height: 1.55; color: var(--ink); }
.diag-form fieldset { border: 0; margin: 40px 0 0; padding: 0; min-width: 0; }
.diag-form fieldset[disabled] { opacity: .7; }
.dq { display: grid; grid-template-columns: 34px 1fr; gap: 14px; padding: 26px 0; border-top: 1px solid var(--line); }
.dq-n { width: 28px; height: 28px; border-radius: 50%; background: var(--green); color: var(--cream); font-size: 14px; font-weight: 500; display: grid; place-items: center; margin-top: 1px; }
.dq-body { display: grid; gap: 12px; min-width: 0; }
.dq-q { font-size: 18px; font-weight: 500; color: var(--ink); margin: 0; line-height: 1.35; }
.dq-q small { font-size: 14px; font-weight: 400; color: var(--ink-soft); margin-left: 6px; }
.diag-form input[type="text"], .diag-form textarea { width: 100%; font: inherit; font-size: 16px; font-weight: 400; color: var(--ink); padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--paper); resize: vertical; }
.diag-form .chips { display: flex; flex-wrap: wrap; gap: 8px; }
.diag-form .chips label { display: block; position: relative; cursor: pointer; }
.diag-form .chips input { position: absolute; opacity: 0; width: 0; height: 0; }
.diag-form .chips span { display: block; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); font-size: 15px; font-weight: 400; color: var(--ink); }
.diag-form .chips input:checked + span { background: var(--green); color: var(--cream); border-color: var(--green); }
.diag-form .chips input:focus-visible + span { outline: 2px solid var(--copper); outline-offset: 2px; }
.diag-end { border-top: 1px solid var(--line); padding-top: 28px; display: grid; gap: 12px; justify-items: start; }
.diag-promise { margin: 0; font-size: 14px; font-weight: 400; color: var(--ink-soft); }
.diag-form .form-note { margin-top: 24px; text-align: left; }
@media (max-width: 600px) { .dq { grid-template-columns: 1fr; gap: 8px; } }

.contact-direct { margin-top: 32px; font-size: 16px; font-weight: 400; }
.contact-direct b { font-weight: 500; }
.contact-direct .placeholder-txt { color: var(--ink); text-decoration: underline dotted; text-underline-offset: 3px; }

.contact-form .f-direct { margin: 10px 0 0; font-size: 14px; font-weight: 400; text-align: center; }
.contact-form .f-direct .placeholder-txt { color: var(--ink); text-decoration: underline dotted; text-underline-offset: 3px; }
@media (min-width: 1001px) { .contact-form .f-reason textarea { height: 72px; min-height: 72px; } }
.contact-form .f-actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.contact-form .f-actions .btn { width: auto; flex: 0 0 auto; padding-left: 36px; padding-right: 36px; }
.contact-form .f-actions .f-alt { margin: 0; text-align: right; }
.contact-form .f-promise { text-align: left; margin: 0; }
@media (max-width: 600px) { .contact-form .f-actions { flex-direction: column; align-items: flex-start; } .contact-form .f-actions .f-alt { text-align: left; } }

.contact-stack { display: grid; gap: clamp(20px, 3vh, 32px); justify-items: center; width: min(820px, 100% - 48px); margin: 0 auto; }
.contact-stack .contact-head { text-align: center; }
.contact-stack .contact-title { font-size: clamp(30px, 3.2vw, 44px); font-weight: 600; letter-spacing: -.02em; margin: 0; }
.contact-stack .contact-lead { margin: 12px auto 0; max-width: 48ch; font-size: clamp(17px, 1.4vw, 19px); }
.contact-stack .eyebrow { justify-content: center; }
.contact-stack .contact-form { width: 100%; }

/* Demande : en-tete a gauche, formulaire large en deux colonnes */
.contact-stack { width: min(1120px, 100% - 48px); justify-items: stretch; }
.contact-stack .contact-head { text-align: left; }
.contact-stack .eyebrow { justify-content: flex-start; }
.contact-head-row { display: flex; align-items: baseline; gap: 14px 28px; flex-wrap: wrap; }
.contact-stack .contact-lead { margin: 0; max-width: none; }
.contact-form .f-cols { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 28px; align-items: stretch; }
.contact-form .f-left { display: grid; grid-template-rows: auto 1fr auto; gap: 6px; }
.contact-form .f-left textarea { height: 100%; min-height: 0; resize: none; }
@media (min-width: 1001px) { .contact-form .f-left textarea { height: 100%; min-height: 0; } }
.contact-form .f-reason, .contact-form .f-side-title { font-size: 14px; font-weight: 500; letter-spacing: .04em; color: var(--green); margin: 0; }
.contact-form .f-right { display: grid; gap: 9px; align-content: start; }
.contact-form .f-side-title { margin-bottom: -2px; }
.contact-form .f-count { margin: 0; font-size: 14px; font-weight: 400; color: var(--ink-soft); text-align: right; }
@media (max-width: 800px) { .contact-form .f-cols { grid-template-columns: 1fr; } .contact-form .f-left textarea { min-height: 140px; } }
.contact-form .f-cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); }
.contact-form .f-foot { display: flex; align-items: baseline; justify-content: space-between; gap: 8px 24px; flex-wrap: wrap; }
.contact-form .f-foot .f-promise, .contact-form .f-foot .f-alt { margin: 0; font-size: 14px; }
.contact-form .f-foot .f-alt { text-align: right; }
@media (max-width: 600px) { .contact-form .f-foot .f-alt { text-align: left; } }
@media (min-width: 801px) { .contact-form .f-left textarea { min-height: 300px; } }
.contact-form select { width: 100%; font: inherit; font-size: 16px; font-weight: 400; color: var(--ink); padding: 10px 40px 10px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--cream) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%231F3D33' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 14px center; appearance: none; -webkit-appearance: none; }
@media (min-width: 1001px) { .contact-form select { padding-top: 7px; padding-bottom: 7px; font-size: 15px; } }

/* Formulaires actifs en démonstration, contrastes renforcés */
.contact-form fieldset[disabled], .diag-form fieldset[disabled] { opacity: 1; }
.contact-form label, .contact-form .f-reason, .contact-form .f-side-title { color: var(--ink); font-weight: 600; }
.contact-form input, .contact-form textarea, .contact-form select { background: #fff; border: 1px solid rgba(20, 38, 31, .38); color: var(--ink); font-weight: 400; }
.contact-form input:focus, .contact-form textarea:focus, .contact-form select:focus { outline: 2px solid var(--copper); outline-offset: 1px; border-color: var(--copper); }
.contact-form ::placeholder { color: rgba(20, 38, 31, .62); opacity: 1; }
.contact-form select { background-color: #fff; }
.contact-form .f-count, .contact-form .f-promise, .contact-form .f-alt { color: var(--ink); font-weight: 400; }
.contact-form .f-alt a { color: var(--green); font-weight: 600; }
.contact-form .btn-green { background: var(--green); color: var(--cream); cursor: pointer; }
.diag-form input[type="text"], .diag-form textarea { background: #fff; border-color: rgba(20, 38, 31, .38); font-weight: 400; }
.diag-form ::placeholder { color: rgba(20, 38, 31, .62); opacity: 1; }
.diag-form .chips span { background: #fff; border-color: rgba(20, 38, 31, .38); font-weight: 400; }
.diag-form .chips input:checked + span { background: var(--green); color: var(--cream); border-color: var(--green); }
.contact-form select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%2314261F' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; cursor: pointer; }
/* Contraste intermédiaire du formulaire (ajusté après essai) */
.contact-form label, .contact-form .f-reason, .contact-form .f-side-title { color: var(--green); font-weight: 500; }
.contact-form input, .contact-form textarea, .contact-form select { background-color: var(--paper); border: 1px solid rgba(31, 61, 51, .24); font-weight: 400; }
.contact-form ::placeholder { color: rgba(31, 61, 51, .5); }
.contact-form .f-count, .contact-form .f-promise, .contact-form .f-alt { color: var(--ink-soft); font-weight: 400; }
.contact-form .f-alt a { font-weight: 500; }
.contact-form .btn-green { background: var(--green); }
.diag-form input[type="text"], .diag-form textarea, .diag-form .chips span { background: var(--paper); border-color: rgba(31, 61, 51, .24); font-weight: 400; }
.diag-form ::placeholder { color: rgba(31, 61, 51, .5); }
/* Bandeau plus bas */
.brand-lock img, .brand img { height: 36px; }
.brand-txt b { font-size: 18px; }
.brand-txt i { font-size: 7.5px; }
.nav-cta.btn-sm { padding-top: 8px; padding-bottom: 8px; }
/* Section Demande + bandeau vert de fin : les deux tiennent ensemble sur un écran */
:root { --footer-h: 152px; }
@media (min-width: 1001px) and (min-height: 640px) {
  .contact { min-height: calc(100vh - var(--header-h) - var(--footer-h)); }
}
.nav-cta.is-current { background: var(--green); color: var(--cream); }

/* Page « Votre fonctionnement » : mêmes codes que le formulaire de la page d'accueil */
.page-diag { background: var(--cream); }
.page-diag .contact { min-height: calc(100vh - var(--header-h) - var(--footer-h)); }
.contact-form .f-questions { display: grid; gap: 14px; align-content: start; }
.contact-form .f-q { font-size: 14px; font-weight: 500; letter-spacing: .04em; color: var(--green); margin: 0; }
.contact-form .f-q small { font-weight: 400; color: var(--ink-soft); letter-spacing: 0; margin-left: 6px; }
.contact-form .f-questions textarea { height: 64px; min-height: 64px; resize: vertical; }
.contact-form .f-group { display: grid; gap: 8px; }
@media (min-width: 801px) { .page-diag .contact-form .f-cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); } }
.diag-form .dq-hint { margin: -6px 0 0; font-size: 14px; font-weight: 400; color: var(--ink-soft); line-height: 1.45; }
.diag-form .dq-q label { display: inline; }

/* Pages légales */
.legal-page .diag-lead { margin-bottom: 8px; }
.legal-block { padding: 22px 0; border-top: 1px solid var(--line); }
.legal-block:first-of-type { margin-top: 28px; }
.legal-block h2 { font-size: 17px; font-weight: 500; color: var(--green); margin: 0 0 8px; }
.legal-block p { margin: 0; font-size: 16px; font-weight: 400; line-height: 1.65; color: var(--ink); }
.legal-block a, .f-promise a { color: var(--green); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.legal a, .footer .legal a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.legal-block .placeholder-txt { color: var(--copper-ink); font-weight: 500; }
.footer .legal .made { font-style: italic; white-space: nowrap; }
/* Téléphone : le formulaire passe sur une seule colonne (placé en dernier pour l'emporter) */
@media (max-width: 800px) {
  .contact-form .f-cols, .page-diag .contact-form .f-cols { grid-template-columns: 1fr; gap: 18px; }
  .contact-form .f-left textarea { min-height: 160px; height: 160px; }
  .contact-form .f-row { grid-template-columns: 1fr 1fr; gap: 10px; }
  .contact-stack { width: calc(100% - 40px); }
  .contact-form { padding: 18px 16px; }
  .contact-head-row { display: block; }
  .contact-stack .contact-lead { margin-top: 8px; }
  .contact-form .f-foot { flex-direction: column; align-items: flex-start; }
  .contact-form .f-foot .f-alt { text-align: left; }
}
@media (max-width: 380px) { .contact-form .f-row { grid-template-columns: 1fr; } }
/* Téléphone : la pointe en V ne doit pas recouvrir le petit titre « Avant / Après » */
@media (max-width: 1000px) {
  .compare::before { height: 44px; }
  .compare { padding-top: 96px; }
}
/* Téléphone : les grandes lettres M, A, I sont centrées dans leur bloc (elles débordaient à droite) */
@media (max-width: 900px) {
  .giant { left: 50%; right: auto; transform: translateX(-50%); font-size: 330px; }
  .pillar:hover .giant { transform: translateX(-50%) translateY(-10px); }
}
@media (max-width: 420px) { .giant { font-size: 280px; } }
@media (max-width: 900px) {
  .giant { transform: translateX(calc(-50% - .03em)); }
  .pillar:hover .giant { transform: translateX(calc(-50% - .03em)) translateY(-10px); }
}
/* Téléphone : lettres centrées dans toute la largeur du bloc, sans dépendre de leur propre largeur */
@media (max-width: 900px) {
  .giant { left: 0; right: 0; width: 100%; text-align: center; transform: none; padding-left: 0; padding-right: .06em; }
  .pillar:hover .giant { transform: translateY(-10px); }
}

/* Tableau de bord : même langage que les autres cartes (vert, cuivre, valeurs d'exemple) */
.kpis b { color: var(--green); font-weight: 600; }
.kpis .kpi-warn b { color: var(--copper-ink); }
.bars i { height: var(--h, 100%); background: var(--green); border-color: transparent; transform: scaleY(1); }
.bars i:nth-child(even) { background: var(--copper); }
.bars i:last-child { background: var(--copper); }
@media (prefers-reduced-motion: reduce) { .js .ui-dash:not(.in) .bars i { transform: scaleY(1); } }

/* Au centre du schéma « Demain » : « Votre système » dans les couleurs et la police de MAI, sans le logo */
.hub text { font-family: inherit; font-weight: 700; font-size: 19px; fill: var(--green); text-anchor: middle; letter-spacing: -.01em; }

/* Les initiales M.A.I dans le disque central, sous « Votre système » */
.hub .hub-mai { font-size: 17px; font-weight: 800; letter-spacing: .12em; fill: var(--green); }
.hub .hub-mai tspan { fill: var(--cream); }

/* ---------- Bande « Un exemple » : rendu sobre, façon logiciel métier (2026-10-16) ---------- */
.cases-band .ui { border-radius: 6px; border: 1px solid rgba(246, 241, 233, .14); box-shadow: none; padding: 18px 20px 20px; font-size: 14px; }
.cases-band .ui:hover { transform: none; box-shadow: none; }
.cases-band .case.est-actif .ui { box-shadow: none; border-color: var(--copper-l); outline: 2px solid var(--copper-l); outline-offset: 0; }
.cases-band .ui-top { padding-bottom: 12px; margin-bottom: 16px; border-bottom: 1px solid var(--line); }
.cases-band .ui-title { font-size: 12.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); }
.cases-band .ui-pill, .cases-band .st { border-radius: 3px; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; padding: 4px 8px; }
.cases-band .order-client { font-size: 14px; font-weight: 500; color: var(--ink-soft); }
.cases-band .stepper button { width: 30px; height: 30px; border-radius: 4px; border: 1px solid var(--line); background: var(--cream); color: var(--ink); font-size: 18px; }
.cases-band .stepper button:hover:not(:disabled) { background: var(--green); border-color: var(--green); color: var(--cream); }
.cases-band .stepper output { font-weight: 600; font-size: 16px; font-variant-numeric: tabular-nums; }
.cases-band .stepper > span { font-weight: 500; }
.cases-band .sim-go { border-radius: 4px; padding: 13px 20px; font-size: 14px; letter-spacing: .02em; box-shadow: none; }
.cases-band .cases-btn { border-radius: 4px; width: 40px; height: 40px; border-width: 1px; }
.cases-band .sim-hint { font-size: 15px; font-weight: 400; color: rgba(246, 241, 233, .78); }
.cases-band .slot, .cases-band .slot-free { border-radius: 3px; font-size: 12px; }
.cases-band .slot-free { border-width: 1px; }
.cases-band .gauge { height: 8px; border-radius: 2px; }
.cases-band .gauge i { border-radius: 0; }
.cases-band .stock-warn, .cases-band .journal li.nouveau { border-radius: 4px; }
.cases-band .journal li.nouveau { background: rgba(199, 123, 59, .1); }
.cases-band .mini-total b { font-weight: 500; font-size: 40px; }
.cases-band .mg-plot { border-radius: 2px 2px 0 0; background: var(--cream); }
.cases-band .mg-plot i { border-radius: 0; }
.cases-band .mg-plot .nv { background: var(--copper); }
.cases-band .mg-plot em { font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
.cases-band .mg span { font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; }
.cases-band .sim-result { border-radius: 6px; }
.cases-band .sim-result .btn { border-radius: 4px; }
/* fil de progression : trait fin, repères carrés, aucune lueur */
.cases-band .rail::before, .cases-band .rail::after { height: 2px; top: 16px; border-radius: 0; }
.cases-band .rail b { width: 32px; height: 32px; border-radius: 4px; font-size: 13px; border-width: 1px; }
.cases-band .rail li.on b { box-shadow: none; transform: none; }
.cases-band .rail span { font-size: 11.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
/* jeton et onde : plats, sans halo */
.cases-band .chip-fly { border-radius: 4px; padding: 9px 14px; font-size: 12.5px; letter-spacing: .04em; box-shadow: 0 6px 16px -6px rgba(0, 0, 0, .55); }
.cases-band .ripple { border-width: 2px; border-radius: 4px; }
.cases-band .case-num { letter-spacing: .12em; font-weight: 600; }

/* AIOS, relief : profondeur de champ (--pa va de 0.3 pour le lointain à 1 pour le proche) */
.kg .node circle.dot, .kg .node circle.halo, .kg .node .lab { fill-opacity: var(--pa, 1); }
.kg .node .lab { stroke-opacity: var(--pa, 1); }

/* AIOS, vraie sphère : enveloppe, méridiens et parallèles */
.kg .sph-body { stroke: rgba(246, 241, 233, .16); stroke-width: 1; }
.kg .sph-line { fill: none; stroke-linecap: round; }
.kg .sph-line.back { stroke: rgba(246, 241, 233, .02); stroke-width: 1; }
.kg .sph-line.mid { stroke: rgba(246, 241, 233, .05); stroke-width: 1; }
.kg .sph-line.front { stroke: rgba(246, 241, 233, .13); stroke-width: 1.2; }

/* AIOS, surbrillance de l'avant : le halo suit la profondeur (--gl) */
.kg .node circle.halo { fill-opacity: calc(var(--pa, 1) * var(--gl, 1)); }

/* AIOS, sphère plus sobre : noyau moins éclatant, halos réduits */
.kg .node.k-center circle.dot { fill: #D9CBB8; }
.kg .node.k-center circle.halo { fill: rgba(224, 145, 79, .14); }
.kg .node circle.halo { fill: rgba(224, 145, 79, .1); }
.kg .node.k-hub circle.dot { filter: drop-shadow(0 0 3px rgba(224, 145, 79, .35)); }
.kg .node.is-lit circle.dot { transform: scale(1.15); }
.kg .node.is-lit circle.halo { transform: scale(1.2); }
/* AIOS, essai : globe seul, style planète : contour et ombrage gardés, méridiens et parallèles masqués */
.kg .sph-line { display: none; }
.kg .sph-body { stroke: rgba(224, 145, 79, .22); stroke-width: 1; }
/* Méthode : colonne « Ce qui est fait » plus lisible */
.proc p:not(.proc-get) { color: #2F4139; font-weight: 400; }
/* Principes : paragraphe plus lisible, comme la Méthode */
.rule p:not(.rule-lead) { color: #2F4139; font-weight: 400; }
/* Qui je suis : texte en gris-vert, comme les autres sections */
.qui-lead { color: #2F4139; }

/* Guillemets droits : la police du site les penche, on les dessine en police neutre pour qu'ils soient vraiment verticaux */
.gq { font-family: Arial, Helvetica, sans-serif; font-style: normal; }

/* Pour qui : texte de « Ce que je ne fais pas » légèrement plus foncé */
.fit-no li { color: #3A4A43; }
/* FAQ : réponses en gris-vert, comme les autres sections */
.acc-panel p { color: #2F4139; font-weight: 400; }
/* Contact : petites mentions légèrement plus foncées */
.contact-form .f-promise, .contact-form .f-alt, .contact-form .f-count { color: #3A4A43; font-weight: 400; }
.contact-form ::placeholder { color: #6B7A73; opacity: 1; }

/* ---------- Pages solutions (site neuf, 2026-11-20) ---------- */
.solution-page .legal-block h2 { font-size: 22px; line-height: 1.3; margin-bottom: 12px; }
.solution-page .legal-block h3 { font-size: 17px; font-weight: 500; color: var(--ink); margin: 18px 0 4px; }
.solution-page .legal-block p + p { margin-top: 12px; }
.solution-page .legal-block ul, .solution-page .legal-block ol { margin: 12px 0; padding-left: 1.3em; font-size: 16px; font-weight: 400; line-height: 1.65; color: var(--ink); }
.solution-page .legal-block li + li { margin-top: 6px; }
.solution-page .sol-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 20px; }
.solution-page .legal-block a.btn { text-decoration: none; font-weight: 600; }
.solution-page .legal-block a.btn-copper { color: var(--ink); }
.solution-page .legal-block a.btn-green { color: var(--cream); }
.solution-page .legal-block a.btn-green:hover { color: var(--ink); }
.solution-page .legal-block ul { list-style: disc; }
.solution-page .legal-block ol { list-style: decimal; }
.solution-page .legal-block li::marker { color: var(--copper); }

/* Fil d'Ariane des pages secondaires */
.fil ol { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-wrap: wrap; font-size: 14px; color: var(--ink-soft, #5a6660); }
.fil li + li::before { content: "/"; margin: 0 8px; opacity: .5; }
.fil a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.fil li[aria-current] { color: var(--green, #1F3D33); }

/* Liens de l'accueil vers les pages detaillees */
.lien-sobre { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); }
.lien-sobre:hover, .lien-sobre:focus-visible { text-decoration-color: currentColor; }
.faq-toutes { margin-top: 28px; }
.faq-toutes a { color: var(--green); font-weight: 500; text-decoration: underline; text-underline-offset: 4px; }

/* Bouton clair sur fond vert (lien vers les realisations) */
.cx-cta-btns { display: flex; flex-wrap: wrap; gap: 12px 16px; }
.btn-clair { background: transparent; color: var(--cream); box-shadow: inset 0 0 0 1.5px rgba(246, 241, 233, .7); }
.btn-clair::before { background: var(--cream); }
.btn-clair:hover { color: var(--green); }
.btn-clair:hover::before { transform: scaleX(1); }

/* Boutons vers les pages detaillees (accueil) */
.offers-plus { list-style: none; padding-top: 24px; }
.aios-plus { margin-top: 28px; }
.methode-plus { margin-top: 20px; }
.offer h3 .ico { width: .75em; height: .75em; vertical-align: -.05em; margin-left: 4px; }
@media (min-width: 900px) {
  .methode .sec-head { max-width: none; display: grid; grid-template-columns: 1fr auto; align-items: end; column-gap: 40px; }
  .methode .sec-head > :not(.methode-plus) { grid-column: 1; }
  .methode .methode-plus { grid-column: 2; grid-row: 1 / span 2; margin: 0 0 8px; }
}

/* Essai d'accueil allege : l'exemple interactif reste sur ordinateur, pas sur telephone */
@media (max-width: 760px) { .accueil-leger .cases-band, .accueil-leger .cards { display: none; } }

/* Essais du quotidien sur telephone */
@media (max-width: 760px) {
  /* Quotidien sur telephone (choix B de Jones, 2026-11-21) : deux colonnes, picto et titre seuls ; la derniere carte garde son texte */
  .q-b .pains { gap: 10px; }
  .q-b .pain, .q-b .pain:nth-child(n) { grid-column: span 6; padding: 16px 14px; }
  .q-b .pain:nth-child(6) { grid-column: 1 / -1; display: block; padding: 18px; }
  .q-b .pain-ico { width: 32px; height: 32px; margin: 0 0 10px; }
  .q-b .pain h3 { font-size: 16px; margin: 0; max-width: none; }
  .q-b .pain:not(:nth-child(6)) p { display: none; }
  .q-b .pain:nth-child(6) p { font-size: 15px; margin-top: 8px; }
  .q-b .pain::after { display: none; }
}
@media (max-width: 760px) {
  .q-b .pain h3 span { white-space: normal !important; }
  .q-b .pain:nth-child(5) { grid-column: 1 / -1; }
}

/* Carte facture de l'exemple interactif */
.facture { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; }
.facture li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: 8px; background: rgba(31, 61, 51, .05); font-size: 15px; }
.facture li.facture-vide { justify-content: center; color: var(--ink-soft); background: none; border: 1px dashed var(--line); padding: 28px 12px; }
.facture li.nouveau { animation: facture-in .5s var(--ease-out) both; }
@keyframes facture-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.offers-admin { display: inline-flex; align-items: center; gap: 6px; margin: 14px 0 0; font-size: 15px; color: var(--green); text-decoration: underline; text-underline-offset: 4px; width: 100%; }
.offers-admin .ico { width: .9em; height: .9em; }

/* Formulaires : champ piège pour les robots (invisible), message d'erreur, deux champs côte à côte */
.f-piege { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-note.is-erreur { color: #a3341f; font-weight: 500; }
[aria-invalid="true"] { border-color: #a3341f !important; box-shadow: 0 0 0 2px rgba(163, 52, 31, .18); }
.dq-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 600px) { .dq-duo { grid-template-columns: 1fr; } }
button[disabled] { cursor: progress; opacity: .7; }
/* Mentions obligatoire / facultatif sur les étiquettes du formulaire de demande */
.f-oblig, .f-facult { font-size: 14px; font-weight: 400; letter-spacing: .02em; text-transform: none; margin-left: 6px; }
.f-oblig { color: var(--copper-ink); }
.f-facult { color: var(--ink-soft); }
.form-note:empty { display: none; }
.diag-porte { margin-top: 32px; }
.diag-porte h2 { font-size: clamp(20px, 1.8vw, 24px); color: var(--green); margin: 0 0 10px; }
/* Astérisque des champs obligatoires et sa légende en bas du formulaire */
.f-oblig { font-size: 14px; font-weight: 600; margin-left: 3px; }
.contact-form .f-legende { margin: 0; font-size: 14px; font-weight: 400; color: var(--ink-soft); }
.contact-form .f-legende .f-oblig { margin-left: 0; }

/* ---- Pages intérieures : même allure que l'accueil (2026-11-22, retour de visite "comme un prospect") ---- */
.nav-sec { display: flex; align-items: center; gap: 28px; }
.nav-sec-liens { display: flex; align-items: center; gap: 26px; }
.nav-sec-liens a { text-decoration: none; font-size: 15.5px; color: var(--ink-soft); position: relative; padding: 6px 0; transition: color .3s; }
.nav-sec-liens a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--copper); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease-out); }
.nav-sec-liens a:hover, .nav-sec-liens a[aria-current] { color: var(--ink); }
.nav-sec-liens a:hover::after, .nav-sec-liens a[aria-current]::after { transform: scaleX(1); }
.menu-sec { display: none; position: relative; }
.menu-sec summary { list-style: none; cursor: pointer; width: 46px; height: 46px; padding: 11px; margin-right: -8px; }
.menu-sec summary::-webkit-details-marker { display: none; }
.menu-sec summary span { display: block; height: 3px; background: var(--green); margin: 5px 0; transition: transform .3s var(--ease), opacity .2s; }
.menu-sec summary span:nth-child(2) { width: 60%; margin-left: auto; }
.menu-sec[open] summary span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-sec[open] summary span:nth-child(2) { opacity: 0; }
.menu-sec[open] summary span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
.menu-sec nav { position: absolute; right: -8px; top: calc(100% + 10px); min-width: 250px; display: flex; flex-direction: column; background: var(--green); border-radius: var(--radius-sm); padding: 10px 22px; box-shadow: var(--shadow); }
.menu-sec nav a { color: var(--cream); text-decoration: none; font-size: 19px; font-weight: 600; padding: 11px 0; border-bottom: 1px solid var(--line-light); }
.menu-sec nav a:last-child { border-bottom: 0; }
.menu-sec nav a[aria-current] { color: var(--copper-l); }
@media (max-width: 1080px) {
  .nav-sec-liens { display: none; }
  .menu-sec { display: block; }
  .nav-sec { gap: 14px; }
}
@media (max-width: 420px) { .nav-sec .btn { padding: 9px 12px; font-size: 14px; white-space: nowrap; } }

.diag-eyebrow { display: flex; align-items: center; gap: 12px; letter-spacing: .14em; }
.diag-eyebrow::before { content: ""; width: 6px; height: 22px; background: currentColor; flex: none; }
.diag-title { font-size: clamp(34px, 4vw, 54px); font-weight: 700; line-height: 1.05; letter-spacing: -.025em; color: var(--ink); }
.diag-lead { font-size: clamp(18px, 1.5vw, 20px); color: var(--ink-soft); }
.legal-block h2 { font-weight: 600; color: var(--ink); }
.solution-page .legal-block h2 { font-size: clamp(22px, 2vw, 27px); letter-spacing: -.015em; line-height: 1.2; }
.solution-page .legal-block h2::before { content: ""; display: block; width: 34px; height: 3px; background: var(--copper); margin-bottom: 14px; border-radius: 2px; }
.solution-page .legal-block { padding: 34px 0; }
.solution-page .legal-block { border-top: 0; }
.solution-page .legal-block:last-child:has(.btn):not(:has(ul, ol, h3)) { background: var(--green); color: var(--cream); border-radius: var(--radius); padding: 34px 32px; margin-top: 24px; }
.solution-page .legal-block:last-child:has(.btn):not(:has(ul, ol, h3)) h2 { color: var(--cream); }
.solution-page .legal-block:last-child:has(.btn):not(:has(ul, ol, h3)) h2::before { background: var(--copper-l); }
.solution-page .legal-block:last-child:has(.btn):not(:has(ul, ol, h3)) p { color: rgba(246, 241, 233, .9); } /* couleur et non opacite : l'opacite ternissait aussi les boutons */
.solution-page .legal-block:last-child:has(.btn):not(:has(ul, ol, h3)) a:not(.btn) { color: var(--cream); }
@media (max-width: 600px) { .menu-sec nav { position: fixed; left: 12px; right: 12px; top: calc(var(--header-h) + 6px); min-width: 0; } }
.real-visuel { margin: 6px 0 22px; }
.real-visuel img { width: 100%; border-radius: var(--radius-sm); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.real-visuel .ui { max-width: 560px; }
.real-visuel .ui:hover { transform: none; }
.real-visuel .ui-table td, .real-visuel .ui-table th { font-size: 14px; }
.real-visuel figcaption { margin-top: 10px; font-size: 15px; font-weight: 400; color: var(--ink-soft); }
@media (max-width: 600px) { .real-visuel .ui { padding: 16px; } .real-visuel .journal li { grid-template-columns: 42px auto 1fr; gap: 8px; } }

/* ---- Premier écran : des écrans d'outil à la place du monogramme (2026-11-22, accord de Jones) ---- */
.hero-ui { position: absolute; inset: 0; border-radius: inherit; overflow: hidden;
  background-image: linear-gradient(rgba(246, 241, 233, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(246, 241, 233, .06) 1px, transparent 1px);
  background-size: 28px 28px; }
.hero-ui::before { content: ""; position: absolute; width: 60%; aspect-ratio: 1; right: -18%; top: -30%; border-radius: 50%; background: radial-gradient(circle, rgba(224, 145, 79, .28), transparent 65%); }
.hero-ui .ui { position: absolute; font-size: clamp(11px, .85vw, 14px); padding: clamp(12px, 1.2vw, 20px); }
.hero-ui .ui:hover { transform: none; }
.hero-ui .ui-title { font-size: 1.1em; }
.hero-ui .ui-table td { padding: .65em .4em .65em 0; }
.hero-ui .ui-table th { font-size: .78em; }
.hero-ui .st { font-size: .85em; }
.h-dossiers { left: 7%; top: 11%; width: 64%; animation: float 7s ease-in-out infinite; }
.h-auto { right: 5%; bottom: 9%; width: 42%; background: var(--green-deep); color: var(--cream); border-color: rgba(246, 241, 233, .14); animation: float 7s ease-in-out -3.5s infinite; }
.h-live { display: inline-flex; align-items: center; gap: 6px; font-size: .85em; font-weight: 600; color: var(--copper-l); }
.h-live i { width: 7px; height: 7px; border-radius: 50%; background: #3F9B6E; }
.h-flow { display: grid; gap: .55em; }
.h-flow li { display: flex; align-items: center; gap: .6em; padding: .5em .6em; border-radius: 8px; background: rgba(246, 241, 233, .07); line-height: 1.25; }
.h-flow .ico { width: 1.5em; height: 1.5em; padding: .25em; border-radius: 50%; background: var(--copper-l); color: var(--ink); stroke-width: 3; flex: none; }
.h-flow .h-wait { background: rgba(224, 145, 79, .16); }
.h-spin { width: 1.5em; height: 1.5em; border-radius: 50%; border: 2px solid rgba(224, 145, 79, .3); border-top-color: var(--copper-l); flex: none; animation: hSpin 1s linear infinite; }
@keyframes hSpin { to { transform: rotate(360deg); } }
@media (max-width: 600px) {
  .h-dossiers { left: 5%; top: 8%; width: 82%; }
  .h-auto { right: 4%; bottom: 6%; width: 62%; }
  .hero-ui .ui-table tr:nth-child(3) { display: none; }
}
@media (prefers-reduced-motion: reduce) { .h-dossiers, .h-auto, .h-spin { animation: none; } }
.h-dossiers { width: 47%; top: 9%; }
.hero-ui .ui-table td small { display: block; font-size: .82em; color: var(--ink-soft); margin-top: 2px; }
.hero-ui .ui-table td:last-child { text-align: right; padding-right: 0; }
.hero-ui .ui-table th:last-child { text-align: right; }
.h-auto { width: 41%; bottom: 8%; }
@media (max-width: 600px) {
  .h-dossiers { width: 86%; left: 7%; top: 9%; }
  .hero-ui .ui-table tr:nth-child(3) { display: table-row; }
  .h-auto { display: none; }
}
@media (max-width: 600px) { .hero-ui .ui-table tr:nth-child(3) { display: none; } .h-dossiers { top: 10%; } }
.solution-page .legal-block:last-child:has(.btn):not(:has(ul, ol, h3)) a.btn-green { background: transparent; color: var(--cream); border: 1.5px solid rgba(246, 241, 233, .6); box-shadow: none; }
.solution-page .legal-block:last-child:has(.btn):not(:has(ul, ol, h3)) a.btn-green:hover { background: var(--cream); color: var(--ink); border-color: var(--cream); }
.real-tel img { max-width: 280px; border-radius: 28px; border: 6px solid var(--ink); }
@media (min-width: 1100px) { .real-large { margin-left: -130px; margin-right: -130px; } .real-large figcaption { padding-left: 130px; } }

/* ---- Réalisations : image et texte côte à côte sur ordinateur, en alternance (2026-11-22, demande de Jones) ---- */
.real-page .diag-wrap { width: min(1160px, 100% - 2 * var(--gutter, 24px)); }
.real-page .diag-lead { max-width: 780px; }
@media (min-width: 960px) {
  .real-item { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); column-gap: 64px; align-items: center; padding: 56px 0; }
  .real-item > .real-visuel { margin: 0; }
  .real-item:nth-of-type(odd) > .real-visuel { order: 2; }
  .real-item .real-large { margin-left: 0; margin-right: 0; }
  .real-item .real-large figcaption { padding-left: 0; }
  .real-item > .real-tel { justify-self: center; text-align: center; }
  .real-item > .real-tel figcaption { max-width: 280px; }
}
.real-page .legal-block:last-child:has(.btn):not(:has(ul, ol, h3)) { max-width: 780px; }
@media (min-width: 960px) {
  .real-item:nth-of-type(odd) { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); }
  .real-item:nth-of-type(even) { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
  .real-item:nth-of-type(odd):has(> .real-tel) { grid-template-columns: minmax(0, 1fr) 340px; }
  .real-item:nth-of-type(even):has(> .real-tel) { grid-template-columns: 340px minmax(0, 1fr); }
}
@media (max-width: 959px) { .real-item { display: flex; flex-direction: column; } .real-item > .real-texte { display: contents; } .real-item > .real-texte > h2 { order: -1; } .real-item > .real-texte > * + * { margin-top: 12px; } .real-item > .real-visuel { margin: 4px 0 18px; } }

/* Accueil, cases d'exemple : le Tableau de bord remonte dans le vide sous Planning,
   son bas tombe sur la meme ligne que le bas de Stock (demande de Jones, 2026-11-22). */
@media (min-width: 641px) {
  .cards { grid-template-areas: "flux flux" "cmd plan" "cmd dash" "stock dash" "note note"; }
  .cards .ui-auto { grid-area: flux; }
  .cards .ui-cmd { grid-area: cmd; }
  .cards .ui-plan { grid-area: plan; }
  .cards .ui-stock { grid-area: stock; align-self: stretch; }
  .cards .ui-dash { grid-area: dash; align-self: end; }
  .cards .cards-note { grid-area: note; }
}

/* Accueil, case Planning : une ligne par technicien, un bloc par jour, une couleur par intervention (2026-11-22). */
.plan-sem { grid-template-columns: 44px repeat(5, minmax(0, 1fr)); grid-template-rows: auto 28px 28px 28px; }
.plan-sem .plan-day { grid-row: 1; }
.plan-who { font-size: 12px; font-weight: 600; color: var(--ink-soft); display: flex; align-items: center; grid-column: 1; }
.plan-sem .slot, .plan-sem .slot-free { padding: 0; border-radius: 6px; }
.plan-key { list-style: none; margin: 14px 0 0; padding: 0; display: flex; gap: 16px; font-size: 12px; color: var(--ink-soft); }
.plan-key i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }

/* Lisibilite (2026-11-23) : cuivre assombri sur le fond sable de la section avant / apres (3,7 -> 5,1). */
.compare .eyebrow { color: #874716; }
/* Lisibilite (2026-11-23) : sur telephone, pages interieures, la devise du logo (8 px, illisible)
   s'efface pour que le bouton "Me contacter" tienne sur une ligne, sans sortir de l'ecran. */
@media (max-width: 520px) { .header-inner:has(.nav-sec) .brand-txt i { display: none; } }
.nav-sec .btn { white-space: nowrap; }
/* Ecrans de 380 px et moins (iPhone SE, petits Android) : le monogramme MAI seul, sinon le bouton menu sort de l'ecran. */
@media (max-width: 380px) { .header-inner:has(.nav-sec) .brand-txt { display: none; } }
/* Accueil, 380 px et moins : la devise s'efface pour garder le bouton menu dans l'ecran. */
@media (max-width: 380px) { .brand-txt i { display: none; } }
/* Telephones (480 px et moins) : boutons du contenu en pleine largeur, texte centre, carte verte moins
   rembourree, pour qu'aucun bouton ne se coupe en deux avec sa fleche decalee (2026-11-23). */
@media (max-width: 480px) {
  main .btn { width: 100%; padding-inline: 16px; text-align: center; }
  .solution-page .legal-block:last-child:has(.btn):not(:has(ul, ol, h3)) { padding: 28px 20px; }
}
@media (max-width: 360px) {
  main .btn { font-size: 15px; gap: 8px; padding-inline: 12px; }
  .solution-page .legal-block:last-child:has(.btn):not(:has(ul, ol, h3)) { padding: 24px 16px; }
}
/* Souris de defilement aussi sur tablette et telephone (choix de Jones, 2026-11-23) : un peu d'air sous le monogramme. */
@media (max-width: 900px) { .hero { padding-bottom: 90px; } .scroll-cue { bottom: 20px; } }
@media (min-width: 601px) and (max-width: 900px) { .hero-art { aspect-ratio: 250 / 156; } }
/* Pied de page : zone d'intervention sur sa propre ligne, au-dessus des liens (2026-11-23). */
.footer .legal .zone { display: block; margin-bottom: 8px; color: var(--cream); }
/* Section "Pour commencer" : meme largeur et memes bords que les autres sections de l'accueil (remarque de Jones, 2026-11-23). */
.wrap.contact-stack { width: 100%; }
