/* QG Pro -- LA FEUILLE COMMUNE « CHROME » (12 novembre 2026).
   Les composants des maquettes (client/prototypes/chrome/) que l'app n'a pas, reecrits en
   jetons --qgv-* et prefixes qc- (rien de la base n'est ecrase). Chargee sur chaque page.
   Mode d'emploi, balisage et correspondances : client/prototypes/chrome/CONSTRUCTION.md.
   Ce que l'app a deja ne se refait pas ici : .qgv-panel / ui.panel(), .qgv-btn / ui.btn(),
   .qgv-badge / ui.badge(), .qgv-note / ui.note(), .qgv-table (fiches au telephone),
   ui.field(), ui.drawer(), ui.empty(), ui.section().
   Regles : aucune couleur en dur ; mouvements de 0,6 s au plus ; rien qui clignote en boucle.
   Les textes visibles viennent des traductions (client/modules/chrome.py : cles qc_*). */

/* ---------------------------------------------------------------------------------
   [hidden] : un composant qc- (ou un etat vide) cache l'est vraiment, meme s'il a un display.
   --------------------------------------------------------------------------------- */
[class*="qc-"][hidden], .qgv-empty[hidden], .qgv-note[hidden] { display: none !important; }

/* ---------------------------------------------------------------------------------
   PISTE D'ETAPES NOMMEES (sept pas du parcours, ou quatre pages d'un dossier)
   <ol class="qc-piste"><li class="is-fait"><i></i><span>Prospect</span></li>
                        <li class="is-ici" aria-current="step"><i></i><span>Diagnostic</span></li>
                        <li><i></i><span>Soumission</span></li>…</ol>
   Un <li> peut etre un <a> a l'interieur (<li><a href><i></i><span>…</span></a></li>).
   .qc-piste-compacte : seuls les points (et le nom de l'etape courante).
   --------------------------------------------------------------------------------- */
.qc-piste { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); margin: 0; padding: 0; list-style: none; counter-reset: qc-piste; }
.qc-piste > li { position: relative; min-width: 0; counter-increment: qc-piste; }
.qc-piste > li > a, .qc-piste > li { color: var(--qgv-text-3); text-decoration: none; }
.qc-piste > li, .qc-piste > li > a { display: grid; justify-items: center; align-content: start; gap: 7px; text-align: center; }
.qc-piste > li + li::before {
  content: ""; position: absolute; top: 6px; right: 50%; width: 100%; height: 2px; border-radius: 2px;
  background: var(--qgv-line); transform-origin: left;
}
.qc-piste > li.is-fait + li::before { background: var(--qgv-text); }
.qc-piste i {
  position: relative; z-index: 1; width: 14px; height: 14px; border-radius: 50%; box-sizing: border-box;
  border: 2px solid var(--qgv-line-strong); background: var(--qgv-surface);
  transition: transform var(--qgv-dur-fast) var(--qgv-ease), background var(--qgv-dur) var(--qgv-ease);
}
.qc-piste span { max-width: 100%; padding: 0 2px; font-size: var(--qgv-t-xs); font-weight: 500; line-height: 1.25; overflow-wrap: anywhere; }
.qc-piste .is-fait { color: var(--qgv-text-2); }
.qc-piste .is-fait i { border-color: var(--qgv-text); background: var(--qgv-text); }
.qc-piste .is-ici { color: var(--qgv-text); }
.qc-piste .is-ici span { font-weight: 700; }
.qc-piste .is-ici i { border-color: var(--qgv-text); background: var(--qgv-text); box-shadow: 0 0 0 4px color-mix(in srgb, var(--qgv-text) 16%, transparent); }
.qc-piste a:hover i { transform: scale(1.18); }
.qc-piste a:hover span { color: var(--qgv-text); }
.qc-piste-compacte span { display: none; }
.qc-piste-compacte .is-ici span { display: block; }
@media (max-width: 640px) {
  .qc-piste > li:not(.is-ici) span { display: none; }
  .qc-piste .is-ici span { white-space: nowrap; }
}
@media (prefers-reduced-motion: no-preference) {
  .qc-piste > li.is-fait + li::before { animation: qc-trace .5s var(--qgv-ease) backwards; }
  .qc-piste .is-ici i { animation: qc-pose .45s var(--qgv-ease) .2s backwards; }
}

/* ---------------------------------------------------------------------------------
   TRAITS D'AVANCEMENT (une ligne de liste) : <span class="qc-traits" role="img" aria-label="Étape 2 sur 4">
   <i class="is-fait"></i><i class="is-ici"></i><i></i><i></i></span>
   --------------------------------------------------------------------------------- */
.qc-traits { display: inline-flex; gap: 3px; vertical-align: middle; }
.qc-traits i { width: 15px; height: 5px; border-radius: var(--qgv-r-pill); background: var(--qgv-surface-2); box-shadow: inset 0 0 0 1px var(--qgv-line); }
.qc-traits i.is-fait { background: var(--qgv-text); box-shadow: none; }
.qc-traits i.is-ici { background: var(--qgv-text-3); box-shadow: none; }
@media (prefers-reduced-motion: no-preference) {
  .qc-traits i.is-fait, .qc-traits i.is-ici { animation: qc-trace .4s var(--qgv-ease) backwards; }
  .qc-traits i:nth-child(2) { animation-delay: 40ms; } .qc-traits i:nth-child(3) { animation-delay: 80ms; }
  .qc-traits i:nth-child(n+4) { animation-delay: 120ms; }
}

/* ---------------------------------------------------------------------------------
   STATUT DE RELATION : palette E « Marine et soleil » (choix du patron, 13 novembre 2026 ;
   maquette client/prototypes/statuts/index.html). Une couleur par statut, de trois familles
   bien differentes ; les formes restent : a approcher = blanc a ligne pointillee,
   prospect = anneau, client = cercle plein, client recurrent = cercle plein entoure,
   inactif = cercle pale. Les memes valeurs (version claire) sont dans
   client/donnees/relation_qgpro.py pour les marqueurs de la carte.
   <span class="qc-statut" data-statut="a_approcher|trouve|prospect|client|client_recurrent|client_inactif|client_vip">
     <i></i>Prospect</span>       (le libelle vient de la base : statut de relation du client)
   Ailleurs, n'importe quel element [data-statut] / [data-rel] recoit --mm-rel (sa couleur).
   --------------------------------------------------------------------------------- */
:root {
  --mm-rel-blanc: #ffffff;            /* couleur fixe : a approcher */
  --mm-rel-prospect: #D9A300;         /* couleur fixe : jaune soleil */
  --mm-rel-client: #1E3FA8;           /* couleur fixe : bleu marine */
  --mm-rel-client_recurrent: #C2185B; /* couleur fixe : framboise */
  --mm-rel-client_inactif: #9AA1AB;   /* couleur fixe : gris */
}
:root[data-theme="dark"] {
  --mm-rel-prospect: #F2C744;         /* couleur fixe */
  --mm-rel-client: #6C8BF5;           /* couleur fixe */
  --mm-rel-client_recurrent: #F0679A; /* couleur fixe */
  --mm-rel-client_inactif: #5E636B;   /* couleur fixe */
}
[data-statut="a_approcher"], [data-statut="trouve"], [data-rel="a_approcher"] { --mm-rel: var(--qgv-text-3); }
[data-statut="prospect"], [data-rel="prospect"] { --mm-rel: var(--mm-rel-prospect); }
[data-statut="client"], [data-rel="client"] { --mm-rel: var(--mm-rel-client); }
[data-statut="client_recurrent"], [data-statut="client_vip"], [data-rel="client_recurrent"] { --mm-rel: var(--mm-rel-client_recurrent); }
[data-statut="client_inactif"], [data-rel="client_inactif"] { --mm-rel: var(--mm-rel-client_inactif); }

.qc-statut { display: inline-flex; align-items: center; gap: 7px; font-size: var(--qgv-t-xs); font-weight: 500; color: var(--qgv-text-2); white-space: nowrap; }
.qc-statut > i {
  flex: none; width: 11px; height: 11px; border-radius: 50%; box-sizing: border-box;
  border: 1.5px solid var(--mm-rel, var(--qgv-text)); background: transparent;
}
.qc-statut[data-statut="a_approcher"] > i, .qc-statut[data-statut="trouve"] > i { border-style: dashed; border-color: var(--qgv-text-3); background: var(--mm-rel-blanc); }
.qc-statut[data-statut="prospect"] > i { border-width: 2px; background: color-mix(in srgb, var(--mm-rel) 22%, transparent); }
/* Client : un cercle plein. Client recurrent (avec nous depuis plus d'un an) : un cercle plein
   avec un autre cercle par-dessus, un anneau detache (decision du patron, 13 novembre 2026).
   L'anneau est un « outline » : il ne depend pas de la couleur du fond. */
.qc-statut[data-statut="client"] > i,
.qc-statut[data-statut="client_recurrent"] > i,
.qc-statut[data-statut="client_vip"] > i { background: var(--mm-rel); border-color: var(--mm-rel); }
.qc-statut[data-statut="client_recurrent"] > i,
.qc-statut[data-statut="client_vip"] > i { width: 7px; height: 7px; margin: 2px; outline: 1.5px solid var(--mm-rel); outline-offset: 1.5px; }
.qc-statut[data-statut="client_recurrent"], .qc-statut[data-statut="client_vip"] { color: var(--qgv-text); }
.qc-statut[data-statut="client_inactif"] { color: var(--qgv-text-3); }
.qc-statut[data-statut="client_inactif"] > i { border-color: var(--mm-rel); background: color-mix(in srgb, var(--mm-rel) 45%, var(--qgv-surface)); }
.qc-statut-seul { gap: 0; }  /* le rond seul (libelle en title / aria-label) */

/* ---------------------------------------------------------------------------------
   TYPES DE REUNION, sans couleur : plein, contour, hachure, pointille.
   Marque : <span class="qc-reunion" data-type="diagnostic|cahier|lancement|suivi"><i></i>Diagnostic</span>
   Bloc de calendrier : <div class="qc-reunion-bloc" data-type="…">…</div>
   (types : client/modules/rencontres_mise_en_place.py, RC_TYPES_REUNION)
   --------------------------------------------------------------------------------- */
.qc-reunion { display: inline-flex; align-items: center; gap: 7px; font-size: var(--qgv-t-xs); font-weight: 500; color: var(--qgv-text-2); white-space: nowrap; }
.qc-reunion > i { flex: none; width: 12px; height: 12px; border-radius: 3px; box-sizing: border-box; border: 1.5px solid var(--qgv-text); }
.qc-reunion[data-type="diagnostic"] > i { background: var(--qgv-text); }
.qc-reunion[data-type="cahier"] > i { background: transparent; }
.qc-reunion[data-type="lancement"] > i { background: repeating-linear-gradient(135deg, var(--qgv-text) 0 1.5px, transparent 1.5px 4px); }
.qc-reunion[data-type="suivi"] > i { border-style: dashed; border-color: var(--qgv-text-2); }
.qc-reunion-bloc {
  min-width: 0; padding: 6px 9px; border-radius: var(--qgv-r-sm); font-size: var(--qgv-t-xs); line-height: 1.3; color: var(--qgv-text);
  border: 1.5px solid var(--qgv-text-3); background: var(--qgv-surface);
  transition: transform var(--qgv-dur-fast) var(--qgv-ease), border-color var(--qgv-dur-fast);
}
.qc-reunion-bloc[data-type="diagnostic"] { border-color: var(--qgv-text); background: var(--qgv-text); color: var(--qgv-surface); }
.qc-reunion-bloc[data-type="cahier"] { border-color: var(--qgv-text); background: var(--qgv-surface); }
.qc-reunion-bloc[data-type="lancement"] {   /* hachure en bande a gauche : le texte reste net */
  border-color: var(--qgv-text-2); padding-left: 17px;
  background: repeating-linear-gradient(135deg, var(--qgv-text-2) 0 1.5px, transparent 1.5px 5px) left / 9px 100% no-repeat, var(--qgv-surface);
}
.qc-reunion-bloc[data-type="suivi"] { border-style: dashed; }
a.qc-reunion-bloc { display: block; text-decoration: none; }
a.qc-reunion-bloc:hover { transform: translateY(-1px); }

/* ---------------------------------------------------------------------------------
   DOUBLE MONTANT « a la signature | par mois » (bureau seulement : jamais sur le terrain)
   <div class="qc-montant2"><span><b>13 200,00 $</b><small>à la signature</small></span>
                            <span><b>565,00 $</b><small>par mois</small></span></div>
   textes : qc_a_la_signature, qc_par_mois.  .qc-montant2-grand : pour une vedette.
   --------------------------------------------------------------------------------- */
.qc-montant2 { display: inline-flex; align-items: stretch; gap: var(--qgv-s3); flex-wrap: wrap; font-variant-numeric: tabular-nums; }
.qc-montant2 > span { display: grid; gap: 1px; min-width: 0; }
.qc-montant2 > span + span { padding-left: var(--qgv-s3); border-left: 1px solid var(--qgv-line); }
.qc-montant2 b { font-weight: 700; color: var(--qgv-text); white-space: nowrap; }
.qc-montant2 small { font-size: var(--qgv-t-micro, 11px); color: var(--qgv-text-3); white-space: nowrap; }
.qc-montant2-grand b { font-size: var(--qgv-t-h2); letter-spacing: -.02em; }

/* ---------------------------------------------------------------------------------
   BANDE DE CHIFFRES : <div class="qc-bande"><div><b>6</b><span>dossiers en cours</span></div>…</div>
   (.qc-bande-vif sur un <div> : son chiffre en argent poli)
   --------------------------------------------------------------------------------- */
.qc-bande {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 0;
  border: 1px solid var(--qgv-line); border-radius: var(--qgv-r-lg); background: var(--qgv-surface); overflow: hidden;
}
.qc-bande > * { display: grid; align-content: start; gap: 3px; min-width: 0; padding: var(--qgv-s3) var(--qgv-s4); border-left: 1px solid var(--qgv-line); margin-left: -1px; }
.qc-bande b { font-size: var(--qgv-t-h2); font-weight: 700; letter-spacing: -.02em; line-height: 1.1; color: var(--qgv-text); font-variant-numeric: tabular-nums; white-space: nowrap; }
.qc-bande span { font-size: var(--qgv-t-xs); color: var(--qgv-text-3); }
.qc-bande > .qc-bande-vif b {
  background: linear-gradient(120deg, var(--qgv-text-3), var(--qgv-text) 40%, var(--qgv-text-3) 58%, var(--qgv-text));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
a.qc-bande-case, .qc-bande > a { text-decoration: none; transition: background var(--qgv-dur-fast) var(--qgv-ease); }
.qc-bande > a:hover { background: var(--qgv-surface-2); }
@media (max-width: 640px) {
  .qc-bande { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .qc-bande > * { border-top: 1px solid var(--qgv-line); margin-top: -1px; }
}

/* ---------------------------------------------------------------------------------
   GRAND CHIFFRE EN ARGENT POLI : <div class="qc-chiffre">3 615 $<small>/ mois</small></div>
   (.qc-chiffre-moyen : plus petit, pour une carte)
   --------------------------------------------------------------------------------- */
.qc-chiffre {
  display: inline-block; font-size: clamp(38px, 5vw, 58px); font-weight: 700; letter-spacing: -.035em; line-height: 1;
  font-variant-numeric: tabular-nums; white-space: nowrap;
  background: linear-gradient(120deg, var(--qgv-text-3), var(--qgv-text) 40%, var(--qgv-text-3) 58%, var(--qgv-text));
  background-size: 220% 100%; background-position: -60% 0;
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.qc-chiffre small { margin-left: 4px; font-size: .38em; font-weight: 600; letter-spacing: 0; -webkit-text-fill-color: var(--qgv-text-3); color: var(--qgv-text-3); }
.qc-chiffre-moyen { font-size: clamp(28px, 3.4vw, 40px); }
@media (prefers-reduced-motion: no-preference) {
  .qc-chiffre { animation: qc-reflet 1.2s ease-out .15s backwards; }   /* une fois, jamais en boucle */
}

/* ---------------------------------------------------------------------------------
   ETAT EN MOTS (plus leger qu'une puce) : <span class="qc-etat" data-ton="ok|attention|alerte|info">
   <i></i>En attente du client</span>
   --------------------------------------------------------------------------------- */
.qc-etat { display: inline-flex; align-items: center; gap: 7px; font-size: var(--qgv-t-xs); font-weight: 500; color: var(--qgv-text-2); }
.qc-etat > i { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--qgv-text-3); }
.qc-etat[data-ton="ok"] > i { background: var(--qgv-ok); }
.qc-etat[data-ton="attention"] > i { background: var(--qgv-warn); }
.qc-etat[data-ton="alerte"] > i { background: var(--qgv-alert); }
.qc-etat[data-ton="alerte"] { color: var(--qgv-alert); }
.qc-etat[data-ton="info"] > i { background: var(--qgv-info); }

/* ---------------------------------------------------------------------------------
   TEMOIN D'ENREGISTREMENT : <span class="qc-enregistre" data-etat="ok|non|en-cours" role="status"
   aria-live="polite"><i></i>Enregistré</span>   (textes : qc_enregistre, qc_non_enregistre, qc_enregistrement)
   --------------------------------------------------------------------------------- */
.qc-enregistre {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 8px; border-radius: var(--qgv-r-pill);
  font-size: var(--qgv-t-xs); font-weight: 500; white-space: nowrap; color: var(--qgv-text-3);
  box-shadow: inset 0 0 0 1px var(--qgv-line); transition: color var(--qgv-dur) var(--qgv-ease), box-shadow var(--qgv-dur);
}
.qc-enregistre > i { width: 7px; height: 7px; border-radius: 50%; background: var(--qgv-text-3); transition: background var(--qgv-dur); }
.qc-enregistre[data-etat="ok"] { color: var(--qgv-ok); }
.qc-enregistre[data-etat="ok"] > i { background: var(--qgv-ok); }
.qc-enregistre[data-etat="non"] { color: var(--qgv-warn); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--qgv-warn) 45%, transparent); }
.qc-enregistre[data-etat="non"] > i { background: transparent; box-shadow: inset 0 0 0 1.5px var(--qgv-warn); }
@media (prefers-reduced-motion: no-preference) {
  .qc-enregistre[data-etat="ok"] > i { animation: qc-pose .4s var(--qgv-ease); }
  .qc-enregistre[data-etat="en-cours"] > i { animation: qc-souffle .6s ease-in-out 4 alternate; }  /* 2,4 s au plus, puis fixe */
}

/* ---------------------------------------------------------------------------------
   INTERRUPTEUR : <label class="qc-interrupteur"><input type="checkbox" name="…"><span>Actif</span></label>
   (le texte suit, ou precede avec .qc-interrupteur-gauche ; la case reste une vraie case : formulaire normal)
   --------------------------------------------------------------------------------- */
.qc-interrupteur { display: inline-flex; align-items: center; gap: 10px; min-height: 36px; cursor: pointer; font-size: var(--qgv-t-sm); color: var(--qgv-text); -webkit-tap-highlight-color: transparent; }
.qc-interrupteur-gauche { flex-direction: row-reverse; justify-content: flex-end; }
.qc-interrupteur input[type="checkbox"] {
  appearance: none; -webkit-appearance: none; position: relative; flex: none; width: 40px; height: 24px; margin: 0; cursor: pointer;
  border-radius: var(--qgv-r-pill); background: var(--qgv-surface-2); box-shadow: inset 0 0 0 1px var(--qgv-line-strong);
  transition: background var(--qgv-dur) var(--qgv-ease), box-shadow var(--qgv-dur);
}
.qc-interrupteur input[type="checkbox"]::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--qgv-text-3); box-shadow: var(--qgv-e1);
  transition: transform .3s var(--qgv-ease), background var(--qgv-dur);
}
.qc-interrupteur input[type="checkbox"]:checked { background: var(--qgv-text); box-shadow: none; }
.qc-interrupteur input[type="checkbox"]:checked::after { transform: translateX(16px); background: var(--qgv-surface); }
.qc-interrupteur input[type="checkbox"]:focus-visible { outline: 2px solid var(--qgv-text); outline-offset: 2px; }
.qc-interrupteur input[type="checkbox"]:disabled { opacity: .45; cursor: not-allowed; }
.qc-interrupteur:active input[type="checkbox"]::after { width: 22px; }
.qc-interrupteur:active input[type="checkbox"]:checked::after { transform: translateX(12px); }
@media (max-width: 900px) { .qc-interrupteur { min-height: 44px; } }

/* ---------------------------------------------------------------------------------
   CHAMP DE MONTANT AVEC SUFFIXE : <label class="qc-suffixe"><input class="qgv-input" inputmode="decimal"><span>$ / mois</span></label>
   --------------------------------------------------------------------------------- */
.qc-suffixe { position: relative; display: flex; align-items: center; min-width: 0; }
.qc-suffixe > input { width: 100%; padding-right: 4.5em; text-align: right; font-variant-numeric: tabular-nums; }
.qc-suffixe > span { position: absolute; right: 12px; font-size: var(--qgv-t-xs); color: var(--qgv-text-3); pointer-events: none; white-space: nowrap; }

/* ---------------------------------------------------------------------------------
   FILTRES sur une ligne : <nav class="qc-filtres"><a class="qc-filtre is-on" href>Tous<em>12</em></a>…</nav>
   Au telephone : une ligne qui defile, cibles de 44 px.
   --------------------------------------------------------------------------------- */
.qc-filtres { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
.qc-filtre {
  display: inline-flex; align-items: center; gap: 5px; padding: 6px 12px; border: 0; border-radius: var(--qgv-r-pill); cursor: pointer;
  background: transparent; box-shadow: inset 0 0 0 1px var(--qgv-line); color: var(--qgv-text-2);
  font: inherit; font-size: var(--qgv-t-xs); font-weight: 500; white-space: nowrap; text-decoration: none;
  transition: background var(--qgv-dur-fast) var(--qgv-ease), color var(--qgv-dur-fast), box-shadow var(--qgv-dur-fast), transform var(--qgv-dur-fast);
}
.qc-filtre:hover { box-shadow: inset 0 0 0 1px var(--qgv-text); color: var(--qgv-text); }
.qc-filtre:active { transform: scale(.96); }
.qc-filtre.is-on, .qc-filtre[aria-current], .qc-filtre[aria-pressed="true"] { background: var(--qgv-text); color: var(--qgv-surface); box-shadow: none; }
.qc-filtre em { font: 400 11px var(--qgv-font-mono); font-style: normal; opacity: .65; }
@media (max-width: 640px) {
  .qc-filtres { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 calc(-1 * var(--qgv-s4)); padding: 2px var(--qgv-s4); scroll-snap-type: x proximity; }
  .qc-filtres::-webkit-scrollbar { display: none; }
  .qc-filtre { min-height: 44px; padding: 0 14px; scroll-snap-align: start; }
}

/* ---------------------------------------------------------------------------------
   BLOC REPLIABLE AVEC RESUME (sans JavaScript) :
   <details class="qc-repli"><summary><span class="qc-repli-titre">Coordonnées</span>
     <span class="qc-repli-resume">Marc Tremblay · 450 555-0142</span></summary>
     <div class="qc-repli-corps">…</div></details>
   Le resume se cache quand le bloc est ouvert.
   --------------------------------------------------------------------------------- */
.qc-repli { border: 1px solid var(--qgv-line); border-radius: var(--qgv-r-lg); background: var(--qgv-surface); }
.qc-repli + .qc-repli { margin-top: var(--qgv-s2); }
.qc-repli > summary {
  display: flex; align-items: center; gap: var(--qgv-s3); min-height: 48px; padding: 10px var(--qgv-s4); cursor: pointer; list-style: none;
  border-radius: inherit; transition: background var(--qgv-dur-fast) var(--qgv-ease);
}
.qc-repli > summary::-webkit-details-marker { display: none; }
.qc-repli > summary:hover { background: var(--qgv-surface-2); }
.qc-repli > summary:focus-visible { outline: 2px solid var(--qgv-text); outline-offset: -2px; }
.qc-repli > summary::after {
  content: ""; flex: none; width: 7px; height: 7px; margin-left: auto; border: solid var(--qgv-text-3); border-width: 0 1.5px 1.5px 0;
  transform: translateY(-2px) rotate(45deg); transition: transform var(--qgv-dur) var(--qgv-ease);
}
.qc-repli[open] > summary::after { transform: translateY(2px) rotate(225deg); }
.qc-repli-titre { flex: none; font-weight: 600; color: var(--qgv-text); }
.qc-repli-resume { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--qgv-t-xs); color: var(--qgv-text-3); }
.qc-repli[open] .qc-repli-resume { display: none; }
.qc-repli-corps { padding: var(--qgv-s2) var(--qgv-s4) var(--qgv-s4); border-top: 1px solid var(--qgv-line-soft); }
@media (prefers-reduced-motion: no-preference) {
  .qc-repli[open] > .qc-repli-corps { animation: qc-monte .3s var(--qgv-ease); }
}

/* ---------------------------------------------------------------------------------
   LISTE ETIQUETTE / VALEUR : <dl class="qc-liste"><dt>Téléphone</dt><dd>450 555-0142</dd>…</dl>
   (.qc-liste-pile : etiquette au-dessus de la valeur)
   --------------------------------------------------------------------------------- */
.qc-liste { display: grid; grid-template-columns: minmax(110px, max-content) minmax(0, 1fr); gap: 0 var(--qgv-s4); margin: 0; }
.qc-liste > dt, .qc-liste > dd { margin: 0; padding: 9px 0; border-top: 1px solid var(--qgv-line-soft); }
.qc-liste > dt:first-of-type, .qc-liste > dt:first-of-type + dd { border-top: 0; }
.qc-liste > dt { font-size: var(--qgv-t-xs); color: var(--qgv-text-3); }
.qc-liste > dd { min-width: 0; font-size: var(--qgv-t-sm); color: var(--qgv-text); overflow-wrap: anywhere; }
.qc-liste-pile { grid-template-columns: minmax(0, 1fr); }
.qc-liste-pile > dt { padding-bottom: 0; }
.qc-liste-pile > dd { padding-top: 2px; border-top: 0; }
@media (max-width: 420px) { .qc-liste { grid-template-columns: minmax(0, 1fr); } .qc-liste > dt { padding-bottom: 0; } .qc-liste > dd { padding-top: 2px; border-top: 0; } }

/* ---------------------------------------------------------------------------------
   PIED D'ACTION COLLANT : <div class="qc-pied"><span class="qc-pied-info">…</span>
   <button class="qgv-btn">Annuler</button><button class="qgv-btn qgv-btn-primary">Enregistrer</button></div>
   Ordinateur : colle au bas de l'ecran. Telephone : au-dessus du dock, boutons pleine largeur, 44 px.
   --------------------------------------------------------------------------------- */
.qc-pied {
  position: sticky; bottom: 0; z-index: 20; display: flex; align-items: center; justify-content: flex-end; gap: var(--qgv-s2); flex-wrap: wrap;
  margin-top: var(--qgv-s5); padding: var(--qgv-s3) var(--qgv-s4);
  background: color-mix(in srgb, var(--qgv-surface) 94%, transparent); border: 1px solid var(--qgv-line); border-radius: var(--qgv-r-lg);
  box-shadow: var(--qgv-e2); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.qc-pied-info { margin-right: auto; min-width: 0; font-size: var(--qgv-t-xs); color: var(--qgv-text-3); }
@media (max-width: 900px) {
  .qc-pied { bottom: calc(var(--qgv-tabbar-space) + var(--qgv-s2)); padding: var(--qgv-s2); }
  .qc-pied > .qgv-btn { flex: 1 1 0; min-height: 44px; justify-content: center; }
  .qc-pied-info { flex-basis: 100%; text-align: center; }
}
@media (prefers-reduced-motion: no-preference) { .qc-pied { animation: qc-monte .35s var(--qgv-ease) backwards; } }

/* ---------------------------------------------------------------------------------
   TIROIR : la macro ui.drawer() de la base (panneau a droite). Pour qu'il devienne une
   feuille du bas au telephone, poser dans son contenu : <span class="qc-tiroir-bas" hidden></span>
   --------------------------------------------------------------------------------- */
@media (max-width: 760px) {
  .qgv-drawer:has(.qc-tiroir-bas) .qgv-drawer-panel {
    top: auto; left: 0; right: 0; width: 100%; max-height: 88vh; border-left: 0; border-top: 1px solid var(--qgv-line);
    border-radius: var(--qgv-r-xl) var(--qgv-r-xl) 0 0; transform: translateY(105%);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .qgv-drawer:has(.qc-tiroir-bas) .qgv-drawer-panel::before {
    content: ""; flex: none; align-self: center; width: 36px; height: 4px; margin: 8px 0 0; border-radius: var(--qgv-r-pill); background: var(--qgv-line-strong);
  }
  .qgv-drawer.is-open:has(.qc-tiroir-bas) .qgv-drawer-panel { transform: none; }
  .qgv-drawer:has(.qc-tiroir-bas) .qgv-drawer-x { min-width: 44px; min-height: 44px; }
}

/* ---------------------------------------------------------------------------------
   Mouvements communs (0,6 s au plus ; coupes si l'on a demande moins de mouvement)
   --------------------------------------------------------------------------------- */
@keyframes qc-monte { from { opacity: 0; transform: translateY(8px); } }
@keyframes qc-pose { from { transform: scale(.4); opacity: 0; } }
@keyframes qc-trace { from { transform: scaleX(0); } }
@keyframes qc-souffle { to { opacity: .35; } }
@keyframes qc-reflet { from { background-position: 120% 0; } to { background-position: -60% 0; } }
.qc-anime > * { animation: qc-monte .46s var(--qgv-ease) backwards; }
.qc-anime > :nth-child(2) { animation-delay: 50ms; } .qc-anime > :nth-child(3) { animation-delay: 100ms; }
.qc-anime > :nth-child(4) { animation-delay: 140ms; } .qc-anime > :nth-child(n+5) { animation-delay: 180ms; }
@media (prefers-reduced-motion: reduce) {
  [class*="qc-"], [class*="qc-"]::before, [class*="qc-"]::after, .qc-anime > * { animation: none !important; transition: none !important; }
}
