:root {
  --ink: #102536;
  --navy: #0c2d48;
  --blue: #1d68e5;
  --blue-dark: #1453b9;
  --paper: #f5f7f8;
  --white: #fff;
  --line: #dce3e8;
  --muted: #637380;
  --green: #18845a;
  --amber: #ad6912;
  --red: #b74343;
  --radius: 18px;
  --shadow: 0 18px 48px rgba(27, 50, 68, .10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
button, input { font: inherit; }
button { color: inherit; }

.site-header { height: 72px; max-width: 1220px; margin: 0 auto; padding: 0 28px; display: flex; align-items: center; justify-content: space-between; }
.brand { color: var(--navy); text-decoration: none; font-weight: 760; letter-spacing: -.02em; display: flex; align-items: center; gap: 10px; }
.brand-mark { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: var(--navy); font-size: 13px; letter-spacing: .06em; }
.privacy-pill { color: var(--green); font-size: 13px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.privacy-pill span { font-size: 9px; }

main { max-width: 1164px; margin: 0 auto; padding: 38px 28px 80px; }
.hero { max-width: 820px; margin: 34px 0 52px; }
.eyebrow { margin: 0 0 14px; color: var(--blue); text-transform: uppercase; letter-spacing: .14em; font-size: 12px; font-weight: 800; }
h1 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(42px, 6.4vw, 72px); line-height: .99; letter-spacing: -.045em; font-weight: 500; }
h1 span { color: var(--blue); }
.hero-copy { max-width: 650px; margin: 24px 0; color: var(--muted); font-size: 17px; line-height: 1.6; }
.spec-row { display: flex; flex-wrap: wrap; gap: 10px; }
.spec-row span { border: 1px solid var(--line); background: rgba(255,255,255,.72); border-radius: 999px; padding: 8px 13px; font-size: 12px; font-weight: 760; color: #3d5362; }

.workspace { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr); gap: 20px; align-items: start; }
.panel { background: var(--white); border: 1px solid rgba(210,220,227,.85); border-radius: var(--radius); box-shadow: var(--shadow); }
.editor-panel { padding: 26px; }
.results-panel { padding: 26px; position: sticky; top: 20px; }
.panel-heading { min-height: 38px; margin-bottom: 22px; display: flex; align-items: center; justify-content: space-between; }
.panel-heading > div { display: flex; align-items: center; gap: 11px; }
.step { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: #eaf1fc; color: var(--blue); font-size: 11px; font-weight: 800; }
h2 { margin: 0; font-size: 17px; letter-spacing: -.02em; }
.text-button { border: 0; background: transparent; padding: 6px; color: var(--blue); font-size: 13px; font-weight: 750; cursor: pointer; }

.dropzone { min-height: 390px; border: 1.5px dashed #aebdca; border-radius: 13px; background: linear-gradient(145deg, #fafcfd, #f4f7f9); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; cursor: pointer; transition: .2s ease; }
.dropzone:hover, .dropzone.dragging { border-color: var(--blue); background: #f2f7ff; transform: translateY(-2px); }
.upload-icon { width: 58px; height: 58px; margin-bottom: 7px; border-radius: 50%; display: grid; place-items: center; background: var(--navy); color: #fff; }
.dropzone strong { font-size: 17px; }
.dropzone > span:not(.upload-icon) { color: var(--muted); font-size: 14px; }
.dropzone small { margin-top: 14px; color: #8897a3; font-size: 12px; }

.editor { display: grid; grid-template-columns: minmax(280px, 1fr) minmax(210px, .64fr); gap: 24px; align-items: center; }
.canvas-shell { position: relative; overflow: hidden; border-radius: 12px; background: #edf0f2; aspect-ratio: 1; box-shadow: inset 0 0 0 1px rgba(10,32,48,.08); }
#previewCanvas { width: 100%; height: 100%; display: block; }
.guide { position: absolute; inset: 0; pointer-events: none; }
.guide::after { content: ""; position: absolute; inset: 3.5%; border: 1px solid rgba(255,255,255,.7); box-shadow: 0 0 0 1px rgba(12,45,72,.18); }
.eye-line { position: absolute; left: 13%; right: 13%; top: 38%; border-top: 1px dashed rgba(255,255,255,.9); filter: drop-shadow(0 1px 0 rgba(12,45,72,.35)); }
.head-oval { position: absolute; width: 48%; height: 67%; left: 26%; top: 6%; border: 1px dashed rgba(255,255,255,.72); border-radius: 50%; filter: drop-shadow(0 1px 0 rgba(12,45,72,.45)); }
.processing { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 12px; color: #fff; background: rgba(7,31,49,.72); font-size: 13px; font-weight: 720; backdrop-filter: blur(4px); }
.spinner { width: 28px; height: 28px; border: 3px solid rgba(255,255,255,.3); border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.controls { display: grid; gap: 19px; }
.controls label:not(.toggle-row) { display: grid; grid-template-columns: 1fr auto; gap: 8px; color: #39505f; font-size: 12px; font-weight: 760; }
.controls output { color: var(--muted); font-weight: 650; }
.controls input[type="range"] { grid-column: 1 / -1; width: 100%; accent-color: var(--blue); }
.control-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.toggle-row { display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: center; border-top: 1px solid var(--line); padding-top: 18px; cursor: pointer; }
.toggle-row > span:first-child { display: grid; gap: 4px; }
.toggle-row strong { font-size: 13px; }
.toggle-row small { color: var(--muted); font-size: 11px; line-height: 1.35; }
.toggle-row input { position: absolute; opacity: 0; }
.toggle { width: 43px; height: 24px; border-radius: 999px; background: #c6d0d7; position: relative; transition: .2s; }
.toggle::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 2px 5px rgba(0,0,0,.18); transition: .2s; }
.toggle-row input:checked + .toggle { background: var(--blue); }
.toggle-row input:checked + .toggle::after { transform: translateX(19px); }
.micro-warning { margin: -8px 0 0; padding: 10px 11px; border-radius: 8px; color: #795017; background: #fff7e8; font-size: 10.5px; line-height: 1.45; }
.visual-confirmations { margin: -4px 0 0; padding: 10px; border: 1px solid var(--line); border-radius: 9px; display: grid; gap: 8px; }
.visual-confirmations legend { padding: 0 5px; color: #39505f; font-size: 11px; font-weight: 780; }
.confirmation-chips { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.confirm-chip { min-height: 38px; padding: 7px 8px; border: 1px solid var(--line); border-radius: 8px; display: flex; align-items: center; justify-content: center; gap: 6px; color: #4f6270; background: #fff; font-size: 10.5px; font-weight: 750; line-height: 1.15; text-align: center; cursor: pointer; transition: .16s ease; }
.confirm-chip[hidden] { display: none; }
.confirm-chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip-check { width: 17px; height: 17px; flex: 0 0 17px; border: 1px solid #b8c5ce; border-radius: 50%; display: grid; place-items: center; color: transparent; background: #fff; font-size: 9px; }
.confirm-chip:hover { border-color: #9eb9e4; background: #f6f9ff; }
.confirm-chip:has(input:checked) { border-color: #9bd2bd; color: #176647; background: #edf9f4; }
.confirm-chip:has(input:checked) .chip-check { border-color: var(--green); color: #fff; background: var(--green); }
.confirm-chip:has(input:focus-visible) { outline: 3px solid rgba(29,104,229,.35); outline-offset: 2px; }

.empty-results { min-height: 390px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; color: var(--muted); }
.access-card { margin: -7px 0 16px; padding: 12px 13px; border: 1px solid #cbdcf9; border-radius: 10px; background: #f1f6ff; display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--navy); }
.access-card > div { display: grid; gap: 2px; }
.access-card span { font-size: 9px; font-weight: 780; text-transform: uppercase; letter-spacing: .07em; color: var(--blue); }
.access-card strong { font-size: 12px; }
.access-card > #accessBadge { padding: 6px 8px; border-radius: 999px; background: #fff; white-space: nowrap; font-size: 9px; }
.access-card.is-premium { border-color: #b8dfcf; background: #edf9f4; }
.access-card.is-premium span { color: var(--green); }
.access-card.is-locked { border-color: #e7bbbb; background: #fff0f0; }
.access-card.is-locked span { color: var(--red); }
.empty-ring { width: 56px; height: 56px; margin-bottom: 13px; border: 1px solid var(--line); border-radius: 50%; display: grid; place-items: center; color: #a6b2bb; font-size: 20px; }
.empty-results p { max-width: 210px; font-size: 13px; line-height: 1.55; }
.score-card { padding: 18px; border-radius: 14px; background: var(--navy); color: #fff; display: grid; grid-template-columns: 92px 1fr; gap: 17px; align-items: center; }
.score-dial { --gauge-color: #4bd49b; width: 88px; height: 88px; border-radius: 50%; display: grid; place-items: center; position: relative; background: conic-gradient(var(--gauge-color) calc(var(--score) * 1%), rgba(255,255,255,.16) 0); transition: --score .55s ease; }
.score-dial::before { content: ""; position: absolute; inset: 7px; border-radius: 50%; background: var(--navy); }
.score-dial > div { z-index: 1; display: grid; place-items: center; line-height: 1; }
.score-dial strong { font-size: 23px; letter-spacing: -.04em; }
.score-dial small { margin-top: 5px; color: #b8c9d5; font-size: 8px; text-transform: uppercase; letter-spacing: .08em; }
.score-copy { min-width: 0; display: grid; gap: 3px; }
.score-copy > span { color: #afc2d0; font-size: 9px; font-weight: 750; text-transform: uppercase; letter-spacing: .09em; }
.score-copy > strong { font-size: 16px; line-height: 1.2; }
.score-copy p { margin: 3px 0 2px; color: #d0dce5; font-size: 9px; line-height: 1.35; }
.score-track { height: 5px; margin-top: 13px; overflow: hidden; background: rgba(255,255,255,.2); border-radius: 99px; }
.score-track span { display: block; width: 0; height: 100%; background: #4bd49b; border-radius: inherit; transition: width .35s ease; }
.decision-card { margin-top: 14px; padding: 12px 13px; border: 1px solid #f0d399; border-radius: 10px; background: #fff8e9; color: #795017; }
.decision-card strong { display: block; font-size: 12px; }
.decision-card p { margin: 4px 0 0; font-size: 10.5px; line-height: 1.45; }
.decision-card.is-pass { border-color: #b8dfcf; background: #edf9f4; color: #176647; }
.decision-card.is-reject { border-color: #e7bbbb; background: #fff0f0; color: #963939; }
.checklist { list-style: none; margin: 18px 0; padding: 0; display: grid; }
.checklist li { min-height: 45px; display: grid; grid-template-columns: 24px 1fr auto; align-items: center; gap: 9px; border-bottom: 1px solid #edf0f2; font-size: 12px; }
.check-icon { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 10px; font-weight: 900; }
.status-pass .check-icon { color: var(--green); background: #e4f5ee; }
.status-warn .check-icon { color: var(--amber); background: #fff0d9; }
.status-fail .check-icon { color: var(--red); background: #fae8e8; }
.checklist em { color: var(--muted); font-style: normal; font-size: 10px; text-align: right; }
.primary-button { width: 100%; min-height: 51px; border: 0; border-radius: 10px; display: flex; align-items: center; justify-content: center; gap: 9px; color: #fff; background: var(--blue); font-weight: 770; font-size: 13px; cursor: pointer; box-shadow: 0 8px 18px rgba(29,104,229,.25); transition: .18s; }
.primary-button:hover:not(:disabled) { background: var(--blue-dark); transform: translateY(-1px); }
.primary-button:disabled { cursor: not-allowed; opacity: .55; box-shadow: none; }
.file-meta { margin: 11px 0 0; text-align: center; color: var(--muted); font-size: 10px; }

.paywall-dialog { width: min(430px, calc(100% - 32px)); border: 0; border-radius: 18px; padding: 30px; color: var(--ink); box-shadow: 0 28px 90px rgba(5,25,40,.28); text-align: center; }
.paywall-dialog::backdrop { background: rgba(7,31,49,.58); backdrop-filter: blur(4px); }
.paywall-dialog h2 { margin: 4px 0 12px; font-family: Georgia, "Times New Roman", serif; font-size: 27px; font-weight: 500; }
.paywall-dialog > p:not(.eyebrow) { margin: 0 0 22px; color: var(--muted); font-size: 13px; line-height: 1.55; }
.paywall-dialog small { display: block; margin-top: 12px; color: var(--muted); font-size: 9px; }
.paywall-icon { width: 52px; height: 52px; margin: 0 auto 17px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: var(--navy); font-size: 13px; font-weight: 800; letter-spacing: .06em; }
.dialog-close { position: absolute; top: 12px; right: 14px; border: 0; background: transparent; color: var(--muted); font-size: 23px; cursor: pointer; }

.owner-shell { max-width: 720px; margin: 36px auto 80px; padding: 0 28px; }
.owner-hero { margin-bottom: 25px; }
.owner-hero h1 { font-size: clamp(38px, 7vw, 58px); }
.owner-card { padding: 28px; }
.owner-form { display: grid; gap: 22px; }
.owner-field { display: grid; gap: 7px; }
.owner-field label { font-size: 13px; font-weight: 780; }
.owner-field small { color: var(--muted); font-size: 11px; line-height: 1.5; }
.owner-field input { width: 100%; min-height: 48px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 9px; color: var(--ink); background: #fff; }
.owner-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.owner-actions .primary-button { width: auto; padding: 0 22px; }
.secondary-button { min-height: 48px; padding: 0 18px; border: 1px solid var(--line); border-radius: 9px; background: #fff; color: var(--navy); font-weight: 750; cursor: pointer; }
.owner-status { min-height: 20px; margin: 0; color: var(--green); font-size: 12px; }
.prototype-note { padding: 14px; border-radius: 10px; background: #fff7e8; color: #795017; font-size: 11px; line-height: 1.5; }

.official-note { margin-top: 20px; padding: 22px 24px; border: 1px solid #d6e0e8; border-radius: 14px; display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; background: #eef4f8; }
.note-icon { width: 30px; height: 30px; border: 1px solid #9eb2c2; border-radius: 50%; display: grid; place-items: center; font-family: Georgia, serif; font-weight: bold; color: var(--navy); }
.official-note h2 { margin-bottom: 5px; font-size: 14px; }
.official-note p { margin: 0; max-width: 760px; color: #516674; font-size: 11px; line-height: 1.55; }
.official-note a { white-space: nowrap; color: var(--blue); font-size: 11px; font-weight: 760; text-decoration: none; }

footer { max-width: 1164px; margin: 0 auto; padding: 22px 28px 34px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 18px; color: #7a8994; font-size: 10px; }
footer span:first-child { color: var(--navy); font-weight: 800; }

[hidden] { display: none !important; }
:focus-visible { outline: 3px solid rgba(29,104,229,.35); outline-offset: 3px; }

@media (max-width: 860px) {
  .workspace { grid-template-columns: 1fr; }
  .results-panel { position: static; }
  .editor { grid-template-columns: 1fr; }
  .controls { grid-template-columns: 1fr 1fr; align-items: start; }
  .toggle-row, .micro-warning { grid-column: 1 / -1; }
}
@media (max-width: 580px) {
  .site-header { padding: 0 18px; }
  main { padding: 20px 16px 56px; }
  .hero { margin: 24px 0 36px; }
  h1 { font-size: 41px; }
  .hero-copy { font-size: 15px; }
  .editor-panel, .results-panel { padding: 18px; }
  .dropzone { min-height: 310px; }
  .controls { grid-template-columns: 1fr; }
  .control-grid { grid-template-columns: 1fr; }
  .official-note { grid-template-columns: auto 1fr; align-items: start; }
  .official-note a { grid-column: 2; }
  footer { padding: 20px 18px; flex-direction: column; }
  .privacy-pill { font-size: 0; }
  .score-card { grid-template-columns: 82px 1fr; }
  .score-dial { width: 78px; height: 78px; }
}

@property --score { syntax: "<number>"; inherits: false; initial-value: 0; }

/* Interface comparison --------------------------------------------------- */
.brand-mark b { font-size: 8px; line-height: 1; }
.brand-mark span { font-size: 11px; line-height: 1; }
.brand-copy { display: grid; line-height: 1; }
.brand-copy strong { font-size: 15px; letter-spacing: -.02em; }
.brand-copy small { margin-top: 4px; font-size: 8px; letter-spacing: .22em; }

.theme-picker { max-width: 1164px; margin: 8px auto 0; padding: 8px; border: 1px solid var(--line); border-radius: 16px; display: grid; grid-template-columns: auto repeat(3, minmax(0, 1fr)); align-items: stretch; gap: 7px; background: rgba(255,255,255,.86); box-shadow: 0 10px 32px rgba(9,31,52,.07); backdrop-filter: blur(12px); }
.theme-picker-title { padding: 0 14px 0 9px; align-self: center; color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; white-space: nowrap; }
.theme-option { min-width: 0; min-height: 52px; padding: 8px 10px; border: 1px solid transparent; border-radius: 11px; display: grid; grid-template-columns: 30px 1fr; gap: 8px; align-items: center; color: #415567; background: transparent; text-align: left; cursor: pointer; transition: .2s ease; }
.theme-option:hover { background: #f1f5f8; }
.theme-option[aria-pressed="true"] { color: #fff; background: var(--navy); box-shadow: 0 7px 16px rgba(7,29,59,.18); }
.theme-option > span:last-child { min-width: 0; display: grid; gap: 3px; }
.theme-option strong { overflow: hidden; font-size: 11px; line-height: 1.1; white-space: nowrap; text-overflow: ellipsis; }
.theme-option small { overflow: hidden; color: inherit; opacity: .68; font-size: 8.5px; white-space: nowrap; text-overflow: ellipsis; }
.theme-number { width: 30px; height: 30px; border: 1px solid currentColor; border-radius: 50%; display: grid; place-items: center; opacity: .75; font-size: 8px; font-weight: 900; }

.hero { position: relative; }
.hero-content { position: relative; z-index: 1; }
.hero-emblem { position: relative; z-index: 1; width: 210px; height: 210px; flex: 0 0 auto; border-radius: 50%; display: grid; place-items: center; align-content: center; text-align: center; }
.hero-emblem strong { font-family: Georgia, "Times New Roman", serif; font-size: 78px; line-height: .82; letter-spacing: -.08em; }
.hero-emblem small { margin-top: 13px; font-size: 8px; font-weight: 900; letter-spacing: .28em; }
.hero-emblem > span { margin-top: 10px; padding: 4px 12px; border-radius: 999px; font-size: 8px; font-weight: 900; letter-spacing: .22em; }
.emblem-stars { margin-bottom: 13px; font-size: 10px; letter-spacing: .35em; }
.mini-stars { margin-right: 7px; letter-spacing: .25em; }

/* 01 — Héritage USA: institutionnel, rassurant, mémorable. */
body[data-theme="heritage"] { --navy: #071d3b; --blue: #1e5aa8; --blue-dark: #123e79; --paper: #f6f1e8; --ink: #10243c; --line: #ded8ce; --red: #bb2036; background: var(--paper); }
body[data-theme="heritage"] .site-header { height: 76px; }
body[data-theme="heritage"] .brand-mark { width: 43px; height: 43px; border: 2px solid #fff; outline: 1px solid #9fb0c4; background: linear-gradient(to bottom, #071d3b 0 72%, #bb2036 72%); box-shadow: 0 4px 12px rgba(7,29,59,.18); }
body[data-theme="heritage"] .brand-mark b { color: #fff; }
body[data-theme="heritage"] .brand-copy small { color: #bb2036; }
body[data-theme="heritage"] main { padding-top: 22px; }
body[data-theme="heritage"] .hero { max-width: none; min-height: 370px; margin: 22px 0 30px; padding: 56px 62px; border-radius: 30px; display: flex; align-items: center; justify-content: space-between; gap: 55px; overflow: hidden; color: #fff; background: radial-gradient(circle at 82% 15%, rgba(255,255,255,.12), transparent 27%), linear-gradient(125deg, #07162f 0%, #0b2a52 62%, #123b6a 100%); box-shadow: 0 26px 60px rgba(7,29,59,.18); }
body[data-theme="heritage"] .hero::before { content: "★★★★★"; position: absolute; top: 25px; right: 40px; color: rgba(255,255,255,.13); font-size: 22px; letter-spacing: .35em; }
body[data-theme="heritage"] .hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 7px; background: #bb2036; }
body[data-theme="heritage"] .hero-content { max-width: 710px; }
body[data-theme="heritage"] .hero .eyebrow { color: #f0c47c; }
body[data-theme="heritage"] .hero h1 { font-size: clamp(42px, 5.6vw, 68px); }
body[data-theme="heritage"] .hero h1 span { color: #f5c779; }
body[data-theme="heritage"] .hero-copy { color: #c8d4e1; }
body[data-theme="heritage"] .hero .spec-row span { border-color: rgba(255,255,255,.23); color: #fff; background: rgba(255,255,255,.08); }
body[data-theme="heritage"] .hero-emblem { border: 1px solid rgba(255,255,255,.3); color: #fff; box-shadow: inset 0 0 0 9px rgba(255,255,255,.035); }
body[data-theme="heritage"] .hero-emblem::before, body[data-theme="heritage"] .hero-emblem::after { content: ""; position: absolute; inset: 15px; border: 1px dashed rgba(240,196,124,.45); border-radius: 50%; }
body[data-theme="heritage"] .hero-emblem::after { inset: 27px; border-style: solid; border-color: rgba(255,255,255,.12); }
body[data-theme="heritage"] .hero-emblem > * { position: relative; z-index: 1; }
body[data-theme="heritage"] .hero-emblem > span { color: #fff; background: #bb2036; }
body[data-theme="heritage"] .panel { border-color: #ded8ce; }
body[data-theme="heritage"] .panel::before { content: ""; position: absolute; }
body[data-theme="heritage"] .primary-button { background: #bb2036; box-shadow: 0 8px 18px rgba(187,32,54,.24); }
body[data-theme="heritage"] .primary-button:hover:not(:disabled) { background: #961729; }

/* 02 — Visa Premium: contraste nocturne, touches or, sensation de service. */
body[data-theme="premium"] { --navy: #0a1628; --blue: #bd9250; --blue-dark: #9b7338; --paper: #07111f; --ink: #132338; --line: #dfe3e7; --red: #b5293e; min-height: 100vh; background: linear-gradient(#07111f 0 720px, #eef0f2 720px 100%); }
body[data-theme="premium"] .site-header { color: #fff; }
body[data-theme="premium"] .brand { color: #fff; }
body[data-theme="premium"] .brand-mark { width: 43px; height: 43px; border: 1px solid #bd9250; color: #e5c38b; background: rgba(255,255,255,.04); box-shadow: inset 0 0 0 4px rgba(189,146,80,.08); }
body[data-theme="premium"] .brand-copy small { color: #bd9250; }
body[data-theme="premium"] .privacy-pill { color: #75d8ae; }
body[data-theme="premium"] .theme-picker { border-color: rgba(255,255,255,.13); color: #fff; background: rgba(255,255,255,.05); box-shadow: none; }
body[data-theme="premium"] .theme-picker-title { color: #8592a3; }
body[data-theme="premium"] .theme-option { color: #a9b4c2; }
body[data-theme="premium"] .theme-option:hover { background: rgba(255,255,255,.06); }
body[data-theme="premium"] .theme-option[aria-pressed="true"] { border-color: rgba(189,146,80,.45); color: #f3d8aa; background: linear-gradient(135deg, rgba(189,146,80,.22), rgba(255,255,255,.06)); box-shadow: none; }
body[data-theme="premium"] main { padding-top: 8px; }
body[data-theme="premium"] .hero { max-width: 960px; min-height: 470px; margin: 0 auto 24px; padding: 52px 235px 44px 0; display: flex; align-items: center; color: #fff; }
body[data-theme="premium"] .hero::before { content: ""; position: absolute; top: 23px; right: 100px; width: 260px; height: 390px; border: 1px solid rgba(189,146,80,.32); border-radius: 130px 130px 28px 28px; background: radial-gradient(circle at 50% 35%, rgba(189,146,80,.17), transparent 38%), rgba(255,255,255,.025); box-shadow: inset 0 0 70px rgba(189,146,80,.05); }
body[data-theme="premium"] .hero-content { max-width: 720px; }
body[data-theme="premium"] .hero .eyebrow { color: #bd9250; }
body[data-theme="premium"] .hero h1 { font-size: clamp(44px, 6vw, 72px); }
body[data-theme="premium"] .hero h1 span { color: #e2bd7e; }
body[data-theme="premium"] .hero-copy { color: #aeb9c6; }
body[data-theme="premium"] .hero .spec-row span { border-color: rgba(189,146,80,.28); color: #d5bf9d; background: rgba(189,146,80,.07); }
body[data-theme="premium"] .hero-emblem { position: absolute; top: 73px; right: 125px; width: 210px; height: 310px; border-radius: 104px 104px 22px 22px; color: #e2bd7e; }
body[data-theme="premium"] .hero-emblem strong { font-size: 84px; }
body[data-theme="premium"] .hero-emblem > span { border: 1px solid rgba(189,146,80,.5); background: transparent; }
body[data-theme="premium"] .workspace { gap: 24px; }
body[data-theme="premium"] .panel { border: 0; border-radius: 25px; box-shadow: 0 24px 60px rgba(5,14,25,.15); }
body[data-theme="premium"] .editor-panel, body[data-theme="premium"] .results-panel { padding: 30px; }
body[data-theme="premium"] .step { color: #8e682f; background: #f4ead9; }
body[data-theme="premium"] .dropzone { border-color: #cfc6b7; border-radius: 18px; background: #faf8f4; }
body[data-theme="premium"] .upload-icon { color: #ead2a8; background: #0a1628; }
body[data-theme="premium"] .score-card { background: linear-gradient(135deg, #0a1628, #172b43); }
body[data-theme="premium"] .score-dial::before { background: #101f32; }
body[data-theme="premium"] .primary-button { color: #102033; background: linear-gradient(135deg, #e5c58f, #b98742); box-shadow: 0 9px 22px rgba(153,111,54,.25); }
body[data-theme="premium"] .primary-button:hover:not(:disabled) { background: linear-gradient(135deg, #efd6aa, #bd9250); }
body[data-theme="premium"] .official-note { border-color: #d5d1ca; background: #f7f4ee; }
body[data-theme="premium"] footer { color: #687686; border-color: #d6dbe0; }

/* 03 — Express: direct, lumineux, pensé d'abord pour le téléphone. */
body[data-theme="express"] { --navy: #0a3174; --blue: #1557d5; --blue-dark: #0c43ad; --paper: #edf4ff; --ink: #10274a; --line: #cfdcf0; --red: #df2341; background: linear-gradient(135deg, #f7faff 0, #e7f1ff 100%); }
body[data-theme="express"] .site-header { height: 64px; margin-top: 16px; border: 1px solid #d7e4f4; border-radius: 16px; background: rgba(255,255,255,.9); box-shadow: 0 8px 24px rgba(21,87,213,.08); }
body[data-theme="express"] .brand-mark { width: 39px; height: 39px; border-radius: 10px; background: linear-gradient(135deg, #1557d5 0 72%, #df2341 72%); }
body[data-theme="express"] .brand-copy small { color: #df2341; }
body[data-theme="express"] .theme-picker { margin-top: 10px; }
body[data-theme="express"] .theme-option[aria-pressed="true"] { background: #1557d5; box-shadow: 0 7px 16px rgba(21,87,213,.22); }
body[data-theme="express"] main { padding-top: 20px; }
body[data-theme="express"] .hero { max-width: none; min-height: 300px; margin: 8px 0 24px; padding: 44px 310px 44px 48px; border: 1px solid #d5e3f5; border-radius: 20px; overflow: hidden; color: #10274a; background: #fff; box-shadow: 0 16px 40px rgba(21,87,213,.08); }
body[data-theme="express"] .hero::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 8px; background: linear-gradient(#1557d5 0 66%, #fff 66% 73%, #df2341 73%); }
body[data-theme="express"] .hero::after { content: "1  ·  2  ·  3"; position: absolute; right: 41px; bottom: 31px; color: #94a9c8; font-size: 11px; font-weight: 900; letter-spacing: .32em; }
body[data-theme="express"] .hero .eyebrow { color: #df2341; }
body[data-theme="express"] .hero h1 { font-family: Inter, ui-sans-serif, system-ui, sans-serif; font-size: clamp(38px, 5vw, 60px); font-weight: 850; line-height: 1.02; letter-spacing: -.055em; }
body[data-theme="express"] .hero h1 span { color: #1557d5; }
body[data-theme="express"] .hero-copy { margin: 18px 0; }
body[data-theme="express"] .hero-emblem { position: absolute; top: 34px; right: 45px; width: 210px; height: 210px; border-radius: 28px; color: #fff; background: linear-gradient(145deg, #1557d5, #0a3174); box-shadow: 14px 14px 0 #df2341; transform: rotate(2deg); }
body[data-theme="express"] .hero-emblem strong { font-family: Inter, ui-sans-serif, system-ui, sans-serif; font-weight: 900; }
body[data-theme="express"] .hero-emblem > span { color: #10274a; background: #fff; }
body[data-theme="express"] .panel { border-color: #d5e3f5; border-radius: 16px; box-shadow: 0 14px 36px rgba(21,87,213,.08); }
body[data-theme="express"] .step { width: auto; min-width: 36px; padding: 0 9px; border-radius: 7px; color: #fff; background: #1557d5; }
body[data-theme="express"] .dropzone { border-width: 2px; border-color: #9ab9ea; border-radius: 12px; background: #f4f8ff; }
body[data-theme="express"] .upload-icon { border-radius: 13px; background: #1557d5; }
body[data-theme="express"] .score-card { background: #0a3174; }
body[data-theme="express"] .score-dial::before { background: #0a3174; }
body[data-theme="express"] .primary-button { background: #1557d5; }
body[data-theme="express"] .primary-button:hover:not(:disabled) { background: #0c43ad; }
body[data-theme="express"] .official-note { background: #fff; }

@media (max-width: 940px) {
  .theme-picker { margin-inline: 18px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .theme-picker-title { grid-column: 1 / -1; padding: 5px 6px 1px; }
  body[data-theme="heritage"] .hero { padding: 48px 42px; }
  body[data-theme="heritage"] .hero-emblem { width: 170px; height: 170px; }
  body[data-theme="premium"] .hero { padding-right: 210px; }
  body[data-theme="premium"] .hero::before { right: 20px; }
  body[data-theme="premium"] .hero-emblem { right: 45px; }
}

@media (max-width: 720px) {
  .theme-option { grid-template-columns: 1fr; justify-items: center; padding: 8px 5px; text-align: center; }
  .theme-number { width: 25px; height: 25px; }
  .theme-option small { display: none; }
  body[data-theme] .hero { min-height: 0; padding: 34px 26px; display: block; }
  body[data-theme] .hero-emblem { display: none; }
  body[data-theme="premium"] .hero { padding: 50px 10px 42px; text-align: center; }
  body[data-theme="premium"] .hero::before { display: none; }
  body[data-theme="premium"] .hero-copy { margin-inline: auto; }
  body[data-theme="premium"] .spec-row { justify-content: center; }
  body[data-theme="express"] .hero::after { display: none; }
}

@media (max-width: 580px) {
  .theme-picker { margin-inline: 12px; }
  .theme-option strong { font-size: 9.5px; }
  body[data-theme="express"] .site-header { margin: 10px 10px 0; }
  body[data-theme="heritage"] .hero { border-radius: 20px; }
  body[data-theme="heritage"] .hero h1, body[data-theme="premium"] .hero h1, body[data-theme="express"] .hero h1 { font-size: 38px; }
}

/* Variante hybride demandée : illustration guidée + finition Premium. */
.seal-view { display: grid; place-items: center; align-content: center; }
.scan-view, .hero-cta, .benefit-strip { display: none; }

body[data-theme="premium"] { background: linear-gradient(#07111f 0 1040px, #eef0f2 1040px 100%); }
body[data-theme="premium"] main { max-width: 1220px; }
body[data-theme="premium"] .hero { max-width: none; min-height: 500px; margin: 22px 0 18px; padding: 56px 440px 56px 48px; border: 1px solid rgba(189,146,80,.22); border-radius: 28px; overflow: hidden; background: linear-gradient(115deg, rgba(255,255,255,.035), rgba(255,255,255,.01)); box-shadow: 0 24px 80px rgba(0,0,0,.18); }
body[data-theme="premium"] .hero::before { top: 0; right: 0; bottom: 0; width: 43%; height: auto; border: 0; border-radius: 0; background: radial-gradient(circle at 45% 42%, rgba(189,146,80,.15), transparent 44%), linear-gradient(90deg, transparent, rgba(255,255,255,.025)); box-shadow: none; }
body[data-theme="premium"] .hero::after { content: ""; position: absolute; right: 0; bottom: 0; width: 43%; height: 6px; background: linear-gradient(90deg, #bd9250 0 58%, #fff 58% 64%, #a91f36 64%); opacity: .9; }
body[data-theme="premium"] .hero-content { max-width: 690px; }
body[data-theme="premium"] .hero h1 { font-size: clamp(45px, 5.3vw, 67px); }
body[data-theme="premium"] .hero-emblem { top: 50%; right: 38px; width: 385px; height: 385px; border-radius: 0; transform: translateY(-50%); }
body[data-theme="premium"] .seal-view { display: none; }
body[data-theme="premium"] .scan-view { width: 100%; height: 100%; display: block; position: relative; }
body[data-theme="premium"] .scan-view svg { width: 100%; height: 100%; display: block; filter: drop-shadow(0 22px 35px rgba(0,0,0,.24)); }
body[data-theme="premium"] .scan-status { position: absolute; left: 50%; bottom: 9px; transform: translateX(-50%); min-width: 146px; padding: 9px 13px; border: 1px solid rgba(189,146,80,.45); border-radius: 999px; display: flex; align-items: center; justify-content: center; gap: 7px; color: #f2dbb6; background: rgba(7,17,31,.88); box-shadow: 0 8px 24px rgba(0,0,0,.28); font-size: 10px; font-weight: 800; letter-spacing: .03em; white-space: nowrap; backdrop-filter: blur(8px); }
body[data-theme="premium"] .scan-status b { width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; color: #07111f; background: #70d6a8; font-size: 10px; }
body[data-theme="premium"] .hero-cta { width: fit-content; min-height: 49px; margin-top: 24px; padding: 0 20px; border: 1px solid #d6ae6f; border-radius: 10px; display: inline-flex; align-items: center; gap: 18px; color: #0b1a2d; background: linear-gradient(135deg, #efd7ae, #b98843); box-shadow: 0 12px 28px rgba(173,126,63,.2); font-size: 12px; font-weight: 850; text-decoration: none; transition: .2s ease; }
body[data-theme="premium"] .hero-cta span[aria-hidden="true"] { font-size: 18px; transition: transform .2s ease; }
body[data-theme="premium"] .hero-cta:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(173,126,63,.28); }
body[data-theme="premium"] .hero-cta:hover span[aria-hidden="true"] { transform: translateX(3px); }
body[data-theme="premium"] .benefit-strip { margin: 0 0 24px; padding: 15px; border: 1px solid rgba(189,146,80,.2); border-radius: 18px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; color: #fff; background: rgba(255,255,255,.045); }
body[data-theme="premium"] .benefit-strip > div { min-height: 72px; padding: 10px 14px; border-right: 1px solid rgba(255,255,255,.09); display: flex; align-items: center; gap: 13px; }
body[data-theme="premium"] .benefit-strip > div:last-child { border-right: 0; }
body[data-theme="premium"] .benefit-strip > div > span:last-child { display: grid; gap: 5px; }
body[data-theme="premium"] .benefit-strip strong { font-size: 11px; }
body[data-theme="premium"] .benefit-strip small { color: #8796aa; font-size: 9px; }
body[data-theme="premium"] .benefit-icon { width: 42px; height: 42px; flex: 0 0 42px; border: 1px solid rgba(189,146,80,.36); border-radius: 12px; display: grid; place-items: center; color: #d6ae6f; background: rgba(189,146,80,.08); }
body[data-theme="premium"] .benefit-icon svg { width: 22px; height: 22px; }

@media (max-width: 980px) {
  body[data-theme="premium"] .hero { padding-right: 340px; }
  body[data-theme="premium"] .hero-emblem { right: 14px; width: 330px; height: 330px; }
  body[data-theme="premium"] .hero h1 { font-size: clamp(43px, 6vw, 60px); }
}

@media (max-width: 760px) {
  body[data-theme="premium"] { background: linear-gradient(#07111f 0 1320px, #eef0f2 1320px 100%); }
  body[data-theme="premium"] .hero { padding: 38px 22px 28px; display: flex; flex-direction: column; text-align: center; }
  body[data-theme="premium"] .hero-content { order: 2; }
  body[data-theme="premium"] .hero-emblem { position: relative; top: auto; right: auto; order: 1; width: min(330px, 100%); height: auto; aspect-ratio: 1; margin: -8px auto 12px; display: block; transform: none; }
  body[data-theme="premium"] .hero::before { width: 100%; height: 42%; }
  body[data-theme="premium"] .hero::after { width: 100%; }
  body[data-theme="premium"] .hero h1 { font-size: 41px; }
  body[data-theme="premium"] .hero-cta { margin-inline: auto; }
  body[data-theme="premium"] .benefit-strip { grid-template-columns: 1fr; }
  body[data-theme="premium"] .benefit-strip > div { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.09); }
  body[data-theme="premium"] .benefit-strip > div:last-child { border-bottom: 0; }
}

/* Light and dark finish for the selected hybrid interface. */
.header-tools { display: flex; align-items: center; gap: 14px; }
.segmented-control { padding: 3px; border: 1px solid var(--line); border-radius: 999px; display: flex; align-items: center; gap: 2px; background: rgba(255,255,255,.72); }
.segmented-control button { min-height: 32px; padding: 0 12px; border: 0; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; gap: 5px; color: #5a6a7c; background: transparent; font-size: 11px; font-weight: 800; cursor: pointer; }
.segmented-control button[aria-pressed="true"] { color: #fff; background: #142e53; box-shadow: 0 2px 7px rgba(10,28,54,.14); }
.language-control button { min-width: 38px; }
body[data-theme="premium"][data-mode="light"] { --paper: #f2f5f9; --ink: #10243f; --navy: #153963; --blue: #a57a3a; --line: #d7e0e9; background: linear-gradient(150deg, #fafcff 0, #eaf1f8 560px, #f2f5f9 100%); }
body[data-theme="premium"][data-mode="light"] .site-header { color: var(--ink); }
body[data-theme="premium"][data-mode="light"] .brand { color: #10243f; }
body[data-theme="premium"][data-mode="light"] .brand-mark { color: #153963; border-color: #b8955e; background: #fff; }
body[data-theme="premium"][data-mode="light"] .brand-copy small { color: #a57a3a; }
body[data-theme="premium"][data-mode="light"] .privacy-pill { color: #16805b; }
body[data-theme="premium"][data-mode="light"] .hero { border-color: #dbe4ec; color: #10243f; background: linear-gradient(118deg, #fff 0%, #f8fbff 65%, #eaf2fb 100%); box-shadow: 0 22px 60px rgba(29,61,98,.11); }
body[data-theme="premium"][data-mode="light"] .hero::before { background: radial-gradient(circle at 45% 42%, rgba(189,146,80,.13), transparent 44%), linear-gradient(90deg, transparent, rgba(46,102,161,.08)); }
body[data-theme="premium"][data-mode="light"] .hero .eyebrow { color: #956b33; }
body[data-theme="premium"][data-mode="light"] .hero h1 span { color: #ad7d3d; }
body[data-theme="premium"][data-mode="light"] .hero-copy { color: #5d6c7d; }
body[data-theme="premium"][data-mode="light"] .hero .spec-row span { border-color: #d6e1ea; color: #435b74; background: #fff; }
body[data-theme="premium"][data-mode="light"] .benefit-strip { border-color: #d9e3ed; color: #183654; background: #fff; box-shadow: 0 12px 32px rgba(29,61,98,.08); }
body[data-theme="premium"][data-mode="light"] .benefit-strip > div { border-color: #e2e8ef; }
body[data-theme="premium"][data-mode="light"] .benefit-strip small { color: #6d7e8f; }
body[data-theme="premium"][data-mode="light"] .benefit-icon { color: #9c7339; background: #fbf5eb; }
body[data-theme="premium"][data-mode="light"] .panel { border: 1px solid #e2e8ef; box-shadow: 0 18px 42px rgba(29,61,98,.09); }
body[data-theme="premium"][data-mode="light"] .score-card { background: linear-gradient(135deg, #153963, #215782); }
body[data-theme="premium"][data-mode="light"] .score-dial::before { background: #1a4770; }
body[data-theme="premium"][data-mode="light"] .official-note { background: #fff; border-color: #d9e3ed; }
body[data-theme="premium"][data-mode="light"] footer { border-color: #d9e3ed; }
body[data-theme="premium"][data-mode="dark"] .segmented-control { border-color: rgba(255,255,255,.17); background: rgba(255,255,255,.06); }
body[data-theme="premium"][data-mode="dark"] .segmented-control button { color: #abb8c8; }
body[data-theme="premium"][data-mode="dark"] .segmented-control button[aria-pressed="true"] { color: #0b1b2f; background: #e1bd82; }
body[data-theme="premium"] main.owner-shell { max-width: 720px; padding-top: 32px; }
body[data-theme="premium"][data-mode="dark"] .owner-hero h1 { color: #fff; }
body[data-theme="premium"][data-mode="dark"] .owner-hero .hero-copy { color: #aeb9c6; }
body[data-theme="premium"][data-mode="light"] .owner-hero .hero-copy { color: #5d6c7d; }
body[data-theme="premium"] .owner-actions .primary-button { width: auto; }

@media (max-width: 760px) {
  .site-header { height: auto !important; min-height: 66px; padding-block: 10px; gap: 10px; }
  .header-tools { gap: 7px; }
  .header-tools .privacy-pill { display: none; }
  .segmented-control button { padding-inline: 8px; font-size: 10px; }
  body[data-theme="premium"][data-mode="light"] .benefit-strip > div { border-right: 0; border-bottom: 1px solid #e2e8ef; }
  body[data-theme="premium"][data-mode="light"] .benefit-strip > div:last-child { border-bottom: 0; }
}
@media (max-width: 430px) {
  .site-header { padding-inline: 10px; }
  .brand-copy strong { font-size: 12px; }
  .brand-copy small { font-size: 7px; }
  .brand-mark { width: 35px !important; height: 35px !important; }
  .segmented-control button { min-height: 30px; padding-inline: 6px; }
  .segmented-control button span[aria-hidden="true"] { display: none; }
}

/* Prominent US cue and two explicit photo sources. */
.hero-flag { width: fit-content; max-width: 100%; display: inline-flex; align-items: center; gap: 10px; margin-bottom: 17px; padding: 7px 12px 7px 7px; border: 1px solid rgba(171,132,72,.38); border-radius: 999px; color: #b28345; background: rgba(255,255,255,.07); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.hero-flag svg { width: 38px; height: 20px; flex: 0 0 auto; border-radius: 2px; box-shadow: 0 1px 5px rgba(9,26,48,.23); }
body[data-theme="premium"][data-mode="light"] .hero-flag { color: #775329; background: #fff; border-color: #e6d7bb; box-shadow: 0 4px 12px rgba(24,53,88,.06); }
.dropzone { cursor: default; padding: 28px 18px; }
.dropzone > span:not(.upload-icon) { max-width: 440px; }
.source-actions { width: 100%; max-width: 460px; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 20px; }
.source-button { min-height: 48px; flex: 1 1 190px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 10px 16px; border: 1px solid #becbd8; border-radius: 10px; background: #fff; color: #173757; font: inherit; font-size: 13px; font-weight: 800; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease; }
.source-button:hover { transform: translateY(-2px); box-shadow: 0 6px 15px rgba(18,49,82,.14); }
.source-button:focus-visible { outline: 3px solid #caa35e; outline-offset: 3px; }
.source-button span[aria-hidden="true"] { font-size: 20px; line-height: 1; }
.camera-button { color: #fff; background: #153963; border-color: #153963; }
.camera-button:hover { background: #235781; }
.dropzone .drag-hint { margin-top: 10px; font-size: 12px !important; }
body[data-theme="premium"][data-mode="dark"] .source-button.upload-button { color: #ebf2f9; border-color: #52647a; background: #182a42; }

.camera-dialog { width: min(600px, calc(100vw - 28px)); max-height: min(92vh, 850px); padding: 24px; border: 1px solid #dce4ed; border-radius: 18px; color: #10243f; background: #fff; box-shadow: 0 28px 80px rgba(5,21,39,.28); }
.camera-dialog::backdrop { background: rgba(5,20,37,.72); backdrop-filter: blur(4px); }
.camera-heading { display: flex; justify-content: space-between; align-items: start; gap: 14px; margin-bottom: 16px; }
.camera-heading .eyebrow { margin-bottom: 5px; }
.camera-heading h2 { font-size: 24px; font-family: Georgia, "Times New Roman", serif; }
.camera-heading .dialog-close { position: static; flex: 0 0 auto; }
.camera-stage { position: relative; width: 100%; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 13px; background: #10243f; }
.camera-stage video { display: block; width: 100%; height: 100%; object-fit: contain; }
.camera-guide { position: absolute; inset: 8%; border: 2px solid rgba(255,255,255,.7); border-radius: 12px; pointer-events: none; }
.camera-guide::before, .camera-guide::after { content: ""; position: absolute; top: 16%; bottom: 16%; width: 2px; background: rgba(255,255,255,.24); }
.camera-guide::before { left: 32%; }.camera-guide::after { right: 32%; }
.camera-guide span { position: absolute; width: 33%; height: 65%; left: 33.5%; top: 13%; border: 1px dashed rgba(255,255,255,.75); border-radius: 50%; }
.camera-status { min-height: 24px; margin: 13px 0; color: #526377; font-size: 13px; text-align: center; }
.camera-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.camera-actions .primary-button { width: auto; min-width: 210px; }
.camera-actions .source-button { flex: 0 1 auto; }
body[data-theme="premium"][data-mode="dark"] .camera-dialog { color: #f6f1e9; background: #101e32; border-color: #40536d; }
body[data-theme="premium"][data-mode="dark"] .camera-status { color: #bdc9d5; }
@media (max-width: 760px) {
  .hero-flag { margin-inline: auto; }
  .source-actions { flex-direction: column; }
  .source-button { flex-basis: auto; width: 100%; }
  .camera-dialog { padding: 15px; }
  .camera-stage { aspect-ratio: 3 / 4; }
}

/* Live camera and explicit crop controls. */
.crop-button { width: 100%; min-height: 42px; padding: 9px 14px; border: 1px solid #bca174; border-radius: 9px; color: #284869; background: #fffaf1; font: inherit; font-size: 13px; font-weight: 800; cursor: pointer; }
.crop-button:hover { background: #f5ead7; }
.crop-button:focus-visible, .camera-facing button:focus-visible { outline: 3px solid #caa35e; outline-offset: 2px; }
.camera-controls { display: grid; gap: 13px; margin-top: 14px; }
.camera-facing { display: flex; gap: 7px; }
.camera-facing button { flex: 1; min-height: 40px; border: 1px solid #cdd8e3; border-radius: 9px; color: #425875; background: #f4f7fb; font: inherit; font-size: 12px; font-weight: 800; cursor: pointer; }
.camera-facing button[aria-pressed="true"] { color: #fff; background: #153963; border-color: #153963; }
.camera-zoom { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 11px; color: #40566f; font-size: 12px; font-weight: 800; }
.camera-zoom input { width: 100%; min-width: 70px; accent-color: #153963; }
.camera-zoom output { min-width: 32px; text-align: right; }
.camera-stage video { transform-origin: center; }
body[data-theme="premium"][data-mode="dark"] .crop-button { color: #e7ca93; background: #192a40; border-color: #8c7655; }
body[data-theme="premium"][data-mode="dark"] .camera-facing button { color: #d9e1ec; background: #1b2b42; border-color: #52647a; }
body[data-theme="premium"][data-mode="dark"] .camera-facing button[aria-pressed="true"] { color: #142338; background: #e1bd82; border-color: #e1bd82; }
body[data-theme="premium"][data-mode="dark"] .camera-zoom { color: #d9e1ec; }
@media (max-width: 450px) { .camera-zoom { grid-template-columns: 1fr auto; } .camera-zoom input { grid-column: 1 / -1; grid-row: 2; } }

/* Readable at phone size and in the narrow desktop side panel. */
body[data-theme="premium"][data-mode="light"] { --muted: #4d6072; }
body[data-theme="premium"][data-mode="light"] .hero-copy { color: #42576c; font-weight: 550; }
body[data-theme="premium"] .benefit-strip strong { font-size: 16px; font-weight: 800; line-height: 1.3; }
body[data-theme="premium"] .benefit-strip small { font-size: 14px; font-weight: 650; line-height: 1.4; }
body[data-theme="premium"][data-mode="light"] .benefit-strip small { color: #4c6175; }
.hero-flag { font-size: 13px; }
.step { font-size: 13px; }
h2 { font-size: 20px; }
.dropzone strong { font-size: 19px; }
.dropzone > span:not(.upload-icon) { font-size: 16px; font-weight: 560; }
.dropzone small, .dropzone .drag-hint { font-size: 14px !important; font-weight: 600; }
.source-button, .crop-button { min-height: 52px; font-size: 16px; }
.controls label:not(.toggle-row) { font-size: 15px; }
.controls output { font-size: 14px; }
.toggle-row strong { font-size: 15px; }
.toggle-row small, .micro-warning { font-size: 14px; line-height: 1.5; }
.visual-confirmations legend { font-size: 14px; }
.confirm-chip { min-height: 47px; font-size: 14px; line-height: 1.35; }
.access-card span, .access-card > #accessBadge { font-size: 13px; }
.access-card strong { font-size: 15px; }
.empty-results p { font-size: 15px; }
.score-dial small { font-size: 10px; }
.score-copy > span { font-size: 12px; }
.score-copy > strong { font-size: 18px; }
.score-copy p { font-size: 14px; line-height: 1.45; }
.decision-card strong { font-size: 15px; }
.decision-card p { font-size: 14px; line-height: 1.5; }
.checklist li { min-height: 51px; font-size: 14px; font-weight: 650; }
.checklist em { font-size: 14px; line-height: 1.35; }
.primary-button { min-height: 53px; font-size: 16px; }
.file-meta { font-size: 14px; line-height: 1.45; }
.official-note h2 { font-size: 17px; }
.official-note p, .official-note a { font-size: 14px; line-height: 1.5; }
footer { font-size: 14px; line-height: 1.5; }
.camera-status, .camera-facing button, .camera-zoom { font-size: 14px; }

@media (max-width: 760px) {
  body[data-theme="premium"] .editor-panel, body[data-theme="premium"] .results-panel { padding: 20px; }
  body[data-theme="premium"] .benefit-strip > div { min-height: 82px; }
  .checklist li { grid-template-columns: 25px minmax(0, 1fr); column-gap: 10px; row-gap: 2px; padding: 9px 0; }
  .checklist em { grid-column: 2; text-align: left; }
  .access-card { flex-wrap: wrap; }
  .access-card > #accessBadge { white-space: normal; }
}

@media (max-width: 430px) {
  .confirmation-chips { grid-template-columns: 1fr; }
  .confirm-chip { justify-content: flex-start; padding-inline: 12px; }
  .score-card { grid-template-columns: 78px minmax(0, 1fr); gap: 12px; padding: 15px; }
}

/* Larger typography throughout the workflow below “Préparer ma photo”. */
body[data-theme="premium"][data-mode="light"] { --muted: #40576d; }
body[data-theme="premium"][data-mode="light"] .benefit-strip small { color: #40576d; }
body[data-theme="premium"] .benefit-strip strong { font-size: 18px; font-weight: 800; line-height: 1.3; }
body[data-theme="premium"] .benefit-strip small { font-size: 16px; font-weight: 650; line-height: 1.4; }
body[data-theme="premium"] .panel-heading h2 { font-size: 22px; font-weight: 800; line-height: 1.3; }
.dropzone strong { font-size: 21px; line-height: 1.3; }
.dropzone > span:not(.upload-icon) { font-size: 17px; font-weight: 650; line-height: 1.5; }
.dropzone small, .dropzone .drag-hint { font-size: 16px !important; font-weight: 650; line-height: 1.5; }
.source-button, .crop-button { min-height: 54px; font-size: 17px; }
.controls label:not(.toggle-row), .controls output, .toggle-row small, .micro-warning, .visual-confirmations legend, .confirm-chip { font-size: 16px; }
.toggle-row strong, .access-card strong, .decision-card strong { font-size: 17px; }
.access-card span, .access-card > #accessBadge { font-size: 14px; }
.empty-results p { max-width: 280px; font-size: 17px; line-height: 1.5; }
.score-copy > span { font-size: 14px; }
.score-copy > strong { font-size: 19px; }
.score-copy p, .decision-card p { font-size: 16px; line-height: 1.5; }
.checklist li { min-height: 53px; font-size: 16px; font-weight: 650; }
.checklist em, .file-meta, footer { font-size: 15px; line-height: 1.5; }
.primary-button { min-height: 54px; font-size: 17px; }
.official-note h2 { font-size: 19px; }
.official-note p, .official-note a { font-size: 16px; line-height: 1.5; }
.camera-status, .camera-facing button, .camera-zoom { font-size: 16px; }

/* Owner and employee workspace. */
body[data-theme="premium"] main.team-shell { max-width: 1080px; padding: 32px 24px 80px; }
.team-hero { padding: 32px 0 24px; }
.team-kicker, .team-section-label { color: #9c7339; font-size: 13px; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.team-hero h1 { max-width: 760px; margin: 16px 0; font-size: clamp(38px, 5vw, 62px); line-height: 1.06; }
.team-hero > p { max-width: 740px; margin: 0; color: #4d6072; font-size: 18px; font-weight: 580; line-height: 1.6; }
.team-points { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.team-points span { padding: 9px 13px; border: 1px solid #dbe4ec; border-radius: 999px; color: #244568; background: #fff; font-size: 14px; font-weight: 750; }
.team-status { min-height: 24px; margin: 0 0 12px; color: #17724f; font-size: 16px; font-weight: 700; }
.team-status.is-error { color: #a53636; }
.team-panel { margin-bottom: 20px; padding: 28px; background: #fff; }
.team-panel h2 { margin: 10px 0; font-size: 26px; }
.team-panel > p, .team-heading p { color: #4d6072; font-size: 16px; line-height: 1.55; }
.team-form { max-width: 570px; display: grid; gap: 18px; margin-top: 24px; }
.team-form label, .team-create-form label { display: grid; gap: 7px; color: #244568; font-size: 16px; font-weight: 700; }
.team-form input, .team-create-form input { width: 100%; min-height: 49px; padding: 10px 13px; border: 1px solid #becbd8; border-radius: 10px; color: #10243f; background: #fff; font-size: 16px; }
.team-form input:focus-visible, .team-create-form input:focus-visible { outline: 3px solid #d3ae71; outline-offset: 2px; }
.team-form .primary-button, .team-create-form .primary-button { width: fit-content; min-width: 220px; padding: 0 22px; }
.team-link { width: fit-content; padding: 0 20px; display: inline-flex; align-items: center; text-decoration: none; }
.team-account-bar, .team-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.team-account-bar p { margin: 0; color: #52677c; font-size: 16px; }
.team-account-actions { margin-top: 20px; }
.team-unlimited { display: flex; gap: 14px; align-items: center; margin-top: 24px; padding: 18px; border: 1px solid #a5d6bd; border-radius: 14px; color: #155c40; background: #eaf8f0; }
.team-unlimited > span { width: 38px; height: 38px; flex: 0 0 38px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: #18845a; font-weight: 900; }
.team-unlimited strong { font-size: 18px; }
.team-unlimited p { margin: 3px 0 0; font-size: 16px; }
.team-warning { margin-top: 22px; padding: 16px; border-radius: 12px; color: #80520f; background: #fff2db; font-size: 16px; font-weight: 700; }
.team-password { max-width: 590px; margin-top: 25px; padding-top: 16px; border-top: 1px solid #dbe4ec; }
.team-password summary { color: #244568; cursor: pointer; font-size: 16px; font-weight: 800; }
.team-password .secondary-button { width: fit-content; }
.team-count { margin-top: 8px; padding: 8px 12px; border-radius: 999px; background: #edf3f8; color: #244568; font-size: 14px; font-weight: 800; white-space: nowrap; }
.team-create-form { display: grid; grid-template-columns: 1fr 1fr auto; align-items: end; gap: 12px; margin: 24px 0; }
.team-create-form .primary-button { min-width: 170px; }
.team-credentials { display: grid; gap: 10px; margin: 22px 0; padding: 19px; border: 1px solid #d8bd8d; border-radius: 14px; background: #fff9ee; }
.team-credentials strong { color: #795017; font-size: 17px; }
.team-credentials p { margin: 0; font-size: 16px; }
.team-credentials code { width: fit-content; max-width: 100%; overflow-wrap: anywhere; padding: 10px; border-radius: 8px; background: #fff; color: #10243f; font-size: 17px; }
.team-credentials .secondary-button { width: fit-content; }
.team-credentials small { color: #6b5b43; font-size: 14px; }
.team-table-wrap { overflow-x: auto; }
.team-table { width: 100%; border-collapse: collapse; text-align: left; }
.team-table th, .team-table td { padding: 15px 12px; border-bottom: 1px solid #e4eaf0; vertical-align: middle; font-size: 15px; }
.team-table th { color: #52677c; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; }
.team-table td strong, .team-table td small { display: block; }
.team-table td strong { color: #173757; font-size: 16px; }
.team-table td small { margin-top: 3px; color: #52677c; font-size: 14px; }
.team-state { padding: 6px 9px; border-radius: 999px; display: inline-block; font-size: 13px; font-weight: 800; white-space: nowrap; }
.team-state.is-active { color: #176647; background: #e6f6ed; }
.team-state.is-inactive { color: #8d3838; background: #fceaea; }
.team-row-actions { min-width: 260px; white-space: nowrap; }
.team-row-actions .secondary-button { min-height: 38px; margin: 2px 6px 2px 0; padding: 0 11px; font-size: 13px; }
.team-footer-link { color: #244568; font-size: 15px; font-weight: 800; text-decoration: none; }
.team-footer-link:hover { text-decoration: underline; }
body[data-theme="premium"][data-mode="dark"] .team-hero > p, body[data-theme="premium"][data-mode="dark"] .team-panel > p, body[data-theme="premium"][data-mode="dark"] .team-heading p { color: #c4d0df; }
body[data-theme="premium"][data-mode="dark"] .team-panel { color: #ecf1f7; background: #14263d; border: 1px solid #39506b; }
body[data-theme="premium"][data-mode="dark"] .team-points span, body[data-theme="premium"][data-mode="dark"] .team-count { color: #e8d1ab; background: #1d314b; border-color: #48607a; }
body[data-theme="premium"][data-mode="dark"] .team-form label, body[data-theme="premium"][data-mode="dark"] .team-create-form label, body[data-theme="premium"][data-mode="dark"] .team-password summary, body[data-theme="premium"][data-mode="dark"] .team-table td strong { color: #ecf1f7; }
body[data-theme="premium"][data-mode="dark"] .team-account-bar p, body[data-theme="premium"][data-mode="dark"] .team-table td small, body[data-theme="premium"][data-mode="dark"] .team-table th { color: #c4d0df; }
body[data-theme="premium"][data-mode="dark"] .team-table th, body[data-theme="premium"][data-mode="dark"] .team-table td, body[data-theme="premium"][data-mode="dark"] .team-password { border-color: #39506b; }
@media (max-width: 760px) {
  body[data-theme="premium"] main.team-shell { padding: 20px 16px 60px; }
  .team-panel { padding: 20px; }
  .team-create-form { grid-template-columns: 1fr; }
  .team-create-form .primary-button { width: 100%; }
  .team-account-bar, .team-heading { flex-wrap: wrap; }
  .team-hero h1 { font-size: 38px; }
  .team-hero > p { font-size: 17px; }
}

/* Slightly larger introductory copy and action, on desktop and phone. */
body[data-theme="premium"] .hero-flag { font-size: 14px; }
body[data-theme="premium"] .hero .eyebrow { font-size: 14px; line-height: 1.5; }
body[data-theme="premium"] .hero-copy { font-size: 19px; line-height: 1.55; }
body[data-theme="premium"][data-mode="light"] .hero-copy { font-weight: 600; }
body[data-theme="premium"] .hero .spec-row span { font-size: 14px; padding: 9px 14px; }
body[data-theme="premium"] .hero-cta { min-height: 54px; padding-inline: 22px; font-size: 16px; }
body[data-theme="premium"] .scan-status { font-size: 12px; }
@media (max-width: 760px) {
  body[data-theme="premium"] .hero .eyebrow { font-size: 13px; }
  body[data-theme="premium"] .hero-copy { font-size: 17px; }
}
