/* Pied de page commun à toutes les pages ; sur l'accueil (palette bleu marine), textes secondaires bleutés, quelle que soit la largeur. */
.home-theme .site-footer .footer-inner>p,.home-theme .site-footer .footer-inner>span,.home-theme .site-footer .footer-note,.home-theme .site-footer .footer-note a{color:#c4d5e9}

/* Téléphone (800 px ou moins) : toutes les pages (publiques et espace personnel) reprennent le thème de l'accueil :
   bleu marine, orange, fond clair et cartes blanches arrondies. L'administration garde son propre thème. */
@media(max-width:800px){
  /* Palette de l'accueil : remplace le thème sarcelle pour tous les composants qui utilisent les variables communes. */
  .app-shell:not(.has-admin){--ink:#0e2b4e;--teal:#15558e;--deep:#0e2949;--accent:#fa8a1b;--cream:#f4f6fb;--muted:#607998;--line:#dce4f0;color:var(--ink);background:#f4f6fb}
  /* En-tête de l'accueil et onglets du bas à la place de l'en-tête classique ; les liens À propos, Aide et Contact sont dans le menu. */
  .app-shell:not(.has-admin) .site-header,.app-shell:not(.has-admin) .public-links{display:none}
  .app-shell.has-mobile-nav{padding-bottom:calc(70px + env(safe-area-inset-bottom,0px))}
  /* Boutons, formulaires et cartes communs. */
  .app-shell:not(.has-admin) .button:not(.secondary){color:#0d294a}
  .app-shell:not(.has-admin) .button:not(.secondary):hover{background:#ff9c38}
  .app-shell:not(.has-admin) .button{border-radius:11px}
  .app-shell:not(.has-admin) .eyebrow{color:#b75700}
  /* Priorité volontairement minimale (:where) : les champs propres à un composant, comme la recherche de l'accueil, gardent leur style. */
  :where(.app-shell:not(.has-admin)) input:where(:not([type=checkbox],[type=radio])),:where(.app-shell:not(.has-admin)) select,:where(.app-shell:not(.has-admin)) textarea{border-color:#cfd9e8;border-radius:11px;background:#fff}
  :where(.app-shell:not(.has-admin)) input:focus-visible,:where(.app-shell:not(.has-admin)) select:focus-visible,:where(.app-shell:not(.has-admin)) textarea:focus-visible{outline:2px solid #e67c19;outline-offset:1px}
  .app-shell:not(.has-admin) .auth-card,.app-shell:not(.has-admin) .profile-panel{border-color:#dce4f0;border-radius:14px}
  .app-shell:not(.has-admin) .notice{background:#eef3fb;border-color:#d4e0f1;border-radius:12px;color:#17395b}
  .app-shell:not(.has-admin) .notice.error{background:#fff4ef;border-color:#f1d2c5;color:#853b26}
  .app-shell:not(.has-admin) .notice.success{background:#edf7e9;border-color:#d6e7df;color:#265c29}
  .app-shell:not(.has-admin) .status{background:#e4ecf8;color:#113965}
  .app-shell:not(.has-admin) .account-option.selected{background:#eef3fb;border-color:#15558e}
  .app-shell:not(.has-admin) .filter-panel,.app-shell:not(.has-admin) .quote-panel{background:#f4f6fb}
  .app-shell:not(.has-admin) .service-tag{background:#e4ecf8;color:#113965}
  .app-shell:not(.has-admin) .availability-day-label.is-unknown{background:#e8edf5}
  .app-shell:not(.has-admin) .empty-state{background:#fff;border-color:#c7d5e5;border-radius:14px}
  .app-shell:not(.has-admin) .chat-head-text p,.app-shell:not(.has-admin) .chat-item-preview{color:#607998}
  .app-shell:not(.has-admin) .chat-btn-ghost,.app-shell:not(.has-admin) .chat-search{border-color:#dce4f0}
  .app-shell:not(.has-admin) .chat-search,.app-shell:not(.has-admin) .chat-search svg{color:#607998}
  .app-shell:not(.has-admin) .chat-item.is-active,.app-shell:not(.has-admin) .chat-item:hover{background:#eef3fb}
  /* Pied de page : bleu marine de l'accueil, textes secondaires bleutés. */
  .app-shell:not(.has-admin) .site-footer .footer-inner>p,.app-shell:not(.has-admin) .site-footer .footer-inner>span,.app-shell:not(.has-admin) .site-footer .footer-note,.app-shell:not(.has-admin) .site-footer .footer-note a{color:#c4d5e9}
}
@media(max-width:800px){
  .app-shell.has-workspace{--ink:#0e2b4e;--teal:#15558e;--deep:#0e2949;--accent:#fa8a1b;--cream:#f4f6fb;--muted:#607998;--line:#dce4f0;--dash-teal:#15558e;--dash-orange:#fa8a1b;--dash-line:#dce4f0;--dash-shadow:none;--chat-teal:#0e2949;--chat-deep:#0e2949;--chat-orange:#fa8a1b;--chat-line:#dce4f0;--chat-shadow:none;color:var(--ink);background:#f4f6fb}
  .app-shell.has-workspace .chat-btn-primary,.app-shell.has-workspace .chat-cta-button,.app-shell.has-workspace .chat-send{color:#0d294a}
  .app-shell.has-workspace .chat-btn-outline{color:#a44f00}
  /* En-tête de l'accueil (barre marine, logo sur pastille blanche) à la place de l'en-tête classique. */
  .app-shell.has-workspace .site-header,.app-shell.has-workspace .public-links{display:none}
  .app-shell.has-workspace .ws-shell{padding-block:0 24px}
  .app-shell.has-workspace .ws-shell main .section{padding-block:0 8px}

  /* Onglets du bas : style de la barre de l'accueil. */
  .app-shell.has-workspace .ws-tabbar{align-items:end;min-height:68px;padding:5px 8px calc(6px + env(safe-area-inset-bottom,0px));border-top:1px solid #dce4f0;background:#fff;box-shadow:0 -4px 20px #16375a05}
  .app-shell.has-workspace .ws-tab{justify-content:flex-end;gap:3px;min-height:51px;font-size:11px;font-weight:400;line-height:1.25;color:#536e8b}
  .app-shell.has-workspace .ws-tab-icon{min-height:26px;align-items:center;justify-content:center;color:#173f6d}
  .app-shell.has-workspace .ws-tab.is-active{font-weight:600;color:#0e2949}
  .app-shell.has-workspace .ws-tab.is-active .ws-tab-icon{color:#0d3763}
  .app-shell.has-workspace .ws-badge{background:#fa8a1b;color:#0e2949;font-size:9px;font-weight:700}
  .app-shell.has-workspace .ws-tab-icon .ws-badge{top:-5px;inset-inline-start:auto;inset-inline-end:-8px;min-width:16px;height:16px;padding:0 4px}

  /* Bandeau d'accueil du tableau de bord : bleu marine à coins arrondis, comme l'accueil. */
  .app-shell.has-workspace .pd-hero,.app-shell.has-workspace .dash-hero{display:flex;flex-direction:column;align-items:stretch;gap:14px;margin:0 -16px;padding:4px 16px 22px;background:#0e2949;border-radius:0 0 25px 25px;color:#fff}
  .app-shell.has-workspace .pd-eyebrow{display:none}
  .app-shell.has-workspace .pd-title,.app-shell.has-workspace .dash-greeting{margin:0;font-size:25px;font-weight:750;line-height:1.24;letter-spacing:-.025em;color:#fff}
  .app-shell.has-workspace .pd-sub,.app-shell.has-workspace .dash-sub{margin:8px 0 0;font-size:14px;line-height:1.55;color:#cfdeef}
  .app-shell.has-workspace .pd-profile{gap:8px;padding:14px;border:0;border-radius:15px;box-shadow:0 12px 28px #06182d22}
  .app-shell.has-workspace .pd-profile-head{gap:12px;align-items:flex-start;flex-wrap:wrap}
  .app-shell.has-workspace .pd-profile-head .provider-portrait{width:52px;height:52px;border-radius:12px;box-shadow:none}
  .app-shell.has-workspace .pd-profile-who{min-width:calc(100% - 140px)}
  .app-shell.has-workspace .pd-profile-who strong{font-size:18px;color:#0e2b4e}
  .app-shell.has-workspace .pd-profile-who span{font-size:13px;color:#607998}
  .app-shell.has-workspace .pd-profile-head .dash-chip{position:static;order:3;margin-inline-start:64px}
  .app-shell.has-workspace .pd-profile-meta{font-size:13px;color:#607998}
  .app-shell.has-workspace .pd-profile-link{font-size:14px;font-weight:600;color:#b75700}
  .app-shell.has-workspace .pd-profile-note{background:#fff1df;color:#8f4a00}
  .app-shell.has-workspace .pd-cta{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .app-shell.has-workspace .pd-cta .dash-btn{min-height:48px;padding:0 12px;border-radius:11px;font-size:14px;font-weight:600}
  .app-shell.has-workspace .pd-cta .dash-btn-ghost,.app-shell.has-workspace .pd-cta .dash-btn-ghost:hover{background:#193c63;border-color:#193c63;color:#fff}
  .app-shell.has-workspace .dash-new{width:100%;min-height:48px;border-radius:11px;font-size:15px;font-weight:600;box-shadow:none}

  /* Contenu : cartes blanches à bordure fine, titres de section et boutons de l'accueil. */
  .app-shell.has-workspace .dash{gap:20px}
  .app-shell.has-workspace .dash>.dash-stats,.app-shell.has-workspace .dash>.dash-banner,.app-shell.has-workspace .dash>.dash-requests{margin-top:0}
  .app-shell.has-workspace .dash-stats{gap:10px}
  .app-shell.has-workspace .dash-stat{gap:10px;min-height:66px;padding:10px;border:1px solid #dce4f0;border-radius:14px;background:#fff;box-shadow:none}
  .app-shell.has-workspace .dash-stat.is-active{border-color:#fa8a1b;box-shadow:0 0 0 2px #fa8a1b33}
  .app-shell.has-workspace .dash-stat-icon{width:35px;height:35px;border-radius:9px}
  .app-shell.has-workspace .dash-stat-icon .ico{width:20px;height:20px}
  .app-shell.has-workspace .tone-teal{background:#e4ecf8;color:#113965}
  .app-shell.has-workspace .tone-orange,.app-shell.has-workspace .tone-amber{background:#fff1df;color:#d46500}
  .app-shell.has-workspace .tone-green{background:#e2f4e8;color:#23803f}
  .app-shell.has-workspace .dash-stat-text strong{font-size:24px;font-weight:700;color:#0e2b4e}
  .app-shell.has-workspace .dash-stat-text span{font-size:13px;color:#607998}
  .app-shell.has-workspace .dash-banner{gap:12px;padding:12px 14px;border:1px solid #f6d9b4;border-radius:14px;background:#fff1df}
  .app-shell.has-workspace .dash-banner-icon{width:40px;border-inline-end-color:#f0cdb4;color:#d46500}
  .app-shell.has-workspace .dash-banner-text>strong{font-size:17px;font-weight:600;color:#a44f00}
  .app-shell.has-workspace .dash-banner-text>span{font-size:13px;color:#6b5a48}
  .app-shell.has-workspace .dash-banner-chevron{color:#a44f00}
  .app-shell.has-workspace .dash-requests h2{margin:0 0 11px;font-family:'DM Sans','Noto Sans Arabic',sans-serif;font-size:19px;font-weight:500;letter-spacing:-.02em;color:#0e2b4e}
  .app-shell.has-workspace .dash-filters{gap:8px;margin-bottom:12px}
  .app-shell.has-workspace .dash-filter{min-height:38px;padding:0 16px;border-color:#dce4f0;font-size:14px;color:#0e2b4e}
  .app-shell.has-workspace .dash-filter.is-active{background:#0e2949;border-color:#0e2949;color:#fff}
  .app-shell.has-workspace .dash-grid{gap:10px}
  .app-shell.has-workspace .dash-card{gap:10px;padding:12px;border:1px solid #dce4f0;border-radius:14px;box-shadow:none}
  .app-shell.has-workspace .dash-card-head{border-bottom-color:#e6ebf3}
  .app-shell.has-workspace .dash-name>strong{font-size:16px;font-weight:600;color:#0e2b4e}
  .app-shell.has-workspace .dash-profession{font-size:13px;color:#607998}
  .app-shell.has-workspace .dash-title{font-size:16px;font-weight:500;line-height:1.35;color:#0e2b4e}
  .app-shell.has-workspace .dash-meta{gap:6px;font-size:13px;color:#607998}
  .app-shell.has-workspace .dash-meta .ico{color:#dd6b06}
  .app-shell.has-workspace .dash-chip{padding:4px 10px;font-size:12px}
  .app-shell.has-workspace .dash-chip-open{background:#e4ecf8;color:#113965}
  .app-shell.has-workspace .dash-chip-new,.app-shell.has-workspace .dash-chip-confirm{background:#fff1df;color:#a44f00}
  .app-shell.has-workspace .dash-chip-done{background:#e2f4e8;color:#23803f}
  .app-shell.has-workspace .dash-chip-closed{background:#eef1f6;color:#607998}
  .app-shell.has-workspace .pd-card .dash-card-head{padding-inline-end:96px}
  .app-shell.has-workspace .pd-card .dash-name>strong{font-size:15px}
  .app-shell.has-workspace .pd-client-icon{width:46px;height:46px;border-radius:11px;background:#e4ecf8;color:#113965}
  .app-shell.has-workspace .pd-tag{background:#eef1f6;color:#41566f}
  .app-shell.has-workspace .pd-tag-urgent{background:#fff1df;color:#a44f00}
  .app-shell.has-workspace .dash-btn{border-radius:11px}
  .app-shell.has-workspace .dash-btn-primary{background:#fa8a1b;border-color:#fa8a1b;color:#0d294a}
  .app-shell.has-workspace .dash-btn-primary:hover{background:#ff9c38;border-color:#ff9c38}
  .app-shell.has-workspace .dash-btn-teal{background:#0e2949;border-color:#0e2949;color:#fff}
  .app-shell.has-workspace .dash-btn-teal:hover{background:#193c63}
  .app-shell.has-workspace .dash-actions .dash-btn-ghost{color:#15558e}
  .app-shell.has-workspace .dash-link{color:#15558e}
  .app-shell.has-workspace .dash-empty{border-color:#c7d5e5;border-radius:14px;background:#fff}
}
@media(max-width:400px){
  .app-shell.has-workspace .pd-title,.app-shell.has-workspace .dash-greeting{font-size:22px}
  .app-shell.has-workspace .pd-cta .dash-btn{font-size:13px;padding:0 8px}
}
