:root {
  --bg-primary: #0a0f1a;
  --bg-secondary: #111827;
  --bg-card: #1a2234;
  --bg-input: #0d1321;
  --accent-electric: #00d4ff;
  --accent-volt: #facc15;
  --accent-green: #22c55e;
  --accent-red: #ef4444;
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --border: #2d3a52;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
  --glow-electric: 0 0 20px rgba(0, 212, 255, 0.3);
  --glow-volt: 0 0 20px rgba(250, 204, 21, 0.3);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Outfit", sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.6;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
      circle at 20% 20%,
      rgba(0, 212, 255, 0.08) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 80%,
      rgba(250, 204, 21, 0.06) 0%,
      transparent 50%
    ),
    linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
  pointer-events: none;
  z-index: -1;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

header {
  text-align: center;
  margin-bottom: 2rem;
  padding: 2rem 0;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.logo-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(
    135deg,
    var(--accent-electric),
    var(--accent-volt)
  );
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: var(--glow-electric);
}

h1 {
  font-size: 2.5rem;
  font-weight: 700;
  background: linear-gradient(
    135deg,
    var(--accent-electric),
    var(--accent-volt)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.subtitle {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-top: 0.5rem;
}

/* Grid */
.main-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

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

/* Cards */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: var(--shadow);
  margin-bottom: 2rem;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.card-title {
  font-size: 1.25rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.card-title .icon {
  font-size: 1.5rem;
}

/* Forms */
.form-group {
  margin-bottom: 1.25rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

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

label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

input,
select {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-primary);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

input:focus,
select:focus {
  outline: none;
  border-color: var(--accent-electric);
  box-shadow: var(--glow-electric);
}

input::placeholder {
  color: var(--text-muted);
}

.input-group {
  display: flex;
  gap: 0.75rem;
}

.input-group .form-group {
  flex: 1;
}

.input-suffix {
  position: relative;
}

.input-suffix input {
  padding-right: 3.5rem;
}

.input-suffix::after {
  content: attr(data-suffix);
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 0.85rem;
  font-family: "JetBrains Mono", monospace;
}

/* Tarif type selector */
.tarif-type {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.tarif-type-btn {
  flex: 1;
  padding: 0.75rem;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-secondary);
  font-family: "Outfit", sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tarif-type-btn:hover {
  border-color: var(--accent-electric);
}

.tarif-type-btn.active {
  background: linear-gradient(
    135deg,
    rgba(0, 212, 255, 0.15),
    rgba(250, 204, 21, 0.1)
  );
  border-color: var(--accent-electric);
  color: var(--accent-electric);
}

/* Buttons */
.btn {
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-family: "Outfit", sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-electric), #0099cc);
  color: white;
  box-shadow: var(--glow-electric);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(0, 212, 255, 0.5);
}

.btn-secondary {
  background: var(--bg-input);
  border: 1px solid var(--border);
  color: var(--text-secondary);
}

.btn-secondary:hover {
  border-color: var(--accent-electric);
  color: var(--text-primary);
}

.btn-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-icon:hover {
  border-color: var(--accent-electric);
  color: var(--accent-electric);
}

.btn-icon.delete:hover {
  border-color: var(--accent-red);
  color: var(--accent-red);
}

/* Fournisseurs list */
.fournisseurs-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  overflow-y: auto;
}

.fournisseur-item {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem;
  position: relative;
}

.fournisseur-item.best {
  border-color: var(--accent-green);
  box-shadow: 0 0 20px rgba(34, 197, 94, 0.2);
}

/* Offres ZEN nécessitant un import */
.fournisseur-item.zen-import-requis {
  border-color: var(--border);
  opacity: 0.7;
  background: linear-gradient(
    135deg,
    var(--bg-card) 0%,
    rgba(100, 116, 139, 0.1) 100%
  );
}

.zen-import-message {
  background: rgba(100, 116, 139, 0.2);
  padding: 0.75rem;
  border-radius: 8px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.fournisseur-item.best::before {
  content: "⚡ Meilleur tarif";
  position: absolute;
  top: 0px;
  left: 40%;
  background: var(--accent-green);
  color: var(--bg-primary);
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
}

.fournisseur-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.fournisseur-name {
  font-weight: 600;
  font-size: 1rem;
}

.fournisseur-type {
  font-size: 0.75rem;
  color: var(--text-muted);
  background: var(--bg-card);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
}

.zen-badge {
  display: inline-block;
  font-size: 0.7rem;
  color: var(--accent-volt);
  background: rgba(250, 204, 21, 0.15);
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  margin-left: 0.5rem;
  font-weight: 500;
}

.fournisseur-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 0.75rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
}

.fournisseur-detail {
  display: flex;
  flex-direction: column;
}

.fournisseur-detail-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.fournisseur-detail-value {
  font-family: "JetBrains Mono", monospace;
  color: var(--text-primary);
}

.fournisseur-horaires {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px dashed var(--border);
}

.fournisseur-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}

.fournisseur-total-label {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.fournisseur-total-value {
  font-family: "JetBrains Mono", monospace;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--accent-volt);
}

/* Summary stats */
.summary-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.stat-card {
  background: var(--bg-input);
  border-radius: 12px;
  padding: 1rem;
  text-align: center;
}

.stat-value {
  font-family: "JetBrains Mono", monospace;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--accent-electric);
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.stat-card.highlight {
  background: linear-gradient(
    135deg,
    rgba(34, 197, 94, 0.15),
    rgba(34, 197, 94, 0.05)
  );
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.stat-card.highlight .stat-value {
  color: var(--accent-green);
}

/* Comparaison vs Tempo */
.tempo-comparison {
  margin-top: 1.25rem;
  padding: 1rem;
  background: var(--bg-input);
  border-radius: 10px;
  border: 1px solid var(--border);
}

.tempo-comparison h4 {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
}

.tempo-comparison-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.tempo-comparison-item {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 1rem;
  align-items: center;
  padding: 0.5rem 0.75rem;
  background: var(--bg-card);
  border-radius: 6px;
  font-size: 0.85rem;
}

.tempo-comparison-item.tempo-ref {
  background: linear-gradient(
    135deg,
    rgba(239, 68, 68, 0.1),
    rgba(59, 130, 246, 0.1)
  );
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.tempo-comparison-item .name {
  color: var(--text-secondary);
}

.tempo-comparison-item .name small {
  color: var(--text-muted);
}

.tempo-comparison-item .cost {
  font-family: "JetBrains Mono", monospace;
  color: var(--accent-volt);
  font-weight: 500;
}

.tempo-comparison-item .diff {
  font-family: "JetBrains Mono", monospace;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  text-align: right;
  min-width: 120px;
}

.tempo-comparison-item .diff small {
  font-weight: 400;
  opacity: 0.8;
}

.tempo-comparison-item .diff.positive {
  color: var(--accent-green);
  background: rgba(34, 197, 94, 0.15);
}

.tempo-comparison-item .diff.negative {
  color: var(--accent-red);
  background: rgba(239, 68, 68, 0.15);
}

.tempo-comparison-item .diff.neutral {
  color: var(--text-muted);
  background: transparent;
  text-align: center;
}

@media (max-width: 600px) {
  .tempo-comparison-item {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .tempo-comparison-item .cost,
  .tempo-comparison-item .diff {
    justify-self: start;
  }
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-muted);
}

.empty-state-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.empty-state-text {
  font-size: 0.95rem;
}

/* Tempo sections */
.tempo-section {
  background: var(--bg-input);
  border-radius: 10px;
  padding: 1rem;
  margin-bottom: 1rem;
  border-left: 3px solid var(--border);
}

.tempo-section:last-child {
  margin-bottom: 0;
}

.tempo-bleu {
  border-left-color: #3b82f6;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), transparent);
}

.tempo-blanc {
  border-left-color: #e2e8f0;
  background: linear-gradient(135deg, rgba(226, 232, 240, 0.1), transparent);
}

.tempo-rouge {
  border-left-color: #ef4444;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), transparent);
}

.tempo-label {
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.tempo-days {
  font-weight: 400;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.tempo-section .input-group {
  margin-bottom: 0;
}

.tempo-section .form-group {
  margin-bottom: 0;
}

/* Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  padding: 1rem;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  width: 100%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.modal-large {
  max-width: 650px;
}

.modal-overlay.active .modal {
  transform: translateY(0);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.modal-title {
  font-size: 1.25rem;
  font-weight: 600;
}

.modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  transition: color 0.2s ease;
}

.modal-close:hover {
  color: var(--text-primary);
}

.modal-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
  margin-top: 1.5rem;
}

/* Tarif fields in modal */
.tarif-fields {
  background: var(--bg-input);
  border-radius: 10px;
  padding: 1.25rem;
  margin-top: 1rem;
}

.tarif-fields h4 {
  margin-bottom: 1rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 600;
}

.tarif-fields h5 {
  margin: 1rem 0 0.75rem;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 500;
}

/* Horaires/Créneaux */
.horaires-section {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--border);
}

.creneau-group {
  margin-bottom: 1rem;
}

.creneau-label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

/* Filters */
.filters {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.filters .form-group {
  margin-bottom: 0;
  min-width: 150px;
}

/* Table */
.table-container {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.admin-table th,
.admin-table td {
  padding: 0.75rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.admin-table th {
  background: var(--bg-input);
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.5px;
}

.admin-table tbody tr:hover {
  background: rgba(0, 212, 255, 0.05);
}

.admin-table .loading {
  text-align: center;
  color: var(--text-muted);
  padding: 2rem;
}

.admin-table .type-badge {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 500;
}

.admin-table .type-badge.base {
  background: rgba(0, 212, 255, 0.2);
  color: var(--accent-electric);
}

.admin-table .type-badge.hchp {
  background: rgba(250, 204, 21, 0.2);
  color: var(--accent-volt);
}

.admin-table .type-badge.tempo {
  background: rgba(239, 68, 68, 0.2);
  color: var(--accent-red);
}

.admin-table .tarifs-cell {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.admin-table .horaires-cell {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.admin-table .actions-cell {
  display: flex;
  gap: 0.5rem;
}

/* Notification */
.notification {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 2000;
}

.notification.show {
  transform: translateY(0);
  opacity: 1;
}

.notification.success {
  background: var(--accent-green);
  color: white;
}

.notification.error {
  background: var(--accent-red);
  color: white;
}

.notification.warning {
  background: var(--accent-volt);
  color: var(--bg-primary);
}

/* Tempo Calendar */
.tempo-calendar-info {
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: var(--bg-input);
  border-radius: 10px;
  text-align: center;
}

.tempo-today {
  font-size: 1.1rem;
  color: var(--text-secondary);
}

.tempo-today .couleur-bleu {
  color: #3b82f6;
  font-weight: 600;
}

.tempo-today .couleur-blanc {
  color: #e2e8f0;
  font-weight: 600;
}

.tempo-today .couleur-rouge {
  color: #ef4444;
  font-weight: 600;
}

.tempo-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.tempo-stat-card {
  background: var(--bg-input);
  border-radius: 12px;
  padding: 1.25rem;
  border: 1px solid var(--border);
}

.tempo-stat-year {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--accent-electric);
  margin-bottom: 1rem;
  text-align: center;
}

.tempo-stat-bars {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.tempo-stat-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.tempo-stat-bar-label {
  width: 80px;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.tempo-stat-bar-track {
  flex: 1;
  height: 24px;
  background: var(--bg-card);
  border-radius: 6px;
  overflow: hidden;
  position: relative;
}

.tempo-stat-bar-fill {
  height: 100%;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--bg-primary);
  min-width: 40px;
  transition: width 0.5s ease;
}

.tempo-stat-bar-fill.bleu {
  background: linear-gradient(90deg, #3b82f6, #60a5fa);
}

.tempo-stat-bar-fill.blanc {
  background: linear-gradient(90deg, #94a3b8, #e2e8f0);
}

.tempo-stat-bar-fill.rouge {
  background: linear-gradient(90deg, #ef4444, #f87171);
}

.tempo-stat-total {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

#btn-sync-tempo.loading {
  pointer-events: none;
  opacity: 0.7;
}

/* Calendrier Tempo détaillé */
.tempo-calendar-section {
  margin-top: 1.5rem;
}

.tempo-calendar-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.tempo-calendar-header h3 {
  font-size: 1.5rem;
  color: var(--accent-electric);
  min-width: 80px;
  text-align: center;
}

.tempo-calendar-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

@media (max-width: 900px) {
  .tempo-calendar-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 600px) {
  .tempo-calendar-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.tempo-month {
  background: var(--bg-input);
  border-radius: 10px;
  padding: 0.75rem;
  border: 1px solid var(--border);
}

.tempo-month-name {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  text-align: center;
}

.tempo-month-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}

.tempo-day {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 3px;
  font-size: 0.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bg-primary);
  font-weight: 500;
}

.tempo-day.bleu {
  background: #3b82f6;
}

.tempo-day.blanc {
  background: #cbd5e1;
  color: #1e293b;
}

.tempo-day.rouge {
  background: #ef4444;
}

.tempo-day.empty {
  background: transparent;
}

.tempo-day.unknown {
  background: var(--bg-card);
  color: var(--text-muted);
}

/* Jours fériés - petit indicateur */
.tempo-day.ferie {
  position: relative;
  box-shadow: inset 0 0 0 2px rgba(255, 215, 0, 0.8);
}

.tempo-day.ferie::after {
  content: "★";
  position: absolute;
  top: -1px;
  right: 3px;
  font-size: 0.45rem;
  color: #ffd700;
  text-shadow: 0 0 2px rgba(0, 0, 0, 0.5);
}

.tempo-calendar-legend {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 3px;
}

.legend-dot.bleu {
  background: #3b82f6;
}

.legend-dot.blanc {
  background: #cbd5e1;
}

.legend-dot.rouge {
  background: #ef4444;
}

.legend-dot.ferie {
  background: #64748b;
  box-shadow: inset 0 0 0 2px rgba(255, 215, 0, 0.8);
  position: relative;
}

.legend-dot.ferie::after {
  content: "★";
  position: absolute;
  top: -3px;
  right: 1px;
  font-size: 0.5rem;
  color: #ffd700;
}

/* Import Section */
.import-section {
  padding: 0.5rem 0;
}

.import-description {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
  line-height: 1.6;
}

.import-description a {
  color: var(--accent-electric);
  text-decoration: none;
}

.import-description a:hover {
  text-decoration: underline;
}

.import-dropzone {
  position: relative;
  border: 2px dashed var(--border);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  background: var(--bg-input);
}

.import-dropzone:hover,
.import-dropzone.dragover {
  border-color: var(--accent-electric);
  background: rgba(0, 212, 255, 0.05);
}

.import-dropzone input[type="file"] {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.dropzone-content {
  pointer-events: none;
}

.dropzone-icon {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 0.75rem;
}

.dropzone-text {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* Import Results */
.import-summary {
  margin-top: 1.5rem;
  padding: 1.5rem;
  background: var(--bg-input);
  border-radius: 12px;
  border: 1px solid var(--border);
}

.import-summary h3 {
  margin-bottom: 1.25rem;
  color: var(--text-primary);
  font-size: 1.1rem;
}

.import-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

@media (max-width: 600px) {
  .import-stats-grid {
    grid-template-columns: 1fr;
  }
}

.import-stat {
  background: var(--bg-card);
  padding: 1rem;
  border-radius: 8px;
  text-align: center;
}

.import-stat.highlight {
  background: linear-gradient(
    135deg,
    rgba(0, 212, 255, 0.15),
    rgba(250, 204, 21, 0.1)
  );
  border: 1px solid var(--accent-electric);
}

.import-stat-label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
}

.import-stat-value {
  font-family: "JetBrains Mono", monospace;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--accent-electric);
}

.import-stat.highlight .import-stat-value {
  color: var(--accent-volt);
}

/* Import Detail Cards */
.import-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

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

.import-detail-card {
  background: var(--bg-card);
  padding: 1rem;
  border-radius: 10px;
  border-left: 3px solid var(--border);
}

.import-detail-card.base {
  border-left-color: var(--accent-electric);
}

.import-detail-card.hphc {
  border-left-color: var(--accent-volt);
}

.import-detail-card.tempo {
  border-left-color: #ef4444;
}

.import-detail-card h4 {
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.import-detail-info {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.import-detail-row {
  display: flex;
  justify-content: space-between;
  padding: 0.35rem 0;
  font-size: 0.85rem;
  border-bottom: 1px dashed var(--border);
}

.import-detail-row:last-child {
  border-bottom: none;
}

.import-detail-row span:first-child {
  color: var(--text-secondary);
}

.import-detail-row span:last-child {
  font-family: "JetBrains Mono", monospace;
  color: var(--text-primary);
}

.import-detail-row.bleu span:last-child {
  color: #3b82f6;
}

.import-detail-row.blanc span:last-child {
  color: #94a3b8;
}

.import-detail-row.rouge span:last-child {
  color: #ef4444;
}

.import-summary .btn {
  width: 100%;
  margin-top: 0.5rem;
}

/* Footer */
.site-footer {
  margin-top: 3rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--border);
  text-align: center;
}

.site-footer p {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin: 0.25rem 0;
}

.site-footer .footer-credits {
  margin-top: 0.75rem;
  font-size: 0.8rem;
}

.site-footer .footer-credits strong {
  color: var(--text-secondary);
}

.site-footer .footer-disclaimer {
  font-size: 0.7rem;
  opacity: 0.7;
  margin-top: 0.5rem;
}

.site-footer a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-footer a:hover {
  color: var(--accent-electric);
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-input);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}
