/* Repères visuels pastel pour les actions du dossier SAV.
   Les couleurs indiquent la nature de l'action sans modifier le workflow. */

/* Documents / gestion */
a.button[href*="/imprimer/"],
a.button[href*="/modifier/"],
form[action*="/generer-pdf/"] .button {
    border-color: #b9cde7;
    background: #edf5ff;
    color: #234f7d;
}

a.button[href*="/imprimer/"]:hover,
a.button[href*="/modifier/"]:hover,
form[action*="/generer-pdf/"] .button:hover {
    border-color: #8fb0d7;
    background: #dfeeff;
}

/* Actions techniques */
a.button[href*="/affecter/"],
form[action*="/demarrer-diagnostic/"] .button,
a.button[href*="/diagnostic/"],
form[action*="/autoriser-reparation/"] .button,
form[action*="/demarrer-reparation/"] .button,
a.button[href*="/terminer-reparation/"],
a.button[href*="/pieces/ajouter/"],
a.button[href*="/controle-final/"],
a.button[href*="/temps/"],
form[action*="/technicien-reception/"] .button {
    border-color: #acd7c1;
    background: #edf9f2;
    color: #245b42;
}

a.button[href*="/affecter/"]:hover,
form[action*="/demarrer-diagnostic/"] .button:hover,
a.button[href*="/diagnostic/"]:hover,
form[action*="/autoriser-reparation/"] .button:hover,
form[action*="/demarrer-reparation/"] .button:hover,
a.button[href*="/terminer-reparation/"]:hover,
a.button[href*="/pieces/ajouter/"]:hover,
a.button[href*="/controle-final/"]:hover,
a.button[href*="/temps/"]:hover,
form[action*="/technicien-reception/"] .button:hover {
    border-color: #7ebc9d;
    background: #dcf2e6;
}

/* Décision client / paiement */
a.button[href*="/decision-client/"],
a.button[href*="/paiement/"] {
    border-color: #e4cf92;
    background: #fff9e8;
    color: #755b16;
}

a.button[href*="/decision-client/"]:hover,
a.button[href*="/paiement/"]:hover {
    border-color: #cfb45e;
    background: #fff0c7;
}

/* Sortie normale du dossier */
a.button[href*="/restitution/"] {
    border-color: #b8d7c6;
    background: #f0f9f4;
    color: #285d44;
}

a.button[href*="/restitution/"]:hover {
    border-color: #8ebda3;
    background: #dff2e7;
}

/* Clôture sans réparation : action à distinguer sans la rendre agressive */
form[action*="/preparer-restitution-sans-reparation/"] .button {
    border-color: #e3bcbc;
    background: #fff2f2;
    color: #7b3939;
}

form[action*="/preparer-restitution-sans-reparation/"] .button:hover {
    border-color: #cf9696;
    background: #ffe3e3;
}

/* Consultation, recherche et navigation de travail */
.search-bar .button:not(.button-ghost),
a.button[href="/dossiers-sav/"],
a.button[href*="/dossiers-sav/archives/"],
a.button[href*="/dossiers-sav/nouveau/"],
a.button[href*="/operations/rapport-journalier/"],
a.button[href*="/operations/rappels/"] {
    border-color: #b9cde7;
    background: #edf5ff;
    color: #234f7d;
}

.search-bar .button:not(.button-ghost):hover,
a.button[href="/dossiers-sav/"]:hover,
a.button[href*="/dossiers-sav/archives/"]:hover,
a.button[href*="/dossiers-sav/nouveau/"]:hover,
a.button[href*="/operations/rapport-journalier/"]:hover,
a.button[href*="/operations/rappels/"]:hover {
    border-color: #8fb0d7;
    background: #dfeeff;
}

/* Suivi opérationnel et approvisionnement */
a.button[href*="/operations/dossier/"][href*="/localisation/"],
a.button[href*="/operations/dossier/"][href*="/transfert/"],
a.button[href*="/operations/dossier/"][href*="/piece/demander/"],
a.button[href*="/operations/piece/"][href*="/commander/"],
form[action*="/operations/piece/"][action*="/recevoir/"] .button,
form[action*="/operations/piece/"][action*="/confirmer-technicien/"] .button,
form[action*="/operations/transfert/"][action*="/recevoir/"] .button,
form[action*="/operations/tache/"][action*="/terminer/"] .button,
form[action*="/operations/rapport-journalier/envoyer/"] .button,
form[action*="/operations/rappels/envoyer/"] .button {
    border-color: #acd7c1;
    background: #edf9f2;
    color: #245b42;
}

a.button[href*="/operations/dossier/"][href*="/localisation/"]:hover,
a.button[href*="/operations/dossier/"][href*="/transfert/"]:hover,
a.button[href*="/operations/dossier/"][href*="/piece/demander/"]:hover,
a.button[href*="/operations/piece/"][href*="/commander/"]:hover,
form[action*="/operations/piece/"][action*="/recevoir/"] .button:hover,
form[action*="/operations/piece/"][action*="/confirmer-technicien/"] .button:hover,
form[action*="/operations/transfert/"][action*="/recevoir/"] .button:hover,
form[action*="/operations/tache/"][action*="/terminer/"] .button:hover,
form[action*="/operations/rapport-journalier/envoyer/"] .button:hover,
form[action*="/operations/rappels/envoyer/"] .button:hover {
    border-color: #7ebc9d;
    background: #dcf2e6;
}

/* Actions de contact client */
a.button[href*="/operations/dossier/"][href*="/contact/"] {
    border-color: #e4cf92;
    background: #fff9e8;
    color: #755b16;
}

a.button[href*="/operations/dossier/"][href*="/contact/"]:hover {
    border-color: #cfb45e;
    background: #fff0c7;
}

/* Tous les boutons catégorisés gagnent un léger relief au survol. */
a.button[href*="/imprimer/"],
a.button[href*="/modifier/"],
form[action*="/generer-pdf/"] .button,
a.button[href*="/affecter/"],
form[action*="/demarrer-diagnostic/"] .button,
a.button[href*="/diagnostic/"],
form[action*="/autoriser-reparation/"] .button,
form[action*="/demarrer-reparation/"] .button,
a.button[href*="/terminer-reparation/"],
a.button[href*="/pieces/ajouter/"],
a.button[href*="/controle-final/"],
a.button[href*="/temps/"],
form[action*="/technicien-reception/"] .button,
a.button[href*="/decision-client/"],
a.button[href*="/paiement/"],
a.button[href*="/restitution/"],
form[action*="/preparer-restitution-sans-reparation/"] .button,
.search-bar .button:not(.button-ghost),
a.button[href="/dossiers-sav/"],
a.button[href*="/dossiers-sav/archives/"],
a.button[href*="/dossiers-sav/nouveau/"],
a.button[href*="/operations/rapport-journalier/"],
a.button[href*="/operations/rappels/"],
a.button[href*="/operations/dossier/"][href*="/localisation/"],
a.button[href*="/operations/dossier/"][href*="/transfert/"],
a.button[href*="/operations/dossier/"][href*="/piece/demander/"],
a.button[href*="/operations/piece/"][href*="/commander/"],
form[action*="/operations/piece/"][action*="/recevoir/"] .button,
form[action*="/operations/piece/"][action*="/confirmer-technicien/"] .button,
form[action*="/operations/transfert/"][action*="/recevoir/"] .button,
form[action*="/operations/tache/"][action*="/terminer/"] .button,
form[action*="/operations/rapport-journalier/envoyer/"] .button,
form[action*="/operations/rappels/envoyer/"] .button,
a.button[href*="/operations/dossier/"][href*="/contact/"] {
    transition: background-color 140ms ease, border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
    box-shadow: 0 2px 5px rgb(23 32 51 / 8%);
}

a.button[href*="/imprimer/"]:hover,
a.button[href*="/modifier/"]:hover,
form[action*="/generer-pdf/"] .button:hover,
a.button[href*="/affecter/"]:hover,
form[action*="/demarrer-diagnostic/"] .button:hover,
a.button[href*="/diagnostic/"]:hover,
form[action*="/autoriser-reparation/"] .button:hover,
form[action*="/demarrer-reparation/"] .button:hover,
a.button[href*="/terminer-reparation/"]:hover,
a.button[href*="/pieces/ajouter/"]:hover,
a.button[href*="/controle-final/"]:hover,
a.button[href*="/temps/"]:hover,
form[action*="/technicien-reception/"] .button:hover,
a.button[href*="/decision-client/"]:hover,
a.button[href*="/paiement/"]:hover,
a.button[href*="/restitution/"]:hover,
form[action*="/preparer-restitution-sans-reparation/"] .button:hover,
.search-bar .button:not(.button-ghost):hover,
a.button[href="/dossiers-sav/"]:hover,
a.button[href*="/dossiers-sav/archives/"]:hover,
a.button[href*="/dossiers-sav/nouveau/"]:hover,
a.button[href*="/operations/rapport-journalier/"]:hover,
a.button[href*="/operations/rappels/"]:hover,
a.button[href*="/operations/dossier/"][href*="/localisation/"]:hover,
a.button[href*="/operations/dossier/"][href*="/transfert/"]:hover,
a.button[href*="/operations/dossier/"][href*="/piece/demander/"]:hover,
a.button[href*="/operations/piece/"][href*="/commander/"]:hover,
form[action*="/operations/piece/"][action*="/recevoir/"] .button:hover,
form[action*="/operations/piece/"][action*="/confirmer-technicien/"] .button:hover,
form[action*="/operations/transfert/"][action*="/recevoir/"] .button:hover,
form[action*="/operations/tache/"][action*="/terminer/"] .button:hover,
form[action*="/operations/rapport-journalier/envoyer/"] .button:hover,
form[action*="/operations/rappels/envoyer/"] .button:hover,
a.button[href*="/operations/dossier/"][href*="/contact/"]:hover {
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgb(23 32 51 / 12%);
}
