/* Charte Dekmak Digital — bleu nuit, indigo électrique, cyan. Aucune ressource externe (RGPD, CSP stricte). */
:root {
  --night: #070b1a;
  --night-2: #0d1430;
  --night-3: #141d42;
  --indigo: #6366f1;
  --violet: #8b5cf6;
  --cyan: #22d3ee;
  --grad: linear-gradient(120deg, #6366f1 0%, #8b5cf6 45%, #22d3ee 100%);
  --bg: #f6f7fb;
  --surface: #ffffff;
  --text: #0f172a;
  --muted: #5b6478;
  --line: #e4e7f0;
  --ok: #10b981;
  --warn: #f59e0b;
  --danger: #ef4444;
  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 8px 30px rgba(15, 23, 42, .07);
  --font: "Inter", "Segoe UI Variable", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", "Cascadia Code", Consolas, ui-monospace, monospace;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.6; font-size: 16px; }
img, svg { max-width: 100%; display: block; }
a { color: var(--indigo); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .6em; letter-spacing: -.02em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); font-weight: 750; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
.container { width: min(1180px, 100% - 40px); margin-inline: auto; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- en-tête ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(7, 11, 26, .82); backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid rgba(255,255,255,.06); }
.nav { display: flex; align-items: center; gap: 28px; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 800; font-size: 1.15rem; letter-spacing: -.02em; }
.brand:hover { text-decoration: none; }
.brand small { display: block; font-weight: 500; font-size: .68rem; color: #9aa4c7; letter-spacing: .14em; text-transform: uppercase; margin-top: -3px; }
.brand-mark { width: 38px; height: 38px; }
.nav-links { display: flex; gap: 6px; margin-left: auto; list-style: none; padding: 0; margin-block: 0; }
.nav-links a { color: #c8cfea; padding: 8px 12px; border-radius: 10px; font-weight: 550; font-size: .95rem; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: #fff; background: rgba(255,255,255,.07); text-decoration: none; }
.nav-cta { display: flex; gap: 10px; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid rgba(255,255,255,.15); color: #fff; border-radius: 10px; padding: 8px 10px; cursor: pointer; }
@media (max-width: 980px) {
  .nav-toggle { display: block; }
  .nav-links, .nav-cta { display: none; }
  .nav.open { flex-wrap: wrap; height: auto; padding-block: 14px; }
  .nav.open .nav-links { display: flex; flex-direction: column; width: 100%; margin: 6px 0; }
  .nav.open .nav-cta { display: flex; width: 100%; padding-bottom: 6px; }
}

/* ---------- boutons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border-radius: 12px; font-weight: 650; font-size: .97rem;
  border: 1px solid transparent; cursor: pointer; transition: transform .15s, box-shadow .15s, background .15s; font-family: inherit; line-height: 1.2; }
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 8px 24px rgba(99, 102, 241, .35); }
.btn-primary:hover { box-shadow: 0 10px 30px rgba(99, 102, 241, .5); }
.btn-ghost { background: rgba(255,255,255,.06); color: #fff; border-color: rgba(255,255,255,.18); }
.btn-ghost:hover { background: rgba(255,255,255,.12); }
.btn-light { background: var(--surface); color: var(--text); border-color: var(--line); }
.btn-light:hover { border-color: #c9cee0; }
.btn-danger { background: #fff; color: var(--danger); border-color: #f5c2c2; }
.btn-sm { padding: 7px 13px; font-size: .86rem; border-radius: 9px; }

/* ---------- héros ---------- */
.hero { position: relative; overflow: hidden; background: var(--night); color: #e7ebff; padding: 96px 0 110px; }
.hero::before { content: ""; position: absolute; inset: -40% -10% auto auto; width: 820px; height: 820px; background: radial-gradient(circle, rgba(99,102,241,.38), transparent 62%); pointer-events: none; }
.hero::after { content: ""; position: absolute; inset: auto auto -50% -15%; width: 700px; height: 700px; background: radial-gradient(circle, rgba(34,211,238,.18), transparent 60%); pointer-events: none; }
.hero .grid-bg { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 56px 56px; mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 75%); }
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.hero p.lead { font-size: 1.2rem; color: #b6bfe3; max-width: 620px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.05);
  color: #c8d0ff; font-size: .85rem; font-weight: 600; margin-bottom: 22px; }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 12px var(--cyan); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-stats { display: flex; gap: 34px; margin-top: 44px; flex-wrap: wrap; }
.hero-stats strong { display: block; font-size: 1.6rem; color: #fff; }
.hero-stats span { color: #8f99c2; font-size: .9rem; }
.hero-card { background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.03)); border: 1px solid rgba(255,255,255,.12); border-radius: 22px; padding: 26px;
  box-shadow: 0 30px 80px rgba(0,0,0,.45); }
.hero-card h3 { color: #fff; font-size: 1rem; display: flex; align-items: center; gap: 10px; }
.term { font-family: var(--mono); font-size: .82rem; background: rgba(0,0,0,.35); border-radius: 12px; padding: 16px; color: #a5b4fc; line-height: 1.75; }
.term .ok { color: #34d399; } .term .c { color: #67e8f9; } .term .m { color: #7c86ad; }
@media (max-width: 900px) { .hero-inner { grid-template-columns: 1fr; } .hero { padding: 64px 0 80px; } }

.page-hero { background: var(--night); color: #dfe4ff; padding: 70px 0 64px; position: relative; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; right: -200px; top: -260px; width: 640px; height: 640px; background: radial-gradient(circle, rgba(139,92,246,.35), transparent 62%); }
.page-hero .container { position: relative; }
.page-hero p { color: #aab3d9; font-size: 1.12rem; max-width: 720px; }
.breadcrumb { font-size: .85rem; color: #8790b8; margin-bottom: 14px; }
.breadcrumb a { color: #aab3ff; }

/* ---------- sections ---------- */
section.block { padding: 90px 0; }
section.block.alt { background: var(--surface); }
section.block.dark { background: var(--night-2); color: #dfe4ff; }
.section-head { max-width: 760px; margin-bottom: 46px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.08rem; }
.dark .section-head p { color: #aab3d9; }
.kicker { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 750; color: var(--indigo); margin-bottom: 10px; display: block; }
.dark .kicker { color: var(--cyan); }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); transition: transform .2s, border-color .2s; }
a.card { color: inherit; display: block; }
a.card:hover, .card.hover:hover { transform: translateY(-4px); border-color: #c7c9fb; text-decoration: none; }
.card p { color: var(--muted); margin-bottom: 0; }
.card ul { color: var(--muted); padding-left: 1.1em; margin: 12px 0 0; }
.card ul li { margin-bottom: 4px; }
.icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(135deg, rgba(99,102,241,.14), rgba(34,211,238,.14)); color: var(--indigo); margin-bottom: 18px; }
.icon svg { width: 26px; height: 26px; }
.dark .card { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.09); box-shadow: none; }
.dark .card p, .dark .card ul { color: #aab3d9; }
.dark .card h3 { color: #fff; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.checklist { list-style: none; padding: 0; margin: 18px 0 0; }
.checklist li { padding-left: 32px; position: relative; margin-bottom: 12px; }
.checklist li::before { content: "\2713"; position: absolute; left: 0; top: 3px; width: 21px; height: 21px; border-radius: 50%; background: var(--grad); color: #fff; font-size: .72rem; font-weight: 800; display: grid; place-items: center; }

.steps { counter-reset: s; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 22px; }
.step { position: relative; padding: 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.step::before { counter-increment: s; content: "0" counter(s); font-weight: 800; font-size: 1.9rem; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; display: block; margin-bottom: 8px; }
.step p { color: var(--muted); margin: 0; }

.badge { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 650; padding: 4px 10px; border-radius: 999px; background: #eef0ff; color: #4338ca; }
.badge.ok { background: #e7f8f1; color: #047857; } .badge.warn { background: #fff6e5; color: #b45309; } .badge.danger { background: #fdecec; color: #b91c1c; } .badge.muted { background: #eef0f5; color: #586079; }
.pill-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }

.cta-band { background: var(--grad); color: #fff; border-radius: 26px; padding: 54px; display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; box-shadow: 0 30px 70px rgba(99,102,241,.35); }
.cta-band h2 { margin: 0 0 6px; }
.cta-band p { margin: 0; color: rgba(255,255,255,.88); }
.cta-band .btn-light { border: none; }

/* ---------- formulaires ---------- */
.form { display: grid; gap: 16px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .form .row { grid-template-columns: 1fr; } }
label { font-weight: 600; font-size: .9rem; display: block; margin-bottom: 6px; }
input, select, textarea { width: 100%; font: inherit; padding: 12px 14px; border-radius: 11px; border: 1px solid var(--line); background: #fff; color: var(--text); transition: border-color .15s, box-shadow .15s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--indigo); box-shadow: 0 0 0 4px rgba(99,102,241,.15); }
textarea { min-height: 140px; resize: vertical; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; font-size: .9rem; color: var(--muted); }
.check input { width: auto; margin-top: 4px; }
.hp { position: absolute; left: -5000px; }
.notice { padding: 14px 16px; border-radius: 12px; font-size: .94rem; }
.notice.ok { background: #e7f8f1; color: #065f46; border: 1px solid #b7ebd5; }
.notice.err { background: #fdecec; color: #991b1b; border: 1px solid #f6c6c6; }
.notice.info { background: #eef0ff; color: #3730a3; border: 1px solid #d5d8fe; }
.secure-note { display: flex; gap: 10px; align-items: center; color: var(--muted); font-size: .86rem; }
.secure-note svg { width: 18px; height: 18px; color: var(--ok); flex: none; }

/* ---------- pied de page ---------- */
.site-footer { background: var(--night); color: #9aa4c7; padding: 64px 0 30px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.site-footer h4 { color: #fff; font-size: .95rem; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: #aab3d9; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.07); margin-top: 44px; padding-top: 22px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; font-size: .85rem; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

/* ---------- chat ---------- */
.chat-launcher { position: fixed; right: 22px; bottom: 22px; z-index: 60; width: 62px; height: 62px; border-radius: 50%; border: none; cursor: pointer; background: var(--grad);
  color: #fff; box-shadow: 0 14px 34px rgba(99,102,241,.5); display: grid; place-items: center; }
.chat-launcher svg { width: 28px; height: 28px; }
.chat-launcher .dot { position: absolute; top: 6px; right: 6px; width: 14px; height: 14px; border-radius: 50%; background: #f43f5e; border: 2px solid #fff; display: none; }
.chat-launcher.has-new .dot { display: block; }
.chat-panel { position: fixed; right: 22px; bottom: 96px; z-index: 60; width: min(390px, calc(100vw - 30px)); height: min(580px, calc(100vh - 130px)); background: #fff; border-radius: 22px;
  box-shadow: 0 30px 80px rgba(15,23,42,.3); display: none; flex-direction: column; overflow: hidden; border: 1px solid var(--line); }
.chat-panel.open { display: flex; }
.chat-head { background: var(--night-2); color: #fff; padding: 16px 18px; display: flex; align-items: center; gap: 12px; }
.chat-head .avatar { width: 38px; height: 38px; border-radius: 12px; background: var(--grad); display: grid; place-items: center; font-weight: 800; }
.chat-head strong { display: block; font-size: .98rem; }
.chat-head small { color: #9aa4c7; font-size: .78rem; }
.chat-head button { margin-left: auto; background: none; border: none; color: #c8cfea; cursor: pointer; font-size: 1.4rem; line-height: 1; }
.chat-body { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: #f8f9fd; }
.bubble { max-width: 84%; padding: 10px 14px; border-radius: 16px; font-size: .93rem; white-space: pre-wrap; word-wrap: break-word; }
.bubble.visitor { align-self: flex-end; background: var(--indigo); color: #fff; border-bottom-right-radius: 5px; }
.bubble.bot { align-self: flex-start; background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 5px; }
.bubble.admin { align-self: flex-start; background: #ecfdf5; border: 1px solid #b7ebd5; border-bottom-left-radius: 5px; }
.bubble .who { display: block; font-size: .7rem; font-weight: 700; opacity: .65; margin-bottom: 2px; text-transform: uppercase; letter-spacing: .06em; }
.chat-foot { border-top: 1px solid var(--line); padding: 10px; display: grid; gap: 8px; background: #fff; }
.chat-foot form { display: flex; gap: 8px; }
.chat-foot input { padding: 10px 12px; }
.chat-foot .human { background: none; border: none; color: var(--indigo); font-weight: 600; font-size: .84rem; cursor: pointer; justify-self: start; padding: 2px 4px; }
.typing { align-self: flex-start; color: var(--muted); font-size: .85rem; font-style: italic; }

/* ---------- divers ---------- */
.prose { max-width: 800px; }
.prose h2 { font-size: 1.5rem; margin-top: 2em; }
.prose p, .prose li { color: #3a4358; }
.kv { display: grid; grid-template-columns: 200px 1fr; gap: 6px 18px; }
.algo-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.algo-table th, .algo-table td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.algo-table th { background: #f3f4fa; font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
code, .mono { font-family: var(--mono); font-size: .88em; }
.fade-in { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.fade-in.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } .fade-in { opacity: 1; transform: none; } }

/* utilitaires (aucun style en ligne : CSP stricte) */
.footer-about { margin-top: 16px; max-width: 340px; }
.mt { margin-top: 22px; } .mt-s { margin-top: 12px; } .mb { margin-bottom: 20px; }
.cards.two { grid-template-columns: 1fr 1fr; }
@media (max-width: 560px) { .cards.two { grid-template-columns: 1fr; } }
.actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.split.top { align-items: start; }
textarea.short { min-height: 100px; }
fieldset.plain { border: none; padding: 0; margin: 0; }
.legend { font-weight: 600; font-size: .9rem; margin-bottom: 6px; }
.form .row.three { grid-template-columns: 1fr 1fr 1fr; }
@media (max-width: 640px) { .form .row.three { grid-template-columns: 1fr; } }
.steps.one { grid-template-columns: 1fr; }
.fullpage { min-height: 60vh; display: grid; place-items: center; }
.center { text-align: center; } .mx-auto { margin-inline: auto; }
.hidden { display: none !important; }

/* calendrier de réservation */
.booking { display: grid; grid-template-columns: 1.35fr 1fr; gap: 22px; align-items: start; }
@media (max-width: 900px) { .booking { grid-template-columns: 1fr; } }
.booking-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.booking-head h2 { margin: 0; font-size: 1.25rem; text-transform: capitalize; }
.h-small { font-size: 1.15rem; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal-names span { text-align: center; font-size: .78rem; color: var(--muted); font-weight: 650; text-transform: uppercase; padding-bottom: 4px; }
.cal-day { aspect-ratio: 1 / .9; border-radius: 12px; border: 1px solid transparent; background: #f3f4f9; color: #a0a6b8; font: inherit; font-weight: 600; cursor: default; display: grid; place-items: center; position: relative; }
.cal-day.empty { background: none; }
.cal-day.free { background: #eef0ff; color: var(--indigo); border-color: #d9dcfe; cursor: pointer; }
.cal-day.free:hover { background: #e2e5ff; }
.cal-day.free::after { content: attr(data-count); position: absolute; bottom: 4px; font-size: .62rem; font-weight: 700; color: #7c80d8; }
.cal-day.selected { background: var(--grad); color: #fff; border-color: transparent; }
.cal-day.selected::after { color: rgba(255,255,255,.85); }
.cal-day.today { outline: 2px solid #c7caf9; outline-offset: -2px; }
.legend-dot { display: inline-block; width: 10px; height: 10px; border-radius: 3px; background: #eef0ff; border: 1px solid #d9dcfe; vertical-align: middle; }
.times { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.times .slot { padding: 10px; border-radius: 10px; border: 1px solid var(--line); background: #fff; font: inherit; font-weight: 650; cursor: pointer; }
.times .slot:hover { border-color: var(--indigo); color: var(--indigo); }
.times .slot.selected { background: var(--indigo); color: #fff; border-color: var(--indigo); }
.times .period { grid-column: 1 / -1; font-size: .8rem; color: var(--muted); font-weight: 650; text-transform: uppercase; letter-spacing: .06em; margin-top: 6px; }
.booking-form { margin-top: 22px; }
.booking-done { text-align: center; padding: 40px 24px; }
.booking-done .big { font-size: 1.5rem; font-weight: 800; }
/* chat : distinction IA / personne réelle */
.bubble .who { display: flex; align-items: center; gap: 6px; }
.bubble.admin .who { color: #047857; opacity: 1; }
.human-badge { display: inline-flex; align-items: center; gap: 4px; background: #d1fae5; color: #065f46; border-radius: 999px; padding: 1px 8px; font-size: .64rem; letter-spacing: .04em; }
.ai-badge { display: inline-flex; align-items: center; gap: 4px; background: #eef0ff; color: #4338ca; border-radius: 999px; padding: 1px 8px; font-size: .64rem; letter-spacing: .04em; }
.chat-head.human { background: linear-gradient(120deg, #064e3b, #0d1430); }
.chat-head.human .avatar { background: linear-gradient(135deg, #10b981, #22d3ee); }
.chat-verify { font-size: .8rem; color: var(--muted); text-align: center; padding: 6px; }

/* fiches prestations */
.fiche-grid .card { padding: 24px; }
.excluded-list { list-style: none; padding: 0; margin: 12px 0 0; }
.excluded-list li { padding-left: 30px; position: relative; margin-bottom: 10px; color: var(--muted); }
.excluded-list li::before { content: "\00D7"; position: absolute; left: 0; top: 1px; width: 21px; height: 21px; border-radius: 50%; background: #eef0f5; color: #8a91a6; font-weight: 800; display: grid; place-items: center; font-size: .85rem; }
details.faq { border-bottom: 1px solid var(--line); padding: 14px 0; }
details.faq summary { cursor: pointer; font-weight: 650; }
.badge.muted { background: rgba(255,255,255,.1); color: #c8cfea; }

/* ---------- ajustements téléphone ---------- */
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } }
@media (max-width: 700px) {
  .algo-table thead { display: none; }
  .algo-table, .algo-table tbody, .algo-table tr, .algo-table td { display: block; width: 100%; }
  .algo-table tr { padding: 10px 0; border-bottom: 1px solid var(--line); }
  .algo-table tr:last-child { border-bottom: 0; }
  .algo-table td { border-bottom: 0; padding: 6px 18px; }
  .algo-table td:nth-child(2)::before, .algo-table td:nth-child(3)::before { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 650; margin-bottom: 2px; }
  .algo-table td:nth-child(2)::before { content: "Algorithme"; }
  .algo-table td:nth-child(3)::before { content: "Ce que cela garantit"; }
}
@media (max-width: 640px) {
  .cal-day.free::after { content: none; }
}

/* ---------- galerie des réalisations ---------- */
.gallery-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.gallery-filters button { font: inherit; font-size: .9rem; font-weight: 600; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--muted); cursor: pointer; }
.gallery-filters button:hover { border-color: #c7caf9; color: var(--indigo); }
.gallery-filters button[aria-pressed="true"] { background: var(--grad); color: #fff; border-color: transparent; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 26px; }
.work { display: flex; flex-direction: column; text-align: left; font: inherit; color: inherit; padding: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; cursor: pointer; transition: transform .2s, box-shadow .2s, border-color .2s; }
.work:hover, .work:focus-visible { transform: translateY(-4px); border-color: #c7caf9; box-shadow: 0 18px 40px rgba(79, 70, 229, .16); }
.work:focus-visible { outline: 3px solid #a5b4fc; outline-offset: 2px; }
.work-visual { aspect-ratio: 16 / 10; background: var(--night-2); overflow: hidden; position: relative; }
.work-visual img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; transition: transform .4s; }
.work:hover .work-visual img { transform: scale(1.03); }
.work-visual.placeholder { display: grid; place-items: center; background: var(--grad); }
.work-visual.placeholder span { color: #fff; font-size: 1.6rem; font-weight: 800; letter-spacing: -.01em; padding: 0 24px; text-align: center; }
.work-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.work-kind { font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--indigo); }
.work h3 { margin: 0; font-size: 1.15rem; }
.work p { margin: 0; color: var(--muted); font-size: .95rem; }
.work-more { margin-top: auto; padding-top: 8px; font-size: .9rem; font-weight: 600; color: var(--indigo); }
.tech-list { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0; }
.tech-list li { font-size: .8rem; font-weight: 600; padding: 5px 11px; border-radius: 999px; background: #eef0ff; color: #4338ca; }
.work-dialog { width: min(860px, calc(100vw - 24px)); max-height: calc(100vh - 24px); padding: 0; border: 0; border-radius: 22px; box-shadow: 0 40px 100px rgba(7, 11, 26, .45); overflow: auto; }
.work-dialog::backdrop { background: rgba(7, 11, 26, .7); backdrop-filter: blur(3px); }
.work-dialog .work-visual { aspect-ratio: 16 / 9; }
.work-dialog-body { padding: 26px 30px 30px; }
.work-dialog h2 { margin: 4px 0 10px; }
.work-dialog .lead { color: var(--muted); font-size: 1.05rem; }
.work-dialog .pre { white-space: pre-line; }
.work-dialog h3 { font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 22px 0 10px; }
.work-dialog .close { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(7, 11, 26, .65); color: #fff; font-size: 1.4rem; line-height: 1; cursor: pointer; z-index: 2; }
.work-dialog .close:hover { background: rgba(7, 11, 26, .85); }
.work-dialog .actions { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 640px) {
  .gallery { grid-template-columns: 1fr; gap: 18px; }
  .work-dialog { width: 100vw; max-width: 100vw; max-height: 100vh; height: 100%; border-radius: 0; margin: 0; }
  .work-dialog-body { padding: 20px 20px 28px; }
}
