/*
 * Facet Lab — feuille publique. Transcription valeur par valeur de la maquette Claude Design
 * « 2d Porcelaine » (design/Facet Lab – Trois directions d'accueil.zip) : tailles, graisses,
 * interlignages, espacements et couleurs FIXES (charte §0). Ajouts hors maquette signalés
 * « hors maquette » : menu mobile, pied de page légal, pages intérieures, formulaires.
 */
:root {
  --bg: #f7f5f0;
  --bg-alt: #efece5;
  --ink: #3a3834;
  --muted: #6e6a62;
  --faint: #726e66;           /* maquette : #8a857b (3,37:1 sur le fond) — assombri pour l'AA (4,66:1), essai du 2026-09-24 */
  --line: #e3dfd6;
  --line-2: #d6d1c7;
  --line-3: #ebe7df;
  --btn-line: #cfcac0;
  --accent: oklch(0.55 0.08 175); /* maquette : oklch(0.58 0.08 175) (texte blanc 4,11:1) — assombri pour l'AA (4,65:1), essai du 2026-09-24 */
  --accent-ink: oklch(0.5 0.08 175);
  --accent-soft: oklch(0.93 0.03 175);
  --cta-note: #5a5750;
  --serif: 'Newsreader', serif;
  --sans: 'Instrument Sans', sans-serif;
  --mono: 'IBM Plex Mono', monospace;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: normal; }
a { color: inherit; text-decoration: none; }
a:hover { opacity: .8; }
img, svg { max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 3px; border-radius: 2px; }
.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -48px; z-index: 50; padding: 10px 16px; border-radius: 99px; background: var(--ink); color: #fff; font-size: 14px; }
.skip-link:focus { top: 12px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.accent { color: var(--accent-ink); }
.balance { text-wrap: balance; }

.wrap { max-width: 1280px; margin: 0 auto; padding: 0 56px; }

/* ---- En-tête ---- */
.topbar { border-bottom: 1px solid var(--line); background: var(--bg); position: sticky; top: 0; z-index: 40; } /* hors maquette : en-tête fixé au défilement (demande de l'utilisateur, 2026-09-24) */
html { scroll-padding-top: 112px; } /* les ancres (#fonctionnalites) ne passent pas sous l'en-tête fixé */
.topbar-in { max-width: 1280px; margin: 0 auto; padding: 14px 56px; display: flex; align-items: center; gap: 36px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 16px; }
.brand-mark { width: 12px; height: 12px; border: 1.5px solid var(--accent); transform: rotate(45deg); display: block; }
.nav { display: flex; gap: 28px; font-size: 14px; color: var(--muted); flex: 1; }
.nav a[aria-current="page"] { color: var(--ink); }
.nav-toggle { display: none; }

.pill { display: inline-block; font-weight: 500; border-radius: 99px; background: var(--accent); color: #fff; border: 0; cursor: pointer; text-align: center; }
.pill-sm { font-size: 14px; padding: 9px 18px; }
.pill-lg { font-size: 15px; padding: 13px 24px; }
.pill-ghost { background: transparent; color: var(--ink); border: 1px solid var(--btn-line); }
.pill[disabled], .pill.is-disabled { opacity: .5; cursor: not-allowed; }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }

.eyebrow { font: 500 12px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--accent-ink); }
.mono-tag { font: 400 12px var(--mono); color: var(--accent-ink); }

/* ---- Héros ---- */
.hero-grid { padding-top: 80px; padding-bottom: 72px; display: grid; grid-template-columns: 1fr 520px; gap: 64px; align-items: center; }
.hero-copy { display: flex; flex-direction: column; gap: 26px; }
.hero-title { margin: 0; font: 300 70px/1.03 var(--serif); letter-spacing: -.02em; text-wrap: balance; }
.hero-lede { margin: 0; max-width: 500px; font-size: 18px; line-height: 1.6; color: var(--muted); }
.hero-figure { margin: 0; display: flex; flex-direction: column; gap: 14px; }
.hero-disc { position: relative; width: 520px; height: 520px; border-radius: 50%; background: var(--bg-alt); }
.hero-diagram { position: absolute; inset: 44px; }
.hero-caption { display: flex; justify-content: center; gap: 24px; font: 400 12px var(--mono); color: var(--muted); }

/* ---- Bandes ---- */
.band { padding-top: 88px; padding-bottom: 88px; }
.band > .wrap { }
.band-lg { padding-top: 104px; padding-bottom: 104px; }
.band-alt { background: var(--bg-alt); }
.stack-24 { display: flex; flex-direction: column; gap: 24px; }
.stack-32 { display: flex; flex-direction: column; gap: 32px; }
.stack-40 { display: flex; flex-direction: column; gap: 40px; }
.stack-44 { display: flex; flex-direction: column; gap: 44px; }
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; }
.sec-head-main { display: flex; flex-direction: column; gap: 14px; max-width: 620px; }
.sec-head-640 { max-width: 640px; }
.sec-head-600 { max-width: 600px; }
.gap-12 { gap: 12px; }
.sec-head-text { margin: 0; max-width: 360px; font-size: 15px; line-height: 1.6; color: var(--muted); }
.h2 { margin: 0; font: 300 46px/1.1 var(--serif); letter-spacing: -.01em; }
.h2-lg { font: 300 52px/1.06 var(--serif); }
.h2-38 { margin: 0; font: 300 38px/1.1 var(--serif); letter-spacing: -.01em; }
.h3 { margin: 0; font-size: 20px; font-weight: 500; }
.lede-17 { margin: 0; font-size: 17px; line-height: 1.6; color: var(--muted); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); }
.gap-12.grid-2, .gap-12.grid-3 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-20 { gap: 20px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }

/* ---- Feuille de taille ---- */
.sheet { border-radius: 14px; overflow: hidden; background: var(--bg); border: 1px solid var(--line-2); display: grid; grid-template-columns: 1fr 1fr 380px; }
.sheet-view { position: relative; height: 440px; border-right: 1px solid var(--line-2); }
.sheet-label { position: absolute; top: 14px; left: 16px; font: 400 11px var(--mono); color: var(--muted); }
.sheet-diagram { position: absolute; inset: 44px; }
.sheet-table { display: flex; flex-direction: column; font-family: var(--mono); font-size: 12px; }
.sheet-table table { border-collapse: collapse; width: 100%; }
.sheet-table tr { display: grid; grid-template-columns: 28px 1fr 64px 92px; padding: 13px 16px; border-bottom: 1px solid var(--line-3); color: var(--ink); transition: background .3s; }
.sheet-table thead tr { padding: 14px 16px; border-bottom: 1px solid var(--line-2); color: var(--muted); font-size: 10px; letter-spacing: .06em; }
.sheet-table th, .sheet-table td { padding: 0; text-align: left; font-weight: 400; }
.sheet-table tbody tr.on { background: var(--accent); color: #fff; }
.sheet-foot { margin-top: auto; padding: 14px 16px; border-top: 1px solid var(--line-2); display: grid; grid-template-columns: 1fr 1fr; gap: 6px; color: var(--muted); font-size: 11px; }

/* ---- Recalcul automatique ---- */
.feat-card { padding: 32px; border-radius: 16px; background: var(--bg-alt); display: flex; flex-direction: column; gap: 22px; }
.feat-panel { border-radius: 12px; background: var(--bg); }
.h-220 { height: 220px; }
.h-240 { height: 240px; }
.feat-text { margin: 0; font-size: 15px; line-height: 1.6; color: var(--muted); }
.mat-table { padding: 16px 18px; display: flex; flex-direction: column; }
.mat-table table { border-collapse: collapse; width: 100%; }
.mat-table tr { display: grid; grid-template-columns: 1fr 70px 16px 70px; gap: 8px; padding: 9px 0; border-bottom: 1px solid var(--line); font: 400 12px var(--mono); align-items: baseline; }
.mat-table thead tr { padding: 0 0 10px; border-bottom: 1px solid var(--line-2); font: 400 10px var(--mono); letter-spacing: .06em; color: var(--muted); }
.mat-table th, .mat-table td { padding: 0; text-align: right; font-weight: 400; }
.mat-table tbody th { text-align: left; color: var(--muted); }
.mat-table thead th.accent, .mat-table .accent { color: var(--accent-ink); }
.mat-table .arrow { color: var(--muted); text-align: center; }
.mat-foot { display: flex; justify-content: space-between; padding-top: 10px; font: 400 11px var(--mono); color: var(--muted); }

/* ---- Concave ---- */
.concave-visual { aspect-ratio: 1; border-radius: 20px; background: var(--bg-alt); padding: 20px; overflow: hidden; }
.specs { margin: 0; display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.specs > div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.specs dt { font-size: 14px; color: var(--muted); }
.specs dd { margin: 0; font: 400 13px var(--mono); text-align: right; }

/* ---- Bicolores ---- */
.mini-card { padding: 16px; border-radius: 12px; background: var(--bg); display: flex; flex-direction: column; gap: 6px; }
.mini-title { margin: 0; font-size: 15px; font-weight: 500; }
.mini-text { margin: 0; font-size: 13px; line-height: 1.5; color: var(--muted); }
.render-ph, .render-img { grid-column: 1 / 3; aspect-ratio: 16 / 10; border-radius: 20px; }
.render-ph { background: repeating-linear-gradient(135deg, #e6e2d9 0 10px, #ebe8e0 10px 20px); display: flex; align-items: center; justify-content: center; font: 400 12px var(--mono); color: var(--faint); text-align: center; padding: 0 16px; }
.render-img { width: 100%; height: auto; object-fit: cover; display: block; }
.view-card { padding: 20px; border-radius: 16px; background: var(--bg); display: flex; flex-direction: column; gap: 10px; }
.view-label { font: 400 10px var(--mono); letter-spacing: .06em; color: var(--muted); }
.view-svg { width: 100%; height: auto; display: block; }

/* ---- Multicolore ---- */
.band-multi { padding-bottom: 104px; }
.multi-head { padding-top: 48px; border-top: 1px solid var(--line-2); display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; }
.multi-side { display: flex; flex-direction: column; gap: 12px; max-width: 380px; }
.multi-side .sec-head-text { max-width: none; }
.swatches { list-style: none; margin: 0; padding: 0; display: flex; gap: 16px; flex-wrap: wrap; }
.swatches li { display: flex; align-items: center; gap: 8px; font: 400 12px var(--mono); color: var(--muted); }
.sw { width: 14px; height: 14px; border-radius: 4px; opacity: .8; display: block; }
.sw-rose { background: oklch(0.72 0.12 5); }
.sw-jaune { background: oklch(0.84 0.12 90); }
.sw-vert { background: oklch(0.68 0.1 150); }
.sw-bleu { background: oklch(0.66 0.1 250); }
.multi-card { padding: 20px; border-radius: 16px; background: var(--bg); display: flex; flex-direction: column; gap: 12px; }

/* ---- Bandeau d'essai ---- */
.cta-band { margin: 72px 0; padding: 44px; border-radius: 20px; background: var(--accent-soft); display: flex; align-items: center; gap: 32px; }
.cta-copy { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.cta-title { margin: 0; font: 300 36px var(--serif); }
.cta-note { font: 400 12px var(--mono); color: var(--cta-note); }

/* ---- Pied de page ---- */
.foot-top { border-top: 1px solid var(--line); } /* hors maquette : liens légaux, espace client, newsletter */
.foot-cols { max-width: 1280px; margin: 0 auto; padding: 40px 56px 36px; display: grid; grid-template-columns: 1fr 1fr 1.4fr; gap: 40px; }
.foot-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 14px; color: var(--muted); }
.foot-title { display: block; margin: 0 0 12px; font: 500 12px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--accent-ink); }
.foot-note { margin: 0 0 12px; font-size: 14px; line-height: 1.5; color: var(--muted); }
.foot-news-row { display: flex; gap: 8px; }
.foot-news-row input { flex: 1; min-width: 0; padding: 9px 16px; border: 1px solid var(--btn-line); border-radius: 99px; background: #fff; font-size: 14px; }
.foot-line { max-width: 1280px; margin: 0 auto; padding: 22px 56px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; font: 400 12px var(--mono); color: var(--faint); }
.site-foot .foot-line { border-top: 1px solid var(--line); }
.foot-line a:hover { color: var(--ink); opacity: 1; }

/* ---- Pages intérieures (hors maquette, même vocabulaire) ---- */
.page-head { padding-top: 80px; padding-bottom: 48px; display: flex; flex-direction: column; gap: 20px; max-width: 820px; }
.page-title { margin: 0; font: 300 56px/1.05 var(--serif); letter-spacing: -.02em; text-wrap: balance; }
.page-lede { margin: 0; font-size: 18px; line-height: 1.6; color: var(--muted); max-width: 640px; }
.page-body { padding-bottom: 96px; }
.prose { max-width: 760px; font-size: 16px; line-height: 1.7; }
.prose h2 { font: 300 32px/1.15 var(--serif); margin: 48px 0 16px; letter-spacing: -.01em; }
.prose h3 { font-size: 19px; font-weight: 500; margin: 32px 0 10px; }
.prose p, .prose ul, .prose ol { margin: 0 0 16px; }
.prose a { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; }
.prose img { height: auto; border-radius: 12px; display: block; margin: 24px 0; }
.prose blockquote { margin: 24px 0; padding: 4px 0 4px 20px; border-left: 2px solid var(--accent); color: var(--muted); }
.prose table { border-collapse: collapse; width: 100%; margin: 0 0 16px; font-size: 14px; }
.prose th, .prose td { border-bottom: 1px solid var(--line); padding: 8px 10px 8px 0; text-align: left; vertical-align: top; }
.prose code { font: 400 14px var(--mono); }
.legal-updated { font: 400 12px var(--mono); color: var(--muted); }

.card { padding: 32px; border-radius: 16px; background: var(--bg-alt); }
.card-white { background: var(--bg); border: 1px solid var(--line-2); }

/* Tarifs */
.offers { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 420px)); gap: 20px; margin-bottom: 48px; }
.offer { display: flex; flex-direction: column; gap: 18px; }
.offer-name { margin: 0; font: 300 32px/1.1 var(--serif); }
.offer-price { font: 300 56px/1 var(--serif); letter-spacing: -.02em; }
.offer-price small { font: 400 12px var(--mono); color: var(--muted); letter-spacing: 0; margin-left: 6px; }
.offer-summary { margin: 0; color: var(--muted); line-height: 1.6; }
.checks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 15px; line-height: 1.5; }
.checks li { position: relative; padding-left: 24px; }
.checks li::before { content: ""; position: absolute; left: 2px; top: 7px; width: 8px; height: 8px; border: 1.5px solid var(--accent); transform: rotate(45deg); }
.note-box { padding: 16px 18px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line-2); font-size: 14px; line-height: 1.55; color: var(--muted); }

/* Formulaires (charte §23 : libellé devant le champ) */
.form { display: flex; flex-direction: column; gap: 10px; max-width: 620px; }
.form-row { display: grid; grid-template-columns: 150px 1fr; gap: 10px 16px; align-items: center; }
.form-row.top { align-items: start; }
.form-row.top > label { padding-top: 10px; }
.form-row > label { font-size: 14px; color: var(--muted); }
.form-row .opt { font-size: 12px; }
.input, .form input[type="text"], .form input[type="email"], .form input[type="tel"], .form input[type="password"], .form select, .form textarea {
  width: 100%; padding: 10px 14px; border: 1px solid var(--btn-line); border-radius: 10px; background: #fff; font-size: 15px;
}
.form textarea { min-height: 140px; resize: vertical; line-height: 1.5; }
.form-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; padding-top: 8px; }
.form-check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.5; color: var(--ink); }
.form-check input { margin-top: 3px; width: 16px; height: 16px; accent-color: var(--accent-ink); flex: none; }
.form-note { font-size: 13px; line-height: 1.5; color: var(--muted); margin: 0; }
.form-note a, .form-check a { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; }
.alert { padding: 12px 16px; border-radius: 12px; font-size: 14px; line-height: 1.5; margin: 0 0 16px; }
.alert-ok { background: var(--accent-soft); color: #20453f; }
.alert-err { background: #f6e3de; color: #7a2a18; }
.alert-info { background: var(--bg-alt); color: var(--ink); }
.seg { justify-self: start; display: inline-flex; border: 1px solid var(--btn-line); border-radius: 99px; padding: 3px; gap: 2px; }
.seg label { padding: 6px 14px; border-radius: 99px; font-size: 14px; cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg input:checked + span { color: #fff; }
.seg label:has(input:checked) { background: var(--accent-ink); color: #fff; }
.seg label:has(input:focus-visible) { outline: 2px solid var(--accent-ink); outline-offset: 2px; }

/* Téléchargement */
.dl-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 20px; align-items: start; }
.dl-meta { font: 400 12px var(--mono); color: var(--muted); display: flex; flex-direction: column; gap: 6px; word-break: break-all; }

/* ---- Diagrammes animés (public/assets/js/site.js) ---- */
@keyframes flDraw { to { stroke-dashoffset: 0; } }
.fl-svg { width: 100%; height: 100%; display: block; }
[data-fl="diagram"] .fl-svg, .fl-visible { overflow: visible; }

/* ---- Mouvement réduit ---- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ---- Adaptations mobile (hors maquette, qui est dessinée en 1280 px) ---- */
@media (max-width: 1180px) {
  .hero-grid { grid-template-columns: 1fr 440px; gap: 48px; }
  .hero-disc { width: 440px; height: 440px; }
  .hero-title { font-size: 60px; }
  .sheet { grid-template-columns: 1fr 1fr; }
  .sheet-table { grid-column: 1 / 3; border-top: 1px solid var(--line-2); }
  .sheet-view:nth-child(2) { border-right: 0; }
}
@media (max-width: 900px) {
  .wrap, .topbar-in, .foot-cols, .foot-line { padding-left: 24px; padding-right: 24px; }
  .topbar-in { flex-wrap: wrap; gap: 16px; padding-top: 16px; padding-bottom: 16px; }
  .brand { flex: 1; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 1px solid var(--btn-line); border-radius: 99px; background: transparent; cursor: pointer; order: 3; }
  .nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { display: block; width: 16px; height: 1.5px; background: var(--ink); position: relative; content: ""; }
  .nav-toggle-bars::before { position: absolute; top: -5px; }
  .nav-toggle-bars::after { position: absolute; top: 5px; }
  .nav { order: 4; flex-basis: 100%; flex-direction: column; gap: 14px; padding: 8px 0 6px; font-size: 16px; display: none; }
  .nav.open { display: flex; max-height: calc(100vh - 80px); overflow-y: auto; }
  .topbar .pill-sm { order: 2; }
  .hero-grid { grid-template-columns: 1fr; padding-top: 48px; padding-bottom: 56px; gap: 40px; }
  .hero-title { font-size: 46px; }
  .hero-lede { font-size: 17px; }
  .hero-figure { align-items: center; }
  .hero-disc { width: min(100%, 440px); height: auto; aspect-ratio: 1; }
  .hero-diagram { inset: 8.5%; }
  .hero-caption { flex-wrap: wrap; gap: 8px 20px; }
  .band { padding-top: 64px; padding-bottom: 64px; }
  .band-lg { padding-top: 72px; padding-bottom: 72px; }
  .band-multi { padding-bottom: 72px; }
  .sec-head, .multi-head { flex-direction: column; align-items: flex-start; gap: 16px; }
  .h2 { font-size: 36px; }
  .h2-lg { font-size: 38px; }
  .h2-38 { font-size: 32px; }
  .sheet { grid-template-columns: 1fr; }
  .sheet-view { height: auto; aspect-ratio: 1; border-right: 0; border-bottom: 1px solid var(--line-2); }
  .sheet-diagram { inset: 12%; }
  .sheet-table { grid-column: auto; border-top: 0; }
  .sheet-table tr { grid-template-columns: 28px 1fr 60px 84px; padding-left: 12px; padding-right: 12px; }
  .grid-2, .split { grid-template-columns: 1fr; }
  .split { gap: 40px; }
  .feat-card { padding: 20px; }
  .feat-card .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .band-alt .split > .grid-2 { grid-template-columns: 1fr 1fr; }
  .cta-band { margin: 48px 0; padding: 28px; flex-direction: column; align-items: flex-start; gap: 20px; }
  .cta-title { font-size: 30px; }
  .foot-cols { grid-template-columns: 1fr 1fr; padding-top: 32px; }
  .foot-news { grid-column: 1 / 3; }
  .foot-line { flex-direction: column; }
  .page-head { padding-top: 48px; }
  .page-title { font-size: 40px; }
  .form-row { grid-template-columns: 1fr; gap: 4px; }
  .form-row.top > label { padding-top: 0; }
  .dl-grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .hero-title { font-size: 40px; }
  .feat-card .grid-2, .band-alt .split > .grid-2 { grid-template-columns: 1fr; }
  .render-ph, .render-img { grid-column: auto; }
  .foot-cols { grid-template-columns: 1fr; }
  .foot-news { grid-column: auto; }
  .offer-price { font-size: 46px; }
}

/* ---- Espace client (hors maquette) : puzzle anti-robot, mots de passe — repris de sditech ---- */
.acc-card { max-width: 620px; }
.acc-links { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 14px; margin-top: 18px; }
.acc-links a, .link { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; }
.acc-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: -24px 0 32px; }
.acc-nav a, .acc-nav button { font-size: 14px; padding: 7px 14px; border-radius: 99px; border: 1px solid var(--btn-line); background: transparent; cursor: pointer; }
.acc-nav a[aria-current="page"] { background: var(--accent-ink); border-color: var(--accent-ink); color: #fff; }
.acc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.acc-section { margin-bottom: 20px; }
.acc-section h2 { margin: 0 0 16px; font: 300 28px/1.15 var(--serif); }
.licence-key { font: 500 18px var(--mono); letter-spacing: .04em; padding: 12px 16px; border-radius: 10px; background: #fff; border: 1px dashed var(--btn-line); display: inline-block; user-select: all; word-break: break-all; }
.kv { display: grid; grid-template-columns: 150px 1fr; gap: 8px 16px; font-size: 14px; margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th, .tbl td { text-align: left; padding: 10px 10px 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl th { font: 400 11px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.tbl-wrap { overflow-x: auto; }
.badge { display: inline-block; font: 500 11px var(--mono); padding: 3px 8px; border-radius: 99px; background: var(--bg-alt); color: var(--ink); white-space: nowrap; }
.badge-ok { background: var(--accent-soft); color: #20453f; }
.badge-warn { background: #f6ecd6; color: #6b4a0e; }
.badge-err { background: #f6e3de; color: #7a2a18; }
.btn-link { padding: 0; border: 0; background: none; color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font-size: 14px; }
.btn-danger { background: #9b2c1a; }
.btn-link.btn-danger { background: none; color: #9b2c1a; }
.inline-form { display: inline; }
.pro-fields[hidden] { display: none; }

.slcap { margin: 6px 0 6px; }
.slcap [hidden] { display: none !important; }
.slcap-label { font-size: 14px; color: var(--muted); margin: 0 0 8px; }
.slcap-stage { position: relative; width: 100%; max-width: 340px; aspect-ratio: 2 / 1; border-radius: 12px; overflow: hidden; background: var(--bg-alt); border: 1px solid var(--line-2); user-select: none; -webkit-user-select: none; }
.slcap-bg { display: block; width: 100%; height: 100%; object-fit: cover; }
.slcap-piece { position: absolute; left: 0; top: 0; width: 17.35%; height: auto; pointer-events: none; filter: drop-shadow(0 2px 3px rgba(0,0,0,.55)); }
.slcap-refresh { position: absolute; top: 8px; right: 8px; width: 34px; height: 34px; border: 0; border-radius: 50%; background: rgba(30,30,28,.62); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.slcap-refresh svg { width: 17px; height: 17px; }
.slcap-track { position: relative; height: 46px; max-width: 340px; margin-top: 10px; overflow: hidden; border-radius: 12px; background: #fff; border: 1px solid var(--line-2); }
.slcap-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: oklch(0.58 0.08 175 / .14); }
.slcap-hint { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding-left: 56px; font-size: 13px; color: var(--muted); pointer-events: none; }
.slcap-handle { position: absolute; top: 0; left: 0; height: 100%; width: 59px; min-width: 44px; display: flex; align-items: center; justify-content: center; background: #fff; color: var(--accent-ink); cursor: grab; touch-action: none; border-right: 1px solid var(--line-2); box-shadow: 2px 0 8px rgba(0,0,0,.08); }
.slcap-handle:focus-visible { outline: 3px solid var(--accent-ink); outline-offset: -3px; }
.slcap-handle svg { width: 22px; height: 22px; }
.slcap-handle .slcap-ico-check { display: none; }
.slcap.is-dragging .slcap-handle { cursor: grabbing; }
.slcap.is-busy .slcap-handle { opacity: .7; }
.slcap-status { min-height: 1.25em; margin: 7px 0 0; font-size: 13px; color: var(--muted); }
.slcap-status.is-error { color: #9b2c1a; }
.slcap.is-solved .slcap-track { border-color: var(--accent-ink); }
.slcap.is-solved .slcap-fill { background: oklch(0.58 0.08 175 / .22); }
.slcap.is-solved .slcap-hint { visibility: hidden; }
.slcap.is-solved .slcap-handle { cursor: default; }
.slcap.is-solved .slcap-handle .slcap-ico-arrow { display: none; }
.slcap.is-solved .slcap-handle .slcap-ico-check { display: block; }
.slcap.is-solved .slcap-status { color: var(--accent-ink); font-weight: 600; }
.slcap.is-error .slcap-track { border-color: #9b2c1a; animation: slcap-shake .45s ease; }
.slcap-alt { margin: 4px 0 0; }
.slcap-alt label { display: block; font-size: 14px; color: var(--muted); margin-bottom: 6px; }
.slcap-alt input { max-width: 200px; }
.slcap-switch { margin-top: 4px; padding: 0; border: 0; background: none; font-size: 13px; color: var(--muted); text-decoration: underline; cursor: pointer; }
.slcap-done { margin: 6px 0; font-size: 14px; font-weight: 600; color: var(--accent-ink); }
.slcap-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
@keyframes slcap-shake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }

.pw-field { position: relative; }
.pw-field input { padding-right: 50px !important; }
.pw-toggle { position: absolute; top: 2px; bottom: 2px; right: 2px; width: 44px; display: flex; align-items: center; justify-content: center; padding: 0; border: 0; border-radius: 8px; background: transparent; color: var(--muted); cursor: pointer; }
.pw-toggle[hidden] { display: none; }
.pw-toggle:focus-visible { outline: 3px solid var(--accent-ink); outline-offset: -3px; }
.pw-toggle svg { width: 20px; height: 20px; }
.pw-toggle .pw-ico-hide { display: none; }
.pw-toggle.is-shown .pw-ico-show { display: none; }
.pw-toggle.is-shown .pw-ico-hide { display: block; }
.pw-field input::-ms-reveal, .pw-field input::-ms-clear { display: none; }
.pw-match-msg { margin: 4px 0 0; font-size: 13px; color: #9b2c1a; }
.pw-match-msg[hidden] { display: none; }
@media (max-width: 900px) {
  .acc-grid { grid-template-columns: 1fr; }
  .kv { grid-template-columns: 1fr; gap: 2px; }
  .kv dd { margin-bottom: 8px; }
}
.stack-10 { display: flex; flex-direction: column; gap: 10px; }
.form-row > span:first-child, .form-row-label { font-size: 14px; color: var(--muted); }

/* Logo (remplaçable en admin, src/Web/Brand.php) : remplace le losange + texte de la maquette ; agrandi à 72 px le 2026-09-24 (demande de l'utilisateur) */
.brand-logo { height: 72px; width: auto; display: block; }
@media (max-width: 900px) { .brand-logo { height: 46px; } }

/* ---- Angles droits (réglage Paramètres › Apparence, classe « sq » sur <body>) ----
   Site public et administration se règlent séparément. Seuls les coins disparaissent : le disque qui porte
   le diagramme de l'accueil est une forme de la maquette et reste rond. */
body.sq *, body.sq *::before, body.sq *::after { border-radius: 0 !important; }
body.sq .hero-disc { border-radius: 50% !important; }

/* Petits téléphones : le logo (46 px) ne tenait pas à côté du bouton et du menu et se déformait
   (audit Lighthouse du 2026-09-24) — jamais rétréci, et un peu plus bas sous 440 px. */
.brand-logo { max-width: none; flex: none; }
@media (max-width: 440px) {
  .topbar-in { padding-left: 16px; padding-right: 16px; gap: 10px; }
  .brand-logo { height: 40px; }
}
/* Le puzzle anti-robot n'apparaît qu'une fois le JavaScript chargé : sa place est réservée d'emblée (pas de décalage). */
@media (scripting: enabled) { .slcap { min-height: 300px; } }

/* En-tête : Connexion + Télécharger (2026-09-27, hors maquette : demande de l'utilisateur). Sous 520 px, « Connexion »
   passe dans le menu pour laisser la place au logo. */
.topbar-actions { display: flex; align-items: center; gap: 10px; flex: none; }
.nav-login { display: none; }
.acc-new { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.acc-new .h3 { margin: 0; }
@media (max-width: 900px) { .topbar-actions { order: 2; } }
@media (max-width: 520px) {
  .topbar-login { display: none; }
  .nav-login { display: block; }
}

/* Manuel d'utilisation (/compte/manuel, 2026-09-27) : sommaire à gauche, collant ; au-dessus du texte sur mobile. */
.manual { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 48px; align-items: start; margin-top: 8px; }
.manual-toc { position: sticky; top: 110px; max-height: calc(100vh - 130px); overflow-y: auto; font-size: 14px; line-height: 1.45; }
.manual-toc-title { font-family: var(--mono, "IBM Plex Mono", monospace); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; }
.manual-toc ol { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.manual-toc a { color: var(--ink); text-decoration: none; }
.manual-toc a:hover { color: var(--accent-ink); text-decoration: underline; }
.manual-body { max-width: 820px; }
.manual-body h2 { scroll-margin-top: 100px; }
.manual-body figure { margin: 24px 0; }
.manual-body figure img { max-width: 100%; height: auto; margin: 0; border: 1px solid var(--line); }
.manual-body figcaption { font-size: 13px; color: var(--muted); margin-top: 8px; font-style: italic; }
.manual-body .tbl-wrap { overflow-x: auto; }
@media (max-width: 900px) {
  .manual { grid-template-columns: 1fr; gap: 24px; }
  .manual-toc { position: static; max-height: none; border: 1px solid var(--line); padding: 16px 18px; }
}
.audience-choice { margin: 8px 0 24px; display: flex; flex-direction: column; gap: 12px; }
.audience-choice p { margin: 0; }

/* Avis (2026-09-27) : note en étoiles sans JavaScript (boutons radio en ordre inverse), liste publique. */
.stars-field { border: 0; padding: 0; margin: 0 0 14px; }
.stars-field legend { font-size: 14px; font-weight: 500; margin-bottom: 6px; }
.stars { display: inline-flex; flex-direction: row-reverse; gap: 4px; }
.stars input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.stars label { width: 34px; height: 34px; cursor: pointer; background: no-repeat center / 30px 30px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.8l2.8 5.8 6.3.9-4.6 4.4 1.1 6.3L12 17.2l-5.6 3 1.1-6.3L2.9 9.5l6.3-.9z' fill='none' stroke='%23726e66' stroke-width='1.4' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.stars input:checked ~ label, .stars label:hover, .stars label:hover ~ label { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.8l2.8 5.8 6.3.9-4.6 4.4 1.1 6.3L12 17.2l-5.6 3 1.1-6.3L2.9 9.5l6.3-.9z' fill='%23b8860b' stroke='%239a6f06' stroke-width='1.4' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.stars input:focus-visible + label { outline: 3px solid var(--accent-ink); outline-offset: 2px; }
.review-state { margin: 0 0 18px; font-size: 15px; }
.rating { color: #9a6f06; letter-spacing: 2px; font-size: 18px; }
.review-list { display: flex; flex-direction: column; gap: 18px; max-width: 820px; }
.review { padding: 22px 24px; }
.review h3 { margin: 6px 0 8px; font-size: 19px; font-weight: 500; }
.review-meta { font-size: 13px; color: var(--muted); }
.review-body { margin: 0 0 10px; line-height: 1.65; }
.review-reply { margin-top: 12px; padding: 12px 16px; border-left: 2px solid var(--accent); background: var(--bg); font-size: 14.5px; }
.reviews-summary { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-bottom: 20px; }
.reviews-summary strong { font: 300 44px/1 var(--serif); }

/* ---- Support par tickets (espace client et administration, repris de sditech le 2026-09-27) ---- */
.tk-toolbar { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.tk-h2 { margin: 0 0 12px; font: 400 22px/1.25 var(--serif); }
.tk-toolbar .tk-h2 { margin: 0; }
.tk-form { max-width: 760px; margin-top: 18px; }
.tk-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.tk-chips a { font-size: 14px; padding: 7px 14px; border-radius: 99px; border: 1px solid var(--btn-line); }
.tk-chips a[aria-current="page"] { background: var(--accent-ink); border-color: var(--accent-ink); color: #fff; }
.tk-empty { padding: 28px 0; text-align: center; }
.tk-list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 10px; }
.tk-item { display: flex; gap: 16px; justify-content: space-between; padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: inherit; text-decoration: none; }
.tk-item:hover { border-color: var(--btn-line); }
.tk-item.is-unread { border-left: 3px solid var(--accent); }
.tk-item-main, .tk-item-side { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.tk-item-side { align-items: flex-end; text-align: right; flex: none; }
.tk-ref, .tk-sub .mono { font: 500 12px var(--mono); color: var(--accent-ink); }
.tk-subject { font-weight: 600; overflow-wrap: anywhere; }
.tk-meta, .tk-sub { font-size: 13px; color: var(--muted); }
.tk-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; }
.tk-new { font: 500 12px var(--mono); color: var(--accent-ink); }
.tk-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; align-items: start; }
.tk-col { min-width: 0; }
.tk-thread { display: grid; gap: 12px; margin-bottom: 20px; }
.tk-msg { border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; background: #fff; }
.tk-msg header { display: flex; flex-wrap: wrap; gap: 4px 12px; justify-content: space-between; font-size: 13.5px; margin-bottom: 8px; }
.tk-msg time { color: var(--muted); font-size: 12.5px; }
.tk-msg-team { background: var(--bg); border-left: 3px solid var(--accent); }
.tk-msg-internal { background: #fbf5e6; border: 1px dashed #d6b76a; }
.tk-body { line-height: 1.6; overflow-wrap: anywhere; }
.tk-files { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tk-files a { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 8px; font-size: 13.5px; color: var(--ink); text-decoration: none; }
.tk-files a.tk-thumb { padding: 3px; }
.tk-thumb img { display: block; max-width: 160px; max-height: 120px; width: auto; height: auto; border-radius: 6px; }
.tk-reply { margin-top: 8px; }
.tk-aside { display: grid; gap: 16px; }
.tk-card { padding: 18px 20px; }
.tk-dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0 0 12px; font-size: 14px; }
.tk-dl dt { color: var(--muted); }
.tk-dl dd { margin: 0; overflow-wrap: anywhere; }
.tk-events { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 13.5px; }
.tk-events time { display: block; font-size: 12px; color: var(--muted); }
.tk-push { flex: 1; }
.tk-center { text-align: center; }
.tk-row { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; margin: 10px 0; font-size: 14px; }
.tk-composer textarea { width: 100%; min-height: 160px; padding: 10px 14px; border: 1px solid var(--btn-line); border-radius: 10px; font: inherit; line-height: 1.5; background: #fff; }
.tk-composer.is-internal { background: #fbf5e6; border-color: #d6b76a; }
.tk-composer select, .tk-props select, .tk-filters select, .tk-bulk select, .tk-set-row input[type="text"], .tk-set-row input[type="number"] { padding: 7px 10px; border: 1px solid var(--btn-line); border-radius: 8px; background: #fff; font-size: 14px; }
.tk-props { display: grid; gap: 10px; font-size: 13.5px; color: var(--muted); }
.tk-props label:not(.form-check) { display: grid; gap: 4px; }
.tk-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 14px; }
.tk-filters input[type="search"] { flex: 1 1 260px; padding: 8px 14px; border: 1px solid var(--btn-line); border-radius: 99px; background: #fff; }
.tk-bulk { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; margin-bottom: 10px; font-size: 14px; }
.tk-mode { margin: 0; }
.tk-table td { vertical-align: top; }
.tk-row-unread td { background: var(--accent-soft); }
.tk-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); margin-right: 6px; vertical-align: middle; }
.tk-sla { font-size: 12.5px; white-space: nowrap; color: var(--muted); }
.tk-sla.ok { color: #20453f; }
.tk-sla.warn { color: #6b4a0e; font-weight: 600; }
.tk-sla.err { color: #7a2a18; font-weight: 600; }
.tk-kpi-due { border-color: #d9a898; background: #fbeeea; }
.tk-group-head td { background: var(--bg-alt); cursor: pointer; }
.tk-group-bar { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; }
.tk-group-toggle { display: inline-flex; border: 0; background: transparent; padding: 2px; cursor: pointer; color: var(--ink); }
.tk-group-toggle svg { transition: transform .15s; }
.tk-group.is-collapsed .tk-group-toggle svg { transform: rotate(-90deg); }
.tk-no-anim .tk-group-toggle svg { transition: none; }
.tk-group.is-collapsed tr:not(.tk-group-head) { display: none; }
.tk-group-name { font-weight: 600; color: var(--ink); }
.tk-set-row { display: grid; grid-template-columns: minmax(0, 1fr) 80px auto auto auto; gap: 8px 10px; align-items: center; margin-bottom: 8px; font-size: 14px; }
.tk-canned { border-top: 1px solid var(--line); padding: 10px 0; }
.tk-canned summary { cursor: pointer; }
.tk-canned form { margin-top: 12px; }
@media (max-width: 900px) {
  .tk-layout { grid-template-columns: 1fr; }
  .tk-set-row { grid-template-columns: 1fr 70px; }
}
@media (max-width: 560px) {
  .tk-item { flex-direction: column; }
  .tk-item-side { align-items: flex-start; text-align: left; }
}

/* ---- Sélecteur de langue (FR · EN · ES), 2026-09-27 ---- */
.lang-switch { display: inline-flex; align-items: center; gap: 2px; font: 500 12px var(--mono); letter-spacing: .04em; }
.lang-switch form { display: inline-flex; gap: 2px; margin: 0; }
.lang-switch a, .lang-switch button { padding: 6px 7px; border: 0; background: none; color: var(--muted); text-decoration: none; cursor: pointer; font: inherit; border-radius: 6px; }
.lang-switch a:hover, .lang-switch button:hover { color: var(--ink); }
.lang-switch [aria-current="true"] { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 4px; }
.lang-switch-menu { display: none; }
.lang-switch-foot { margin-top: 14px; }
.lang-switch-foot a, .lang-switch-foot button { padding: 4px 8px 4px 0; }
@media (max-width: 900px) {
  .lang-switch-top { display: none; }
  .lang-switch-menu { display: inline-flex; padding-top: 6px; }
}

