/* Charte Damech Commerce — bleu nuit et or, registre haut de gamme.
   Bandeaux sombres (en-tête, héros, appels à l’action, pied de page), sections claires en blanc cassé,
   l’or réservé aux filets, aux accents et à l’action principale. Formes nettes, peu d’arrondis.
   Aucune ressource externe (RGPD, CSP stricte : aucun style en ligne).
   Variables héritées utilisées par app.css (--night, --indigo, --cyan, --grad…) conservées. */
:root {
  --night: #0a1424;
  --night-2: #101e35;
  --night-3: #1a2b48;
  --gold: #c9a24a;          /* or sur fond sombre */
  --gold-light: #dcbd72;
  --gold-text: #8a6a1f;     /* or lisible sur fond clair (contraste AA) */
  --gold-soft: #f6f0e1;
  --gold-line: #e4d6b2;
  --bg: #f7f5f0;
  --surface: #ffffff;
  --text: #0f1a2c;
  --muted: #5a6274;
  --line: #e3dfd6;
  --ok: #0f8a5f;
  --warn: #b7791f;
  --danger: #c0392b;
  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 1px 2px rgba(10, 20, 36, .05), 0 6px 22px rgba(10, 20, 36, .06);
  --shadow-lg: 0 20px 50px rgba(10, 20, 36, .14);
  --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;
  /* noms hérités (admin, espace client) */
  --indigo: #1d4e85;
  --violet: #2d5f96;
  --cyan: var(--gold);
  --grad: linear-gradient(120deg, #1d4e85 0%, #10294a 100%);
  --grad-text: linear-gradient(100deg, #dcbd72 0%, #c9a24a 100%);
  /* les « pôles » partagent la même charte : seule l’icône les distingue */
  --pole: var(--gold-text); --pole-soft: var(--gold-soft); --pole-line: var(--gold-line);
}

*, *::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.65; 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.14; margin: 0 0 .6em; letter-spacing: -.02em; color: inherit; }
h1 { font-size: clamp(2.2rem, 4.6vw, 3.5rem); font-weight: 750; }
h2 { font-size: clamp(1.65rem, 3vw, 2.3rem); font-weight: 720; }
h3 { font-size: 1.12rem; font-weight: 680; }
p { margin: 0 0 1em; }
.container { width: min(1180px, 100% - 40px); margin-inline: auto; }
.grad-text { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.accent { color: var(--gold); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 3px; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 14px; border-radius: 6px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- en-tête ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(10, 20, 36, .94); backdrop-filter: saturate(1.3) blur(12px); border-bottom: 1px solid rgba(201, 162, 74, .28); }
.nav { display: flex; align-items: center; gap: 16px; height: 76px; }
.brand { white-space: nowrap; flex: none; display: flex; align-items: center; gap: 12px; color: #fff; font-weight: 720; font-size: 1.12rem; letter-spacing: .01em; }
.brand:hover { text-decoration: none; }
.brand small { display: block; font-weight: 500; font-size: .64rem; color: var(--gold); letter-spacing: .22em; text-transform: uppercase; margin-top: 1px; }
.brand-mark { width: 40px; height: 40px; flex: none; }
.auth-card .brand { color: var(--text); }
.nav-links { display: flex; gap: 2px; margin-left: auto; list-style: none; padding: 0; margin-block: 0; }
.nav-links a { white-space: nowrap; color: #c3cbdc; padding: 8px 9px; font-weight: 520; font-size: .9rem; position: relative; letter-spacing: .01em; }
.nav-links a:hover { color: #fff; text-decoration: none; }
.nav-links a[aria-current="page"] { color: #fff; }
.nav-links a[aria-current="page"]::after { content: ""; position: absolute; left: 13px; right: 13px; bottom: 0; height: 1px; background: var(--gold); }
.nav-cta { display: flex; gap: 8px; flex: none; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid rgba(255,255,255,.2); color: #fff; border-radius: 6px; padding: 8px 11px; cursor: pointer; }
@media (max-width: 1180px) {
  .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-links a[aria-current="page"]::after { left: 0; right: auto; top: 10px; bottom: 10px; width: 2px; height: auto; }
  .nav.open .nav-cta { display: flex; width: 100%; padding-bottom: 6px; }
}

/* ---------- boutons ---------- */
.btn { white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 24px; border-radius: 6px; font-weight: 620; font-size: .95rem; letter-spacing: .01em;
  border: 1px solid transparent; cursor: pointer; transition: background .15s, border-color .15s, color .15s, box-shadow .15s; font-family: inherit; line-height: 1.2; }
.btn:hover { text-decoration: none; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-primary { background: var(--gold); color: var(--night); }
.btn-primary:hover { background: var(--gold-light); box-shadow: 0 6px 20px rgba(201, 162, 74, .3); }
.btn-ghost { background: transparent; color: var(--text); border-color: #c9c2b4; }
.btn-ghost:hover { border-color: var(--text); }
.site-header .btn-ghost, .hero .btn-ghost, .page-hero .btn-ghost, .cta-band .btn-ghost, .dark .btn-ghost, .sidebar .btn-ghost, .mobile-bar .btn-ghost {
  color: #fff; border-color: rgba(255,255,255,.3); }
.site-header .btn-ghost:hover, .hero .btn-ghost:hover, .page-hero .btn-ghost:hover, .cta-band .btn-ghost:hover, .dark .btn-ghost:hover, .sidebar .btn-ghost:hover, .mobile-bar .btn-ghost:hover {
  border-color: var(--gold); color: var(--gold-light); }
.btn-light { background: var(--surface); color: var(--text); border-color: var(--line); }
.btn-light:hover { border-color: #b9b1a1; }
.btn-dark { background: var(--night); color: #fff; }
.btn-dark:hover { background: var(--night-3); }
.btn-danger { background: #fff; color: var(--danger); border-color: #f0c4be; }
.btn-sm { padding: 8px 15px; font-size: .86rem; }

/* ---------- héros (accueil) ---------- */
.hero { position: relative; overflow: hidden; background: var(--night); color: #dfe5f0; padding: 96px 0 104px; }
.hero::before { content: ""; position: absolute; right: -220px; top: -260px; width: 820px; height: 820px; border-radius: 50%; background: radial-gradient(circle, rgba(29,78,133,.42), transparent 62%); pointer-events: none; }
.hero::after { content: ""; position: absolute; left: -200px; bottom: -380px; width: 700px; height: 700px; border-radius: 50%; background: radial-gradient(circle, rgba(201,162,74,.12), transparent 62%); pointer-events: none; }
.hero .grid-bg { display: none; }
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: center; }
.hero h1 { color: #fff; }
.hero p.lead { font-size: 1.14rem; color: #aab5ca; max-width: 590px; }
.eyebrow { display: inline-flex; align-items: center; gap: 12px; color: var(--gold); font-size: .78rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; margin-bottom: 26px; }
.eyebrow::before { content: ""; width: 34px; height: 1px; background: var(--gold); }
.eyebrow .dots, .eyebrow .dot { display: none; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-stats { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 40px; margin-top: 46px; padding-top: 28px; border-top: 1px solid rgba(255,255,255,.1); }
.hero-stats strong { display: block; font-size: 1.35rem; font-weight: 650; color: #fff; }
.hero-stats span { color: #8794ad; font-size: .87rem; }

/* tableau des pôles (héros) */
.poles-board { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: rgba(201,162,74,.25); border: 1px solid rgba(201,162,74,.25); border-radius: 10px; overflow: hidden; }
.pole-tile { display: block; color: #fff; background: rgba(16, 30, 53, .96); padding: 28px 24px; transition: background .2s; }
.pole-tile:hover { background: #15284a; text-decoration: none; }
.pole-tile .icon { background: none; border: 1px solid rgba(201,162,74,.45); color: var(--gold); margin-bottom: 18px; width: 46px; height: 46px; }
.pole-tile .tag { font-size: .68rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.pole-tile h3 { margin: 6px 0 8px; font-size: 1.06rem; color: #fff; }
.pole-tile p { margin: 0; color: #93a0b8; font-size: .88rem; line-height: 1.55; }
@media (max-width: 960px) { .hero-inner { grid-template-columns: 1fr; } .hero { padding: 64px 0 72px; } }
@media (max-width: 520px) { .poles-board { grid-template-columns: 1fr; } }

/* carte d’exemple de suivi */
.hero-card { background: var(--night); color: #dfe5f0; border: 1px solid rgba(201,162,74,.3); border-radius: 10px; padding: 28px; box-shadow: var(--shadow-lg); }
.hero-card h3 { font-size: .98rem; display: flex; align-items: center; gap: 10px; color: #fff; }
.hero-card h3 svg { color: var(--gold); }
.term { font-family: var(--mono); font-size: .8rem; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.06); border-radius: 6px; padding: 16px 18px; color: #b7c3d8; line-height: 1.8; }
.term .ok { color: #5fd3a2; } .term .c { color: var(--gold-light); } .term .m { color: #6f7c96; }

/* bandeau des engagements */
.trust { background: var(--surface); border-bottom: 1px solid var(--line); }
.trust .container { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust-item { display: flex; gap: 14px; align-items: center; padding: 26px 20px; }
.trust-item + .trust-item { border-left: 1px solid var(--line); }
.trust-item svg { width: 26px; height: 26px; flex: none; color: var(--gold-text); }
.trust-item strong { display: block; font-size: .94rem; font-weight: 650; line-height: 1.3; }
.trust-item span { display: block; color: var(--muted); font-size: .84rem; line-height: 1.4; }
@media (max-width: 900px) { .trust .container { grid-template-columns: 1fr 1fr; } .trust-item:nth-child(3) { border-left: 0; } .trust-item:nth-child(n+3) { border-top: 1px solid var(--line); } }
@media (max-width: 520px) { .trust .container { grid-template-columns: 1fr; } .trust-item + .trust-item { border-left: 0; border-top: 1px solid var(--line); } }

/* en-tête des pages intérieures */
.page-hero { position: relative; overflow: hidden; background: var(--night); color: #dfe5f0; padding: 72px 0 64px; border-bottom: 1px solid rgba(201,162,74,.35); }
.page-hero::before { content: ""; position: absolute; right: -200px; top: -280px; width: 680px; height: 680px; border-radius: 50%; background: radial-gradient(circle, rgba(29,78,133,.4), transparent 62%); }
.page-hero .container { position: relative; }
.page-hero h1 { color: #fff; }
.page-hero p { color: #aab5ca; font-size: 1.1rem; max-width: 720px; }
.breadcrumb { font-size: .8rem; color: #8794ad; margin-bottom: 16px; letter-spacing: .04em; }
.breadcrumb a { color: var(--gold); }

/* ---------- sections ---------- */
section.block { padding: 92px 0; }
section.block.alt { background: var(--surface); border-block: 1px solid var(--line); }
section.block.dark { background: var(--night-2); color: #dfe5f0; }
.section-head { max-width: 760px; margin-bottom: 48px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.05rem; }
.dark .section-head p, .dark p { color: #aab5ca; }
.kicker { display: inline-flex; align-items: center; gap: 12px; text-transform: uppercase; letter-spacing: .2em; font-size: .74rem; font-weight: 650; color: var(--gold-text); margin-bottom: 14px; }
.kicker::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.section-head.center .kicker::after { content: ""; width: 28px; height: 1px; background: currentColor; }
.dark .kicker { color: var(--gold); }
.dark h2, .dark h3 { color: #fff; }

.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: 30px; box-shadow: var(--shadow); transition: border-color .2s, box-shadow .2s; position: relative; }
a.card { color: inherit; display: block; }
a.card:hover, .card.hover:hover { border-color: var(--gold-line); box-shadow: var(--shadow-lg); text-decoration: none; }
.card[class*="pole-"] { border-top: 2px solid var(--gold); }
.card p { color: var(--muted); margin-bottom: 0; }
.card ul { color: var(--muted); padding-left: 1.1em; margin: 14px 0 0; }
.card ul li { margin-bottom: 4px; }
.card ul li::marker { color: var(--gold); }
.card .actions a { color: var(--gold-text); font-weight: 600; }
.icon { width: 50px; height: 50px; border-radius: 8px; display: grid; place-items: center; background: var(--gold-soft); color: var(--gold-text); margin-bottom: 20px; border: 1px solid var(--gold-line); }
.icon svg { width: 24px; height: 24px; }
.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: #aab5ca; }
.dark .card h3 { color: #fff; }
.dark .icon { background: none; border-color: rgba(201,162,74,.45); color: var(--gold); }

/* pôles (accueil) */
.poles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; box-shadow: var(--shadow); }
@media (max-width: 1060px) { .poles { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .poles { grid-template-columns: 1fr; } }
.pole { display: flex; flex-direction: column; border-right: 1px solid var(--line); border-top: 2px solid transparent; transition: border-color .2s, background .2s; }
.pole:last-child { border-right: 0; }
.pole:hover { border-top-color: var(--gold); background: #fffdf8; }
@media (max-width: 1060px) { .pole:nth-child(2n) { border-right: 0; } .pole:nth-child(n+3) { border-top: 1px solid var(--line); } }
@media (max-width: 600px) { .pole { border-right: 0; } .pole + .pole { border-top: 1px solid var(--line); } }
.pole-head { padding: 30px 28px 0; }
.pole-head .tag { font-size: .68rem; font-weight: 650; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-text); }
.pole-head h3 { margin: 6px 0 0; font-size: 1.18rem; }
.pole-body { padding: 12px 28px 30px; display: flex; flex-direction: column; flex: 1; }
.pole-body p { color: var(--muted); font-size: .93rem; }
.pole-links { list-style: none; padding: 0; margin: 4px 0 22px; }
.pole-links li { border-top: 1px solid var(--line); }
.pole-links a { display: flex; justify-content: space-between; gap: 10px; padding: 11px 0; color: var(--text); font-weight: 520; font-size: .93rem; }
.pole-links a::after { content: "→"; color: var(--gold-text); transition: transform .15s; }
.pole-links a:hover { color: var(--gold-text); text-decoration: none; }
.pole-links a:hover::after { transform: translateX(3px); }
.pole-body .btn { margin-top: auto; align-self: flex-start; background: var(--night); color: #fff; }
.pole-body .btn:hover { background: var(--night-3); }

/* légende / regroupement des offres */
.legend-poles { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.legend-poles a { padding: 6px 14px; border-radius: 4px; border: 1px solid rgba(201,162,74,.45); color: var(--gold-light); font-weight: 550; font-size: .85rem; letter-spacing: .02em; }
.legend-poles a:hover { background: rgba(201,162,74,.12); text-decoration: none; }
.offer-group { scroll-margin-top: 96px; }
.offer-group + .offer-group { margin-top: 64px; }
.offer-group-head { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.offer-group-head .icon { margin: 0; background: var(--night); border-color: var(--night); color: var(--gold); }
.offer-group-head p { margin: 0; color: var(--muted); }
.offer-group .kicker { font-size: .82rem; margin-bottom: 2px; }
.card[id] { scroll-margin-top: 96px; }

/* publics */
.audiences { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 900px) { .audiences { grid-template-columns: 1fr; } }
.audience { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 30px; }
.audience .who { font-size: .7rem; font-weight: 650; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-text); }
.audience h3 { margin: 8px 0 10px; }
.audience p { color: var(--muted); }
.audience .chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.chip { display: inline-flex; align-items: center; font-size: .78rem; font-weight: 550; padding: 3px 10px; border-radius: 4px; background: var(--bg); border: 1px solid var(--line); color: #3d475b; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.checklist { list-style: none; padding: 0; margin: 20px 0 0; }
.checklist li { padding-left: 30px; position: relative; margin-bottom: 12px; }
.checklist li::before { content: ""; position: absolute; left: 2px; top: 7px; width: 12px; height: 7px; border-left: 2px solid var(--gold-text); border-bottom: 2px solid var(--gold-text); transform: rotate(-45deg); }
.dark .checklist li::before { border-color: var(--gold); }

.steps { counter-reset: s; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 22px; }
.step { position: relative; padding: 28px 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.step::before { counter-increment: s; content: "0" counter(s); display: block; font-weight: 300; font-size: 2.2rem; line-height: 1; color: var(--gold-text); margin-bottom: 16px; letter-spacing: -.02em; }
.step p { color: var(--muted); margin: 0; }

.badge { display: inline-flex; align-items: center; gap: 6px; font-size: .76rem; font-weight: 600; padding: 3px 10px; border-radius: 4px; background: var(--gold-soft); color: var(--gold-text); border: 1px solid var(--gold-line); }
.badge.ok { background: #e6f4ee; color: #0b6b49; border-color: #c4e5d6; } .badge.warn { background: #fbf2e1; color: #8a5a12; border-color: #efd9ad; } .badge.danger { background: #fbeceb; color: #a5281b; border-color: #f0c4be; } .badge.muted { background: #efece6; color: #5a6274; border-color: var(--line); }
.page-hero .badge { background: rgba(201,162,74,.12); color: var(--gold-light); border-color: rgba(201,162,74,.4); }
.page-hero .badge.muted { background: rgba(255,255,255,.06); color: #aab5ca; border-color: rgba(255,255,255,.15); }
.pill-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }

.cta-band { position: relative; overflow: hidden; background: var(--night); color: #fff; border-radius: 10px; padding: 56px; display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; border: 1px solid rgba(201,162,74,.3); }
.cta-band::before { content: ""; position: absolute; right: -140px; top: -200px; width: 520px; height: 520px; border-radius: 50%; background: radial-gradient(circle, rgba(29,78,133,.5), transparent 62%); }
.cta-band > * { position: relative; }
.cta-band h2 { margin: 0 0 6px; color: #fff; }
.cta-band p { margin: 0; color: #aab5ca; }
.cta-band .btn-light, .cta-band > .btn-light { background: var(--gold); color: var(--night); border: none; }
.cta-band .btn-light:hover { background: var(--gold-light); }

/* ---------- 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: .88rem; display: block; margin-bottom: 6px; }
input, select, textarea { width: 100%; font: inherit; padding: 12px 14px; border-radius: 6px; border: 1px solid #d8d2c6; background: #fff; color: var(--text); transition: border-color .15s, box-shadow .15s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--gold-text); box-shadow: 0 0 0 3px rgba(201,162,74,.2); }
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; accent-color: var(--night); }
.hp { position: absolute; left: -5000px; }
.notice { padding: 14px 16px; border-radius: 6px; font-size: .94rem; }
.notice.ok { background: #e6f4ee; color: #0b5a3d; border: 1px solid #c4e5d6; }
.notice.err { background: #fbeceb; color: #8f2216; border: 1px solid #f0c4be; }
.notice.info { background: #eef2f8; color: #1d3c66; border: 1px solid #d3deed; }
.secure-note { display: flex; gap: 10px; align-items: center; color: var(--muted); font-size: .85rem; }
.secure-note svg { width: 18px; height: 18px; color: var(--gold); flex: none; }

/* ---------- pied de page ---------- */
.site-footer { background: var(--night); color: #8794ad; padding: 72px 0 30px; margin-top: 0; border-top: 1px solid rgba(201,162,74,.35); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.site-footer h4 { color: var(--gold); font-size: .72rem; font-weight: 650; letter-spacing: .2em; text-transform: uppercase; margin-bottom: 16px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 9px; }
.site-footer a { color: #b3bdd0; font-size: .93rem; }
.site-footer a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); margin-top: 48px; padding-top: 22px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; font-size: .82rem; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

/* ---------- chat ---------- */
.chat-launcher { position: fixed; right: 22px; bottom: 22px; z-index: 60; width: 58px; height: 58px; border-radius: 50%; border: 1px solid rgba(201,162,74,.6); cursor: pointer; background: var(--night);
  color: var(--gold); box-shadow: 0 12px 30px rgba(10,20,36,.35); display: grid; place-items: center; }
.chat-launcher svg { width: 26px; height: 26px; }
.chat-launcher .dot { position: absolute; top: 5px; right: 5px; width: 13px; height: 13px; border-radius: 50%; background: var(--gold); border: 2px solid var(--night); display: none; }
.chat-launcher.has-new .dot { display: block; }
.chat-panel { position: fixed; right: 22px; bottom: 92px; z-index: 60; width: min(390px, calc(100vw - 30px)); height: min(580px, calc(100vh - 130px)); background: #fff; border-radius: 12px;
  box-shadow: 0 30px 80px rgba(10,20,36,.3); display: none; flex-direction: column; overflow: hidden; border: 1px solid var(--line); }
.chat-panel.open { display: flex; }
.chat-head { background: var(--night); color: #fff; padding: 16px 18px; display: flex; align-items: center; gap: 12px; border-bottom: 1px solid rgba(201,162,74,.35); }
.chat-head .avatar { width: 38px; height: 38px; border-radius: 8px; background: var(--night-3); border: 1px solid rgba(201,162,74,.5); color: var(--gold); display: grid; place-items: center; font-weight: 700; }
.chat-head strong { display: block; font-size: .96rem; }
.chat-head small { color: #8794ad; font-size: .78rem; }
.chat-head button { margin-left: auto; background: none; border: none; color: #c3cbdc; 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: var(--bg); }
.bubble { max-width: 84%; padding: 10px 14px; border-radius: 10px; font-size: .93rem; white-space: pre-wrap; word-wrap: break-word; }
.bubble.visitor { align-self: flex-end; background: var(--night); color: #fff; border-bottom-right-radius: 3px; }
.bubble.bot { align-self: flex-start; background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 3px; }
.bubble.admin { align-self: flex-start; background: #eef6f1; border: 1px solid #c4e5d6; border-bottom-left-radius: 3px; }
.bubble .who { display: block; font-size: .68rem; font-weight: 650; opacity: .65; margin-bottom: 2px; text-transform: uppercase; letter-spacing: .08em; }
.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(--gold-text); 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.45rem; margin-top: 2em; }
.prose p, .prose li { color: #3a4356; }
.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: #f1eee8; font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
code, .mono { font-family: var(--mono); font-size: .88em; }
.fade-in { opacity: 0; transform: translateY(12px); 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: 18px; max-width: 340px; font-size: .93rem; }
.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: 14px; 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.22rem; text-transform: capitalize; }
.h-small { font-size: 1.12rem; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal-names span { text-align: center; font-size: .74rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; padding-bottom: 4px; }
.cal-day { aspect-ratio: 1 / .9; border-radius: 6px; border: 1px solid transparent; background: #f1eee8; color: #a9a396; font: inherit; font-weight: 550; cursor: default; display: grid; place-items: center; position: relative; }
.cal-day.empty { background: none; }
.cal-day.free { background: #fff; color: var(--text); border-color: var(--gold-line); cursor: pointer; }
.cal-day.free:hover { background: var(--gold-soft); border-color: var(--gold); }
.cal-day.free::after { content: attr(data-count); position: absolute; bottom: 4px; font-size: .6rem; font-weight: 650; color: var(--gold-text); }
.cal-day.selected { background: var(--night); color: #fff; border-color: var(--night); }
.cal-day.selected::after { color: var(--gold); }
.cal-day.today { outline: 1px solid var(--gold); outline-offset: -3px; }
.legend-dot { display: inline-block; width: 10px; height: 10px; border-radius: 2px; background: #fff; border: 1px solid var(--gold-line); vertical-align: middle; }
.times { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.times .slot { padding: 10px; border-radius: 6px; border: 1px solid var(--line); background: #fff; font: inherit; font-weight: 600; cursor: pointer; color: var(--text); }
.times .slot:hover { border-color: var(--gold); }
.times .slot.selected { background: var(--night); color: #fff; border-color: var(--night); }
.times .period { grid-column: 1 / -1; font-size: .74rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .1em; margin-top: 6px; }
.booking-form { margin-top: 22px; }
.booking-done { text-align: center; padding: 40px 24px; }
.booking-done .big { font-size: 1.45rem; font-weight: 720; }
/* chat : distinction IA / personne réelle */
.bubble .who { display: flex; align-items: center; gap: 6px; }
.bubble.admin .who { color: #0b6b49; opacity: 1; }
.human-badge { display: inline-flex; align-items: center; gap: 4px; background: #d6efe3; color: #0b5a3d; border-radius: 4px; padding: 1px 7px; font-size: .62rem; letter-spacing: .05em; }
.ai-badge { display: inline-flex; align-items: center; gap: 4px; background: var(--gold-soft); color: var(--gold-text); border-radius: 4px; padding: 1px 7px; font-size: .62rem; letter-spacing: .05em; }
.chat-head.human { background: linear-gradient(120deg, #0b3b2c, var(--night)); }
.chat-head.human .avatar { color: #5fd3a2; border-color: rgba(95,211,162,.5); }
.chat-verify { font-size: .8rem; color: var(--muted); text-align: center; padding: 6px; }

/* fiches prestations */
.fiche-grid .card { padding: 26px; }
.excluded-list { list-style: none; padding: 0; margin: 12px 0 0; }
.excluded-list li { padding-left: 26px; position: relative; margin-bottom: 10px; color: var(--muted); }
.excluded-list li::before { content: "\2013"; position: absolute; left: 4px; top: 0; color: #a9a396; font-weight: 700; }
details.faq { border-bottom: 1px solid var(--line); padding: 16px 0; }
details.faq summary { cursor: pointer; font-weight: 620; }
details.faq summary::marker { color: var(--gold-text); }
.block[class*="pole-"] .kicker { color: var(--gold-text); }
.card[class*="pole-"] .accent { color: var(--gold-text); }

/* ---------- ajustements téléphone ---------- */
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } .cta-band { padding: 36px 26px; } }
@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: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; 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: 30px; }
.gallery-filters button { font: inherit; font-size: .88rem; font-weight: 550; padding: 8px 16px; border-radius: 4px; border: 1px solid var(--line); background: #fff; color: var(--muted); cursor: pointer; }
.gallery-filters button:hover { border-color: var(--gold); color: var(--text); }
.gallery-filters button[aria-pressed="true"] { background: var(--night); color: #fff; border-color: var(--night); }
.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: box-shadow .2s, border-color .2s; }
.work:hover, .work:focus-visible { border-color: var(--gold-line); box-shadow: var(--shadow-lg); }
.work:focus-visible { outline: 2px solid var(--gold); 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.02); }
.work-visual.placeholder { display: grid; place-items: center; background: linear-gradient(135deg, var(--night) 0%, var(--night-3) 100%); }
.work-visual.placeholder span { color: #fff; font-size: 1.5rem; font-weight: 700; padding: 0 24px; text-align: center; }
.work-body { padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.work-kind { font-size: .7rem; font-weight: 650; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-text); }
.work h3 { margin: 0; font-size: 1.12rem; }
.work p { margin: 0; color: var(--muted); font-size: .94rem; }
.work-more { margin-top: auto; padding-top: 8px; font-size: .88rem; font-weight: 600; color: var(--gold-text); }
.tech-list { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0; }
.tech-list li { font-size: .78rem; font-weight: 550; padding: 4px 10px; border-radius: 4px; background: var(--bg); border: 1px solid var(--line); color: #3d475b; }
.work-dialog { width: min(860px, calc(100vw - 24px)); max-height: calc(100vh - 24px); padding: 0; border: 0; border-radius: 12px; box-shadow: 0 40px 100px rgba(10, 20, 36, .45); overflow: auto; }
.work-dialog::backdrop { background: rgba(10, 20, 36, .75); backdrop-filter: blur(3px); }
.work-dialog .work-visual { aspect-ratio: 16 / 9; }
.work-dialog-body { padding: 28px 32px 32px; }
.work-dialog h2 { margin: 4px 0 10px; }
.work-dialog .lead { color: var(--muted); font-size: 1.04rem; }
.work-dialog .pre { white-space: pre-line; }
.work-dialog h3 { font-size: .74rem; letter-spacing: .14em; 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(10, 20, 36, .7); color: #fff; font-size: 1.4rem; line-height: 1; cursor: pointer; z-index: 2; }
.work-dialog .close:hover { background: rgba(10, 20, 36, .9); }
.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; }
}
@media (max-width: 560px) { .hero-stats { grid-template-columns: 1fr 1fr; gap: 22px; } }

/* fiche d’identité (secteur public) et renvoi de l’accueil */
dl.kv { margin: 14px 0 0; font-size: .94rem; }
dl.kv dt { color: var(--muted); }
dl.kv dd { margin: 0; font-weight: 600; }
@media (max-width: 560px) { dl.kv { grid-template-columns: 1fr; } dl.kv dd { margin-bottom: 8px; } }
.audience-more { text-align: center; margin: 32px 0 0; color: var(--muted); }
.audience-more a { color: var(--gold-text); font-weight: 600; }
.audiences { grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 1100px) { .audiences { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .audiences { grid-template-columns: 1fr; } }
a.audience { color: inherit; transition: border-color .2s, box-shadow .2s; }
a.audience:hover { border-color: var(--gold-line); box-shadow: var(--shadow-lg); text-decoration: none; }

/* « Pour qui » : intitulés, titres, textes et étiquettes alignés d’une carte à l’autre */
.audience { display: flex; flex-direction: column; }
.audience .chips { margin-top: auto; padding-top: 16px; }
@supports (grid-template-rows: subgrid) {
  .audiences { grid-auto-rows: auto; row-gap: 20px; }
  .audience { display: grid; grid-row: span 4; grid-template-rows: subgrid; row-gap: 0; align-content: start; }
  .audience .who { align-self: end; }
  .audience h3 { margin: 8px 0 10px; align-self: start; }
  .audience p { margin: 0; }
  .audience .chips { margin-top: 0; align-self: end; }
}
