/* Réponse Online — feuille commune aux 3 pages. Tokens, composants, mouvement. */
/* Police : Plus Jakarta Sans variable (200-800), auto-hébergée. Aucune requête tierce. */
@font-face {
  font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url("fonts/plus-jakarta-sans-var-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url("fonts/plus-jakarta-sans-var-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Tokens. Noir + vert citron, crème-vert pour les fonds de section.
   Le citron ne porte jamais de texte sur fond clair : fond de pastille (texte noir) ou texte sur noir. */
:root {
  --ink: #141414; --ink-2: #1d1f1a; --ink-3: #2a2d26;
  --lime: #c9f35b; --lime-soft: #e3f7a6;
  --cream: #f1f5e6; --paper: #ffffff;
  --text: #141414; --muted: #565c4f; --muted-on-ink: #b9bfad;
  --line: rgba(20,20,20,.12); --line-on-ink: rgba(255,255,255,.14);
  --radius: 14px; --pill: 999px; --wrap: 1180px; --gutter: clamp(18px, 4vw, 40px); --nav-h: 76px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --font: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--text); background: var(--paper); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
::selection { background: var(--lime); color: var(--ink); }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; }
.on-light :focus-visible { outline-color: var(--ink); }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { text-wrap: balance; letter-spacing: -0.03em; line-height: 1.02; }
.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }

/* ---------- boutons ---------- */
.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 12px 22px; border-radius: var(--pill); font-weight: 600; font-size: 15px; text-decoration: none; line-height: 1; border: 1.5px solid transparent; transition: transform .35s var(--ease-out), background-color .25s, border-color .25s; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-lime { background: var(--lime); color: var(--ink); }
.btn-lime:hover { background: var(--lime-soft); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: #fff; border-color: var(--line-on-ink); max-width: 100%; font-size: 14px; overflow-wrap: anywhere; line-height: 1.2; }
.btn-ghost:hover { border-color: #fff; transform: translateY(-2px); }

/* ---------- nav ---------- */
.nav { position: absolute; inset: 0 0 auto 0; z-index: 10; height: var(--nav-h); display: flex; align-items: center; color: #fff; }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 17px; letter-spacing: -0.01em; }
.brand-mark { width: 34px; height: 34px; border-radius: 50%; background: var(--lime); display: grid; place-items: center; color: var(--ink); }
.brand-mark svg { width: 18px; height: 18px; }
.nav-links { display: none; gap: 28px; list-style: none; margin: 0; padding: 0; font-size: 14px; font-weight: 500; }
.nav-links a { text-decoration: none; color: rgba(255,255,255,.82); padding: 6px 0; border-bottom: 1.5px solid transparent; transition: color .2s, border-color .2s; }
.nav-links a:hover { color: #fff; border-color: var(--lime); }
.nav-cta { display: none; }
@media (min-width: 900px) { .nav-links, .nav-cta { display: inline-flex; } }

/* ---------- héros : grille de points citron traversée d'ondes (canvas) ---------- */
.hero { position: relative; isolation: isolate; color: #fff; background: var(--ink); min-height: min(92svh, 860px); display: flex; align-items: flex-end; padding: calc(var(--nav-h) + 56px) 0 64px; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: -2; background: var(--ink); }
.hero-bg canvas { width: 100%; height: 100%; color: var(--lime); }
.hero-veil { position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(ellipse 46% 42% at 30% 62%, rgba(20,20,20,.82) 0%, rgba(20,20,20,0) 100%), linear-gradient(180deg, rgba(20,20,20,.55) 0%, rgba(20,20,20,0) 30%, rgba(20,20,20,0) 70%, rgba(20,20,20,.85) 100%); }
.hero-grid { display: grid; gap: 36px; align-items: end; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: minmax(0, 1.5fr) minmax(280px, .5fr); gap: 56px; } }
.h1 { font-size: clamp(2.35rem, 6.9vw, 5.1rem); font-weight: 600; letter-spacing: -0.04em; line-height: 1; overflow-wrap: anywhere; }
.h1 .pill { display: inline-block; background: var(--lime); color: var(--ink); padding: .02em .32em .08em; border-radius: var(--pill); line-height: 1.02; margin-inline: .04em 0; }
.hero-aside { display: grid; gap: 22px; }
.hero-lead { font-size: clamp(1rem, 1.3vw, 1.1rem); color: var(--muted-on-ink); max-width: 34ch; line-height: 1.6; }
.hero-lead strong { color: #fff; font-weight: 600; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* Badge circulaire tournant — il dit une chose vraie. Posé entre les deux réalisations. */
.badge { position: relative; width: 132px; height: 132px; flex: none; display: grid; place-items: center; color: var(--ink); }
.badge svg.ring { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 22s linear infinite; }
.badge .ring text { font: 600 10.5px/1 var(--font); letter-spacing: .14em; fill: currentColor; text-transform: uppercase; }
.badge .core { width: 54px; height: 54px; border-radius: 50%; background: var(--lime); color: var(--ink); display: grid; place-items: center; }
.badge .core svg { width: 22px; height: 22px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- bandeau défilant ---------- */
.marquee { background: var(--lime); color: var(--ink); overflow: hidden; overflow: clip; border-block: 1px solid rgba(20,20,20,.15); }
.marquee-track { display: flex; width: max-content; animation: slide 38s linear infinite; }
.marquee-track:hover { animation-play-state: paused; }
.marquee ul { display: flex; align-items: center; list-style: none; margin: 0; padding: 0; }
.marquee li { display: inline-flex; align-items: center; gap: 28px; padding: 15px 28px 15px 0; font-weight: 600; font-size: 14px; letter-spacing: .02em; white-space: nowrap; }
.marquee li svg { width: 16px; height: 16px; flex: none; }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; align-items: start; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head > * { min-width: 0; }
@media (min-width: 900px) { .section-head { grid-template-columns: minmax(0, 1fr) auto; } }
.h2 { font-size: clamp(1.8rem, 4.2vw, 3rem); font-weight: 600; max-width: 20ch; overflow-wrap: anywhere; }
.h2 .dim { color: var(--muted); font-weight: 500; }
.rule-title { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 16px; align-items: center; }
@media (min-width: 760px) { .rule-title { grid-template-columns: 56px minmax(0, 1fr); gap: 20px; } }
.rule-title::before { content: ""; height: 2px; background: var(--lime); border-radius: 2px; align-self: center; margin-top: .55em; }
.squares { display: inline-grid; grid-template-columns: 22px 22px; gap: 6px; }
.squares i { display: block; height: 22px; background: var(--ink); }
.squares i:nth-child(2) { background: var(--lime); }

/* ---------- grille éditoriale (reprise de la landing Cabinet Management) ----------
   Un filet de 1 px entre les cases : le fond du conteneur apparaît dans le gap.
   Au survol, la case s'inverse en noir ; fond, texte et bordure passent par des variables. */
.features { background: var(--cream); }
.fgrid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.fcard {
  --fg: var(--ink); --fg-muted: var(--muted); --chip: rgba(20,20,20,.2);
  grid-column: span 12; background: var(--paper); padding: 30px 26px; display: grid; gap: 12px; align-content: start;
  transition: background-color .3s ease;
}
.fcard:hover, .fcard:focus-within { --fg: #fff; --fg-muted: var(--muted-on-ink); --chip: rgba(255,255,255,.3); background: var(--ink); }
.fcard-hero { background: linear-gradient(135deg, rgba(201,243,91,.22), var(--paper) 62%); padding: 40px 30px; gap: 16px; }
.fcard-hero:hover, .fcard-hero:focus-within { background: var(--ink); }
@media (min-width: 760px) { .fcard { grid-column: span 6; } .fcard-hero { grid-column: span 12; } }
@media (min-width: 1040px) {
  .fcard-hero { grid-column: span 8; padding: 56px 52px; }
  .fcard-side { grid-column: span 4; padding: 44px 40px; }
  .fcard-small { grid-column: span 3; }
  .fcard-wide { grid-column: span 4; padding: 38px 34px; }
}
.ficon { width: 44px; height: 44px; border-radius: 10px; background: var(--lime); color: var(--ink); display: grid; place-items: center; }
.ficon svg { width: 22px; height: 22px; }
.fcard h3 { color: var(--fg); font-weight: 600; font-size: 1.2rem; letter-spacing: -0.02em; transition: color .3s; }
.fcard-hero h3 { font-size: clamp(1.6rem, 3vw, 2.3rem); letter-spacing: -0.03em; }
.fcard-side h3, .fcard-wide h3 { font-size: 1.35rem; }
.fcard p { color: var(--fg-muted); font-size: 15px; line-height: 1.55; max-width: 44ch; transition: color .3s; }
.fcard-hero p { font-size: clamp(1rem, 1.4vw, 1.15rem); max-width: 40ch; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.chips span { padding: 8px 14px; border: 1px solid var(--chip); border-radius: var(--pill); font-size: 12.5px; font-weight: 600; color: var(--fg); transition: color .3s, border-color .3s; }

/* ---------- réalisations ---------- */
.works { position: relative; display: grid; gap: 22px; }
@media (min-width: 760px) { .works { grid-template-columns: 1fr 1fr; gap: 28px; } }
.work { display: grid; gap: 14px; text-decoration: none; color: inherit; min-width: 0; }
.media { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--ink-2); aspect-ratio: 16 / 10; }
.media img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .8s var(--ease-out); }
.work:hover .media img { transform: scale(1.03); }
.work-tag { position: absolute; top: 14px; left: 14px; padding: 8px 13px; border-radius: var(--pill); background: var(--lime); color: var(--ink); font-size: 12px; font-weight: 600; }
.work-meta { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.work-meta h3 { font-size: 1.3rem; font-weight: 600; }
.work-meta span { color: var(--muted); font-size: 14px; white-space: nowrap; }
.works .badge { justify-self: center; }
@media (min-width: 760px) { .works .badge { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -62%); z-index: 2; background: var(--paper); border-radius: 50%; box-shadow: 0 18px 40px -18px rgba(20,20,20,.45); } }

/* ---------- comment ça se passe ---------- */
.steps { display: grid; gap: 18px; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 28px; } }
.step { border-top: 2px solid var(--ink); padding-top: 18px; display: grid; gap: 8px; }
.step h3 { font-size: 1.3rem; font-weight: 600; }
.step p { color: var(--muted); font-size: 15px; line-height: 1.55; }
.step b { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--lime); font-size: 13px; font-weight: 700; margin-bottom: 6px; }

/* ---------- clôture ---------- */
.close { background: var(--ink); color: #fff; }
.close-grid { display: grid; gap: 28px; align-items: center; }
@media (min-width: 900px) { .close-grid { grid-template-columns: 1.2fr .8fr; gap: 48px; } }
.close .h2 { color: #fff; max-width: 16ch; }
.close .h2 .pill { display: inline-block; background: var(--lime); color: var(--ink); padding: .02em .3em .08em; border-radius: var(--pill); }
.close p { color: var(--muted-on-ink); max-width: 40ch; line-height: 1.6; }
.who { border: 1px solid var(--line-on-ink); border-radius: var(--radius); padding: 24px; display: grid; gap: 12px; background: rgba(255,255,255,.03); }
.who h3 { font-size: 1.05rem; font-weight: 600; }
.who p { font-size: 15px; }
.contacts { display: grid; gap: 8px; font-size: 15px; }
.contacts a { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; padding: 4px 0; }
.contacts svg { width: 18px; height: 18px; color: var(--lime); }
footer { background: var(--ink); color: var(--muted-on-ink); border-top: 1px solid var(--line-on-ink); padding: 26px 0; font-size: 13.5px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: center; }
footer a { color: #fff; text-decoration: none; }
footer a:hover { border-bottom: 1px solid var(--lime); }
footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 18px; }

/* ---------- bulle WhatsApp ---------- */
.fab { position: fixed; right: 18px; bottom: 18px; z-index: 20; width: 58px; height: 58px; border-radius: 50%; background: var(--lime); color: var(--ink); display: grid; place-items: center; box-shadow: 0 18px 36px -12px rgba(0,0,0,.45); transition: transform .35s var(--ease-out); }
.fab:hover { transform: translateY(-3px) scale(1.04); }
.fab svg { width: 28px; height: 28px; }

/* ---------- mouvement ----------
   Deux systèmes, pas plus : le héros entre au chargement (aucun observateur au-dessus du pli),
   et sous le pli chaque bloc `.reveal` monte de 16 px quand il entre dans l'écran, une fois,
   avec un léger décalage par --d. Par défaut tout est VISIBLE : sans JS, rien ne manque. */
.rise { opacity: 0; transform: translateY(18px); animation: rise .9s var(--ease-out) forwards; }
.rise:nth-child(2) { animation-delay: .12s; }
@keyframes rise { to { opacity: 1; transform: none; } }
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }
.no-js .rise { opacity: 1; transform: none; animation: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rise, .js .reveal { opacity: 1; transform: none; animation: none; transition: none; }
  .badge svg.ring { animation: none; }
  .marquee-track { animation: none; flex-wrap: wrap; width: 100%; }
  .marquee-track ul + ul { display: none; }
  .marquee li { white-space: normal; }
  .btn, .fab, .media img, .fcard { transition: none; }
}

/* ---------- secteurs : deux portes, une par métier ---------- */
.sectors { display: grid; gap: 18px; }
@media (min-width: 760px) { .sectors { grid-template-columns: 1fr 1fr; gap: 28px; } }
.sector {
  position: relative; display: grid; gap: 14px; align-content: start; padding: 34px 30px 38px; text-decoration: none; color: inherit;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: transform .4s var(--ease-out), background-color .3s, border-color .3s;
}
.sector::after { content: ""; position: absolute; right: 0; bottom: 0; width: 28px; height: 28px; background: var(--lime); clip-path: polygon(100% 0, 100% 100%, 0 100%); transition: transform .4s var(--ease-out); }
.sector:hover { transform: translateY(-4px); background: var(--ink); color: #fff; border-color: var(--ink); }
.sector:hover::after { transform: scale(1.6); }
.sector h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 600; letter-spacing: -0.03em; }
.sector p { color: var(--muted); font-size: 15.5px; line-height: 1.55; max-width: 40ch; transition: color .3s; }
.sector:hover p { color: var(--muted-on-ink); }
.sector .go { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; margin-top: 6px; transition: gap .25s var(--ease-out); }
.sector:hover .go { gap: 12px; }
.sector .go svg { width: 18px; height: 18px; }

/* ---------- réalisation unique, en large : image à gauche, texte à droite ---------- */
.work-wide { display: grid; gap: 22px; align-items: center; text-decoration: none; color: inherit; }
@media (min-width: 900px) { .work-wide { grid-template-columns: 1.15fr .85fr; gap: 48px; } }
.work-wide .media { aspect-ratio: 16 / 10; }
.work-wide h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 600; letter-spacing: -0.03em; margin-bottom: 12px; }
.work-wide p { color: var(--muted); max-width: 42ch; line-height: 1.6; margin-bottom: 18px; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; border-bottom: 2px solid var(--lime); padding-bottom: 2px; width: fit-content; transition: gap .25s var(--ease-out); }
.link-arrow:hover { gap: 12px; }
.link-arrow svg { width: 16px; height: 16px; }

/* ---------- pages secteur : héros plus court, bloc de retour ---------- */
.hero-page { min-height: min(72svh, 680px); }
.crumb { display: inline-flex; align-items: center; gap: 8px; color: var(--muted-on-ink); text-decoration: none; font-size: 14px; font-weight: 500; margin-bottom: 18px; }
.crumb:hover { color: #fff; }
.crumb svg { width: 16px; height: 16px; }
