/* Portail Gérance — couleurs LuxInterventions par-dessus la base commune (ares/app.css) */
:root {
  --accent: #d9622b;
  --accent-soft: rgba(232, 114, 58, 0.12);
  --accent-text: #ffffff;
  --navy: #1b2e4b;
  /* fond orange pâle, avec une lueur de « lever de soleil » en haut (couleur du Portail) */
  --bg: #fdf3ea;
  --surface-2: #fbeadb;
  --border: #f0dcc8;
  --glow: radial-gradient(900px 420px at 85% -120px, rgba(232, 114, 58, 0.20), transparent 70%), radial-gradient(700px 360px at -10% -80px, rgba(251, 191, 36, 0.16), transparent 70%);
}
:root[data-theme='dark'] { --glow: none; }
body { background: var(--glow, none), var(--bg); background-attachment: fixed; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) { --accent: #f08a55; --accent-soft: rgba(240, 138, 85, 0.16); --accent-text: #111; --glow: none; }
}
.lock { background: var(--glow, none), radial-gradient(1200px 500px at 50% -10%, rgba(232, 114, 58, 0.14), transparent 70%), var(--bg); }
.lock-banner { display: block; width: 100%; max-width: 340px; height: auto; margin: -4px auto 6px; }
.lock-logo { width: 88px; height: 88px; border-radius: 22px; display: block; margin: -6px auto 4px; box-shadow: 0 6px 24px rgba(15, 27, 45, 0.25); }
.brand-mark { width: 36px; height: 36px; border-radius: 10px; flex: none; }
.navbtn { position: relative; }
.navbadge { position: absolute; top: 6px; left: calc(50% + 6px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--red-strong); color: #fff; font: 700 11px/18px var(--font); font-style: normal; text-align: center; }
@media (min-width: 960px) { .navbadge { position: static; margin-left: auto; } }
@media (max-width: 480px) { .hide-xs { display: none; } }

.big-cta {
  display: flex; align-items: center; gap: 14px; width: 100%;
  padding: 18px 20px; border: 0; border-radius: var(--radius-lg);
  background: var(--accent); color: var(--accent-text); text-align: left;
  font: inherit; cursor: pointer; box-shadow: 0 8px 24px rgba(217, 98, 43, 0.28);
}
.big-cta .ic { width: 30px; height: 30px; stroke-width: 2.2; }
.big-cta b { display: block; font-size: 17px; }
.big-cta small { display: block; opacity: 0.85; font-size: 13px; margin-top: 2px; }

.ticket-row .title { white-space: normal; }
.ticket-row.is-urgent { background: var(--red-soft); }
.urg-dot { width: 12px; height: 12px; border-radius: 50%; flex: none; }
.urg-dot.urg-urgent { background: #dc2626; box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.18); }
.urg-dot.urg-24h { background: #f59e0b; }
.urg-dot.urg-planifie { background: #16a34a; }
.meta .ic { width: 14px; height: 14px; vertical-align: -2px; margin-right: 2px; }

.urg-choices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
@media (max-width: 420px) { .urg-choices { grid-template-columns: 1fr; } }
.urg-choice { position: relative; }
.urg-choice input { position: absolute; opacity: 0; inset: 0; margin: 0; min-height: 0; cursor: pointer; }
.urg-choice span { display: block; padding: 12px; border: 2px solid var(--border); border-radius: 12px; background: var(--surface); font-size: 15px; }
.urg-choice small { display: block; color: var(--text-2); font-size: 12px; margin-top: 2px; }
.urg-choice input:checked + span { border-color: var(--accent); background: var(--accent-soft); }
.urg-choice.urg-urgent input:checked + span { border-color: #dc2626; background: rgba(220, 38, 38, 0.08); }
.urg-choice input:focus-visible + span { box-shadow: 0 0 0 3px var(--accent-soft); }

.ticket-head { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.stepper { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; margin: 0 0 14px; }
.stepper li { display: flex; flex-direction: column; gap: 6px; font-size: 11px; font-weight: 600; color: var(--text-3); }
.stepper i { height: 6px; border-radius: 3px; background: var(--surface-3); }
.stepper li.done i { background: var(--green); }
.stepper li.now i { background: var(--accent); }
.stepper li.now, .stepper li.done { color: var(--text); }
@media (max-width: 420px) { .stepper span { font-size: 10px; } }

.photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; margin-top: 10px; }
.photos a { display: block; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--surface-2); }
.photos img { width: 100%; height: 100%; object-fit: cover; display: block; }

.timeline { border-left: 2px solid var(--border); margin-left: 6px; padding-left: 14px; }
.tl { position: relative; padding: 0 0 14px; }
.tl::before { content: ''; position: absolute; left: -21px; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--surface-3); border: 2px solid var(--surface); }
.tl.status::before { background: var(--accent); }
.tl.create::before { background: var(--text-3); }
.tl.staff.comment::before { background: var(--navy); }
.tl-head { font-size: 13px; }
.tl-text { white-space: pre-wrap; background: var(--surface-2); border-radius: 10px; padding: 8px 10px; margin-top: 6px; font-size: 14px; }
.tl.staff .tl-text { background: var(--accent-soft); }
.comment-box { margin-top: 8px; padding: 12px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }

.demo-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 16px; background: #fff7e6; color: #92400e; border-bottom: 1px solid #f5d9a8; font-size: 14px; }
.demo-bar .grow { flex: 1; min-width: 180px; }
.demo-switch { display: flex; gap: 6px; }
.demo-switch .chip { font-size: 13px; padding: 5px 10px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme='light']) .demo-bar { background: #2a2113; color: #fbbf24; border-color: #4a3a1c; } }
.guide-step { display: flex; align-items: center; gap: 10px; padding: 7px 0; font-size: 14px; }
.guide-step + .guide-step { border-top: 1px solid var(--border); }
.guide-num { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 13px; background: var(--surface-2); color: var(--text-2); flex: none; }
.guide-step.ok { color: var(--text-3); }
.guide-step.ok .guide-num { background: var(--green-soft); color: var(--green); }

/* Choix de la langue (écran d'accès et « Plus ») */

/* Fiche d'évaluation d'une intervention */
.eval-cta { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; border: 1.5px solid var(--accent); }
.eval-grid { display: flex; flex-direction: column; gap: 8px; }
.eval-head, .eval-line { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(4, minmax(0, 1fr)); gap: 6px; align-items: center; }
.eval-head span { text-align: center; font-size: 20px; line-height: 1.1; }
.eval-head small, .eval-opt small { display: block; font-size: 10.5px; color: var(--text-3); }
.eval-line { border: 1px solid var(--border); border-radius: 12px; padding: 8px; margin: 0; }
.eval-crit { font-size: 13.5px; line-height: 1.25; }
.eval-crit small { display: block; color: var(--text-3); font-size: 11.5px; }
.eval-opt { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 2px; border-radius: 10px; cursor: pointer; text-align: center; }
.eval-opt { position: relative; }
.eval-opt input { position: absolute; opacity: 0; pointer-events: none; width: 1px; height: 1px; }
.eval-opt span { font-size: 22px; filter: grayscale(1); opacity: .45; transition: .15s; }
.eval-opt small { display: none; }
.eval-opt:has(input:checked) { background: var(--accent-soft); outline: 2px solid var(--accent); }
.eval-opt:has(input:checked) span { filter: none; opacity: 1; }
.eval-opt:has(input:focus-visible) { outline: 2px solid var(--accent); }
.eval-global { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.eval-gopt { position: relative; display: flex; align-items: center; justify-content: center; text-align: center; min-height: 44px; padding: 6px 8px; border: 1px solid var(--border); border-radius: 12px; cursor: pointer; font-size: 13.5px; font-weight: 600; line-height: 1.2; }
.eval-gopt input { position: absolute; opacity: 0; pointer-events: none; width: 1px; height: 1px; }
.eval-gopt:has(input:checked) { background: var(--accent-soft); outline: 2px solid var(--accent); }
.eval-sum .eval-title { font-weight: 700; margin-bottom: 8px; }
.eval-rows { display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.eval-row { display: flex; justify-content: space-between; gap: 10px; border-bottom: 1px dashed var(--border); padding: 3px 0; }
.eval-row b span { font-weight: 500; color: var(--text-2); }
@media (max-width: 420px) { .eval-head, .eval-line { grid-template-columns: repeat(4, minmax(0, 1fr)); } .eval-head > span:first-child { display: none; } .eval-crit { grid-column: 1 / -1; margin-bottom: 2px; } }

/* Annonces des partenaires */
.ptl-pub .vid { position: relative; width: 100%; aspect-ratio: 16 / 9; margin-top: 8px; border-radius: 10px; overflow: hidden; background: #000; }
.ptl-pub .vid.tall { aspect-ratio: 9 / 16; max-width: 325px; max-height: 70vh; margin-left: auto; margin-right: auto; }
.ptl-pub .vid iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.ticker { position: relative; height: 78px; margin-top: 14px; border-radius: 10px; overflow: hidden; background: #fff; }
.ticker iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* annonces : bordure rouge douce qui « respire » pour attirer l'œil */
.ptl-pub { border: 1.5px solid #fca5a5; animation: pubglow 2.6s ease-in-out infinite; }
@keyframes pubglow { 0%, 100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0); border-color: #fecaca; } 50% { box-shadow: 0 0 0 5px rgba(220, 38, 38, .16); border-color: #f87171; } }
@media (prefers-reduced-motion: reduce) { .ptl-pub { animation: none; border-color: #f87171; } }
.pub-lbl { color: #dc2626; text-transform: uppercase; letter-spacing: .06em; font-size: 11px; }

.ptl-pub .vid.audio { aspect-ratio: auto; background: transparent; }

/* Avant / après */
.ba-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ba-h { font-weight: 700; margin-bottom: 6px; }
.ba-h.ok { color: var(--green); }
@media (max-width: 520px) { .ba-grid { grid-template-columns: 1fr; } }

/* L'équipe arrive : en route / sur place (clignote), prévue aujourd'hui */
.arrive { display: flex; flex-direction: column; gap: 8px; margin: 0 0 14px; }
.arrive-b { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; font: inherit; color: inherit; cursor: pointer; border-radius: 14px; padding: 12px 14px; border: 1.5px solid; }
.arrive-b.go { background: #ecfdf3; border-color: #22c55e; animation: arrglow 1.6s ease-in-out infinite; }
.arrive-b.today { background: #fffbeb; border-color: #f59e0b; }
.arr-dot { width: 12px; height: 12px; border-radius: 50%; flex: 0 0 12px; }
.go .arr-dot { background: #16a34a; animation: blink 1s infinite; }
.today .arr-dot { background: #f59e0b; animation: blink 1.4s infinite; }
@keyframes arrglow { 0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); } 50% { box-shadow: 0 0 0 5px rgba(34, 197, 94, .22); } }
@keyframes blink { 50% { opacity: .2; } }
@media (prefers-reduced-motion: reduce) { .arrive-b.go, .arr-dot { animation: none !important; } }
@media (prefers-color-scheme: dark) { :root:not([data-theme='light']) .arrive-b.go { background: #0f2a1a; } :root:not([data-theme='light']) .arrive-b.today { background: #2a2113; } }

/* Statistiques */
.stat-card { margin-bottom: 12px; }
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.stat-grid > .card { margin-bottom: 0; }
@media (max-width: 760px) { .stat-grid { grid-template-columns: 1fr; } }
.hbars { display: flex; flex-direction: column; gap: 7px; }
.hbar { display: grid; grid-template-columns: minmax(90px, 40%) 1fr auto; gap: 8px; align-items: center; font-size: 13px; }
.hb-l { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hb-t { height: 10px; border-radius: 6px; background: var(--surface-2); overflow: hidden; }
.hb-t i { display: block; height: 100%; border-radius: 6px; background: var(--accent); }
.hb-t i.sat { background: #16a34a; }
.vbars { display: grid; grid-template-columns: repeat(12, 1fr); gap: 6px; align-items: end; height: 150px; padding-top: 6px; }
.vb { display: flex; flex-direction: column; align-items: center; height: 100%; gap: 4px; }
.vb-bars { flex: 1; width: 100%; display: flex; gap: 2px; align-items: flex-end; justify-content: center; }
.vb-bars i { width: 42%; max-width: 16px; min-height: 2px; border-radius: 4px 4px 0 0; }
.vb-bars i.c, .lg.c { background: #f0a37a; }
.vb-bars i.f, .lg.f { background: #16a34a; }
.vb small { font-size: 10px; color: var(--text-2); }
.legend-row { display: flex; gap: 14px; margin-top: 8px; color: var(--text-2); }
.lg { display: inline-block; width: 10px; height: 10px; border-radius: 3px; vertical-align: -1px; }

/* Bannières repliables au toucher (annonces, Premiers pas) */
details.fold > summary { list-style: none; cursor: pointer; padding-right: 28px; position: relative; }
details.fold > summary::-webkit-details-marker { display: none; }
details.fold > summary::after { content: "›"; position: absolute; right: 2px; top: 50%; margin-top: -15px; font-size: 24px; line-height: 30px; color: var(--text-3); transition: transform .25s; }
details.fold[open] > summary::after { transform: rotate(90deg); }
details.guide.fold:not([open]) > summary { margin-bottom: 0 !important; }

/* Codes à 6 chiffres : 6 cases */
.code6 { display: flex; gap: 6px; margin-top: 6px; }
.code6 .c6 { width: 2.4em; height: 2.8em; text-align: center; font: 700 18px/1 var(--mono, ui-monospace, monospace); padding: 0; border-radius: 10px; }
.code6-show { display: inline-flex; gap: 3px; }
.code6-show b { display: inline-grid; place-items: center; width: 1.6em; height: 1.9em; border: 1px solid var(--border); border-radius: 6px; background: var(--surface-2); font-family: var(--mono, ui-monospace, monospace); }

/* Disponibilités : calendrier + plage horaire */
.dispo-set { border: 1px solid var(--border); border-radius: 14px; padding: 10px 12px 12px; margin: 0; display: grid; gap: 10px; }
.dispo-set legend { padding: 0 6px; font-weight: 700; font-size: 14px; }
.dispo-row { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 8px; }
@media (max-width: 420px) { .dispo-row { grid-template-columns: 1fr 1fr; } .dispo-row > :first-child { grid-column: 1 / -1; } }

/* boutons côte à côte dans l'en-tête (Résidences : ajouter / dépannage) */
.show-xs { display: none; }
@media (max-width: 480px) { .show-xs { display: inline; } }

.acc-lines { display: grid; gap: 6px; justify-items: end; }
.acc-lines > div { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
/* nom de l'app + nom de la gérance connectée en dessous */
.ptl-name { letter-spacing: .06em; font-size: 15px; line-height: 1.2; }
.ptl-name small { letter-spacing: .02em; text-transform: none; font-size: 12px; font-weight: 600; }
.lock-err.ok { color: #16a34a; }
/* résidence : codes nommés et appartements */
.apt-head, .apt-row { display: grid; grid-template-columns: minmax(0, .6fr) minmax(0, 1.2fr) minmax(0, .7fr) minmax(0, .7fr) minmax(0, 1fr); gap: 6px; }
.apt-head { font-size: 11px; font-weight: 600; color: var(--text-3, #888); margin-bottom: 4px; }
.apt-row { margin-bottom: 6px; }
.apt-row input { min-width: 0; width: 100%; }
.apt-gen { margin: 4px 0 10px; padding: 8px 10px; border: 1px dashed var(--border, #ddd); border-radius: 12px; }
.apt-gen summary { cursor: pointer; font-weight: 600; font-size: 14px; }
.apt-gen-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 6px 8px; margin: 8px 0; }
/* 💼 offre d'abonnement (cartes comme une page de prix) */
dialog.sheet.wide { max-width: 1040px; }
.offer-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: stretch; }
@media (max-width: 760px) { .offer-grid { grid-template-columns: 1fr; } }
.offer-card { border: 1px solid var(--border); border-radius: 18px; padding: 16px; background: var(--surface); display: flex; flex-direction: column; }
.offer-card.pop { border: 2px solid var(--accent); box-shadow: 0 8px 24px rgba(79, 70, 229, .14); }
.offer-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.offer-top h3 { margin: 0; font-size: 20px; }
.offer-badge { font-size: 10.5px; font-weight: 800; letter-spacing: .04em; padding: 3px 8px; border-radius: 999px; background: var(--accent); color: #fff; white-space: nowrap; }
.offer-card:not(.pop) .offer-badge { background: var(--surface-2); color: var(--text-2); }
.offer-price b { font-size: 26px; }
.offer-save { min-height: 1.4em; margin: 2px 0 12px; }
.offer-list { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 8px; font-size: 14px; }
.offer-list li { display: flex; gap: 8px; align-items: baseline; }
.offer-list li span { color: #15803d; font-weight: 800; width: 14px; flex: none; }
.offer-list li.no { color: var(--text-3); }
.offer-list li.no span { color: var(--text-3); }
.offer-banner { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; font: inherit; cursor: pointer; margin: 0 0 16px; padding: 14px 16px; border-radius: 16px; border: 1px solid var(--accent); background: var(--accent-soft); color: var(--text); }
.offer-banner .ob-ic { font-size: 26px; }
.offer-banner .ob-go { font-weight: 700; color: var(--accent); white-space: nowrap; }
/* page d'invitation : bienvenue chaleureuse, étape en orange */
.inv-welcome { padding: 14px 16px; border-radius: 16px; background: var(--accent-soft); border: 1px solid var(--accent); }
.inv-welcome p { margin: 0 0 4px; }
.inv-welcome .iw-t { font-size: 20px; font-weight: 800; color: var(--accent); }
.inv-welcome .iw-org { font-size: 13px; color: var(--text-2); margin-bottom: 8px; }
.iw-step { margin: 6px 0 0; font-size: 18px; font-weight: 800; color: var(--accent); }
/* « Voir les offres » : clignote en rouge */
@keyframes obBlink { 0%, 100% { color: #dc2626; opacity: 1; } 50% { color: #dc2626; opacity: .35; } }
.offer-banner .ob-go { color: #dc2626; animation: obBlink 1s ease-in-out infinite; }
.lock-card .offer-banner { margin: 12px 0 4px; }
@media (prefers-reduced-motion: reduce) { .offer-banner .ob-go { animation: none; } }
/* logo de l'agence (Ma société, en-tête) */
.org-logo-pick{display:flex;gap:12px;align-items:center;padding:10px;border:1px dashed var(--line,#ddd);border-radius:12px}
.org-logo-box{flex:0 0 64px;width:64px;height:64px;border-radius:12px;background:#fff;border:1px solid var(--line,#ddd);display:grid;place-items:center;text-align:center;overflow:hidden}
.org-logo-box img{max-width:100%;max-height:100%;object-fit:contain}
img.org-logo{height:16px;max-width:48px;object-fit:contain;vertical-align:-3px;margin-right:5px;border-radius:3px;background:#fff}
img.org-logo[hidden]{display:none}
/* devis en cours : bandeau violet qui clignote, pastilles */
.dev-banner{border:2px solid #8b5cf6;border-radius:16px;padding:12px;background:rgba(139,92,246,.06);animation:devGlow 1.6s ease-in-out infinite}
@keyframes devGlow{0%,100%{box-shadow:0 0 0 0 rgba(139,92,246,.55)}50%{box-shadow:0 0 0 7px rgba(139,92,246,0),0 0 18px 2px rgba(139,92,246,.35)}}
.dev-item{padding:10px 0;border-bottom:1px solid var(--line,#eee)}.dev-item:last-of-type{border-bottom:0}
.dball{flex:none;width:14px;height:14px;margin-top:3px;border-radius:50%;display:inline-block;background:#c9c9c9;box-shadow:0 0 0 2px #fff,0 0 0 3px rgba(0,0,0,.08)}
.dball-green{background:#22a35a}.dball-yellow{background:#f2b705;animation:devBlink 1.2s infinite}.dball-red{background:#d63c3c;animation:devBlink .8s infinite}
@keyframes devBlink{50%{opacity:.35}}
@media (prefers-reduced-motion:reduce){.dev-banner,.dball{animation:none}}
.dev-btns{display:flex;flex-wrap:wrap;gap:8px}.dev-btns .btn{flex:0 0 auto;width:auto;white-space:nowrap}
/* « Votre activité avec LuxInterventions » */
.activity-card{margin-bottom:14px;border:2px solid var(--accent,#E8723A);background:linear-gradient(135deg,rgba(232,114,58,.10),rgba(232,114,58,.02))}
.act-big{font-size:clamp(30px,8vw,46px);font-weight:800;color:var(--accent,#E8723A);line-height:1.1;margin:4px 0 2px}
.act-row{display:flex;flex-wrap:wrap;gap:8px 18px;margin-top:10px;font-size:15px}
.act-row b{font-size:20px}
