@font-face { font-family: Poppins; font-weight: 400; font-display: swap; src: url(/public/fonts/Poppins-Regular.ttf) format("truetype"); }
@font-face { font-family: Poppins; font-weight: 500 600; font-display: swap; src: url(/public/fonts/Poppins-Medium.ttf) format("truetype"); }
@font-face { font-family: Poppins; font-weight: 700 800; font-display: swap; src: url(/public/fonts/Poppins-Bold.ttf) format("truetype"); }
/* Accueil (deux rubriques) et Espace client — v1.9.6. Feuille autonome, aucune règle en ligne (CSP). */
:root { --red: #b41e1f; --red2: #d8322f; --ink: #15181c; --ink2: #23272d; --muted: #6b7280; --line: #e3e6ea; --bg: #f3f4f6; --ok: #13804a; --warn: #b26b00; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.portail { margin: 0; min-height: 100vh; display: flex; flex-direction: column; font: 16px/1.5 Poppins, "Segoe UI", Roboto, Arial, sans-serif; color: var(--ink); background: var(--bg); }
[dir="rtl"] body.portail { font-family: "Segoe UI", Tahoma, "Noto Kufi Arabic", Arial, sans-serif; }
a { color: var(--red); }
.p-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; background: var(--ink); border-bottom: 3px solid var(--red); }
.p-brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; }
.p-brand span { display: flex; flex-direction: column; line-height: 1.1; }
.p-brand b { font-size: 18px; letter-spacing: .08em; }
.p-brand small { font-size: 11px; opacity: .75; }
.p-lang { display: flex; gap: 4px; }
.p-lang a { color: #cfd3d8; text-decoration: none; font-size: 13px; font-weight: 600; padding: 5px 9px; border-radius: 999px; border: 1px solid transparent; }
.p-lang a.on { color: #fff; border-color: var(--red2); background: rgba(216,50,47,.18); }
.p-main { flex: 1; width: 100%; max-width: 760px; margin: 0 auto; padding: 18px 16px 30px; }
.p-foot { text-align: center; font-size: 13px; color: var(--muted); padding: 14px 16px 22px; }

/* ---------- Espace client ---------- */
.p-box { background: #fff; border-radius: 16px; padding: 20px 18px; margin: 0 0 16px; box-shadow: 0 1px 2px rgba(0,0,0,.06), 0 8px 24px rgba(0,0,0,.05); border-top: 4px solid var(--red); }
.p-box h1 { font-size: 23px; margin: 0 0 4px; }
.p-box h2 { font-size: 18px; margin: 16px 0 8px; }
.p-center { text-align: center; }
.p-muted { color: var(--muted); margin: 0 0 10px; }
.p-small { font-size: 13px; color: var(--muted); }
.p-form { display: flex; flex-direction: column; gap: 12px; margin: 10px 0 0; }
.p-form label { display: flex; flex-direction: column; gap: 5px; font-weight: 600; font-size: 15px; }
.p-form input, .p-form select, .p-form textarea { font: inherit; font-weight: 400; padding: 12px 13px; border: 1.5px solid #cfd4da; border-radius: 11px; background: #fff; width: 100%; color: var(--ink); }
.p-form input:focus, .p-form select:focus, .p-form textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(180,30,31,.14); }
.p-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.p-span { grid-column: 1 / -1; }
@media (max-width: 560px) { .p-grid { grid-template-columns: 1fr; } }
.p-code { font-size: 28px !important; letter-spacing: .5em; text-align: center; font-weight: 700 !important; }
.p-btn { display: inline-block; text-align: center; font: inherit; font-weight: 700; font-size: 17px; padding: 14px 18px; border: 0; border-radius: 12px; background: var(--red); color: #fff; cursor: pointer; text-decoration: none; }
.p-btn:hover { background: #971617; }
.p-btn.ghost { background: transparent; color: var(--ink); border: 1.5px solid #cfd4da; font-size: 15px; padding: 10px 14px; }
.p-urg { border: 0; padding: 0; margin: 0; display: flex; gap: 10px; flex-wrap: wrap; }
.p-urg legend { font-weight: 600; font-size: 15px; margin-bottom: 5px; padding: 0; }
.p-radio { flex-direction: row !important; align-items: center; gap: 8px !important; border: 1.5px solid #cfd4da; border-radius: 11px; padding: 10px 14px; font-weight: 600; cursor: pointer; }
.p-radio input { width: auto; margin: 0; accent-color: var(--red); }
.p-radio.urg { border-color: #f0b4b3; }
.p-flash { padding: 12px 14px; border-radius: 11px; margin: 10px 0; font-weight: 600; }
.p-flash.err { background: #fdf0f0; color: #8d1d1d; border: 1px solid #f0c9c9; }
.p-flash.ok { background: #edf8f1; color: #0f5a32; border: 1px solid #bfe3cc; }
.p-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.p-photo { max-width: 100%; max-height: 220px; border-radius: 10px; border: 1px solid var(--line); object-fit: contain; }
.p-list { list-style: none; margin: 0; padding: 0; }
.p-list li { padding: 11px 0; border-bottom: 1px solid var(--line); }
.p-st { font-weight: 700; padding: 1px 8px; border-radius: 999px; font-size: 12px; background: #eef0f3; }
.st-ouvert { background: #fff4d6; color: #7a5600; } .st-en_cours { background: #e7f0ff; color: #164a9c; } .st-resolu { background: #e6f6ec; color: #13804a; } .st-annule { background: #eee; color: #666; }

[hidden] { display: none !important; }
.p-install { margin-top: 4px; }

/* ---------- v1.9.7 : position, photos, confirmation animée ---------- */
.p-where { border: 1.5px solid #e6d3d1; border-radius: 14px; padding: 12px; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.p-where legend { font-weight: 600; font-size: 15px; padding: 0 6px; }
.p-pos { align-self: flex-start; }
.p-ok { color: var(--ok) !important; font-weight: 600; } .p-err { color: #8d1d1d !important; }
.p-map { position: relative; height: 230px; border-radius: 12px; overflow: hidden; background: #e9ecef; touch-action: none; cursor: crosshair; user-select: none; }
.p-tiles img { position: absolute; width: 256px; height: 256px; max-width: none; pointer-events: none; }
.p-pin { position: absolute; width: 28px; height: 28px; margin: -28px 0 0 -14px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--red); border: 3px solid #fff; box-shadow: 0 4px 10px rgba(0,0,0,.35); pointer-events: none; z-index: 2; animation: p-drop .35s ease-out; }
@keyframes p-drop { from { margin-top: -60px; opacity: 0; } to { margin-top: -28px; opacity: 1; } }
.p-z { position: absolute; inset-inline-end: 8px; width: 36px; height: 36px; border-radius: 9px; border: 0; background: #fff; font-size: 22px; font-weight: 700; color: var(--ink); box-shadow: 0 2px 6px rgba(0,0,0,.25); cursor: pointer; z-index: 3; }
.p-zin { top: 8px; } .p-zout { top: 50px; }
.p-photos { display: flex; flex-direction: column; gap: 8px; }
.p-lbl { font-weight: 600; font-size: 15px; }
.p-photo-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.p-photo-btns .p-btn { font-size: 15px; padding: 10px 14px; cursor: pointer; }
.p-thumbs { display: flex; flex-wrap: wrap; gap: 8px; }
.p-thumb { position: relative; width: 84px; height: 84px; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); animation: p-pop .3s ease-out; }
.p-thumb img { width: 100%; height: 100%; object-fit: cover; }
.p-thumb button { position: absolute; top: 3px; inset-inline-end: 3px; width: 24px; height: 24px; border-radius: 50%; border: 0; background: rgba(0,0,0,.65); color: #fff; font-size: 16px; line-height: 1; cursor: pointer; }

.p-sent { position: relative; text-align: center; background: linear-gradient(160deg, #effaf3 0%, #dcf3e5 100%); border: 2px solid #34a865; border-radius: 20px; padding: 26px 20px 22px; margin: 0 0 18px;
  box-shadow: 0 18px 40px -18px rgba(19,128,74,.55); animation: p-pop .5s cubic-bezier(.2,1.3,.4,1) both; overflow: hidden; }
.p-sent::before { content: ""; position: absolute; inset: -40% -10% auto; height: 120%; background: radial-gradient(circle, rgba(255,255,255,.7), transparent 60%); animation: p-shine 2.4s ease-out .3s both; pointer-events: none; }
.p-sent h2 { color: #0f5a32; font-size: 24px; margin: 8px 0 12px; }
.p-sent p { color: #1d5236; margin: 10px 0 14px; }
.p-sent dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; text-align: start; max-width: 460px; margin: 0 auto; background: rgba(255,255,255,.75); border-radius: 12px; padding: 12px 14px; }
.p-sent dl div { display: contents; }
.p-sent dt { color: #4b6b58; font-size: 14px; }
.p-sent dd { margin: 0; font-weight: 600; color: #123d27; overflow-wrap: anywhere; }
.p-sent .p-btn { background: #13804a; }
.p-check { width: 76px; height: 76px; }
.p-check circle { fill: #13804a; stroke: #13804a; stroke-width: 2; animation: p-scale .45s ease-out both; transform-origin: center; }
.p-check path { fill: none; stroke: #fff; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 40; animation: p-draw .45s ease-out .35s forwards; }
@keyframes p-pop { from { transform: scale(.85); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes p-scale { from { transform: scale(0); } to { transform: scale(1); } }
@keyframes p-draw { to { stroke-dashoffset: 0; } }
@keyframes p-shine { from { transform: translateY(-60%); opacity: 1; } to { transform: translateY(60%); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .p-sent, .p-check circle, .p-thumb, .p-pin { animation: none; } .p-check path { stroke-dashoffset: 0; animation: none; } }

/* ---------- v2.0.21 : documents, interventions, matériel, signature du devis ---------- */
.p-menu { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; }
.p-menu a { text-decoration: none; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; font-size: 14px; font-weight: 600; }
.p-menu a:hover { border-color: var(--red); color: var(--red); }
.p-h3 { font-size: 15px; margin: 14px 0 2px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.p-doc { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.p-doc-act { display: flex; gap: 6px; flex-shrink: 0; }
.p-btn.p-mini { font-size: 13px; padding: 6px 11px; border-radius: 9px; }
.st-retard { background: #fdecec; color: #a61b1b; }
.p-table-wrap { overflow-x: auto; margin: 10px 0; }
.p-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.p-table th, .p-table td { padding: 8px 6px; border-bottom: 1px solid var(--line); text-align: start; vertical-align: top; }
.p-table th:not(:first-child), .p-table td:not(:first-child) { text-align: end; white-space: nowrap; }
.p-table tfoot td { border-bottom: 0; color: var(--muted); }
.p-table tfoot .p-tot td { color: var(--ink); font-weight: 700; font-size: 16px; border-top: 2px solid var(--ink); }
.p-accept { font-weight: 500 !important; align-items: flex-start !important; line-height: 1.4; }
.p-accept input { margin-top: 3px !important; }
.p-signed { border-top-color: var(--ok); background: #f1faf4; color: #0f5a32; font-weight: 600; }
@media (max-width: 520px) { .p-doc { flex-direction: column; align-items: stretch; } .p-doc-act { justify-content: flex-start; } }

/* ---------- v2.0.35 : Espace client en pages (tuiles, Retour, barre du bas) ---------- */
.p-top { padding: 12px 16px; }
.p-brand img { width: 46px; height: 46px; background: #fff; border-radius: 11px; padding: 3px; }
.p-brand b { font-size: 20px; }
.p-lang a { font-size: 15px; min-width: 46px; min-height: 42px; display: inline-flex; align-items: center; justify-content: center; border-radius: 12px; border: 1.5px solid #3a3f46; padding: 4px 10px; }
.p-lang a.on { border-color: var(--red2); background: rgba(216,50,47,.25); }
body.p-has-tab { padding-bottom: calc(78px + env(safe-area-inset-bottom)); }
.p-sub { display: flex; align-items: center; gap: 12px; margin: -6px 0 14px; }
.p-back { display: inline-flex; align-items: center; gap: 4px; flex-shrink: 0; text-decoration: none; font-weight: 700; font-size: 16px; color: var(--red); background: #fff; border: 1.5px solid #f0c9c9; border-radius: 12px; padding: 9px 14px 9px 10px; min-height: 46px; }
.p-back:hover { border-color: var(--red); }
.p-back-ico { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
[dir="rtl"] .p-back-ico { transform: scaleX(-1); }
.p-subt { font-size: 21px; margin: 0; line-height: 1.2; overflow-wrap: anywhere; }
.p-sub + .p-box > h2:first-child { display: none; }
.p-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.p-hi { margin: 0 2px 12px; } .p-hi h1 { font-size: 25px; margin: 0; } .p-hi .p-muted { margin: 2px 0 0; }
.p-tgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (min-width: 640px) { .p-tgrid { grid-template-columns: repeat(3, 1fr); } }
.p-tile { position: relative; display: flex; flex-direction: column; gap: 4px; min-height: 124px; padding: 16px 14px; background: #fff; border-radius: 18px; text-decoration: none; color: var(--ink);
  box-shadow: 0 1px 2px rgba(0,0,0,.06), 0 8px 20px rgba(0,0,0,.05); border: 1.5px solid transparent; transition: transform .12s, border-color .12s; }
.p-tile:hover, .p-tile:focus-visible { border-color: var(--red); }
.p-tile:active { transform: scale(.97); }
.p-tile b { font-size: 16.5px; line-height: 1.25; margin-top: 6px; }
.p-tile small { color: var(--muted); font-size: 13px; line-height: 1.35; }
.p-ico { width: 46px; height: 46px; fill: none; stroke: var(--red); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.p-tile-main { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 16px; min-height: 0; background: var(--red); color: #fff; }
.p-tile-main span { display: flex; flex-direction: column; } .p-tile-main b { margin: 0; font-size: 19px; } .p-tile-main small { color: #ffdcdc; font-size: 14px; }
.p-tile-main .p-ico { stroke: #fff; width: 54px; height: 54px; flex-shrink: 0; }
.p-tile-main:hover { background: #971617; border-color: transparent; }
.p-badge { position: absolute; top: 12px; inset-inline-end: 12px; min-width: 26px; height: 26px; padding: 0 8px; border-radius: 999px; background: var(--red); color: #fff; font-weight: 700; font-size: 14px; display: flex; align-items: center; justify-content: center; }
.p-logout { margin: 22px 0 0; display: flex; } .p-logout .p-btn { width: 100%; }
.p-tabbar { position: fixed; inset: auto 0 0 0; z-index: 50; display: grid; grid-template-columns: repeat(4, 1fr); height: calc(72px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
  background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -4px 18px rgba(0,0,0,.06); }
.p-tab { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; text-decoration: none; color: var(--muted); font-size: 12.5px; font-weight: 600; }
.p-tab-ico { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.p-tab.on { color: var(--red); }
.p-filters { display: flex; gap: 8px; margin: 0 0 12px; flex-wrap: wrap; }
.p-filters a { text-decoration: none; color: var(--ink); background: #fff; border: 1.5px solid var(--line); border-radius: 999px; padding: 9px 16px; font-weight: 600; font-size: 15px; min-height: 44px; display: inline-flex; align-items: center; }
.p-filters a.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.p-card { background: #fff; border-radius: 16px; padding: 14px 16px; margin: 0 0 12px; box-shadow: 0 1px 2px rgba(0,0,0,.06), 0 6px 16px rgba(0,0,0,.04); }
.p-card-h { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.p-card-h b { font-size: 16px; }
.p-card-t { margin: 4px 0 0; font-weight: 500; }
.p-card .p-small { margin: 2px 0 0; }
.p-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin: 12px 0 4px; }
.p-steps i { height: 7px; border-radius: 9px; background: var(--line); }
.p-steps i.d { background: var(--red); }
.p-steps-l { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; font-size: 11.5px; color: var(--muted); }
.p-steps-l span { text-align: center; } .p-steps-l span:first-child { text-align: start; } .p-steps-l span:last-child { text-align: end; }
.p-steps-l span.on { color: var(--red); font-weight: 700; }
.p-acts { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.p-acts .p-btn { flex: 1; min-width: 130px; font-size: 15px; padding: 11px 12px; }
.p-empty { text-align: center; color: var(--muted); background: #fff; border-radius: 16px; padding: 28px 16px; }
.p-dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; margin: 14px 0 4px; }
.p-dl div { display: contents; } .p-dl dt { color: var(--muted); font-size: 14px; } .p-dl dd { margin: 0; font-weight: 600; }
.p-pre { white-space: pre-wrap; margin: 4px 0 10px; }
.p-notes { list-style: none; margin: 0; padding: 0; } .p-notes li { border-inline-start: 3px solid var(--red); padding: 4px 12px; margin: 0 0 10px; background: #fbf6f6; border-radius: 0 10px 10px 0; }
.p-notes small { color: var(--muted); }
.p-btn.p-mini { font-size: 14px; padding: 9px 14px; border-radius: 10px; min-height: 40px; }
[dir="rtl"] .p-tile small[dir="ltr"] { text-align: end; }

/* v2.0.54 : rendez-vous, matériel, dépannage, sites, besoin, guides */
.p-banner { display: flex; gap: 12px; align-items: center; background: #fff7e8; border: 1px solid #f0cf8f; border-radius: 16px; padding: 14px; margin: 0 0 14px; text-decoration: none; color: #4a3200; }
.p-banner .p-ico { stroke: #4a3200; width: 32px; height: 32px; flex-shrink: 0; } .p-banner span { display: flex; flex-direction: column; } .p-banner small { font-size: 13px; }
.p-slots { display: flex; flex-direction: column; gap: 10px; margin: 0 0 14px; } .p-slots form { margin: 0; }
.p-slot { width: 100%; display: flex; align-items: center; gap: 14px; text-align: left; background: #fff; border: 2px solid var(--line); border-radius: 16px; padding: 12px 14px; font: inherit; cursor: pointer; min-height: 64px; color: var(--ink); }
.p-slot:hover, .p-slot:focus-visible { border-color: var(--red); }
.p-slot-d { width: 54px; flex-shrink: 0; text-align: center; border-radius: 12px; background: #f7e7e7; color: #8f1718; padding: 6px 0; line-height: 1.1; display: flex; flex-direction: column; } .p-slot-d b { font-size: 20px; }
[dir="rtl"] .p-slot { text-align: right; }
.p-ok-box { background: #e9f6ee; border-top-color: #13804a; color: #0f4d2a; }
.p-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0 0 14px; }
.p-kpis > div { background: #fff; border-radius: 14px; padding: 10px; text-align: center; display: flex; flex-direction: column; } .p-kpis b { font-size: 22px; } .p-kpis small { color: var(--muted); font-size: 12.5px; }
.p-okc { color: #13804a; } .p-warnc { color: #8a5700; } .p-badc { color: #a51d1d; }
.p-w { display: inline-block; font-size: 12.5px; font-weight: 600; padding: 3px 10px; border-radius: 99px; } .p-w-ok { background: #e6f2ea; color: #136534; } .p-w-bientot { background: #fff3dd; color: #855300; } .p-w-finie { background: #eceef1; color: #4a5059; }
.p-label { font-size: 13px; font-weight: 600; color: var(--muted); margin: 0 0 6px; }
.p-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.p-chip { display: inline-flex; align-items: center; min-height: 42px; padding: 0 14px; border-radius: 99px; border: 1px solid #c9ced5; background: #fff; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 14px; }
.p-chip.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.p-checks { margin: 10px 0 14px; padding: 0; list-style: none; counter-reset: st; display: flex; flex-direction: column; gap: 12px; }
.p-checks li { counter-increment: st; display: grid; grid-template-columns: 32px 1fr; gap: 0 12px; } .p-checks li::before { content: counter(st); grid-row: span 2; width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.p-checks li b, .p-checks li span { grid-column: 2; } .p-checks li span { color: #3d434c; font-size: 14.5px; }
.p-btn-ok { background: #13804a; } .p-btn-ok:hover { background: #0f6a3d; }
.p-box > .p-btn { display: block; margin-top: 10px; }
.p-dot { display: inline-block; width: 11px; height: 11px; border-radius: 50%; vertical-align: middle; } .p-dot.ok { background: #1d8a4b; } .p-dot.bad { background: #b32626; }
.p-card-link { display: block; text-decoration: none; color: var(--ink); } .p-card-link:hover { border-color: var(--red); }
.p-check { flex-direction: row !important; align-items: center; gap: 10px !important; font-weight: 500 !important; } .p-check input { width: 20px; height: 20px; accent-color: var(--red); }

/* v2.0.56 : demander une modification du devis */
.p-modif textarea { width: 100%; box-sizing: border-box; }
.p-version { margin: -.25rem 0 .5rem; }

/* v2.0.57 : « Signaler une panne » — grandes cases, envoi direct, Oui / Non */
.p-dep-lead { margin: 0 0 12px; color: #3d434c; font-size: 14.5px; }
.p-dep-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0 0 14px; }
.p-dep-tile { display: flex; flex-direction: column; gap: 10px; min-height: 112px; padding: 12px; border: 1px solid #e3e6ea; border-radius: 14px; background: #fff; color: var(--ink); text-decoration: none; }
.p-dep-tile:hover, .p-dep-tile:focus-visible { border-color: #b41e1f; background: #fdf3f3; }
.p-dep-tile b { font-size: 14.5px; line-height: 1.3; }
.p-dep-ic { width: 54px; height: 54px; flex-shrink: 0; border-radius: 14px; background: #b41e1f; color: #fff; display: inline-flex; align-items: center; justify-content: center; }
.p-dep-urg { display: flex; align-items: center; gap: 12px; padding: 14px; border: 2px dashed #b41e1f; border-radius: 14px; background: #fff; text-decoration: none; color: var(--ink); }
.p-dep-urg .p-dep-ic { background: #b41e1f; color: #fff; }
.p-dep-urg b { display: block; color: #b41e1f; font-size: 15.5px; }
.p-dep-urg small { color: #5f6672; font-size: 13px; }
.p-dep-cur { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 12px; padding: 6px 8px 6px 6px; border-radius: 14px; background: var(--ink); color: #fff; font-weight: 600; }
.p-dep-cur span { display: inline-flex; align-items: center; gap: 10px; }
.p-dep-cur .p-dep-ic { width: 40px; height: 40px; border-radius: 11px; background: #b41e1f; color: #fff; }
.p-dep-cur .p-dep-ic svg { width: 26px; height: 26px; }
.p-dep-cur a { color: #cfd3d8; font-weight: 400; font-size: 13px; padding: 8px; }
.p-dep-time { display: inline-block; margin-top: 4px; padding: 3px 10px; border-radius: 99px; background: #e8f4ec; color: #136534; font-size: 12.5px; font-weight: 600; }
.p-dep-q { text-align: center; font-weight: 700; margin: 6px 0 10px; }
.p-dep-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.p-dep-two form { margin: 0; display: flex; }
.p-dep-two .p-btn { display: flex; font-size: 15.5px; padding: 10px 8px; width: 100%; margin: 0; flex-direction: column; align-items: center; justify-content: center; line-height: 1.2; min-height: 64px; text-align: center; }
.p-dep-two .p-btn small { display: block; font-weight: 400; font-size: 12px; opacity: .9; margin-top: 2px; }

/* v2.0.59 : plusieurs comptes pour une même personne */
.p-comptes { display: flex; flex-direction: column; gap: 12px; }
.p-comptes h1 { margin: 4px 0 0; font-size: 22px; }
.p-comptes form { margin: 0; }
.p-compte { width: 100%; display: flex; align-items: center; gap: 12px; padding: 14px; border: 1px solid #e3e6ea; border-radius: 16px; background: #fff; font: inherit; color: var(--ink); text-align: start; cursor: pointer; }
.p-compte.on { border: 2px solid #b41e1f; }
.p-compte:hover, .p-compte:focus-visible { border-color: #b41e1f; }
.p-av { width: 46px; height: 46px; flex-shrink: 0; border-radius: 12px; background: #b41e1f; color: #fff; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; font-size: 17px; }
.p-compte-t { flex: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 3px; min-width: 0; }
.p-compte-t b { font-size: 16px; } .p-compte-t small { color: #5f6672; font-size: 13px; }
.p-cb { font-style: normal; font-size: 12px; font-weight: 600; border-radius: 99px; padding: 2px 9px; background: #e8f4ec; color: #136534; }
.p-cb.due { background: #fff1d6; color: #7a4b00; }
.p-chev { color: #5f6672; font-size: 22px; }
.p-switch { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid #e3e6ea; border-radius: 14px; padding: 10px 12px; margin: 0 0 12px; }
.p-switch .p-av { width: 38px; height: 38px; font-size: 14px; border-radius: 10px; }
.p-switch span:not(.p-av) { display: flex; flex-direction: column; min-width: 0; } .p-switch b { font-size: 14.5px; } .p-switch small { color: #5f6672; font-size: 12px; }
.p-switch a { margin-inline-start: auto; white-space: nowrap; color: #b41e1f; font-weight: 600; font-size: 14px; border: 1px solid #ecc6c6; border-radius: 10px; padding: 8px 12px; text-decoration: none; }
.p-info { background: #fff7e8; border: 1px solid #f0cf8f; color: #4a3200; }

/* v2.0.60 : le client signe la fiche d'intervention sur son téléphone */
.geo-resume h1 { font-size: 20px; margin: 0 0 4px; }
.geo-resume h2 { font-size: 15px; margin: 12px 0 4px; }
.geo-txt { white-space: pre-line; margin: 0; }
.geo-pad { display: flex; flex-direction: column; gap: 8px; }
.geo-pad canvas { width: 100%; height: auto; aspect-ratio: 600 / 240; border: 2px dashed #c9ced5; border-radius: 12px; background: #fff; touch-action: none; }
.geo-pad.geo-missing canvas { border-color: #b41e1f; background: #fdf3f3; }
.geo-signer label { display: flex; flex-direction: column; gap: 4px; }
.geo-signer .geo-check { flex-direction: row; align-items: center; gap: 10px; }
.geo-signer .geo-check input[type=checkbox] { width: 22px; height: 22px; min-width: 22px; flex: 0 0 22px; margin: 0; accent-color: #b41e1f; }
.geo-signer label small { font-weight: 400; }
/* v2.0.63 : rubriques du client en premier, les autres en « Autre demande » */
.p-dep-plus-h { font-size: 14px; margin: 18px 0 8px; color: #3f3f46; }
.p-dep-plus { display: flex; flex-wrap: wrap; gap: 8px; }
.p-dep-chip { display: inline-flex; align-items: center; min-height: 44px; box-sizing: border-box; padding: 10px 14px; border: 1px solid #e3e6ea; border-radius: 999px; background: #fff; color: var(--ink); text-decoration: none; font-size: 14px; }
.p-dep-chip:hover, .p-dep-chip:focus-visible { border-color: #b41e1f; background: #fdf3f3; }
.p-it-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }

/* v2.0.68 : messages avec KMAR sur une demande */
.p-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.p-chat li.p-me { background: #FBE4E6; border-radius: 10px; padding: 8px 10px; }
.p-chat li.p-them { background: #fff; border-radius: 10px; padding: 8px 10px; }
.p-chat-f { display: flex; flex-direction: column; gap: 8px; margin: 8px 0 16px; }
.p-chat-f textarea { width: 100%; box-sizing: border-box; }

/* v3.0.2 : onglet Messages (5 onglets) */
.p-tabbar:has(.p-tab-msg) { grid-template-columns: repeat(5, 1fr); }
.p-tab { position: relative; }
.p-tab-bd { position: absolute; top: 8px; left: calc(50% + 6px); min-width: 18px; height: 18px; border-radius: 9px; background: var(--red, #B0122B); color: #fff; font-size: 11px; display: flex; align-items: center; justify-content: center; padding: 0 4px; box-sizing: border-box; }
.p-tab-bd[hidden] { display: none; }

/* v3.0.8 : fiches d'intervention — nouvelles fiches (badge clignotant), filtres, pages */
.p-tile-new .p-badge { animation: p-blink 1.1s ease-in-out infinite; box-shadow: 0 0 0 0 rgba(180,30,31,.6); }
@keyframes p-blink { 0%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 0 0 0 rgba(180,30,31,.55); } 50% { opacity: .35; transform: scale(1.12); box-shadow: 0 0 0 6px rgba(180,30,31,0); } }
@media (prefers-reduced-motion: reduce) { .p-tile-new .p-badge { animation: none; } }
.p-filt { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; align-items: end; margin-bottom: 12px; }
.p-filt-b { display: flex; gap: 6px; flex-wrap: wrap; }
.p-meta { color: var(--ink); }
.p-pill-new { display: inline-block; background: var(--red); color: #fff; font-size: 12px; font-weight: 700; border-radius: 999px; padding: 1px 8px; vertical-align: middle; }
.p-new { background: #fdf3f3; }
.p-pages { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 12px 0 0; }

/* v3.1.2 : messages de la demande — photos, fichiers, vocaux ; autre demandeur du même client */
.p-chat .p-msg .m-photo img { max-width: 220px; max-height: 220px; border-radius: 10px; display: block; }
.p-chat .p-msg .m-doc { display: inline-flex; gap: 10px; align-items: center; background: #fff; border: 1px solid var(--line, #e5e7eb); border-radius: 10px; padding: 8px 10px; text-decoration: none; color: inherit; }
.p-chat .p-msg .m-doc small { display: block; color: #6b7280; }
.p-chat .p-msg .m-doc-ic { background: #b41e1f; color: #fff; font-weight: 700; font-size: 11px; border-radius: 6px; padding: 6px 5px; }
.p-chat .p-msg audio { max-width: 240px; }
.p-chat .p-msg .m-txt { white-space: pre-wrap; overflow-wrap: anywhere; }
.p-chat li.p-other { background: #eef3f6; }
.p-chat-att { margin: 6px 0; }
.p-chat-att .p-photo-btns { display: flex; gap: 6px; flex-wrap: wrap; }
.p-h2 { font-size: 15px; margin: 22px 0 8px; color: #3f3f46; } /* v3.2.6 : garantie main-d’œuvre */

/* v3.2.9 : même style que l'application (interrupteurs et cases vertes) */
/* v3.2.8 : interrupteurs ON/OFF (vert) pour les options oui / non */
input[type=checkbox].sw { -webkit-appearance: none; appearance: none; display: inline-block; vertical-align: middle; flex: 0 0 46px; width: 46px !important; min-width: 46px; height: 26px !important; min-height: 0 !important; margin: 0 8px 0 0; padding: 0; border: 0; border-radius: 13px; cursor: pointer; background: #9aa0a8 radial-gradient(circle at 13px 50%, #fff 0 9px, transparent 10px) no-repeat; transition: background-color .2s; accent-color: auto; }
input[type=checkbox].sw:checked { background: #22c55e radial-gradient(circle at 33px 50%, #fff 0 9px, transparent 10px) no-repeat; }
input[type=checkbox].sw:focus-visible { outline: 2px solid #1d1d1d; outline-offset: 2px; }
input[type=checkbox].sw:disabled { opacity: .45; cursor: not-allowed; }
input[type=checkbox].sw::before, input[type=checkbox].sw::after { content: none; }
label:has(> input[type=checkbox].sw) { display: block !important; position: relative; padding-left: 56px; min-height: 26px; line-height: 1.45; }
label:has(> input[type=checkbox].sw) > input[type=checkbox].sw { position: absolute; left: 0; top: 0; margin: 0; }

/* v3.2.9 : style unique — cases à cocher carrées vertes avec ✓ (plus de rouge) */
input[type=checkbox]:not(.sw) { -webkit-appearance: none; appearance: none; display: inline-block; vertical-align: middle; flex: 0 0 20px; width: 20px; min-width: 20px; height: 20px; min-height: 0; margin: 0 6px 0 0; padding: 0; border: 2px solid #9aa0a8; border-radius: 5px; background: #fff center / 14px 14px no-repeat; cursor: pointer; accent-color: #22c55e; }
input[type=checkbox]:not(.sw):checked { border-color: #22c55e; background-color: #22c55e; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3.2 3L13 4.5' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
input[type=checkbox]:not(.sw):indeterminate { border-color: #22c55e; background: #22c55e linear-gradient(#fff, #fff) center / 10px 2.5px no-repeat; }
input[type=checkbox]:not(.sw):focus-visible { outline: 2px solid #1d1d1d; outline-offset: 2px; }
input[type=checkbox]:not(.sw):disabled { opacity: .45; cursor: not-allowed; }

/* v3.2.10 : choix unique (boutons radio) au même style que les interrupteurs oui / non */
input[type=radio]:not(.motif input) { -webkit-appearance: none; appearance: none; display: inline-block; vertical-align: middle; flex: 0 0 46px !important; width: 46px !important; min-width: 46px !important; height: 26px !important; min-height: 0 !important; margin: 0 8px 0 0; padding: 0 !important; border: 0; border-radius: 13px; cursor: pointer; background: #9aa0a8 radial-gradient(circle at 13px 50%, #fff 0 9px, transparent 10px) no-repeat; transition: background-color .2s; box-shadow: none; outline: none; }
input[type=radio]:not(.motif input):checked { background: #22c55e radial-gradient(circle at 33px 50%, #fff 0 9px, transparent 10px) no-repeat; }
input[type=radio]:not(.motif input):focus-visible { outline: 2px solid #1d1d1d; outline-offset: 2px; }
input[type=radio]:not(.motif input):disabled { opacity: .45; cursor: not-allowed; }
.fact-opt:has(input:checked), .plein-opt:has(input:checked), .p-radio:has(input:checked) { border-color: #22c55e !important; background: #f0fdf4; }
.motif input:checked + span { background: #22c55e !important; border-color: #22c55e !important; color: #fff !important; }

/* v3.2.11 : étiquettes d'état en style tampon (couleurs habituelles : rouge problème, orange en cours, vert OK, noir à traiter, gris neutre) */
.badge, .tag2, .gc-pill, span.st { display: inline-block !important; font-family: Impact, "Arial Narrow Bold", "sans-serif-condensed", "Roboto Condensed", "Arial Narrow", sans-serif !important; font-weight: 700 !important; font-stretch: condensed; text-transform: uppercase; letter-spacing: .06em; font-size: .76rem !important; line-height: 1.15 !important; padding: .22rem .5rem .16rem !important; background: transparent !important; border: 2px solid currentColor !important; border-radius: 4px !important; box-shadow: inset 0 0 0 1px #fff, inset 0 0 0 2.2px currentColor; transform: rotate(-2.5deg); white-space: nowrap; vertical-align: middle; -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='60'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' seed='4'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -1.5 1.6'/%3E%3C/filter%3E%3Crect width='120' height='60' filter='url(%23n)'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='60'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' seed='4'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -1.5 1.6'/%3E%3C/filter%3E%3Crect width='120' height='60' filter='url(%23n)'/%3E%3C/svg%3E"); }
.badge::before { content: none !important; }
.gc-late, span.st.st-retard { color: #c62828 !important; }
span.st.st-en_cours { color: #b45309 !important; }
