/* Variables CSS */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #e74c3c;
    --success-color: #27ae60;
    --warning-color: #f39c12;
    --info-color: #3498db;
    --dark-color: #1a1a1a;
    --light-color: #ecf0f1;
    --body-font: 'Open Sans', sans-serif;
    --heading-font: 'Roboto', sans-serif;
}

/* Global Styles */
body {
    font-family: var(--body-font);
    line-height: 1.6;
    color: var(--dark-color);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    font-weight: 700;
}

/* Navigation responsive */
.navbar-brand {
    font-size: 1.5rem;
    font-weight: bold;
}

@media (max-width: 991px) {
    .navbar-nav {
        text-align: center;
    }
    
    .navbar-nav .nav-item {
        margin: 0.5rem 0;
    }
}

/* Hero Section */
.hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('/images/hero-bg.jpg') center/cover;
    color: white;
    padding: 100px 0;
    text-align: center;
}

.hero-section h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    .hero-section {
        padding: 60px 0;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section .lead {
        font-size: 1.1rem;
    }
}

/* Service Cards */
.service-card {
    text-align: center;
    padding: 2rem;
    border: 1px solid #eee;
    border-radius: 10px;
    transition: all 0.3s;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.service-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Booking Steps */
.booking-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
    position: relative;
}

.booking-step {
    flex: 1;
    text-align: center;
    position: relative;
}

.booking-step.active .step-number {
    background-color: var(--primary-color);
    color: white;
}

.booking-step.completed .step-number {
    background-color: var(--success-color);
    color: white;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #ddd;
    color: #666;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
    .booking-steps {
        flex-direction: column;
    }
    
    .booking-step {
        margin-bottom: 1rem;
    }
}

/* Time Slots */
.time-slot {
    display: inline-block;
    padding: 0.5rem 1rem;
    margin: 0.25rem;
    border: 2px solid #ddd;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
}

.time-slot:hover:not(.disabled) {
    border-color: var(--primary-color);
    background-color: #f8f9fa;
}

.time-slot.selected {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.time-slot.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Responsive Tables */
@media (max-width: 768px) {
    .table-responsive table {
        font-size: 0.9rem;
    }
    
    .table-responsive table td,
    .table-responsive table th {
        padding: 0.5rem;
    }
}

/* Cards responsive */
@media (max-width: 576px) {
    .card {
        margin-bottom: 1rem;
    }
    
    .card-body {
        padding: 1rem;
    }
}

/* Dashboard Stats */
.stat-card {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

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

/* Review Stars */
.stars {
    color: var(--warning-color);
}

.rating {
    display: flex;
    gap: 0.25rem;
}

.rating input[type="radio"] {
    display: none;
}

.rating label {
    cursor: pointer;
    font-size: 1.5rem;
    color: #ddd;
    transition: color 0.3s;
}

.rating input[type="radio"]:checked ~ label,
.rating label:hover,
.rating label:hover ~ label {
    color: var(--warning-color);
}

/* Status Badges */
.badge-status {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
}

.status-pending {
    background-color: var(--warning-color);
    color: white;
}

.status-confirmed {
    background-color: var(--info-color);
    color: white;
}

.status-completed {
    background-color: var(--success-color);
    color: white;
}

.status-cancelled {
    background-color: var(--secondary-color);
    color: white;
}

/* Mobile Navigation */
@media (max-width: 991px) {
    .navbar-toggler {
        border: none;
        padding: 0.25rem 0.5rem;
    }
    
    .navbar-collapse {
        margin-top: 1rem;
    }
    
    .dropdown-menu {
        text-align: center;
        border: none;
        background-color: rgba(0, 0, 0, 0.1);
    }
}

/* Footer responsive */
footer {
    background-color: var(--dark-color);
    color: white;
    padding: 3rem 0 1rem;
    margin-top: 5rem;
}

footer h5 {
    color: white;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

footer a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s;
}

footer a:hover {
    color: white;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all 0.3s;
    color: white;
}

.social-links a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

@media (max-width: 768px) {
    footer {
        text-align: center;
    }
    
    footer .col-md-4 {
        margin-bottom: 2rem;
    }
}

/* Boutons de partage social */
.social-share {
    display: flex;
    gap: 0.5rem;
    margin: 1rem 0;
    flex-wrap: wrap;
}

.social-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    text-decoration: none;
    color: white;
    transition: transform 0.3s, opacity 0.3s;
    font-size: 0.9rem;
}

.social-share-btn:hover {
    transform: translateY(-2px);
    opacity: 0.9;
    color: white;
}

.social-share-btn.facebook {
    background-color: #1877f2;
}

.social-share-btn.twitter {
    background-color: #1da1f2;
}

.social-share-btn.whatsapp {
    background-color: #25d366;
}

.social-share-btn.linkedin {
    background-color: #0077b5;
}

.social-share-btn.email {
    background-color: var(--secondary-color);
}

/* Sidebar Admin Mobile */
@media (max-width: 991px) {
    .admin-sidebar {
        margin-bottom: 2rem;
    }
    
    .list-group-item {
        border-radius: 0;
    }
}

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

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

/* Utilities */
.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #34495e;
    border-color: #34495e;
}

/* Print styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    .navbar,
    footer,
    .btn,
    .social-share {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
    }
    
    .container {
        width: 100%;
        max-width: none;
    }
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Focus styles */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Loading spinner */
.spinner-border {
    width: 1rem;
    height: 1rem;
    border-width: 0.15em;
}

/* Sticky elements mobile */
@media (max-width: 768px) {
    .sticky-top {
        position: relative !important;
    }
}