
/* Logo animé de l'écran de connexion (v0.19) */
.logo-anime{display:flex;align-items:stretch;line-height:0;}
.logo-anime img{display:block;}
.logo-icone{flex:0 0 24.5%;width:24.5%;height:auto;}
.logo-texte{position:relative;display:block;flex:0 0 75.5%;width:75.5%;}
.logo-texte img{width:100%;height:auto;}
.logo-brillance{position:absolute;inset:0;
  -webkit-mask:url(../img/logo-proxiia-texte.png) center/100% 100% no-repeat;
  mask:url(../img/logo-proxiia-texte.png) center/100% 100% no-repeat;
  background:linear-gradient(100deg,rgba(255,255,255,0) 42%,rgba(255,255,255,.9) 50%,rgba(255,255,255,0) 58%);
  background-size:300% 100%;background-repeat:no-repeat;background-position:100% 0;
  animation:logo-brillance 3.2s ease-in-out infinite;}
@keyframes logo-brillance{0%{background-position:100% 0}45%{background-position:0 0}100%{background-position:0 0}}
@media (prefers-reduced-motion:reduce){.logo-brillance{animation:none;display:none;}}

/* Configuration > Intervenants (v0.22) : la couleur dit où en est la demande à l'admin PROXIIA */
.interv-ligne{border:1px solid var(--line);border-left:6px solid #16a34a;border-radius:8px;padding:12px 14px;margin:0 0 10px;background:#fff;}
.interv-ligne.attente{border-left-color:#d97706;background:#fff7ed;}
.interv-ligne.revocation{border-left-color:#dc2626;background:#fef2f2;}
.interv-ligne.revoque{border-left-color:#9ca3af;background:#f3f4f6;color:#6b7280;}
.interv-titre{display:flex;flex-wrap:wrap;gap:8px;align-items:baseline;}
.interv-etiquette{font-size:12px;font-weight:700;padding:2px 8px;border-radius:999px;background:#fed7aa;color:#7c2d12;}
.interv-ligne.revocation .interv-etiquette{background:#fecaca;color:#7f1d1d;}
.interv-ligne.revoque .interv-etiquette{background:#e5e7eb;color:#374151;}
.interv-droits{display:flex;flex-wrap:wrap;gap:6px;margin-top:4px;}
.interv-droit{font-size:12px;padding:2px 8px;border-radius:999px;border:1px solid var(--line);background:#fff;}
.interv-demande{margin-top:10px;padding:8px 10px;border-radius:6px;border:1px dashed #d97706;background:rgba(255,255,255,.7);}
.interv-ligne.revocation .interv-demande{border-color:#dc2626;}
.interv-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px;}
.interv-form{border:1px solid var(--line);border-radius:8px;padding:14px;margin:14px 0;background:#fff;}
.interv-groupe{margin-bottom:8px;}
.interv-legende{display:flex;flex-wrap:wrap;gap:14px;font-size:12px;margin:8px 0 12px;}
.interv-legende i{display:inline-block;width:12px;height:12px;border-radius:3px;margin-right:5px;vertical-align:-1px;}

/* Avant RDV (v0.23) */
.rdv-demo{display:inline-block;font-size:12px;font-weight:700;padding:2px 10px;border-radius:999px;background:#fef3c7;color:#78350f;margin:0 0 10px;}
.rdv-carte{border:1px solid var(--line);border-radius:10px;background:#fff;padding:16px;margin:0 0 14px;}
.rdv-quand{font-family:'Space Grotesk',sans-serif;font-size:22px;font-weight:600;margin:0;}
.rdv-compte{font-size:13px;font-weight:600;color:#92400e;margin:2px 0 10px;}
.rdv-client{font-size:18px;font-weight:600;margin:0 0 2px;}
.rdv-ligne{margin:2px 0;font-size:15px;}
.rdv-actions{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:8px;margin-top:14px;}
.rdv-actions a.btn{text-decoration:none;color:inherit;text-align:center;display:flex;align-items:center;justify-content:center;min-height:46px;}
.rdv-objet{border-left:5px solid #d97706;background:#fff7ed;padding:10px 14px;border-radius:0 8px 8px 0;margin:0;font-size:15px;line-height:1.45;}
.rdv-contexte{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:8px;margin-top:12px;}
.rdv-contexte div{background:#f9fafb;border:1px solid var(--line);border-radius:8px;padding:8px 10px;font-size:14px;}
.rdv-contexte b{display:block;font-size:11px;letter-spacing:.4px;text-transform:uppercase;color:#6b7280;margin-bottom:2px;}
.rdv-groupe{margin:0 0 14px;}
.rdv-groupe h4{margin:0 0 6px;}
.rdv-check{display:flex;gap:10px;align-items:flex-start;padding:8px 10px;border:1px solid var(--line);border-radius:8px;background:#fff;margin:0 0 6px;font-size:15px;line-height:1.35;cursor:pointer;}
.rdv-check input{margin-top:3px;width:18px;height:18px;flex:0 0 auto;}
.rdv-check.fait span{text-decoration:line-through;color:#9ca3af;}
.rdv-conseil{border:1px solid #fcd34d;background:#fffbeb;border-radius:8px;padding:10px 12px;margin:0 0 6px;font-size:14px;line-height:1.4;}
.rdv-player{border:1px solid var(--line);border-radius:10px;background:#111827;color:#fff;padding:14px;margin:0 0 12px;}
.rdv-player-titre{font-weight:600;font-size:16px;margin:0 0 2px;}
.rdv-player-sous{font-size:12px;color:#d1d5db;margin:0 0 10px;}
.rdv-player-ligne{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-top:10px;}
.rdv-player button{border:0;border-radius:8px;padding:10px 14px;min-height:44px;font-size:15px;font-weight:600;cursor:pointer;background:#374151;color:#fff;}
.rdv-player button.gros{background:#d97706;flex:1 1 150px;font-size:16px;}
.rdv-player button.gros.lecture{background:#16a34a;}
.rdv-player input[type=range]{width:100%;height:28px;accent-color:#f59e0b;}
.rdv-player-temps{display:flex;justify-content:space-between;font-size:12px;color:#d1d5db;}
.rdv-player input[type=text]{flex:1 1 180px;min-height:44px;border-radius:8px;border:1px solid #4b5563;background:#1f2937;color:#fff;padding:0 10px;font-size:15px;}
.rdv-marque{display:flex;gap:8px;align-items:center;justify-content:space-between;padding:6px 0;border-top:1px solid #374151;font-size:14px;}
.rdv-marque button{min-height:36px;padding:6px 10px;font-size:13px;}
.rdv-podcast{border:1px solid var(--line);border-radius:10px;background:#fff;padding:12px 14px;margin:0 0 8px;display:flex;gap:12px;align-items:flex-start;justify-content:space-between;flex-wrap:wrap;}
.rdv-podcast.actif{border-color:#d97706;box-shadow:0 0 0 2px #fde68a;}
.rdv-podcast-titre{font-weight:600;font-size:15px;margin:0;}
.rdv-podcast-meta{font-size:12px;color:#6b7280;margin:2px 0 4px;}
.rdv-podcast-pourquoi{font-size:14px;margin:0;line-height:1.35;}
.rdv-podcast .btn{flex:0 0 auto;}
.rdv-waze-ico{height:26px;width:auto;margin-right:8px;}
.rdv-sms{border:1px solid var(--line);border-radius:10px;background:#fff;padding:12px 14px;margin-top:14px;}
.rdv-sms-eta{margin:0 0 8px 28px;font-size:14px;}
.rdv-sms-eta input{width:90px;min-height:40px;font-size:16px;margin:0 4px;}
.rdv-sms textarea{width:100%;box-sizing:border-box;font-size:15px;border:1px solid var(--line);border-radius:8px;padding:8px;font-family:inherit;}
.rdv-sms textarea[readonly]{background:#f9fafb;}
/* Avant RDV : sous-onglets (v1.12) */
.rdv-sousonglets{display:flex;gap:6px;align-items:center;overflow-x:auto;background:#fff;border-bottom:1px solid var(--line);padding:6px 2px;margin:0 0 10px;-webkit-overflow-scrolling:touch;}
.rdv-sousonglets .rep-chip.actif{background:#111827;color:#fff;border-color:#111827;}
.rdvo-ligne{border:1px solid var(--line);border-left:6px solid #d97706;border-radius:8px;padding:10px 14px;margin:0 0 10px;background:#fff;}
.rdvo-ligne.affecte{border-left-color:#16a34a;}
.rdvo-ligne.sans-rdv{border-left-color:#dc2626;background:#fef2f2;}
.rdvo-ligne.sans-rdv .rdvo-etat{background:#dc2626;color:#fff;}
.rdvo-pastille{display:inline-block;width:12px;height:12px;border-radius:50%;background:#dc2626;margin-right:6px;vertical-align:-1px;box-shadow:0 0 0 3px #fecaca;}
.rdvo-ligne b{font-size:16px;}
.rdvo-ligne .rdvo-meta{font-size:14px;margin:3px 0;}
.rdvo-ligne .rdvo-actions{display:flex;gap:8px;flex-wrap:wrap;align-items:center;margin-top:8px;}
.rdvo-ligne .rdvo-etat{font-size:12px;font-weight:700;padding:2px 8px;border-radius:999px;background:#fed7aa;color:#7c2d12;}
.rdvo-ligne.affecte .rdvo-etat{background:#dcfce7;color:#14532d;}
#rdv-mini{position:fixed;left:0;right:0;bottom:0;z-index:150;display:flex;gap:8px;align-items:center;padding:8px 12px;background:#111827;color:#fff;box-shadow:0 -2px 10px rgba(0,0,0,.25);}
#rdv-mini span{flex:1 1 auto;min-width:0;font-size:14px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
#rdv-mini button{border:0;border-radius:8px;min-height:44px;padding:8px 14px;font-size:15px;font-weight:700;cursor:pointer;background:#d97706;color:#fff;flex:0 0 auto;}
#rdv-mini button.lecture{background:#16a34a;}
#rdv-mini button.fermer{background:#374151;}

/* Micro des questions de l'IA (v0.56) : pastille orange, micro plein blanc, sans texte */
#questions-list button,.btn-micro-pastille{display:inline-block;width:56px;height:56px;min-width:56px;padding:0;border-radius:50%;border:2px solid #b45309;
  background:#d97706 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='8.5' y='2' width='7' height='13' rx='3.5'/%3E%3Cpath d='M5 11.5a7 7 0 0 0 14 0' fill='none'/%3E%3Cpath d='M12 19v3M8.5 22h7' fill='none'/%3E%3C/svg%3E") center/30px 30px no-repeat;
  font-size:0;line-height:0;color:transparent;cursor:pointer;justify-self:center;align-self:center;box-shadow:0 2px 6px rgba(0,0,0,.25);}
#questions-list button:active,.btn-micro-pastille:active{transform:scale(.95);}
#questions-list button:focus-visible,.btn-micro-pastille:focus-visible{outline:3px solid #111827;outline-offset:2px;}

/* Mode démo (v0.55) */
.badge-demo{display:inline-block;background:#f97316;color:#fff;font-weight:800;font-size:.78em;letter-spacing:.6px;padding:1px 8px;border-radius:999px;vertical-align:1px;margin-right:2px;}
.demo-chantier{border:1px solid var(--line);border-left:6px solid #16a34a;border-radius:8px;padding:10px 14px;margin:0 0 10px;background:#fff;}
.demo-chantier.urg-orange{border-left-color:#d97706;background:#fff7ed;}
.demo-chantier.urg-rouge{border-left-color:#dc2626;background:#fef2f2;}
.dc-titre{display:flex;flex-wrap:wrap;gap:8px;align-items:baseline;justify-content:space-between;font-size:16px;}
.dc-etat{font-size:12px;font-weight:700;padding:2px 8px;border-radius:999px;background:#e5e7eb;color:#111827;}
.dc-ligne{margin:3px 0;font-size:14px;}
.dc-barre{height:8px;border-radius:999px;background:#e5e7eb;margin:6px 0;overflow:hidden;}
.dc-barre i{display:block;height:100%;background:#16a34a;}

/* Page unique « Devis » et repérage (v0.42) */
.bloc-devis{margin-top:34px;padding-top:14px;border-top:4px solid var(--line);}
.bloc-devis,#rep-client,#rep-travaux,#rep-questions{scroll-margin-top:var(--rep-offset,70px);}
#repere{position:sticky;top:0;z-index:120;display:flex;gap:6px;align-items:center;overflow-x:auto;background:#fff;border-bottom:1px solid var(--line);padding:6px 2px;margin:0 0 6px;-webkit-overflow-scrolling:touch;}
/* Fournitures (v0.51) : une ligne = une grille ; libellés alignés, désignation et caractéristiques sur toute la largeur */
#table-fournitures,#table-fournitures tbody{display:block;width:100%;}#table-fournitures thead{display:none;}
#table-fournitures tr.four-ligne{display:grid;grid-template-columns:96px minmax(120px,1.3fr) 76px 110px minmax(150px,1fr) 44px;gap:6px 10px;align-items:end;padding:10px 4px;border-bottom:1px solid var(--line);}
#table-fournitures tr.four-ligne>td{display:block;padding:0;border:0;min-width:0;}
#table-fournitures tr.four-ligne>td.four-cell,#table-fournitures tr.four-ligne>td:has(.fz-ref),#table-fournitures tr.four-ligne .four-cell{display:contents;}
#table-fournitures .fz-ref{grid-column:2;grid-row:1;}#table-fournitures .fz-des{grid-column:1/-1;grid-row:2;}#table-fournitures .fz-car{grid-column:1/-1;grid-row:3;}
#table-fournitures .four-statut{grid-column:1;grid-row:1;align-self:center;}#table-fournitures .four-qte{grid-column:3;grid-row:1;}#table-fournitures .four-prix{grid-column:4;grid-row:1;}#table-fournitures .four-aff{grid-column:5;grid-row:1;}#table-fournitures .four-sup{grid-column:6;grid-row:1;text-align:right;}
#table-fournitures input,#table-fournitures select{display:block;width:100%;box-sizing:border-box;margin:0;text-overflow:ellipsis;}
#table-fournitures label.caption{display:block;margin:0 0 2px;font-size:11px;text-align:left;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
@media (max-width:700px){#table-fournitures tr.four-ligne{grid-template-columns:1fr 1fr;}#table-fournitures .four-statut{grid-column:1;grid-row:1;}#table-fournitures .four-sup{grid-column:2;grid-row:1;}
#table-fournitures .fz-ref{grid-column:1/-1;grid-row:2;}#table-fournitures .fz-des{grid-row:3;}#table-fournitures .fz-car{grid-row:4;}#table-fournitures .four-qte{grid-column:1;grid-row:5;}#table-fournitures .four-prix{grid-column:2;grid-row:5;}#table-fournitures .four-aff{grid-column:1/-1;grid-row:6;}}
.four-indice{display:inline-block;margin-left:6px;padding:1px 8px;border-radius:999px;background:#111827;color:#fff;font-size:11px;font-weight:700;letter-spacing:.3px;vertical-align:1px;}
a.four-indice.lien{text-decoration:none;cursor:pointer;background:#d97706;}
a.four-indice.lien:hover{background:#b45309;}
.four-indice.hors{background:#e5e7eb;color:#4b5563;}
.q-ecarter{display:inline-flex;align-items:center;gap:4px;margin-left:6px;color:#6b7280;cursor:pointer;}.q-ecarter input{width:auto;margin:0;}
.rep-chip{flex:0 0 auto;border:1px solid var(--line);border-radius:999px;padding:6px 12px;min-height:40px;background:#fff;font-size:13px;font-weight:600;cursor:pointer;white-space:nowrap;color:inherit;}
.rep-chip.ok{border-color:#16a34a;}
.rep-chip.alerte{border-color:#d97706;background:#fff7ed;}
.rep-chip.actif{background:#111827;color:#fff;border-color:#111827;}
.rep-chip.rep-suite{background:#d97706;border-color:#d97706;color:#fff;margin-left:auto;}
#rep-haut{position:fixed;right:12px;bottom:70px;z-index:130;width:46px;height:46px;border-radius:50%;border:0;background:#111827;color:#fff;font-size:22px;cursor:pointer;box-shadow:0 2px 8px rgba(0,0,0,.3);}
.fin-chip{display:inline-block;padding:3px 10px;border-radius:999px;font-weight:700;font-size:13px;background:#e5e7eb;color:#111827;}
.fin-finalise,.fin-presente,.fin-envoye,.fin-signe{background:#dcfce7;color:#14532d;}
.fin-attente_prix{background:#fef3c7;color:#78350f;}
.fin-refuse,.fin-expire{background:#fee2e2;color:#7f1d1d;}
.devis-verrouille .bloc-devis{background:#fafafa;}
/* v1.00 : téléphone : « Prestations identifiées » : le descriptif prend toute la largeur, prix et temps passent dessous côte à côte */
@media (max-width:700px){
  .poste-card .poste-top{display:flex !important;flex-direction:column !important;gap:10px;}
  .poste-card .poste-top > .left,.poste-card .poste-top > .right{width:100% !important;max-width:none !important;flex:0 0 auto !important;min-width:0;}
  .poste-card .poste-top > .right{display:grid !important;grid-template-columns:1fr 1fr;gap:10px;}
  .poste-card .poste-top > .left .btn{width:100%;}
}
#nom-entreprise:not(:empty)::before{content:'Société : ';font-weight:400;color:#6b7280;}
.nom-entreprise-menu:not(:empty)::before{content:'Société ';}
