/*
 * site.css — thème public de haccp.hubcaisse.fr (version « mélange », 10/10/2026).
 *
 * À quoi ça sert : styles de l’accueil HubHygiène (public/index.html), des guides et pages métiers
 * générés par scripts/editorial-build.mjs, et de la page introuvable.
 *
 * Communique avec : public/site.js (menu .open, rubriques, aperçu, vidéo, formulaire, icônes
 * [data-icon]), assets/fonts (Poppins auto-hébergée), version-assets.mjs (URL versionnées).
 *
 * Objectif : la même famille que hubcaisse.fr — dégradé, pastels, cartes arrondies, bleu nuit —
 * en vert pour HubHygiène, sans pictogrammes ni formes décoratives génériques.
 */
/* Poppins auto-hébergée (licence OFL dans assets/fonts/poppins-OFL.txt). */
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/hashed/poppins-400-latin-ext.1fae5e73d2788ee1.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/hashed/poppins-400-latin.3dc5d0c52428fe16.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: 'Poppins';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/assets/hashed/poppins-500-latin-ext.f8f0c28661c88edb.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/assets/hashed/poppins-500-latin.289e0afc8be731a8.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: 'Poppins';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/assets/hashed/poppins-600-latin-ext.72efc6a32cfd37c5.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/assets/hashed/poppins-600-latin.872e862918591a9e.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: 'Poppins';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/assets/hashed/poppins-700-latin-ext.2477683a4b120068.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/assets/hashed/poppins-700-latin.197a3cbd7290c242.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: 'Poppins';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(/assets/hashed/poppins-800-latin-ext.db859b9cbc7a9170.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(/assets/hashed/poppins-800-latin.4ef5511d8e7b39ae.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --paper: #ffffff;
  --ink: #0f1638;
  --navy: #0f1638;
  --navy-2: #1a2352;
  --text: #3b4366;
  --muted: #646b8a;
  --green: #16a34a;
  --green-deep: #0f7a37;
  --green-soft: #e2f6e8;
  --mint: #effaf2;
  --tint-2: #f6f8fd;
  --yellow: #ffd23f;
  --line: #e3e7f2;
  --tile-yellow: #fff3c9;
  --tile-blue: #e3edff;
  --tile-coral: #ffe7e3;
  --tile-violet: #eee8ff;
  --gradient: linear-gradient(125deg, #0f7a37 0%, #16a34a 45%, #4ade80 100%);
  --font: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --gutter: clamp(18px, 4vw, 40px);
  --section: clamp(64px, 8vw, 108px);
  --r-lg: 28px;
  --r-md: 20px;
  --r-sm: 14px;
  --shadow: 0 18px 50px -24px rgba(15, 22, 56, .28);
  --shadow-lg: 0 34px 80px -34px rgba(15, 22, 56, .45);
  --ease: cubic-bezier(.2, .7, .1, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--text); font-family: var(--font); font-size: 16.5px; line-height: 1.65; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
img, video { display: block; max-width: 100%; }
img { height: auto; }
[hidden] { display: none !important; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
h1, h2, h3 { color: var(--ink); font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; text-wrap: balance; overflow-wrap: break-word; }
h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.08; }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.55rem); }
h3 { font-size: clamp(1.05rem, 1.4vw, 1.22rem); font-weight: 600; letter-spacing: -0.01em; }
p { text-wrap: pretty; }
::selection { background: var(--yellow); color: var(--navy); }
:focus-visible { outline: 3px solid #4ade80; outline-offset: 3px; }
.wrap { width: min(1220px, calc(100% - 2 * var(--gutter))); margin-inline: auto; }
.section { padding-block: var(--section); }
.skip { position: fixed; left: 16px; top: -100px; z-index: 100; padding: 12px 18px; border-radius: 999px; background: var(--navy); color: #fff; text-decoration: none; }
.skip:focus { top: 12px; }
.icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.mark { padding: 0 .12em; border-radius: .2em; background: linear-gradient(transparent 52%, var(--yellow) 52%, var(--yellow) 92%, transparent 92%); -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.green { color: var(--green); }
.lead { font-size: clamp(1.02rem, 1.25vw, 1.15rem); line-height: 1.65; max-width: 52ch; }
.muted { color: var(--muted); }
.badge, .eyebrow, .kicker { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 16px; padding: 7px 14px; border-radius: 999px; background: var(--green-soft); color: var(--green-deep); font-size: 13.5px; font-weight: 600; letter-spacing: 0; text-transform: none; }
.badge .icon { width: 16px; height: 16px; }
.eyebrow.green { color: var(--green-deep); }
.head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px 56px; align-items: end; margin-bottom: clamp(36px, 5vw, 56px); }
.head > p { color: var(--muted); max-width: 54ch; }
.head.center { display: block; max-width: 760px; margin-inline: auto; text-align: center; }
.head.center p { margin: 14px auto 0; }

/* Actions */
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 30px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 26px; border: 2px solid transparent; border-radius: 999px; background: var(--green); color: #fff; font-size: 15.5px; font-weight: 600; line-height: 1.2; text-decoration: none; box-shadow: 0 12px 26px -12px rgba(22, 163, 74, .7); transition: background-color .2s, color .2s, transform .2s var(--ease); }
.button:hover { background: var(--green-deep); transform: translateY(-2px); }
.button.small { min-height: 44px; padding: 0 22px; font-size: 15px; }
.button.light { background: #fff; color: var(--green-deep); box-shadow: 0 12px 30px -14px rgba(15, 22, 56, .5); }
.button.light:hover { background: var(--yellow); color: var(--navy); }
.button.ghost { border-color: rgba(255, 255, 255, .7); background: transparent; color: #fff; box-shadow: none; }
.button.ghost:hover { background: rgba(255, 255, 255, .14); }
.button.ink { background: var(--navy); box-shadow: none; }
.button:disabled { opacity: .5; cursor: default; transform: none; }
.text-link { display: inline-flex; align-items: center; gap: 8px; color: var(--green-deep); font-weight: 600; text-decoration: none; }
.text-link:hover { color: var(--green); }

/* Tuiles pastel */
.tile, .ctl-icon { display: inline-grid; place-items: center; flex-shrink: 0; width: 52px; height: 52px; border-radius: 16px; background: var(--green-soft); color: var(--green-deep); }
.tile .icon { width: 24px; height: 24px; }
.numbered article, .solution-card { border-top: 4px solid var(--green); }
.numbered article:nth-child(4n+2), .solution-list li:nth-child(4n+2) .solution-card { border-top-color: var(--yellow); }
.numbered article:nth-child(4n+3), .solution-list li:nth-child(4n+3) .solution-card { border-top-color: #1d4ed8; }
.numbered article:nth-child(4n+4), .solution-list li:nth-child(4n+4) .solution-card { border-top-color: #ff6b5b; }

/* En-tête */
.header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); transition: box-shadow .25s; }
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) { .header { background: rgba(255,255,255,.86); -webkit-backdrop-filter: saturate(1.6) blur(14px); backdrop-filter: saturate(1.6) blur(14px); } }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 78px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.brand-logo { position: relative; display: block; width: 146px; height: 38px; overflow: hidden; flex-shrink: 0; }
.brand-logo img { position: absolute; left: -19px; top: -22px; width: auto; height: 89px; max-width: none; }
.brand-tag { padding: 4px 10px; border-radius: 999px; background: var(--green); color: #fff; font-size: 12px; font-weight: 600; }
#navigation { display: flex; align-items: center; gap: 2px; }
#navigation > a:not(.button) { display: flex; align-items: center; height: 42px; padding: 0 14px; border-radius: 999px; color: var(--ink); font-size: 15px; font-weight: 500; text-decoration: none; white-space: nowrap; transition: background-color .2s, color .2s; }
#navigation > a:not(.button):hover { background: var(--mint); color: var(--green-deep); }
#navigation > .button { margin-left: 12px; }
.menu-toggle { display: none; position: relative; width: 46px; height: 46px; border: 0; border-radius: 999px; background: var(--mint); }
.menu-toggle span { position: absolute; left: 14px; right: 14px; height: 2px; border-radius: 2px; background: var(--green-deep); transition: transform .2s; }
.menu-toggle span:first-child { top: 18px; }
.menu-toggle span:last-child { top: 26px; }
.menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
.editorial-header { display: contents; color: var(--ink); }

/* Accueil — en-tête en dégradé */
.hero { position: relative; overflow: hidden; padding-block: clamp(44px, 6vw, 84px) clamp(52px, 7vw, 96px); background: var(--gradient); color: rgba(255, 255, 255, .92); border-radius: 0 0 clamp(32px, 5vw, 64px) clamp(32px, 5vw, 64px); }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .85fr); gap: 48px 56px; align-items: center; }
.hero .badge { background: rgba(255, 255, 255, .2); color: #fff; }
.hero h1 { color: #fff; }
.hero h1 .mark { color: var(--navy); }
.hero .lead { margin-top: 20px; }
.facts { list-style: none; padding: 0; margin-top: 34px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.facts li { padding: 14px 16px; border-radius: var(--r-sm); background: rgba(255, 255, 255, .14); }
.facts strong { display: block; color: #fff; font-size: 15px; font-weight: 700; }
.facts span { display: block; margin-top: 4px; color: rgba(255, 255, 255, .85); font-size: 13px; line-height: 1.45; }
.hero-product { position: relative; display: flex; flex-direction: column; align-items: center; }
.phone { width: min(100%, 280px); padding: 9px; border-radius: 40px; background: #0b0d0c; box-shadow: 0 50px 80px -40px rgba(0, 0, 0, .6); transform: rotate(3deg); }
.phone img { width: 100%; border-radius: 32px; }
.hero-product figcaption { margin-top: 20px; padding: 6px 14px; border-radius: 999px; background: rgba(255, 255, 255, .18); color: #fff; font-size: 12.5px; text-align: center; }
.reel-section { padding-block: clamp(40px, 5vw, 64px) 0; }
.reel-frame { position: relative; overflow: hidden; aspect-ratio: 21 / 8; border-radius: var(--r-lg); background: var(--tint-2); box-shadow: var(--shadow-lg); }
.reel-frame video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.reel-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 14px; color: var(--muted); font-size: 14px; }
#video-toggle { padding: 8px 16px; border: 0; border-radius: 999px; background: var(--mint); color: var(--green-deep); font-size: 13.5px; font-weight: 600; }

/* Nuage de contrôles */
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 960px; margin: 0 auto; list-style: none; padding: 0; }
.chips li { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); font-size: 14px; font-weight: 500; transition: border-color .2s, transform .2s var(--ease), box-shadow .2s; }
.chips li:hover { border-color: var(--green); transform: translateY(-2px); box-shadow: var(--shadow); }

/* Blocs */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px clamp(40px, 6vw, 88px); align-items: center; }
.split h2 { margin-bottom: 18px; }
.split p + p { margin-top: 12px; }
.photo { position: relative; }
.photo img { position: relative; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-lg); box-shadow: var(--shadow-lg); }
.numbered { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.numbered.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.numbered article { padding: 28px; border-radius: var(--r-md); background: #fff; box-shadow: var(--shadow); }
.numbered h3 { margin-bottom: 8px; font-size: 17.5px; font-weight: 700; }
.numbered p { color: var(--muted); font-size: 15px; line-height: 1.6; }
.benefits, .services { background: var(--mint); border-radius: clamp(32px, 5vw, 64px); margin-inline: clamp(0px, 1.5vw, 24px); }
.checklist { display: grid; gap: 10px; list-style: none; padding: 0; margin: 22px 0 0; }
.checklist li { position: relative; padding-left: 26px; line-height: 1.5; }
.checklist li::before { content: ''; position: absolute; left: 2px; top: .45em; width: 11px; height: 6px; border-left: 2.5px solid var(--green); border-bottom: 2.5px solid var(--green); transform: rotate(-45deg); }

/* Rubriques */
.controls-layout { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 28px 48px; align-items: start; }
.control-list { display: grid; gap: 10px; }
.control-link { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 12px 18px 12px 12px; border-radius: var(--r-sm); background: var(--tint-2); color: var(--ink); font-size: 16px; font-weight: 600; text-decoration: none; transition: background-color .2s, color .2s, box-shadow .2s; }
.control-link small { color: var(--muted); font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.control-link > span:last-child { color: var(--muted); transition: transform .25s var(--ease); }
.control-link:hover { background: var(--mint); }
.control-link[aria-current="true"] { background: var(--green); color: #fff; box-shadow: 0 16px 30px -16px rgba(22, 163, 74, .8); }
.control-link[aria-current="true"] small { color: rgba(255, 255, 255, .8); }
.control-link[aria-current="true"] > span:last-child { color: #fff; transform: translateX(4px); }
.control-panel { padding: clamp(26px, 4vw, 44px); border-radius: var(--r-lg); background: #fff; box-shadow: var(--shadow-lg); border-top: 6px solid var(--yellow); }
.control-panel .panel-number { display: inline-block; margin-bottom: 18px; padding: 5px 12px; border-radius: 999px; background: var(--tile-yellow); color: #7a5600; font-size: 13px; font-weight: 600; }
.control-panel h3 { margin-bottom: 14px; font-size: clamp(1.4rem, 2.4vw, 1.9rem); font-weight: 700; line-height: 1.2; }
.control-panel > p { color: var(--muted); }
.control-panel .text-link { margin-top: 24px; }
.js .control-panel[hidden] { display: none; }

/* Application (bleu nuit arrondi) */
.application { position: relative; overflow: hidden; background: var(--navy); color: rgba(255, 255, 255, .8); border-radius: clamp(36px, 6vw, 80px) 0 clamp(36px, 6vw, 80px) 0; }
.application h2 { color: #fff; margin-bottom: 18px; }
.application .badge { background: rgba(255, 210, 63, .16); color: var(--yellow); }
.application-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 48px 64px; align-items: center; }
.app-figure figcaption { margin-top: 12px; color: rgba(255, 255, 255, .6); font-size: 13px; }
.screen-zoom { display: block; width: 100%; padding: 0; border: 0; background: none; text-align: left; }
.tablet { display: block; padding: 10px; border-radius: 24px; background: #05070f; box-shadow: 0 50px 80px -50px rgba(0, 0, 0, .8); }
.tablet img { border-radius: 15px; }
.zoom-label { display: inline-block; margin-top: 14px; padding: 7px 14px; border-radius: 999px; background: rgba(255, 255, 255, .12); color: #fff; font-size: 13.5px; font-weight: 600; }
.application .checklist.columns { position: relative; z-index: 1; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 24px; margin-top: clamp(40px, 5vw, 64px); }
.application .checklist li { color: #fff; }
.application .checklist li::before { border-color: var(--yellow); }

/* Équipement */
.equipment-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.equipment-card { overflow: hidden; border-radius: var(--r-md); background: #fff; box-shadow: var(--shadow); }
.equipment-card h3, .equipment-card p { padding-inline: 24px; }
.equipment-card h3 { margin: 20px 0 6px; }
.equipment-card p { padding-bottom: 24px; color: var(--muted); font-size: 15px; }
.equipment-visual { display: flex; align-items: center; justify-content: center; height: 260px; overflow: hidden; background: var(--mint); }
.equipment-card:nth-child(2) .equipment-visual { background: var(--tile-yellow); }
.equipment-card:nth-child(3) .equipment-visual { background: var(--tile-blue); }
.mini-phone { width: 140px; margin-top: 90px; padding: 6px; border-radius: 24px; background: #0b0d0c; }
.mini-phone img { border-radius: 19px; }
.mini-tablet { width: 82%; padding: 7px; border-radius: 16px; background: #0b0d0c; }
.mini-tablet img { border-radius: 9px; }
.equipment-visual.documents { gap: 16px; }
.doc { position: relative; display: flex; flex-direction: column; gap: 9px; width: 124px; height: 166px; padding: 16px; border-radius: 12px; background: #fff; box-shadow: var(--shadow); }
.doc:last-child { margin-top: 40px; }
.doc b { color: var(--ink); font-size: 13.5px; }
.doc i { display: block; height: 6px; border-radius: 6px; background: var(--line); }
.doc i:nth-of-type(2) { width: 70%; }
.doc em { position: absolute; left: 16px; bottom: 16px; padding: 3px 9px; border-radius: 999px; background: var(--green); color: #fff; font-size: 11.5px; font-style: normal; font-weight: 600; }

/* Démarrage et contact */
.steps { display: grid; gap: 14px; list-style: none; padding: 0; counter-reset: s; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 2px 14px; padding: 20px; border-radius: var(--r-md); background: #fff; box-shadow: var(--shadow); }
.steps li::before { content: counter(s); grid-row: span 2; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--yellow); color: var(--navy); font-weight: 700; }
.steps strong { color: var(--ink); font-size: 17px; font-weight: 700; }
.steps span { color: var(--muted); font-size: 15px; }
.start { background: var(--tint-2); border-radius: clamp(32px, 5vw, 64px); margin-inline: clamp(0px, 1.5vw, 24px); }
.contact .split { align-items: start; }
.contact-copy a { color: var(--green-deep); font-weight: 600; }
.contact-copy .checklist { margin-bottom: 26px; }
.contact-form { padding: clamp(26px, 4vw, 44px); border-radius: var(--r-lg); background: #fff; box-shadow: var(--shadow-lg); border-top: 6px solid var(--green); }
.contact-form h3 { margin-bottom: 6px; font-size: clamp(1.35rem, 2.2vw, 1.75rem); font-weight: 700; }
.contact-form > p:first-of-type { margin-bottom: 22px; color: var(--muted); font-size: 14px; }
.form-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.form-grid label { display: grid; gap: 7px; color: var(--ink); font-size: 14px; font-weight: 600; }
.form-grid .full { grid-column: 1 / -1; }
.form-grid input, .form-grid select, .form-grid textarea { width: 100%; min-height: 50px; padding: 12px 16px; border: 2px solid var(--line); border-radius: var(--r-sm); background: var(--tint-2); color: var(--ink); font-size: 15.5px; font-weight: 400; transition: border-color .15s, background-color .15s; }
.form-grid select { appearance: none; -webkit-appearance: none; padding-right: 42px; background: var(--tint-2) 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 5 5 5-5' fill='none' stroke='%2316a34a' stroke-width='1.8'/%3E%3C/svg%3E") no-repeat right 16px center; }
.form-grid textarea { min-height: 110px; resize: vertical; }
.form-grid :is(input, select, textarea):focus { outline: none; border-color: var(--green); background: #fff; }
.privacy-note { margin: 18px 0 20px; color: var(--muted); font-size: 13px; }
.privacy-note a { color: var(--green-deep); }
/* Champ piège anti-robots (APP-033) : hors écran, jamais rempli par un humain. */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-feedback { margin-top: 16px; padding: 12px 16px; border-radius: var(--r-sm); font-size: 15px; font-weight: 500; }
.form-feedback[data-state="error"] { background: #fdecea; color: #b42318; }
.form-feedback[data-state="success"] { background: var(--green-soft); color: var(--green-deep); }
.form-feedback[data-state="pending"] { background: var(--tint-2); color: var(--ink); }

/* Écosystème HubCaisse */
.solution-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; list-style: none; padding: 0; }
.solution-card { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; height: 100%; padding: 24px; border-radius: var(--r-md); background: #fff; color: inherit; text-decoration: none; box-shadow: var(--shadow); transition: transform .25s var(--ease), box-shadow .25s; }
.solution-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.solution-card h3 { font-size: 17px; font-weight: 700; }
.solution-card p { color: var(--muted); font-size: 14.5px; line-height: 1.55; }
.solution-card > span:last-child { color: var(--green-deep); font-weight: 600; transition: transform .25s var(--ease); }
.solution-card:hover > span:last-child { transform: translateX(4px); }
.ecosystem-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 36px; }
.ecosystem-cta p { color: var(--muted); }

/* FAQ */
.faq-inner { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 24px 64px; align-items: start; }
.faq-list { display: grid; gap: 12px; }
.faq details { border-radius: var(--r-sm); background: var(--tint-2); transition: background-color .2s; }
.faq details[open] { background: var(--mint); }
.faq summary { position: relative; padding: 18px 56px 18px 22px; color: var(--ink); font-size: 16px; font-weight: 600; line-height: 1.4; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 16px; top: 50%; display: grid; place-items: center; width: 28px; height: 28px; margin-top: -14px; border-radius: 50%; background: #fff; color: var(--green); font-size: 18px; font-weight: 600; transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 22px 20px; }
.faq details a { color: var(--green-deep); }

/* Pied de page */
footer { margin-top: clamp(24px, 4vw, 48px); }
.closing { padding-bottom: clamp(48px, 6vw, 80px); }
.closing-inner { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 28px 56px; align-items: center; padding: clamp(32px, 5vw, 64px); border-radius: var(--r-lg); background: var(--gradient); color: rgba(255, 255, 255, .9); }
.closing h2 { position: relative; z-index: 1; color: #fff; font-size: clamp(1.8rem, 3.6vw, 2.8rem); }
.closing-inner > div { position: relative; z-index: 1; }
.closing p { margin-bottom: 22px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); gap: 36px; padding-block: 64px 48px; }
footer > .footer-grid, footer > .footer-bottom { background: var(--navy); color: rgba(255, 255, 255, .66); font-size: 14.5px; }
footer > .footer-grid { width: 100%; max-width: none; padding-inline: max(var(--gutter), calc((100% - 1220px) / 2)); border-radius: clamp(32px, 5vw, 56px) clamp(32px, 5vw, 56px) 0 0; }
footer .brand { color: #fff; }
footer .brand-logo img { filter: brightness(0) invert(1); }
footer .footer-grid p { margin-top: 18px; max-width: 30ch; }
footer h2 { margin-bottom: 14px; color: #fff; font-size: 15px; font-weight: 600; letter-spacing: 0; }
.footer-grid a:not(.brand) { display: block; padding: 4px 0; color: rgba(255, 255, 255, .66); text-decoration: none; }
.footer-grid a:not(.brand):hover { color: var(--yellow); }
.footer-bottom .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 28px; padding-block: 22px 28px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 13px; }
.footer-bottom a { color: rgba(255, 255, 255, .66); text-decoration: none; }
.footer-bottom a:hover { color: #fff; }

/* Aperçu agrandi */
#screen-dialog { width: min(1180px, calc(100% - 32px)); padding: 16px; border: 0; border-radius: var(--r-md); background: #fff; }
#screen-dialog::backdrop { background: rgba(15, 22, 56, .78); }
#screen-dialog img { width: 100%; border-radius: 10px; }
#screen-dialog p { margin-top: 10px; color: var(--muted); font-size: 14px; }
.dialog-close { display: block; margin: 0 0 12px auto; padding: 8px 16px; border: 0; border-radius: 999px; background: var(--mint); color: var(--green-deep); font-size: 14px; font-weight: 600; }

/* Pages éditoriales (guides, métiers, blog) */
.editorial-hero { padding-block: clamp(20px, 3vw, 32px) clamp(24px, 3vw, 40px); }
.editorial-hero > .wrap { position: relative; overflow: hidden; padding: clamp(28px, 5vw, 60px); border-radius: var(--r-lg); background: var(--mint); }
.editorial-hero > .wrap > * { position: relative; z-index: 1; }
.editorial-hero h1 { max-width: 18em; font-size: clamp(2rem, 4.2vw, 3.2rem); }
.editorial-lead { margin-top: 20px; max-width: 62ch; font-size: clamp(1.02rem, 1.25vw, 1.15rem); line-height: 1.65; }
.editorial-hero .button { margin-top: 28px; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 6px 10px; margin-bottom: 20px; color: var(--muted); font-size: 13.5px; }
.breadcrumbs a { color: var(--green-deep); font-weight: 500; text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs [aria-current] { color: var(--ink); }
.breadcrumbs [aria-hidden] { color: #a9b0c8; }
.article-meta { margin-top: 18px; color: var(--muted); font-size: 14px; }
.article-meta a { color: var(--green-deep); }
.article-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 56px; align-items: start; padding-block: clamp(40px, 5vw, 64px); }
.article-toc { position: sticky; top: 104px; display: grid; padding: 22px; border-radius: var(--r-md); background: var(--tint-2); font-size: 14px; }
.article-toc strong { margin-bottom: 8px; color: var(--ink); font-size: 14.5px; }
.article-toc a:not(.button) { padding: 6px 0; color: var(--muted); text-decoration: none; line-height: 1.35; }
.article-toc a:not(.button):hover { color: var(--green-deep); }
.article-toc .button { margin-top: 18px; min-height: 44px; font-size: 14.5px; }
.article-content { max-width: 72ch; font-size: 17.5px; line-height: 1.75; }
.article-content h2 { margin: 44px 0 14px; font-size: clamp(1.45rem, 2.4vw, 1.9rem); line-height: 1.2; }
.article-content h3 { margin: 26px 0 10px; }
.article-content p, .article-content li { margin-bottom: 14px; }
.article-content ul, .article-content ol { padding-left: 22px; }
.article-content li::marker { color: var(--green); }
.article-content a { color: var(--green-deep); text-underline-offset: 3px; }
.article-content table { width: 100%; margin: 24px 0; border-collapse: collapse; overflow: hidden; border-radius: var(--r-sm); font-size: 15px; }
.article-content th, .article-content td { padding: 10px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.article-content th { background: var(--mint); color: var(--ink); }
.article-cover { margin-bottom: 8px; }
.article-cover img { width: 100%; border-radius: var(--r-lg); box-shadow: var(--shadow); }
.article-cover figcaption { padding: 10px 0; color: var(--muted); font-size: 13px; text-align: center; }
.article-sources { margin-top: 44px; padding: 24px; border-radius: var(--r-md); background: var(--tint-2); font-size: 15.5px; }
.article-sources h2 { margin-top: 0; font-size: 1.25rem; }
.article-cta { margin-top: 48px; padding: clamp(26px, 4vw, 40px); border-radius: var(--r-lg); background: var(--gradient); color: rgba(255, 255, 255, .9); }
.article-cta h2 { margin: 0 0 10px; color: #fff; }
.article-cta .button { margin-top: 16px; background: #fff; color: var(--green-deep); }
.article-cta .button:hover { background: var(--yellow); color: var(--navy); }
.related-guides h2, .seo-sectors h2 { margin-bottom: 34px; }
.section-heading .eyebrow { margin-bottom: 14px; }
.seo-sectors { background: var(--mint); border-radius: clamp(32px, 5vw, 64px); margin-inline: clamp(0px, 1.5vw, 24px); }
.guide-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.guide-card a { display: flex; flex-direction: column; height: 100%; overflow: hidden; border-radius: var(--r-md); background: #fff; color: inherit; text-decoration: none; box-shadow: var(--shadow); transition: transform .25s var(--ease), box-shadow .25s; }
.guide-card a:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.guide-image { overflow: hidden; aspect-ratio: 16 / 10; background: var(--tint-2); }
.guide-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.guide-card a:hover .guide-image img { transform: scale(1.05); }
.guide-body { display: flex; flex-direction: column; flex: 1; padding: 20px 22px 24px; }
.guide-body .eyebrow { align-self: flex-start; margin-bottom: 10px; padding: 4px 12px; background: var(--tile-yellow); color: #7a5600; font-size: 12.5px; }
.guide-body h3 { font-size: 17.5px; font-weight: 700; line-height: 1.35; }
.guide-card a:hover h3 { color: var(--green-deep); }
.guide-body p { margin-top: 8px; color: var(--muted); font-size: 14.5px; line-height: 1.55; }
.guide-body .text-link { margin-top: auto; padding-top: 14px; font-size: 14px; }
.all-guides { margin-top: 40px; text-align: center; }
body > main.section.wrap { min-height: 70vh; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 20px; }

/* Responsive */
@media (max-width: 1200px) {
  /* Le menu fixed doit se placer dans la fenêtre, sans bloc contenant dû au flou. */
  .header { background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; }
  html.menu-open { overflow: hidden; }
  .menu-toggle { display: inline-block; }
  .menu-toggle, #navigation a { -webkit-tap-highlight-color: transparent; }
  #navigation { position: fixed; top: 78px; left: 0; right: 0; bottom: 0; display: none; flex-direction: column; align-items: stretch; gap: 4px; padding: 14px var(--gutter) max(40px, env(safe-area-inset-bottom)); background: #fff; overflow-y: auto; overscroll-behavior-y: contain; }
  #navigation.open { display: flex; }
  #navigation > * { flex-shrink: 0; }
  #navigation > a:not(.button) { height: auto; min-height: 48px; padding: 14px 16px; border-radius: var(--r-sm); font-size: 17px; white-space: normal; }
  #navigation > .button { margin: 20px 0 0; min-height: 54px; }
  .hero-grid, .application-grid { grid-template-columns: minmax(0, 1fr); }
  .numbered.four, .solution-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  body { font-size: 16px; }
  .head, .split, .controls-layout, .faq-inner, .closing-inner, .article-layout { grid-template-columns: minmax(0, 1fr); }
  .facts { grid-template-columns: minmax(0, 1fr); }
  .reel-frame { aspect-ratio: 4 / 3; }
  .numbered, .numbered.four, .equipment-grid, .guide-grid, .solution-list { grid-template-columns: minmax(0, 1fr); }
  .application .checklist.columns { grid-template-columns: minmax(0, 1fr); }
  .article-toc { position: static; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .header-inner { height: 68px; }
  #navigation { top: 68px; }
  .brand-tag { display: none; }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .actions .button { width: 100%; }
  .reel-bar { flex-direction: column; align-items: flex-start; gap: 8px; }
  .chips { gap: 8px; }
  .chips li { padding: 6px 12px; font-size: 13px; }
  .phone { transform: none; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation: none !important; }
}

/* Photographies liées au geste décrit ; les captures de l’application restent dans la démonstration. */
.control-photo { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--r-sm); margin-bottom: 24px; }
.equipment-visual > img { width: 100%; height: 100%; object-fit: cover; }
