/* Styles personnalisés pour l'application d'analyse d'opportunités IA */

/* Header fixe */
header.bg-blue-900 {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

/* Ajout d'un padding au main pour compenser le header fixe */
main.flex-grow {
    padding-top: 5rem; /* Ajuster cette valeur en fonction de la hauteur du header */
}

/* Animations et effets visuels simplifiés */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
    0% { opacity: 0.7; }
    50% { opacity: 1; }
    100% { opacity: 0.7; }
}

.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

.animate-pulse {
    animation: pulse 2s ease-in-out infinite;
}

/* Effets de glassmorphisme */
.glass {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 1rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    transition: all 0.3s ease;
}

.glass-card:hover {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.8);
}

/* Styles pour les étiquettes de catégorie */
.category-tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Couleurs pour les étiquettes de priorité */
.priority-critical {
    background-color: #FEE2E2;
    color: #B91C1C;
    border: 1px solid #FECACA;
}

.priority-important {
    background-color: #FEF3C7;
    color: #92400E;
    border: 1px solid #FDE68A;
}

.priority-moderate {
    background-color: #E0F2FE;
    color: #0369A1;
    border: 1px solid #BAE6FD;
}

.priority-minor {
    background-color: #DCFCE7;
    color: #166534;
    border: 1px solid #BBF7D0;
}

/* Styles pour les cartes d'opportunité */
.opportunity-card {
    border-radius: 0.5rem;
    overflow: hidden;
    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 ease;
}

.opportunity-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Styles pour les formulaires */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #374151;
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 0.75rem;
    border-radius: 0.375rem;
    border: 1px solid #D1D5DB;
    background-color: #F9FAFB;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    border-color: #3B82F6;
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
}

.form-textarea {
    min-height: 100px;
    resize: vertical;
}

/* Styles pour les boutons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    font-weight: 500;
    border-radius: 0.375rem;
    transition: all 0.15s ease-in-out;
    cursor: pointer;
}

.btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
}

.btn-sm {
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
}

.btn-icon {
    margin-right: 0.5rem;
}

/* Styles pour les tableaux */
.table-container {
    overflow-x: auto;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th {
    background-color: #F3F4F6;
    padding: 0.75rem 1rem;
    text-align: left;
    font-weight: 600;
    color: #374151;
    border-bottom: 1px solid #E5E7EB;
}

.table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #E5E7EB;
    color: #4B5563;
}

.table tr:last-child td {
    border-bottom: none;
}

.table tbody tr:hover {
    background-color: #F9FAFB;
}

/* Styles pour les badges de score */
.score-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 9999px;
    font-weight: 700;
    color: white;
}

.score-high {
    background-color: #10B981;
}

.score-medium {
    background-color: #F59E0B;
}

.score-low {
    background-color: #EF4444;
}

/* Styles pour les graphiques et visualisations */
.chart-container {
    position: relative;
    height: 300px;
    margin-bottom: 2rem;
}

/* Styles pour les alertes et notifications */
.alert {
    padding: 1rem;
    border-radius: 0.375rem;
    margin-bottom: 1rem;
}

.alert-success {
    background-color: #D1FAE5;
    border: 1px solid #A7F3D0;
    color: #065F46;
}

.alert-warning {
    background-color: #FEF3C7;
    border: 1px solid #FDE68A;
    color: #92400E;
}

.alert-error {
    background-color: #FEE2E2;
    border: 1px solid #FECACA;
    color: #B91C1C;
}

.alert-info {
    background-color: #E0F2FE;
    border: 1px solid #BAE6FD;
    color: #0369A1;
}

/* Animations et transitions */
.scale-in {
    animation: scaleIn 0.3s ease-in-out;
}

@keyframes scaleIn {
    from { transform: scale(0.95); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* Styles pour les étapes du processus */
.step-container {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
    position: relative;
}

.step-container::before {
    content: '';
    position: absolute;
    top: 1.5rem;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(to right, #3B82F6, #10B981, #8B5CF6, #F59E0B);
    border-radius: 9999px;
    z-index: 0;
    opacity: 0.3;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
    padding: 0 1rem;
}

.step-circle {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 9999px;
    background-color: #F3F4F6;
    border: 2px solid #E5E7EB;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin-bottom: 0.75rem;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.step-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #6B7280;
    text-align: center;
    transition: all 0.3s ease;
}

.step.active .step-circle {
    background: linear-gradient(135deg, #3B82F6, #60A5FA);
    border-color: #93C5FD;
    color: white;
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.5);
}

.step.active .step-label {
    color: #1F2937;
    font-weight: 600;
}

.step.completed .step-circle {
    background: linear-gradient(135deg, #10B981, #34D399);
    border-color: #6EE7B7;
    color: white;
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.5);
}

.step.completed .step-label {
    color: #10B981;
    font-weight: 600;
}

/* Styles pour les cartes */
.card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.card:hover .btn {
    transform: scale(1.05);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Styles pour les boutons améliorés */
.btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.btn:hover:before {
    transform: translateX(0);
}

.btn-primary {
    background: linear-gradient(135deg, #3B82F6, #2563EB);
    box-shadow: 0 4px 6px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #2563EB, #1D4ED8);
    box-shadow: 0 6px 8px rgba(59, 130, 246, 0.4);
}

.btn-secondary {
    background: linear-gradient(135deg, #10B981, #059669);
    box-shadow: 0 4px 6px rgba(16, 185, 129, 0.3);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #059669, #047857);
    box-shadow: 0 6px 8px rgba(16, 185, 129, 0.4);
}

.btn-accent {
    background: linear-gradient(135deg, #8B5CF6, #7C3AED);
    box-shadow: 0 4px 6px rgba(139, 92, 246, 0.3);
}

.btn-accent:hover {
    background: linear-gradient(135deg, #7C3AED, #6D28D9);
    box-shadow: 0 6px 8px rgba(139, 92, 246, 0.4);
}
