/* ==============================================
   ADOPT SPÉCIALITÉ — CSS global
   Police : Poppins (Google Fonts)
   Couleurs :
     Noir       : #000000  (navbar)
     Bleu       : #011780  (bouton principal)
     Rouge      : #d52e00  (alerte / statut)
     Gris texte : #292d32
     Gris clair : #eaeaea  (en-tête tableau / carte)
     Blanc      : #ffffff
============================================== */

/* ── Import police ── */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;700&display=swap');

/* ── Reset simple ── */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  color: #292d32;
  background: #f4f4f4;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
  height: 25px;
  width: 25px;
}

.cursor-not-allowed {
  cursor: not-allowed;
}

/* Style pour les champs désactivés via la classe que nous avons ajoutée */
.bg-gray-100 {
  background-color: #f3f4f6 !important;
  /* Un gris clair */
  border-color: #d1d5db !important;
  /* Une bordure plus terne */
  color: #6b7280 !important;
  /* Un texte grisé */
}

.cursor-not-allowed {
  cursor: not-allowed !important;
}

.opacity-70 {
  opacity: 0.7;
}

/* Optionnel : cibler tous les champs disabled nativement au cas où */
input:disabled {
  background-color: #f3f4f6;
  cursor: not-allowed;
}

.commentaire {
  grid-column: 1 / -1;
}

/* ==============================================
   1. NAVBAR
============================================== */

header {
  background: #000000;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 30px;
}

header .logo {
  height: 55px;
  width: auto;
}

header .links {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
}

header .link {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #ffffff;
  font-weight: 500;
  font-size: 15px;
  cursor: pointer;
}



/* ==============================================
   2. CONTENU PRINCIPAL
   (espace sous la navbar)
============================================== */

.main {
  padding: 20px 30px;
}


/* ==============================================
   3. BARRE D'OUTILS (toolbar)
   Boutons + barre de recherche en haut de page
============================================== */

.toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

/* La barre de recherche est poussée à droite */
.toolbar .search-bar {
  margin-left: auto;
}

.toolbar .btn-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
}


/* ==============================================
   4. BOUTONS
============================================== */

/* Base commune à tous les boutons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 18px;
  border-radius: 50px;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  white-space: nowrap;
}

.btn img {
  width: 20px;
  height: 20px;
}

/* Bouton bordure noire (ex: "Ajouter une machine") */
.btn--outline {
  background: #ffffff;
  border: 1px solid #000000;
  color: #292d32;
}

/* Bouton bleu (ex: "Tous les clients") */
.btn--blue {
  background: #011780;
  color: #ffffff;
}

/* Bouton rouge (ex: "changement filtre") */
.btn--red {
  background: #d52e00;
  color: white;
}

.btn--gray {
  background-color: #888888;
  color: white;
}

.btn--orange {
  background: #c8521b;
  color: #ffffff;
}

/* Bouton rond pour revenir en arrière */
.btn-back {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;

}

/* Badge rouge sur un bouton (ex: compteur "3") */
.btn-wrapper {
  position: relative;
  display: inline-flex;
}

.btn-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background: #d52e00;
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}


/* ==============================================
   5. BARRE DE RECHERCHE
============================================== */

.search-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 16px;
  background: #ffffff;
  border: 1px solid #000000;
  border-radius: 50px;
  min-width: 200px;
}

.search-bar img {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.search-bar input {
  border: none;
  outline: none;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  color: #292d32;
  background: transparent;
  width: 100%;
}

.search-bar input::placeholder {
  color: #aaa;
}


/* ==============================================
   6. TABLEAU CLIENTS
============================================== */

.table-wrapper {
  width: 100%;
  overflow-x: auto;
  /* scroll horizontal sur petits écrans */
  border-radius: 16px;
  border: 2px solid #000000;
  margin-bottom: 30px;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: #ffffff;
  min-width: 700px;
  text-align: center;
  /* évite que le tableau soit trop écrasé */
}

/* En-tête du tableau */
thead tr {
  background: #eaeaea;
}

thead th {
  padding: 14px 12px;
  font-size: 14px;
  font-weight: 700;
  color: #292d32;
  text-align: left;
  border-bottom: 2px solid #000000;
  border-right: 1px solid #cccccc;
}

thead th:last-child {
  border-right: none;
}

/* Lignes du tableau */
tbody tr {
  border-bottom: 1px solid #cccccc;
  cursor: pointer;
  transition: background 0.15s;
}

tbody tr:last-child {
  border-bottom: none;
}

tbody tr:hover {
  background: #f0f4ff;
}

tbody td {
  padding: 12px;
  font-size: 14px;
  color: #292d32;
  border-right: 1px solid #cccccc;
  vertical-align: middle;
}

tbody td:last-child {
  border-right: none;
}

/* Badge statut dans le tableau */
.badge-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}

.badge-status--red {
  background: #d52e00;
  color: #ffffff;
}

.badge-status--gray {
  background: #888888;
  color: #ffffff;
}

.badge-status--blue {
  background: #011780;
  color: #ffffff;
}


/* ==============================================
   7. PAGINATION
============================================== */

.pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.pagination__item {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid #000000;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s;
}

.pagination__item:hover {
  background: #eaeaea;
}

.pagination__item--active {
  background: #000000;
  color: #ffffff;
}

.pagination__dots {
  font-size: 14px;
  color: #292d32;
}


/* ==============================================
   8. CARTES MACHINES
   (Machine à café, Moulin, Filtre à eau)
============================================== */

/* Grille des cartes sur la page machine */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}

/* Sur les écrans moyens : 2 colonnes */
@media (max-width: 1100px) {
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Sur tablette paysage : 1 colonne */
@media (max-width: 800px) {
  .cards-grid {
    grid-template-columns: 1fr;
  }
}

.card {
  background: #ffffff;
  border: 2px solid #000000;
  border-radius: 16px;
  overflow: hidden;
}

/* En-tête de la carte (fond gris) */
.card__header {
  background: #eaeaea;
  padding: 12px;
  text-align: center;
  font-weight: 700;
  font-size: 15px;
  border-bottom: 2px solid #000000;
}

/* Chaque ligne label + valeur dans la carte */
.card__row {
  display: flex;
  align-items: center;
  padding: 10px 16px;
  border-bottom: 1px solid #cccccc;
  font-size: 14px;
  gap: 8px;
}

.card__row:last-child {
  border-bottom: none;
}

.card__label {
  color: #292d32;
  font-weight: 500;
  flex-shrink: 0;
  min-width: 140px;
}

.card__value {
  color: #292d32;
  font-weight: 700;
  flex: 1;
  text-align: right;
}

/* Petite case couleur (ex: couleur de la machine) */
.color-dot {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  border: 1px solid #000000;
  display: inline-block;
  flex-shrink: 0;
}


/* ==============================================
   9. ALERTE CHANGEMENT FILTRE
============================================== */

.alert {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 12px;
}

.alert--warning {
  background: #fff3cd;
  border: 1px solid #ffc107;
  color: #856404;
}

.alert--danger {
  background: #ffe0d9;
  border: 1px solid #d52e00;
  color: #d52e00;
}

.alert img {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}


/* ==============================================
   10. BLOC INTERVENTIONS
============================================== */

.interventions {
  background: #ffffff;
  border: 2px solid #000000;
  border-radius: 16px;
  overflow: hidden;
}

.interventions__header {
  background: #eaeaea;
  padding: 14px;
  text-align: center;
  font-weight: 700;
  font-size: 15px;
  border-bottom: 2px solid #000000;
}

.interventions__body {
  padding: 16px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Message vide */
.interventions__empty {
  padding: 40px;
  text-align: center;
  font-size: 15px;
  color: #292d32;
  width: 100%;
}

/* Carte d'une intervention */
.intervention-card {
  background: #ffffff;
  border: 1px solid #000000;
  border-radius: 12px;
  overflow: hidden;
  width: 200px;
  flex-shrink: 0;
}

.intervention-card__value {
  text-align: center;
  min-height: 40px;
}

.intervention-card__date {
  background: #eaeaea;
  border-bottom: 1px solid #000000;
  padding: 10px;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
}

.intervention-card__body {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
}

.intervention-card__separator {
  height: 1px;
  background: #cccccc;
}

.intervention-card__label {
  font-weight: 700;
  text-align: center;
}

.intervention-card__btn {
  text-align: center;
  margin-top: auto;
}

/* Bouton "voir document" */
.btn-doc {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 8px;
  background: #011780;
  color: #ffffff;
  font-size: 13px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  margin-top: 8px;
}

.btn-doc img {
  width: 18px;
  height: 18px;
}


/* ==============================================
   11. PAGE CONNEXION
============================================== */

.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f4f4f4;
}

.login-card {
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  width: 100%;
  max-width: 520px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

/* Partie haute noire avec le logo */
.login-card header {
  background: #000000;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 17% 0%;
}

.login-card img {
  height: 125px;
  width: auto;
}

/* Partie basse avec le formulaire */
.login-card-body {
  padding: 5%;
  display: flex;
  flex-direction: column;
  gap: 16px;
}


/**/
.login-card-body form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}





/* Champ de saisie (email, mot de passe) */
.form-field {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 54px;
  padding: 0 4%;
  border: 1px solid #000000;
  border-radius: 10px;
  background: #ffffff;
}

.form-field img {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.form-field input {
  flex: 1;
  border: none;
  outline: none;
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  color: #292d32;
  background: transparent;
}

.form-field input::placeholder {
  color: #000000;
}

/* Bouton de connexion */
.btn-login {
  width: 100%;
  height: 54px;
  border-radius: 10px;
  background: #000000;
  color: #ffffff;
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: background 0.2s;
}

.btn-login img {
  width: 22px;
  height: 22px;
}

/* Lien mot de passe oublié */
.login-forgot {
  text-align: center;
  font-size: 14px;
  color: #292d32;
  cursor: pointer;
}


/* ==============================================
   12. PAGE MON COMPTE
============================================== */

/* Style du titre "Mes informations" */
.page-title {
  text-align: center;
  border: 1px solid #000;
  border-radius: 50px;
  width: fit-content;
  margin: 30px auto 30px;
  padding: 10px 40px;
  font-size: 24px;
  font-weight: 500;
}

.account-card {
  background: #ffffff;
  border: 2px solid #000000;
  border-radius: 16px;
  overflow: hidden;
  max-width: 640px;
  margin: 0 auto;
}


/* Footer de la carte avec le bouton principal */
.account-card__footer {
  display: flex;
  justify-content: center;
  padding: 20px;
}

.account-card__row {
  display: flex;
  align-items: center;
  padding: 14px 20px;
  border-bottom: 1px solid #cccccc;
  font-size: 15px;
  gap: 12px;
}

.account-card__row:last-child {
  border-bottom: none;
}

.account-card__label {
  font-weight: 500;
  min-width: 160px;
  flex-shrink: 0;
}

.account-card__value {
  flex: 1;
  font-weight: 400;
  text-align: center;
}

/* Petit bouton "Modifier" sur la ligne mot de passe */
.btn-edit-small {
  padding: 6px 14px;
  border-radius: 8px;
  background: #011780;
  color: #ffffff;
  font-size: 13px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
}


/*---------------------------------------------------------*/


/* Bloc langue en bas */
.language-block {
  display: flex;
  align-items: center;
  background: #ffffff;
  border: 2px solid #000000;
  padding: 14px 20px;
  border-radius: 16px;
  margin-top: 16px;
  margin-left: 29%;
  margin-right: 29%;
}

.language-block img {
  width: 32px;
  height: 32px;
  border-radius: 4px;
  object-fit: cover;
}

.language-block span {
  font-size: 15px;
}

/* Le bloc visible par défaut (reprend votre style language-block) */
.language-block select {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 12px 20px;
  background: #ffffff;
  border: 2px solid #000000;
  border-radius: 50px;
  /* Style arrondi comme sur la capture */
  font-size: 15px;
}

.language-block select option {
  font-weight: 500;
  flex: 1;
}

/* Conteneur principal */
.language-block {
  display: flex;
  align-items: center;
  background: #ffffff;
  border: 2px solid #000000;
  padding: 10px 20px;
  border-radius: 50px;
  /* Arrondi complet comme sur votre capture */
  margin-top: 16px;
  max-width: 640px;
  /* Plus sûr que les % pour éviter les bugs sur mobile */
  margin-left: auto;
  margin-right: auto;
  font-size: 15px;
  gap: 16px;
}

.language-label {
  font-weight: 500;
  flex: 1;
  /* Pousse le sélecteur vers la droite */
}

/* Le faux Select */
.custom-select-container {
  position: relative;
  min-width: 150px;
  user-select: none;
}

.container-dashboard {
  padding: 20px;
  max-width: 1300px;
  margin: 0 auto;
}

.custom-select-value {
  display: flex;
  align-items: center;
  gap: 8px;
}

.custom-select-value img,
.custom-option img {
  width: 24px;
  height: 18px;
  border-radius: 2px;
  object-fit: cover;
}

.arrow {
  font-size: 10px;
  transition: transform 0.3s ease;
}

/* La liste des options (cachée par défaut) */
.custom-options {
  position: absolute;
  top: 150%;
  /* Pointe vers le bas */
  right: 0;
  background: #ffffff;
  border: 2px solid #000000;
  border-radius: 12px;
  list-style: none;
  padding: 8px 0;
  margin: 0;
  min-width: 100%;
  box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.1);
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  z-index: 100;
}

/* Quand le menu est ouvert */
.custom-select-container.open .custom-options {
  opacity: 1;
  visibility: visible;
  top: 120%;
}

.custom-select-container.open .arrow {
  transform: rotate(180deg);
}

/* Les lignes d'options */
.custom-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  cursor: pointer;
  transition: background 0.2s;
}

.custom-option:hover {
  background: #f0f0f0;
}


/* ==============================================
   13. MODALES
============================================== */

/* Fond sombre derrière la modale */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  padding: 20px;
}

/* Boite blanche de la modale */
.modal {
  background: #ffffff;
  border-radius: 16px;
  padding: 30px;
  width: 100%;
  max-width: 700px;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
  border: 2px solid #000;
}


.modal__header {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

/* Le numéro du client est poussé à droite */
.modal__header .modal__client {
  margin-left: auto;
  margin-right: auto;
}

/* Bouton fermer la modale */
.modal__close {
  position: absolute;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid #000;
  border-radius: 50%;
  font-size: 18px;
}

/* Numéro du client */
.modal__client {
  background: #ffffff;
  border: 1px solid #000000;
  color: #292d32;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 18px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}

/* Titre de la modale */
.modal__title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 20px;
  text-align: center;
}

/* Ligne de formulaire dans la modale */
.modal__row {
  display: flex;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #cccccc;
  gap: 12px;
}

.modal__row textarea {
  flex: 1;
  min-height: 120px;
  border: 1px solid #000000;
  border-radius: 8px;
  padding: 10px;
  font-family: 'Poppins', sans-serif;
  resize: vertical;
  outline: none;
}

.modal__row button {
  background: #000000;
  color: #ffffff;
  padding: 10px 24px;
  border-radius: 8px;
  border: none;
  font-family: 'Poppins', sans-serif;
  cursor: pointer;
}

.modal__row:last-of-type {
  border-bottom: none;
}

.modal__label {
  font-size: 14px;
  font-weight: 500;
  min-width: 150px;
  flex-shrink: 0;
}

/* Champ texte dans la modale */
.modal input[type="text"],
.modal input[type="date"],
.modal select {
  height: 38px;
  padding: 0 12px;
  border: 1px solid #000000;
  border-radius: 8px;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  color: #292d32;
  background: #ffffff;
  outline: none;
}

/* Zone état de l'intervention (radio) */
.modal__states {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 10px 0;
}

.modal__state-option {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  cursor: pointer;
}

.modal__state-option input {
  width: 16px;
  height: 16px;
  accent-color: #011780;
  flex-shrink: 0;
}

/* Zone upload / description */
.modal__upload {
  width: 100%;
  min-height: 120px;
  border: 1px solid #000000;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 20px;
  font-size: 14px;
  text-align: center;
  flex-wrap: wrap;
}

/* Choix scanner vs numérique */
.modal-choice {
  display: flex;
  gap: 40px;
  align-items: stretch;
  justify-content: center;
  flex-wrap: wrap;
}

.modal-choice__divider {
  width: 1px;
  background: #cccccc;
}

.modal-choice__option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  flex: 1;
  min-width: 200px;
  text-align: center;
}

.modal-choice__option img {
  width: 120px;
  height: 120px;
  object-fit: contain;
}

.modal-choice__option p {
  font-size: 14px;
  font-weight: 500;
}

/* ------------------------------------------ */

/* Modale succès */
.modal-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}

.modal-success__icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #2ecc71;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-success__icon svg {
  width: 32px;
  height: 32px;
  stroke: #ffffff;
  fill: none;
  stroke-width: 3;
}

.modal-success__message {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.6;
}

/* Bouton valider en bas de modale */
.btn-validate {
  height: 48px;
  padding: 0 28px;
  border-radius: 10px;
  color: #ffffff;
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background 0.2s;

  background: #000000;
}



/* ==============================================
   AJOUTS app.css — Gestion Machines
   À ajouter à la suite du fichier app.css existant
   ============================================== */


/* ==============================================
   A. MENU CATÉGORIE (barre de navigation machines)
============================================== */

.menu-categorie {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;

}

.menu-categorie a {
  font-size: 14px;
  font-weight: 500;
  color: #292d32;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.15s, color 0.15s;
  text-decoration: none;
}

.menu-categorie a:hover,
.menu-categorie a.menu-categorie__item--active {
  color: #000000;
  border-bottom-color: #000000;
  font-weight: 700;
}

.menu-categorie span {
  color: #cccccc;
  user-select: none;
}


/* ==============================================
   B. FILTRES DE STATUS (onglets En service / En panne…)
============================================== */

.status-filters {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* Bouton de filtre status — état inactif */
.btn-status {
  display: inline-flex;
  align-items: center;
  height: 38px;
  padding: 0 20px;
  border-radius: 50px;
  border: 1px solid #000000;
  background: #ffffff;
  color: #292d32;
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}

.btn-status:hover {
  background: #f0f0f0;
}

/* Bouton de filtre status — état actif (sélectionné) */
.btn-status--active {
  background: #000000;
  color: #ffffff;
  border-color: #000000;
}

.btn-status--active:hover {
  background: #292d32;
}


/* ==============================================
   C. BADGES DE STATUS (couleur dans les tableaux)
   Complète les badges existants : badge-status--red, --blue
============================================== */

/* Vert — En service / Opérationnel / En stock */
.badge-status--green {
  background: #1a7a3c;
  color: #ffffff;
}

/* Orange — En panne / À remplacer / À commander */
.badge-status--orange {
  background: #d97706;
  color: #ffffff;
}

/* Gris — Hors service / Dans entrepôt / Non répertorié */
.badge-status--grey {
  background: #6b7280;
  color: #ffffff;
}

/* Bleu sombre — En atelier */
/* .badge-status--blue est déjà défini dans app.css (#011780) */


/* ==============================================
   D. ZONE VIDE (aucune catégorie sélectionnée)
============================================== */

.machines-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
}

.machines-empty__text {
  font-size: 1.8rem;
  font-weight: 600;
  color: #aaaaaa;
  text-align: center;
  line-height: 1.4;
}


/* ==============================================
   E. TITRE DE PAGE
============================================== */

.page-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: #292d32;
  margin: 0;
}

.section-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #292d32;
  margin-bottom: 12px;
}

.section-subtitle {
  font-size: 1rem;
  font-weight: 600;
  color: #292d32;
  margin: 20px 0 8px;
}


/* ==============================================
   F. CARTE FORMULAIRE (conteneur principal)
============================================== */

.form-card {
  background: #ffffff;
  border: 2px solid #000000;
  border-radius: 16px;
  padding: 32px;
  max-width: 1000px;
  margin: 0 auto;
}

.form-section {
  /* Sections de formulaires (Machine, Moulin, Filtre) */
}

.form-section__title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #292d32;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eaeaea;
}


/* ==============================================
   G. GRILLE ET CHAMPS DE FORMULAIRE
============================================== */

.type-machine-select {
  margin-bottom: 24px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

@media (max-width: 700px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
}

/* Champ pleine largeur dans la grille */
.form-group--full {
  grid-column: 1 / -1;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-signature {
  display: flex;
  flex-direction: column;
}

/* Label */
.form-label,
.form-group label {
  font-size: 13px;
  font-weight: 600;
  color: #292d32;
}

/* Input text / date */
.form-input {
  height: 44px;
  padding: 0 14px;
  border: 1px solid #cccccc;
  border-radius: 8px;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  color: #292d32;
  background: #ffffff;
  outline: none;
  transition: border-color 0.15s;
  width: 100%;
}

.form-input:focus {
  border-color: #000000;
}

/* Select */
.form-select {
  height: 44px;
  padding: 0 14px;
  border: 1px solid #cccccc;
  border-radius: 8px;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  color: #292d32;
  background: #ffffff;
  outline: none;
  cursor: pointer;
  width: 100%;
  transition: border-color 0.15s;
  appearance: auto;
}

.form-select:focus {
  border-color: #000000;
}

/* Select multi (pièces compatibles) */
.select-multi {
  height: auto;
  min-height: 140px;
  padding: 8px;
  border-radius: 8px;
}

/* Textarea */
.form-textarea {
  padding: 10px 14px;
  border: 1px solid #cccccc;
  border-radius: 8px;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  color: #292d32;
  background: #ffffff;
  outline: none;
  resize: vertical;
  width: 100%;
  transition: border-color 0.15s;
}

.form-textarea:focus {
  border-color: #000000;
}

/* Texte d'aide sous un champ */
.form-help {
  font-size: 12px;
  color: #888888;
  margin-top: 2px;
}

/* Erreurs Symfony */
.form-error,
ul.form-error li {
  font-size: 12px;
  color: #d52e00;
  list-style: none;
  padding: 0;
  margin: 0;
}


/* ==============================================
   H. ACTIONS DE FORMULAIRE (boutons bas de page)
============================================== */

.form-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid #eaeaea;
  margin-top: 8px;
}


/* ==============================================
   I. ALERT SUCCESS (complète les alerts existantes)
============================================== */

.alert--success {
  background: #d1fae5;
  border: 1px solid #059669;
  color: #065f46;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 16px;
}


/* ==============================================
   J. KBD (raccourci clavier dans les instructions)
============================================== */

kbd {
  background: #eaeaea;
  border: 1px solid #cccccc;
  border-radius: 4px;
  padding: 1px 6px;
  font-family: monospace;
  font-size: 12px;
}


/* ==============================================
   K. PAGES INFO (info_machine / moulin / filtre / pièce)
============================================== */

/* Grille principale : tableau + colonnes en dessous */
.info-page__grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Tableau d'en-tête de la fiche (une seule ligne) */
.info-table {
  margin-bottom: 0;
}

/* Deux colonnes : client à gauche, pièces à droite */
.info-page__columns {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 24px;
  align-items: start;
}

@media (max-width: 900px) {
  .info-page__columns {
    grid-template-columns: 1fr;
  }
}

/* Carte d'informations (client, pièce) */
.info-card {
  background: #ffffff;
  border: 2px solid #000000;
  border-radius: 16px;
  overflow: hidden;
}

.info-card--centered {
  max-width: 600px;
  margin: 0 auto;
}

.info-card__header {
  background: #eaeaea;
  padding: 12px 16px;
  font-weight: 700;
  font-size: 14px;
  border-bottom: 2px solid #000000;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.info-card__row {
  display: flex;
  align-items: baseline;
  padding: 10px 16px;
  border-bottom: 1px solid #eeeeee;
  font-size: 14px;
  gap: 8px;
}

.info-card__row:last-child {
  border-bottom: none;
}

.info-card__label {
  color: #666;
  min-width: 180px;
  flex-shrink: 0;
  font-size: 13px;
}

.info-card__value {
  color: #292d32;
  font-size: 14px;
}


/* ==============================================
   L. BOUTONS ICÔNE (modifier, retirer)
============================================== */

.btn-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid #000000;
  background: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s;
  flex-shrink: 0;
}

.btn-icon:hover {
  background: #f0f0f0;
}

.btn-icon--danger {
  border-color: #d52e00;
  color: #d52e00;
}

.btn-icon--danger:hover {
  background: #ffe0d9;
}

.btn-icon--right {
  margin-left: auto;
}



/* ==============================================
   M. BOUTON "Ajouter une machine" (tfoot tableau pièce)
============================================== */

.btn-add-model {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 20px;
  border-radius: 50px;
  border: 1px solid #cccccc;
  background: #f9f9f9;
  color: #888888;
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.btn-add-model:hover {
  background: #eaeaea;
  color: #292d32;
}


/* ==============================================
   N. MODALS
============================================== */

.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.modal__box {
  position: relative;
  z-index: 1;
  background: #ffffff;
  border-radius: 16px;
  border: 2px solid #000000;
  width: 100%;
  max-width: 700px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
}

.modal__box--sm {
  max-width: 420px;
}

.modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 2px solid #000000;
  background: #eaeaea;
  border-radius: 14px 14px 0 0;
}

.modal__title {
  font-size: 15px;
  font-weight: 700;
  color: #292d32;
  margin: 0;
}

.modal__close {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: #292d32;
  line-height: 1;
  padding: 2px 6px;
  border-radius: 4px;
  transition: background 0.15s;
}

.modal__close:hover {
  background: #cccccc;
}

.modal__body {
  padding: 24px 20px 8px;
}

.modal__footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px 0 4px;
  border-top: 1px solid #eaeaea;
  margin-top: 16px;
}


/* ==============================================
   O. BOUTONS +/- stock dans le modal
============================================== */

.btn-stock-minus,
.btn-stock-plus {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid #000000;
  background: #ffffff;
  font-size: 20px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
  line-height: 1;
}

.btn-stock-minus:hover {
  background: #ffe0d9;
  border-color: #d52e00;
  color: #d52e00;
}

.btn-stock-plus:hover {
  background: #d1fae5;
  border-color: #059669;
  color: #059669;
}







/* ==============================================
   AJOUTS app.css — Gestion Machines
   À ajouter à la suite du fichier app.css existant
   ============================================== */


/* ==============================================
   A. MENU CATÉGORIE (barre de navigation machines)
============================================== */

.menu-categorie {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  gap: 12px;
  flex-wrap: wrap;
}

.menu-categorie a {
  font-size: 14px;
  font-weight: 500;
  color: #292d32;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.15s, color 0.15s;
  text-decoration: none;
}

.menu-categorie a:hover,
.menu-categorie a.menu-categorie__item--active {
  color: #000000;
  border-bottom-color: #000000;
  font-weight: 700;
}

.menu-categorie span {
  color: #cccccc;
  user-select: none;
}


/* ==============================================
   B. FILTRES DE STATUS (onglets En service / En panne…)
============================================== */

.status-filters {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

/* Bouton de filtre status — état inactif */
.btn-status {
  display: inline-flex;
  align-items: center;
  height: 38px;
  padding: 0 20px;
  border-radius: 50px;
  border: 1px solid #000000;
  background: #ffffff;
  color: #292d32;
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}

.btn-status:hover {
  background: #f0f0f0;
}

/* Bouton de filtre status — état actif (sélectionné) */
.btn-status--active {
  background: #000000;
  color: #ffffff;
  border-color: #000000;
}

.btn-status--active:hover {
  background: #292d32;
}


/* ==============================================
   C. BADGES DE STATUS (couleur dans les tableaux)
   Complète les badges existants : badge-status--red, --blue
============================================== */

/* Vert — En service / Opérationnel / En stock */
.badge-status--green {
  background: #1a7a3c;
  color: #ffffff;
}

/* Orange — En panne / À remplacer / À commander */
.badge-status--orange {
  background: #d97706;
  color: #ffffff;
}

/* Gris — Hors service / Dans entrepôt / Non répertorié */
.badge-status--grey {
  background: #6b7280;
  color: #ffffff;
}

/* Bleu sombre — En atelier */
/* .badge-status--blue est déjà défini dans app.css (#011780) */


/* ==============================================
   D. ZONE VIDE (aucune catégorie sélectionnée)
============================================== */

.machines-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
}

.machines-empty__text {
  font-size: 1.8rem;
  font-weight: 600;
  color: #aaaaaa;
  text-align: center;
  line-height: 1.4;
}


/* ==============================================
   E. TITRE DE PAGE
============================================== */

.page-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: #292d32;
  margin: 0;
}

.section-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #292d32;
  margin-bottom: 12px;
}

.section-subtitle {
  font-size: 1rem;
  font-weight: 600;
  color: #292d32;
  margin: 20px 0 8px;
}


/* ==============================================
   F. CARTE FORMULAIRE (conteneur principal)
============================================== */

.form-card {
  background: #ffffff;
  border: 2px solid #000000;
  border-radius: 16px;
  padding: 32px;
  max-width: 1000px;
  margin: 0 auto;
}

.form-section {
  /* Sections de formulaires (Machine, Moulin, Filtre) */
}

.form-section__title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #292d32;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eaeaea;
}


/* ==============================================
   G. GRILLE ET CHAMPS DE FORMULAIRE
============================================== */

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

@media (max-width: 700px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
}

/* Champ pleine largeur dans la grille */
.form-group--full {
  grid-column: 1 / -1;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 200px;
  overflow-y: auto;
  border: 1px solid #ddd;
  padding: 12px;
  border-radius: 6px;
  background: #fff;
}

/* Label */
.form-label,
.form-group label {
  font-size: 13px;
  font-weight: 600;
  color: #292d32;
}

/* Input text / date */
.form-input {
  height: 44px;
  padding: 0 14px;
  border: 1px solid #cccccc;
  border-radius: 8px;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  color: #292d32;
  background: #ffffff;
  outline: none;
  transition: border-color 0.15s;
  width: 100%;
}

.form-input:focus {
  border-color: #000000;
}

/* Select */
.form-select {
  height: 44px;
  padding: 0 14px;
  border: 1px solid #cccccc;
  border-radius: 8px;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  color: #292d32;
  background: #ffffff;
  outline: none;
  cursor: pointer;
  width: 100%;
  transition: border-color 0.15s;
  appearance: auto;
}

.form-select:focus {
  border-color: #000000;
}

/* Select multi (pièces compatibles) */
.select-multi {
  height: auto;
  min-height: 140px;
  padding: 8px;
  border-radius: 8px;
}

/* Textarea */
.form-textarea {
  padding: 10px 14px;
  border: 1px solid #cccccc;
  border-radius: 8px;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  color: #292d32;
  background: #ffffff;
  outline: none;
  resize: vertical;
  width: 100%;
  transition: border-color 0.15s;
}

.form-textarea:focus {
  border-color: #000000;
}

/* Texte d'aide sous un champ */
.form-help {
  font-size: 12px;
  color: #888888;
  margin-top: 2px;
}

/* Erreurs Symfony */
.form-error,
ul.form-error li {
  font-size: 12px;
  color: #d52e00;
  list-style: none;
  padding: 0;
  margin: 0;
}

.form-check {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
}

.form-check-label {
  font-weight: normal;
  margin: 0;
  cursor: pointer;
}

.form-check-input {
  margin: 0 8px 0 0;
}

/* ==============================================
   H. ACTIONS DE FORMULAIRE (boutons bas de page)
============================================== */

.form-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid #eaeaea;
  margin-top: 8px;
}


/* ==============================================
   I. ALERT SUCCESS (complète les alerts existantes)
============================================== */

.alert--success {
  background: #d1fae5;
  border: 1px solid #059669;
  color: #065f46;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 16px;
}


/* ==============================================
   J. KBD (raccourci clavier dans les instructions)
============================================== */

kbd {
  background: #eaeaea;
  border: 1px solid #cccccc;
  border-radius: 4px;
  padding: 1px 6px;
  font-family: monospace;
  font-size: 12px;
}




























/* ==============================================
   14. RESPONSIVE — TABLETTE PAYSAGE & LAPTOP
   Breakpoints :
     800px  → tablette paysage (min ciblé)
     1100px → laptop normal
     1600px → grand écran
============================================== */

@media (max-width: 1200px) {
  .navbar {
    padding: 0 20px;
  }

  .main {
    padding: 20px;
  }

  .card__label {
    min-width: 120px;
  }
}

@media (min-width: 1600px) {
  .main {
    max-width: 1600px;
    margin: 0 auto;
  }
}