/* =====================================================================
   ASSANI CONSULTING — Plateforme clients
   Noir, ivoire et or champagne. Typographies : Cormorant Garamond + Inter.
   ===================================================================== */
/* Polices hébergées avec le site (licence SIL Open Font) */
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 500; font-display: swap; src: url(fonts/cormorant-garamond-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 600; font-display: swap; src: url(fonts/cormorant-garamond-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 500; font-display: swap; src: url(fonts/cormorant-garamond-latin-500-italic.woff2) format("woff2"); }
@font-face { font-family: Inter; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/inter-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: Inter; font-style: normal; font-weight: 500; font-display: swap; src: url(fonts/inter-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: Inter; font-style: normal; font-weight: 600; font-display: swap; src: url(fonts/inter-latin-600-normal.woff2) format("woff2"); }
:root {
  --paper: #f7f4ee; --paper-2: #efe9df; --card: #fffdf9; --glass: rgba(255, 253, 249, .78);
  --ink: #14120f; --ink-2: #2b2723; --muted: #6e665c; --faint: #9c9387;
  --line: #e4ddd1; --line-2: #d6cdbf;
  --gold: #a9844b; --gold-2: #c6a46c; --gold-soft: #f2e9d9; --gold-ink: #7b5d2e;
  --night: #0e0d0b; --night-2: #1a1815; --night-line: #2e2a25; --night-ink: #f4efe6; --night-muted: #b3aa9c;
  --ok: #2d7650; --ok-soft: #e4f1e9; --warn: #9a6a12; --warn-soft: #f8eed8; --danger: #b0322a; --danger-soft: #f8e5e2; --info-soft: #e8edf4;
  --radius: 18px; --radius-sm: 12px; --radius-xs: 9px;
  --shadow: 0 1px 2px rgba(20, 18, 15, .04), 0 12px 32px -12px rgba(20, 18, 15, .14);
  --shadow-lg: 0 2px 6px rgba(20, 18, 15, .05), 0 30px 70px -24px rgba(20, 18, 15, .28);
  --serif: "Cormorant Garamond", "Cormorant", Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0d0c0a; --paper-2: #151310; --card: #171512; --glass: rgba(23, 21, 18, .78);
    --ink: #f3eee5; --ink-2: #ded7cb; --muted: #a59c8f; --faint: #7d7569;
    --line: #2a2621; --line-2: #3a352e;
    --gold: #c9a76e; --gold-2: #d9bb85; --gold-soft: #2a2319; --gold-ink: #e3c690;
    --ok: #67b98c; --ok-soft: #15281e; --warn: #e0b45c; --warn-soft: #2b2314; --danger: #ef8a80; --danger-soft: #2e1714; --info-soft: #1a1f27;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 32px -12px rgba(0, 0, 0, .6);
    --shadow-lg: 0 30px 70px -24px rgba(0, 0, 0, .8);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0d0c0a; --paper-2: #151310; --card: #171512; --glass: rgba(23, 21, 18, .78);
  --ink: #f3eee5; --ink-2: #ded7cb; --muted: #a59c8f; --faint: #7d7569;
  --line: #2a2621; --line-2: #3a352e;
  --gold: #c9a76e; --gold-2: #d9bb85; --gold-soft: #2a2319; --gold-ink: #e3c690;
  --ok: #67b98c; --ok-soft: #15281e; --warn: #e0b45c; --warn-soft: #2b2314; --danger: #ef8a80; --danger-soft: #2e1714; --info-soft: #1a1f27;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 32px -12px rgba(0, 0, 0, .6);
  --shadow-lg: 0 30px 70px -24px rgba(0, 0, 0, .8);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 15.5px/1.6 var(--sans); font-variant-numeric: lining-nums; font-feature-settings: "lnum" 1; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -.01em; }
p { margin: 0; }
::selection { background: var(--gold-soft); color: var(--ink); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 6px; }
.serif { font-family: var(--serif); }
.wrap { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.hidden { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Bandeau démo ---------- */
.demo-bar { background: var(--night); color: var(--night-ink); font-size: 12.5px; text-align: center; padding: 7px 16px; letter-spacing: .01em; }
.demo-bar b { color: var(--gold-2); font-weight: 600; }

/* ---------- En-tête ---------- */
.header { position: sticky; top: 0; z-index: 40; background: var(--glass); backdrop-filter: saturate(1.6) blur(18px); -webkit-backdrop-filter: saturate(1.6) blur(18px); border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent); }
.nav { height: 72px; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand img { height: 34px; width: auto; }
.brand .wm { display: flex; flex-direction: column; line-height: 1; }
.brand .wm b { font: 600 21px/1 var(--serif); letter-spacing: .16em; }
.brand .wm small { font: 500 7.5px/1 var(--sans); letter-spacing: .52em; margin-top: 5px; color: var(--ink-2); }
.logo-dark { display: none !important; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .logo-light { display: none !important; } :root:not([data-theme="light"]) .logo-dark { display: block !important; } }
:root[data-theme="dark"] .logo-light { display: none !important; }
:root[data-theme="dark"] .logo-dark { display: block !important; }
.nav-links { display: flex; gap: 4px; margin-left: 8px; }
.nav-links a { padding: 8px 13px; border-radius: 999px; font-size: 14px; color: var(--ink-2); font-weight: 500; transition: background .2s, color .2s; }
.nav-links a:hover { background: var(--paper-2); }
.nav-links a.on { color: var(--ink); background: var(--paper-2); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.icon-btn { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; border: 0; background: transparent; cursor: pointer; color: var(--ink-2); transition: background .2s; }
.icon-btn:hover { background: var(--paper-2); }
.icon-btn svg { width: 19px; height: 19px; }
.burger { display: none; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: var(--paper); display: grid; place-items: center; font: 600 13px var(--sans); letter-spacing: .02em; }

/* ---------- Boutons ---------- */
.btn { --b: var(--ink); --t: var(--paper); display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--b); background: var(--b); color: var(--t); font-weight: 550; font-size: 14.5px; cursor: pointer; white-space: nowrap; transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .2s, opacity .2s; text-decoration: none; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 10px 24px -10px color-mix(in srgb, var(--b) 70%, transparent); }
.btn:active { transform: translateY(0); }
.btn svg { width: 17px; height: 17px; }
.btn.gold { --b: var(--gold); --t: #fff; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn.ghost:hover { background: var(--card); box-shadow: none; }
.btn.light { --b: var(--night-ink); --t: var(--night); }
.btn.danger { --b: var(--danger); --t: #fff; }
.btn.wa { --b: #1f8f55; --t: #fff; }
.btn.sm { min-height: 34px; padding: 0 14px; font-size: 13px; }
.btn.lg { min-height: 52px; padding: 0 28px; font-size: 15.5px; }
.btn.block { width: 100%; }
.btn[disabled], .btn.busy { opacity: .55; pointer-events: none; }
.btn.busy::after { content: ""; width: 14px; height: 14px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
.link { color: var(--gold-ink); font-weight: 550; border: 0; background: none; padding: 0; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.link:hover { text-decoration: underline; text-underline-offset: 3px; }
.link svg { width: 15px; height: 15px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Typographie éditoriale ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 600 11.5px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--gold-ink); }
.eyebrow::before { content: ""; width: 22px; height: 1px; background: var(--gold); }
.display { font: 500 clamp(44px, 6.4vw, 86px)/1.02 var(--serif); letter-spacing: -.025em; }
.display em { font-style: italic; color: var(--gold); }
.h2 { font: 500 clamp(34px, 4.2vw, 54px)/1.06 var(--serif); letter-spacing: -.02em; }
.h2 em { font-style: italic; color: var(--gold); }
.h3 { font: 600 24px/1.2 var(--serif); }
.lead { font-size: clamp(16.5px, 1.6vw, 19px); line-height: 1.65; color: var(--muted); max-width: 600px; }

/* ---------- Accueil ---------- */
.hero { position: relative; padding: clamp(64px, 10vw, 128px) 0 clamp(56px, 8vw, 96px); text-align: center; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: -30% -10% auto; height: 120%; background: radial-gradient(closest-side, color-mix(in srgb, var(--gold-2) 22%, transparent), transparent 70%); opacity: .7; pointer-events: none; }
.hero > .wrap { position: relative; }
.hero .mark { width: 74px; margin: 0 auto 30px; animation: rise 1s var(--ease) both; }
.hero .display { max-width: 960px; margin: 22px auto 24px; animation: rise 1s .08s var(--ease) both; }
.hero .lead { margin: 0 auto; animation: rise 1s .16s var(--ease) both; }
.hero .actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 36px; animation: rise 1s .24s var(--ease) both; }
.hero .proof { display: flex; justify-content: center; gap: 26px; margin-top: 34px; flex-wrap: wrap; color: var(--muted); font-size: 13.5px; }
.hero .proof span { display: inline-flex; align-items: center; gap: 8px; }
.hero .proof span::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.marquee { border-block: 1px solid var(--line); padding: 26px 0; }
.marquee .row { display: flex; align-items: center; justify-content: center; gap: clamp(26px, 6vw, 72px); flex-wrap: wrap; }
.marquee img { height: 34px; width: auto; opacity: .78; filter: grayscale(1); transition: .3s; }
.marquee img.tall { height: 46px; }
.marquee img:hover { opacity: 1; filter: none; }

.section { padding: clamp(72px, 9vw, 120px) 0; }
.section.tight { padding: clamp(48px, 6vw, 80px) 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 32px; margin-bottom: 44px; }
.section-head .h2 { margin-top: 16px; max-width: 680px; }
.section-head p { max-width: 400px; color: var(--muted); }

.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.pillar { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 34px 30px 30px; min-height: 270px; display: flex; flex-direction: column; transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .3s; }
.pillar:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--line-2); }
.pillar .num { position: absolute; top: 26px; right: 28px; font: italic 500 20px var(--serif); color: var(--faint); }
.pillar .ic { width: 48px; height: 48px; border-radius: 14px; background: var(--gold-soft); color: var(--gold-ink); display: grid; place-items: center; margin-bottom: 26px; }
.pillar .ic svg { width: 22px; height: 22px; }
.pillar h3 { font: 600 28px/1.1 var(--serif); margin-bottom: 10px; }
.pillar p { color: var(--muted); font-size: 14.5px; }
.pillar .go { margin-top: auto; padding-top: 22px; }

/* ---------- Cartes produits ---------- */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid.four { grid-template-columns: repeat(4, 1fr); }
.pcard { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .3s; }
.pcard:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--line-2); }
.pcard .body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.pcard .over { font: 600 10.5px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--gold-ink); }
.pcard h3 { font: 600 25px/1.15 var(--serif); margin: 10px 0 8px; }
.pcard p { color: var(--muted); font-size: 14px; }
.pcard .foot { margin-top: auto; padding-top: 20px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.price { font: 600 15px var(--sans); letter-spacing: -.01em; }
.price small { font-weight: 450; color: var(--muted); font-size: 12.5px; }
.price.req { color: var(--muted); font-weight: 500; font-size: 13.5px; }
.owned { display: inline-flex; align-items: center; gap: 6px; color: var(--ok); font-size: 12.5px; font-weight: 600; }
.owned svg { width: 14px; height: 14px; }

.cover { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--night); color: var(--night-ink); }
.cover img.photo { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.pcard:hover .cover img.photo { transform: scale(1.04); }
.cover.gen { display: flex; flex-direction: column; justify-content: flex-end; padding: 22px 24px; background:
  radial-gradient(120% 90% at 100% 0%, color-mix(in srgb, var(--gold-2) 38%, transparent), transparent 55%),
  linear-gradient(160deg, #1d1a16, #0d0c0a 70%); }
.cover.gen::before { content: ""; position: absolute; inset: 14px; border: 1px solid rgba(201, 167, 110, .28); border-radius: 10px; pointer-events: none; }
.cover.gen .k { font: 600 10px/1 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--gold-2); }
.cover.gen .t { font: 500 32px/1.05 var(--serif); margin-top: 10px; color: #f7f1e6; max-width: 90%; }
.cover.gen .t em { font-style: italic; color: var(--gold-2); }
.cover.gen .mono { position: absolute; right: 8%; top: 50%; transform: translateY(-50%); font: italic 500 clamp(120px, 15vw, 190px)/1 var(--serif); color: transparent; -webkit-text-stroke: 1px rgba(214, 186, 136, .55); letter-spacing: -.02em; transition: transform .8s var(--ease); }
.pcard:hover .cover.gen .mono { transform: translateY(-50%) scale(1.05); }
.cover.gen.ebook { container-type: inline-size; display: flex; align-items: center; justify-content: center; padding: 22px; background: radial-gradient(90% 70% at 0% 100%, rgba(201, 167, 110, .3), transparent 60%), linear-gradient(200deg, #221d17, #0d0c0a); }
.cover.gen.ebook::before { display: none; }
.book { width: 31%; width: 30cqw; max-width: 220px; overflow: hidden; aspect-ratio: 3 / 4.2; background: linear-gradient(135deg, #f7f1e6, #e9dfcd); border-radius: 3px 8px 8px 3px; box-shadow: inset 6px 0 0 rgba(0, 0, 0, .08), 0 18px 40px -10px rgba(0, 0, 0, .7); padding: 12px 10px 12px 14px; padding: 3.2cqw 2.6cqw 3.2cqw 3.8cqw; display: flex; flex-direction: column; color: #14120f; transition: transform .8s var(--ease); }
.pcard:hover .book, .lcard:hover .book { transform: translateY(-4px) rotate(-1.5deg); }
.book .bk { font: 600 6px/1.3 var(--sans); font-size: clamp(5px, 1.35cqw, 9px); letter-spacing: .16em; text-transform: uppercase; color: #8a6a37; }
.book .bt { font: 600 12px/1.1 var(--serif); font-size: clamp(10px, 3.9cqw, 26px); margin-top: auto; hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word; }
.book .bl { width: 26px; height: 1.5px; background: #a9844b; margin-top: 2.5cqw; }
.product .media .book { width: 22cqw; }
.product .media .book .bt { font-size: clamp(12px, 2.4cqw, 26px); }
.product .media .book .bk { font-size: clamp(5px, 1cqw, 9px); }
.cover.logo { background: var(--paper-2); display: grid; place-items: center; padding: 32px; }
.cover.logo img { max-height: 66px; width: auto; max-width: 78%; object-fit: contain; }
.cover.logo img.tall { max-height: 112px; }
.cover .tag { position: absolute; top: 14px; left: 14px; z-index: 2; background: rgba(13, 12, 10, .72); color: #f4efe6; backdrop-filter: blur(8px); border-radius: 999px; font: 600 10.5px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; padding: 7px 10px; }
.cover.logo .tag { background: var(--card); color: var(--ink-2); border: 1px solid var(--line); }

/* ---------- Section sombre (logiciels) ---------- */
.dark { background: var(--night); color: var(--night-ink); position: relative; overflow: hidden; }
.dark::before { content: ""; position: absolute; width: 760px; height: 760px; right: -280px; top: -320px; border-radius: 50%; border: 1px solid rgba(201, 167, 110, .14); box-shadow: 0 0 0 70px rgba(201, 167, 110, .03), 0 0 0 140px rgba(201, 167, 110, .02); pointer-events: none; }
.dark .wrap { position: relative; }
.dark .eyebrow { color: var(--gold-2); }
.dark .section-head p, .dark .muted { color: var(--night-muted); }
.dark .h2 em { color: var(--gold-2); }
.soft { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.soft-card { background: var(--night-2); border: 1px solid var(--night-line); border-radius: var(--radius); padding: 30px 28px; display: flex; flex-direction: column; min-height: 300px; transition: border-color .3s, transform .45s var(--ease); }
.soft-card:hover { border-color: rgba(201, 167, 110, .45); transform: translateY(-4px); }
.soft-card .lg { height: 58px; display: flex; align-items: center; margin-bottom: 26px; }
.soft-card .lg img { max-height: 40px; width: auto; max-width: 240px; }
.soft-card .lg img.tall { max-height: 58px; }
.soft-card .over { font: 600 10.5px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--gold-2); }
.soft-card h3 { font: 600 26px/1.15 var(--serif); margin: 10px 0 8px; }
.soft-card p { color: var(--night-muted); font-size: 14px; }
.soft-card .sub { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.soft-card .sub a { border: 1px solid var(--night-line); border-radius: 999px; padding: 6px 12px; font-size: 12.5px; color: var(--night-ink); transition: .2s; }
.soft-card .sub a:hover { border-color: var(--gold-2); color: var(--gold-2); }
.soft-card .foot { margin-top: auto; padding-top: 24px; display: flex; justify-content: space-between; align-items: center; }
.soft-card .link { color: var(--gold-2); }

/* ---------- Services ---------- */
.services { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 7vw, 96px); align-items: start; }
.srv-list { border-top: 1px solid var(--line-2); }
.srv { display: grid; grid-template-columns: 52px 1fr auto; gap: 18px; align-items: center; padding: 26px 0; border-bottom: 1px solid var(--line-2); }
.srv .n { font: italic 500 22px var(--serif); color: var(--gold); }
.srv h3 { font: 600 25px/1.2 var(--serif); margin-bottom: 4px; }
.srv p { color: var(--muted); font-size: 14px; }

/* ---------- Étapes ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); overflow: hidden; }
.step { padding: 34px 30px; border-right: 1px solid var(--line); }
.step:last-child { border-right: 0; }
.step .n { font: 500 46px/1 var(--serif); color: var(--gold); }
.step h3 { font: 600 22px/1.2 var(--serif); margin: 18px 0 8px; }
.step p { color: var(--muted); font-size: 14px; }

/* ---------- Appel à l'action ---------- */
.cta { background: var(--night); color: var(--night-ink); border-radius: 28px; padding: clamp(40px, 6vw, 72px); display: flex; align-items: center; justify-content: space-between; gap: 32px; position: relative; overflow: hidden; }
.cta::after { content: ""; position: absolute; width: 420px; height: 420px; border-radius: 50%; right: -120px; bottom: -220px; background: radial-gradient(closest-side, rgba(201, 167, 110, .35), transparent); }
.cta > * { position: relative; z-index: 1; }
.cta .h2 { color: #f7f1e6; }
.cta p { color: var(--night-muted); margin-top: 12px; max-width: 520px; }
.cta .eyebrow { color: var(--gold-2); }

/* ---------- Pied de page ---------- */
.footer { border-top: 1px solid var(--line); padding: 54px 0 40px; margin-top: 40px; }
.footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer h4 { font: 600 11px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--faint); margin-bottom: 16px; }
.footer .cols a, .footer .cols span { display: block; color: var(--ink-2); font-size: 14px; padding: 4px 0; }
.footer .cols a:hover { color: var(--gold-ink); }
.footer .legal { margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; color: var(--faint); font-size: 12.5px; flex-wrap: wrap; }
.footer .big img { height: 92px; width: auto; margin-bottom: 18px; }

/* ---------- Catalogue ---------- */
.page-head { padding: clamp(48px, 7vw, 88px) 0 30px; }
.page-head .h2 { margin: 16px 0 14px; }
.tabs { display: inline-flex; gap: 4px; padding: 4px; background: var(--paper-2); border-radius: 999px; flex-wrap: wrap; }
.tabs a, .tabs button { border: 0; background: none; cursor: pointer; padding: 9px 18px; border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--ink-2); transition: .2s; }
.tabs a.on, .tabs button.on { background: var(--card); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .08), 0 4px 12px -4px rgba(0, 0, 0, .1); }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.search { position: relative; }
.search input { height: 42px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); padding: 0 16px 0 40px; min-width: 260px; outline: none; transition: border-color .2s, box-shadow .2s; }
.search input:focus { border-color: var(--gold); box-shadow: 0 0 0 4px color-mix(in srgb, var(--gold) 15%, transparent); }
.search svg { position: absolute; left: 14px; top: 12px; width: 18px; height: 18px; color: var(--faint); }
.empty { text-align: center; padding: 64px 20px; color: var(--muted); border: 1px dashed var(--line-2); border-radius: var(--radius); }
.empty .ic { width: 52px; height: 52px; border-radius: 50%; background: var(--paper-2); display: grid; place-items: center; margin: 0 auto 16px; color: var(--gold-ink); }
.empty .ic svg { width: 22px; height: 22px; }
.empty h3 { font: 600 24px var(--serif); color: var(--ink); margin-bottom: 6px; }
.empty .btn { margin-top: 20px; }

/* ---------- Fiche produit ---------- */
.product { display: grid; grid-template-columns: 1.35fr .9fr; gap: clamp(32px, 5vw, 72px); align-items: start; padding: clamp(36px, 5vw, 64px) 0 40px; }
.crumbs { font-size: 13px; color: var(--muted); display: flex; gap: 8px; align-items: center; margin-bottom: 24px; }
.crumbs a:hover { color: var(--ink); }
.product .media { border-radius: var(--radius); overflow: hidden; margin-bottom: 36px; border: 1px solid var(--line); }
.product .media .cover { aspect-ratio: 16 / 8; }
.product .media .cover.gen .mono { font-size: clamp(160px, 22vw, 280px); }
.product h1 { font: 500 clamp(40px, 5vw, 64px)/1.04 var(--serif); letter-spacing: -.02em; margin: 14px 0 14px; }
.product .sub { font-size: 19px; color: var(--muted); line-height: 1.55; }
.prose { font-size: 16px; line-height: 1.75; color: var(--ink-2); margin-top: 26px; white-space: pre-line; }
.checks { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; }
.checks li svg { width: 20px; height: 20px; color: var(--gold); flex-shrink: 0; margin-top: 2px; }
.facts { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.chip { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 6px 13px; font-size: 13px; color: var(--ink-2); }
.chip svg { width: 14px; height: 14px; color: var(--gold); }
.buy { position: sticky; top: 96px; background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 30px; box-shadow: var(--shadow); }
.buy .amount { font: 600 40px/1 var(--serif); letter-spacing: -.01em; margin: 10px 0 4px; }
.buy .amount small { font: 500 15px var(--sans); color: var(--muted); }
.buy .note { color: var(--muted); font-size: 13.5px; }
.buy .btn { margin-top: 22px; }
.buy .assure { list-style: none; padding: 20px 0 0; margin: 22px 0 0; border-top: 1px solid var(--line); display: grid; gap: 11px; font-size: 13.5px; color: var(--muted); }
.buy .assure li { display: flex; gap: 10px; align-items: flex-start; }
.buy .assure svg { width: 17px; height: 17px; color: var(--gold); flex-shrink: 0; margin-top: 1px; }
.plans { display: grid; gap: 10px; margin-top: 18px; }
.plan { display: flex; align-items: center; gap: 14px; border: 1.5px solid var(--line); border-radius: 14px; padding: 14px 16px; cursor: pointer; transition: border-color .2s, background .2s; }
.plan:hover { border-color: var(--line-2); }
.plan.on { border-color: var(--ink); background: var(--paper); }
.plan input { accent-color: var(--ink); width: 18px; height: 18px; margin: 0; }
.plan .pl { flex: 1; font-weight: 550; }
.plan .pp { font-weight: 600; }
.syllabus { margin-top: 48px; }
.syllabus h2 { font: 600 30px var(--serif); margin-bottom: 18px; }
.mod { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--card); margin-bottom: 12px; overflow: hidden; }
.mod-h { padding: 15px 18px; font-weight: 600; display: flex; justify-content: space-between; color: var(--ink); background: var(--paper-2); font-size: 14px; }
.les { display: flex; align-items: center; gap: 12px; padding: 13px 18px; border-top: 1px solid var(--line); font-size: 14.5px; }
.les svg { width: 17px; height: 17px; color: var(--faint); flex-shrink: 0; }
.les .d { margin-left: auto; color: var(--faint); font-size: 13px; }
.badge { display: inline-flex; align-items: center; gap: 5px; border-radius: 999px; padding: 3px 10px; font: 600 11.5px/1.5 var(--sans); background: var(--paper-2); color: var(--ink-2); white-space: nowrap; }
.badge.gold { background: var(--gold-soft); color: var(--gold-ink); }
.badge.ok { background: var(--ok-soft); color: var(--ok); }
.badge.warn { background: var(--warn-soft); color: var(--warn); }
.badge.danger { background: var(--danger-soft); color: var(--danger); }
.badge.info { background: var(--info-soft); color: var(--ink-2); }

/* ---------- Authentification ---------- */
.auth { min-height: calc(100vh - 72px); display: grid; grid-template-columns: 1fr 1fr; }
.auth .art { background: var(--night); color: var(--night-ink); padding: 56px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.auth .art::before { content: ""; position: absolute; width: 600px; height: 600px; border-radius: 50%; left: -200px; bottom: -300px; background: radial-gradient(closest-side, rgba(201, 167, 110, .3), transparent); }
.auth .art > * { position: relative; }
.auth .art img { height: 120px; width: auto; }
.auth .art blockquote { margin: 0; font: italic 500 clamp(26px, 2.6vw, 36px)/1.25 var(--serif); max-width: 460px; }
.auth .art .muted { color: var(--night-muted); }
.auth .panel { display: grid; place-items: center; padding: 48px 24px; }
.auth form { width: min(420px, 100%); }
.auth h1 { font: 500 44px/1.05 var(--serif); margin: 12px 0 8px; }
.auth .switch { margin-top: 22px; text-align: center; color: var(--muted); font-size: 14px; }

/* ---------- Formulaires ---------- */
.field { display: grid; gap: 7px; margin-top: 16px; }
.field > span { font-size: 13px; font-weight: 550; color: var(--ink-2); }
.field > span i { font-style: normal; font-weight: 400; color: var(--faint); }
.input, .field input, .field select, .field textarea { width: 100%; min-height: 46px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--card); padding: 10px 14px; outline: none; transition: border-color .2s, box-shadow .2s; font-size: 15px; }
.field textarea { min-height: 110px; resize: vertical; line-height: 1.55; }
.input:focus, .field input:focus, .field select:focus, .field textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 4px color-mix(in srgb, var(--gold) 15%, transparent); }
.field .hint { font-size: 12.5px; color: var(--muted); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.row3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0 14px; }
.check { display: flex; gap: 10px; align-items: flex-start; margin-top: 16px; cursor: pointer; font-size: 14px; }
.check input { width: 18px; height: 18px; accent-color: var(--ink); margin: 2px 0 0; flex-shrink: 0; }
.form-error { margin-top: 16px; padding: 12px 14px; border-radius: 12px; background: var(--danger-soft); color: var(--danger); font-size: 14px; }
.form-ok { margin-top: 16px; padding: 12px 14px; border-radius: 12px; background: var(--ok-soft); color: var(--ok); font-size: 14px; }
.callout { padding: 16px 18px; border-radius: 14px; background: var(--gold-soft); color: var(--ink-2); font-size: 14px; display: flex; gap: 12px; align-items: flex-start; }
.callout svg { width: 19px; height: 19px; color: var(--gold-ink); flex-shrink: 0; margin-top: 1px; }
.callout.info { background: var(--info-soft); }
.callout.warn { background: var(--warn-soft); }
.callout.danger { background: var(--danger-soft); }

/* ---------- Espace client & console ---------- */
.shell { display: grid; grid-template-columns: 252px 1fr; min-height: calc(100vh - 72px); }
.side { border-right: 1px solid var(--line); padding: 28px 16px; position: sticky; top: 72px; height: calc(100vh - 72px); overflow-y: auto; display: flex; flex-direction: column; }
.side .who { display: flex; gap: 12px; align-items: center; padding: 6px 10px 22px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.side .who b { display: block; font-size: 14px; line-height: 1.3; }
.side .who small { color: var(--muted); font-size: 12px; word-break: break-all; }
.side nav { display: grid; gap: 2px; }
.side nav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 11px; color: var(--ink-2); font-size: 14.5px; font-weight: 500; transition: background .2s; }
.side nav a svg { width: 18px; height: 18px; color: var(--muted); }
.side nav a:hover { background: var(--paper-2); }
.side nav a.on { background: var(--ink); color: var(--paper); }
.side nav a.on svg { color: var(--gold-2); }
.side nav a .cnt { margin-left: auto; background: var(--gold); color: #fff; border-radius: 999px; font-size: 11px; font-weight: 700; padding: 1px 8px; }
.side .sep { font: 600 10.5px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--faint); padding: 18px 12px 8px; }
.side .bottom { margin-top: auto; padding-top: 18px; }
.side.admin { background: var(--night); color: var(--night-ink); border-color: var(--night-line); }
.side.admin .who { border-color: var(--night-line); }
.side.admin .who small, .side.admin nav a svg { color: var(--night-muted); }
.side.admin nav a { color: var(--night-ink); }
.side.admin nav a:hover { background: var(--night-2); }
.side.admin nav a.on { background: var(--gold); color: #fff; }
.side.admin nav a.on svg { color: #fff; }
.side.admin .sep { color: #7f776b; }
.side.admin .avatar { background: var(--gold); color: #fff; }
.main { padding: 36px clamp(20px, 4vw, 52px) 80px; min-width: 0; }
.main-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 28px; flex-wrap: wrap; }
.main-head h1 { font: 500 clamp(34px, 3.6vw, 46px)/1.08 var(--serif); letter-spacing: -.015em; margin-top: 8px; }
.main-head p { color: var(--muted); margin-top: 6px; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.panel + .panel { margin-top: 18px; }
.panel h2 { font: 600 22px var(--serif); margin-bottom: 4px; }
.panel .ph { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
.kpi { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 18px 20px; }
.kpi small { color: var(--muted); font-size: 12.5px; font-weight: 500; }
.kpi b { display: block; font: 600 30px/1.15 var(--serif); margin-top: 6px; letter-spacing: -.01em; }
.kpi.hl { background: var(--night); color: var(--night-ink); border-color: var(--night); }
.kpi.hl small { color: var(--night-muted); }
.kpi.hl b { color: var(--gold-2); }
.cols2 { display: grid; grid-template-columns: 1.3fr 1fr; gap: 18px; align-items: start; }

.redeem { background: var(--night); color: var(--night-ink); border-radius: 22px; padding: clamp(26px, 4vw, 40px); position: relative; overflow: hidden; }
.redeem::after { content: ""; position: absolute; width: 380px; height: 380px; border-radius: 50%; right: -120px; top: -200px; background: radial-gradient(closest-side, rgba(201, 167, 110, .35), transparent); pointer-events: none; }
.redeem > * { position: relative; z-index: 1; }
.redeem h2 { font: 500 32px/1.1 var(--serif); color: #f7f1e6; }
.redeem p { color: var(--night-muted); margin-top: 8px; }
.code-row { display: flex; gap: 10px; margin-top: 22px; flex-wrap: wrap; }
.code-input { flex: 1; min-width: 240px; height: 56px; border-radius: 14px; border: 1px solid #3a352e; background: #12100e; color: #f7f1e6; font: 600 20px/1 ui-monospace, "SF Mono", Menlo, Consolas, monospace; letter-spacing: .12em; padding: 0 18px; text-transform: uppercase; outline: none; }
.code-input:focus { border-color: var(--gold-2); box-shadow: 0 0 0 4px rgba(201, 167, 110, .2); }
.code-input::placeholder { color: #5d564c; }

.lib { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.lcard { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.lcard .cover { aspect-ratio: 16 / 9; }
.lcard .cover.gen .mono { font-size: 130px; }
.lcard .body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; gap: 6px; }
.lcard h3 { font: 600 21px/1.2 var(--serif); }
.lcard .meta { color: var(--muted); font-size: 13px; }
.lcard .act { margin-top: auto; padding-top: 14px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.progress { height: 5px; background: var(--paper-2); border-radius: 999px; overflow: hidden; margin-top: 8px; }
.progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), var(--gold-2)); border-radius: inherit; transition: width .6s var(--ease); }

.keybox { margin-top: 12px; display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; background: var(--paper-2); font: 600 15px ui-monospace, "SF Mono", Menlo, Consolas, monospace; letter-spacing: .06em; word-break: break-all; }
.keybox .icon-btn { width: 34px; height: 34px; margin-left: auto; flex-shrink: 0; }

/* ---------- Tableaux ---------- */
.table-wrap { overflow-x: auto; margin: 0 -24px; padding: 0 24px; }
table.t { width: 100%; border-collapse: collapse; font-size: 14px; }
table.t th { text-align: left; font: 600 11px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--faint); padding: 12px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.t td { padding: 13px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.t tr:last-child td { border-bottom: 0; }
table.t tr.click { cursor: pointer; transition: background .15s; }
table.t tr.click:hover td { background: var(--paper); }
table.t td b { font-weight: 600; }
table.t td .sub { color: var(--muted); font-size: 12.5px; }
table.t .r { text-align: right; }
table.t .acts { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }
.mono { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; letter-spacing: .03em; }

.list { display: grid; }
.li { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.li:last-child { border-bottom: 0; }
.li .grow { flex: 1; min-width: 0; }
.li .grow b { display: block; font-weight: 600; font-size: 14.5px; }
.li .grow small { color: var(--muted); font-size: 12.5px; }
.li .ic { width: 38px; height: 38px; border-radius: 11px; background: var(--paper-2); display: grid; place-items: center; color: var(--gold-ink); flex-shrink: 0; }
.li .ic svg { width: 18px; height: 18px; }

/* ---------- Lecteur de formation ---------- */
.player { display: grid; grid-template-columns: 1fr 340px; min-height: calc(100vh - 72px); }
.stage { padding: 28px clamp(18px, 3vw, 44px) 60px; min-width: 0; }
.stage .back { display: inline-flex; gap: 8px; align-items: center; color: var(--muted); font-size: 14px; margin-bottom: 18px; }
.stage .back svg { width: 16px; height: 16px; }
.screen { position: relative; border-radius: 18px; overflow: hidden; background: #000; aspect-ratio: 16 / 9; box-shadow: var(--shadow-lg); user-select: none; -webkit-user-select: none; }
.screen iframe, .screen video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.screen.doc { background: var(--card); aspect-ratio: auto; min-height: 320px; box-shadow: none; border: 1px solid var(--line); }
.screen .docbody { padding: clamp(24px, 4vw, 48px); font-size: 16.5px; line-height: 1.8; color: var(--ink-2); max-width: 760px; }
.screen .docbody h3 { font: 600 26px/1.2 var(--serif); color: var(--ink); margin: 26px 0 10px; }
.screen .docbody h3:first-child { margin-top: 0; }
.screen .docbody p { margin: 0 0 14px; }
.screen .docbody ul { margin: 0 0 14px; padding-left: 22px; }
.wmk { position: absolute; inset: 0; pointer-events: none; z-index: 5; overflow: hidden; }
.wmk .tile { position: absolute; inset: -50%; display: flex; flex-wrap: wrap; align-content: flex-start; gap: 70px 90px; transform: rotate(-24deg); opacity: .07; font: 600 14px var(--sans); color: #fff; mix-blend-mode: difference; }
.screen.doc .wmk .tile { color: var(--ink); mix-blend-mode: normal; opacity: .05; }
.wmk .float { position: absolute; font: 600 12px var(--sans); color: rgba(255, 255, 255, .55); background: rgba(0, 0, 0, .28); padding: 5px 9px; border-radius: 6px; transition: top 1.2s var(--ease), left 1.2s var(--ease); text-shadow: 0 1px 2px rgba(0, 0, 0, .4); }
.screen.doc .wmk .float { color: var(--muted); background: var(--paper-2); text-shadow: none; }
.stage h1 { font: 500 clamp(30px, 3.4vw, 42px)/1.1 var(--serif); margin: 26px 0 8px; }
.stage .nav2 { display: flex; justify-content: space-between; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.outline { border-left: 1px solid var(--line); background: var(--card); position: sticky; top: 72px; height: calc(100vh - 72px); overflow-y: auto; }
.outline .oh { padding: 24px 22px 18px; border-bottom: 1px solid var(--line); }
.outline .oh h2 { font: 600 22px/1.2 var(--serif); }
.outline .mh { padding: 16px 22px 8px; font: 600 10.5px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--faint); }
.outline a:not(.btn) { display: flex; gap: 12px; padding: 11px 22px; font-size: 14px; align-items: flex-start; color: var(--ink-2); transition: background .15s; }
.outline a:not(.btn):hover { background: var(--paper); }
.outline a.on:not(.btn) { background: var(--paper-2); color: var(--ink); font-weight: 600; box-shadow: inset 3px 0 0 var(--gold); }
.outline a .dot { width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--line-2); flex-shrink: 0; display: grid; place-items: center; margin-top: 1px; }
.outline a .dot.done { background: var(--gold); border-color: var(--gold); color: #fff; }
.outline a .dot svg { width: 12px; height: 12px; }
.outline a .dd { margin-left: auto; color: var(--faint); font-size: 12px; white-space: nowrap; }

/* ---------- Fenêtres & notifications ---------- */
.overlay { position: fixed; inset: 0; z-index: 100; background: rgba(10, 9, 8, .45); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); display: grid; place-items: center; padding: 20px; animation: fade .25s ease both; }
.modal { width: min(560px, 100%); max-height: calc(100vh - 40px); overflow-y: auto; background: var(--card); border-radius: 24px; box-shadow: var(--shadow-lg); padding: 30px; animation: pop .35s var(--ease) both; position: relative; }
.modal.wide { width: min(760px, 100%); }
.modal h2 { font: 500 32px/1.1 var(--serif); margin: 6px 0 8px; padding-right: 40px; }
.modal .x { position: absolute; top: 16px; right: 16px; }
.modal .foot { display: flex; justify-content: flex-end; gap: 10px; margin-top: 26px; flex-wrap: wrap; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.98); } }
.toasts { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 200; display: grid; gap: 8px; justify-items: center; pointer-events: none; }
.toast { background: var(--ink); color: var(--paper); padding: 12px 18px; border-radius: 999px; font-size: 14px; box-shadow: var(--shadow-lg); animation: pop .35s var(--ease) both; display: flex; gap: 10px; align-items: center; max-width: calc(100vw - 32px); }
.toast.err { background: var(--danger); color: #fff; }
.toast svg { width: 17px; height: 17px; color: var(--gold-2); flex-shrink: 0; }
.toast.err svg { color: #fff; }
.ordersteps { display: grid; gap: 14px; margin: 20px 0 6px; counter-reset: s; }
.ordersteps li { list-style: none; display: flex; gap: 14px; align-items: flex-start; font-size: 14.5px; }
.ordersteps li::before { counter-increment: s; content: counter(s); width: 28px; height: 28px; border-radius: 50%; background: var(--gold-soft); color: var(--gold-ink); display: grid; place-items: center; font: 600 13px var(--sans); flex-shrink: 0; }
.ordersteps { padding: 0; }
.summary { border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; display: flex; gap: 14px; align-items: center; margin-top: 16px; }
.summary b { display: block; font: 600 20px var(--serif); }
.summary .price { margin-left: auto; }
.success-mark { width: 64px; height: 64px; border-radius: 50%; background: var(--ok-soft); color: var(--ok); display: grid; place-items: center; margin-bottom: 14px; animation: pop .5s var(--ease) both; }
.success-mark svg { width: 30px; height: 30px; }
.codes-out { display: grid; gap: 8px; margin-top: 16px; }
.codes-out .keybox { margin-top: 0; font-size: 17px; }

.skeleton { background: linear-gradient(90deg, var(--paper-2), var(--card), var(--paper-2)); background-size: 200% 100%; animation: sh 1.4s linear infinite; border-radius: 12px; }
@keyframes sh { to { background-position: -200% 0; } }
.loading { min-height: 50vh; display: grid; place-items: center; }
.loading::after { content: ""; width: 28px; height: 28px; border: 2px solid var(--line-2); border-top-color: var(--gold); border-radius: 50%; animation: spin .8s linear infinite; }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Mobile ---------- */
.mnav { display: none; }
@media (max-width: 1060px) {
  .grid.four { grid-template-columns: repeat(2, 1fr); }
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .player { grid-template-columns: 1fr; }
  .outline { position: static; height: auto; border-left: 0; border-top: 1px solid var(--line); }
  .cols2 { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .nav-links { display: none; }
  .burger { display: grid; }
  .pillars, .grid, .soft, .steps { grid-template-columns: 1fr 1fr; }
  .steps .step:nth-child(2) { border-right: 0; }
  .steps .step:nth-child(3) { grid-column: 1 / -1; border-top: 1px solid var(--line); }
  .services, .product { grid-template-columns: 1fr; }
  .buy { position: static; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .auth { grid-template-columns: 1fr; }
  .auth .art { display: none; }
  .shell { grid-template-columns: 1fr; }
  .side { display: none; }
  .mnav { display: flex; gap: 6px; overflow-x: auto; padding: 12px 16px; border-bottom: 1px solid var(--line); position: sticky; top: 72px; z-index: 30; background: var(--glass); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); scrollbar-width: none; }
  .mnav::-webkit-scrollbar { display: none; }
  .mnav a { white-space: nowrap; padding: 8px 14px; border-radius: 999px; font-size: 13.5px; font-weight: 500; color: var(--ink-2); border: 1px solid var(--line); background: var(--card); display: inline-flex; gap: 6px; align-items: center; }
  .mnav a.on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
  .mnav.admin a.on { background: var(--gold); border-color: var(--gold); color: #fff; }
  .mnav a .cnt { background: var(--gold); color: #fff; border-radius: 999px; font-size: 10.5px; padding: 0 6px; }
  .footer .cols { grid-template-columns: 1fr 1fr; }
  .cta { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 620px) {
  body { font-size: 15px; }
  .wrap { width: calc(100% - 32px); }
  .nav { height: 64px; gap: 12px; }
  .brand img { height: 30px; }
  .brand .wm b { font-size: 18px; }
  .header .nav-right .btn { display: none; }
  .header .nav-right .btn.keep { display: inline-flex; min-height: 36px; padding: 0 14px; font-size: 13px; }
  .mnav { top: 64px; }
  .side, .outline { top: 64px; }
  .shell, .player, .auth { min-height: calc(100vh - 64px); }
  .pillars, .grid, .grid.four, .soft, .steps { grid-template-columns: 1fr; }
  .steps .step { border-right: 0; border-bottom: 1px solid var(--line); }
  .steps .step:last-child { border-bottom: 0; }
  .steps .step:nth-child(3) { border-top: 0; }
  .srv { grid-template-columns: 34px 1fr; }
  .srv > :last-child { grid-column: 2; justify-self: start; }
  .row2, .row3 { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: 1fr 1fr; gap: 10px; }
  .kpi { padding: 14px 16px; }
  .kpi b { font-size: 24px; }
  .main { padding: 24px 16px 70px; }
  .panel { padding: 18px; }
  .table-wrap { margin: 0 -18px; padding: 0 18px; }
  .modal { padding: 24px 20px; border-radius: 22px; }
  .overlay { padding: 10px; align-items: end; }
  .modal h2 { font-size: 27px; }
  .footer .cols { grid-template-columns: 1fr; }
  .search input { min-width: 0; width: 100%; }
  .search { width: 100%; }
  .toolbar { flex-direction: column; align-items: stretch; }
  .tabs { overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; }
  .tabs a, .tabs button { white-space: nowrap; padding: 8px 14px; }
  .hero .proof { gap: 10px 18px; }
  .code-input { font-size: 17px; letter-spacing: .08em; }
  table.t.stack thead { display: none; }
  table.t.stack tr { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
  table.t.stack td { border: 0; padding: 0; }
  table.t.stack td.r { text-align: left; }
  table.t.stack td.full { grid-column: 1 / -1; }
  table.t.stack .acts { justify-content: flex-start; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } .reveal { opacity: 1; transform: none; } }
@media print { .header, .side, .mnav, .footer, .demo-bar { display: none !important; } }
a.les { transition: background .15s; }
a.les:hover { background: var(--paper); }
a.les:hover span:nth-child(2) { color: var(--gold-ink); }
.li > svg { width: 18px; height: 18px; color: var(--faint); flex-shrink: 0; }
a.li { transition: opacity .2s; }
a.li:hover .grow b { color: var(--gold-ink); }
.tabs { max-width: 100%; }
.cols2 > *, .row2 > *, .row3 > *, .li .grow { min-width: 0; }
.li .grow b, .li .grow small { overflow-wrap: anywhere; }
@media (max-width: 620px) { .li { flex-wrap: wrap; } .li .grow { flex-basis: 60%; } .main-head > div:last-child { max-width: 100%; } .main-head .btn { white-space: normal; } }
/* ---------- Offres (formules) ---------- */
.offers-wrap { margin-top: 48px; }
.offers-wrap h2 { font: 600 30px var(--serif); }
.offers { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 18px; }
.offers.four { grid-template-columns: repeat(2, 1fr); }
.offer-c { background: var(--card); border: 1.5px solid var(--line); border-radius: 18px; padding: 22px 22px 20px; display: flex; flex-direction: column; gap: 10px; transition: border-color .25s, box-shadow .3s var(--ease), transform .3s var(--ease); }
.offer-c:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.offer-c.on { border-color: var(--ink); box-shadow: var(--shadow); }
.offer-c .ol { font: 600 11px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--gold-ink); }
.offer-c .op { font: 600 30px/1.1 var(--serif); }
.offer-c .op small { font: 500 13px var(--sans); color: var(--muted); }
.offer-c .oa { font-size: 13.5px; color: var(--ink-2); }
.offer-c .oa span { display: block; font-size: 11.5px; color: var(--faint); font-weight: 600; letter-spacing: .04em; margin-bottom: 2px; }
.offer-c .on { display: flex; gap: 8px; align-items: center; font-size: 13.5px; color: var(--ink-2); }
.offer-c .on svg { width: 16px; height: 16px; color: var(--gold); flex-shrink: 0; }
.offer-c .btn { margin-top: auto; align-self: flex-start; }
.plan .pl small { display: block; font-weight: 400; font-size: 12px; color: var(--muted); }
.plan .pp { text-align: right; white-space: nowrap; }
.plan .pp small { font-size: 11px; color: var(--muted); font-weight: 500; }
@media (max-width: 620px) { .offers, .offers.four { grid-template-columns: 1fr; } }
.plan-edit { border-top: 1px solid var(--line); padding-top: 6px; margin-top: 14px; }
.plan-edit:first-child { border-top: 0; margin-top: 0; padding-top: 0; }
/* Chiffres : Inter, plus lisible que les chiffres elzéviriens du Garamond */
.offer-c .op, .buy .amount, .kpi b, .step .n { font-family: var(--sans); letter-spacing: -.025em; }
.offer-c .op { font-size: 25px; font-weight: 600; }
.buy .amount { font-size: 34px; }
.kpi b { font-size: 27px; }
.step .n { font-weight: 500; font-size: 40px; }
