/* ASC PRO - Styles personnalisés */

/* ===== Base Styles ===== */
:root {
    --primary: #023E8A;
    --secondary: #0077B6;
    --accent: #F47686;
    --bg-light: #f9fafb;
    --text-dark: #111827;
    --text-gray: #6b7280;
}

/* Hide scrollbar */
::-webkit-scrollbar {
    display: none;
}

html {
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

body {
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===== Animations ===== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.animate-fade-in {
    animation: fadeIn 0.5s ease-out forwards;
}

.animate-slide-in {
    animation: slideIn 0.5s ease-out forwards;
}

/* ===== Header Styles ===== */
.header-scrolled {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* ===== Service Cards ===== */
.service-card {
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-card:hover .service-icon {
    animation: pulse 0.5s ease-in-out;
}

/* ===== City Cards ===== */
.city-card {
    transition: all 0.3s ease;
}

.city-card:hover {
    transform: translateY(-3px);
}

/* ===== FAQ Accordion ===== */
.faq-item {
    transition: all 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    opacity: 1;
    padding-top: 1rem;
}

.faq-item .faq-answer {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item .faq-toggle {
    transition: transform 0.3s ease;
}

.faq-item.active .faq-toggle {
    transform: rotate(180deg);
}

/* ===== Form Styles ===== */
.form-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

.form-input.error {
    border-color: #ef4444;
}

.form-input.success {
    border-color: #10b981;
}

/* ===== Button Styles ===== */
.btn-primary {
    background-color: var(--primary);
    color: white;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #1e3a8a;
    transform: translateY(-2px);
}

.btn-accent {
    background-color: var(--accent);
    color: white;
    transition: all 0.3s ease;
}

.btn-accent:hover {
    background-color: #F27282;
    transform: translateY(-2px);
}

.btn-outline {
    border: 2px solid white;
    color: white;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background-color: white;
    color: var(--primary);
}

/* ===== Loading States ===== */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.loading-spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--primary);
    border-radius: 50%;
    width: 24px;
    height: 24px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===== Toast Notifications ===== */
.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    color: white;
    font-weight: 500;
    z-index: 9999;
    animation: slideIn 0.3s ease-out;
}

.toast-success {
    background-color: #10b981;
}

.toast-error {
    background-color: #ef4444;
}

.toast-info {
    background-color: var(--primary);
}

/* ===== Mobile Menu ===== */
.mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.mobile-menu.open {
    max-height: 400px;
}

/* ===== Breadcrumb ===== */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-gray);
}

.breadcrumb a {
    color: var(--primary);
    transition: color 0.2s ease;
}

.breadcrumb a:hover {
    color: var(--secondary);
}

.breadcrumb-separator {
    color: #d1d5db;
}

/* ===== Page Templates ===== */
.page-hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding: 4rem 0;
}

.page-content {
    padding: 4rem 0;
}

/* ===== Admin Styles ===== */
.admin-sidebar {
    width: 250px;
    background-color: #1f2937;
    color: white;
    min-height: 100vh;
}

.admin-nav-item {
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: background-color 0.2s ease;
}

.admin-nav-item:hover,
.admin-nav-item.active {
    background-color: #374151;
}

.admin-card {
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th,
.admin-table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

.admin-table th {
    background-color: #f9fafb;
    font-weight: 600;
}

.admin-table tr:hover {
    background-color: #f9fafb;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .page-hero {
        padding: 2rem 0;
    }
    
    .page-hero h1 {
        font-size: 2rem;
    }
}

/* ===== Print Styles ===== */
@media print {
    header, footer, .no-print {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
    }
    
    a {
        text-decoration: none;
        color: black;
    }
}
