/* ==========================================================================
   CAPPS — site public v3 (Spec 19) · système de design « document CAPPS » (Jet 3)
   Valeurs reprises des générateurs de maquettes (site3/travail/comp.py, pages.py, pages2.py, gen4.py).
   Sommaire : 1 jetons · 2 base · 3 typographie · 4 boutons, cartes, états · 5 en-tête · 6 sections
              7 facture et écran d'édition · 8 composants de pages · 9 formulaires · 10 pied, barre mobile
              11 visionneuse · 12 pages · 13 réactif · 14 RTL · 15 mouvement, impression
   ========================================================================== */

/* 0. Polices auto-hébergées (OFL 1.1, assets/fonts/*/OFL.txt) : Inter variable (latin), Noto Sans Arabic variable (arabe seul) */
@font-face { font-family: Inter; font-style: normal; font-weight: 100 900; font-display: swap;
    src: url("../fonts/inter/inter-latin-wght-normal.woff2") format("woff2-variations"), url("../fonts/inter/inter-latin-wght-normal.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+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Noto Sans Arabic"; font-style: normal; font-weight: 100 900; font-display: swap;
    src: url("../fonts/noto-sans-arabic/noto-sans-arabic-arabic-wght-normal.woff2") format("woff2-variations"), url("../fonts/noto-sans-arabic/noto-sans-arabic-arabic-wght-normal.woff2") format("woff2");
    unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }

/* 1. Jetons ---------------------------------------------------------------- */
:root {
    --ink: #0F1E36; --ink2: #53627A; --acc: #1F6E9C; --navy: #144B60; --app: #2378B5;
    --line: #E3EAF4; --bg: #F6FAFD; --bg2: #E4F1FA; --wt: #E3F0F9;
    --ok: #16A36A; --okbg: #E6F6EE; --oktx: #0B7048; --okdk: #0E7F52;
    --red: #E5484D; --redtx: #C8323A; --org: #E8743B; --orgbg: #FDEEE5; --orgtx: #A64A1C;
    --se: #1E2E47;
    --font: Inter, "Noto Sans Arabic", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    --r-card: 24px;
    --sh-card: 0 1px 2px rgba(15,30,54,.04), 0 22px 48px -24px rgba(15,30,54,.18);
    --sh-big: 0 1px 2px rgba(15,30,54,.04), 0 40px 80px -30px rgba(15,30,54,.30);
    --hdr: 88px;
    --sp: 136px;
    --gut: 20px;
    /* site v3, Lot 4 (D12) : surfaces et textes en jetons (clair ici, sombre plus bas) */
    --page: #fff; --surface-3: #EEF2F7; --tint-0: #F8FBFE; --tint-1: #EEF4FA; --tint-2: #E8F2F9;
    --ink-soft: #2A3A55; --ink3: #5F6880; --chip-tx: #3E4C63; --field-bd: #CFDAE7; --bd-acc: #B9D3E4; --bd-acc2: #9CC3DD;
    --btn: #1F6E9C; --navy-tx: #144B60; --inv: #0F1E36; --foot-bg: #0F1E36; --prose: #26354F; --pro-1: #F3F8FC; --pro-2: #EAF3FA;
    --hdr-bg: rgba(255,255,255,.86); --hdr-bd: rgba(227,234,244,.9); --badge-bd: #DCEFE4;
    --chip-err: #E4A3A6; --url-bd: #E1E6EE; --band-bd: #CFE3EF; --crumb: #A9BCCF;
    color-scheme: light;
    /* bandeau cookies (assets/css/capps_website/consentement.css) aux couleurs du logo */
    --brand: #1F6E9C; --brand-btn: #1F6E9C; --brand-soft: #EEF4FA; --text: #0F1E36; --muted: #53627A; --surface: #fff; --surface-2: #F1F5FA;
}
.cc-btn--choice:hover { background: var(--navy) !important; border-color: var(--navy-tx) !important; }

/* 2. Base ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--hdr) + 16px); }
body {
    margin: 0; background: var(--page); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.55;
    -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; font-feature-settings: "cv11", "ss01";
    overflow-x: hidden;
}
img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
p, h1, h2, h3, h4, dl, dd, ul, ol, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--acc); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }
.skip { position: absolute; inset-inline-start: 16px; top: -60px; z-index: 200; background: var(--inv); color: #fff; padding: 10px 16px; border-radius: 10px; font-weight: 700; }
.skip:focus { top: 12px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.v3-wait body { opacity: 0; }
.wrap { position: relative; width: min(1200px, 100% - 2 * var(--gut)); margin-inline: auto; }
.i { flex: none; }
.num { font-variant-numeric: tabular-nums; }

/* 3. Typographie ------------------------------------------------------------ */
.eb { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--acc); }
.eb::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: var(--btn); }
.x1 { font-weight: 800; font-size: clamp(38px, 5.6vw, 78px); letter-spacing: -.042em; line-height: .98; color: var(--ink); }
.x2 { font-weight: 800; font-size: clamp(32px, 3.9vw, 56px); line-height: 1.04; letter-spacing: -.036em; color: var(--ink); margin-top: 18px; }
.x3 { font-weight: 800; font-size: 24px; line-height: 1.2; letter-spacing: -.02em; color: var(--ink); }
.x1 em, .x2 em, .x3 em { font-style: normal; color: var(--acc); }
.ld { font-weight: 500; font-size: clamp(17px, 1.5vw, 21px); line-height: 1.55; color: var(--ink2); }
.tt { font-weight: 500; font-size: 16.5px; line-height: 1.6; color: var(--ink2); }
.sm { font-weight: 500; font-size: 14px; line-height: 1.5; color: var(--ink2); }
.fict { font-weight: 600; font-size: 14px; color: var(--ink2); }
.ctr { text-align: center; }
.ctr .eb { justify-content: center; }

/* 4. Boutons, cartes, états ------------------------------------------------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 58px; padding: 0 28px; border-radius: 14px; border: 0;
    font-weight: 700; font-size: 17px; letter-spacing: -.005em; white-space: nowrap; text-align: center; line-height: 1.2;
    transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, color .18s ease;
}
.btn--pri { background: var(--btn); color: #fff; box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 14px 30px -12px rgba(31,110,156,.75); }
.btn--pri:hover { background: #1A6290; transform: translateY(-1px); box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 18px 34px -12px rgba(31,110,156,.85); }
.btn--dk { background: var(--navy); color: #fff; box-shadow: 0 14px 30px -12px rgba(20,75,96,.7); }
.btn--sec { background: var(--surface); color: var(--navy-tx); box-shadow: inset 0 0 0 1.5px var(--bd-acc), 0 6px 18px -10px rgba(15,30,54,.25); }
.btn--sec:hover { box-shadow: inset 0 0 0 1.5px var(--acc), 0 10px 22px -12px rgba(15,30,54,.35); transform: translateY(-1px); }
.btn--gh { background: transparent; color: var(--acc); padding: 6px; min-height: 44px; margin-inline-start: -6px; }
.btn--gh:hover { color: var(--navy-tx); }
.btn--gh:hover .i { transform: translateX(3px); }
.btn--gh .i { transition: transform .18s ease; }
.btn--s { min-height: 44px; padding: 0 18px; font-size: 15px; border-radius: 11px; }
.btn--full { width: 100%; }
.btns { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--sh-card); }
.tile {
    width: 56px; height: 56px; border-radius: 16px; display: inline-flex; align-items: center; justify-content: center; flex: none; color: #fff;
    background: linear-gradient(160deg, #6CBDF0, #1F6E9C 70%, #144B60);
    box-shadow: 0 10px 22px -8px rgba(20,75,96,.55), inset 0 1px 0 rgba(255,255,255,.35);
}
.tile .i { width: 46%; height: 46%; stroke-width: 2.2; }
.tile--m { width: 50px; height: 50px; border-radius: 15px; }
.tile--s { width: 44px; height: 44px; border-radius: 13px; }
.st { display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; font-weight: 700; font-size: 14px; padding: 7px 13px; white-space: nowrap; line-height: 1.2; }
.st i { width: 8px; height: 8px; border-radius: 50%; display: block; flex: none; }
.st--ok { background: var(--okbg); color: var(--oktx); } .st--ok i { background: var(--ok); }
.st--pd { background: var(--okdk); color: #fff; }
.st--se { background: var(--se); color: #fff; }
.st--rl { background: var(--orgbg); color: var(--orgtx); } .st--rl i { background: var(--org); }
.st--br { background: var(--surface-3); color: var(--chip-tx); } .st--br i { background: #8A97AB; }
.st--navy { background: var(--navy); color: #fff; font-size: 13.5px; }
.ck { width: 22px; height: 22px; border-radius: 50%; background: var(--okbg); color: var(--oktx); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.ck .i { stroke-width: 3; }
.checks li { display: flex; gap: 12px; align-items: flex-start; margin-top: 14px; font-weight: 500; font-size: 16.5px; line-height: 1.5; color: var(--ink); }
.checks .ck { margin-top: 1px; }
.trial { display: flex; align-items: center; gap: 10px; margin-top: 16px; font-weight: 600; font-size: 15.5px; color: var(--ink); }
.trial .ck { width: 26px; height: 26px; }
.ann { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 12.5px; color: #fff; background: var(--inv); border-radius: 999px; padding: 6px 12px 6px 6px; white-space: nowrap; box-shadow: 0 8px 20px -8px rgba(15,30,54,.5); }
.ann b { width: 22px; height: 22px; border-radius: 50%; background: var(--surface); color: var(--ink); display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 12px; }
.ann .i { stroke-width: 3; }
.flip { transition: transform .18s ease; }

/* 5. En-tête --------------------------------------------------------------- */
.hdr { position: sticky; top: 0; z-index: 60; background: var(--hdr-bg); border-bottom: 1px solid var(--hdr-bd); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); transition: box-shadow .2s ease; }
.hdr.is-scrolled { box-shadow: 0 10px 30px -18px rgba(15,30,54,.35); }
.hdr-in { height: var(--hdr); display: flex; align-items: center; gap: 30px; }
.logo { display: block; flex: none; }
.logo img { height: 60px; width: auto; }
.hdr-nav { display: flex; gap: 28px; margin-inline-start: 18px; font-weight: 600; font-size: 15.5px; color: var(--ink-soft); white-space: nowrap; }
.hdr-nav a { position: relative; padding: 8px 0; }
.hdr-nav a:hover { color: var(--acc); }
.hdr-nav a[aria-current] { color: var(--acc); }
.hdr-nav a[aria-current]::after { content: ""; position: absolute; inset-inline: 0; bottom: calc((var(--hdr) - 38px) / -2); height: 2px; background: var(--btn); border-radius: 2px; }
.hdr-sp { flex: 1; }
.lang { display: flex; background: var(--surface-2); border-radius: 10px; padding: 3px; font-weight: 700; font-size: 12.5px; color: var(--ink2); }
.lang button { border: 0; background: none; padding: 6px 9px; border-radius: 8px; color: inherit; min-width: 34px; min-height: 30px; }
.lang button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(15,30,54,.12); }
.hdr-login { font-weight: 700; font-size: 15.5px; color: var(--ink-soft); white-space: nowrap; }
.hdr-login:hover { color: var(--acc); }
.burger { display: none; width: 44px; height: 44px; border-radius: 11px; border: 1px solid var(--line); background: var(--surface); align-items: center; justify-content: center; color: var(--ink); flex: none; }
.burger .b-close, .burger[aria-expanded="true"] .b-open { display: none; }
.burger[aria-expanded="true"] .b-close { display: block; }
.tiroir { border-top: 1px solid var(--line); background: var(--surface); max-height: calc(100vh - var(--hdr)); overflow: auto; box-shadow: 0 30px 40px -30px rgba(15,30,54,.4); }
.tiroir-nav { display: grid; gap: 2px; padding: 14px 0; }
.tiroir-nav a { padding: 14px 4px; font-weight: 700; font-size: 18px; border-bottom: 1px solid var(--line); }
.tiroir-nav a[aria-current] { color: var(--acc); }
.tiroir-bas { display: flex; gap: 14px; align-items: center; justify-content: space-between; padding: 8px 0 22px; flex-wrap: wrap; }
.show-m { display: none; }

/* 6. Sections -------------------------------------------------------------- */
section { position: relative; }
.sp { padding: var(--sp) 0; }
.tint { background: linear-gradient(120deg, var(--page) 0%, var(--bg) 45%, var(--bg2) 100%); overflow: hidden; }
.soft { background: var(--bg); overflow: hidden; }
.wv { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.sec-h { max-width: 1100px; }
.sec-h .ld { margin-top: 16px; max-width: 700px; }
.ctr.sec-h { margin-inline: auto; }
.ctr.sec-h .ld { margin-inline: auto; }
.row-h { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }

/* 7. Facture (format des modèles CAPPS, 684 × 968) et écran d'édition -------- */
.fit { position: relative; width: min(100%, var(--mw)); direction: ltr; flex: none; }
.fit > .doc, .fit > .ed { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
.fit-doc { aspect-ratio: 684 / var(--h); overflow: hidden; border-radius: 10px; background: #FDFCFE;
    box-shadow: 0 30px 70px rgba(40,20,70,.18), 0 4px 14px rgba(40,20,70,.08); }
.fit-doc > .doc { transform: scale(var(--s)); }
.fit-zoom { aspect-ratio: var(--zw) / var(--zh); overflow: hidden; border-radius: 20px; background: var(--surface); box-shadow: 0 26px 60px -14px rgba(15,30,54,.30), 0 0 0 1px var(--line); }
.fit-zoom > .doc { transform: scale(var(--s)) translate(var(--zx), var(--zy)); }
.fit-ed { aspect-ratio: 688 / 800; }
.fit-ed > .ed { transform: scale(var(--s)); }
.doc { width: 684px; height: 968px; background: #FDFCFE; font-family: Inter, system-ui, sans-serif; color: #1B2135; overflow: hidden; line-height: normal; letter-spacing: 0; transition: --acc .3s; }
.doc-wv { position: absolute; left: 0; top: 0; width: 684px; height: 968px; }
.doc > div { position: absolute; }
.d-hd { left: 34px; top: 22px; right: 34px; display: flex; align-items: flex-start; gap: 16px; }
.d-lg { position: relative; width: 66px; height: 66px; border-radius: 14px; border: 2px dashed var(--acc); display: flex; align-items: center; justify-content: center; font: 800 10.5px/1.15 Inter, sans-serif; color: var(--acc); text-align: center; letter-spacing: .04em; background: var(--surface); overflow: hidden; }
.d-lg.has-img { border-style: solid; border-color: #E3E6EE; }
.d-lg.has-img span { display: none; }
.d-lgimg { position: absolute; inset: 4px; width: calc(100% - 8px); height: calc(100% - 8px); object-fit: contain; }
.d-co { border-left: 3px solid var(--acc); padding-left: 12px; }
.d-co b { display: block; font: 800 13.5px Inter, sans-serif; color: var(--acc); letter-spacing: .03em; }
.d-chip { display: inline-block; font: 600 8.5px Inter, sans-serif; color: #36405A; background: #F3F4F8; border: 1px solid #E3E6EE; border-radius: 5px; padding: 4px 7px; margin: 5px 5px 0 0; }
.d-rule { left: 34px; right: 34px; top: 96px; height: 2px; background: var(--btn); opacity: .75; }
.d-ttl { left: 38px; top: 116px; font: 800 26px Inter, sans-serif; color: var(--acc); letter-spacing: -.01em; }
.d-sub { left: 38px; top: 148px; font: 600 9.5px Inter, sans-serif; color: #5F6880; letter-spacing: .14em; }
.d-kv { left: 38px; font: 500 8.5px Inter, sans-serif; color: #5F6880; letter-spacing: .06em; }
.d-kv b { position: absolute; left: 96px; color: #1B2135; font-weight: 700; letter-spacing: 0; white-space: nowrap; }
.d-ech { left: 38px; top: 214px; width: 290px; height: 24px; background: #FFF2F2; border-left: 3px solid var(--red); font: 600 8.5px Inter, sans-serif; color: var(--redtx); letter-spacing: .06em; padding: 7px 10px; }
.d-ech b { position: absolute; left: 106px; top: 7px; }
.d-dest { left: 354px; top: 114px; width: 290px; height: 172px; background: var(--surface); border-radius: 9px; box-shadow: 0 8px 22px rgba(30,20,60,.16); overflow: hidden; }
.d-dest .h { background: var(--btn); color: #fff; font: 800 9.5px Inter, sans-serif; letter-spacing: .08em; padding: 9px 14px; }
.d-dest .n { font: 800 15px Inter, sans-serif; padding: 13px 14px 4px; }
.d-dest .a { font: 500 9.5px/1.45 Inter, sans-serif; color: #3A4257; padding: 0 14px; }
.d-dest .ice { margin: 12px 14px 0; border-top: 1px solid #ECEDF2; padding-top: 9px; font: 800 9.5px Inter, sans-serif; }
.d-dest .ice i { font-style: normal; color: var(--acc); border-left: 3px solid var(--acc); padding-left: 7px; margin-right: 5px; }
.d-tb { left: 58px; top: 334px; width: 570px; background: var(--surface); border-radius: 6px; box-shadow: 0 10px 26px rgba(30,20,60,.14); overflow: hidden; }
.d-tb .r { display: grid; grid-template-columns: 1fr 46px 90px 80px 96px; align-items: center; font: 500 9.5px Inter, sans-serif; color: #3A4257; height: 34px; border-bottom: 1px solid #EFEFF4; padding: 0 12px; }
.d-tb .r.h { background: var(--btn); color: #fff; font: 800 9px Inter, sans-serif; letter-spacing: .06em; }
.d-tb .r span:nth-child(n+2) { text-align: right; }
.d-tb .r b { font-weight: 800; color: #1B2135; }
.d-tb .tv { display: inline-block; background: #EEEEF2; border-radius: 4px; padding: 2px 5px; font: 700 7.5px Inter, sans-serif; color: #555; font-style: normal; }
.d-tx { left: 58px; top: 494px; font: 700 8.5px Inter, sans-serif; color: var(--acc); letter-spacing: .1em; }
.d-txl { left: 58px; top: 516px; width: 266px; height: 26px; border-left: 3px solid var(--acc); background: #F6F5F9; font: 500 8.5px Inter, sans-serif; color: #3A4257; padding: 8px 12px; }
.d-txl b { float: right; font-weight: 600; }
.d-tot { left: 360px; top: 496px; width: 266px; background: var(--surface); border-radius: 10px; box-shadow: 0 12px 30px rgba(30,20,60,.18); overflow: hidden; }
.d-tot .l { display: flex; justify-content: space-between; font: 600 8.5px Inter, sans-serif; color: #5F6880; padding: 10px 16px 0; letter-spacing: .04em; }
.d-tot .l b { color: #1B2135; }
.d-tot .net { margin-top: 16px; background: var(--btn); color: #fff; display: flex; justify-content: space-between; align-items: center; padding: 16px; font: 800 12px Inter, sans-serif; letter-spacing: .06em; }
.d-tot .net b { font-size: 15px; letter-spacing: 0; }
.d-ft { left: 50px; right: 50px; top: 918px; height: 20px; background: #F6F5F9; border-radius: 4px; text-align: center; font: 600 7.5px/20px Inter, sans-serif; color: #1B2135; }
.d-ft i { font-style: normal; color: var(--acc); }
.d-fic { right: 40px; top: 946px; font: 600 9px Inter, sans-serif; color: #5F6880; }

.ed { width: 688px; height: 800px; background: #F4F8FF; border-radius: 26px; border: 1px solid var(--line); box-shadow: 0 40px 90px rgba(15,30,54,.20), 0 6px 18px rgba(15,30,54,.08); overflow: hidden; font-family: Inter, sans-serif; color: var(--ink); }
.ed-top { position: absolute; left: 24px; top: 22px; width: 640px; height: 92px; border-radius: 16px; background: linear-gradient(100deg, #2378B5, #1F6E9C); display: flex; align-items: center; padding: 0 22px; gap: 18px; box-shadow: 0 10px 24px rgba(35,120,181,.25); color: #fff; }
.ed-ico { width: 52px; height: 52px; border-radius: 12px; background: rgba(255,255,255,.22); display: flex; align-items: center; justify-content: center; }
.ed-k { font: 700 15px Inter, sans-serif; }
.ed-ref { margin-left: 18px; font: 800 25px Inter, sans-serif; }
.ed-ref small { display: block; font: 700 10.5px Inter, sans-serif; letter-spacing: .1em; }
.ed-ok { margin-left: auto; background: var(--okbg); color: var(--oktx); border-radius: 999px; padding: 10px 16px; font: 800 15px Inter, sans-serif; display: flex; align-items: center; gap: 8px; }
.ed-ok i { width: 9px; height: 9px; border-radius: 50%; background: var(--ok); }
.ed-card { position: absolute; left: 24px; top: 132px; width: 640px; bottom: 24px; background: var(--surface); border-radius: 16px; border: 1px solid var(--line); padding: 24px 26px; }
.ed-h { font: 800 16px Inter, sans-serif; border-left: 3px solid var(--app); padding-left: 10px; }
.ed-seg { display: flex; margin: 18px 0 22px; width: 300px; border-radius: 6px; overflow: hidden; font: 700 15px Inter, sans-serif; }
.ed-seg span { flex: 1; background: #E9EDF3; color: var(--ink2); padding: 11px; text-align: center; }
.ed-seg .on { background: linear-gradient(100deg, #2378B5, #1F6E9C); color: #fff; }
.ed-g { display: grid; gap: 20px; }
.ed-row { display: flex; gap: 16px; }
.ed-f { border: 1px solid #CBD3DE; border-radius: 6px; height: 46px; position: relative; background: var(--surface); padding: 0 14px; display: flex; align-items: center; font: 500 15px Inter, sans-serif; color: #1B2135; white-space: nowrap; overflow: hidden; }
.ed-f i { width: 7px; height: 7px; background: #D9534F; border-radius: 1px; display: inline-block; margin-right: 7px; flex: none; }
.ed-l { position: absolute; top: -9px; left: 10px; background: var(--surface); padding: 0 5px; font: 500 11.5px Inter, sans-serif; color: #5F6880; }
.ed-f { overflow: visible; }
.ed-btns { position: absolute; left: 26px; right: 26px; bottom: 22px; display: flex; gap: 14px; font: 800 14px Inter, sans-serif; letter-spacing: .06em; }
.ed-btns span { flex: 1; background: linear-gradient(100deg, #2378B5, #1F6E9C); color: #fff; border-radius: 8px; padding: 15px; text-align: center; }
.ed-btns .dk { background: var(--se); }
.ed-cursor { animation: v3-blink 1s steps(1) infinite; border-right: 2px solid var(--app); margin-left: 1px; height: 18px; }
@keyframes v3-blink { 50% { border-color: transparent; } }

/* Badge « Conçu pour le Maroc » */
.badge { display: inline-flex; align-items: center; gap: 18px; background: var(--surface); border: 1px solid var(--badge-bd); border-radius: 22px; padding: 19px 27px 19px 19px; box-shadow: 0 18px 44px rgba(15,30,54,.16); }
.badge-ck { width: 61px; height: 61px; border-radius: 50%; background: var(--ok); color: #fff; display: flex; align-items: center; justify-content: center; flex: none; box-shadow: 0 6px 16px rgba(22,163,106,.35); }
.badge-ck .i { width: 62%; height: 62%; stroke-width: 3.2; }
.badge-t b { display: block; font-weight: 800; font-size: 32px; letter-spacing: -.015em; line-height: 1.15; white-space: nowrap; }
.badge-ids { display: block; font-weight: 700; font-size: 18px; color: var(--okdk); letter-spacing: .12em; margin-top: 4px; white-space: nowrap; direction: ltr; text-align: start; }
.badge--s { gap: 12px; padding: 12px 16px 12px 12px; border-radius: 16px; }
.badge--s .badge-ck { width: 38px; height: 38px; }
.badge--s .badge-t b { font-size: 19px; }
.badge--s .badge-ids { font-size: 11px; }

/* Carte « Payer en ligne » */
.paycard { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 20px 22px; width: 300px; box-shadow: 0 26px 60px -18px rgba(15,30,54,.35); }
.paycard-ref { font-weight: 700; font-size: 12px; letter-spacing: .12em; color: var(--ink2); white-space: nowrap; }
.paycard-btn { min-height: 48px; font-size: 15.5px; margin-top: 12px; }
.paycard .sm { font-size: 13px; margin-top: 10px; }
.paycard p:last-child { margin-top: 10px; }

/* 8. Composants de pages --------------------------------------------------- */
/* Héros de l'accueil */
.hero { padding: 60px 0 0; }
.hero .wrap { text-align: center; }
.hero .x1 { margin-top: 20px; }
.hero .ld { margin: 22px auto 0; max-width: 820px; font-size: clamp(17px, 1.6vw, 22px); }
.hero .btns { justify-content: center; }
.hero .trial { justify-content: center; }
.hero-ex { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; font-weight: 600; font-size: 14px; color: var(--ink2); background: none; border: 0; padding: 6px; min-height: 44px; }
.hero-ex:hover { color: var(--acc); }
.hero-ex .i { color: var(--acc); }
.stage { position: relative; width: min(588px, 100%); margin: 46px auto 0; }
.stage .fit-doc { margin-inline: auto; }
.stage .badge { position: absolute; left: -150px; top: 61%; }
.stage .paycard { position: absolute; left: calc(100% - 70px); top: 70px; }
.stage .fict { text-align: right; margin-top: 14px; padding-bottom: 10px; }
.hero-m { display: none; }

/* Du devis au paiement */
.flow { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 60px; }
.flow--3 { grid-template-columns: repeat(3, 1fr); }
.flow::before { content: ""; position: absolute; inset-inline: 60px; top: 62px; height: 3px; border-radius: 2px; background: linear-gradient(90deg, #6CBDF0, var(--acc), var(--navy)); }
.flow-c { position: relative; padding: 32px; display: flex; flex-direction: column; }
.flow-hd { display: flex; align-items: center; gap: 14px; }
.flow-step { font-weight: 700; font-size: 12.5px; letter-spacing: .14em; color: var(--acc); text-transform: uppercase; }
.flow-t { font-weight: 600; font-size: 18px; line-height: 1.45; color: var(--ink); margin-top: 22px; flex: 1; }
.flow-v { margin-top: 18px; padding-top: 18px; border-top: 1px dashed var(--line); display: flex; flex-wrap: wrap; gap: 10px; align-items: center; color: var(--acc); }

/* Grille de fonctionnalités */
.feats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: 56px; }
.feat { padding: 30px; transition: transform .2s ease, box-shadow .2s ease; }
.feat:hover { transform: translateY(-3px); box-shadow: 0 1px 2px rgba(15,30,54,.04), 0 30px 56px -26px rgba(15,30,54,.28); }
.feat h3 { font-size: 20px; margin-top: 20px; }
.feat p { margin-top: 8px; font-size: 15.5px; }

/* Fondateur */
.founder { display: grid; grid-template-columns: 360px 1fr; gap: 80px; align-items: center; }
.founder-ph { position: relative; width: 300px; }
.founder-ph picture { border-radius: 28px; overflow: hidden; background: var(--surface-3); box-shadow: 0 30px 60px -24px rgba(15,30,54,.35); }
.founder-ph img { width: 300px; height: 380px; object-fit: cover; object-position: 50% 25%; }
.founder-name { position: absolute; inset-inline-start: 20px; bottom: -26px; padding: 14px 18px; border-radius: 16px; }
.founder-name b { display: block; font-weight: 800; font-size: 17px; }
.founder-name .sm { font-size: 13.5px; }
.founder-txt .x2 { font-size: clamp(30px, 3.2vw, 46px); }
.founder-txt .ld { margin-top: 16px; }
.facts { margin: 22px 0 14px; }
.facts > div { display: flex; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); }
.facts dt { width: 110px; flex: none; font-weight: 700; font-size: 12.5px; letter-spacing: .1em; color: var(--ink2); text-transform: uppercase; padding-top: 2px; }
.facts dd { font-weight: 600; font-size: 15.5px; line-height: 1.45; }
.facts a:hover { color: var(--acc); }

/* Comment ça marche */
.how-g { display: grid; grid-template-columns: 400px 1fr; gap: 80px; align-items: center; margin-top: 44px; }
.how-h .x2 { font-size: clamp(30px, 3.4vw, 48px); max-width: 960px; }
.steps li { display: flex; gap: 18px; align-items: flex-start; padding: 22px 0; border-top: 1px solid var(--line); }
.steps .n { width: 52px; height: 52px; border-radius: 50%; background: var(--surface); border: 2px solid var(--acc); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 20px; color: var(--acc); flex: none; }
.steps h3 { font-size: 21px; }
.steps .tt { margin-top: 4px; }
.how-v { position: relative; min-height: 580px; }
.how-v .fit-ed { position: absolute; inset-inline-start: 0; top: 40px; }
.how-v .fit-doc { position: absolute; inset-inline-start: 326px; top: 0; }
.how-v .ann { position: absolute; inset-inline-start: 250px; top: 250px; z-index: 3; }
.how-v .fict { position: absolute; inset-inline-start: 326px; top: 552px; }

/* Modèles (accueil) */
.models { display: grid; grid-template-columns: 1fr 470px; gap: 70px; align-items: center; }
.fan { position: relative; height: 700px; }
.fan .fit-doc { position: absolute; }
.fan .f1 { left: 0; top: 110px; transform: rotate(-7deg); }
.fan .f2 { left: 318px; top: 110px; transform: rotate(7deg); }
.fan .f3 { left: 125px; top: 50px; z-index: 2; }
.fan .fict { position: absolute; left: 125px; top: 660px; }
.sw { display: flex; gap: 14px; margin-top: 26px; }
.sw button { width: 30px; height: 30px; border-radius: 50%; border: 0; padding: 0; background: var(--c); box-shadow: 0 0 0 3px var(--page), 0 0 0 4px var(--line); }
.sw button[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--page), 0 0 0 5px var(--c); }
.ids { display: flex; gap: 8px; margin-top: 22px; flex-wrap: wrap; align-items: center; }
.ids > span:first-child { font-weight: 700; font-size: 14px; }
.ids .st { font-size: 12.5px; padding: 5px 11px; }
.pdfs { display: grid; gap: 12px; margin-top: 22px; }
.pdfrow { display: flex; align-items: center; gap: 16px; padding: 16px 18px; border-radius: 16px; box-shadow: 0 10px 26px -18px rgba(15,30,54,.25); width: 100%; text-align: start; transition: box-shadow .2s ease, transform .2s ease; }
.pdfrow:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -18px rgba(15,30,54,.35); }
.pdf-ic { width: 44px; height: 52px; border-radius: 9px; background: var(--tint-1); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; flex: none; position: relative; color: var(--acc); }
.pdf-ic::after { content: "PDF"; position: absolute; bottom: -6px; inset-inline-end: -8px; font-weight: 800; font-size: 9.5px; background: var(--navy); color: #fff; border-radius: 5px; padding: 2px 5px; }
.pdfrow-t { flex: 1; }
.pdfrow-t b { display: block; font-weight: 700; font-size: 16px; }
.pdfrow-t .sm { font-size: 13.5px; }
.pdf-dl { width: 42px; height: 42px; border-radius: 12px; background: var(--tint-1); display: flex; align-items: center; justify-content: center; color: var(--acc); flex: none; }

/* Offres */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 72px; align-items: stretch; }
.plan { position: relative; padding: 38px; border-radius: 28px; display: flex; flex-direction: column; }
.plan--rec { box-shadow: 0 0 0 2px var(--acc), 0 40px 80px -30px rgba(31,110,156,.45); border-color: transparent; }
.plan-rec { position: absolute; top: -16px; inset-inline-start: 36px; background: var(--btn); color: #fff; font-weight: 700; font-size: 13px; padding: 7px 14px; border-radius: 999px; box-shadow: 0 8px 18px -6px rgba(31,110,156,.6); }
.plan-tg { margin-top: 6px; min-height: 42px; }
.price { display: flex; gap: 10px; align-items: baseline; margin-top: 22px; flex-wrap: wrap; }
.price-n { font-weight: 800; font-size: 58px; letter-spacing: -.04em; line-height: 1; }
.price-cur { font-weight: 700; font-size: 17px; }
.price-per { font-size: 14px; color: var(--ink2); font-weight: 500; }
.price-na { font-weight: 800; font-size: 26px; letter-spacing: -.02em; }
.price-ttc { margin-top: 6px; font-weight: 600; font-size: 14px; color: var(--ink2); }
.plan-trial { display: flex; gap: 8px; align-items: flex-start; margin-top: 14px; font-weight: 600; font-size: 13.5px; color: var(--oktx); background: var(--okbg); border-radius: 10px; padding: 9px 12px; }
.plan-trial .i { stroke-width: 3; margin-top: 2px; }
.plan-li { border-top: 1px solid var(--line); margin-top: 22px; padding-top: 4px; }
.plan-li li { font-size: 15.5px; margin-top: 13px; }
.plan-plus { font-weight: 700; font-size: 12px; letter-spacing: .12em; color: var(--acc); margin-top: 22px; text-transform: uppercase; }
.plan-plus + .plan-li { border: 0; margin-top: 0; padding: 0; }
.plan-sp { flex: 1; min-height: 26px; }
.plans-cmi { display: flex; justify-content: center; align-items: center; gap: 10px; margin-top: 30px; font-weight: 600; font-size: 15.5px; color: var(--ink); text-align: center; }
.plans-cmi .i { color: var(--acc); }
.plans-note { display: flex; justify-content: center; align-items: center; gap: 24px; margin-top: 14px; flex-wrap: wrap; text-align: center; }
.plans-m { display: none; }
.toggle { display: inline-flex; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 5px; gap: 4px; box-shadow: 0 6px 18px -10px rgba(15,30,54,.25); margin-top: 30px; }
.toggle button { border: 0; background: none; font-weight: 700; font-size: 15px; color: var(--ink); padding: 10px 20px; border-radius: 10px; min-height: 44px; transition: background-color .2s ease, color .2s ease; }
.toggle button[aria-pressed="true"] { background: var(--btn); color: #fff; }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: 420px 1fr; gap: 80px; align-items: start; }
.faq-lead { margin-top: 18px; }
.faq-side .btn--gh { margin-top: 22px; }
.faq { padding: 6px 0; overflow: hidden; }
.faq-it { border-top: 1px solid var(--line); }
.faq-it:first-child { border-top: 0; }
.faq-it summary { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 26px 30px; cursor: pointer; list-style: none; font-weight: 700; font-size: 19px; letter-spacing: -.01em; }
.faq-it summary::-webkit-details-marker { display: none; }
.faq-it summary:hover .pm { background: var(--tint-2); }
.pm { width: 34px; height: 34px; border-radius: 50%; background: var(--tint-1); color: var(--acc); display: flex; align-items: center; justify-content: center; flex: none; transition: background-color .2s ease, transform .3s ease; }
.pm-m, .faq-it[open] .pm-p { display: none; }
.faq-it[open] .pm-m { display: block; }
.faq-a { padding: 0 30px 26px; margin-top: -14px; }
.faq-a p { font-weight: 500; font-size: 16.5px; line-height: 1.6; color: var(--ink2); max-width: 680px; }
.faq-renvoi { margin-top: 18px; }

/* Bandeau final */
.final-sec { padding: 40px 0 136px; }
.final { position: relative; overflow: hidden; border-radius: 36px; padding: 72px 80px; min-height: 520px; display: grid; grid-template-columns: 1fr 440px; gap: 30px; align-items: center; border: 1px solid var(--line); box-shadow: var(--sh-card); }
.final-txt { position: relative; }
.final-acc { font-weight: 800; font-size: 30px; letter-spacing: -.02em; color: var(--navy-tx); margin-bottom: 16px; }
.final-h { font-size: clamp(30px, 3vw, 42px); }
.final .ld { margin-top: 18px; }
.final .btns { margin-top: 30px; }
.slogan { font-weight: 800; font-size: 22px; margin-top: 28px; letter-spacing: -.01em; }
.slogan em { font-style: normal; color: var(--acc); }
.final-vis { position: relative; height: 400px; }
.final-vis .z-dest { position: absolute; inset-inline-end: 30px; top: 0; }
.final-vis .z-net { position: absolute; inset-inline-end: 0; top: 198px; }
.final-vis .fict { position: absolute; inset-inline-start: 0; top: 400px; font-size: 14px; }

/* Cartes de contact */
.ccard { display: flex; align-items: center; gap: 16px; padding: 18px 22px; border-radius: 20px; transition: transform .2s ease, box-shadow .2s ease; }
.ccard:hover { transform: translateY(-2px); box-shadow: 0 1px 2px rgba(15,30,54,.04), 0 26px 50px -24px rgba(15,30,54,.28); }
.ccard-i { width: 46px; height: 46px; border-radius: 14px; background: var(--tint-1); color: var(--acc); display: flex; align-items: center; justify-content: center; flex: none; }
.ccard b { display: block; font-weight: 700; font-size: 16.5px; }
.ccard .sm { display: block; }
.ccards { display: grid; gap: 12px; }

/* 9. Formulaires ------------------------------------------------------------ */
.form { padding: 40px; border-radius: 28px; box-shadow: var(--sh-big); }
.form-h { font-size: 28px; }
.form > .sm { margin-top: 8px; }
.form-g { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 28px; }
.fld { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.fld--full { grid-column: 1 / -1; }
.fld label { font-weight: 700; font-size: 13.5px; color: var(--ink); }
.fld small { font-weight: 500; color: var(--ink2); font-size: 13px; }
.in { width: 100%; min-height: 52px; border: 1px solid var(--field-bd); border-radius: 12px; background: var(--surface); padding: 12px 16px; font: 500 15.5px var(--font); color: var(--ink); transition: border-color .2s ease, box-shadow .2s ease; }
.in::placeholder { color: #66748B; }
textarea.in { resize: vertical; min-height: 130px; line-height: 1.5; }
.in:focus { outline: none; border-color: var(--bd-acc2); box-shadow: 0 0 0 4px rgba(31,110,156,.12); }
.in[aria-invalid="true"] { border-color: var(--redtx); box-shadow: 0 0 0 4px rgba(200,50,58,.10); }
.in-tel { display: flex; align-items: stretch; }
.in-tel span { display: flex; align-items: center; padding: 0 12px; border: 1px solid var(--field-bd); border-inline-end: 0; border-radius: 12px 0 0 12px; background: var(--tint-0); font-weight: 600; color: var(--ink2); }
.in-tel .in { border-radius: 0 12px 12px 0; }
[dir="rtl"] .in-tel span { border-radius: 0 12px 12px 0; }
[dir="rtl"] .in-tel .in { border-radius: 12px 0 0 12px; }
.chips-f { border: 0; padding: 0; margin: 20px 0 0; min-width: 0; }
.chips-f legend { font-weight: 700; font-size: 13.5px; color: var(--ink); padding: 0; margin-bottom: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chips label { display: inline-flex; align-items: center; min-height: 36px; font-weight: 600; font-size: 13px; color: var(--chip-tx); background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; cursor: pointer; transition: background-color .15s ease, border-color .15s ease; }
.chips label:hover { border-color: var(--bd-acc2); }
.chips input:checked + label { background: var(--tint-2); border-color: var(--bd-acc2); color: var(--navy-tx); box-shadow: inset 0 0 0 1px var(--bd-acc2); }
.chips input:focus-visible + label { outline: 3px solid var(--acc); outline-offset: 2px; }
.chips-f[aria-invalid="true"] label { border-color: var(--chip-err); }
.chips-f .errt { margin-top: 8px; }
select.in { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%2353627A' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-inline-end: 42px; }
[dir="rtl"] select.in { background-position: left 14px center; }
.fld-ck { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: flex-start; width: 100%; }
.fld-ck input { flex: 0 0 22px; }
.fld-ck label { flex: 1 1 0; min-width: 0; max-width: none; }
.fld-ck--opt { margin-top: 20px; }
.fld-ck input { appearance: none; -webkit-appearance: none; width: 22px; height: 22px; border-radius: 6px; border: 2px solid #8C9AAE; background: var(--surface); margin: 1px 0 0; cursor: pointer; display: grid; place-content: center; transition: background-color .15s ease, border-color .15s ease; }
.fld-ck input:checked { background: var(--btn); border-color: var(--acc); }
.fld-ck input:checked::after { content: ""; width: 11px; height: 6px; border: solid #fff; border-width: 0 0 2.5px 2.5px; transform: translateY(-1px) rotate(-45deg); }
.fld-ck input[aria-invalid="true"] { border-color: var(--redtx); box-shadow: 0 0 0 4px rgba(200,50,58,.12); }
.fld-ck label { font-weight: 500; font-size: 14px; line-height: 1.5; color: var(--ink); cursor: pointer; }
.errt { display: flex; gap: 8px; align-items: center; font-weight: 600; font-size: 13px; color: var(--redtx); }
.form .btn--full { margin-top: 22px; }
.form .btn[disabled] { opacity: .7; cursor: progress; }
.form-msg { margin-top: 14px; font-weight: 600; font-size: 14px; color: var(--redtx); }
.form-law { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); font-weight: 500; font-size: 12.5px; line-height: 1.6; color: var(--ink2); }
.form-law b { color: var(--ink); }
.form-law a { color: var(--acc); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.form-ok { display: flex; gap: 14px; align-items: center; margin-top: 18px; background: var(--okbg); border-radius: 16px; padding: 16px 18px; font-weight: 600; font-size: 14.5px; line-height: 1.45; color: var(--oktx); }
.form-ok-i { width: 34px; height: 34px; border-radius: 50%; background: var(--okdk); color: #fff; display: flex; align-items: center; justify-content: center; flex: none; }
.form-ok-i .i { stroke-width: 3; }
.form.is-sent .form-g, .form.is-sent .fld-ck, .form.is-sent .chips-f, .form.is-sent > .btn, .form.is-sent .stars { display: none; }

/* 10. Pied de page, barre mobile ------------------------------------------- */
.foot { background: var(--foot-bg); color: #C9D4E3; }
.foot a:hover { color: #fff; }
.foot-grid { padding: 88px 0 0; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1.2fr; gap: 40px; }
.lchip { display: inline-block; background: #fff; border-radius: 20px; padding: 14px 18px; align-self: flex-start; }
.lchip img { height: 54px; width: auto; }
.foot-slogan { font-weight: 800; font-size: 21px; color: #fff; margin-top: 26px; letter-spacing: -.02em; }
.foot-slogan b { color: #E4F1FA; font-weight: 800; }
.foot-tag { font-weight: 500; font-size: 15px; line-height: 1.6; margin-top: 12px; max-width: 300px; }
.foot-col { display: flex; flex-direction: column; gap: 12px; font-weight: 500; font-size: 15px; align-items: flex-start; }
.foot-h { font-weight: 700; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: #fff; margin-bottom: 6px; }
.foot .foot-cookies { background: none; border: 0; padding: 0; color: #C9D4E3; font: 500 15px var(--font); text-align: start; }
.foot .foot-cookies:hover { color: #fff; }
.foot-bot { border-top: 1px solid #24344F; margin-top: 64px; padding: 28px 0 40px; display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; font-size: 15px; }
.foot-lang { display: flex; align-items: center; gap: 4px; font-weight: 700; color: #fff; }
.foot-lang button { background: none; border: 0; color: #9FB0C7; font-weight: 700; font-size: 15px; padding: 6px 4px; min-height: 36px; }
.foot-lang button[aria-pressed="true"] { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.foot-min { padding: 56px 0; display: flex; align-items: center; gap: 40px; }
.foot-min .lchip img { height: 48px; }
.foot-min .foot-slogan { margin: 0; white-space: nowrap; font-size: 20px; }
.foot-min-links { flex: 1; display: flex; gap: 10px 22px; flex-wrap: wrap; justify-content: flex-end; font-size: 15px; }
.mbar { display: none; }

/* 11. Visionneuse --------------------------------------------------------- */
.viewer { width: min(1180px, 100% - 32px); max-height: calc(100vh - 48px); padding: 0; border: 0; border-radius: 26px; box-shadow: 0 40px 90px rgba(15,30,54,.45); overflow: hidden; color: var(--ink); }
.viewer[open] { display: grid; grid-template-columns: minmax(0, 620px) 1fr; }
.viewer::backdrop { background: rgba(15,30,54,.55); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.viewer-doc { background: var(--surface-2); padding: 30px; overflow: auto; }
.viewer-docin { position: relative; width: min(560px, 100%); margin-inline: auto; direction: ltr; }
.hot { position: absolute; left: calc(var(--x) / 684 * 100%); top: calc(var(--y) / 968 * 100%); transform: translate(-50%, -50%); width: 32px; height: 32px; border-radius: 50%; background: var(--surface); color: var(--acc); border: 2px solid var(--acc); font-weight: 800; font-size: 13px; box-shadow: 0 0 0 6px rgba(31,110,156,.18); padding: 0; z-index: 3; }
.hot.on { background: var(--btn); color: #fff; }
.viewer-side { position: relative; padding: 40px 44px; display: flex; flex-direction: column; overflow: auto; }
.viewer-x { position: absolute; inset-inline-end: 22px; top: 20px; width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--surface-3); display: flex; align-items: center; justify-content: center; }
.viewer-pane .x3 { font-size: 30px; margin-top: 14px; }
.viewer-pane .tt { margin-top: 10px; }
.viewer-list { display: grid; gap: 6px; margin-top: 26px; }
.viewer-list button { display: flex; align-items: center; gap: 12px; width: 100%; border: 0; background: none; padding: 12px 14px; border-radius: 12px; font-weight: 700; font-size: 15.5px; text-align: start; }
.viewer-list button[aria-current] { background: var(--tint-1); }
.viewer-list .num { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--acc); color: var(--acc); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; flex: none; }
.viewer-list button[aria-current] .num { background: var(--btn); color: #fff; }
.viewer .fict { margin-top: 18px; }
.viewer-act { display: grid; gap: 12px; margin-top: auto; padding-top: 26px; }

/* 12. Pages ----------------------------------------------------------------- */
/* En-tête de page intérieure (texte + visuel) */
.phead { padding: 90px 0 100px; }
.phead-g { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.phead .x1 { font-size: clamp(38px, 4.7vw, 68px); margin-top: 22px; }
.phead .ld { margin-top: 22px; max-width: 540px; }
.phead-v { position: relative; }
.chain { padding-inline-start: 20px; }
.stepc { display: flex; align-items: center; gap: 20px; padding: 20px 24px; border-radius: 22px; }
.stepc-t { flex: 1; min-width: 0; }
.stepc-t b { display: block; font-weight: 800; font-size: 21px; letter-spacing: -.02em; }
.stepc-t .sm { margin-top: 3px; }
.conn { height: 22px; padding-inline-start: 51px; }
.conn span { display: block; width: 3px; height: 100%; border-radius: 2px; background: linear-gradient(#6CBDF0, var(--acc)); }
.chain .fict { margin-top: 16px; text-align: end; }
/* Rangées texte / visuel */
.rowp { display: grid; grid-template-columns: 1fr 1.15fr; gap: 88px; align-items: center; }
.rowp--flip { grid-template-columns: 1.15fr 1fr; }
.rowp--flip > :first-child { order: 2; }
.rowp .x2 { font-size: clamp(30px, 3.2vw, 46px); }
.rowp .ld { margin-top: 18px; }
.rowp .checks { margin-top: 18px; }
.split-h { display: grid; grid-template-columns: 1fr 1fr; gap: 88px; align-items: end; }
.split-h .x2 { font-size: clamp(30px, 3.2vw, 46px); }
/* Devis → facture */
.dv2fa { position: relative; height: 600px; }
.dv2fa .fit-doc { position: absolute; }
.dv2fa .a { left: 0; top: 60px; transform: rotate(-5deg); }
.dv2fa .b { left: 250px; top: 0; transform: rotate(3deg); }
.dv2fa .tag { position: absolute; left: 170px; top: 270px; z-index: 3; display: inline-flex; align-items: center; gap: 10px; background: var(--surface); color: var(--navy-tx); font-weight: 700; font-size: 15px; padding: 12px 18px; border-radius: 999px; box-shadow: 0 16px 36px -10px rgba(15,30,54,.35); }
.dv2fa .tag .i { color: var(--acc); }
.dv2fa .fict { position: absolute; left: 250px; top: 592px; }
/* États */
.states { padding: 30px 34px 12px; border-radius: 28px; box-shadow: var(--sh-big); }
.states-hd { display: flex; justify-content: space-between; gap: 16px; }
.states-k { font-weight: 700; font-size: 12px; letter-spacing: .14em; color: var(--ink2); text-transform: uppercase; }
.states-v { font-weight: 800; font-size: 28px; letter-spacing: -.02em; margin-top: 4px; white-space: nowrap; }
.states-v--acc { color: var(--acc); }
.tl { margin-top: 20px; }
.tl li { display: flex; gap: 18px; align-items: center; padding: 18px 0; border-top: 1px solid var(--line); }
.tl-i { width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex: none; }
.tl-t { flex: 1; min-width: 0; }
.tl-t b { display: block; font-weight: 700; font-size: 17px; }
.c-ok { background: var(--okbg); color: var(--oktx); } .c-se { background: var(--surface-3); color: var(--se); } .c-rl { background: var(--orgbg); color: var(--orgtx); }
/* Relance */
.remind { padding: 30px; border-radius: 26px; box-shadow: var(--sh-big); max-width: 520px; }
.remind-hd { display: flex; gap: 16px; align-items: center; }
.remind-hd .tl-i { width: 54px; height: 54px; border-radius: 16px; }
.remind-hd b { display: block; font-weight: 800; font-size: 21px; }
.remind-g { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 24px; }
.remind-g > div { background: var(--bg); border-radius: 14px; padding: 14px 16px; }
.remind-g b { display: block; font-weight: 800; font-size: 18px; margin-top: 4px; }
.remind .btn { margin-top: 22px; }
.red { color: var(--redtx); }
/* Aperçu (éditeur + facture) */
.prev { position: relative; height: 776px; margin-top: 56px; }
.prev .fit-ed { position: absolute; inset-inline-start: 0; top: 0; }
.prev .fit-doc { position: absolute; inset-inline-start: 660px; top: 30px; }
.prev .ann { position: absolute; inset-inline-start: 560px; top: 300px; z-index: 3; }
.prev .fict { position: absolute; inset-inline-start: 660px; top: 740px; }
/* Parcours CMI */
.cmi { position: relative; display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 0; align-items: center; margin-top: 70px; }
.cmi-p { position: relative; }
.cmi-p > .ann { position: absolute; top: -34px; inset-inline-start: 10px; z-index: 3; }
.cmi-arr { width: 46px; height: 46px; border-radius: 50%; background: var(--surface); box-shadow: 0 10px 24px -8px rgba(15,30,54,.35); display: flex; align-items: center; justify-content: center; color: var(--acc); margin: 0 -4px; z-index: 2; position: relative; }
.cmi-arr .i { stroke-width: 2.6; }
.pmail, .pdone { padding: 26px; border-radius: 24px; }
.pmail-hd { display: flex; gap: 12px; align-items: center; }
.pmail-lg { width: 44px; height: 44px; border-radius: 12px; border: 2px dashed var(--acc); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 8px; color: var(--acc); text-align: center; line-height: 1.15; }
.pmail-co { font-weight: 800; font-size: 15px; color: var(--acc); }
.pmail-ttl { font-weight: 800; font-size: 22px; margin-top: 18px; letter-spacing: -.01em; }
.kvs { margin-top: 12px; }
.kvs > div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.kvs b { font-weight: 700; font-size: 15px; }
.pmail .btn { min-height: 48px; margin-top: 16px; font-size: 15.5px; }
.pmail-sub { text-align: center; margin-top: 10px; font-size: 13px; }
.pmail-ft { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.pmail-ft .fict { font-size: 12.5px; }
.ppage { padding: 0; border-radius: 24px; overflow: hidden; }
.ppage-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; background: #F1F4F8; border-bottom: 1px solid #E1E6EE; }
.ppage-bar > b { width: 9px; height: 9px; border-radius: 50%; background: #D0D5DD; }
.ppage-url { display: flex; align-items: center; gap: 6px; margin-inline-start: 8px; flex: 1; min-height: 26px; border-radius: 13px; background: var(--surface); border: 1px solid var(--url-bd); padding: 0 12px; font-weight: 500; font-size: 12px; color: var(--ink3); }
.ppage-in { padding: 24px 26px 26px; }
.ppage-hd { display: flex; gap: 12px; align-items: center; }
.ppage-hd b { font-weight: 800; font-size: 17px; line-height: 1.3; }
.ppage-ic { width: 44px; height: 44px; border-radius: 12px; background: var(--tint-1); color: var(--acc); display: flex; align-items: center; justify-content: center; flex: none; }
.ppage-sum { background: var(--bg); border-radius: 14px; padding: 14px 16px; margin-top: 16px; }
.ppage-sum > div { display: flex; justify-content: space-between; gap: 10px; }
.ppage-sum > div + div { margin-top: 6px; }
.ppage-sum b { font-weight: 800; }
.blk { height: 40px; border-radius: 8px; background: #E6EBF1; margin-top: 10px; }
.blk2 { display: flex; gap: 10px; } .blk2 .blk { flex: 1; }
.ppage-note { margin-top: 14px; border: 1.5px dashed var(--bd-acc); border-radius: 12px; padding: 10px 12px; font-weight: 700; font-size: 13px; color: var(--navy-tx); text-align: center; }
.pdone-hd { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.pdone-hd .x3 { margin-top: 2px; }
.pdone .tl li { padding: 13px 0; gap: 14px; }
.pdone .tl-i { width: 36px; height: 36px; }
.pdone .tl-t b { font-size: 15px; }
.pdone-rest { display: flex; justify-content: space-between; align-items: center; margin-top: 6px; background: var(--okbg); border-radius: 14px; padding: 14px 16px; color: var(--oktx); font-weight: 700; font-size: 14px; }
.pdone-rest b { font-weight: 800; font-size: 18px; }
.pdone .fict { text-align: end; margin-top: 12px; font-size: 12.5px; }
.money { padding: 34px 40px; border-radius: 26px; }
.money-g { display: flex; gap: 16px; margin-top: 24px; align-items: flex-start; }
.money-n { display: flex; flex-direction: column; align-items: center; gap: 10px; width: 200px; text-align: center; flex: none; }
.money-n b { font-weight: 800; font-size: 17px; }
.money-n .sm { font-size: 13.5px; }
.money-a { flex: 1; height: 3px; background: linear-gradient(90deg, #6CBDF0, var(--acc)); border-radius: 2px; margin-top: 30px; position: relative; }
[dir="rtl"] .money-a { background: linear-gradient(-90deg, #6CBDF0, var(--acc)); }
.money-ft { display: flex; gap: 14px; align-items: center; margin-top: 26px; padding-top: 20px; border-top: 1px dashed var(--line); }
.notes li { display: flex; gap: 16px; align-items: flex-start; padding: 16px 0; border-top: 1px solid var(--line); }
.notes .n { width: 30px; height: 30px; border-radius: 50%; background: var(--inv); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 13px; flex: none; }
.notes b { display: block; font-weight: 700; font-size: 17px; }
.notes .tt { margin-top: 4px; font-size: 15.5px; }
.cmi-big { position: relative; }
.cmi-big .paycard { position: absolute; inset-inline-start: 190px; top: 330px; }
.cmi-big > .fict { margin-top: 10px; }
.cmi-band { display: flex; align-items: center; gap: 24px; padding: 30px 36px; border-radius: 26px; box-shadow: 0 0 0 2px var(--band-bd), var(--sh-card); }
.cmi-band > div { flex: 1; }
.cmi-band .x3 { font-size: 22px; }
.cmi-band .tt { margin-top: 4px; }
/* Modèles */
.sel { display: grid; grid-template-columns: 600px 1fr; gap: 64px; margin-top: 52px; align-items: start; }
.sel-v { position: relative; }
.sel-v .ann { position: absolute; z-index: 3; top: -14px; }
.sel-v .fict { margin-top: 18px; }
.colpick { padding: 26px; border-radius: 24px; }
.colpick-k { font-weight: 700; font-size: 12.5px; letter-spacing: .12em; color: var(--ink2); text-transform: uppercase; }
.colpick-l { display: grid; gap: 6px; margin-top: 14px; }
.colpick-l button { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 14px; border: 0; background: none; font-weight: 700; font-size: 16px; text-align: start; min-height: 52px; transition: background-color .2s ease, box-shadow .2s ease; }
.colpick-l button:hover { background: var(--tint-0); }
.colpick-l button[aria-pressed="true"] { background: var(--tint-1); box-shadow: inset 0 0 0 1.5px var(--bd-acc2); }
.colpick-l .dot { width: 34px; height: 34px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 3px var(--surface), 0 0 0 4px var(--line); flex: none; }
.colpick-l .ok { margin-inline-start: auto; color: var(--acc); visibility: hidden; }
.colpick-l button[aria-pressed="true"] .ok { visibility: visible; }
.drop { margin-top: 22px; border: 2px dashed var(--bd-acc); border-radius: 16px; padding: 22px; text-align: center; background: var(--tint-0); display: block; cursor: pointer; transition: border-color .2s ease, background-color .2s ease; }
.drop:hover, .drop.is-over { border-color: var(--acc); background: var(--tint-1); }
.drop .i { margin: 0 auto; color: var(--acc); }
.drop b { display: block; font-weight: 700; font-size: 16px; margin-top: 10px; }
.drop .sm { margin-top: 4px; }
.colpick .btn { margin-top: 20px; }
.tabs { display: flex; gap: 10px; }
.chipo { display: inline-flex; align-items: center; font-weight: 600; font-size: 15px; color: var(--chip-tx); background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; padding: 10px 18px; min-height: 44px; }
.chipo[aria-pressed="true"] { background: var(--tint-2); border-color: var(--bd-acc2); color: var(--navy-tx); }
.anat-g { display: grid; gap: 36px; margin-top: 52px; align-items: end; }
.anat-g--a { grid-template-columns: 1.6fr 1fr; }
.anat-g--b { grid-template-columns: 1fr 1fr; margin-top: 40px; }
.anat-g h3 { font-size: 20px; margin-top: 20px; }
.anat-g .tt { margin-top: 6px; }
.piedc { padding: 24px 26px; border-radius: 20px; }
.piedc-k { font-weight: 700; font-size: 12px; letter-spacing: .12em; color: var(--ink2); text-transform: uppercase; }
.piedc p:last-child { font-weight: 600; font-size: 18px; line-height: 1.7; margin-top: 8px; direction: ltr; text-align: start; }
.piedc b { color: var(--acc); }
/* Tarifs */
.opts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 24px; }
.opt { display: flex; align-items: center; gap: 14px; padding: 20px 22px; border-radius: 18px; }
.opt b { display: block; font-weight: 700; font-size: 16.5px; }
.cmp { margin-top: 36px; overflow: hidden; border-radius: 26px; }
.cmp-scroll { overflow-x: auto; }
.cmp table { width: 100%; border-collapse: collapse; min-width: 640px; font-size: 15.5px; }
.cmp th, .cmp td { padding: 15px 20px; border-top: 1px solid var(--line); text-align: center; font-weight: 500; }
.cmp thead th { border-top: 0; background: var(--bg); font-weight: 800; font-size: 15px; padding: 20px; }
.cmp th[scope="row"], .cmp thead th:first-child { text-align: start; padding-inline-start: 28px; }
.cmp thead th:first-child { color: var(--ink2); font-weight: 700; }
.cmp .pro { background: var(--pro-1); }
.cmp thead .pro { color: var(--acc); background: var(--pro-2); }
.cmp .ck { margin: 0 auto; }
.cmp .no { color: var(--ink3); font-weight: 600; }
.life { display: flex; align-items: center; gap: 40px; padding: 44px 52px; border-radius: 32px; position: relative; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--sh-card); }
.life > div { position: relative; }
.life > div:first-of-type { flex: 1; }
.life .x3 { font-size: 30px; }
.life .ld { margin-top: 10px; font-size: 19px; }
.life .btns { margin: 0; flex-wrap: nowrap; }
/* Démonstration / contact */
.demo-g { display: grid; grid-template-columns: 1fr 580px; gap: 80px; align-items: start; }
.demo-g .x1 { font-size: clamp(36px, 3.4vw, 48px); margin-top: 22px; }
.demo-g > div:first-child .ld { margin-top: 22px; max-width: 560px; }
.who { display: flex; align-items: center; gap: 18px; padding: 16px 20px 16px 16px; border-radius: 22px; margin-top: 30px; }
.who img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; flex: none; }
.who b { display: block; font-weight: 800; font-size: 17px; }
.lbl { font-weight: 700; font-size: 13px; letter-spacing: .14em; color: var(--ink2); text-transform: uppercase; margin-bottom: 10px; }
.see li { display: flex; gap: 16px; align-items: center; padding: 15px 0; border-top: 1px solid var(--line); }
.see li > span:nth-child(2) { flex: 1; font-weight: 600; font-size: 16.5px; line-height: 1.4; }
.next { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 52px; }
.next .card { padding: 34px; }
.next .n { font-weight: 800; font-size: 15px; color: var(--acc); letter-spacing: .1em; }
.next h3 { margin-top: 14px; }
.next .tt { margin-top: 10px; }
/* Page Maroc */
.lhero { padding: 56px 0 64px; }
.lhero-g { display: grid; grid-template-columns: 740px 1fr; gap: 10px; align-items: center; }
.lhero .x1 { font-size: clamp(42px, 4.6vw, 64px); }
.lhero .ld { margin-top: 24px; max-width: 600px; }
.lhero .fict { margin-top: 16px; }
.lhero-v { position: relative; }
.lhero-v .fit-doc { margin-inline-start: 20px; }
.lhero-v .badge { position: absolute; inset-inline-start: -60px; top: 500px; }
.lhero-v > .fict { margin-inline-start: 20px; font-size: 13px; margin-top: 8px; }
.anat { display: grid; grid-template-columns: 480px 1fr; gap: 40px; align-items: center; }
.anat .ld { margin-top: 16px; }
.anat-li li { display: flex; gap: 16px; align-items: flex-start; padding: 18px 0; border-top: 1px solid var(--line); }
.anat-li .tt { padding-top: 3px; }
.anat-v { position: relative; height: 737px; }
.anat-v .fit-doc { position: absolute; left: 200px; top: 0; }
.anat-v .z-net { position: absolute; left: 370px; top: 445px; }
.anat-v .fict { position: absolute; left: 200px; top: 710px; }
.anat-v .tagl { position: absolute; display: flex; align-items: center; z-index: 4; }
.anat-v .tagl .st { background: var(--navy); color: #fff; padding: 8px 14px; }
.anat-v .tagl i { flex: 1; height: 2px; background: var(--navy); }
.anat-v .tagl u { width: 12px; height: 12px; border-radius: 50%; background: var(--surface); border: 3px solid var(--navy); margin-inline-end: -6px; flex: none; }
.src { margin-top: 22px; }
.offer { display: flex; align-items: center; gap: 44px; padding: 50px; border-radius: 32px; }
.offer img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; flex: none; }
.offer > div { flex: 1; }
.offer .x2 { font-size: clamp(28px, 2.8vw, 40px); margin: 0; }
.offer .ld { margin-top: 12px; }
.offer .sm { margin-top: 10px; font-weight: 600; }
/* À propos, emplois, avis, vidéos */
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 56px; }
.values .card { padding: 30px; }
.values h3 { font-size: 20px; margin-top: 20px; }
.values .tt { margin-top: 8px; font-size: 15.5px; }
.jobs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 48px; }
.job { display: flex; align-items: center; gap: 18px; padding: 22px 24px; border-radius: 22px; }
.job > div { flex: 1; }
.job b { display: block; font-weight: 800; font-size: 18px; letter-spacing: -.01em; }
.stars { display: flex; gap: 8px; margin-top: 22px; flex-wrap: wrap; border: 0; padding: 0; }
.stars legend { font-weight: 700; font-size: 13.5px; margin-bottom: 10px; padding: 0; width: 100%; }
.stars input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.stars label { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 52px; min-height: 48px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--field-bd); font-weight: 700; color: var(--ink2); cursor: pointer; background: var(--surface); transition: background-color .15s ease, color .15s ease, border-color .15s ease; }
.stars label .i { color: #E9B262; }
.stars input:checked + label { background: var(--tint-1); border-color: var(--acc); color: var(--navy-tx); box-shadow: 0 0 0 3px rgba(31,110,156,.12); }
.stars input:focus-visible + label { outline: 3px solid var(--acc); outline-offset: 2px; }
.vgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 48px; }
.vgrid:empty { display: none; }
.vgrid > * { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--sh-card); overflow: hidden; }
.vgrid img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.vgrid h3 { font-size: 18px; padding: 16px 20px 0; }
.vgrid p { font-size: 14.5px; color: var(--ink2); padding: 6px 20px 18px; }
.vempty { display: flex; gap: 22px; align-items: center; padding: 30px 34px; border-radius: 26px; margin-top: 48px; }
.vempty > div { flex: 1; }
.videos-modal { position: fixed; inset: 0; z-index: 120; display: none; align-items: center; justify-content: center; padding: 20px; }
.videos-modal[aria-hidden="false"], .videos-modal.is-open, .videos-modal.open, .videos-modal.active { display: flex; }
.videos-modal__backdrop { position: absolute; inset: 0; background: rgba(15,30,54,.7); }
.videos-modal__content { position: relative; width: min(1000px, 100%); }
.videos-modal__player { position: relative; border-radius: 20px; overflow: hidden; background: #000; }
.videos-modal__player video { width: 100%; display: block; }
.videos-modal__close { position: absolute; top: 12px; inset-inline-end: 12px; z-index: 2; width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); display: flex; align-items: center; justify-content: center; }
/* Pages légales (gabarit commun ; textes de pages/legal/ inchangés) */
.lhead { padding: 80px 0 64px; }
.lhead .x1 { font-size: clamp(36px, 4.4vw, 60px); margin-top: 20px; }
.lhead .ld { margin-top: 18px; max-width: 760px; }
.lmeta { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 24px; font-weight: 600; font-size: 14px; color: var(--ink2); align-items: center; }
.lmeta span { display: inline-flex; align-items: center; gap: 8px; }
.lmeta .i { color: var(--acc); }
.ldocs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.ldocs a { font-weight: 600; font-size: 14.5px; color: var(--chip-tx); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 9px 16px; }
.ldocs a[aria-current] { background: var(--navy); border-color: var(--navy-tx); color: #fff; }
.lnote { margin-top: 14px; font-size: 13.5px; color: var(--ink2); font-weight: 500; }
.legal-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 64px; padding: 64px 0 120px; align-items: start; }
.legal-layout--seul { grid-template-columns: minmax(0, 1fr); max-width: 860px; }
.legal-aside { position: sticky; top: calc(var(--hdr) + 24px); }
.legal-toc { padding: 22px; border-radius: 20px; }
.legal-toc summary { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 15px; cursor: pointer; list-style: none; }
.legal-toc summary::-webkit-details-marker { display: none; }
.legal-toc__count { font-weight: 700; font-size: 12px; background: var(--tint-1); color: var(--acc); border-radius: 999px; padding: 2px 9px; }
.legal-toc ol { margin-top: 14px; display: grid; gap: 2px; counter-reset: t; max-height: 60vh; overflow: auto; }
.legal-toc a { display: block; font-weight: 500; font-size: 14px; line-height: 1.4; color: var(--ink2); padding: 7px 10px; border-radius: 8px; }
.legal-toc a:hover, .legal-toc a.is-on { background: var(--tint-1); color: var(--navy-tx); }
.legal-tools { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.legal-tools .btn { min-height: 40px; font-size: 14px; padding: 0 14px; }
.legal-prose { max-width: 760px; font-size: 16.5px; line-height: 1.7; color: var(--prose); }
.legal-prose h2 { font-weight: 800; font-size: 26px; letter-spacing: -.02em; color: var(--ink); margin: 52px 0 14px; line-height: 1.25; scroll-margin-top: calc(var(--hdr) + 20px); }
.legal-prose > :first-child, .legal-prose section:first-child > h2:first-child { margin-top: 0; }
.legal-prose h3 { font-weight: 700; font-size: 19px; color: var(--ink); margin: 28px 0 8px; }
.legal-prose p { margin: 0 0 14px; }
.legal-prose ul { list-style: disc; padding-inline-start: 22px; margin: 0 0 16px; }
.legal-prose li { margin: 6px 0; }
.legal-prose li::marker { color: var(--acc); }
.legal-prose a { color: var(--acc); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.legal-prose strong { color: var(--ink); }
.legal-prose address { font-style: normal; margin: 0 0 14px; }
.legal-table-wrap { overflow-x: auto; margin: 18px 0 22px; border: 1px solid var(--line); border-radius: 16px; }
.legal-prose table { width: 100%; border-collapse: collapse; font-size: 14.5px; line-height: 1.5; }
.legal-prose caption { text-align: start; font-weight: 700; padding: 14px 16px 6px; color: var(--ink); }
.legal-prose th, .legal-prose td { padding: 12px 16px; border-top: 1px solid var(--line); text-align: start; vertical-align: top; }
.legal-prose thead th { background: var(--bg); font-weight: 700; color: var(--ink); }
.legal-anchor { margin-inline-start: 8px; color: #9CB2C8; text-decoration: none !important; opacity: 0; transition: opacity .2s ease; }
.legal-prose h2:hover .legal-anchor, .legal-anchor:focus { opacity: 1; }
.legal-end { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 64px; max-width: 760px; }
.legal-end > div, .legal-end > nav { padding: 26px; border-radius: 22px; }
.legal-end__t { font-weight: 800; font-size: 18px; }
.legal-end .tt { margin-top: 6px; }
.legal-end .btns { margin-top: 18px; gap: 10px; }
.legal-card { display: flex; flex-direction: column; padding: 12px 0; border-top: 1px solid var(--line); }
.legal-card:first-of-type { margin-top: 10px; }
.legal-card b { font-weight: 700; color: var(--ink); }
.legal-card:hover b { color: var(--acc); }
/* Page mondiale */
.monde { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px; padding: 48px 20px; text-align: center; }
.monde .x1 { font-size: clamp(34px, 5vw, 60px); }
.monde-pays { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 260px)); gap: 18px; justify-content: center; width: 100%; }
.monde-pays a { display: flex; flex-direction: column; gap: 6px; padding: 26px; font-weight: 800; font-size: 20px; }
.monde-pays a:hover { box-shadow: 0 0 0 2px var(--acc), var(--sh-card); }

/* Apparition au défilement (activée par le script ; jamais sans JS) */
.js-rv .rv { opacity: 0; transform: translateY(22px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.js-rv .rv.is-in { opacity: 1; transform: none; }
.js-rv .plans .rv:nth-child(2) { transition-delay: .08s; }
.js-rv .plans .rv:nth-child(3) { transition-delay: .16s; }
.js-rv .flow .rv:nth-child(3) { transition-delay: .06s; }
.js-rv .flow .rv:nth-child(4) { transition-delay: .12s; }
.js-rv .flow .rv:nth-child(5) { transition-delay: .18s; }
/* Héros : la carte de paiement et le badge se posent sur la facture (moment unique de chargement) */
.js-rv .stage .paycard, .js-rv .stage .badge { opacity: 0; transform: translateY(16px) scale(.98); transition: opacity .6s ease .35s, transform .6s cubic-bezier(.2,.7,.2,1) .35s; }
.js-rv .stage .badge { transition-delay: .55s; }
.js-rv .stage.is-in .paycard, .js-rv .stage.is-in .badge { opacity: 1; transform: none; }

/* 13. Réactif --------------------------------------------------------------- */
@media (max-width: 1279px) {
    .hdr-nav { gap: 20px; font-size: 15px; margin-inline-start: 6px; }
    .hdr-in { gap: 20px; }
}
@media (max-width: 1179px) {
    :root { --sp: 104px; }
    .hdr-nav, .hdr-login { display: none; }
    .burger { display: inline-flex; }
    .stage .badge { left: -40px; }
    .stage .paycard { left: auto; right: -40px; }
    .feats { grid-template-columns: repeat(2, 1fr); }
    .flow { grid-template-columns: repeat(2, 1fr); }
    .flow::before { display: none; }
    .founder { grid-template-columns: 320px 1fr; gap: 56px; }
    .how-g { grid-template-columns: 1fr; gap: 40px; }
    .how-v { max-width: 760px; }
    .models { grid-template-columns: 1fr; }
    .fan { max-width: 720px; }
    .plans { gap: 18px; }
    .plan { padding: 30px; }
    .faq-grid { grid-template-columns: 1fr; gap: 32px; }
    .final { grid-template-columns: 1fr; padding: 56px; }
    .final-vis { display: none; }
    .phead-g, .rowp, .rowp--flip, .split-h, .demo-g, .lhero-g, .anat, .sel { grid-template-columns: minmax(0, 1fr); gap: 48px; }
    .rowp--flip > :first-child { order: 0; }
    .prev { height: auto; display: grid; gap: 30px; }
    .prev .fit-ed, .prev .fit-doc, .prev .ann, .prev .fict { position: relative; inset: auto; }
    .prev .ann { justify-self: start; }
    .cmi { grid-template-columns: 1fr; gap: 50px; justify-items: center; }
    .cmi-arr { transform: rotate(90deg); margin: -28px 0; }
    .cmi-p { width: min(420px, 100%); }
    .anat-v { max-width: 760px; }
    .lhero-v { max-width: 620px; }
    .foot-grid { grid-template-columns: 1fr 1fr 1fr; }
    .foot-brand { grid-column: 1 / -1; }
    .legal-layout { grid-template-columns: 1fr; gap: 28px; }
    .legal-aside { position: static; }
    .life { flex-direction: column; align-items: flex-start; }
    .life .btns { flex-wrap: wrap; }
    .viewer[open] { grid-template-columns: 1fr; overflow: auto; }
    .viewer-doc { overflow: visible; }
}
@media (max-width: 899px) {
    :root { --sp: 72px; --hdr: 76px; }
    .logo img { height: 52px; }
    .x2 { margin-top: 16px; }
    .plans { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; gap: 30px; }
    .jobs, .values, .vgrid, .next, .opts { grid-template-columns: 1fr; }
    .remind-g { grid-template-columns: 1fr 1fr; }
    .money-g { flex-direction: column; align-items: center; }
    .money-a { width: 3px; height: 40px; flex: none; margin: 0; background: linear-gradient(#6CBDF0, var(--acc)); }
    .anat-g--a, .anat-g--b { grid-template-columns: 1fr; }
    .offer { flex-direction: column; align-items: flex-start; gap: 20px; padding: 28px; }
    .legal-end { grid-template-columns: 1fr; }
}
@media (max-width: 699px) {
    :root { --sp: 52px; --gut: 20px; --hdr: 80px; }
    body { padding-bottom: 84px; }
    .hdr-in > .lang { display: none; }
    .hdr-in { gap: 12px; }
    .logo img { height: 60px; }
    .hdr .btn--s { min-height: 40px; font-size: 14px; padding: 0 14px; }
    .hide-m { display: none; }
    .show-m { display: inline; }
    .eb { font-size: 11.5px; }
    .x1 { font-size: 38px; }
    .x2 { font-size: 34px; line-height: 1.08; }
    .x3 { font-size: 20px; }
    .ld { font-size: 17px; }
    .tt { font-size: 15.5px; }
    .btn { min-height: 54px; font-size: 16px; }
    .btns { flex-direction: column; gap: 12px; margin-top: 24px; }
    .btns .btn { width: 100%; }
    .trial { align-items: flex-start; }
    /* Accueil mobile : zone zoomée + vignette + badge (revue M2) */
    .hero { padding: 36px 0 24px; }
    .hero .wrap { text-align: start; }
    .hero .eb, .hero .btns, .hero .trial { justify-content: flex-start; }
    .hero .x1 { margin-top: 16px; }
    .hero .ld { margin: 16px 0 0; }
    .hero-ex { display: none; }
    .stage { display: none; }
    .hero-m { display: block; position: relative; margin-top: 64px; }
    .hero-m .st--pd { position: absolute; inset-inline-end: 0; top: -44px; }
    .hero-m-row { display: flex; gap: 10px; align-items: flex-start; justify-content: space-between; margin-top: 12px; }
    .hero-m .badge { margin-top: 10px; }
    .hero-m .vign { width: 89px; flex: none; position: relative; cursor: pointer; border: 0; padding: 0; background: none; }
    .hero-m .vign::after { content: ""; position: absolute; left: calc(360 / 684 * 100% - 2px); top: calc(496 / 968 * 100% - 2px); width: calc(266 / 684 * 100% + 4px); height: calc(124 / 968 * 100% + 4px); border: 2px solid var(--acc); border-radius: 3px; }
    .hero-m .fict { margin-top: 6px; font-size: 12.5px; }
    .hero-m-wrap { margin-top: 44px; }
    .flow, .flow--3 { grid-template-columns: 1fr; gap: 12px; margin-top: 32px; }
    .flow-c { padding: 18px; display: grid; grid-template-columns: 46px 1fr auto; column-gap: 14px; align-items: start; border-radius: 20px; }
    .flow-hd { display: contents; }
    .flow-c .tile { width: 46px; height: 46px; border-radius: 13px; grid-row: 1 / span 2; }
    .flow-body { grid-column: 2; align-self: center; }
    .flow-hd > .show-m { grid-column: 3; display: block; }
    .flow-step { display: none; }
    .flow-c .x3 { font-size: 18px; }
    .flow-t { grid-column: 2 / 4; font-size: 15px; margin-top: 6px; }
    .flow-v { grid-column: 2 / 4; border: 0; padding: 0; margin-top: 10px; }
    .feats { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px; margin: 28px calc(-1 * var(--gut)) 0; padding: 0 var(--gut) 30px; scrollbar-width: none; }
    .feats::-webkit-scrollbar { display: none; }
    .feats .feat { flex: 0 0 258px; scroll-snap-align: start; padding: 24px; }
    .feats .feat h3 { font-size: 18px; }
    .founder { grid-template-columns: 1fr; gap: 0; }
    .founder-txt { display: contents; }
    .founder-txt > .eb { order: -3; }
    .founder-txt > .x2 { order: -2; font-size: 30px; margin-bottom: 22px; }
    .founder-ph { width: 100%; order: -1; margin-bottom: 44px; }
    .founder-ph img { width: 100%; height: 250px; }
    .facts .facts-adr { display: none; }
    .facts dt { width: 92px; }
    .founder-sec { padding: 52px 0 48px; }
    .how-v { min-height: 0; }
    .how-v .fit-doc, .how-v .ann { display: none; }
    .how-v .fit-ed { position: relative; top: 0; }
    .how-v .fict { position: static; margin-top: 8px; font-size: 12.5px; }
    .steps li { padding: 16px 0; }
    .steps .n { width: 46px; height: 46px; }
    .steps h3 { font-size: 18px; }
    .how-g .btn--pri { display: none; }
    .models { gap: 22px; }
    .fan { display: none; }
    .models-m { display: flex; gap: 18px; align-items: flex-start; }
    .models-m .fit-doc { flex: none; }
    .models-txt > .x2 { display: none; }
    .models-txt > .eb, .models-txt > .ld, .models-txt > .ids, .models-txt .btns { display: none; }
    .models-txt .pdfs .pdfrow:nth-child(n+2) { display: none; }
    .plans { display: none; }
    .plans-m { display: grid; gap: 12px; margin-top: 28px; }
    .pm-row { display: flex; gap: 14px; align-items: center; padding: 18px 20px; border-radius: 20px; }
    .pm-row--rec { box-shadow: 0 0 0 2px var(--acc), var(--sh-card); }
    .pm-row > div:first-child { flex: 1; }
    .pm-row .x3 { font-size: 18px; display: inline; }
    .pm-row .plan-rec { position: static; font-size: 11.5px; padding: 4px 10px; margin-inline-start: 8px; box-shadow: none; display: inline-block; vertical-align: 2px; }
    .pm-row .sm { font-size: 13.5px; margin-top: 2px; }
    .pm-price { text-align: end; flex: none; }
    .pm-price b { font-weight: 800; font-size: 28px; letter-spacing: -.03em; }
    .pm-price small { font-weight: 700; font-size: 12.5px; }
    .pm-price .sm { font-size: 12.5px; }
    .plans-cmi { display: none; }
    .plans-note { justify-content: flex-start; text-align: start; }
    .plans-note > .sm { display: none; }
    .plans-note .btn { width: 100%; margin: 0; background: var(--surface); color: var(--navy-tx); box-shadow: inset 0 0 0 1.5px var(--bd-acc), 0 6px 18px -10px rgba(15,30,54,.25); min-height: 54px; }
    .ctr.sec-h { text-align: start; }
    .ctr.sec-h .eb { justify-content: flex-start; }
    .tarifs-page .plans, .p-maroc .plans { display: grid; }
    .tarifs-page .plans-m { display: none; }
    .tarifs-page .plans-cmi { display: flex; text-align: start; }
    .tarifs-page .plans-note > .sm { display: block; }
    .faq-it summary { font-size: 16.5px; padding: 20px 18px; }
    .faq-a { padding: 0 18px 20px; }
    .faq-a p { font-size: 15.5px; }
    .faq-side .faq-lead { display: none; }
    .faq-side .btn--gh { margin-top: 10px; }
    .final-sec { padding: 8px 0 56px; }
    .final { padding: 32px 22px 26px; border-radius: 28px; min-height: 0; }
    .final-acc { display: none; }
    .final-h { font-size: 30px; }
    .final .ld { display: none; }
    .slogan { font-size: 19px; margin-top: 22px; }
    .foot-grid { grid-template-columns: 1fr 1fr; gap: 28px 20px; padding-top: 44px; }
    .foot-col:nth-of-type(2), .foot-col:nth-of-type(3) { display: none; }
    .foot-m-links { display: block !important; grid-column: 1 / -1; order: 5; font-weight: 500; font-size: 14px; line-height: 1.7; }
    .foot-bot { margin-top: 40px; padding: 24px 0 28px; font-size: 13.5px; }
    .foot-tag { display: none; }
    .lchip img { height: 48px; }
    .foot-min { flex-direction: column; align-items: flex-start; gap: 22px; padding: 40px 0 44px; }
    .foot-min-links { flex-direction: column; justify-content: flex-start; gap: 10px; }
    .mbar { display: flex; position: fixed; inset-inline: 0; bottom: 0; z-index: 70; gap: 10px; padding: 12px 16px calc(16px + env(safe-area-inset-bottom)); background: var(--hdr-bg); border-top: 1px solid var(--line); box-shadow: 0 -10px 30px -12px rgba(15,30,54,.25); transition: transform .3s ease; }
    .mbar.is-hidden { transform: translateY(110%); }
    .mbar .btn { min-height: 52px; font-size: 15.5px; padding: 0 14px; flex: 1; }
    .mbar .mbar-main { flex: 1.6; }
    .mbar .mbar-tel { flex: none; width: 52px; padding: 0; }
    .form { padding: 24px; }
    .form-h { font-size: 24px; }
    .form-g { grid-template-columns: 1fr; }
    .phead { padding: 44px 0 56px; }
    .phead .x1 { font-size: 38px; }
    .chain { padding: 0; }
    .stepc { padding: 16px; gap: 14px; }
    .stepc .tile { width: 44px; height: 44px; }
    .stepc-t b { font-size: 18px; }
    .conn { padding-inline-start: 37px; }
    .dv2fa { height: 400px; }
    .dv2fa .fit-doc { --mw: 210px !important; }
    .dv2fa .b { left: auto; right: 0; }
    .dv2fa .tag { left: 50%; transform: translateX(-50%); top: 160px; font-size: 13px; padding: 10px 14px; }
    .dv2fa .fict { left: 0; top: auto; bottom: 0; }
    .states { padding: 22px 20px 6px; }
    .states-v { font-size: 20px; }
    .tl li { gap: 12px; }
    .tl .st { font-size: 12px; padding: 5px 10px; }
    .remind { padding: 22px; }
    .remind-hd { flex-wrap: wrap; }
    .money { padding: 26px 22px; }
    .lhero { padding: 34px 0 22px; }
    .lhero .x1 { font-size: 46px; }
    .lhero .ld { margin-top: 16px; }
    .lhero-v { display: none; }
    .anat-v { display: none; }
    .anat-m { display: grid !important; gap: 22px; margin-top: 26px; }
    .anat-li { display: none; }
    .life { padding: 30px 24px; }
    .life .x3 { font-size: 24px; }
    .cmi-big { min-height: 0 !important; }
    .cmi-big .paycard { position: relative; inset: auto; margin: -60px 0 0 auto; width: min(300px, 100%); }
    .feats--wrap { display: grid; overflow: visible; margin: 28px 0 0; padding: 0; }
    .cmi-band { flex-direction: column; align-items: flex-start; padding: 24px; }
    .colpick { padding: 20px; }
    .sel-v .ann { display: none; }
    .viewer { width: 100%; max-height: 100vh; height: 100%; border-radius: 0; margin: 0; max-width: 100%; }
    .viewer-doc { padding: 16px; }
    .viewer-side { padding: 28px 22px 24px; }
    .viewer-pane .x3 { font-size: 24px; }
    .legal-toc[open] ol { max-height: 50vh; }
    .lhead { padding: 44px 0 36px; }
}
.anat-m, .foot-m-links, .models-m { display: none; }
@media (max-width: 699px) { .models-m { display: flex; } }

/* 14. Arabe (RTL) ---------------------------------------------------------- */
[dir="rtl"] body { font-family: "Noto Sans Arabic", Inter, system-ui, sans-serif; }
[dir="rtl"] .x1, [dir="rtl"] .x2, [dir="rtl"] .x3, [dir="rtl"] .eb, [dir="rtl"] .states-k, [dir="rtl"] .lbl, [dir="rtl"] .facts dt, [dir="rtl"] .foot-h, [dir="rtl"] .plan-plus, [dir="rtl"] .flow-step, [dir="rtl"] .colpick-k { letter-spacing: 0; }
[dir="rtl"] .x1 { line-height: 1.25; }
[dir="rtl"] .x2 { line-height: 1.3; }
[dir="rtl"] .flip { transform: scaleX(-1); }
[dir="rtl"] .btn--gh:hover .flip { transform: scaleX(-1) translateX(3px); }
[dir="rtl"] .flow::before { background: linear-gradient(-90deg, #6CBDF0, var(--acc), var(--navy)); }
[dir="rtl"] .stage .badge { left: auto; right: -150px; }
[dir="rtl"] .stage .paycard { left: auto; right: calc(100% - 70px); }
[dir="rtl"] .stage .fict { text-align: left; }
[dir="rtl"] .fan, [dir="rtl"] .dv2fa, [dir="rtl"] .anat-v, [dir="rtl"] .cmi-big { direction: ltr; }
[dir="rtl"] .cmi-arr .i { transform: scaleX(-1); }
[dir="rtl"] .badge { padding: 19px 19px 19px 27px; }
@media (max-width: 1179px) { [dir="rtl"] .stage .badge { right: -40px; } [dir="rtl"] .stage .paycard { right: auto; left: -40px; } }

/* 15. Mouvement réduit, impression ----------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
    .js-rv .rv, .js-rv .stage .paycard, .js-rv .stage .badge { opacity: 1; transform: none; }
}
@media print {
    .hdr, .foot, .mbar, .skip, .cc, .btn, .viewer-side, .burger { display: none !important; }
    body { padding: 0; }
    body.print-doc > *:not(.viewer) { display: none !important; }
    body.print-doc .viewer { display: block !important; position: static; box-shadow: none; width: auto; max-height: none; border-radius: 0; }
    body.print-doc .viewer-doc { padding: 0; background: var(--surface); }
    body.print-doc .viewer-docin { width: 100%; }
    body.print-doc .hot { display: none; }
    body.print-doc .fit-doc { box-shadow: none; width: 100%; }
    .legal-aside, .legal-end, .ldocs { display: none !important; }
    .legal-layout { display: block; padding: 0; }
}

/* Mobile : écran d'édition sans vide sous le formulaire (cadre ajusté au contenu) */
@media (max-width: 699px) {
    .fit-ed { aspect-ratio: 688 / 690; }
    .fit-ed > .ed { height: 690px; }
}

/* Revue B : la barre mobile ne couvre jamais le bandeau cookies (refuser aussi simple qu'accepter) */
body:has(#capps-consent:not([hidden])) .mbar, .mbar.is-consent { display: none !important; }
/* Revue B : focus clavier visible sur le dépôt du logo */
.drop:focus-within { outline: 3px solid var(--acc); outline-offset: 3px; }

.fld-ck .errt { flex: 1 0 100%; padding-inline-start: 34px; }
.errt .i { flex: none; }

/* ==========================================================================
   Lot 4 (D12) : mode sombre — bleu nuit profond dérivé de #0F1E36 / #144B60, surfaces plus claires,
   sarcelle éclaircie pour les liens (AA), bordures et halos à la place des ombres.
   [data-theme="dark"] = choix enregistré ou préférence système (script anti-flash du <head>) ;
   sans JavaScript, la préférence système s'applique (sauf data-theme="light").
   ========================================================================== */
:root[data-theme="dark"] {
    --page: #0B1729; --surface: #12233B; --surface-2: #182C47; --surface-3: #1C324F; --tint-0: #10223A; --tint-1: #173253; --tint-2: #1B3A5E;
    --bg: #0E1D33; --bg2: #11304E; --wt: #1B3A5E; --line: #24395A;
    --ink: #EAF1F9; --ink2: #A9BCD3; --ink3: #9DB1CB; --ink-soft: #D3DEEC; --chip-tx: #C6D3E3; --prose: #CDD9E7;
    --field-bd: #56719A; --bd-acc: #3D6890; --bd-acc2: #5A8DB8;
    --acc: #6CBDF0; --btn: #1F6E9C; --navy-tx: #9FD3F5; --app: #4FA3DF; --inv: #22385A; --foot-bg: #070F1D;
    --ok: #22B07A; --okbg: #0F3B2C; --oktx: #7EE2B3; --okdk: #0E7F52; --orgbg: #3E2617; --orgtx: #F7AE80; --redtx: #FF9196; --se: #2B4467;
    --chip-err: #FF9196; --url-bd: #24395A; --band-bd: #3D6890; --crumb: #9DB1CB;
    --pro-1: #142A45; --pro-2: #18324F; --hdr-bg: rgba(11,23,41,.86); --hdr-bd: rgba(36,57,90,.9); --badge-bd: #1E4D3B;
    --sh-card: 0 0 0 1px rgba(108,189,240,.03), 0 24px 48px -28px rgba(0,0,0,.75);
    --sh-big: 0 0 0 1px rgba(108,189,240,.05), 0 40px 80px -34px rgba(0,0,0,.8);
    --brand: #6CBDF0; --brand-btn: #1F6E9C; --brand-soft: #173253; --text: #EAF1F9; --muted: #A9BCD3;
    color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
    --page: #0B1729; --surface: #12233B; --surface-2: #182C47; --surface-3: #1C324F; --tint-0: #10223A; --tint-1: #173253; --tint-2: #1B3A5E;
    --bg: #0E1D33; --bg2: #11304E; --wt: #1B3A5E; --line: #24395A;
    --ink: #EAF1F9; --ink2: #A9BCD3; --ink3: #9DB1CB; --ink-soft: #D3DEEC; --chip-tx: #C6D3E3; --prose: #CDD9E7;
    --field-bd: #56719A; --bd-acc: #3D6890; --bd-acc2: #5A8DB8;
    --acc: #6CBDF0; --btn: #1F6E9C; --navy-tx: #9FD3F5; --app: #4FA3DF; --inv: #22385A; --foot-bg: #070F1D;
    --ok: #22B07A; --okbg: #0F3B2C; --oktx: #7EE2B3; --okdk: #0E7F52; --orgbg: #3E2617; --orgtx: #F7AE80; --redtx: #FF9196; --se: #2B4467;
    --chip-err: #FF9196; --url-bd: #24395A; --band-bd: #3D6890; --crumb: #9DB1CB;
    --pro-1: #142A45; --pro-2: #18324F; --hdr-bg: rgba(11,23,41,.86); --hdr-bd: rgba(36,57,90,.9); --badge-bd: #1E4D3B;
    --sh-card: 0 0 0 1px rgba(108,189,240,.03), 0 24px 48px -28px rgba(0,0,0,.75);
    --sh-big: 0 0 0 1px rgba(108,189,240,.05), 0 40px 80px -34px rgba(0,0,0,.8);
    --brand: #6CBDF0; --brand-btn: #1F6E9C; --brand-soft: #173253; --text: #EAF1F9; --muted: #A9BCD3;
    color-scheme: dark;
    }
}
:root[data-theme="dark"] .card, :root[data-theme="dark"] .form, :root[data-theme="dark"] .plan, :root[data-theme="dark"] .badge, :root[data-theme="dark"] .paycard { box-shadow: var(--sh-card); }
:root[data-theme="dark"] .plan--rec { box-shadow: 0 0 0 2px var(--acc), 0 40px 80px -30px rgba(0,0,0,.8); }
:root[data-theme="dark"] .form { box-shadow: var(--sh-big); }
:root[data-theme="dark"] .wv { opacity: .09; }
:root[data-theme="dark"] .logo-l { display: none; }
:root[data-theme="dark"] .logo-d { display: block; }
:root[data-theme="dark"] .btn--sec { box-shadow: inset 0 0 0 1.5px var(--bd-acc); }
:root[data-theme="dark"] .btn--sec:hover { box-shadow: inset 0 0 0 1.5px var(--acc); }
:root[data-theme="dark"] .btn--pri { box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 14px 30px -14px rgba(0,0,0,.7); }
:root[data-theme="dark"] .btn--pri:hover { background: #2780B4; }
:root[data-theme="dark"] .hdr.is-scrolled { box-shadow: 0 10px 30px -18px rgba(0,0,0,.8); }
:root[data-theme="dark"] .tile { box-shadow: 0 10px 22px -10px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.3); }
:root[data-theme="dark"] .st--br { background: var(--surface-3); color: var(--chip-tx); }
:root[data-theme="dark"] .st--br i { background: #7F93AE; }
:root[data-theme="dark"] .lang button[aria-pressed="true"] { background: var(--surface-3); box-shadow: none; }
:root[data-theme="dark"] .ann b { background: #fff; color: #0F1E36; }
:root[data-theme="dark"] .in::placeholder { color: #8FA3BF; }
:root[data-theme="dark"] select.in { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23A9BCD3' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); }
:root[data-theme="dark"] .fld-ck input { background: var(--surface-2); border-color: #6F86A6; }
:root[data-theme="dark"] .fld-ck input:checked { background: var(--btn); border-color: #4FA3DF; }
:root[data-theme="dark"] .form-law a, :root[data-theme="dark"] .legal-prose a { color: var(--acc); }
:root[data-theme="dark"] .tiroir { box-shadow: 0 30px 40px -30px rgba(0,0,0,.8); }
:root[data-theme="dark"] .mbar { box-shadow: 0 -10px 30px -12px rgba(0,0,0,.7); }
:root[data-theme="dark"] .viewer { box-shadow: 0 0 0 1px var(--line), 0 40px 90px rgba(0,0,0,.6); background: var(--surface); }
:root[data-theme="dark"] .viewer::backdrop { background: rgba(3,8,16,.7); }
:root[data-theme="dark"] .ppage-bar { background: var(--surface-2); border-color: var(--line); }
:root[data-theme="dark"] .ppage-bar > b { background: #3A5175; }
:root[data-theme="dark"] .blk { background: var(--surface-3); }
:root[data-theme="dark"] .fit-zoom { box-shadow: 0 26px 60px -14px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.06); }
:root[data-theme="dark"] .fit-doc { box-shadow: 0 30px 70px rgba(0,0,0,.45), 0 0 0 1px rgba(255,255,255,.06); }
:root[data-theme="dark"] .ed { box-shadow: 0 40px 90px rgba(0,0,0,.5), 0 0 0 1px rgba(255,255,255,.06); }
:root[data-theme="dark"] .lchip { box-shadow: 0 0 0 1px rgba(255,255,255,.08); }
:root[data-theme="dark"] .foot-bot { border-top-color: #1A2A44; }
:root[data-theme="dark"] .chips label { background: var(--surface-2); }
:root[data-theme="dark"] .final { border-color: var(--line); }
:root[data-theme="dark"] .pdf-ic::after { background: #2B6C93; }
:root[data-theme="dark"] .legal-toc__count { background: var(--tint-1); }
:root[data-theme="dark"] .cc { color-scheme: dark; }

@media (prefers-color-scheme: dark) {
:root:not([data-theme="light"]) .card, :root:not([data-theme="light"]) .form, :root:not([data-theme="light"]) .plan, :root:not([data-theme="light"]) .badge, :root:not([data-theme="light"]) .paycard { box-shadow: var(--sh-card); }
:root:not([data-theme="light"]) .plan--rec { box-shadow: 0 0 0 2px var(--acc), 0 40px 80px -30px rgba(0,0,0,.8); }
:root:not([data-theme="light"]) .form { box-shadow: var(--sh-big); }
:root:not([data-theme="light"]) .wv { opacity: .09; }
:root:not([data-theme="light"]) .logo-l { display: none; }
:root:not([data-theme="light"]) .logo-d { display: block; }
:root:not([data-theme="light"]) .btn--sec { box-shadow: inset 0 0 0 1.5px var(--bd-acc); }
:root:not([data-theme="light"]) .btn--sec:hover { box-shadow: inset 0 0 0 1.5px var(--acc); }
:root:not([data-theme="light"]) .btn--pri { box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 14px 30px -14px rgba(0,0,0,.7); }
:root:not([data-theme="light"]) .btn--pri:hover { background: #2780B4; }
:root:not([data-theme="light"]) .hdr.is-scrolled { box-shadow: 0 10px 30px -18px rgba(0,0,0,.8); }
:root:not([data-theme="light"]) .tile { box-shadow: 0 10px 22px -10px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.3); }
:root:not([data-theme="light"]) .st--br { background: var(--surface-3); color: var(--chip-tx); }
:root:not([data-theme="light"]) .st--br i { background: #7F93AE; }
:root:not([data-theme="light"]) .lang button[aria-pressed="true"] { background: var(--surface-3); box-shadow: none; }
:root:not([data-theme="light"]) .ann b { background: #fff; color: #0F1E36; }
:root:not([data-theme="light"]) .in::placeholder { color: #8FA3BF; }
:root:not([data-theme="light"]) select.in { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23A9BCD3' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); }
:root:not([data-theme="light"]) .fld-ck input { background: var(--surface-2); border-color: #6F86A6; }
:root:not([data-theme="light"]) .fld-ck input:checked { background: var(--btn); border-color: #4FA3DF; }
:root:not([data-theme="light"]) .form-law a, :root:not([data-theme="light"]) .legal-prose a { color: var(--acc); }
:root:not([data-theme="light"]) .tiroir { box-shadow: 0 30px 40px -30px rgba(0,0,0,.8); }
:root:not([data-theme="light"]) .mbar { box-shadow: 0 -10px 30px -12px rgba(0,0,0,.7); }
:root:not([data-theme="light"]) .viewer { box-shadow: 0 0 0 1px var(--line), 0 40px 90px rgba(0,0,0,.6); background: var(--surface); }
:root:not([data-theme="light"]) .viewer::backdrop { background: rgba(3,8,16,.7); }
:root:not([data-theme="light"]) .ppage-bar { background: var(--surface-2); border-color: var(--line); }
:root:not([data-theme="light"]) .ppage-bar > b { background: #3A5175; }
:root:not([data-theme="light"]) .blk { background: var(--surface-3); }
:root:not([data-theme="light"]) .fit-zoom { box-shadow: 0 26px 60px -14px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.06); }
:root:not([data-theme="light"]) .fit-doc { box-shadow: 0 30px 70px rgba(0,0,0,.45), 0 0 0 1px rgba(255,255,255,.06); }
:root:not([data-theme="light"]) .ed { box-shadow: 0 40px 90px rgba(0,0,0,.5), 0 0 0 1px rgba(255,255,255,.06); }
:root:not([data-theme="light"]) .lchip { box-shadow: 0 0 0 1px rgba(255,255,255,.08); }
:root:not([data-theme="light"]) .foot-bot { border-top-color: #1A2A44; }
:root:not([data-theme="light"]) .chips label { background: var(--surface-2); }
:root:not([data-theme="light"]) .final { border-color: var(--line); }
:root:not([data-theme="light"]) .pdf-ic::after { background: #2B6C93; }
:root:not([data-theme="light"]) .legal-toc__count { background: var(--tint-1); }
:root:not([data-theme="light"]) .cc { color-scheme: dark; }
}

:root[data-theme="dark"] .c-se { color: var(--ink2); }
:root[data-theme="dark"] .badge-ck { background: var(--okdk); }
:root[data-theme="dark"] .colpick-l .dot { box-shadow: 0 0 0 3px var(--surface), 0 0 0 4px var(--bd-acc); }
:root[data-theme="dark"] .sw button { box-shadow: 0 0 0 3px var(--page), 0 0 0 4px var(--bd-acc); }
:root[data-theme="dark"] .sw button[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--page), 0 0 0 5px var(--c), 0 0 0 6px var(--bd-acc); }
@media (prefers-color-scheme: dark) {
:root:not([data-theme="light"]) .c-se { color: var(--ink2); }
:root:not([data-theme="light"]) .badge-ck { background: var(--okdk); }
:root:not([data-theme="light"]) .colpick-l .dot { box-shadow: 0 0 0 3px var(--surface), 0 0 0 4px var(--bd-acc); }
:root:not([data-theme="light"]) .sw button { box-shadow: 0 0 0 3px var(--page), 0 0 0 4px var(--bd-acc); }
:root:not([data-theme="light"]) .sw button[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--page), 0 0 0 5px var(--c), 0 0 0 6px var(--bd-acc); }
}
/* Documents fictifs (facture, devis, écran d'édition, pied de facture) : toujours des feuilles claires, même sur fond sombre */
.doc, .ed, .piedc {
    --surface: #fff; --surface-2: #F1F5FA; --ink: #0F1E36; --ink2: #53627A; --line: #E3EAF4; --app: #2378B5; --se: #1E2E47;
    --ok: #16A36A; --okbg: #E6F6EE; --oktx: #0B7048; --red: #E5484D; --redtx: #C8323A;
    color-scheme: light;
}
.logo-d { display: none; }
.logo .logo-d img, .logo-d { height: 60px; width: auto; }

/* Bouton clair / sombre */
.theme-btn { width: 40px; height: 40px; border-radius: 11px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-soft); display: inline-flex; align-items: center; justify-content: center; flex: none; transition: background-color .2s ease, color .2s ease, border-color .2s ease; }
.theme-btn:hover { color: var(--acc); border-color: var(--bd-acc2); }
.theme-btn .i { transition: transform .4s cubic-bezier(.2,.7,.2,1), opacity .25s ease; }
.theme-btn .t-sun { display: none; }
:root[data-theme="dark"] .theme-btn .t-sun { display: block; }
:root[data-theme="dark"] .theme-btn .t-moon { display: none; }
.theme-btn:active .i { transform: rotate(-30deg) scale(.9); }
.tiroir-bas .theme-btn { width: 44px; height: 44px; }
/* Transition douce au changement de thème (classe posée un instant par le script ; jamais si mouvement réduit) */
html.theme-anim, html.theme-anim *, html.theme-anim *::before, html.theme-anim *::after { transition: background-color .35s ease, border-color .35s ease, color .35s ease, fill .35s ease, box-shadow .35s ease !important; }
@media (prefers-reduced-motion: reduce) { html.theme-anim, html.theme-anim * { transition: none !important; } }
@media (max-width: 699px) { .hdr-in > .theme-btn { display: none; } }

:root[data-theme="dark"] .badge-ids { color: var(--oktx); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .badge-ids { color: var(--oktx); } }
.piedc { background: #fff; color: #0F1E36; }
:root[data-theme="dark"] .piedc { border-color: transparent; box-shadow: 0 0 0 1px rgba(255,255,255,.06), 0 20px 40px -24px rgba(0,0,0,.7); }
/* Mineur 8 : pas de rotation de l'icône du thème si mouvement réduit */
@media (prefers-reduced-motion: reduce) { .theme-btn .i, .theme-btn:active .i { transition: none; transform: none; } }
/* Majeur 2 : l'impression utilise toujours le thème clair */
@media print {
    :root, :root[data-theme="dark"], :root:not([data-theme="light"]) {
        --page: #fff; --surface: #fff; --surface-2: #F1F5FA; --surface-3: #EEF2F7; --tint-0: #F8FBFE; --tint-1: #EEF4FA; --tint-2: #E8F2F9;
        --bg: #F6FAFD; --bg2: #E4F1FA; --line: #E3EAF4; --ink: #0F1E36; --ink2: #53627A; --ink3: #5F6880; --ink-soft: #2A3A55; --chip-tx: #3E4C63;
        --prose: #26354F; --acc: #1F6E9C; --navy-tx: #144B60; --okbg: #E6F6EE; --oktx: #0B7048; --orgbg: #FDEEE5; --orgtx: #A64A1C; --redtx: #C8323A;
        --pro-1: #F3F8FC; --pro-2: #EAF3FA; --text: #0F1E36; --muted: #53627A;
        color-scheme: light;
    }
    :root[data-theme="dark"] .wv, :root:not([data-theme="light"]) .wv { opacity: 1; }
    .logo-d { display: none !important; }
}
body:has(#burger[aria-expanded="true"]) .mbar { display: none !important; }
