/* ============================================
   OUTILS PRO - Tool-specific Styles
   ============================================ */

/* ============================================
   CALCULATEUR TVA
   ============================================ */
.tva-calculator {
  max-width: 700px;
  margin: 0 auto;
}

.tva-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 1rem;
}

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

/* Résultats */
.tva-results {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

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

.result-card {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  text-align: center;
  position: relative;
  transition: var(--transition);
}

.result-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
}

.result-label {
  display: block;
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.result-value {
  display: block;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary);
  font-variant-numeric: tabular-nums;
}

.btn-copy {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  opacity: 0.5;
  transition: var(--transition);
  padding: 0.25rem;
}

.btn-copy:hover {
  opacity: 1;
  transform: scale(1.2);
}

/* Barre de taux */
.taux-bar {
  margin-top: 2rem;
  background: var(--border);
  border-radius: 999px;
  height: 32px;
  position: relative;
  overflow: hidden;
}

.taux-fill {
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  height: 100%;
  border-radius: 999px;
  transition: width 0.5s ease;
}

.taux-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--text);
  white-space: nowrap;
}

/* ============================================
   COMPTEUR DE MOTS
   ============================================ */
.compteur-container {
  max-width: 800px;
  margin: 0 auto;
}

.compteur-textarea {
  width: 100%;
  min-height: 250px;
  padding: 1rem;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text);
  font-size: 1rem;
  font-family: inherit;
  resize: vertical;
  transition: var(--transition);
}

.compteur-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  text-align: center;
  transition: var(--transition);
}

.stat-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
}

.stat-label {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  font-variant-numeric: tabular-nums;
}

/* ============================================
   GÉNÉRATEUR DE MOTS DE PASSE
   ============================================ */
.mdp-container {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.mdp-display {
  background: var(--surface);
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  font-family: 'Courier New', monospace;
  font-size: 1.5rem;
  font-weight: 700;
  word-break: break-all;
  margin: 1.5rem 0;
  color: var(--text);
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mdp-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  text-align: left;
  margin: 1.5rem 0;
}

@media (max-width: 500px) {
  .mdp-options {
    grid-template-columns: 1fr;
  }
}

.mdp-option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.mdp-option input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--primary);
  cursor: pointer;
}

.mdp-option label {
  cursor: pointer;
  font-weight: 500;
}

.mdp-longueur {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1rem 0;
}

.mdp-longueur input[type="range"] {
  flex: 1;
  accent-color: var(--primary);
}

.mdp-longueur span {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--primary);
  min-width: 40px;
}

.force-barre {
  height: 8px;
  background: var(--border);
  border-radius: 999px;
  margin-top: 1rem;
  overflow: hidden;
}

.force-fill {
  height: 100%;
  border-radius: 999px;
  transition: all 0.3s ease;
  width: 0%;
}

.force-texte {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
}

/* ============================================
   CONVERTISSEUR D'UNITÉS
   ============================================ */
.convertisseur-container {
  max-width: 600px;
  margin: 0 auto;
}

.convertisseur-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1rem 0;
}

.convertisseur-row .input-group {
  flex: 1;
  margin-bottom: 0;
}

.convertisseur-swap {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.25rem;
  transition: var(--transition);
  flex-shrink: 0;
}

.convertisseur-swap:hover {
  border-color: var(--primary);
  background: var(--primary);
  color: white;
  transform: rotate(180deg);
}

/* ============================================
   MINUTEUR POMODORO
   ============================================ */
.pomodoro-container {
  max-width: 500px;
  margin: 0 auto;
  text-align: center;
}

.timer-circle {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  border: 8px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 2rem auto;
  position: relative;
  background: var(--surface);
}

.timer-progress {
  position: absolute;
  top: -8px;
  left: -8px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  border: 8px solid transparent;
  border-top-color: var(--primary);
  transition: transform 0.1s linear;
}

#timer {
  font-size: 4rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--text);
  z-index: 1;
}

.pomodoro-mode {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.mode-btn {
  padding: 0.5rem 1rem;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text-muted);
  cursor: pointer;
  font-weight: 600;
  transition: var(--transition);
}

.mode-btn.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.pomodoro-controls {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.pomodoro-controls .btn {
  min-width: 120px;
}


/* ============================================
   CONVERTISSEUR D'UNITÉS (ajouts)
   ============================================ */

.convertisseur-container {
  max-width: 700px;
  margin: 0 auto;
}

.convertisseur-row {
  display: flex;
  align-items: flex-end;
  gap: 1rem;
  margin: 1.5rem 0;
}

.convertisseur-row .input-group {
  flex: 1;
  margin-bottom: 0;
}

.convertisseur-swap {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.5rem;
  transition: var(--transition);
  flex-shrink: 0;
  margin-bottom: 0.25rem;
}

.convertisseur-swap:hover {
  border-color: var(--primary);
  background: var(--primary);
  color: white;
}

.convertisseur-details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.5rem;
  margin-top: 1rem;
  text-align: center;
}

.reference-table {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.reference-table h3 {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.reference-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.75rem;
}

.reference-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.75rem;
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.reference-item strong {
  color: var(--text);
  display: block;
  margin-bottom: 0.25rem;
}

@media (max-width: 600px) {
  .convertisseur-row {
    flex-direction: column;
    align-items: stretch;
  }

  .convertisseur-swap {
    align-self: center;
    margin: 0.5rem 0;
  }
}


/* ============================================
   CONVERTISSEUR DE TEMPS (ajouts)
   ============================================ */

.temps-table {
  margin-top: 1rem;
  overflow-x: auto;
}

.temps-table-content {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.temps-table-content thead {
  background: var(--surface);
  border-bottom: 2px solid var(--border);
}

.temps-table-content th {
  padding: 0.75rem 1rem;
  text-align: left;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}

.temps-table-content td {
  padding: 0.625rem 1rem;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}

.temps-table-content tr:hover {
  background: var(--surface);
}

.temps-table-content .temps-value {
  font-family: 'Courier New', monospace;
  font-weight: 600;
  color: var(--primary);
  font-variant-numeric: tabular-nums;
}

.temps-table-content code {
  background: var(--surface);
  padding: 0.125rem 0.375rem;
  border-radius: 4px;
  font-size: 0.875rem;
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.temps-table-content .highlight-from {
  background: rgba(99, 102, 241, 0.1);
  border-left: 3px solid var(--primary);
}

.temps-table-content .highlight-from td:first-child {
  font-weight: 700;
  color: var(--primary);
}

.temps-table-content .highlight-to {
  background: rgba(6, 182, 212, 0.1);
  border-left: 3px solid var(--secondary);
}

.temps-table-content .highlight-to td:first-child {
  font-weight: 700;
  color: var(--secondary);
}


/* ============================================
   CALCULATEUR DE POURCENTAGES (ajouts)
   ============================================ */

.pourcentage-container {
  max-width: 700px;
  margin: 0 auto;
}

/* Sélecteur de mode */
.mode-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.mode-btn {
  padding: 0.625rem 1rem;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text-muted);
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9375rem;
  transition: var(--transition);
  font-family: inherit;
}

.mode-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.mode-btn.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

/* Panels */
.mode-panel {
  animation: fadeIn 0.3s ease;
}

.mode-panel.hidden {
  display: none;
}

.mode-panel h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.mode-desc {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  font-size: 0.9375rem;
}

/* Lignes de pourcentage */
.pourcentage-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

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

/* Résultats */
.resultat-pourcentage {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-top: 1.5rem;
}

.res-ligne {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}

.res-ligne:last-child {
  border-bottom: none;
}

.res-label {
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.res-valeur {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  font-variant-numeric: tabular-nums;
}

.res-valeur.secondaire {
  font-size: 1.125rem;
  color: var(--text-muted);
}

.res-valeur.success {
  color: var(--success);
}

.res-valeur.danger {
  color: var(--danger);
}

/* Barre visuelle */
.pourcentage-barre {
  margin-top: 1.5rem;
  background: var(--border);
  border-radius: 999px;
  height: 36px;
  position: relative;
  overflow: hidden;
}

.pourcentage-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.5s ease, background 0.3s ease;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.pourcentage-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--text);
  text-shadow: 0 1px 2px rgba(255,255,255,0.8);
}

[data-theme="dark"] .pourcentage-text {
  text-shadow: 0 1px 2px rgba(0,0,0,0.8);
  color: var(--bg);
}


/* ============================================
   CALCULATEUR SALAIRE (ajouts)
   ============================================ */

.salaire-container {
  max-width: 700px;
  margin: 0 auto;
}

.salaire-params {
  margin-bottom: 2rem;
}

.salaire-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1rem;
}

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

/* Options checkbox */
.salaire-options {
  margin-top: 1.5rem;
  padding: 1rem;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.option-checkbox {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0;
  cursor: pointer;
  font-size: 0.9375rem;
  color: var(--text);
}

.option-checkbox input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--primary);
  cursor: pointer;
  flex-shrink: 0;
}

/* Résultats fiche de paie */
.salaire-resultats {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-top: 1.5rem;
}

.salaire-resultats h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text);
  text-align: center;
}

.paie-ligne {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.625rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9375rem;
}

.paie-ligne:last-child {
  border-bottom: none;
}

.paie-label {
  color: var(--text-muted);
}

.paie-valeur {
  font-weight: 600;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.paie-valeur.retenue {
  color: var(--danger);
}

.paie-valeur.success {
  color: var(--success);
}

.paie-separateur {
  text-align: center;
  padding: 0.75rem 0;
  margin: 0.5rem 0;
  border-top: 2px dashed var(--border);
  border-bottom: 2px dashed var(--border);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.paie-total {
  font-size: 1.125rem;
  font-weight: 700;
}

.paie-total .paie-label {
  color: var(--text);
}

.paie-total .paie-valeur {
  color: var(--primary);
  font-size: 1.25rem;
}

.paie-important {
  font-size: 1.0625rem;
  font-weight: 700;
}

.paie-important .paie-valeur {
  color: var(--primary);
}

.paie-total-net {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  margin: 0.5rem -1.5rem;
  padding: 1rem 1.5rem;
  border-radius: 0;
}

.paie-total-net .paie-label {
  color: white;
  font-size: 1.125rem;
}

.paie-total-net .paie-valeur {
  color: white;
  font-size: 1.5rem;
}

/* Répartition visuelle */
.salaire-repartition {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.salaire-repartition h4 {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-align: center;
}

.repartition-barre {
  display: flex;
  height: 48px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--border);
}

.repartition-part {
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 0.875rem;
  transition: width 0.5s ease;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
}

.repartition-part.net {
  background: linear-gradient(135deg, var(--success), #34d399);
}

.repartition-part.charges {
  background: linear-gradient(135deg, var(--warning), #fbbf24);
}

.repartition-part.impot {
  background: linear-gradient(135deg, var(--danger), #f87171);
}

.repartition-legende {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.legende-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.legende-couleur {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  display: inline-block;
}

.legende-couleur.net {
  background: var(--success);
}

.legende-couleur.charges {
  background: var(--warning);
}

.legende-couleur.impot {
  background: var(--danger);
}


/* ============================================
   COMPTEUR DE MOTS (ajouts)
   ============================================ */

.compteur-container {
  max-width: 900px;
  margin: 0 auto;
}

/* Zone de texte */
.compteur-zone {
  margin-bottom: 2rem;
}

.compteur-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  padding: 0.75rem;
  background: var(--surface);
  border-radius: var(--radius) var(--radius) 0 0;
  border: 1px solid var(--border);
  border-bottom: none;
}

.btn-sm {
  padding: 0.375rem 0.75rem;
  font-size: 0.875rem;
}

.compteur-textarea {
  width: 100%;
  min-height: 280px;
  padding: 1.25rem;
  border: 2px solid var(--border);
  border-radius: 0 0 var(--radius) var(--radius);
  background: var(--bg);
  color: var(--text);
  font-size: 1rem;
  font-family: inherit;
  line-height: 1.7;
  resize: vertical;
  transition: var(--transition);
}

.compteur-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.compteur-info-bar {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.compteur-info-bar strong {
  color: var(--primary);
}

/* Stats grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  text-align: center;
  transition: var(--transition);
}

.stat-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
}

.stat-card.stat-highlight {
  border-color: var(--primary);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), rgba(6, 182, 212, 0.05));
}

.stat-icon {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}

.stat-value {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--primary);
  font-variant-numeric: tabular-nums;
  transition: transform 0.15s ease;
}

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

.stat-label small {
  font-size: 0.75rem;
  opacity: 0.8;
}

/* Temps section */
.temps-section {
  margin: 2rem 0;
  padding: 1.5rem;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.temps-section h3 {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

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

.temps-card {
  text-align: center;
  padding: 1rem;
  background: var(--bg);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: var(--transition);
}

.temps-card:hover {
  border-color: var(--primary);
}

.temps-icon {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.temps-valeur {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
}

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

.temps-label small {
  font-size: 0.75rem;
  opacity: 0.7;
}

/* SEO Section */
.seo-section {
  margin: 2rem 0;
  padding: 1.5rem;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.seo-section h3 {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.seo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.seo-card {
  padding: 1rem;
  background: var(--bg);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.seo-label {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.seo-valeur {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.seo-barre {
  height: 6px;
  background: var(--border);
  border-radius: 999px;
  overflow: hidden;
}

.seo-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 999px;
  transition: width 0.5s ease;
}

/* Mots fréquents */
.mots-frequents {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.mots-frequents h4 {
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.mots-liste {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.mot-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.375rem 0.75rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.875rem;
  color: var(--text);
  transition: var(--transition);
}

.mot-tag:hover {
  border-color: var(--primary);
  background: rgba(99, 102, 241, 0.05);
}

.mot-tag small {
  color: var(--text-muted);
  font-size: 0.75rem;
}

/* Social Media Section */
.social-section {
  margin-top: 2rem;
  padding: 1.5rem;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.social-section h3 {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

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

.social-card {
  padding: 1rem;
  background: var(--bg);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: var(--transition);
}

.social-card:hover {
  border-color: var(--primary);
}

.social-icon {
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
}

.social-nom {
  font-weight: 600;
  font-size: 0.9375rem;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.social-barre {
  height: 8px;
  background: var(--border);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.social-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.3s ease, background 0.3s ease;
  background: var(--success);
}

.social-compteur {
  font-size: 0.8125rem;
  color: var(--text-muted);
  text-align: right;
  font-variant-numeric: tabular-nums;
}
