/* scte.css - Styles modernes inspirés de courriers.css */

:root {
    --primary-color: #3b82f6;
    --primary-hover: #2563eb;
    --primary-light: #dbeafe;
    --secondary-color: #6b7280;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --background: #f8fafc;
    --background-light: #f1f5f9;
    --card-background: #ffffff;
    --border-color: #e5e7eb;
    --border-light: #f3f4f6;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --text-muted: #9ca3af;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -1px rgb(0 0 0 / 0.06);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -2px rgb(0 0 0 / 0.05);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 10px 10px -5px rgb(0 0 0 / 0.04);
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --transition-fast: 0.15s ease-out;
    --transition-base: 0.2s ease-out;
    --transition-slow: 0.3s ease-out;
}

/* Reset et base */
* {
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    margin: 0;
    padding: 0;
    background: var(--background);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Background décoratif */
.background-image {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, rgba(16, 185, 129, 0.05) 100%);
    pointer-events: none;
    z-index: -1;
}

/* Container principal */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px;
    min-height: 100vh;
}

/* Header amélioré */
.header-container {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 32px;
    padding: 24px 32px;
    background: var(--card-background);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    position: relative;
    overflow: hidden;
}

.header-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--success-color));
}

.logo {
    height: 64px;
    width: auto;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-base);
}

.logo-link {
    display: inline-block;
    text-decoration: none;
    line-height: 0;
}

.logo-link:hover .logo {
    transform: scale(1.05);
    box-shadow: var(--shadow-md);
}

.logo-link:active .logo {
    transform: scale(0.98);
}

.title {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    background: linear-gradient(135deg, var(--primary-color), var(--success-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Carte de contenu principal */
.content-card {
    background: var(--card-background);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    padding: 32px;
    border: 1px solid var(--border-light);
    margin-bottom: 24px;
}

/* Formulaire moderne */
.form-modern {
    margin-bottom: 48px;
    padding-bottom: 32px;
    border-bottom: 2px solid var(--border-light);
}

.field {
    margin-bottom: 24px;
}

.label {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.input, .select select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    font-size: 0.95rem;
    line-height: 1.8;
    transition: all var(--transition-base);
    background: var(--card-background);
    color: var(--text-primary);
}

.input:focus, .select select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.input:hover, .select select:hover {
    border-color: var(--primary-hover);
}

.select {
    width: 100%;
    position: relative;
}

.select.is-fullwidth {
    width: 100%;
}

.select select {
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding-right: 40px;
    line-height: 1.8;
    min-height: 48px;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 20px;
}

/* Style des options dans les select */
.select select option {
    padding: 12px 16px;
    background: var(--card-background);
    color: var(--text-primary);
    font-size: 0.95rem;
    line-height: 2;
    white-space: normal;
    min-height: 3em;
}

.help {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* Boutons modernes */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: var(--radius-lg);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all var(--transition-base);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-icon {
    font-size: 1.1em;
    filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.1));
}

/* Section liste des sociétés */
.societe-list-container {
    margin-top: 32px;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border-light);
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-title::before {
    content: '';
    width: 4px;
    height: 28px;
    background: linear-gradient(135deg, var(--primary-color), var(--success-color));
    border-radius: 2px;
}

/* Liste des sociétés */
.societe-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.societe-list > li {
    background: var(--card-background);
    border: 2px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 16px;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-sm);
}

.societe-list > li:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.societe-list .is-flex {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    flex-wrap: wrap;
}

.societe-list strong {
    font-size: 1.1rem;
    color: var(--text-primary);
    display: block;
    margin-bottom: 12px;
}

.societe-list .tag {
    display: inline-block;
    padding: 6px 12px;
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    font-weight: 500;
    margin-right: 8px;
    margin-bottom: 8px;
    background: var(--background-light);
    color: var(--text-secondary);
}

.tag.is-info {
    background: var(--primary-light);
    color: var(--primary-hover);
}

.tag.is-success {
    background: #d1fae5;
    color: #065f46;
}

.tag.is-warning {
    background: #fef3c7;
    color: #92400e;
}

.tag.is-danger {
    background: #fee2e2;
    color: #991b1b;
}

.tag.is-dark {
    background: #f3f4f6;
    color: #374151;
}

.tag.is-light {
    background: var(--background-light);
    color: var(--text-secondary);
}

/* Boutons d'action */
.button {
    padding: 10px 16px;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all var(--transition-base);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    min-height: 40px;
}

.button.is-warning {
    background: linear-gradient(135deg, var(--warning-color), #dc8b0e);
    color: white;
    box-shadow: var(--shadow-sm);
}

.button.is-warning:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.button.is-danger {
    background: linear-gradient(135deg, var(--danger-color), #dc2626);
    color: white;
    box-shadow: var(--shadow-sm);
}

.button.is-danger:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.button.is-small {
    padding: 8px 12px;
    font-size: 0.85rem;
    min-width: 36px;
    min-height: 36px;
}

.button i {
    font-size: 1em;
}

.mr-2 {
    margin-right: 8px;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 16px;
    }

    .header-container {
        padding: 16px 20px;
        gap: 16px;
    }

    .logo {
        height: 48px;
    }

    .title {
        font-size: 1.5rem;
    }

    .content-card {
        padding: 20px;
    }

    .societe-list > li {
        padding: 16px;
    }

    .societe-list .is-flex {
        flex-direction: column;
    }
}

/* Animation d'entrée */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.content-card {
    animation: fadeInUp 0.4s ease-out;
}

.societe-list > li {
    animation: fadeInUp 0.3s ease-out;
    animation-fill-mode: both;
}

.societe-list > li:nth-child(1) { animation-delay: 0.1s; }
.societe-list > li:nth-child(2) { animation-delay: 0.2s; }
.societe-list > li:nth-child(3) { animation-delay: 0.3s; }
.societe-list > li:nth-child(4) { animation-delay: 0.4s; }
.societe-list > li:nth-child(5) { animation-delay: 0.5s; }

/* État vide */
.empty-state {
    text-align: center;
    padding: 48px 24px;
    background: var(--background-light);
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-lg);
    color: var(--text-secondary);
}

.empty-state p {
    margin: 8px 0;
    font-size: 1rem;
}

.empty-state p:first-child {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* Action buttons container */
.action-buttons {
    display: flex;
    gap: 8px;
    align-items: center;
}
/* Remplace les anciens styles inline */
.empty-cc {
  padding: 40px;
}

.empty-cc-text {
  margin-top: 10px;
  display: inline-block;
}
/* Remplace les anciens styles inline pour la table des valorisations */
.empty-valo {
  padding: 40px;
}

.empty-valo-text {
  margin-top: 10px;
  display: inline-block;
}
