/* Custom styles for Mon Guichet Entreprise */

/* French Flag Gradient Lines */
.french-line {
    background: linear-gradient(to right, #1e3a8a 33%, #ffffff 33%, #ffffff 66%, #dc2626 66%);
    height: 3px;
    width: 100%;
}

.french-line-vertical {
    background: linear-gradient(to bottom, #1e3a8a 33%, #ffffff 33%, #ffffff 66%, #dc2626 66%);
    width: 3px;
    height: 100%;
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

/* Custom animations */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-slide-in {
    animation: slideIn 0.6s ease-out forwards;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #1e3a8a;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #1e40af;
}

/* Status badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
}

.status-brouillon {
    background-color: #f1f5f9;
    color: #64748b;
    border: 1px solid #e2e8f0;
}

.status-en-cours {
    background-color: #dbeafe;
    color: #1e40af;
    border: 1px solid #bfdbfe;
}

.status-soumis {
    background-color: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
}

.status-validation {
    background-color: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

/* Form styling */
.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 0.5rem;
    transition: all 0.2s;
    font-size: 1rem;
}

.form-input:focus {
    outline: none;
    border-color: #1e3a8a;
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

/* Progress bar */
.progress-bar {
    height: 8px;
    background-color: #e2e8f0;
    border-radius: 9999px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(to right, #1e3a8a, #dc2626);
    transition: width 0.3s ease;
}

/* Card hover effects */
.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Button animations */
.btn-primary {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-primary::after {
    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::after {
    left: 100%;
}

/* Typography refinements */
h1, h2, h3, h4 {
    letter-spacing: -0.025em;
}

/* Legal text styling */
.legal-text {
    font-size: 0.875rem;
    line-height: 1.6;
    color: #475569;
}

.legal-text h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1e293b;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

/* Dashboard sidebar */
.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: #64748b;
    border-radius: 0.5rem;
    transition: all 0.2s;
    text-decoration: none;
}

.sidebar-link:hover,
.sidebar-link.active {
    background-color: #eff6ff;
    color: #1e3a8a;
}

/* Wizard steps */
.wizard-step {
    position: relative;
    padding-left: 2rem;
    padding-bottom: 2rem;
    border-left: 2px solid #e2e8f0;
}

.wizard-step::before {
    content: '';
    position: absolute;
    left: -0.5rem;
    top: 0;
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    background-color: white;
    border: 2px solid #e2e8f0;
}

.wizard-step.active::before {
    border-color: #1e3a8a;
    background-color: #1e3a8a;
}

.wizard-step.completed::before {
    border-color: #10b981;
    background-color: #10b981;
}

.wizard-step.completed {
    border-left-color: #10b981;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .french-line {
        height: 2px;
    }
    
    .status-badge {
        font-size: 0.75rem;
        padding: 0.375rem 0.75rem;
    }
}

/* Print styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        background: white;
    }
}