/* ============================================================
   Aménagement Maison IA — Thème
   Chargé après app.css : app.css porte la structure, ce fichier l'apparence
   (palette neutre, composants arrondis, onglets segmentés, cartes image d'abord).
   ============================================================ */

/* ── Palette ─────────────────────────────────────────────── */
:root {
  --c-bg:        #f7f2eb;
  --c-surface:   #ffffff;
  --c-surface2:  #f1ebe2;
  --c-border:    #e8dfd3;
  --c-border2:   #d6c9b8;
  --c-text:      #2e2a27;
  --c-text2:     #6a6058;
  --c-text3:     #9a8f85;
  --c-primary:   #c8643b;
  --c-primary-h: #b0532d;
  --c-primary-l: #f8e7dd;
  --c-primary-t: #a94e28;
  --c-secondary: #7d9677;
  --c-sage-l:    #e6ede2;
  --font-display: "Fraunces", Georgia, serif;
  --c-input:     #ffffff;
  --radius-sm:   10px;
  --radius:      14px;
  --radius-lg:   20px;
  --shadow-sm:   0 1px 2px rgba(60,40,25,.05);
  --shadow:      0 10px 30px -8px rgba(60,40,25,.16);
  --shadow-lg:   0 28px 70px -16px rgba(60,40,25,.35);
  --ring:        0 0 0 3px color-mix(in srgb, var(--c-primary) 28%, transparent);
  --header-h:    58px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --c-bg:       #151210;
    --c-surface:  #1e1a17;
    --c-surface2: #27221e;
    --c-border:   #342d27;
    --c-border2:  #4a4038;
    --c-text:     #f3ede6;
    --c-text2:    #b5a99d;
    --c-text3:    #857a70;
    --c-primary:  #d4744b;
    --c-primary-h:#c0653e;
    --c-primary-l:#3a2519;
    --c-primary-t:#eba483;
    --c-sage-l:   #263024;
    --c-input:    #120f0d;
    --shadow-sm:  0 1px 2px rgba(0,0,0,.4);
    --shadow:     0 12px 32px -8px rgba(0,0,0,.6);
    --shadow-lg:  0 28px 70px -16px rgba(0,0,0,.8);
  }
}
:root[data-theme="dark"] {
  --c-bg:       #151210;
  --c-surface:  #1e1a17;
  --c-surface2: #27221e;
  --c-border:   #342d27;
  --c-border2:  #4a4038;
  --c-text:     #f3ede6;
  --c-text2:    #b5a99d;
  --c-text3:    #857a70;
  --c-primary:  #d4744b;
  --c-primary-h:#c0653e;
  --c-primary-l:#3a2519;
  --c-primary-t:#eba483;
    --c-sage-l:   #263024;
  --c-input:    #120f0d;
  --shadow-sm:  0 1px 2px rgba(0,0,0,.4);
  --shadow:     0 12px 32px -8px rgba(0,0,0,.6);
  --shadow-lg:  0 28px 70px -16px rgba(0,0,0,.8);
}

/* ── Base ────────────────────────────────────────────────── */
html { font-size: 15px; }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; line-height: 1.55; }
h1, h2, h3, h4 { letter-spacing: -.02em; line-height: 1.2; }
::selection { background: color-mix(in srgb, var(--c-primary) 30%, transparent); }
* { scrollbar-width: thin; scrollbar-color: var(--c-border2) transparent; }
a { color: var(--c-primary-t); }

.app-main { max-width: 1240px; padding-top: 2rem; padding-bottom: 4rem; }

/* ── En-tête ─────────────────────────────────────────────── */
.app-header { background: color-mix(in srgb, var(--c-bg) 78%, transparent); backdrop-filter: saturate(1.5) blur(14px); -webkit-backdrop-filter: saturate(1.5) blur(14px); border-bottom: 1px solid var(--c-border); box-shadow: none; gap: 1.5rem; }
.header-brand { font-weight: 700; letter-spacing: -.02em; cursor: pointer; gap: .6rem; }
.brand-icon { width: 32px; height: 32px; display: grid; place-items: center; font-size: 1.05rem; border-radius: 10px; background: var(--c-primary-l); }
.brand-name strong { color: var(--c-primary-t); }
.nav-link { border-radius: 999px; padding: .4rem .9rem; font-weight: 500; color: var(--c-text2); }
.nav-link:hover, .nav-link.active { background: var(--c-surface2); color: var(--c-text); }
.nav-link.active { font-weight: 600; }
.user-name { font-weight: 600; }

/* ── Boutons ─────────────────────────────────────────────── */
.btn { min-height: 38px; padding: .4rem 1rem; border-radius: 10px; border-width: 1px; font-weight: 600; line-height: 1.2; gap: .45rem; }
.btn-sm { min-height: 32px; padding: .3rem .75rem; border-radius: 9px; }
.btn-xs { min-height: 28px; padding: .2rem .6rem; border-radius: 8px; }
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn-primary { background: var(--c-primary); box-shadow: inset 0 1px 0 rgba(255,255,255,.16), 0 1px 2px rgba(0,0,0,.18); }
.btn-primary:hover { background: var(--c-primary-h); }
.btn-ghost { background: var(--c-surface); border-color: var(--c-border); color: var(--c-text); box-shadow: var(--shadow-sm); }
.btn-ghost:hover, .btn-ghost.active { background: var(--c-surface2); border-color: var(--c-border2); }
.btn-secondary { background: var(--c-primary-l); color: var(--c-primary-t); }
.btn-secondary:hover { filter: brightness(.97); }
.btn-danger:hover { filter: brightness(.92); }
@media (pointer: coarse) {
  .btn { min-height: 42px; }
  .btn-sm, .btn-xs { min-height: 36px; }
}

/* ── Formulaires ─────────────────────────────────────────── */
input, select, textarea { border-width: 1px; border-radius: 10px; padding: .6rem .8rem; }
select {
  appearance: none; -webkit-appearance: none; padding-right: 2.2rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%238a8a93' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 8 5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .65rem center; background-size: 1rem;
}
.fp-floor-select, .plan-select { padding-right: 2.1rem; }
.bw-status { padding-right: 1.5rem; background-position: right .3rem center; background-size: .85rem; }
.form-group { gap: .4rem; }
.form-group label { font-size: .8rem; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--c-text2); }
.checkbox-inline input, .compare-checkbox input { width: auto; }

/* ── Titres de page, fil d'Ariane ────────────────────────── */
.page-header h1, .house-title-block h1, .room-header h1, .shopping-header h1 { font-size: 1.85rem; font-weight: 700; }
.page-header { margin-bottom: 1.75rem; gap: 1rem; }
.page-subtitle { color: var(--c-text2); max-width: 70ch; }
.house-breadcrumb { font-size: .82rem; margin-bottom: 1.1rem; gap: .4rem; }
.house-breadcrumb a { color: var(--c-text3); }
.house-breadcrumb > span:last-child { color: var(--c-text); font-weight: 500; }
.section-header h2 { font-size: 1.2rem; font-weight: 700; }
.section-hint { color: var(--c-text2); font-size: .85rem; margin-top: .2rem; }

/* ── Onglets segmentés (pièce, travaux, inspiration) ─────── */
.tabs, .shopping-tabs {
  display: flex; width: fit-content; max-width: 100%; gap: .2rem; padding: .3rem; margin-bottom: 1.75rem;
  background: var(--c-surface2); border: 1px solid var(--c-border); border-radius: 14px;
  overflow-x: auto; scrollbar-width: none;
}
.tabs::-webkit-scrollbar, .shopping-tabs::-webkit-scrollbar { display: none; }
.tab, .shopping-tab {
  display: inline-flex; align-items: center; gap: .35rem; flex-shrink: 0; margin: 0;
  padding: .5rem 1rem; border: 0; border-radius: 10px; background: none;
  font-size: .875rem; font-weight: 600; color: var(--c-text2); white-space: nowrap;
  transition: background var(--transition), color var(--transition);
}
.tab:hover, .shopping-tab:hover { color: var(--c-text); }
.tab.active, .shopping-tab.active { background: var(--c-surface); color: var(--c-text); border: 0; box-shadow: var(--shadow-sm), 0 0 0 1px var(--c-border); }
.tab .count-badge, .shopping-tab .count-badge { margin-left: 0; background: var(--c-border); color: var(--c-text2); }
.tab.active .count-badge { background: var(--c-primary-l); color: var(--c-primary-t); }

.floor-tabs { gap: .4rem; }
.floor-tab { border-width: 1px; padding: .45rem .95rem; font-weight: 600; }

/* ── Cartes ──────────────────────────────────────────────── */
.house-card, .floorplan-container, .room-sidebar, .budget-card, .inv-card, .insp-card, .cmp-need, .ps-panel, .ps-card, .insp-analysis, .auth-card {
  border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
}
.house-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--c-border2); }
.house-thumb { height: 180px; }
.house-thumb-placeholder { background: linear-gradient(135deg, var(--c-primary-l), var(--c-surface2)); }
.house-info { padding: 1.1rem 1.25rem 1.25rem; }
.house-photo-field { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.house-photo-preview { flex-shrink: 0; width: 180px; aspect-ratio: 3 / 2; display: grid; place-items: center; overflow: hidden; border: 1px solid var(--c-border); border-radius: var(--radius); background: linear-gradient(135deg, var(--c-primary-l), var(--c-surface2)); }
.house-photo-preview img { width: 100%; height: 100%; object-fit: cover; }
.house-photo-actions { display: flex; flex-direction: column; align-items: flex-start; gap: .5rem; min-width: 0; flex: 1; }
.house-name { font-size: 1.15rem; font-weight: 700; }
.room-sidebar { padding: 1.1rem; }
.room-card-sidebar { border: 1px solid transparent; border-radius: 12px; }
.room-card-sidebar:hover { border-color: var(--c-border); }
.room-card-icon { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; background: var(--c-surface2); font-size: 1.1rem; }
.validated-banner { border-radius: var(--radius); border-color: color-mix(in srgb, var(--c-success) 45%, transparent); }
.budget-label { text-transform: none; letter-spacing: 0; font-size: .82rem; }
.budget-amount { font-size: 1.6rem; letter-spacing: -.02em; }

/* États vides : un cadre discret plutôt qu'un texte perdu dans la page */
.empty-state { grid-column: 1 / -1; max-width: 520px; padding: 2.75rem 1.5rem; background: var(--c-surface); border: 1px dashed var(--c-border2); border-radius: var(--radius-lg); }
.empty-state .btn + .btn { margin-left: .4rem; }
.empty-icon { width: 64px; height: 64px; display: grid; place-items: center; margin: 0 auto 1rem; font-size: 1.9rem; border-radius: 18px; background: var(--c-primary-l); }
.empty-state h3 { font-weight: 700; }
.upload-zone { background: var(--c-surface); border-width: 1.5px; border-radius: var(--radius-lg); }

/* Badges */
.badge { padding: .2rem .6rem; font-size: .72rem; }
.count-badge { font-weight: 600; font-size: .72rem; padding: .12rem .5rem; }
.tag { border-radius: 999px; }

/* Tableaux */
.shopping-table th, .fit-table th { background: none; border-bottom: 1px solid var(--c-border); font-size: .72rem; }
.shopping-table td { border-bottom-color: var(--c-border); }

/* ── Pièce ───────────────────────────────────────────────── */
.room-header { align-items: center; gap: 1rem; margin-bottom: 1.5rem; }
.room-type-badge { flex-shrink: 0; width: 60px; height: 60px; display: grid; place-items: center; font-size: 1.8rem; border-radius: 18px; background: var(--c-primary-l); border: 0; }
.room-meta { color: var(--c-text2); }
.room-header-actions { flex-wrap: wrap; justify-content: flex-end; gap: .5rem; }
.page-room .room-section { margin-bottom: 2rem; }
.page-room .section-header { margin-bottom: 1.25rem; align-items: flex-start; }

/* Propositions : l'image d'abord, les commandes par-dessus ou dessous */
.proposals-grid { grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 1.25rem; }
.proposal-card { display: flex; flex-direction: column; background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.proposal-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--c-border2); }
.proposal-card.proposal-validated { background: var(--c-surface); border-color: var(--c-success); box-shadow: 0 0 0 1px var(--c-success), var(--shadow-sm); }
.proposal-card.proposal-favorite:not(.proposal-validated) { border-color: color-mix(in srgb, var(--c-warning) 60%, var(--c-border)); }
.proposal-thumb { aspect-ratio: 3 / 2; }
.proposal-card-header { position: absolute; inset: 0 0 auto 0; z-index: 1; display: flex; align-items: flex-start; justify-content: space-between; gap: .5rem; padding: .65rem; border: 0; pointer-events: none; }
.proposal-card-header > * { pointer-events: auto; }
.compare-checkbox { padding: .25rem .65rem .25rem .5rem; border-radius: 999px; background: rgba(15,15,20,.55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); color: #fff; font-weight: 600; opacity: 0; transition: opacity var(--transition); }
.proposal-card:hover .compare-checkbox, .compare-checkbox:has(input:checked), .compare-checkbox:focus-within { opacity: 1; }
@media (hover: none) { .compare-checkbox { opacity: 1; } }
.proposal-badges .badge { box-shadow: 0 1px 4px rgba(0,0,0,.25); }
.proposal-style-badge { bottom: .65rem; left: .65rem; padding: .22rem .65rem; background: rgba(15,15,20,.55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); font-weight: 600; }
.proposal-card-body { display: flex; flex-direction: column; flex: 1; padding: 1rem 1.1rem 1.1rem; }
.proposal-card-body h4 { font-size: 1rem; font-weight: 700; }
.proposal-date { margin-bottom: .85rem; }
.proposal-actions { margin-top: auto; }
.proposal-pending { border-style: dashed; box-shadow: none; }
.proposal-pending:hover { transform: none; box-shadow: none; }

/* Photos d'origine */
.photos-grid { grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr)); gap: 1rem; }
.photo-thumb { border-radius: var(--radius); border: 1px solid var(--c-border); box-shadow: var(--shadow-sm); }
.photo-cover { border-color: transparent; }
.cover-label { top: .55rem; left: .55rem; padding: .18rem .55rem; letter-spacing: .03em; }
.photo-btn { border-radius: 8px; padding: .3rem .45rem; }

/* Plan & dimensions : deux cartes côte à côte */
.plan-layout { grid-template-columns: 260px 1fr; gap: 1.25rem; align-items: stretch; }
.plan-dims, #room-plan { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius-lg); padding: 1.25rem; box-shadow: var(--shadow-sm); }
.plan-dims { gap: .9rem; align-self: start; }
.plan-dims .btn { justify-content: center; margin-top: .2rem; }
.plan-room { fill: var(--c-bg); }

/* ── Plan d'étage ────────────────────────────────────────── */
.fp-toolbar { padding: .7rem 1rem; background: var(--c-surface); }
.floorplan-svg { background: var(--c-surface); }
#grid path { stroke: var(--c-border); }
.fp-head-icon { background: var(--c-primary-l); color: var(--c-primary-t); border-radius: 12px; }
.fp-head-title h2 { font-size: 1.05rem; font-weight: 700; }
.fp-head-title p { font-size: .78rem; color: var(--c-text3); }
.btn-outline { background: transparent; border: 1.5px solid var(--c-primary); color: var(--c-primary-t); }
.btn-outline:hover { background: var(--c-primary-l); }
.badge-red { background: var(--c-danger-l); color: var(--c-danger-t); }
.fp-view-switch { background: var(--c-surface2); border: 1px solid var(--c-border); border-radius: 999px; padding: 2px; }
.fp-view-switch button { border: 0; background: none; border-radius: 999px; color: var(--c-text2); transition: background var(--transition), color var(--transition); }
.fp-view-switch button:hover { color: var(--c-primary-t); }
.fp-view-switch button.active { background: var(--c-primary); color: #fff; }
.fp-layers-panel { background: var(--c-surface); }
.fp-layers-title { font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--c-text3); padding: 0 .5rem .2rem; }
.fp-layer { border: 1px solid var(--c-border); border-radius: var(--radius); background: var(--c-surface2); color: var(--c-text); transition: background var(--transition), border-color var(--transition); }
.fp-layer:hover { border-color: var(--c-border2); }
.fp-layer.active { background: var(--c-primary-l); border-color: var(--c-primary); }
.fp-layer-chev { color: var(--c-text3); font-size: 1.1rem; }
.fp-layer.off { opacity: .5; }
.fp-layer-name small, .fp-layers-legend { color: var(--c-text3); }
.fp-layer-tag { font-size: .62rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.fp-layer-eye { border-radius: var(--radius-sm); opacity: .75; }
.fp-layer-eye:hover { opacity: 1; background: var(--c-border); }
/* Pile d'étages : dalle teintée, murs à la couleur de l'étage (--fc), étage actif mis en lumière */
.fp-link { stroke: var(--c-border2); }
.fp-plate { opacity: .72; transition: opacity .15s, filter .15s; }
.fp-plate:hover { opacity: .92; }
.fp-plate.active { opacity: 1; filter: drop-shadow(0 0 14px color-mix(in srgb, var(--fc) 55%, transparent)); }
.tint { fill: color-mix(in srgb, var(--fc) 34%, #fff); }
.fp-side { fill: color-mix(in srgb, var(--fc) 62%, #000); stroke: color-mix(in srgb, var(--fc) 62%, #000); stroke-width: 5px; vector-effect: non-scaling-stroke; }
.fp-plate-empty { fill: color-mix(in srgb, var(--fc) 10%, transparent); stroke: var(--fc); stroke-width: 2px; stroke-dasharray: 6 5; vector-effect: non-scaling-stroke; }
.fp-stack-room > polygon { fill-opacity: 1; stroke: var(--fc); stroke-width: 5px; vector-effect: non-scaling-stroke; transition: fill-opacity .1s; }
.fp-stack-room:hover > polygon { fill-opacity: .85; }
.fp-stack-room.sel > polygon { stroke: var(--c-text); }
.fp-stack-label { fill: #1e293b; font-family: system-ui, sans-serif; pointer-events: none; }
.fp-stack-label tspan { fill: #475569; }

/* Aperçu de la pièce sélectionnée */
.hp-card { border: 1px solid var(--c-border); border-radius: var(--radius); background: var(--c-surface2); }
.hp-icon { background: var(--c-primary-l); border-radius: 12px; font-size: 1.4rem; }
.hp-head strong { font-size: 1.05rem; }
.hp-badge { background: var(--c-primary-l); color: var(--c-primary-t); border-radius: 6px; font-size: .7rem; font-weight: 600; padding: .12rem .5rem; }
.hp-row { font-size: .85rem; color: var(--c-text); }
.hp-row small { color: var(--c-text3); font-size: .78rem; }

/* Tuiles de synthèse et tâches à venir */
.hs-card, .house-todo { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.hs-link:hover, .ht-row:hover { border-color: var(--c-border2); background: var(--c-surface2); }
.hs-icon { border-radius: 50%; font-size: 1.3rem; }
.hs-violet { background: color-mix(in srgb, #8b7cf6 28%, transparent); }
.hs-amber  { background: color-mix(in srgb, #f5a742 28%, transparent); }
.hs-green  { background: color-mix(in srgb, #34d399 26%, transparent); }
.hs-blue   { background: color-mix(in srgb, #4f9cf9 28%, transparent); }
.hs-label { font-size: .82rem; color: var(--c-text2); }
.hs-body strong { font-size: 1.5rem; font-weight: 700; line-height: 1.2; }
.hs-body small, .ht-main small, .ht-date { font-size: .75rem; color: var(--c-text3); }
.hs-arrow { color: var(--c-text3); font-size: 1.2rem; }
.ht-head h3 { font-size: 1rem; font-weight: 700; }
.ht-head a { font-size: .82rem; color: var(--c-primary-t); }
.ht-row { border-top: 1px solid var(--c-border); font-size: .85rem; }
.ht-icon { background: var(--c-surface2); border-radius: 50%; }
.hh-card { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius); transition: transform .15s, box-shadow .15s; }
.hh-card:hover { transform: translateY(-2px); border-color: var(--c-border2); box-shadow: var(--shadow); }
.hh-thumb { background: var(--c-surface2); }
.hh-tag { background: rgba(15, 23, 42, .6); color: #fff; border-radius: 999px; font-size: .7rem; }
.hh-body strong { font-size: .85rem; }
.hh-body small { font-size: .75rem; color: var(--c-text3); }
.hh-sub { font-size: .9rem; font-weight: 700; color: var(--c-text2); }
.hh-pic { border-radius: var(--radius-sm); }

/* ── Modales ─────────────────────────────────────────────── */
#modal-overlay { background: rgba(10,10,14,.55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.modal-box { border: 1px solid var(--c-border); border-radius: 22px; box-shadow: var(--shadow-lg); }
.modal-head { padding: 1.1rem 1.25rem 1.1rem 1.5rem; }
.modal-head h2 { font-size: 1.15rem; font-weight: 700; }
.modal-close { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; font-size: 1rem; transition: background var(--transition); }
.modal-close:hover { background: var(--c-surface2); color: var(--c-text); }
#modal-footer { background: color-mix(in srgb, var(--c-surface2) 55%, var(--c-surface)); }
.style-card-inner, .chip span { border-width: 1px; }
.style-card-inner { border-radius: 12px; }
@keyframes modal-pop { from { opacity: 0; transform: translateY(10px) scale(.985); } to { opacity: 1; transform: none; } }
@media (min-width: 601px) {
  #modal-overlay.active .modal-box { animation: modal-pop .18s ease-out; }
}

/* ── Notifications ───────────────────────────────────────── */
.toast { border-radius: 12px; font-weight: 500; padding: .75rem 1.1rem; }

/* ── Connexion ───────────────────────────────────────────── */
.auth-page { background: radial-gradient(900px 500px at 15% -10%, color-mix(in srgb, var(--c-primary) 22%, transparent), transparent 70%), radial-gradient(700px 500px at 100% 110%, color-mix(in srgb, var(--c-secondary) 18%, transparent), transparent 70%), var(--c-bg); }
.auth-card { border: 1px solid var(--c-border); box-shadow: var(--shadow); }
.brand-icon-lg { width: 72px; height: 72px; display: grid; place-items: center; margin: 0 auto .9rem; font-size: 2.2rem; border-radius: 22px; background: var(--c-primary-l); }

/* ── Recherche dans une image ────────────────────────────── */
.ps-stage { border-radius: var(--radius-lg); border: 1px solid var(--c-border); }
.ps-history-card { border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.ps-history-card img { border-radius: 10px; }
.ps-card:hover, .insp-card:hover, .inv-card:hover { border-color: var(--c-border2); }

/* ── Mobile ──────────────────────────────────────────────── */
@media (max-width: 768px) {
  .app-main { padding-top: 1.25rem; }
  .page-header h1, .house-title-block h1, .room-header h1, .shopping-header h1 { font-size: 1.45rem; }
  .room-header { align-items: flex-start; }
  .room-type-badge { width: 48px; height: 48px; font-size: 1.45rem; border-radius: 14px; }
  .room-header-actions { justify-content: flex-start; }
  .tabs, .shopping-tabs { width: 100%; margin-bottom: 1.25rem; }
  .tab, .shopping-tab { padding: .5rem .8rem; }
  .plan-layout { grid-template-columns: 1fr; }
  .plan-dims, #room-plan { padding: 1rem; }
  .compare-checkbox { opacity: 1; }
}
/* Une seule destination dans le menu : le logo y mène, la barre d'onglets du bas n'a plus lieu d'être */
@media (max-width: 600px) {
  .header-nav { display: none; }
  .app-main { padding-bottom: calc(2rem + env(safe-area-inset-bottom)); }
  #toasts { bottom: calc(1rem + env(safe-area-inset-bottom)); }
  .modal-box { border-radius: 22px 22px 0 0; border-width: 1px 0 0; }
}
.brand-img { padding: 0; background: none; object-fit: contain; }

/* ── DA « Japandi » : titres à empattement, illustrations assetforge ── */
h1, h2, .house-name, .budget-amount, .empty-state h3 { font-family: var(--font-display); font-weight: 600; letter-spacing: -.01em; }
.page-header h1, .house-title-block h1, .room-header h1, .shopping-header h1 { font-weight: 600; }
.brand-name strong, .auth-brand h1 span { color: var(--c-primary-t); }
.house-thumb-placeholder, .house-photo-preview { background: linear-gradient(135deg, var(--c-primary-l), var(--c-sage-l)); }
.btn-secondary { background: var(--c-sage-l); color: color-mix(in srgb, var(--c-secondary) 70%, var(--c-text)); }

/* Images de la DA (art()) : posées à la place des émojis, qui restent le repli */
img.art { display: block; width: 100%; height: 100%; object-fit: contain; }
.empty-icon:has(img.art) { width: 132px; height: 132px; background: none; border-radius: 0; margin-bottom: .5rem; }
.empty-state-sm .empty-icon:has(img.art) { width: 104px; height: 104px; }
.room-card-icon:has(img.art) { padding: 2px; background: var(--c-primary-l); }
.room-type-badge:has(img.art) { padding: 4px; }
.hp-icon:has(img.art) { padding: 3px; }

/* Accueil : bannière illustrée derrière le titre */
.dash-hero {
  position: relative; min-height: 240px; padding: 2rem 2.25rem; align-items: flex-end; overflow: hidden;
  border-radius: var(--radius-lg); border: 1px solid var(--c-border);
  background: linear-gradient(90deg, #f4ede3 0%, color-mix(in srgb, #f4ede3 85%, transparent) 40%, transparent 65%), var(--hero) right center / auto 118% no-repeat, #f4ede3;
}
.dash-hero h1 { font-size: 2.2rem; }
.dash-hero h1, .dash-hero .page-subtitle { color: #2e2a27; }

/* Connexion : illustration plein écran, carte posée à droite */
.auth-page.auth-art { justify-content: flex-end; padding: 1.5rem clamp(1rem, 6vw, 6rem); background: var(--auth-bg) left center / cover no-repeat, var(--c-bg); }
.auth-art .auth-card { background: color-mix(in srgb, var(--c-surface) 92%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
@media (max-width: 720px) {
  .dash-hero { min-height: 180px; padding: 1.25rem; background: linear-gradient(180deg, transparent 20%, var(--c-surface) 78%), var(--hero) center top / cover no-repeat, var(--c-surface); }
  .dash-hero h1 { font-size: 1.6rem; }
  .auth-page.auth-art { justify-content: center; background-position: 30% center; }
  .empty-icon:has(img.art) { width: 104px; height: 104px; }
}
