:root {
  --bg: #f3f0ea; --panel: #fffcf8; --text: #1c1915; --muted: #6f685f; --line: #e3dcd2;
  --accent: #1e3f3a; --on-accent: #f7f4ee; --ok: #1f7a56; --mid: #d4923a; --high: #c4543c;
  --gauge-track: #e7e0d6;
  --serif: Palatino, "Palatino Linotype", "Iowan Old Style", Georgia, serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121410; --panel: #1b1e19; --text: #f4f0e8; --muted: #a39c91; --line: #31362e;
    --accent: #d7e6e0; --on-accent: #14211e; --ok: #3dbe86; --mid: #e2b15a; --high: #e07a64;
    --gauge-track: #2a2e28;
  }
}
@font-face {
  font-family: "Fira Sans Condensed";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/fira-sans-condensed-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Fira Sans Condensed";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("assets/fonts/fira-sans-condensed-latin-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Fira Sans Condensed";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("assets/fonts/fira-sans-condensed-latin-600-normal.woff2") format("woff2");
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; font: 16px/1.5 system-ui, sans-serif; background: var(--bg); color: var(--text); }
body:not(.arriving):not(.working):not(.adding):not(.reading):not(.doc):not(.legal) header,
body:not(.arriving):not(.working):not(.adding):not(.reading):not(.doc):not(.legal) footer,
body:not(.arriving):not(.working):not(.adding):not(.reading):not(.doc):not(.legal) main { visibility: hidden; }
header, main, footer { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
header { padding-top: 36px; }
.brand { display: flex; align-items: center; gap: 16px; }
/* Logo : disque blanc sous l'anneau, pour qu'il se détache du fond (beige ou vert). Encre toujours foncée. */
.mark { width: 58px; height: 58px; flex: none; color: #1c1915; background: #fffcf8; border-radius: 50%; box-shadow: 0 2px 10px rgba(28, 25, 21, .12); }
.eyebrow { margin: 0 0 2px; font-size: .68rem; letter-spacing: .24em; font-weight: 650; color: var(--muted); }
h1 { margin: 0; font-family: var(--serif); font-weight: 500; font-size: 2rem; letter-spacing: -0.02em; line-height: 1.05; }
.lede, footer, small { color: var(--muted); }
footer { padding: 24px 16px 40px; font-size: .9rem; }
.panel, .card { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 20px; margin: 18px 0; box-shadow: 0 1px 0 rgba(28, 25, 21, .04); }
h2 { margin: 0 0 12px; font-size: 1.15rem; }
.card-head h2 { font-family: var(--serif); font-weight: 500; font-size: 1.5rem; letter-spacing: -0.02em; margin: 0; }
form { display: grid; gap: 12px; }
label { display: grid; gap: 4px; font-size: .95rem; }
input { font: inherit; padding: 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--text); }
.row { display: flex; gap: 8px; flex-wrap: wrap; }
.icon { width: 1.05em; height: 1.05em; flex: none; display: block; }
button, .colophon a, .doc .back { display: inline-flex; align-items: center; gap: 8px; }
button { font: inherit; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--accent); background: var(--accent); color: var(--on-accent); cursor: pointer; }
button.secondary { background: transparent; color: var(--accent); }
.error { color: var(--high); margin: 0; }
.card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.card-head button { padding: 4px 10px; font-size: .85rem; }
.card-body { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.chart-col { width: 100%; }
.gauge-wrap { width: min(100%, 440px); }
.gauge-wrap { position: relative; }
.gauge-svg { width: min(100%, 320px); height: auto; display: block; margin: 0 auto; }
.gauge-label { text-align: center; font-weight: 600; margin: -6px 0 0; letter-spacing: -0.01em; }
.gauge-caption { text-align: center; font-size: .85rem; color: var(--muted); margin: 4px 0 0; }
.lvl-conforme { color: var(--ok); } .lvl-ecart_modere { color: var(--mid); } .lvl-ecart_marque { color: var(--high); }
.badge { display: inline-block; font-size: .8rem; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); margin: 8px 0 0; }
.controls { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.controls button { background: transparent; color: var(--text); border-color: var(--line); padding: 4px 10px; font-size: .85rem; }
.controls button[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.chart-box { position: relative; height: 240px; }
select { font: inherit; padding: 10px 36px 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M4 6.2 8 10.2 12 6.2' fill='none' stroke='%236f685f' stroke-width='1.6' stroke-linecap='round'/></svg>") no-repeat right 12px center / 16px; color: var(--text); appearance: none; }
.badges { display: flex; flex-direction: column; align-items: flex-start; }
img.brand { width: 22px; height: 22px; object-fit: contain; flex: none; display: block; }
.brand-names { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; }
.brand-names img.brand { width: 16px; height: 16px; }
.split .choice .brand-names {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px 4px;
  width: 100%;
  margin-top: 10px;
  font-size: .72rem;
  line-height: 1.15;
}
.split .choice .brand-names span {
  justify-items: center;
  align-content: start;
  gap: 4px;
  text-align: center;
}
.split .choice .brand-names img.brand { width: 22px; height: 22px; }
.coverage { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); text-align: left; }
.coverage h3 { font-size: 1.05rem; margin: 0 0 10px; }
.coverage ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.cov { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 10px; align-items: center; padding: 12px 0; }
.cov:first-child { padding-top: 2px; }
.cov + .cov { border-top: 1px solid var(--line); } /* fine ligne entre deux réseaux */
.cov-mark { width: 36px; height: 36px; display: grid; place-items: center; }
.cov-mark img.brand { width: 32px; height: 32px; }
.share-name, .plat-line, button.menu-opt { display: inline-flex; align-items: center; gap: 8px; }
.choice img.brand { width: 28px; height: 28px; }
img.brand { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
.plat-line { display: flex; align-items: flex-start; }
.plat-line img.brand { margin-top: 2px; }
button.menu-opt { width: 100%; text-align: left; }
.cov-head { display: flex; align-items: baseline; gap: 8px; }
.cov-head strong { font-family: "Fira Sans Condensed", sans-serif; font-weight: 500; font-size: 1.05rem; letter-spacing: -0.02em; }
.cov-tag { font-size: .68rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.cov p { margin: 1px 0 0; font-size: .88rem; line-height: 1.35; color: var(--muted); }
.cov p.cov-dates { margin-top: 3px; font-size: .8rem; font-variant-numeric: tabular-nums; }
.filter { margin-bottom: 8px; display: inline-flex; flex-direction: row; align-items: center; gap: 8px; }
/* Niveau d'alerte : « À surveiller » (orange) ou « À signaler » (rouge), sous la jauge. */
.card-body > .alert-box { align-self: stretch; }
.alert-box .guide-links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.guide-link { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 1px solid #e3d3bd; border-radius: 999px; background: #fffcf8; color: var(--text); font: 500 .9rem "Fira Sans Condensed", sans-serif; cursor: pointer; }
.guide-link .icon { width: 15px; height: 15px; color: var(--accent); }
.guide-link:hover { border-color: var(--accent); }
/* Calendrier de suivi, sous l'alerte, pleine largeur. */
.card-body > .follow-box { align-self: stretch; }
.follow-box { margin: 12px 0 0; padding: 16px 18px; border-radius: 14px; border: 1px solid var(--line); background: var(--bg); text-align: left; font-family: "Fira Sans Condensed", sans-serif; color: var(--text); }
.follow-box p { margin: 0; }
.follow-box .alert-title .icon { width: 18px; height: 18px; color: var(--accent); }
.follow-steps { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.follow-step { display: grid; grid-template-columns: 9.5em minmax(0, 1fr); gap: 2px 12px; padding: 8px 10px; border-radius: 10px; background: var(--panel); font-size: .93rem; line-height: 1.4; }
.follow-step > span:last-child { grid-column: 2; color: var(--muted); }
.follow-when { grid-row: span 2; font-size: .8rem; font-weight: 600; color: var(--muted); padding-top: .15em; }
.follow-step.now { box-shadow: inset 3px 0 0 var(--mid); }
.follow-step.done { opacity: .6; }
.follow-step.done strong::after { content: " ✓"; color: var(--ok); }
.follow-compare ul { margin: 6px 0 0; padding-left: 18px; display: grid; gap: 4px; font-size: .93rem; }
.follow-actions { margin-top: 12px; display: flex; }
.follow-actions button { padding: 9px 16px; font: 500 .95rem "Fira Sans Condensed", sans-serif; }
@media (max-width: 560px) { .follow-step { grid-template-columns: 1fr; } .follow-step > span:last-child { grid-column: 1; } .follow-when { grid-row: auto; } }
/* Guides « Que faire si… » */
.guide summary { grid-template-columns: 22px minmax(0, 1fr); }
.guide-ico .icon { width: 18px; height: 18px; color: var(--accent); }
.guide-body { padding: 4px 14px 14px; display: grid; gap: 12px; font-size: .95rem; line-height: 1.45; }
.guide-intro { margin: 0; color: var(--muted); }
.guide-title { margin: 0 0 4px; font-size: .72rem; font-weight: 650; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.guide-part ol, .guide-part ul { margin: 0; padding-left: 1.3em; display: grid; gap: 5px; }
.guide-part.dont ul { list-style: none; padding-left: 0; }
.guide-part.dont li::before { content: "✕ "; color: var(--high); font-weight: 700; }
.alert-box { margin: 18px 0 0; padding: 16px 18px; border-radius: 14px; border-left: 4px solid var(--mid); background: #fbf3e6; text-align: left; font-family: "Fira Sans Condensed", sans-serif; color: var(--text); }
.alert-box.alert-report { border-left-color: var(--high); background: #fbebe6; }
.alert-box p { margin: 0; }
.alert-title { display: flex; align-items: center; gap: 8px; font-size: 1.15rem; }
.alert-title strong { font-weight: 600; letter-spacing: -0.01em; }
.alert-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--mid); }
.alert-box.alert-report .alert-dot { background: var(--high); }
.alert-lede { margin-top: 4px !important; font-size: .92rem; line-height: 1.4; color: var(--muted); }
.alert-sub { margin-top: 12px !important; font-size: .72rem; font-weight: 650; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.alert-box ul { margin: 8px 0 0; padding-left: 18px; display: grid; gap: 6px; font-size: .95rem; line-height: 1.4; }
.alert-box a { color: var(--accent); font-weight: 600; }
.alert-numbers { margin-top: 12px !important; padding-top: 10px; border-top: 1px solid #ead9c4; font-size: .85rem; line-height: 1.45; color: var(--muted); }
.kid-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.kid-alert { width: fit-content; padding: 2px 9px; line-height: 1.5; border-radius: 999px; font-size: .75rem; font-weight: 650; letter-spacing: .02em; color: #fff; background: var(--mid); }
.kid-alert.alert-report { background: var(--high); }
.note { margin: 0; padding: 8px 12px; border-left: 4px solid var(--mid); background: var(--bg); border-radius: 6px; font-size: .9rem; color: var(--muted); }

.check { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.check input { width: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.print-only { display: none; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
button:disabled { opacity: .6; cursor: progress; }
@media print {
  @page { size: A4 portrait; margin: 0; }
  html, body.print-one { margin: 0 !important; padding: 0 !important; background: #fff !important; width: 210mm !important; }
  body.print-one > header, body.print-one > footer, body.print-one .panel, body.print-one .card:not(.print-target) { display: none !important; }
  body.print-one main, body.print-one #profiles, body.print-one .desk, body.print-one .sheet {
    display: block !important; width: 210mm !important; max-width: none !important;
    margin: 0 !important; padding: 0 !important; min-height: 0 !important;
    background: transparent !important; box-shadow: none !important; border: 0 !important; gap: 0 !important;
  }
  .print-target { border: 0; box-shadow: none; background: transparent; }
  .print-target .card-head button, .print-target .controls, .print-target .filter { display: none !important; }
  .print-target .print-only { display: block; font-size: .85rem; margin-top: 16px; }
  .print-target .page {
    position: relative;
    width: 210mm !important; min-height: 297mm !important; height: auto !important; max-height: none !important;
    margin: 0 !important; overflow: visible !important; box-shadow: none !important; border: 0 !important; border-radius: 0 !important;
    break-after: page; page-break-after: always; break-inside: auto; page-break-inside: auto;
    color: #1c1915 !important; background: #fff !important;
    print-color-adjust: exact; -webkit-print-color-adjust: exact;
  }
  .print-target .page:last-child { break-after: auto; page-break-after: auto; }
  .chart-box, canvas, .gauge-svg, .frise-cell, .heat td { break-inside: avoid; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
}

.spiral .gauge-caption, .spiral .changes p { text-align: left; }
.slope { display: flex; align-items: flex-end; gap: 6px; height: 52px; margin: 12px 0 4px; max-width: 280px; }
.slope span { flex: 1; background: var(--accent); border-radius: 3px 3px 0 0; min-height: 4px; }
.changes { margin-top: 12px; font-size: .9rem; }
.changes p { margin: 0 0 4px; color: var(--muted); }
.changes ul { margin: 0; padding-left: 18px; }
.changes li { margin-bottom: 4px; }

.heatmap { margin-top: 20px; }
.heatmap h3 { margin: 0 0 4px; font-size: 1rem; }
.heat-wrap { margin-top: 10px; }
.heat { width: 100%; table-layout: fixed; border-collapse: separate; border-spacing: 3px; font-size: .7rem; color: var(--muted); }
.heat caption { text-align: left; font-size: .85rem; color: var(--text); margin-bottom: 4px; caption-side: top; }
.heat th { font-weight: 400; padding: 0; text-align: center; }
.heat thead td:first-child,
.heat tbody th { width: 2.6em; text-align: right; padding-right: 6px; }
.heat th.night { border-bottom: 2px solid var(--muted); }
.heat td { height: 22px; background: var(--bg); border-radius: 3px; }

.frise { display: grid; width: 100%; grid-template-rows: repeat(7, 22px); grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 3px; margin-top: 8px; }
.frise-cell { width: 100%; height: 22px; border-radius: 3px; background: var(--line); }
.lvl-bg-conforme { background: var(--ok); } .lvl-bg-ecart_modere { background: var(--mid); } .lvl-bg-ecart_marque { background: var(--high); }
.frise-cell.excl { background: repeating-linear-gradient(45deg, var(--line), var(--line) 3px, var(--bg) 3px, var(--bg) 6px); }
.frise-cell.noted { outline: 2px solid var(--text); outline-offset: -2px; }
.share { margin: 0; padding: 12px 0; } .share strong { font-size: .9rem; }
.share + .share { border-top: 1px solid var(--line); } /* fine ligne entre deux réseaux */
.share-row { display: grid; grid-template-columns: 120px 1fr 44px; align-items: center; gap: 8px; font-size: .8rem; color: var(--muted); }
.share-bar { background: var(--bg); border-radius: 4px; height: 8px; overflow: hidden; }
.share-bar span { display: block; height: 100%; background: var(--accent); }
.share-val { text-align: right; }
.quality summary, .advanced summary { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.quality summary { font-weight: 600; font-size: 1rem; }
.quality summary::-webkit-details-marker, .advanced summary::-webkit-details-marker { display: none; }
.quality summary::marker, .advanced summary::marker { content: none; }
.quality ul, .notes ul, .heatmap ul { margin: 8px 0 0; padding-left: 18px; font-size: .9rem; }
.notes-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: end; margin-top: 10px; }
.notes-form label { display: grid; gap: 2px; font-size: .85rem; }
button.small { padding: 2px 8px; font-size: .8rem; }
@media print {
  .print-target .notes-form, .print-target .notes button, .wizard, .toolbar, #banner, .split, .sheet-options, .book-aside, .modal-back, #lock-form { display: none !important; }
  .desk { display: block; }
  .sheet { width: auto; min-height: 0; box-shadow: none; border: 0; background: transparent; gap: 0; }
  body.print-one .desk:not(:has(.print-target)) { display: none !important; }
}

body.arriving header, body.working header, body.adding header,
body.arriving footer, body.working footer, body.adding footer { display: none; }
body.arriving main, body.working main, body.adding main {
  max-width: none; width: 100%; margin: 0; padding: 0; min-height: 100dvh; display: block;
}
body.arriving #profiles, body.arriving #toolbar,
body.working #profiles, body.working #toolbar, body.working #banner,
body.adding #profiles, body.adding #banner { display: none; }

.split { display: grid; grid-template-columns: minmax(300px, 1.05fr) minmax(340px, .95fr); min-height: 100dvh; align-items: stretch; background: var(--bg); }
#split[hidden] { display: none !important; }
.split-story { position: relative; display: flex; align-items: center; justify-content: flex-start; overflow: hidden; padding: 64px 56px 92px; background: #1e3f3a; color: #f7f4ee; }
.sign { position: absolute; left: 56px; bottom: 28px; z-index: 1; margin: 0; font-family: "Fira Sans Condensed", sans-serif; font-weight: 500; font-size: 1.2rem; letter-spacing: -0.02em; color: #f7f4ee; }
.sign span { display: block; margin-bottom: 2px; font-size: .68rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: #c9ddd6; }
.sign-write { display: block; margin: 8px 0 0; padding: 0; border: 0; background: transparent; color: #c9ddd6; font: 500 .95rem "Fira Sans Condensed", sans-serif; letter-spacing: .04em; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.sign-write:hover { color: #f7f4ee; }
.story-bg { position: absolute; inset: 0; display: flex; align-items: center; overflow: hidden; pointer-events: none; }
.story-bg-track { display: flex; align-items: center; width: max-content; font-size: clamp(8rem, 42vh, 20rem); animation: story-drift 26s linear infinite; }
.story-bg span {
  font-family: "Fira Sans Condensed", sans-serif; font-weight: 600; font-size: 1em;
  line-height: 0.8; letter-spacing: -0.05em; white-space: nowrap;
  color: transparent; -webkit-text-stroke: 2px rgba(247, 244, 238, .42);
}
.story-dot { flex: none; width: 0.055em; height: 0.055em; margin: 0 0.16em; border-radius: 50%; background: rgba(247, 244, 238, .72); }
@keyframes story-drift { from { transform: translateX(-50%); } to { transform: translateX(0); } }
.story { position: relative; z-index: 1; width: min(520px, 100%); font-family: "Fira Sans Condensed", sans-serif; }
.split-form { display: flex; flex-direction: column; align-items: center; justify-content: safe center; min-height: 100dvh; padding: 28px 40px 22px; overflow: auto; background: #f7f4ee; }
.form-stack { width: min(420px, 100%); margin: 0 auto; flex: none; }
.notice {
  width: min(460px, 100%); margin: 28px 0 0;
  color: #6f685f; font-family: "Fira Sans Condensed", sans-serif; font-size: .98rem; line-height: 1.45;
}
.notice p { margin: 0; }
.notice p + p { margin-top: 10px; }
.notice ul { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 10px; }
.notice li { display: grid; grid-template-columns: 5.2em 1fr; gap: 14px; align-items: baseline; }
.notice li a { color: #1e3f3a; font-weight: 600; text-decoration: none; }
.notice li a:hover { text-decoration: underline; text-underline-offset: 3px; }
body.doc { background: var(--bg); }
body.doc main { max-width: 640px; padding-top: 48px; padding-bottom: 72px; }
body.doc h1 { font-family: "Fira Sans Condensed", sans-serif; font-weight: 500; font-size: 2.6rem; letter-spacing: -0.03em; margin: 18px 0 8px; }
body.doc .back { font-family: "Fira Sans Condensed", sans-serif; color: var(--muted); text-underline-offset: 3px; }
body.doc p, body.doc li { font-family: "Fira Sans Condensed", sans-serif; font-size: 1.15rem; line-height: 1.4; }
body.doc ul { margin: 8px 0 0; padding-left: 1.1em; }
.colophon a { color: var(--muted); font-family: "Fira Sans Condensed", sans-serif; text-underline-offset: 3px; }
.colophon {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 32px;
  margin: 22px 0 0; padding-top: 16px; border-top: 1px solid #e3dcd2;
  font-family: "Fira Sans Condensed", sans-serif; font-size: .95rem;
}
.form-brand { color: var(--text); width: 100%; margin: 0 0 36px; }
.form-brand .mark { width: 52px; height: 52px; }
.form-name { margin: 0; font-family: "Fira Sans Condensed", sans-serif; font-weight: 500; font-size: 1.85rem; letter-spacing: -0.03em; line-height: 1; }
.form-brand .eyebrow { letter-spacing: .22em; }
.slides { position: relative; min-height: 300px; }
.slide { position: absolute; inset: 0 auto auto 0; width: 100%; opacity: 0; pointer-events: none; }
.slide.on { opacity: 1; pointer-events: auto; }
.slide h2 { font-family: "Fira Sans Condensed", sans-serif; font-weight: 500; font-size: clamp(2.2rem, 4vw, 3.15rem); letter-spacing: -0.02em; line-height: 0.95; margin: 0 0 14px; color: #f7f4ee; }
.slide p { margin: 0; max-width: 28ch; color: #d7e6df; font-size: 1.35rem; font-weight: 400; line-height: 1.3; }
.slide .mark-num { margin: 0 0 14px; max-width: none; font-weight: 600; font-size: clamp(4.4rem, 8vw, 6.6rem); letter-spacing: -0.045em; line-height: 0.82; color: #f7f4ee; }
@media (prefers-reduced-motion: no-preference) {
  .slide.on { animation: slide-next .4s ease; }
  .split[data-dir="back"] .slide.on { animation-name: slide-back; }
}
@keyframes slide-next { from { opacity: 0; transform: translateX(32px); } to { opacity: 1; transform: none; } }
@keyframes slide-back { from { opacity: 0; transform: translateX(-32px); } to { opacity: 1; transform: none; } }
.split .wizard {
  width: min(420px, 100%); margin: 0; padding: 0; text-align: left;
  background: transparent; border: 0; border-radius: 0; box-shadow: none;
  font-family: "Fira Sans Condensed", sans-serif;
}
.split .dots { order: -1; justify-content: flex-start; gap: 8px; margin: 0 0 32px; }
.split .dots i { width: 32px; height: 2px; border-radius: 0; background: #ddd4c8; }
.split .wizard .step > label.name-free,
.split .wizard .step > label.add-only,
.split .wizard #owner-field {
  gap: 8px; font-size: .78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted);
}
.split .wizard .name-free input,
.split .wizard #owner-field input,
.split .wizard label.add-only input {
  font: 500 1.85rem/1.1 "Fira Sans Condensed", sans-serif; letter-spacing: -0.03em; text-transform: none;
  color: var(--text); padding: 10px 0 12px; border: 0; border-radius: 0; border-bottom: 1.5px solid #d9d0c4; background: transparent;
}
.split .wizard .name-free input::placeholder,
.split .wizard #owner-field input::placeholder { color: #b7aea3; font-weight: 400; }
.split .wizard .name-free input:focus,
.split .wizard #owner-field input:focus,
.split .wizard label.add-only input:focus { outline: none; border-bottom-color: var(--accent); }
.split .agree { margin: 22px 0 0; max-width: 34ch; font-size: 1.05rem; line-height: 1.35; color: var(--muted); }
.split .wizard-nav { justify-content: flex-end; gap: 18px; margin-top: 34px; }
.split .wizard-nav .secondary,
.split .add-actions .secondary { border: 0; background: transparent; padding: 12px 0; color: var(--muted); font: 500 1.05rem "Fira Sans Condensed", sans-serif; }
.split #next-btn,
.split #add-submit,
.split #lock-submit { flex: 1; justify-content: center; border: 0; border-radius: 999px; padding: 14px 22px; font: 500 1.12rem "Fira Sans Condensed", sans-serif; letter-spacing: .01em; }
.split #lock-submit .lock-dots { display: inline-flex; align-items: center; gap: 7px; height: 1.12rem; }
.split #lock-submit .lock-dots i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; display: block; animation: lock-dot 1.05s ease-in-out infinite; }
.split #lock-submit .lock-dots i:nth-child(2) { animation-delay: .14s; }
.split #lock-submit .lock-dots i:nth-child(3) { animation-delay: .28s; }
.split #lock-submit .lock-dots i:nth-child(4) { animation-delay: .42s; }
@keyframes lock-dot {
  0%, 70%, 100% { transform: translateY(0); opacity: .35; }
  35% { transform: translateY(-5px); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .split #lock-submit .lock-dots i { animation: none; opacity: .9; }
}
.split .ghost { display: inline-flex; margin: 26px 0 0; padding: 0; width: fit-content; color: var(--muted); font: 400 1.02rem "Fira Sans Condensed", sans-serif; text-decoration: underline; text-underline-offset: 4px; }
.split .choice { align-items: center; gap: 12px; padding: 14px 16px; border: 0; border-radius: 16px; background: #fff; box-shadow: inset 0 0 0 1px #e4dcd2; }
.split .choice:has(input:checked) { background: #fff; box-shadow: inset 0 0 0 1.5px var(--accent); }
.split .choice input { appearance: none; width: 18px; height: 18px; margin: 0; padding: 0; flex: none; border-radius: 50%; border: 1.5px solid #c9c0b4; background: #fff; }
.split .choice input:checked { border-color: var(--accent); background: radial-gradient(circle at center, var(--accent) 0 5px, #fff 6px); }
.split .choice input:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.split .choice strong { font-weight: 500; font-size: 1.2rem; letter-spacing: -0.02em; }
.split .choice .choice-sub { margin: 2px 0 10px; color: var(--muted); font-size: .95rem; }
/* Un seul choix tant que les exports avec conversations sont repliés : pas de bouton radio à cocher. */
#import-form:not(:has(details.advanced[open])):has(input[value="activity"]:checked) .choices > .choice > input { position: absolute; opacity: 0; pointer-events: none; }
#import-form:not(:has(details.advanced[open])):has(input[value="activity"]:checked) .choices > .choice { box-shadow: inset 0 0 0 1px #e4dcd2; }
.split #platform-note { margin: 14px 0 0; }
/* Exports avec conversations : une ligne repliable qui se lit comme telle (cadre, sous-titre, chevron). */
.split .advanced { margin: 16px 0 0; border-radius: 16px; background: #fff; box-shadow: inset 0 0 0 1px #e4dcd2; }
.split .advanced > summary { display: grid; grid-template-columns: 22px minmax(0, 1fr) 20px; align-items: center; gap: 12px; padding: 12px 16px; margin: 0; color: var(--text); list-style: none; }
.split .advanced > summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 16px; }
.split .advanced .adv-ico .icon { width: 20px; height: 20px; color: var(--muted); }
.split .advanced .adv-text { display: grid; gap: 1px; }
.split .advanced .adv-text strong { font-weight: 500; font-size: 1.05rem; }
.split .advanced .adv-text small { color: var(--muted); font-size: .88rem; }
.split .advanced .adv-chev .icon { width: 18px; height: 18px; color: var(--muted); transition: transform .2s ease; }
.split .advanced[open] .adv-chev .icon { transform: rotate(180deg); }
.split .advanced .adv-body { padding: 0 12px 12px; }
.split .advanced .adv-body .choice { margin-top: 0; box-shadow: inset 0 0 0 1px #ece5db; }
.split .choice small { font-size: .95rem; }
.split .advanced summary { font-size: 1rem; letter-spacing: .01em; }
.split .note { background: transparent; border-radius: 0; border-left: 2px solid var(--mid); padding: 2px 0 2px 12px; }
.split .drop { flex-direction: column; justify-content: center; text-align: center; gap: 8px; min-height: 168px; padding: 26px 18px; border: 1.5px dashed #d2c8bb; border-radius: 20px; background: #fff; }
.split .drop.over, .split .drop.has-file { border-style: solid; border-color: var(--accent); background: #fff; }
.split .drop-copy { justify-items: center; }
.split .drop-title { font-size: 1.2rem; font-weight: 500; letter-spacing: -0.02em; }
.split .drop-btn { background: var(--accent); color: var(--on-accent); border-color: var(--accent); padding: 8px 16px; }
.split .check { font-size: 1.02rem; letter-spacing: 0; text-transform: none; color: var(--text); }
.split .wizard .work-phrase { font-family: "Fira Sans Condensed", sans-serif; font-size: 1.45rem; font-weight: 500; color: var(--text); }
body.adding .split .add-actions { justify-content: flex-end; gap: 18px; }
body.adding .split { align-items: start; }
body.adding .split-story { position: sticky; top: 0; align-self: start; min-height: 100dvh; }
/* Téléphone : une seule colonne ; le panneau collé en plein écran recouvrait le formulaire. Il est décoratif : retiré ici. */
@media (max-width: 860px) {
  body.adding .split-story { display: none; }
  body.adding .split-form { min-height: 100dvh; padding: 24px 16px 28px; }
}
body.adding .split-form { justify-content: flex-start; padding-top: 36px; }
body.adding .form-stack { margin: 0 auto; }
.split .form-copy, .split .wizard .step > .eyebrow { display: none; }
.wizard { width: min(460px, 100%); margin: 12px auto 28px; background: var(--panel); border: 1px solid var(--line); border-radius: 24px; padding: 32px 28px 22px; text-align: center; box-shadow: 0 18px 50px rgba(28, 25, 21, .05); }
.wizard h2 { font-family: var(--serif); font-weight: 500; font-size: 1.9rem; letter-spacing: -0.03em; margin: 0 0 8px; }
.wizard .lede { margin: 0 auto 16px; max-width: 36ch; }
.wizard .eyebrow { margin-bottom: 10px; }
.agree { margin: 8px 0 0; font-size: .85rem; color: var(--muted); }
.add-only, .add-actions { display: none; }
body.adding h2.add-only { display: block; }
body.adding label.add-only { display: grid; }
body.adding .arrive-only, body.adding .arrive-nav, body.adding .ghost { display: none; }
body.adding .name-free.is-hidden { display: none; }
body.working .arrive-nav, body.working .add-actions, body.working .ghost, body.working #import-error { display: none !important; }
.wizard:not([data-at="1"]) .ghost { display: none; }
.wizard-nav { display: flex; justify-content: center; gap: 8px; margin-top: 18px; }
body.adding .add-actions { display: flex; justify-content: center; gap: 8px; margin-top: 18px; }
.ghost { margin: 14px auto 0; display: block; border: 0; background: transparent; }
.dots { display: flex; justify-content: center; gap: 6px; margin: 14px 0 0; }
.dots i { width: 7px; height: 7px; border-radius: 99px; background: var(--line); display: block; }
.wizard[data-at="1"] .dots i:nth-child(-n+1),
.wizard[data-at="2"] .dots i:nth-child(-n+2),
.wizard[data-at="3"] .dots i { background: var(--accent); }
.choices { display: grid; gap: 8px; text-align: left; }
.choice { display: flex; align-items: flex-start; gap: 10px; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; cursor: pointer; background: var(--bg); }
.choice input { width: auto; margin-top: 3px; }
.choice span { display: grid; }
.choice small { color: var(--muted); }
.choice:has(input:checked) { border-color: var(--accent); background: var(--panel); }
.advanced { text-align: left; }
.advanced summary { cursor: pointer; color: var(--muted); font-size: .9rem; margin: 4px 0; }
.advanced .choice { margin-top: 8px; }
.drop { position: relative; display: flex; align-items: center; gap: 14px; min-height: 76px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg); cursor: pointer; text-align: left; }
.drop.over, .drop.has-file { border-color: var(--accent); background: var(--panel); }
.drop input { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); border: 0; }
.drop-ico { width: 36px; height: 36px; flex: none; display: grid; place-items: center; color: var(--accent); }
.drop-ico .icon { width: 32px; height: 32px; }
.drop-copy { display: grid; gap: 2px; flex: 1; min-width: 0; }
.drop-title { font-weight: 600; }
.drop-sub { color: var(--muted); font-size: .85rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.drop-btn { flex: none; border: 1px solid var(--accent); color: var(--accent); border-radius: 999px; padding: 6px 12px; font-size: .85rem; font-weight: 600; }
.menu { position: relative; min-width: 190px; text-align: left; }
.native-select { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); border: 0; }
button.menu-btn { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 8px; background: var(--bg); color: var(--text); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; text-align: left; }
.menu-label { display: flex; align-items: center; gap: 8px; min-width: 0; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chev { width: 16px; height: 16px; flex: none; color: var(--muted); }
.menu-list { position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 6px); display: grid; gap: 2px; padding: 6px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 16px 40px rgba(28, 25, 21, .14); }
button.menu-opt { width: 100%; background: transparent; color: var(--text); border: 0; border-radius: 10px; padding: 8px 10px; text-align: left; font-size: .95rem; }
button.menu-opt.on, button.menu-opt:hover { background: var(--bg); color: var(--text); }
.menu-opt .icon, .menu-label .icon { flex: none; width: 18px; height: 18px; color: var(--muted); }
.controls button.menu-btn { background: var(--bg); color: var(--text); border-color: var(--line); padding: 8px 12px; font-size: .95rem; }
.controls button.menu-opt { background: transparent; color: var(--text); border: 0; padding: 8px 10px; font-size: .95rem; }
.controls button.menu-opt.on, .controls button.menu-opt:hover { background: var(--bg); color: var(--text); }
.work { display: grid; justify-items: center; gap: 18px; padding: 18px 0 8px; text-align: center; }
.wizard-mark { width: 92px; height: 92px; color: var(--text); }
.wizard .work-phrase { margin: 0; font-family: var(--serif); font-size: 1.15rem; letter-spacing: -0.02em; color: var(--muted); }

body.reading { background: #e4ddd2; }
body.reading header,
body.reading main { max-width: 1480px; }
body.reading header { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 22px; padding-bottom: 4px; }
body.reading header .lede { display: none; }
body.reading h1 { font-family: "Fira Sans Condensed", sans-serif; font-weight: 500; font-size: 1.7rem; letter-spacing: -0.03em; }
body.reading .toolbar { margin: 0; }
body.reading .toolbar button { font-family: "Fira Sans Condensed", sans-serif; font-weight: 500; }
body.reading #clear-btn { border: 0; color: #1c1915; }
.home { width: 100%; margin: 28px auto 48px; display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; font-family: "Fira Sans Condensed", sans-serif; }
.home .eyebrow { letter-spacing: .2em; text-transform: uppercase; }
.home h2 { margin: 4px 0 0; font-family: "Fira Sans Condensed", sans-serif; font-weight: 500; font-size: 2.4rem; letter-spacing: -0.03em; }
.stories { display: flex; flex-wrap: wrap; gap: 28px 32px; margin-top: 24px; }
.home-hint { padding: 22px 24px 24px; background: #fffcf8; border-radius: 22px; }
.home-hint .eyebrow { margin: 0 0 12px; }
.home-hint ul { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.home-hint li { display: flex; gap: 12px; align-items: flex-start; margin: 0; padding: 14px 16px; border-radius: 14px; background: #f3f0ea; font-size: 1rem; line-height: 1.35; color: #6f685f; }
.home-hint li > span:last-child { display: grid; gap: 2px; }
.hint-mark { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: #fffcf8; color: #1e3f3a; }
.hint-mark img.brand { width: 20px; height: 20px; }
.hint-mark .icon { width: 18px; height: 18px; }
.home-hint strong { color: #1c1915; font-weight: 500; font-size: 1.08rem; }
.home-main { display: grid; gap: 20px; min-width: 0; }
.home-kids { padding: 26px 30px 30px; background: #fffcf8; border-radius: 22px; }
.home-book { position: sticky; top: 24px; padding: 22px 22px 24px; background: #fffcf8; border-radius: 22px; }
.home-book .eyebrow { margin: 0 0 14px; }
.home-book-frame { width: 100%; overflow: hidden; border-radius: 4px; box-shadow: 0 18px 44px rgba(28, 25, 21, .18); }
.home-book-dots { display: flex; justify-content: center; gap: 8px; margin: 16px 0 0; }
.home-book-dot { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 999px; background: #d9d0c4; cursor: pointer; transition: width .3s ease, background .3s ease; }
.home-book-dot.on { width: 26px; background: #1e3f3a; }
.home-book-dot:focus-visible { outline: 2px solid #1e3f3a; outline-offset: 3px; }
.home-book-title { margin: 14px 0 0; font-size: 1.25rem; font-weight: 500; letter-spacing: -0.01em; color: #1c1915; }
.home-book-title span { display: block; margin-bottom: 2px; font-size: .72rem; font-weight: 650; letter-spacing: .2em; text-transform: uppercase; color: #6f685f; }
.home-book-get { width: 100%; justify-content: center; margin-top: 16px; }
.home-book-track { display: flex; width: 100%; transition: transform .7s ease; }
.home-book-cover { flex: 0 0 100%; width: 100%; min-width: 0; padding: 0; border: 0; background: transparent; cursor: pointer; }
.home-book-cover img { display: block; width: 100%; height: auto; }
.home-book-cover:focus-visible { outline: 2px solid #1e3f3a; outline-offset: 4px; }
.home-book-line { min-height: 4.1em; margin: 8px 0 0; font-size: 1.05rem; line-height: 1.35; color: #6f685f; transition: opacity .35s ease; }
button.story {
  width: 112px; display: grid; justify-items: center; align-content: start; gap: 6px;
  padding: 0; border: 0; border-radius: 0; background: transparent; color: #1c1915;
  font-family: "Fira Sans Condensed", sans-serif; font-weight: 500; font-size: 1rem;
}
.story-ring {
  width: 88px; height: 88px; padding: 3px; border-radius: 50%; display: grid;
  background: conic-gradient(from 210deg, #1f7a56, #d4923a, #c4543c, #1f7a56);
}
.story-ring.lvl-conforme { background: #1f7a56; }
.story-ring.lvl-ecart_modere { background: conic-gradient(from 210deg, #1f7a56, #d4923a, #1f7a56); }
.story-ring.lvl-ecart_marque { background: conic-gradient(from 210deg, #d4923a, #c4543c, #d4923a); }
.story-ring.lvl-none { background: #d9d0c4; }
.story-face {
  border-radius: 50%; background: #fffcf8; border: 3px solid #e4ddd2;
  display: grid; place-items: center; font-size: 1.85rem; letter-spacing: -0.03em;
}
.story-name { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.story-state { font-size: .85rem; font-weight: 400; color: #6f685f; }
.story-apps { display: flex; gap: 4px; min-height: 16px; }
.story-apps img.brand { width: 16px; height: 16px; }
button.story-add .story-ring {
  padding: 0; background: transparent; border: 1.5px dashed #b7aea3; color: #6f685f;
  display: grid; place-items: center;
}
button.story-add .icon { width: 26px; height: 26px; }
#profiles:not(:empty) { background: transparent; margin: 8px 0 0; padding: 8px 0 48px; }
.desk { display: grid; grid-template-columns: 210px minmax(0, 210mm) 336px; justify-content: center; align-items: start; gap: 22px; margin-bottom: 36px; }
.book-aside { position: sticky; top: 16px; grid-column: 3; grid-row: 1; width: 336px; max-height: calc(100dvh - 32px); overflow: auto; font-family: "Fira Sans Condensed", sans-serif; }
.book-aside .home-book { position: static; }
.home-book-note { margin: -4px 0 14px; font-size: .98rem; line-height: 1.35; color: #6f685f; }
.book:focus-visible { outline: 2px solid #1e3f3a; outline-offset: 3px; }
.sheet-options { position: sticky; top: 16px; display: grid; gap: 8px; align-content: start; font-family: "Fira Sans Condensed", sans-serif; }
.sheet-options .eyebrow { margin: 0 0 4px; }
.sheet-options > button { width: 100%; justify-content: flex-start; text-align: left; background: #fffcf8; border-color: #e3dcd2; font-weight: 500; }
.sheet-tools { display: grid; gap: 10px; margin-top: 14px; padding-top: 14px; border-top: 1px solid #d9d0c4; }
.sheet-options .gran { display: flex; gap: 4px; }
.sheet-options .gran button { flex: 1; flex-direction: column; justify-content: center; gap: 3px; text-align: center; border-radius: 12px; padding: 8px 4px; font-size: .82rem; }
.sheet-options .gran .icon { width: 16px; height: 16px; }
.sheet-options .metrics button { justify-content: flex-start; }
.sheet-options .gran .filter { flex: 1 1 100%; margin: 4px 0 0; }
.sheet-options .metrics { display: grid; gap: 2px; }
.sheet-options .metrics button { width: 100%; text-align: left; border: 0; border-radius: 10px; background: transparent; color: #1c1915; padding: 7px 10px; font-size: 1rem; }
.sheet-options .metrics button[aria-pressed="true"] { background: #1e3f3a; color: #f7f4ee; }
.sheet-options .filter { display: grid; gap: 4px; margin: 0; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: #6f685f; }
.sheet .card-head h2, .sheet h3 { font-family: "Fira Sans Condensed", sans-serif; font-weight: 500; letter-spacing: -0.02em; }
.sheet h3 { font-size: 1.35rem; margin: 0 0 8px; }
.sheet .heatmap { margin-top: 28px; padding-top: 22px; border-top: 1px solid #e7e0d6; }
.page-body { display: flow-root; }
.page-body > .heatmap:first-child,
.page-body > .report:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.report { margin-top: 28px; padding-top: 22px; border-top: 1px solid #e7e0d6; }
/* ---------- Rapport ---------- */
.report { font-family: "Fira Sans Condensed", sans-serif; }
.report-head { display: grid; gap: 2px; }
.report-head h3 { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 1.6rem; font-weight: 500; letter-spacing: -0.02em; }
.report-head h3 .icon { width: 22px; height: 22px; color: var(--accent); }
.report .report-sub { margin: 0; font-size: .95rem; color: var(--muted); }
.report .eyebrow { margin: 0 0 10px; text-transform: uppercase; letter-spacing: .2em; }
.report-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
.report-card { padding: 16px 18px; border-radius: 16px; background: var(--bg); }
.report-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.report-list li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 8px; margin: 0; font-size: .98rem; line-height: 1.35; }
.report-bullet { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; }
.report-bullet .icon { width: 13px; height: 13px; }
.report-card.not .report-bullet { background: #e8e4e0; color: var(--muted); }
.report-card.yes .report-bullet { background: #dbe7de; color: var(--ok); }
.report .report-label { margin-top: 24px; }
.report-platforms { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.report-plat { display: grid; align-content: start; gap: 2px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); }
.report-plat-name { display: flex; align-items: center; gap: 8px; font-size: .9rem; color: var(--muted); }
.report-plat-name img.brand { width: 18px; height: 18px; }
.report-plat strong { font-size: 1.5rem; font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; }
.report-plat-unit { font-size: .85rem; color: var(--muted); }
.report-plat-late { margin-top: 4px; font-size: .78rem; line-height: 1.3; color: var(--muted); font-style: italic; }
.report-compare { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 10px; }
.report-period { padding: 14px 16px; border-radius: 14px; background: var(--bg); }
.report-period.main { background: var(--panel); border: 2px solid var(--accent); }
.report .report-period-title { margin: 0; font-size: .78rem; font-weight: 650; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.report-period-value { display: block; margin: 4px 0 6px; font-size: 1.9rem; font-weight: 600; letter-spacing: -0.02em; line-height: 1.05; }
.report-period ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; font-size: .95rem; color: var(--muted); }
.report-period.empty p { margin: 0; color: var(--muted); }
.report .report-note { display: flex; align-items: flex-start; gap: 8px; margin: 10px 0 0; font-size: .9rem; line-height: 1.4; color: var(--muted); }
.report-note .icon { flex: none; width: 16px; height: 16px; margin-top: 2px; }
.report-reco { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 14px; align-items: start; margin-top: 18px; padding: 18px 20px; border-radius: 18px; background: #1e3f3a; color: #f7f4ee; }
.report-reco-mark { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: rgba(247, 244, 238, .12); }
.report-reco-mark .icon { width: 20px; height: 20px; }
.report-reco .eyebrow { margin: 0 0 4px; color: #c9ddd6; }
.report .report-reco-text { margin: 0; font-size: 1.1rem; line-height: 1.4; color: #f7f4ee; }
@media (max-width: 640px) {
  .report-columns, .report-compare { grid-template-columns: 1fr; }
}

.sheet {
  width: 210mm; max-width: 100%; min-width: 0; min-height: 0; margin: 0; padding: 0;
  display: grid; grid-template-columns: minmax(0, 100%); gap: 18px; background: transparent; border: 0; border-radius: 0; box-shadow: none;
}
.page {
  position: relative; overflow: hidden; box-sizing: border-box;
  width: 210mm; max-width: 100%; min-width: 0; min-height: 297mm; margin: 0;
  background: #fff; color: #1c1915; border: 1px solid #e3dcd2; border-radius: 2px;
  box-shadow: 0 1px 1px rgba(28, 25, 21, .05), 0 16px 40px rgba(28, 25, 21, .12);
  padding: 16mm 14mm 18mm;
  --bg: #f7f4ee; --panel: #fff; --text: #1c1915; --muted: #6f685f; --line: #e3dcd2;
  --accent: #1e3f3a; --on-accent: #f7f4ee; --ok: #1f7a56; --mid: #d4923a; --high: #c4543c; --gauge-track: #e7e0d6;
}
.page-kicker { position: relative; z-index: 1; margin: 0 0 18px; font-family: "Fira Sans Condensed", sans-serif; font-size: .72rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: #6f685f; }
.page-body { position: relative; z-index: 1; }
.page-stamp, .page-num {
  z-index: 1; position: absolute; bottom: 8mm; margin: 0;
  font-family: "Fira Sans Condensed", sans-serif; font-size: .85rem; letter-spacing: .06em; color: #6f685f;
}
.page-stamp { left: 14mm; right: 32mm; letter-spacing: 0; font-size: .72rem; line-height: 1.25; }
.page-num { right: 14mm; }
@media (prefers-color-scheme: dark) {
  #profiles:not(:empty) { background: #0e100d; }
  .sheet-options button { background: transparent; }
}
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; min-height: auto; }
  .split-story { min-height: 420px; padding: 36px 24px 78px; }
  .sign { left: 24px; bottom: 20px; }
  .sheet-options { grid-row: 1; }
  .home { grid-template-columns: 1fr; gap: 20px; }
  .home-book { position: static; }
  .home-book-frame { width: min(280px, 100%); margin: 0 auto; }
  .home-hint ul { grid-template-columns: 1fr; }
  .home-kids { padding: 22px 20px 24px; }
  /* Téléphone et tablette : réglages condensés, puis la feuille, puis le livre (avant : le livre passait devant). */
  .book-aside { grid-column: 1; grid-row: 3; position: static; width: auto; max-height: none; }
  .sheet { grid-row: 2; }
  .sheet-options { grid-template-columns: 1fr 1fr; gap: 6px; }
  .sheet-options > .eyebrow { display: none; }
  .sheet-options > button { justify-content: center; padding: 9px 10px; font-size: .95rem; }
  .sheet-tools { grid-column: 1 / -1; margin-top: 6px; padding-top: 10px; }
  .sheet-tools > .eyebrow { display: none; }
  .sheet-options .metrics { display: flex; flex-wrap: wrap; gap: 4px; }
  .sheet-options .metrics button { flex: 1 1 auto; width: auto; justify-content: center; padding: 7px 10px; font-size: .92rem; background: #fffcf8; box-shadow: inset 0 0 0 1px #e3dcd2; }
  .split-form .notice { margin-top: 16px; }
  .slides { min-height: 250px; }
  .desk { grid-template-columns: 1fr; }
  .sheet-options { position: static; }
  .sheet { width: 100%; }
  .page { width: 100%; min-height: 0; padding: 22px 16px 40px; }
  .page-stamp, .page-num { bottom: 12px; }
  .page-stamp { left: 16px; right: 72px; }
  .page-num { right: 16px; }
}
.modal-back {
  position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; padding: 24px;
  background: rgba(28, 25, 21, .42); backdrop-filter: blur(8px);
}
.modal {
  width: min(420px, 100%); margin: 0; padding: 28px 28px 22px;
  background: var(--panel); color: var(--text); border: 1px solid var(--line); border-radius: 22px;
  box-shadow: 0 24px 70px rgba(28, 25, 21, .28);
  font-family: "Fira Sans Condensed", sans-serif;
}
.modal-mark {
  width: 52px; height: 52px; margin-bottom: 16px; display: grid; place-items: center; border-radius: 50%;
  background: #e0e2dd; color: var(--accent);
}
.modal-mark .icon { width: 24px; height: 24px; }
.modal .eyebrow { letter-spacing: .2em; text-transform: uppercase; }
.modal h2 { margin: 0 0 8px; font-family: "Fira Sans Condensed", sans-serif; font-weight: 500; font-size: 1.85rem; letter-spacing: -0.03em; line-height: 1.05; }
.modal p { margin: 0; font-size: 1.08rem; line-height: 1.35; color: var(--muted); }
.modal .modal-name {
  margin: 0 0 8px; padding: 10px 12px; border-radius: 12px;
  background: var(--bg); color: var(--text); font-size: 1.02rem; line-height: 1.3; word-break: break-all;
}
.modal-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 22px; }
.modal-actions button { justify-content: center; padding: 12px 16px; font-family: "Fira Sans Condensed", sans-serif; font-weight: 500; font-size: 1.05rem; }
.modal.danger .modal-mark { background: #f6e1da; color: var(--high); }
.modal.danger .modal-go { background: var(--high); border-color: var(--high); color: var(--on-accent); }
@media (prefers-reduced-motion: no-preference) {
  .modal-back { animation: modal-in .2s ease; }
  .modal { animation: rise .32s ease; }
}
@keyframes modal-in { from { opacity: 0; } }
.toolbar { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.modal-field { display: grid; gap: 6px; margin-top: 14px; font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.modal-field input, .modal-field textarea { font: 500 1.15rem/1.35 "Fira Sans Condensed", sans-serif; letter-spacing: 0; text-transform: none; color: var(--text); width: 100%; padding: 8px 0; border: 0; border-bottom: 1.5px solid var(--line); border-radius: 0; background: transparent; resize: vertical; }
.modal-field input:focus, .modal-field textarea:focus { outline: none; border-bottom-color: var(--accent); }
.modal-field textarea { min-height: 88px; font-weight: 400; }
.modal-field .menu { min-width: 0; width: 100%; margin-top: 6px; }
.modal-field .menu-btn, .modal-field .menu-opt { text-transform: none; letter-spacing: 0; font-weight: 500; }
.modal.contact { width: min(440px, 100%); }
.modal .error { margin-top: 12px; color: var(--high); } /* plus précis que « .modal p », qui grisait les erreurs */
.modal ul.journal { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; max-height: 240px; overflow: auto; color: var(--text); font-size: 1rem; letter-spacing: 0; text-transform: none; }
#lock-form[hidden], #import-form[hidden] { display: none !important; }
#banner { margin-top: 12px; }
.rise { animation: rise .35s ease; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.sweep-gauge { width: min(100%, 340px); height: auto; display: block; }
#switch-veil {
  position: fixed; inset: 0; z-index: 60; display: grid; place-items: center;
  background: var(--bg);
}
#switch-veil[hidden] { display: none; }
#switch-veil .sweep-gauge { width: min(72vw, 240px); }
#switch-veil .switch-stack { display: grid; justify-items: center; gap: 2px; }
#switch-veil .switch-pct {
  margin: 0; font-family: "Fira Sans Condensed", sans-serif; font-weight: 500;
  font-size: 1.45rem; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; color: var(--text);
}
@media print { #switch-veil { display: none !important; } }
.sweep-zone { stroke-dasharray: 100; stroke-dashoffset: 100; }
.sweep-needle { transform-box: view-box; transform-origin: 50% 74.3%; }
@media (prefers-reduced-motion: no-preference) {
  body.working .sweep-zone, #switch-veil.on .sweep-zone { animation: fill-zone .567s linear forwards; }
  body.working .sweep-zone.z2, #switch-veil.on .sweep-zone.z2 { animation-delay: .567s; }
  body.working .sweep-zone.z3, #switch-veil.on .sweep-zone.z3 { animation-delay: 1.133s; }
  body.working .sweep-needle, #switch-veil.on .sweep-needle { animation: sweep 1.7s linear forwards; }
  .gauge-arrive .zone { stroke-dasharray: 160; stroke-dashoffset: 160; animation: draw .8s ease forwards; }
}
@keyframes fill-zone { to { stroke-dashoffset: 0; } }
@keyframes sweep { to { transform: rotate(180deg); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) {
  .rise, .gauge-arrive .zone, .story-bg-track, .sweep-zone, .sweep-needle { animation: none; }
  .sweep-zone { stroke-dashoffset: 0; }
  .sweep-needle { transform: rotate(180deg); }
}

/* Infobulle flottante : hors des cartes (fixed), côté choisi selon l'espace libre. */
[data-tip] { cursor: help; }
#tip-bubble {
  position: fixed;
  z-index: 400;
  max-width: min(260px, calc(100vw - 24px));
  padding: 8px 11px;
  border-radius: 10px;
  background: #1c1915;
  color: #f7f4ee;
  font: 500 .88rem/1.35 "Fira Sans Condensed", sans-serif;
  letter-spacing: .01em;
  text-align: left;
  text-transform: none;
  white-space: pre-line; /* bulles sur plusieurs lignes : créneau, puis valeur */
  box-shadow: 0 10px 28px rgba(28, 25, 21, .22);
  pointer-events: none;
}
#tip-bubble[hidden] { display: none !important; }
@media print {
  #tip-bubble { display: none !important; }
}
@media (prefers-color-scheme: dark) {
  #tip-bubble { background: #f4f0e8; color: #121410; box-shadow: 0 10px 28px rgba(0, 0, 0, .45); }
}

/* Liens légaux : toujours atteignables, sur l'accueil comme sur une feuille. */
.sign .sign-legal { display: block; margin-top: 10px; font-size: .8rem; font-weight: 400; letter-spacing: .02em; text-transform: none; }
.sign .sign-legal a { color: #c9ddd6; text-underline-offset: 3px; }
.sign .sign-legal a:hover { color: #f7f4ee; }
.legal-links { margin: 32px 0 24px; text-align: center; font-family: "Fira Sans Condensed", sans-serif; font-size: .85rem; color: var(--muted); }
.legal-links a { color: var(--muted); text-underline-offset: 3px; }
body.arriving .legal-links, body.working .legal-links, body.adding .legal-links { display: none; }
.modal-check { display: flex; flex-wrap: nowrap; gap: 10px; align-items: flex-start; margin: 16px 0 0; font-size: 1.02rem; line-height: 1.35; color: var(--text); cursor: pointer; }
.modal-check input { flex: none; width: 18px; height: 18px; margin: 1px 0 0; padding: 0; accent-color: var(--accent); cursor: pointer; }
.modal-check span { flex: 1; min-width: 0; }
.modal .modal-fine { margin: 10px 0 0; font-size: .88rem; line-height: 1.4; color: var(--muted); }
.modal-fine a { color: inherit; text-underline-offset: 3px; }
body.doc h2 { font-family: "Fira Sans Condensed", sans-serif; font-weight: 500; font-size: 1.45rem; letter-spacing: -0.02em; margin: 36px 0 6px; }
body.doc a { color: var(--accent); text-underline-offset: 3px; }
body.doc .doc-links { margin-top: 40px; font-size: .95rem; color: var(--muted); }

/* ---------- Pages légales : même langage que la page d'arrivée ---------- */
body.legal { margin: 0; background: var(--bg); }
.legal-grid { display: grid; grid-template-columns: minmax(320px, .9fr) minmax(0, 1.1fr); min-height: 100dvh; }
.legal-side {
  position: sticky; top: 0; align-self: start; height: 100dvh; overflow: hidden;
  display: flex; flex-direction: column; justify-content: space-between; gap: 32px;
  padding: 40px 56px 36px; background: #1e3f3a; color: #f7f4ee; font-family: "Fira Sans Condensed", sans-serif;
}
.legal-bg { position: absolute; left: -0.06em; bottom: -0.12em; pointer-events: none; font-size: clamp(9rem, 34vh, 17rem); line-height: .8; }
.legal-bg span { font-weight: 600; letter-spacing: -0.05em; white-space: nowrap; color: transparent; -webkit-text-stroke: 2px rgba(247, 244, 238, .22); }
.legal-side > :not(.legal-bg) { position: relative; z-index: 1; }
.legal-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.legal-brand { display: flex; align-items: center; gap: 12px; color: #f7f4ee; text-decoration: none; }
.legal-brand .mark { width: 44px; height: 44px; color: #1c1915; box-shadow: 0 2px 12px rgba(0, 0, 0, .25); }
.legal-brand .eyebrow { color: #c9ddd6; letter-spacing: .22em; }
.legal-brand strong { display: block; font-size: 1.35rem; font-weight: 500; letter-spacing: -0.02em; line-height: 1; }
.legal-back { display: inline-flex; align-items: center; gap: 8px; color: #c9ddd6; font-size: .95rem; text-underline-offset: 3px; }
.legal-back:hover { color: #f7f4ee; }
.legal-head .eyebrow { color: #c9ddd6; letter-spacing: .24em; text-transform: uppercase; margin-bottom: 14px; }
.legal-head h1 { margin: 0; font-size: clamp(2.8rem, 5.4vw, 4.6rem); font-weight: 600; letter-spacing: -0.04em; line-height: .95; color: #f7f4ee; }
.legal-lede { max-width: 30ch; margin: 18px 0 0; font-size: 1.3rem; line-height: 1.3; color: #d7e6df; }
.legal-nav { display: flex; flex-wrap: wrap; gap: 8px; }
.legal-nav a {
  padding: 8px 14px; border: 1px solid rgba(247, 244, 238, .28); border-radius: 999px;
  background: #1e3f3a; color: #f7f4ee; font-size: .95rem; text-decoration: none;
}
.legal-nav a:hover { border-color: rgba(247, 244, 238, .7); }
.legal-nav a[aria-current="page"] { background: #f7f4ee; border-color: #f7f4ee; color: #1e3f3a; font-weight: 600; }

.legal-main { min-width: 0; padding: 72px 64px 56px; font-family: "Fira Sans Condensed", sans-serif; color: var(--text); }
.legal-main > * { max-width: 680px; }
.legal-card { margin: 0 0 18px; padding: 28px 32px; background: var(--panel); border: 1px solid var(--line); border-radius: 18px; }
.legal-card > .eyebrow { margin: 0 0 6px; color: var(--muted); letter-spacing: .22em; }
.legal-card h2 { margin: 0 0 14px; font-size: 1.6rem; font-weight: 500; letter-spacing: -0.02em; line-height: 1.1; }
.legal-card p, .legal-card li, .legal-card dd { font-size: 1.12rem; line-height: 1.45; }
.legal-card p { margin: 0; }
.legal-card p + p { margin-top: 10px; }
.legal-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.legal-card li { position: relative; padding-left: 20px; }
.legal-card li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 7px; height: 7px; border-radius: 50%; background: #1f7a56; }
.legal-card.caution li::before { background: #d4923a; }
.legal-card a { color: var(--accent); font-weight: 500; text-underline-offset: 3px; }
.facts { margin: 0; display: grid; }
.facts > div { display: grid; grid-template-columns: 11em minmax(0, 1fr); gap: 6px 20px; padding: 12px 0; border-top: 1px solid var(--line); }
.facts > div:first-child { border-top: 0; padding-top: 0; }
.facts dt { font-size: .74rem; font-weight: 650; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); padding-top: .3em; }
.facts dd { margin: 0; overflow-wrap: anywhere; } /* une adresse ou un lien long passe à la ligne */
.legal-help { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.legal-help a {
  display: inline-flex; align-items: baseline; gap: 8px; padding: 8px 14px; border-radius: 12px;
  background: var(--bg); border: 1px solid var(--line); text-decoration: none; color: var(--text); font-weight: 400;
}
.legal-help strong { font-size: 1.15rem; color: var(--accent); }
.legal-foot { margin: 28px 0 0; font-size: .92rem; color: var(--muted); }

@media (max-width: 860px) {
  .legal-grid { grid-template-columns: 1fr; }
  .legal-side { position: relative; height: auto; min-height: 0; padding: 24px 20px 28px; gap: 28px; }
  .legal-bg { font-size: 9rem; }
  .legal-main { padding: 24px 16px 40px; }
  .legal-card { padding: 22px 20px; border-radius: 16px; }
  .facts > div { grid-template-columns: 1fr; gap: 2px; }
}

/* ---------- Sous la jauge : niveau, puis « ce qui a changé » ---------- */
.gauge-level { display: flex; align-items: center; justify-content: center; gap: 8px; width: fit-content; margin: -4px auto 0; padding: 6px 14px; border-radius: 999px; background: var(--bg); font-family: "Fira Sans Condensed", sans-serif; font-weight: 600; font-size: 1.05rem; letter-spacing: -0.01em; color: var(--text); }
.gauge-level-dot { width: 10px; height: 10px; border-radius: 50%; background: #d9d0c4; }
.gauge-level.lvl-conforme .gauge-level-dot { background: var(--ok); }
.gauge-level.lvl-ecart_modere .gauge-level-dot { background: var(--mid); }
.gauge-level.lvl-ecart_marque .gauge-level-dot { background: var(--high); }
.gauge-wrap .gauge-caption { max-width: 34ch; margin: 8px auto 0; line-height: 1.4; }
.deltas { margin-top: 20px; text-align: left; font-family: "Fira Sans Condensed", sans-serif; }
.deltas-head { display: grid; gap: 2px; margin-bottom: 10px; }
.deltas-head .eyebrow { margin: 0; text-transform: uppercase; letter-spacing: .2em; }
.deltas .deltas-span { margin: 0; font-size: .9rem; color: var(--muted); }
.deltas ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.delta-row { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; align-items: center; gap: 12px; margin: 0; padding: 12px 14px; border-radius: 14px; background: var(--bg); }
.delta-mark { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--panel); color: var(--accent); }
.delta-mark .icon { width: 18px; height: 18px; }
.delta-body { display: grid; gap: 2px; min-width: 0; }
.delta-label { font-size: .88rem; color: var(--muted); }
.delta-values { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px; }
.delta-before { font-size: 1.05rem; color: var(--muted); }
.delta-arrow { color: var(--muted); }
.delta-after { font-size: 1.3rem; font-weight: 600; letter-spacing: -0.01em; color: var(--text); }
.delta-chip { padding: 4px 10px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line); font-size: .85rem; font-weight: 600; white-space: nowrap; color: var(--text); }
.deltas .deltas-note, .deltas .deltas-calm { display: flex; align-items: flex-start; gap: 8px; margin: 10px 0 0; font-size: .88rem; line-height: 1.4; color: var(--muted); }
.deltas .deltas-calm { padding: 12px 14px; border-radius: 14px; background: var(--bg); color: var(--text); }
.deltas-note .icon, .deltas-calm .icon { flex: none; width: 16px; height: 16px; margin-top: 2px; }
@media (max-width: 480px) {
  .delta-row { grid-template-columns: 32px minmax(0, 1fr); }
  .delta-chip { grid-column: 2; justify-self: start; }
}

/* ---------- Dates du compte WhatsApp : résumé et frise ---------- */
.wa-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 12px 0 0; }
.wa-fact { display: grid; gap: 2px; padding: 12px 14px; border-radius: 14px; background: var(--bg); font-family: "Fira Sans Condensed", sans-serif; }
.wa-fact-label { font-size: .72rem; font-weight: 650; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.wa-fact strong { font-size: 1.15rem; font-weight: 600; letter-spacing: -0.01em; }
.wa-fact-sub { font-size: .85rem; color: var(--muted); }
.wa-line { margin: 18px 4px 6px; }
.wa-track { position: relative; display: block; height: 4px; border-radius: 999px; background: var(--line); }
.wa-dot { position: absolute; top: 50%; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: #25a35a; border: 2px solid var(--panel); box-shadow: 0 0 0 1px rgba(37, 163, 90, .35); cursor: default; transition: transform .15s ease; }
.wa-dot::after { content: ""; position: absolute; inset: -9px; border-radius: 50%; } /* zone de survol plus large que le point */
.wa-dot:hover { transform: scale(1.35); }
.wa-dot.many { width: 22px; height: 22px; margin: -11px 0 0 -11px; display: grid; place-items: center; font: 600 .7rem/1 "Fira Sans Condensed", sans-serif; color: #fff; }
.wa-ends { display: flex; justify-content: space-between; margin-top: 8px; font-family: "Fira Sans Condensed", sans-serif; font-size: .8rem; color: var(--muted); }
.account .gauge-caption { text-align: left; }
@media (max-width: 560px) { .wa-facts { grid-template-columns: 1fr; } }

/* Cases et points porteurs d'une bulle : curseur normal (pas le « ? » des aides), et repère au survol. */
.heat td[data-tip], .frise-cell[data-tip] { cursor: default; }
.heat td[data-tip]:hover, .frise-cell[data-tip]:hover { outline: 2px solid var(--text); outline-offset: -1px; }

/* ---------- Qualité des données ---------- */
.quality .q-summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; list-style: none; cursor: pointer; font-family: "Fira Sans Condensed", sans-serif; }
.quality .q-summary::-webkit-details-marker { display: none; }
.q-title { font-size: 1.35rem; font-weight: 500; letter-spacing: -0.02em; }
.q-badge { padding: 4px 12px; border-radius: 999px; font-size: .85rem; font-weight: 600; white-space: nowrap; }
.q-badge.warn { background: #f7e9d6; color: #8a5a17; }
.q-badge.ok { background: #e0eae1; color: var(--ok); }
.q-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 14px 0 0; font-family: "Fira Sans Condensed", sans-serif; }
.q-fact { display: grid; gap: 2px; padding: 12px 14px; border-radius: 14px; background: var(--bg); }
.q-fact-label { font-size: .72rem; font-weight: 650; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.q-fact strong { font-size: 1.2rem; font-weight: 600; letter-spacing: -0.01em; }
.q-fact-sub { font-size: .85rem; color: var(--muted); }
.q-chart { display: grid; gap: 8px; margin: 18px 0 0; font-family: "Fira Sans Condensed", sans-serif; }
.q-row { display: grid; grid-template-columns: 150px minmax(0, 1fr); align-items: center; gap: 12px; }
.q-name { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: .92rem; }
.q-name span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.q-name img.brand { width: 18px; height: 18px; }
.q-track { position: relative; height: 14px; border-radius: 999px; background: var(--bg); }
.q-bar { position: absolute; top: 0; bottom: 0; min-width: 4px; border-radius: 999px; background: var(--accent); cursor: default; }
.q-bar.all { background: #839490; }
.q-gap { position: absolute; top: -2px; bottom: -2px; min-width: 2px; background: var(--panel); cursor: default; }
.q-gap.recent { background: repeating-linear-gradient(45deg, var(--mid), var(--mid) 2px, var(--panel) 2px, var(--panel) 5px); }
.q-bar:hover, .q-gap:hover { outline: 2px solid var(--text); outline-offset: 1px; }
.q-axis .q-ends { display: flex; justify-content: space-between; font-size: .8rem; color: var(--muted); }
.quality .q-warnings { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 8px; font-family: "Fira Sans Condensed", sans-serif; }
.quality .q-warnings li { display: flex; align-items: flex-start; gap: 10px; padding: 10px 14px; border-radius: 12px; background: #fbf1e5; font-size: .95rem; line-height: 1.4; }
.quality .q-warnings li .icon { flex: none; width: 16px; height: 16px; margin-top: 3px; color: #8a5a17; }
@media (max-width: 560px) {
  .q-facts { grid-template-columns: 1fr; }
  .q-row { grid-template-columns: 96px minmax(0, 1fr); }
}

/* ---------- Notes du parent ---------- */
.notes { font-family: "Fira Sans Condensed", sans-serif; }
.notes-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.notes-head h3 { margin: 0; }
.notes-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: var(--bg); font-size: .82rem; color: var(--muted); }
.notes-chip .icon { width: 13px; height: 13px; }
.notes .notes-lede { margin: 8px 0 0; font-size: .95rem; line-height: 1.45; color: var(--muted); text-align: left; }
.notes .note-list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; font-size: 1rem; }
.note-item { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 12px; padding: 10px 10px 10px 12px; border-radius: 14px; background: var(--bg); }
.note-dates { padding: 3px 10px; border-radius: 999px; background: var(--panel); font-size: .88rem; font-weight: 600; white-space: nowrap; }
.note-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.note-badge { padding: 3px 10px; border-radius: 999px; background: #f8ebda; color: #8a5a17; font-size: .8rem; font-weight: 600; white-space: nowrap; }
.note-remove { display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 10px; background: transparent; color: var(--muted); cursor: pointer; }
.note-remove:hover { background: var(--panel); color: var(--high); }
.note-remove .icon { width: 16px; height: 16px; }
.notes .notes-form { display: grid; gap: 14px; margin-top: 14px; padding: 18px; border-radius: 16px; border: 1px solid var(--line); background: var(--panel); }
.note-dates-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.notes .note-field { display: grid; gap: 6px; }
.note-label { font-size: .72rem; font-weight: 650; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.notes .notes-form input[type="date"], .notes .notes-form input[name="text"] {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg);
  font: 500 1rem "Fira Sans Condensed", sans-serif; color: var(--text);
}
.notes .notes-form input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.note-switch { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 14px; align-items: start; cursor: pointer; }
.note-switch input {
  appearance: none; -webkit-appearance: none; position: relative; flex: none; width: 40px; height: 24px; margin: 1px 0 0; padding: 0;
  border-radius: 999px; border: 0; background: #d9d0c4; cursor: pointer; transition: background .2s ease;
}
.note-switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); transition: transform .2s ease; }
.note-switch input:checked { background: var(--accent); }
.note-switch input:checked::after { transform: translateX(16px); }
.note-switch input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.note-switch-text { display: grid; gap: 2px; }
.note-switch-text strong { font-weight: 500; font-size: 1rem; }
.note-switch-text span { font-size: .88rem; color: var(--muted); line-height: 1.35; }
.note-actions { display: flex; justify-content: flex-end; }
@media (max-width: 560px) {
  .note-dates-row { grid-template-columns: 1fr; }
  .note-item { grid-template-columns: minmax(0, 1fr) auto; }
  .note-item .note-text { grid-column: 1 / -1; grid-row: 2; white-space: normal; }
}

/* ---------- Menu de l'appareil (rond à l'initiale du parent) ---------- */
.toolbar.account { position: relative; justify-content: flex-end; }
.account-btn { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 4px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); color: var(--text); cursor: pointer; }
.account-btn:hover, .account-btn[aria-expanded="true"] { border-color: var(--accent); }
.account-btn .chev { width: 16px; height: 16px; color: var(--muted); transition: transform .2s ease; }
.account-btn[aria-expanded="true"] .chev { transform: rotate(180deg); }
.account-face {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  --face: #1f7a56; --face-ink: #1e3f3a;
  background: var(--panel); box-shadow: inset 0 0 0 3px var(--face);
  font: 600 1.15rem/1 "Fira Sans Condensed", sans-serif; color: var(--face-ink);
}
/* Second parent : sa propre couleur, pour voir d'un coup d'œil qui a ouvert. */
.account-face.second { --face: #c8557f; --face-ink: #7d2a4a; }
.account-face.small { width: 34px; height: 34px; font-size: 1rem; box-shadow: inset 0 0 0 2px var(--face); }
.account-menu {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 300; width: min(320px, calc(100vw - 32px));
  padding: 8px; border-radius: 18px; border: 1px solid var(--line); background: var(--panel);
  box-shadow: 0 18px 44px rgba(28, 25, 21, .18); font-family: "Fira Sans Condensed", sans-serif;
}
.account-who { display: flex; align-items: center; gap: 10px; padding: 8px 10px 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.account-who .eyebrow { display: block; margin: 0; text-transform: uppercase; letter-spacing: .18em; }
.account-who strong { display: block; font-size: 1.1rem; font-weight: 600; }
.account-who small { display: block; font-size: .82rem; color: var(--muted); }
.lock-parents { display: grid; gap: 10px; margin: 0 0 22px; }
.lock-parents[hidden] { display: none; }
.lock-parents-label { font-size: .78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.lock-parents-list { display: flex; flex-wrap: wrap; gap: 10px; }
.lock-parent {
  display: inline-flex; align-items: center; gap: 10px; padding: 6px 18px 6px 6px; border: 1.5px solid #d9d0c4; border-radius: 999px;
  background: transparent; color: var(--text); font: 500 1.15rem "Fira Sans Condensed", sans-serif; cursor: pointer;
}
.lock-parent[aria-checked="true"] { border-color: var(--accent); background: var(--accent); color: var(--on-accent); }
.lock-parent[aria-checked="true"] .account-face { background: var(--on-accent); }
.lock-parent.second[aria-checked="true"] { border-color: #c8557f; background: #c8557f; color: #fff; }
.lock-parent:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.account-menu [role="menuitem"] {
  display: flex; align-items: flex-start; gap: 12px; width: 100%; padding: 10px; border: 0; border-radius: 12px;
  background: transparent; color: var(--text); text-align: left; font: 500 1rem "Fira Sans Condensed", sans-serif; cursor: pointer;
}
.account-menu [role="menuitem"] .icon { flex: none; width: 18px; height: 18px; margin-top: 2px; color: var(--accent); }
.account-menu [role="menuitem"] span { display: grid; gap: 1px; }
.account-menu [role="menuitem"] small { font-size: .82rem; font-weight: 400; color: var(--muted); }
.account-menu [role="menuitem"]:hover, .account-menu [role="menuitem"]:focus-visible { background: var(--bg); outline: none; }
.account-menu hr { margin: 6px 4px; border: 0; border-top: 1px solid var(--line); }
.account-menu [role="menuitem"].danger, .account-menu [role="menuitem"].danger .icon { color: var(--high); }

/* Page d'arrivée : le texte sous le titre suit son alignement à gauche (il était centré dans 36ch, donc décalé). */
.split .wizard .lede { margin: 0 0 16px; }

/* Explications des blocs de la feuille : alignées à gauche, comme les titres et le contenu. */
.sheet .heatmap > .gauge-caption { text-align: left; }

/* Lien discret vers le rapport de structure (étape 3 de l'import). */
.structure-link { display: inline-flex; align-items: center; gap: 8px; margin: 12px 0 0; padding: 0; border: 0; background: transparent; color: var(--muted); font: 500 .92rem "Fira Sans Condensed", sans-serif; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.structure-link:hover { color: var(--accent); }
.structure-link .icon { width: 15px; height: 15px; }

/* Cadre de dépôt : le nom du fichier reste dans le cadre (centré, il prenait sa largeur naturelle). */
.split .drop-copy { width: 100%; }
.split .drop-sub { max-width: 100%; }

/* ---------- Accueil : bloc « Les enfants » ---------- */
.kids-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.home .kids-head h2 { margin: 0; }
.kids-sub { margin: 4px 0 0; font-size: 1rem; color: #6f685f; }
.kids-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: #f3f0ea; color: #1e3f3a; font-size: .85rem; font-weight: 500; white-space: nowrap; }
.kids-chip .icon { width: 14px; height: 14px; }
.kids-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; margin-top: 20px; }
button.kid-card {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px;
  padding: 14px 16px; border: 1px solid #e3dcd2; border-radius: 18px; background: #fff; color: #1c1915;
  font-family: "Fira Sans Condensed", sans-serif; text-align: left; cursor: pointer;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
button.kid-card:hover, button.kid-card:focus-visible { border-color: #1e3f3a; box-shadow: 0 10px 24px rgba(28, 25, 21, .08); transform: translateY(-1px); }
.kid-card .story-ring { width: 64px; height: 64px; }
.kid-card .story-face { font-size: 1.45rem; }
.kid-info { display: grid; gap: 4px; min-width: 0; }
.kid-name { font-size: 1.3rem; font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kid-level { display: inline-flex; align-items: center; gap: 6px; width: fit-content; padding: 2px 10px; border-radius: 999px; background: #f3f0ea; font-size: .85rem; font-weight: 600; }
.kid-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #d9d0c4; }
.lvl-conforme .kid-dot { background: #1f7a56; }
.lvl-ecart_modere .kid-dot { background: #d4923a; }
.lvl-ecart_marque .kid-dot { background: #c4543c; }
.kid-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; font-size: .85rem; color: #6f685f; }
.kid-go { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #f3f0ea; color: #1e3f3a; }
.kid-go .icon { width: 16px; height: 16px; }
button.kid-add { grid-template-columns: auto minmax(0, 1fr); border-style: dashed; border-color: #cfc6b9; background: transparent; }
.kid-add-mark { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; border: 1.5px dashed #b7aea3; color: #6f685f; }
.kid-add-mark .icon { width: 24px; height: 24px; }
.kid-add .kid-name { font-size: 1.1rem; }
/* Légende sous les cartes, séparée d'elles par une fine ligne : niveaux de la jauge, puis badges d'alerte. */
.kids-legend { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 20px 0 0; padding-top: 14px; border-top: 1px solid #e7e0d6; font-family: "Fira Sans Condensed", sans-serif; font-size: .82rem; color: #6f685f; }
.kids-legend p { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin: 0; }
.kids-legend strong { font-size: .7rem; font-weight: 650; letter-spacing: .16em; text-transform: uppercase; color: #8a8278; }
.kids-legend p > span { display: inline-flex; align-items: center; gap: 6px; }
.kids-legend .kid-alert { font-size: .72rem; }

/* ---------- Fenêtre « Réseaux pris en charge » ---------- */
.modal.wide { width: min(720px, 100%); max-height: calc(100dvh - 48px); overflow: auto; }
.nets { display: grid; gap: 8px; margin-top: 16px; }
.net { border: 1px solid var(--line); border-radius: 14px; background: var(--bg); }
.net summary { display: grid; grid-template-columns: 22px auto auto minmax(0, 1fr); align-items: center; gap: 4px 10px; padding: 12px 14px; cursor: pointer; list-style: none; }
.net summary::-webkit-details-marker { display: none; }
.net summary img.brand { width: 20px; height: 20px; }
.net-name { font-weight: 600; font-size: 1.05rem; }
.net-status { padding: 2px 8px; border-radius: 999px; font-size: .75rem; font-weight: 600; white-space: nowrap; }
.net-status.verified { background: #e0eae1; color: #1f7a56; }
.net-status.account { background: #e0e2dd; color: #1e3f3a; }
.net-status.unverified { background: #f7e9d6; color: #8a5a17; }
.modal .net-read { grid-column: 2 / -1; margin: 0; font-size: .9rem; line-height: 1.35; color: var(--muted); }
.net[open] summary { border-bottom: 1px solid var(--line); }
.net-body { margin: 0; padding: 12px 14px 14px; display: grid; gap: 10px; }
.net-body > div { display: grid; grid-template-columns: 8.5em minmax(0, 1fr); gap: 10px; }
.net-body dt { font-size: .72rem; font-weight: 650; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding-top: .25em; }
.net-body dd { margin: 0; font-size: .95rem; line-height: 1.4; }
.net-body ol { margin: 0; padding-left: 1.2em; display: grid; gap: 4px; }
.modal .net-soon { margin: 14px 0 0; font-size: .9rem; }
.nets-link { display: inline-flex; flex-direction: row-reverse; align-items: center; gap: 8px; margin-top: 14px; padding: 0; border: 0; background: transparent; color: #1e3f3a; font: 600 .95rem "Fira Sans Condensed", sans-serif; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.nets-link .icon { width: 15px; height: 15px; }
@media (max-width: 560px) { .net-body > div { grid-template-columns: 1fr; gap: 2px; } }

/* Fenêtre à un seul bouton (Compris) : il prend toute la largeur au lieu d'une colonne sur deux. */
.modal-actions > :only-child { grid-column: 1 / -1; }

.window-note { margin: 14px 0 0; padding: 14px 16px; border-radius: 14px; background: var(--bg); text-align: left; font-family: "Fira Sans Condensed", sans-serif; }
.window-note .wn-title { display: flex; align-items: center; gap: 8px; margin: 0 0 4px; font-size: 1.02rem; font-weight: 600; color: var(--text); }
.window-note .wn-title .icon { width: 16px; height: 16px; color: var(--accent); }
.window-note .wn-text { margin: 0; font-size: .9rem; line-height: 1.4; color: var(--muted); }
.window-note .wn-list { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; padding: 0; }
.window-note .wn-list li { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 6px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); font-size: .88rem; }
.window-note .wn-list img.brand { width: 16px; height: 16px; }
.window-note .wn-list strong { font-weight: 600; }
.window-note .wn-list span { color: var(--muted); }

.heatmap .account-note { margin: 16px 0 0; }
.window-note .wn-title img.brand { width: 18px; height: 18px; }
.window-note .wn-link { display: inline-flex; align-items: center; gap: 6px; margin: 8px 0 0; padding: 0; border: 0; background: transparent; color: var(--accent); font: 600 .9rem "Fira Sans Condensed", sans-serif; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.window-note .wn-link .icon { width: 15px; height: 15px; }
@media print { .window-note .wn-link { display: none; } }
