/* Accueil QIMS : grille de tuiles sur toute la largeur. */
body.facbox-home .layout {max-width:1920px;grid-template-columns:minmax(0,1fr);padding:24px 28px 42px}
body.facbox-home .sidebar,body.facbox-home .right {display:none}
.qhome-intro {display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:22px}
.qhome-intro h1 {font-size:26px;margin:0 0 3px}
.qhome-intro p {font-size:13px;color:var(--muted);margin:0}
.qhome-quick {display:flex;flex-wrap:wrap;justify-content:center;gap:6px;margin:0 auto 46px}
.qhome-tile {display:flex;position:relative;min-width:0;flex-direction:column;justify-content:center;align-items:center;text-align:center;padding:12px 8px 10px;border:1px solid #245b88;border-radius:5px;background:linear-gradient(to bottom,#3e84b9 0%,#397aaa 50%,#28618e 50%,#255985 100%);color:#fff;line-height:1.3;box-shadow:0 1px 2px #00000012;transition:filter .15s,transform .15s}
a.qhome-tile:hover {filter:brightness(1.12);transform:translateY(-2px)}
.qhome-create-tile.active {border:3px solid #ffcc42;background:linear-gradient(to bottom,#5ca5dc 0%,#448dc4 50%,#286a9d 50%,#205b89 100%);box-shadow:0 0 0 3px #ffcc4240,0 3px 12px #00000030;filter:brightness(1.1)}
html[data-theme="dark"] .qhome-create-tile.active {border-color:#ffcc42;background:linear-gradient(to bottom,#397ba9 0%,#32749e 50%,#255a81 50%,#204e72 100%)}
.qhome-quick-tile {width:200px;min-height:126px}
/* Raccourcis du clavier sur les tuiles de l'accueil, réservés au mode bureau. */
.qhome-keycap{
  position:absolute;top:8px;right:9px;display:inline-flex;
  align-items:center;justify-content:center;min-width:28px;height:24px;
  padding:0 5px;box-sizing:border-box;
  border:1px solid #b5bdc8;border-bottom:3px solid #8793a3;
  border-radius:5px;background:linear-gradient(#fff,#e8edf4);
  color:#334155;box-shadow:0 2px 1px #0003;
  font:700 11px/1 system-ui,sans-serif;letter-spacing:.02em;
  opacity:0;visibility:hidden;transform:translateY(3px);
  transition:opacity .15s ease,transform .15s ease,visibility .15s
}
.qhome-quick-tile:hover .qhome-keycap,
.qhome-quick-tile:focus-visible .qhome-keycap{
  opacity:1;visibility:visible;transform:translateY(0)
}
@media(max-width:700px), (pointer:coarse){
  .qhome-keycap{display:none}
}
.qhome-icon {font-size:35px;line-height:1;height:39px;margin-bottom:5px;font-weight:600}
.qhome-title {font-size:21px;line-height:1.2;font-weight:450}
.qhome-description {font-size:12px;margin-top:5px;max-width:175px}
.qhome-soon {position:absolute;right:7px;top:6px;font-size:9px;padding:2px 5px;border-radius:4px;background:#ffffff24}
.qhome-tile.is-unavailable {opacity:.65;filter:saturate(.7);cursor:default}
.qhome-create h2 {font-size:24px;text-align:center;font-weight:450;margin:0 0 24px;padding-bottom:12px;border-bottom:1px solid var(--line)}
.qhome-grid {display:grid;grid-template-columns:repeat(9,minmax(0,1fr));gap:6px}
.qhome-create-tile {min-height:124px}
.qhome-create-tile .qhome-title {font-size:clamp(15px,1.2vw,21px)}
.qhome-create-tile .qhome-description {font-size:11px}
html[data-theme="dark"] .qhome-tile {border-color:#47718d;background:linear-gradient(to bottom,#275b80 0%,#275b80 50%,#1e4667 50%,#1b405f 100%)}
@media(max-width:1500px){.qhome-grid{grid-template-columns:repeat(6,minmax(0,1fr))}}
@media(max-width:1000px){.qhome-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:700px){body.facbox-home .layout{padding:18px 12px 30px}.qhome-quick{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin-bottom:30px}.qhome-quick-tile{width:auto;min-height:112px}.qhome-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.qhome-create-tile{min-height:115px}.qhome-create-tile .qhome-title{font-size:18px}.qhome-create h2{font-size:22px}}

/* Présentation FACBOX sur l'accueil */
.qhome-presentation{max-width:940px;margin:0 auto 27px;padding:25px 30px 23px;text-align:center;border:1px solid var(--line);border-radius:15px;background:var(--panel);box-shadow:0 7px 25px #0000000a}
.qhome-presentation-eyebrow{display:block;margin-bottom:9px;color:#277eb7;font-size:11px;font-weight:800;letter-spacing:.12em;text-transform:uppercase}
.qhome-presentation h2{margin:0 0 11px;font-size:clamp(25px,3vw,36px);font-weight:800;letter-spacing:-.035em;line-height:1.15}
.qhome-presentation h2 span{color:#2787c1}
.qhome-presentation p{max-width:750px;margin:0 auto;color:var(--text);font-size:15px;line-height:1.65}
.qhome-presentation .qhome-presentation-sub{margin-top:7px;color:var(--muted);font-size:14px}
.qhome-presentation-tags{display:flex;justify-content:center;flex-wrap:wrap;gap:7px;margin-top:18px}
.qhome-presentation-tags span{display:inline-flex;align-items:center;padding:5px 11px;border:1px solid var(--line);border-radius:99px;background:color-mix(in srgb,var(--panel) 85%,#2787c1);color:var(--text);font-size:11px;font-weight:700}
html[data-theme="dark"] .qhome-presentation-eyebrow,html[data-theme="dark"] .qhome-presentation h2 span{color:#83c8f4}
@media(max-width:700px){.qhome-presentation{padding:21px 15px 20px;margin-bottom:20px}.qhome-presentation p{font-size:13px}.qhome-presentation .qhome-presentation-sub{font-size:12px}.qhome-presentation-tags{gap:5px}.qhome-presentation-tags span{font-size:10px;padding:4px 8px}}



/* Nouveau document : centrer les tuiles, y compris en mode simplifié. */
.qhome-create .qhome-grid{display:flex;flex-wrap:wrap;justify-content:center;gap:6px}
.qhome-create .qhome-create-tile{flex:0 0 170px;max-width:100%}
@media(max-width:700px){.qhome-create .qhome-create-tile{flex:0 1 calc(50% - 4px)}}

.qhome-voice-highlight{display:flex;align-items:center;gap:15px;text-align:left;width:min(100%,690px);box-sizing:border-box;margin:16px auto 18px;padding:16px 20px;border:1px solid var(--blue);border-radius:12px;background:var(--soft)}
.qhome-voice-icon{flex:none;font-size:32px;line-height:1}
.qhome-voice-highlight div{display:flex;flex-direction:column;gap:4px}
.qhome-voice-highlight strong{font-size:19px;line-height:1.3;color:var(--text)}
.qhome-voice-highlight div span{color:var(--muted);font-size:13px;line-height:1.5}
@media(max-width:700px){.qhome-voice-highlight{padding:13px 14px;gap:10px}.qhome-voice-icon{font-size:25px}.qhome-voice-highlight strong{font-size:16px}}


/* Accueil administrateur : échéancier récurrent compact et lisible. */
.qhome-dues{max-width:1260px;margin:0 auto 32px;padding:23px 24px 18px;
  box-sizing:border-box;border:1px solid var(--line);border-radius:18px;
  background:var(--panel);box-shadow:0 12px 32px #0b244018}
.qhome-dues-heading{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:18px;margin-bottom:22px}
.qhome-dues-heading-left{display:flex;gap:15px;align-items:center;min-width:0}
.qhome-dues-logo{width:50px;height:50px;display:grid;place-items:center;flex-shrink:0;border-radius:15px;
  font-size:35px;line-height:1;background:linear-gradient(135deg,#1d82c2,#3656a0);color:#fff;
  box-shadow:0 5px 15px #1671af30}
.qhome-dues-eyebrow{display:flex;align-items:center;gap:9px;color:var(--muted);font-size:11px;font-weight:700;letter-spacing:.045em}
.qhome-dues-admin{display:inline-flex;padding:3px 8px;border-radius:5px;background:#e9b74a;color:#382700;
  font-size:10px;font-weight:900;letter-spacing:.09em}
.qhome-dues-heading h2{margin:6px 0 2px;font-size:clamp(20px,2.1vw,27px);line-height:1.2;letter-spacing:-.025em;color:var(--text)}
.qhome-dues-heading p{font-size:12px;color:var(--muted);margin:4px 0 0}
.qhome-dues-controls{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:9px}
.qhome-dues-controls label{font-size:12px;color:var(--muted)}
.qhome-dues-controls select{padding:7px 28px 7px 9px;border:1px solid var(--line);border-radius:8px;background:var(--soft);color:var(--text);font:inherit;font-size:12px}
.qhome-dues-alert{border-radius:99px;padding:5px 10px;background:#fbe2df;color:#9e2b25;font-size:11px;font-weight:800}
.qhome-dues-all{display:inline-flex;align-items:center;gap:7px;text-decoration:none!important;font-size:12px;font-weight:750;
  color:var(--text)!important;border:1px solid var(--line);border-radius:8px;padding:8px 11px;background:var(--soft)}
.qhome-dues-all:hover{filter:brightness(1.08)}
.qhome-dues-columns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.qhome-dues-column{min-width:0;border:1px solid var(--line);border-radius:13px;overflow:hidden;background:var(--soft)}
.qhome-dues-colhead{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;padding:16px 15px 14px}
.qhome-dues-coltitle{display:flex;align-items:flex-start;min-width:0;gap:9px}
.qhome-dues-dot{display:block;width:10px;height:10px;margin-top:5px;flex:none;border-radius:50%;background:var(--dues-accent);box-shadow:0 0 0 4px color-mix(in srgb,var(--dues-accent) 17%,transparent)}
.qhome-dues-coltitle h3{margin:0 0 4px;font-size:16px;font-weight:800;color:var(--text)}
.qhome-dues-coltitle small{display:block;color:var(--muted);font-size:11px;line-height:1.4}
.qhome-dues-total{font-weight:800;color:var(--text);font-size:17px;white-space:nowrap}
.qhome-dues-items{padding:0 10px;max-height:510px;overflow:auto}
.qhome-dues-item{display:grid;grid-template-columns:7px minmax(0,1fr) auto;align-items:center;gap:10px;
  margin-bottom:6px;padding:11px 10px;border:1px solid var(--line);border-radius:9px;background:var(--panel)}
.qhome-dues-status{width:6px;height:28px;border-radius:9px;background:#3f9c7c}
.qhome-dues-status.late{background:#dc5b50}
.qhome-dues-status.today{background:#e6aa39}
.qhome-dues-itemmain{min-width:0;display:flex;flex-direction:column;gap:3px}
.qhome-dues-itemmain strong{font-size:12px;font-weight:750;color:var(--text);overflow-wrap:anywhere}
.qhome-dues-itemmain span{color:var(--muted);font-size:11px;overflow-wrap:anywhere}
.qhome-dues-itemmain a{font-weight:750;text-decoration:none;color:var(--blue,#247cb9)}
.qhome-dues-itemmain a:hover{text-decoration:underline}
.qhome-dues-itemend{display:flex;flex-direction:column;align-items:flex-end;gap:5px;text-align:right}
.qhome-dues-itemend strong{font-size:12px;white-space:nowrap;color:var(--text)}
.qhome-dues-itemend time{font-size:10px;white-space:nowrap;font-weight:700;color:#338565}
.qhome-dues-itemend time.late{color:#d8544a}
.qhome-dues-itemend time.today{color:#ad7b1e}
.qhome-dues-empty{text-align:center;padding:28px 8px;color:var(--muted);font-size:12px}
.qhome-dues-colfooter{display:flex;justify-content:center;gap:8px;align-items:center;text-decoration:none!important;
  font-size:12px;font-weight:750;padding:13px;color:var(--text)!important}
.qhome-dues-colfooter:hover{background:color-mix(in srgb,var(--panel) 65%,transparent)}
.qhome-dues-footnote{font-size:11px!important;color:var(--muted)!important;margin:15px 0 0!important;line-height:1.45}
.qhome-dues-error{font-size:12px;color:#ba4439;margin:0 0 12px}
html[data-theme="dark"] .qhome-dues-admin{background:#8d6821;color:#fff0c6}
html[data-theme="dark"] .qhome-dues-alert{background:#592c30;color:#ffc3c1}
html[data-theme="dark"] .qhome-dues-itemend time.future{color:#75d1a5}
html[data-theme="dark"] .qhome-dues-itemend time.late{color:#ff9f94}
@media(max-width:950px){.qhome-dues-columns{grid-template-columns:minmax(0,1fr)}}
@media(max-width:700px){
  .qhome-dues{padding:15px 12px;margin-bottom:22px;border-radius:13px}
  .qhome-dues-logo{width:40px;height:40px;font-size:28px;border-radius:11px}
  .qhome-dues-heading-left{gap:10px}
  .qhome-dues-heading{margin-bottom:14px}
  .qhome-dues-controls{justify-content:flex-start}
  .qhome-dues-item{grid-template-columns:5px minmax(0,1fr) auto;gap:7px;padding:9px 7px}
  .qhome-dues-itemend time{white-space:normal}
  .qhome-dues-colhead{flex-wrap:wrap}
}
