/* 
 * Calculateur de consommation électrique - Styles personnalisés
 * Version optimisée pour compléter Tailwind CSS
 */

/* Police principale */
#calculateur-elec,
#calculateur-elec *{
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

/* Écran de chargement - styles de secours */
#loading-screen {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

/* S'assurer que le body ne défile pas pendant le chargement */
body.loading {
  overflow: hidden;
}
.card-field-unit {
  min-height: 30px !important;
}

/* Styles pour les info-bulles */
#calculateur-elec .info-icon{
  cursor: help;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  font-size: 11px;
  font-weight: bold;
  transition: all 0.2s ease;
  background-color: #0284c7 !important;
  color: white !important;
  position: relative;
  border: none;
}

#calculateur-elec .info-icon:hover{
  transform: scale(1.1);
  background-color: #0369a1 !important;
  color: white !important;
}

/* Styles spécifiques pour surcharger Tailwind */
#calculateur-elec button.info-icon{
  background-color: #0284c7 !important;
  color: white !important;
}

#calculateur-elec button.info-icon:hover{
  background-color: #0369a1 !important;
  color: white !important;
}

/* Tooltips JavaScript - Styles pour le conteneur dynamique */
#calculateur-elec .js-tooltip{
  position: fixed;
  background-color: #1f2937;
  color: white;
  padding: 12px 16px;
  border-radius: 8px;
  border: 1px solid #374151;
  font-size: 13px;
  font-weight: normal;
  white-space: normal;
  z-index: 10000;
  width: 280px;
  text-align: left;
  line-height: 1.4;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  box-sizing: border-box;
}

#calculateur-elec .js-tooltip.show{
  opacity: 1;
}

#calculateur-elec .js-tooltip::after{
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: #1f2937;
}

/* Fallback tooltip CSS pur - désactivé car JavaScript fonctionne */

/* Styles pour les en-têtes de tableau */
#calculateur-elec th .js-tooltip{
  width: 320px;
}

/* Boutons de basculement vue */
.view-toggle-btn {
  background-color: transparent;
  color: #64748b;
  border: none;
  cursor: pointer;
}

.view-toggle-btn.active {
  background-color: white;
  color: #0ea5e9;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.view-toggle-btn:hover:not(.active) {
  background-color: rgba(255, 255, 255, 0.5);
  color: #374151;
}

/* Boutons de mode utilisateur */
.mode-toggle-btn {
  background-color: transparent;
  color: #059669;
  border: none;
  cursor: pointer;
  position: relative;
}

.mode-toggle-btn.active {
  background-color: #059669;
  color: white;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.mode-toggle-btn:hover:not(.active) {
  background-color: rgba(5, 150, 105, 0.1);
  color: #047857;
}

/* Éléments masqués selon le mode */
.mode-debutant .standard-only {
  display: none !important;
}

/* Repères visuels pour les éléments révélés en mode avancé */
.newly-revealed {
  color: #059669 !important;
}

/* Restaurer le scroll normal pour le tableau */
#calculateur-elec .table-wrapper{
  overflow: hidden;
}

#calculateur-elec .table-container{
  overflow-x: auto;
}

/* Styles pour les lignes d'exemples */
#calculateur-elec .example-row{
  background-color: #f8fafc !important;
}

#calculateur-elec .example-row:hover{
  background-color: #f1f5f9 !important;
}

#calculateur-elec .example-row input::placeholder{
  color: #94a3b8;
  font-style: italic;
}

#calculateur-elec .example-row input:focus::placeholder{
  color: transparent;
}

/* Styles pour les boutons de suppression */
#calculateur-elec .delete-btn{
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: none;
  background: #fef2f2;
  color: #dc2626;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

#calculateur-elec .delete-btn:hover{
  background: #fee2e2;
  transform: scale(1.05);
}

/* Amélioration de l'accessibilité */
input:focus, 
select:focus, 
#calculateur-elec button:focus{
  outline: 2px solid #0ea5e9;
  outline-offset: 2px;
}

/* Animation pour les transitions */
#calculateur-elec tr{
  transition: background-color 0.2s ease;
}

/* Styles pour les champs désactivés */
#calculateur-elec input:disabled{
  opacity: 0.6;
  cursor: not-allowed;
}

/* Styles pour les résultats de consommation en bleu */
#calculateur-elec .table-result-input {
  color: #0ea5e9 !important;
  font-weight: 600;
}

/* Styles pour le tableau responsive */
#calculateur-elec .table-container{
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Responsive design - Mobile First */

/* Tablettes */
@media (max-width: 1024px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  /* Réduction des gaps dans la grille principale */
  #calculateur-elec .grid-cols-3 {
    gap: 1rem;
  }
  
  /* Cartes sur tablette - 2 colonnes */
  #calculateur-elec #equipements-cards {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }
}

/* Tablettes petites et mobiles larges */
@media (max-width: 768px) {
  .container {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
  
  /* Toutes les boîtes blanches principales */
  #calculateur-elec .bg-white {
    margin-left: 0.5rem;
    margin-right: 0.5rem;
    padding: 1rem;
  }
  
  /* Layout de la barre d'outils en colonnes sur mobile */
  #calculateur-elec .grid-cols-3 {
    grid-template-columns: 1fr;
    gap: 1rem;
    text-align: center;
  }
  
  /* Centrer les contrôles */
  #calculateur-elec .grid-cols-3 > div {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
  }
  
  /* Table responsive */
  #calculateur-elec table {
    font-size: 12px;
    min-width: 800px; /* Réduit de 900px */
  }
  
  #calculateur-elec th, #calculateur-elec td {
    padding: 0.25rem 0.125rem;
  }
  
  #calculateur-elec input, #calculateur-elec select {
    font-size: 12px;
    padding: 0.125rem 0.25rem;
  }
  
  #calculateur-elec .info-icon {
    width: 14px;
    height: 14px;
    font-size: 10px;
  }
  
  #calculateur-elec h1 {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
  }
  
  #calculateur-elec h2 {
    font-size: 1.25rem;
  }
  
  /* Boutons de vue plus compacts */
  #calculateur-elec .view-toggle-btn {
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
  }
  
  /* Sections de paramètres */
  #calculateur-elec .grid[class*="md:grid-cols-2"] {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  /* Labels plus courts sur mobile */
  #calculateur-elec label[class*="min-w-"][class*="180px"] {
    min-width: 120px;
    font-size: 0.875rem;
  }
  
  #calculateur-elec label[class*="min-w-"][class*="140px"] {
    min-width: 100px;
    font-size: 0.875rem;
  }
  
  /* Cartes sur mobile large - 1 colonne */
  #calculateur-elec #equipements-cards {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  #calculateur-elec .equipment-card {
    padding: 1rem;
  }
  
  #calculateur-elec .card-fields {
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
  }
  
  #calculateur-elec .card-results {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  
  /* Labels de résultats plus compacts sur mobile */
  #calculateur-elec .card-result-label {
    font-size: 10px;
    line-height: 1.2;
    margin-bottom: 6px;
  }
  
  /* Boutons d'info dans les résultats - taille optimale sur tablette */
  #calculateur-elec .card-result-label .info-icon {
    width: 14px !important;
    height: 14px !important;
    font-size: 10px !important;
    margin-left: 2px;
  }
  
  /* Maintenir l'uniformité sur tablette */
  #calculateur-elec .card-field-with-unit {
    width: 100%;
    max-width: 100%;
  }
  
  #calculateur-elec .card-field-with-unit input {
    flex: 1;
    min-width: 0;
  }
  
  #calculateur-elec .card-result .card-field-with-unit {
    width: 100%;
    max-width: 100%;
  }
  
  #calculateur-elec .card-result .card-field-with-unit input {
    flex: 1;
    min-width: 0;
    
  }
}

/* Mobiles */
@media (max-width: 640px) {
  .container {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    padding-top: 1rem;
    padding-bottom: 1rem;
  }
  
  /* Padding réduit pour toutes les boîtes */
  #calculateur-elec .bg-white {
    margin-left: 0.25rem;
    margin-right: 0.25rem;
    padding: 0.75rem;
  }
  
  #calculateur-elec h1 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }
  
  #calculateur-elec h2 {
    font-size: 1.125rem;
  }
  
  /* Contrôles en stack vertical */
  #calculateur-elec .grid-cols-3 > div {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  /* Boutons de vue en stack */
  #calculateur-elec .view-toggle-btn {
    width: 100%;
    max-width: 200px;
    padding: 0.625rem;
  }
  
  /* Table encore plus compacte */
  #calculateur-elec table {
    font-size: 11px;
    min-width: 750px;
  }
  
  #calculateur-elec th, #calculateur-elec td {
    padding: 0.125rem 0.0625rem;
  }
  
  #calculateur-elec input, #calculateur-elec select {
    font-size: 11px;
    padding: 0.1rem 0.2rem;
  }
  
  /* Labels raccourcis */
  #calculateur-elec label[class*="min-w-"] {
    min-width: auto;
    font-size: 0.8rem;
    text-align: left;
  }
  
  /* Champs de saisie plus compacts */
  #calculateur-elec input[type="number"] {
    width: 3rem;
  }
  
  /* Totaux en stack sur mobile */
  #calculateur-elec div[class*="flex"][class*="justify-center"][class*="gap-8"] {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }
  
  #calculateur-elec div[class*="flex"][class*="justify-center"][class*="gap-8"] > span:first-child {
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
  }
  
  /* Grilles de résultats compactes */
  #calculateur-elec div[class*="grid"][class*="grid-cols-2"] {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  
  /* Cartes sur mobile - optimisation supplémentaire pour iPhone */
  #calculateur-elec #equipements-cards {
    grid-template-columns: 1fr;
    gap: 0.75rem;
    padding: 0;
    margin: 0;
  }
  
  #calculateur-elec .equipment-card {
    padding: 0.75rem;
    margin: 0 0 0.75rem 0;
    border-radius: 12px;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
  }
  
  /* En-tête de carte plus compact sur mobile */
  #calculateur-elec .card-header {
    margin: -0.75rem -0.75rem 0.75rem -0.75rem;
    padding: 0.75rem;
    border-radius: 12px 12px 0 0;
  }
  
  #calculateur-elec .card-equipment-name {
    gap: 6px;
    margin-right: 6px;
  }
  
  #calculateur-elec .card-equipment-name input {
    padding: 6px 8px;
    font-size: 14px;
    min-width: 0;
    flex: 1;
  }
  
  #calculateur-elec .card-equipment-name .equipment-emoji {
    font-size: 18px;
  }
  
  #calculateur-elec .card-delete-btn {
    width: 26px;
    height: 26px;
    font-size: 14px;
  }
  
  /* Champs de cartes en colonne unique sur mobile */
  #calculateur-elec .card-fields {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  
  #calculateur-elec .card-field {
    gap: 3px;
  }
  
  #calculateur-elec .card-field label {
    font-size: 11px;
  }
  
  #calculateur-elec .card-field input,
  #calculateur-elec .card-field select {
    padding: 6px 8px;
    font-size: 14px;
    width: 100%;
    max-width: 100%;
  }
  
  /* Maintenir l'uniformité sur mobile */
  #calculateur-elec .card-field-with-unit {
    width: 100%;
    max-width: 100%;
    display: flex;
  }
  
  #calculateur-elec .card-field-with-unit input {
    flex: 1;
    min-width: 0;
    padding: 6px 8px;
    font-size: 14px;
  }
  
  #calculateur-elec .card-field-unit {
    padding: 6px 4px;
    font-size: 11px;
    flex-shrink: 0;
    white-space: nowrap;
  }
  
  /* Résultats de cartes sur mobile */
  #calculateur-elec .card-results {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    padding-left: 0;
    padding-right: 0;
    padding-bottom: 0;
  }

  #calculateur-elec .card-results .card-result-label {
    font-size: 12px;
    font-weight: 700;
    color: #0ea5e9;
    line-height: 1.2;
    margin-bottom: 8px;
    text-align: center;
  }

  #calculateur-elec .card-results-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  #calculateur-elec .card-result {
    padding: 0;
  }

  #calculateur-elec .card-result .card-field-with-unit input {
    font-size: 14px !important;
    padding: 6px 8px !important;
    border: 1px solid #d1d5db !important;
    border-radius: 6px 0 0 6px !important;
    background: white !important;
  }

  #calculateur-elec .card-result .card-field-unit {
    font-size: 11px !important;
    padding: 6px 4px !important;
    display: flex !important;
    align-items: center !important;
    background: #f1f5f9 !important;
    border: 1px solid #d1d5db !important;
    border-left: none !important;
    border-radius: 0 6px 6px 0 !important;
    color: #64748b !important;
    font-weight: 500 !important;
    flex-shrink: 0 !important;
    min-width: fit-content !important;
    line-height: 1 !important;
    justify-content: center !important;
  }
  
  #calculateur-elec .card-result {
    padding: 0;
  }
  
  /* Labels de résultats plus compacts sur mobile */
  #calculateur-elec .card-result-label {
    font-size: 9px;
    line-height: 1.1;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  
  /* Boutons d'info dans les résultats - taille minimale pour la lisibilité */
  #calculateur-elec .card-result-label .info-icon {
    width: 14px !important;
    height: 14px !important;
    font-size: 10px !important;
    margin-left: 2px;
  }
  
  #calculateur-elec .card-result .card-field-with-unit {
    width: 100%;
    max-width: 100%;
  }
  

}

/* Très petits mobiles - iPhone SE, petits Android */
@media (max-width: 480px) {
  .container {
    padding-left: 0.25rem;
    padding-right: 0.25rem;
  }
  
  #calculateur-elec .bg-white {
    margin-left: 0.125rem;
    margin-right: 0.125rem;
    padding: 0.5rem;
  }
  
  #calculateur-elec h1 {
    font-size: 1.25rem;
  }
  
  /* Table très compacte */
  #calculateur-elec table {
    font-size: 10px;
    min-width: 700px;
  }
  
  #calculateur-elec input, #calculateur-elec select {
    font-size: 10px;
    padding: 0.0625rem 0.125rem;
  }
  
  /* Bouton d'ajout plus petit */
  #calculateur-elec #add-btn {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
  }
  
  /* Cartes sur très petit mobile - ultra compact et sans débordement */
  #calculateur-elec #equipements-cards {
    gap: 0.5rem;
    padding: 0;
    margin: 0;
    width: 100%;
    overflow: hidden;
  }
  
  #calculateur-elec .equipment-card {
    padding: 0.5rem;
    margin: 0 0 0.5rem 0;
    border-radius: 8px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }
  
  /* En-tête encore plus compact sur très petit mobile */
  #calculateur-elec .card-header {
    margin: -0.5rem -0.5rem 0.5rem -0.5rem;
    padding: 0.5rem;
    border-radius: 8px 8px 0 0;
  }
  
  #calculateur-elec .card-equipment-name {
    gap: 4px;
    margin-right: 4px;
  }
  
  #calculateur-elec .card-equipment-name input {
    padding: 4px 6px;
    font-size: 13px;
  }
  
  #calculateur-elec .card-equipment-name .equipment-emoji {
    font-size: 16px;
  }
  
  #calculateur-elec .card-delete-btn {
    width: 24px;
    height: 24px;
    font-size: 12px;
  }
  
  #calculateur-elec .card-field label {
    font-size: 10px;
  }
  
  #calculateur-elec .card-field input,
  #calculateur-elec .card-field select {
    padding: 4px 6px;
    font-size: 13px;
  }
  
  /* Champs avec unité ultra compacts */
  #calculateur-elec .card-field-with-unit input {
    flex: 1;
    min-width: 0;
    font-size: 13px;
    padding: 4px 6px;
  }
  
  #calculateur-elec .card-field-unit {
    padding: 4px 3px;
    font-size: 10px;
  }
  
  /* S'assurer que les inputs de résultats aient la même hauteur */
  #calculateur-elec .card-result .card-field-with-unit input.card-result-input {
    font-size: 13px !important;
    padding: 4px 6px !important;
    border: 1px solid #d1d5db !important;
    border-radius: 6px 0 0 6px !important;
    background: white !important;
    box-sizing: border-box !important;
  }
  
  #calculateur-elec .card-result .card-field-unit {
    font-size: 10px !important;
    padding: 4px 3px !important;
    display: flex !important;
    align-items: center !important;
    background: #f1f5f9 !important;
    border: 1px solid #d1d5db !important;
    border-left: none !important;
    border-radius: 0 6px 6px 0 !important;
    color: #64748b !important;
    font-weight: 500 !important;
    flex-shrink: 0 !important;
    min-width: fit-content !important;
    line-height: 1 !important;
    justify-content: center !important;
  }
  
  /* Résultats ultra compacts */
  #calculateur-elec .card-results {
    padding-top: 0.5rem;
    padding-left: 0;
    padding-right: 0;
    padding-bottom: 0;
    margin-top: 0.5rem;
  }

  #calculateur-elec .card-results .card-result-label {
    font-size: 11px;
    font-weight: 700;
    color: #0ea5e9;
    line-height: 1.2;
    margin-bottom: 6px;
    text-align: center;
  }

  #calculateur-elec .card-results-grid {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  #calculateur-elec .card-result {
    padding: 0;
  }

  #calculateur-elec .card-result .card-field-with-unit input {
    font-size: 13px !important;
    padding: 4px 6px !important;
  }

  #calculateur-elec .card-result .card-field-unit {
    font-size: 10px !important;
    padding: 4px 3px !important;
    display: flex !important;
    align-items: center !important;
    background: #f1f5f9 !important;
    border: 1px solid #d1d5db !important;
    border-left: none !important;
    border-radius: 0 6px 6px 0 !important;
    color: #64748b !important;
    font-weight: 500 !important;
    flex-shrink: 0 !important;
    min-width: fit-content !important;
    line-height: 1 !important;
    justify-content: center !important;
  }
  
  #calculateur-elec .card-result {
    padding: 0;
  }
  
  /* Labels de résultats très compacts sur très petit mobile */
  #calculateur-elec .card-result-label {
    font-size: 8px;
    line-height: 1;
    margin-bottom: 3px;
  }
  
  /* Boutons d'info dans les résultats - taille minimale même sur très petit mobile */
  #calculateur-elec .card-result-label .info-icon {
    width: 12px !important;
    height: 12px !important;
    font-size: 9px !important;
    margin-left: 1px;
  }
  

}

/* Écrans iPhone très petits - 375px et moins */
@media (max-width: 375px) {
  .container {
    padding-left: 0.125rem;
    padding-right: 0.125rem;
  }
  
  #calculateur-elec .bg-white {
    margin-left: 0;
    margin-right: 0;
    padding: 0.375rem;
  }
  
  /* Cartes adaptées aux très petits iPhone */
  #calculateur-elec .equipment-card {
    padding: 0.375rem;
    margin: 0 0 0.375rem 0;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  }
  
  #calculateur-elec .card-header {
    margin: -0.375rem -0.375rem 0.375rem -0.375rem;
    padding: 0.375rem;
    border-radius: 6px 6px 0 0;
  }
  
  #calculateur-elec .card-equipment-name {
    gap: 3px;
    margin-right: 3px;
  }
  
  #calculateur-elec .card-equipment-name input {
    padding: 3px 4px;
    font-size: 12px;
  }
  
  #calculateur-elec .card-equipment-name .equipment-emoji {
    font-size: 14px;
  }
  
  #calculateur-elec .card-delete-btn {
    width: 20px;
    height: 20px;
    font-size: 11px;
  }
  
  #calculateur-elec .card-field label {
    font-size: 9px;
  }
  
  #calculateur-elec .card-field input,
  #calculateur-elec .card-field select {
    padding: 3px 4px;
    font-size: 12px;
  }
  
  #calculateur-elec .card-field-with-unit input {
    flex: 1;
    min-width: 0;
    font-size: 12px;
    padding: 3px 4px;
  }
  
  #calculateur-elec .card-field-unit {
    padding: 3px 2px;
    font-size: 9px;
  }
  
  /* S'assurer que les inputs de résultats aient la même hauteur */
  #calculateur-elec .card-result .card-field-with-unit input.card-result-input {
    font-size: 12px !important;
    padding: 3px 4px !important;
    border: 1px solid #d1d5db !important;
    border-radius: 6px 0 0 6px !important;
    background: white !important;
    box-sizing: border-box !important;
  }
  
  #calculateur-elec .card-result .card-field-unit {
    font-size: 9px !important;
    padding: 3px 2px !important;
    display: flex !important;
    align-items: center !important;
    background: #f1f5f9 !important;
    border: 1px solid #d1d5db !important;
    border-left: none !important;
    border-radius: 0 6px 6px 0 !important;
    color: #64748b !important;
    font-weight: 500 !important;
    flex-shrink: 0 !important;
    min-width: fit-content !important;
    line-height: 1 !important;
    justify-content: center !important;
  }
  
  #calculateur-elec .card-results {
    padding-top: 0.375rem;
    padding-left: 0;
    padding-right: 0;
    padding-bottom: 0;
    margin-top: 0.375rem;
  }

  #calculateur-elec .card-results .card-result-label {
    font-size: 10px;
    font-weight: 700;
    color: #0ea5e9;
    line-height: 1.2;
    margin-bottom: 4px;
    text-align: center;
  }

  #calculateur-elec .card-results-grid {
    gap: 0.375rem;
  }

  #calculateur-elec .card-result {
    padding: 0;
  }

  #calculateur-elec .card-result .card-field-with-unit input {
    font-size: 12px !important;
    padding: 3px 4px !important;
  }

  #calculateur-elec .card-result .card-field-unit {
    font-size: 9px !important;
    padding: 3px 2px !important;
    display: flex !important;
    align-items: center !important;
    background: #f1f5f9 !important;
    border: 1px solid #d1d5db !important;
    border-left: none !important;
    border-radius: 0 6px 6px 0 !important;
    color: #64748b !important;
    font-weight: 500 !important;
    flex-shrink: 0 !important;
    min-width: fit-content !important;
    line-height: 1 !important;
    justify-content: center !important;
  }
  
  #calculateur-elec .card-result {
    padding: 0;
  }
  
  #calculateur-elec .card-result-label {
    font-size: 7px;
    margin-bottom: 2px;
  }
  
  #calculateur-elec .card-result-label .info-icon {
    width: 12px !important;
    height: 12px !important;
    font-size: 9px !important;
    margin-left: 1px;
  }
  

  
  #calculateur-elec .card-result .card-field-unit {
    font-size: 9px !important;
    padding: 3px 2px !important;
    display: flex !important;
    align-items: center !important;
    background: #f1f5f9 !important;
    border: 1px solid #d1d5db !important;
    border-left: none !important;
    border-radius: 0 6px 6px 0 !important;
    color: #64748b !important;
    font-weight: 500 !important;
    flex-shrink: 0 !important;
    min-width: fit-content !important;
    line-height: 1 !important;
    justify-content: center !important;
  }
}

/* iPhone SE 1ère génération et écrans similaires - 320px et moins */
@media (max-width: 320px) {
  .container {
    padding-left: 0;
    padding-right: 0;
  }
  
  #calculateur-elec .bg-white {
    margin: 0;
    padding: 0.25rem;
    border-radius: 4px;
  }
  
  /* Cartes ultra-compactes pour iPhone SE */
  #calculateur-elec .equipment-card {
    padding: 0.25rem;
    margin: 0 0 0.25rem 0;
    border-radius: 4px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  }
  
  #calculateur-elec .card-header {
    margin: -0.25rem -0.25rem 0.25rem -0.25rem;
    padding: 0.25rem;
    border-radius: 4px 4px 0 0;
  }
  
  #calculateur-elec .card-equipment-name {
    gap: 2px;
    margin-right: 2px;
  }
  
  #calculateur-elec .card-equipment-name input {
    padding: 2px 3px;
    font-size: 11px;
  }
  
  #calculateur-elec .card-equipment-name .equipment-emoji {
    font-size: 12px;
  }
  
  #calculateur-elec .card-delete-btn {
    width: 18px;
    height: 18px;
    font-size: 10px;
  }
  
  #calculateur-elec .card-fields {
    gap: 0.25rem;
  }
  
  #calculateur-elec .card-field label {
    font-size: 8px;
  }
  
  #calculateur-elec .card-field input,
  #calculateur-elec .card-field select {
    padding: 2px 3px;
    font-size: 11px;
  }
  
  #calculateur-elec .card-field-with-unit input {
    flex: 1;
    min-width: 0;
    font-size: 11px;
    padding: 2px 3px;
  }
  
  #calculateur-elec .card-field-unit {
    padding: 2px 1px;
    font-size: 8px;
    min-height: 30px !important;
  }
  
  /* S'assurer que les inputs de résultats aient la même hauteur */
  #calculateur-elec .card-result .card-field-with-unit input.card-result-input {
    font-size: 11px !important;
    padding: 2px 3px !important;
    border: 1px solid #d1d5db !important;
    border-radius: 6px 0 0 6px !important;
    background: white !important;
    box-sizing: border-box !important;
  }
  
  #calculateur-elec .card-result .card-field-unit {
    font-size: 8px !important;
    padding: 2px 1px !important;
    display: flex !important;
    align-items: center !important;
    background: #f1f5f9 !important;
    border: 1px solid #d1d5db !important;
    border-left: none !important;
    border-radius: 0 6px 6px 0 !important;
    color: #64748b !important;
    font-weight: 500 !important;
    flex-shrink: 0 !important;
    min-width: fit-content !important;
    line-height: 1 !important;
    justify-content: center !important;
  }
  
  #calculateur-elec .card-results {
    padding-top: 0.25rem;
    padding-left: 0;
    padding-right: 0;
    padding-bottom: 0;
    margin-top: 0.25rem;
  }

  #calculateur-elec .card-results .card-result-label {
    font-size: 9px;
    font-weight: 700;
    color: #0ea5e9;
    line-height: 1.2;
    margin-bottom: 3px;
    text-align: center;
  }

  #calculateur-elec .card-results-grid {
    gap: 0.25rem;
  }

  #calculateur-elec .card-result {
    padding: 0;
  }

  #calculateur-elec .card-result .card-field-with-unit input {
    font-size: 11px !important;
    padding: 2px 3px !important;
  }

  #calculateur-elec .card-result .card-field-unit {
    font-size: 8px !important;
    padding: 2px 1px !important;
    display: flex !important;
    align-items: center !important;
    background: #f1f5f9 !important;
    border: 1px solid #d1d5db !important;
    border-left: none !important;
    border-radius: 0 6px 6px 0 !important;
    color: #64748b !important;
    font-weight: 500 !important;
    flex-shrink: 0 !important;
    min-width: fit-content !important;
    line-height: 1 !important;
    justify-content: center !important;
  }
  
  #calculateur-elec .card-result {
    padding: 0;
  }
  
  #calculateur-elec .card-result-label {
    font-size: 6px;
    margin-bottom: 1px;
  }
  
  #calculateur-elec .card-result-label .info-icon {
    width: 12px !important;
    height: 12px !important;
    font-size: 9px !important;
    margin-left: 1px;
  }
  

  
  #calculateur-elec .card-result .card-field-unit {
    font-size: 8px !important;
    padding: 2px 1px !important;
    display: flex !important;
    align-items: center !important;
    background: #f1f5f9 !important;
    border: 1px solid #d1d5db !important;
    border-left: none !important;
    border-radius: 0 6px 6px 0 !important;
    color: #64748b !important;
    font-weight: 500 !important;
    flex-shrink: 0 !important;
    min-width: fit-content !important;
    line-height: 1 !important;
    justify-content: center !important;
  }
}

/* Amélioration des contrastes pour l'accessibilité */
@media (prefers-contrast: high) {
  .info-icon {
    background-color: #0284c7;
    color: white;
  }
  
#calculateur-elec .example-row{
    background-color: #e2e8f0 !important;
  }
}

/* Mode sombre (si nécessaire) */
@media (prefers-color-scheme: dark) {
  .info-icon {
    background-color: #1e40af;
    color: #bfdbfe;
  }
  
#calculateur-elec .info-icon:hover{
    background-color: #1d4ed8;
  }
}

/* Styles pour les animations d'entrée */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#calculateur-elec .fade-in{
  animation: fadeIn 0.3s ease-out;
}

/* Styles pour les messages d'état */
#calculateur-elec .success-message{
  background-color: #dcfce7;
  border-color: #16a34a;
  color: #15803d;
}

#calculateur-elec .error-message{
  background-color: #fef2f2;
  border-color: #dc2626;
  color: #dc2626;
}

/* Amélioration des focus states */
#calculateur-elec .focus-visible:focus{
  outline: 2px solid #0ea5e9;
  outline-offset: 2px;
  border: 1px solid #0ea5e9;
}

/* Styles pour le sélecteur d'emoji */
.emoji-selector-modal {
  display: none;
  position: absolute;
  background: white;
  border-radius: 12px;
  border: 2px solid #cbd5e1;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  min-width: 320px;
  max-width: 400px;
  max-height: 450px;
  overflow: hidden;
}

/* Flèche pour indiquer la relation avec le bouton */
.emoji-selector-modal::before {
  content: '';
  position: absolute;
  width: 0;
  height: 0;
  border: 8px solid transparent;
  z-index: 1001;
}

/* Flèche à gauche (modal à droite du bouton) */
.emoji-selector-modal.arrow-left::before {
  left: -16px;
  top: 20px;
  border-right-color: #cbd5e1;
}

/* Flèche à droite (modal à gauche du bouton) */
.emoji-selector-modal.arrow-right::before {
  right: -16px;
  top: 20px;
  border-left-color: #cbd5e1;
}

/* Flèche en haut (modal en dessous du bouton) */
.emoji-selector-modal.arrow-top::before {
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  border-bottom-color: #cbd5e1;
}

/* Flèche en bas (modal au-dessus du bouton) */
.emoji-selector-modal.arrow-bottom::before {
  bottom: -16px;
  left: 50%;
  transform: translateX(-50%);
  border-top-color: #cbd5e1;
}

.emoji-selector-content {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  max-height: 450px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

@media (max-width: 640px) {
  .emoji-selector-modal {
    min-width: 280px;
    max-width: 320px;
    max-height: 460px;
  }
  
  .emoji-selector-content {
    padding: 1rem;
    max-height: 460px;
  }
}

.emoji-selector-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e2e8f0;
}

.emoji-selector-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1e293b;
}

.emoji-selector-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #64748b;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.emoji-selector-close:hover {
  background: #f1f5f9;
  color: #1e293b;
}

.emoji-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.emoji-category-btn {
  padding: 0.5rem 1rem;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  background: white;
  color: #64748b;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.emoji-category-btn:hover,
.emoji-category-btn.active {
  background: #0ea5e9;
  color: white;
  border-color: #0ea5e9;
}

.emoji-grid {
  display: flex;
  flex-wrap: wrap;
  height: 280px;
  overflow-y: auto;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 0.5rem;
  background: #fafbfc;
  align-content: flex-start;
  flex: 1;
}

.emoji-option {
  width: 42px;
  height: 42px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  cursor: pointer;
  transition: all 0.2s ease;
  margin: 2px;
  padding: 0;
  flex-shrink: 0;
}

.emoji-option:hover {
  background: #f8fafc;
  transform: scale(1.1);
  border-color: #0ea5e9;
  border-width: 2px;
}

.emoji-option.selected {
  background: #0ea5e9;
  border-color: #0ea5e9;
  color: white;
}

/* Assurer un espacement uniforme */
.emoji-grid::after {
  content: '';
  flex: auto;
}

@media (max-width: 640px) {
  .emoji-grid {
    height: 300px;
    padding: 0.4rem;
  }
  
  .emoji-option {
    width: 36px;
    height: 36px;
    font-size: 1.2rem;
    margin: 1.5px;
    padding: 0;
  }
}

/* Styles pour les emojis dans le tableau */
#calculateur-elec .equipment-emoji {
  font-size: 16px;
  cursor: pointer;
  padding: 3px;
  border-radius: 4px;
  transition: all 0.2s ease;
  display: inline-block;
  min-width: 20px;
  text-align: center;
  flex-shrink: 0;
}

#calculateur-elec .equipment-emoji:hover {
  background-color: #f1f5f9;
  transform: scale(1.1);
}

/* Styles pour le container nom + emoji */
#calculateur-elec .equipment-name-container {
  display: flex !important;
  align-items: center !important;
  gap: 4px !important;
  width: 100% !important;
}

#calculateur-elec .equipment-name-container input {
  flex-grow: 1 !important;
  min-width: 0 !important;
}

/* Styles pour les boutons de sélection de vue */
#calculateur-elec .view-toggle-btn {
  color: #64748b;
  background-color: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

#calculateur-elec .view-toggle-btn:hover {
  color: #334155;
  background-color: #e2e8f0;
}

#calculateur-elec .view-toggle-btn.active {
  color: #0ea5e9;
  background-color: white;
  border: 1px solid #cbd5e1;
}

/* Styles pour les cartes d'équipements */
#calculateur-elec .equipment-card {
  background: white;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  padding: 20px;
  transition: all 0.2s ease;
  position: relative;
}

#calculateur-elec .equipment-card:hover {
  border-color: #94a3b8;
}

#calculateur-elec .equipment-card.example-card {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-color: #cbd5e1;
}

#calculateur-elec .equipment-card.example-card input,
#calculateur-elec .equipment-card.example-card select {
  color: #64748b;
  font-style: italic;
  opacity: 0.8;
}

#calculateur-elec .equipment-card.example-card input::placeholder {
  color: #94a3b8;
  font-style: italic;
}

#calculateur-elec .card-result.example-result {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

#calculateur-elec .card-result.example-result .card-result-value {
  color: #64748b;
  opacity: 0.8;
}



#calculateur-elec .card-equipment-name {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
  margin-right: 8px;
}

#calculateur-elec .card-equipment-name .equipment-emoji {
  font-size: 20px;
  cursor: pointer;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

#calculateur-elec .card-equipment-name .equipment-emoji:hover {
  transform: scale(1.1);
}

#calculateur-elec .card-equipment-name input {
  flex: 1;
  min-width: 0;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 500;
  background: white;
}

#calculateur-elec .card-equipment-name input::placeholder {
  color: #94a3b8;
  font-style: italic;
}

#calculateur-elec .card-delete-btn {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: none;
  background: #fef2f2;
  color: #dc2626;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

#calculateur-elec .card-delete-btn:hover {
  background: #fee2e2;
  transform: scale(1.05);
}

#calculateur-elec .card-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

#calculateur-elec .card-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

#calculateur-elec .card-field.full-width {
  grid-column: 1 / -1;
}

#calculateur-elec .card-field label {
  font-size: 12px;
  font-weight: 600;
  color: #374151;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Uniformiser TOUS les inputs de cartes */
#calculateur-elec .card-field input,
#calculateur-elec .card-field select {
  padding: 8px 12px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 14px;
  background: white;
  transition: border-color 0.2s ease;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

/* Supprimer les limitations de largeur spécifiques qui créent l'incohérence */
/* #calculateur-elec .card-field:nth-child(1) select {
  max-width: 120px;
}

#calculateur-elec .card-field:nth-child(2) input {
  max-width: 120px;
} */

/* S'assurer que les inputs directs (pas dans .card-field-with-unit) gardent toutes leurs bordures */
#calculateur-elec .card-field > input,
#calculateur-elec .card-field > select {
  border: 1px solid #d1d5db !important;
  border-radius: 6px !important;
}

/* Container pour input + unité */
#calculateur-elec .card-field-with-unit {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 100%;
}

#calculateur-elec .card-field-with-unit input {
  flex: 1;
  min-width: 0;
  border: 1px solid #d1d5db !important;
  border-radius: 6px 0 0 6px !important;
  padding: 8px 12px;
  font-size: 14px;
  background: white;
  transition: border-color 0.2s ease;
}

#calculateur-elec .card-field-unit {
  background: #f1f5f9;
  border: 1px solid #d1d5db;
  border-left: none;
  border-radius: 0 6px 6px 0;
  padding: 8px 6px;
  font-size: 12px;
  color: #64748b;
  font-weight: 500;
  flex-shrink: 0;
  min-width: fit-content;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

#calculateur-elec .card-field input:focus,
#calculateur-elec .card-field select:focus {
  border-color: #0ea5e9;
  outline: none;
  border-width: 2px;
}

#calculateur-elec .card-field input:disabled {
  background: #f8fafc;
  color: #64748b;
  cursor: not-allowed;
}

#calculateur-elec .card-results {
  margin-top: 16px;
  padding-top: 16px;
  padding-left: 0;
  padding-right: 0;
}

#calculateur-elec .card-results .card-result-label {
  font-size: 12px;
  font-weight: 700;
  color: #0ea5e9;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
  line-height: 1.3;
  text-align: center;
}

/* Taille minimale pour tous les boutons d'info dans les résultats de cartes */
#calculateur-elec .card-results .info-icon {
  min-width: 14px !important;
  min-height: 14px !important;
  font-size: 10px !important;
}

#calculateur-elec .card-results-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

#calculateur-elec .card-result {
  text-align: left;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

#calculateur-elec .card-result-label {
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
  line-height: 1.3;
}

#calculateur-elec .card-result-value {
  font-size: 16px;
  font-weight: bold;
  color: #0ea5e9;
}

#calculateur-elec .card-result-input {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #d1d5db;
  border-radius: 6px 0 0 6px;
  font-size: 14px;
  font-weight: bold;
  color: #0ea5e9;
  text-align: center;
  background: white;
  transition: border-color 0.2s ease;
  flex: 1;
  min-width: 0;
  box-sizing: border-box;
}

#calculateur-elec .card-result-input:focus {
  border-color: #0ea5e9;
  outline: none;
  border-width: 2px;
}

#calculateur-elec .card-result.example-result .card-result-input {
  color: #64748b;
  opacity: 0.8;
  background: #f8fafc;
}

#calculateur-elec .card-result.editable-result {
  /* padding: 8px; */
}

/* Uniformiser les conteneurs avec unités dans les résultats */
#calculateur-elec .card-result .card-field-with-unit {
  width: 100% !important;
  max-width: 100% !important;
  justify-content: center;
}

#calculateur-elec .card-result .card-field-with-unit input {
  flex: 1 !important;
  min-width: 0 !important;
}

/* S'assurer que les inputs de résultats aient toujours la même hauteur que les autres inputs */
#calculateur-elec .card-result .card-field-with-unit input.card-result-input {
  padding: 8px 12px !important;
  font-size: 14px !important;
  border: 1px solid #d1d5db !important;
  border-radius: 6px 0 0 6px !important;
  background: white !important;
  box-sizing: border-box !important;
}

/* Règles globales pour éviter les débordements */
* {
  box-sizing: border-box;
}

#calculateur-elec * {
  max-width: 100%;
}

/* Éviter que les tables débordent horizontalement */
#calculateur-elec .table-container {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* S'assurer que les inputs ne dépassent jamais */
#calculateur-elec input,
#calculateur-elec select {
  max-width: 100%;
  min-width: 0;
}

/* Responsive intégré dans le système principal - pas de media queries séparées */

/* Styles pour les disclaimers et sections d'information */
#calculateur-elec .disclaimer-section {
  margin-bottom: 1.5rem;
}

#calculateur-elec .disclaimer-section h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

#calculateur-elec .disclaimer-section p {
  line-height: 1.6;
}

#calculateur-elec .section-intro {
  margin-bottom: 1rem;
}

#calculateur-elec .section-intro h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

#calculateur-elec .section-intro p {
  font-size: 0.875rem;
  color: #64748b;
  line-height: 1.5;
}

/* Améliorations responsive pour mobile */
@media (max-width: 640px) {
  /* Disclaimers sur mobile */
  #calculateur-elec .disclaimer-section {
    margin-bottom: 1rem;
    padding: 1rem;
  }
  
  #calculateur-elec .disclaimer-section h3 {
    font-size: 1rem;
  }
  
  #calculateur-elec .disclaimer-section p {
    font-size: 0.813rem;
    line-height: 1.5;
  }
  
  #calculateur-elec .disclaimer-section .bg-amber-100 {
    padding: 0.5rem;
    font-size: 0.813rem;
  }
  
  /* Sections d'introduction sur mobile */
  #calculateur-elec .section-intro h2 {
    font-size: 1.125rem;
  }
  
  #calculateur-elec .section-intro p {
    font-size: 0.813rem;
  }
  
  /* Amélioration des espaces sur mobile */
  #calculateur-elec .bg-white.rounded-lg {
    margin-bottom: 1rem;
    padding: 1rem;
  }
  
  /* Amélioration du responsive pour les badges de calcul */
  #calculateur-elec .bg-amber-100 {
    display: block;
    text-align: center;
    margin: 0.5rem 0;
  }
}

/* Styles pour les petits écrans */
@media (max-width: 480px) {
  /* Disclaimers sur très petit écran */
  #calculateur-elec .disclaimer-section {
    padding: 0.75rem;
  }
  
  #calculateur-elec .disclaimer-section h3 {
    font-size: 0.938rem;
  }
  
  #calculateur-elec .disclaimer-section p {
    font-size: 0.75rem;
  }
  
  /* Sections d'introduction sur très petit écran */
  #calculateur-elec .section-intro h2 {
    font-size: 1rem;
  }
  
  #calculateur-elec .section-intro p {
    font-size: 0.75rem;
  }
  
  /* Amélioration des espaces entre sections */
  #calculateur-elec .bg-white.rounded-lg {
    margin-bottom: 0.75rem;
    padding: 0.75rem;
  }
}

/* =============================================== */
/* STYLES AMÉLIORÉS POUR LES CARTES D'ÉQUIPEMENTS */
/* =============================================== */

/* Amélioration des cartes pour qu'elles ressortent davantage */
#calculateur-elec .equipment-card {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  transform: translateY(0);
}

#calculateur-elec .equipment-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  border-color: #0ea5e9;
}

/* Carte exemple avec style distinct */
#calculateur-elec .equipment-card.example-card {
  background: linear-gradient(135deg, #fef3c7 0%, #fef9e7 50%, #f3f4f6 100%);
  border: 2px dashed #d1d5db;
  box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.06), 0 1px 2px -1px rgba(0, 0, 0, 0.04);
}

#calculateur-elec .equipment-card.example-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  border-color: #f59e0b;
}

/* En-tête de carte avec style amélioré */
#calculateur-elec .card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #e5e7eb;
  background: linear-gradient(90deg, transparent 0%, rgba(14, 165, 233, 0.05) 50%, transparent 100%);
  margin: -24px -24px 20px -24px;
  padding: 16px 24px;
  border-radius: 16px 16px 0 0;
  min-width: calc(100% + 48px);
  box-sizing: border-box;
}

/* Animation sur l'emoji */
#calculateur-elec .card-equipment-name .equipment-emoji {
  transition: all 0.2s ease;
  padding: 4px;
  border-radius: 8px;
}

#calculateur-elec .card-equipment-name .equipment-emoji:hover {
  transform: scale(1.2);
  background-color: rgba(14, 165, 233, 0.1);
}

/* Amélioration des champs de résultats */
#calculateur-elec .card-results {
  margin-top: 20px;
}

#calculateur-elec .card-result {
  /* padding: 8px; */
}

#calculateur-elec .card-result:not(:last-child) {
  margin-bottom: 8px;
}

/* Bouton de suppression avec style moderne */
#calculateur-elec .card-delete-btn {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: none;
  background: #fef2f2;
  color: #dc2626;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

#calculateur-elec .card-delete-btn:hover {
  background: #fee2e2;
  transform: scale(1.05);
} 