/** * Styles pour la page admin de liste des capacités de traduction * Interface moderne avec vue Parent → Enfant */ .traduction-langue-list-wrap { padding: 20px 20px 40px; max-width: 1400px; } .traduction-langue-list-wrap h1 { display: flex; align-items: center; gap: 10px; font-size: 28px; margin-bottom: 20px; } .traduction-langue-list-wrap h1 .dashicons { font-size: 32px; width: 32px; height: 32px; } /* Grid des cartes */ .traduction-langue-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(450px, 1fr)); gap: 24px; margin-top: 30px; } /* Carte de capacité */ .capacite-card { background: #fff; border: 1px solid #dcdcde; border-radius: 8px; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05); transition: all 0.2s ease; } .capacite-card:hover { box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); border-color: #2271b1; } .capacite-card.inactive { opacity: 0.7; background: #f6f7f7; } .capacite-card.full { border-left: 4px solid #d63638; } /* Header de la carte */ .card-header { display: flex; justify-content: space-between; align-items: flex-start; padding: 20px; border-bottom: 1px solid #f0f0f1; } .card-title { flex: 1; } .card-title h2 { font-size: 18px; font-weight: 600; margin: 0 0 8px 0; color: #1d2327; } .card-badges { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; } .badge { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 4px; font-size: 12px; font-weight: 500; } .badge-inactive { background: #f0f0f1; color: #50575e; } .badge-inactive-small { padding: 2px 6px; font-size: 11px; } .badge-warning { background: #fcf3cf; color: #856404; border: 1px solid #f9e79f; } .card-actions { display: flex; gap: 8px; align-items: flex-start; } .card-actions .button { display: flex; align-items: center; gap: 6px; white-space: nowrap; } .card-actions .button .dashicons { font-size: 18px; width: 18px; height: 18px; } /* Body de la carte */ .card-body { padding: 20px; } .info-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-bottom: 20px; } .info-item { display: flex; flex-direction: column; gap: 4px; } .info-item-full { grid-column: 1 / -1; } .info-label { font-size: 12px; font-weight: 500; color: #646970; text-transform: uppercase; letter-spacing: 0.5px; } .info-value { font-size: 15px; font-weight: 600; color: #1d2327; } .info-value .na { color: #a7aaad; font-style: italic; } /* Badges de langues multiples */ .langue-badges { display: flex; flex-wrap: wrap; gap: 6px; } .langue-badge { display: inline-flex; align-items: center; padding: 4px 10px; background: #2271b1; color: #fff; border-radius: 4px; font-size: 13px; font-weight: 500; } .langue-badge:first-child { background: #135e96; } .langue-badge:nth-child(2) { background: #2271b1; } .langue-badge:nth-child(3) { background: #3582c4; } /* Badge d'exception */ .exception-badge { display: inline-flex; align-items: center; padding: 6px 12px; background: #fef5e7; color: #856404; border: 1px solid #f9e79f; border-radius: 4px; font-size: 13px; font-weight: 600; } /* Barre d'utilisation */ .usage-bar { margin-top: 16px; } .usage-label { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; font-size: 13px; } .usage-label > span:first-child { font-weight: 600; color: #1d2327; } .usage-stats { color: #50575e; font-weight: 500; } .usage-progress { height: 8px; background: #f0f0f1; border-radius: 4px; overflow: hidden; } .usage-progress-bar { height: 100%; background: #2271b1; transition: width 0.3s ease; border-radius: 4px; } .usage-progress-bar.warning { background: #f0b849; } .usage-progress-bar.full { background: #d63638; } /* Responsive */ @media screen and (max-width: 1200px) { .traduction-langue-grid { grid-template-columns: repeat(auto-fill, minmax(400px, 1fr)); } } @media screen and (max-width: 782px) { .traduction-langue-grid { grid-template-columns: 1fr; } .card-header { flex-direction: column; gap: 16px; } .card-actions { width: 100%; justify-content: flex-start; } .info-grid { grid-template-columns: 1fr; } }