/* Espace personnel : barre latérale (ordinateur), onglets (téléphone) et tableau de bord du client. */
.app-shell{--dash-teal:#0a5c5c;--dash-orange:#cf4f17;--dash-line:#e1e9e6;--dash-shadow:0 1px 2px #102a2c0d,0 8px 22px #102a2c0f}
.ico{flex:none;vertical-align:middle}
.only-phone{display:none}
.flip-rtl{display:inline-block}
.app-shell[dir=rtl] .flip-rtl,.app-shell[dir=rtl] .dash-banner-chevron .ico{transform:scaleX(-1)}

/* En-tête : avatar à initiales, cloche et déconnexion compacte. */
.header-avatar{display:inline-flex;align-items:center;justify-content:center;width:42px;height:42px;border-radius:50%;background:var(--teal);color:#fff;font-size:14px;font-weight:700;letter-spacing:.02em;flex:none}
.header-account{gap:12px}
.header-bell{display:none;position:relative;min-width:44px;min-height:44px;align-items:center;justify-content:center;color:var(--ink)}
.header-bell .ws-badge{position:absolute;top:3px;inset-inline-end:0;min-width:18px;height:18px;font-size:11px;padding:0 4px}
.logout-icon{display:none}

/* Mise en page avec navigation latérale. */
.ws-plain{display:contents}
.ws-shell{flex:1;display:grid;grid-template-columns:252px minmax(0,1fr);gap:32px;width:calc(100% - 64px);max-width:1360px;margin-inline:auto;padding-block:28px 48px;align-items:start}
.ws-shell>main{min-width:0}
.ws-shell main .container{width:100%;max-width:none;margin-inline:0}
.ws-shell main .section{padding-block:0 8px}
.app-shell.has-workspace .public-links{display:none}
.app-shell.has-workspace .header-inner.container{max-width:1360px}

.ws-sidebar{position:sticky;top:16px;display:flex;flex-direction:column;justify-content:space-between;gap:24px;min-height:min(620px,calc(100vh - 150px));padding-inline-end:20px;border-inline-end:1px solid var(--dash-line)}
.ws-links{display:flex;flex-direction:column;gap:6px}
.ws-link{display:flex;align-items:center;gap:14px;min-height:50px;padding:0 16px;border-radius:12px;font-size:16px;font-weight:600;color:var(--ink);text-decoration:none}
.ws-link>span{flex:1;min-width:0}
.ws-link .ico{color:var(--teal)}
.ws-link:hover{background:#f0f6f4}
.ws-link.is-active{background:#d5ebe8;color:var(--deep)}
.ws-help{border-top:1px solid var(--dash-line);border-radius:0 0 12px 12px;margin-top:8px;padding-top:6px;min-height:56px;font-size:15px;font-weight:500;color:#41585a}
.ws-badge{display:inline-flex;align-items:center;justify-content:center;min-width:22px;height:22px;padding:0 6px;border-radius:999px;background:#d3501a;color:#fff;font-size:12px;font-weight:700;line-height:1}
.ws-tabbar{display:none}
.ws-link:focus-visible,.ws-tab:focus-visible,.dash-btn:focus-visible,.dash-filter:focus-visible,.dash-stat:focus-visible,.dash-banner:focus-visible,.header-bell:focus-visible{outline:3px solid #0a6f6e66;outline-offset:2px}

/* En-tête sur ordinateur : une seule ligne, le menu latéral porte la navigation de l'espace. */
@media(min-width:901px){
  .app-shell.has-workspace .site-header .header-inner:has(.header-account){flex-wrap:nowrap;padding-block:0;row-gap:0}
  .app-shell.has-workspace .header-account{order:0;flex-basis:auto;border:0;padding:5px 0;min-height:44px;max-width:220px}
  .app-shell.has-workspace .header-account-copy{flex-direction:column;align-items:flex-start;gap:2px}
}
@media(min-width:901px) and (max-width:1180px){
  .app-shell.has-workspace .header-account-copy{display:none}
}

/* Tableau de bord du client. */
.dash{display:flex;flex-direction:column;gap:24px}
.dash-hero{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;flex-wrap:wrap}
.dash-greeting{font-size:clamp(30px,4vw,46px);line-height:1.1;margin:0;letter-spacing:-.025em;color:var(--deep);overflow-wrap:anywhere;text-wrap:balance}
.dash-sub{margin:10px 0 0;font-size:18px;color:var(--muted)}
.dash-btn{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:48px;padding:0 22px;border-radius:12px;border:1.5px solid transparent;font:inherit;font-size:15px;font-weight:700;line-height:1.2;text-decoration:none;cursor:pointer;transition:background .15s,border-color .15s}
.dash-btn-primary{background:var(--dash-orange);border-color:var(--dash-orange);color:#fff}
.dash-btn-primary:hover{background:#b64415;border-color:#b64415}
.dash-btn-teal{background:var(--dash-teal);border-color:var(--dash-teal);color:#fff}
.dash-btn-teal:hover{background:#084848}
.dash-btn-ghost{background:#fff;border-color:#c8d6d3;color:var(--ink)}
.dash-btn-ghost:hover{background:#f2f7f5}
.dash-new{min-height:56px;padding:0 30px;font-size:18px;box-shadow:0 6px 16px #cf4f1740}

.dash-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}
.dash-stat{display:flex;align-items:center;gap:16px;min-height:96px;padding:18px 20px;background:#fff;border:1px solid var(--dash-line);border-radius:18px;box-shadow:var(--dash-shadow);font:inherit;color:inherit;text-align:start;cursor:pointer}
.dash-stat:hover{border-color:#bcd3cf}
.dash-stat.is-active{border-color:var(--dash-teal);box-shadow:0 0 0 2px #0a5c5c2b,var(--dash-shadow)}
.dash-stat-icon{display:grid;place-items:center;width:58px;height:58px;border-radius:16px;flex:none}
.tone-teal{background:#dcefec;color:#0a6f6e}
.tone-orange{background:#fde8da;color:#d4541c}
.tone-amber{background:#fdefd9;color:#d58a1c}
.tone-green{background:#dff2e4;color:#2a8a4b}
.dash-stat-text{display:flex;flex-direction:column;gap:3px;min-width:0}
.dash-stat-text strong{font-size:34px;line-height:1;font-weight:800;color:var(--ink)}
.dash-stat-text span{font-size:16px;color:#4b6162;white-space:nowrap}

.dash-banner{display:flex;align-items:center;gap:20px;padding:20px 26px;border-radius:18px;border-inline-start:6px solid var(--dash-orange);background:linear-gradient(90deg,#fdecdc,#fef6ee);color:inherit;text-decoration:none}
.dash-banner:hover{background:linear-gradient(90deg,#fce6d1,#fef3e8)}
.dash-banner-icon{display:grid;place-items:center;width:60px;height:60px;border-radius:50%;background:#fbdcc6;color:var(--dash-orange);flex:none}
.dash-banner-text{display:flex;flex-direction:column;gap:4px;flex:1;min-width:0}
.dash-banner-text>strong{font-size:26px;line-height:1.15;color:var(--dash-orange)}
.dash-banner-text>span{font-size:17px;color:#4a5a5b}
.dash-banner-action{padding:14px 26px;border:1.5px solid var(--dash-orange);border-radius:12px;color:var(--dash-orange);font-weight:700;white-space:nowrap}
.dash-banner-chevron{display:none;color:var(--dash-orange)}

.dash-requests h2{font-size:30px;margin:8px 0 16px;letter-spacing:-.015em;color:var(--deep)}
.dash-filters{display:flex;gap:12px;flex-wrap:wrap;margin-bottom:22px}
.dash-filter{min-height:46px;padding:0 24px;border:1px solid var(--dash-line);border-radius:999px;background:#fff;font:inherit;font-size:16px;color:var(--ink);cursor:pointer;white-space:nowrap}
.dash-filter:hover{background:#f2f7f5}
.dash-filter.is-active{background:var(--dash-teal);border-color:var(--dash-teal);color:#fff;font-weight:700}
.dash-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px;align-items:start}
.dash-card{position:relative;display:flex;flex-direction:column;gap:12px;padding:20px 22px;background:#fff;border:1px solid var(--dash-line);border-radius:18px;box-shadow:var(--dash-shadow);min-width:0}
.dash-card-head{display:flex;align-items:center;gap:14px;padding-bottom:14px;border-bottom:1px solid var(--dash-line)}
.dash-avatar{display:inline-flex;flex:none}
.dash-avatar .provider-portrait{width:58px;height:58px;font-size:19px;border:2px solid #fff;box-shadow:0 0 0 1px var(--dash-line)}
.dash-who{display:flex;flex-direction:column;gap:3px;flex:1;min-width:0}
.dash-name{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.dash-name>strong{font-size:18px;overflow-wrap:anywhere}
.dash-profession{font-size:15px;color:var(--muted)}
.dash-chip{display:inline-flex;align-items:center;gap:6px;padding:5px 12px;border-radius:999px;font-size:14px;font-weight:600;white-space:nowrap}
.dash-chip-open{background:#dcefec;color:#0a6f6e}
.dash-chip-confirm{background:#fde9d3;color:#c2531b}
.dash-chip-done{background:#dff3e5;color:#23803f}
.dash-chip-closed{background:#eceeed;color:#5b696a}
.dash-trade{display:grid;place-items:center;width:62px;height:62px;border-radius:50%;background:#e7f1ee;color:var(--teal);font-size:28px;flex:none}
.dash-title{margin:2px 0 0;font-size:21px;line-height:1.3;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}
.dash-meta{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin:0;font-size:16px;color:var(--muted)}
.dash-meta .ico{color:#6d8283}
.dash-actions{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin-top:4px}
.dash-review{display:flex;align-items:center;flex-wrap:wrap;gap:6px 16px;flex:1;min-width:0}
.dash-review-note{display:inline-flex;align-items:center;gap:6px;font-size:15px;color:#23803f}
.dash-link{font-size:14px;font-weight:600;color:var(--teal)}
.dash-empty{padding:36px 24px;border:1px dashed #c8d6d3;border-radius:18px;background:#fafcfb;text-align:center}
.dash-empty h3{margin:0 0 6px;font-size:22px}
.dash-empty p{margin:0 0 18px;color:var(--muted)}
.dash-empty .dash-btn{margin-inline:auto}

/* Tableau de bord du prestataire : profil, demandes à traiter et échanges. */
.pd-hero{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"copy cta" "profile profile";gap:18px 24px;align-items:start}
.pd-copy{grid-area:copy;min-width:0}
.pd-eyebrow{display:block;margin-bottom:10px;font-size:12px;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:var(--teal)}
.pd-title{font-size:clamp(30px,4vw,46px);line-height:1.1;margin:0;letter-spacing:-.025em;color:var(--deep);text-wrap:balance}
.pd-sub{margin:10px 0 0;font-size:17px;color:var(--muted);overflow-wrap:anywhere}
.pd-cta{grid-area:cta;display:flex;align-items:center;flex-wrap:wrap;gap:12px;align-self:center}
.pd-messages{position:relative}
.pd-profile{grid-area:profile;display:flex;flex-direction:column;gap:10px;padding:20px 22px;background:#fff;border:1px solid var(--dash-line);border-radius:18px;box-shadow:var(--dash-shadow)}
.pd-profile-head{display:flex;align-items:center;gap:14px}
.pd-profile-head .provider-portrait{width:58px;height:58px;font-size:19px;border:2px solid #fff;box-shadow:0 0 0 1px var(--dash-line)}
.pd-profile-who{display:flex;flex-direction:column;gap:3px;flex:1;min-width:0}
.pd-profile-who strong{font-size:20px;overflow-wrap:anywhere}
.pd-profile-who span{font-size:15px;color:var(--muted)}
.pd-profile-meta{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin:0;font-size:15px;color:var(--muted)}
.pd-profile-link{display:inline-flex;align-items:center;gap:6px;width:fit-content;font-size:15px;font-weight:700;color:var(--teal)}
.pd-profile-note{margin:0;padding:10px 12px;border-radius:10px;background:#fdf1dd;font-size:14px;line-height:1.5;color:#85571a}
.pd-client-icon{display:grid;place-items:center;width:52px;height:52px;border-radius:14px;background:#e7f1ee;color:var(--teal);flex:none}
.pd-tags{display:flex;flex-wrap:wrap;gap:8px;margin:0}
.pd-tag{display:inline-flex;align-items:center;gap:6px;padding:4px 10px;border-radius:999px;background:#eef3f2;color:#41585a;font-size:13px;font-weight:600}
.pd-tag-urgent{background:#fde9d3;color:#c2531b}
.dash-chip-new{background:#fde9d3;color:#c2531b}
.pd-messages .ws-badge{margin-inline-start:2px}

/* Tablette et téléphone : onglets en bas, cartes empilées. */
@media(max-width:900px){
  .only-desktop{display:none}
  .only-phone{display:inline}
  .ws-shell{display:block;width:calc(100% - 32px);padding-block:14px 24px}
  .ws-sidebar{display:none}
  .app-shell.has-workspace{padding-bottom:82px}
  .ws-tabbar{display:grid;grid-auto-flow:column;grid-auto-columns:1fr;position:fixed;inset-inline:0;bottom:0;z-index:40;padding:6px 4px calc(6px + env(safe-area-inset-bottom,0px));background:#fff;border-top:1px solid var(--dash-line);box-shadow:0 -6px 18px #102a2c10}
  .ws-tab{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-height:56px;padding:4px 2px;font-size:12px;font-weight:600;color:#5a6e6f;text-decoration:none}
  .ws-tab.is-active{color:var(--deep);font-weight:700}
  .ws-tab-icon{position:relative;display:inline-flex}
  .ws-tab-icon .ws-badge{position:absolute;top:-6px;inset-inline-start:55%;min-width:18px;height:18px;padding:0 4px;font-size:11px}
  .ws-tab-label{white-space:nowrap}

  .app-shell.has-workspace .menu-toggle,.app-shell.has-workspace .main-nav{display:none}
  .app-shell.has-workspace .site-header .header-inner,.app-shell.has-workspace .site-header .header-inner:has(.header-account){flex-wrap:nowrap;min-height:66px;gap:8px;padding-block:0;row-gap:0}
  .app-shell.has-workspace .header-account{order:3;flex-basis:auto;border:0;padding:0;min-height:0;max-width:none}
  .app-shell.has-workspace .header-account-copy{display:none}
  .app-shell.has-workspace .header-actions{margin-inline-start:auto;gap:2px}
  .app-shell.has-workspace .header-bell{display:inline-flex}
  .app-shell.has-workspace .logout-text{display:none}
  .app-shell.has-workspace .logout-icon{display:inline-block}
  .app-shell.has-workspace .logout-button{min-width:44px;min-height:44px;padding:0;border:0;background:transparent;width:auto}

  .dash{gap:18px}
  .dash-hero{flex-direction:column;align-items:stretch;gap:16px}
  .dash-greeting{font-size:34px}
  .dash-sub{font-size:16px;margin-top:6px}
  .dash-new{width:100%;min-height:58px;font-size:18px}
  .dash-stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
  .dash-stat{min-height:84px;padding:14px 16px;gap:12px;border-radius:16px}
  .dash-stat-icon{width:44px;height:44px;border-radius:12px;background:transparent}
  .dash-stat-icon .ico{width:32px;height:32px}
  .dash-stat-text strong{font-size:30px}
  .dash-stat-text span{font-size:15px}
  .dash-banner{gap:14px;padding:14px 16px;border-inline-start:0;border-radius:16px;background:#fdeee0}
  .dash-banner-icon{width:44px;height:44px;background:transparent;border-inline-end:1px solid #f0cdb4;border-radius:0;padding-inline-end:12px;width:56px}
  .dash-banner-text>strong{font-size:20px}
  .dash-banner-text>span{font-size:15px}
  .dash-banner-chevron{display:inline-flex}
  .dash-requests h2{font-size:26px;margin:4px 0 12px}
  .dash-filters{flex-wrap:nowrap;overflow-x:auto;padding-bottom:6px;margin-bottom:14px;scrollbar-width:none}
  .dash-filters::-webkit-scrollbar{display:none}
  .dash-filter{flex:none;min-height:42px;padding:0 20px;font-size:15px}
  .dash-grid{grid-template-columns:minmax(0,1fr);gap:14px}
  .dash-card{padding:16px}
  .dash-card-head{padding-bottom:12px;padding-inline-end:112px}
  .dash-avatar .provider-portrait{width:56px;height:56px;border-radius:10px}
  .dash-chip{position:absolute;top:18px;inset-inline-end:16px}
  .dash-trade{display:none}
  .dash-title{font-size:20px}
  .dash-actions{flex-direction:column;align-items:stretch;gap:6px}
  .dash-actions .dash-btn-primary,.dash-actions .dash-btn-teal{width:100%;min-height:52px}
  .dash-actions .dash-btn-ghost{border-color:transparent;background:transparent;color:var(--teal);min-height:44px}
  .dash-review{justify-content:space-between}
  .dash-review+.dash-btn-ghost{align-self:flex-end}
}
@media(max-width:420px){
  .dash-greeting{font-size:30px}
  .dash-stat{padding:14px 12px;gap:10px}
  .dash-stat-icon{width:36px;height:36px}
  .dash-stat-icon .ico{width:28px;height:28px}
  .dash-stat-text span{font-size:14px}
}
