/*
============================================
    Variables & Global Styles
============================================
*/

:root {
    --primary-color: #0ea5e9; /* Bleu ciel */
    --secondary-color: #10b981; /* Vert frais */
    --accent-color: #f59e0b; /* Orange énergique */
    --text-color: #1f2937; /* Gris foncé */
    --text-color-light: #6b7280; /* Gris clair */
    --background-color: #f8fafc; /* Blanc très léger */
    --white: #ffffff;
    --border-radius: 12px;
    --shadow-sm: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-md: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    background-color: var(--background-color);
    padding-top: 80px; /* Adjust for fixed navbar */
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-color-light);
    margin-bottom: 3rem;
}

.btn {
    border-radius: var(--border-radius);
    padding: 12px 28px;
    font-weight: 600;
    transition: all 0.3s ease;
}

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

.btn-primary:hover {
    background-color: #0b8acb;
    border-color: #0b8acb;
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

/*
============================================
    Navigation Bar
============================================
*/

.navbar {
    transition: all 0.4s ease;
    padding: 1.2rem 0;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
}

.navbar.scrolled {
    padding: 0.8rem 0;
    background-color: rgba(255, 255, 255, 0.98) !important;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.8rem;
    color: var(--primary-color);
    position: relative;
    letter-spacing: -0.5px;
}

.navbar-brand::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--accent-color);
    bottom: 5px;
    right: -10px;
}

.navbar-nav {
    gap: 5px;
}

.nav-item {
    position: relative;
}

.nav-link {
    font-weight: 600;
    color: var(--text-color);
    padding: 0.7rem 1.2rem !important;
    border-radius: 6px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--primary-color);
    border-radius: 6px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    z-index: -1;
    opacity: 0.1;
}

.nav-link:hover {
    color: var(--primary-color);
    transform: translateY(-3px);
}

.nav-link:hover::before {
    transform: translateY(0);
}

.nav-link.active {
    color: var(--white);
    background-color: var(--primary-color);
}

.nav-link.active:hover {
    color: var(--white);
    transform: translateY(-3px);
}

.nav-link i {
    margin-right: 6px;
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.nav-link:hover i {
    transform: translateY(-2px);
}

.navbar-toggler {
    border: none;
    padding: 0;
    width: 40px;
    height: 40px;
    border-radius: 6px;
    background-color: rgba(14, 165, 233, 0.1);
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.3);
}

.navbar-toggler-icon {
    width: 24px;
    height: 24px;
    background-image: none !important;
    position: relative;
    transition: all 0.3s;
}

.navbar-toggler-icon::before,
.navbar-toggler-icon::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
    left: 0;
    transition: all 0.3s;
}

.navbar-toggler-icon::before {
    top: 8px;
}

.navbar-toggler-icon::after {
    bottom: 8px;
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::before {
    transform: rotate(45deg);
    top: 11px;
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::after {
    transform: rotate(-45deg);
    bottom: 11px;
}

@media (max-width: 991.98px) {
    .navbar-collapse {
        background-color: rgba(255, 255, 255, 0.98);
        padding: 1rem;
        border-radius: 10px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        margin-top: 1rem;
    }

    .nav-link {
        margin: 0.3rem 0;
    }
}

/*
============================================
    Hero Section
============================================
*/

.hero-section {
    background: linear-gradient(rgba(255, 255, 255, 0.9), rgba(248, 250, 252, 0.9)), url('../images/hero.jpg') no-repeat center center;
    background-size: cover;
    padding: 120px 0;
    color: var(--text-color);
    text-align: left !important;
}

.hero-section h1 {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-section .lead {
    font-size: 1.25rem;
    color: var(--text-color-light);
    margin-bottom: 2rem;
}

.hero-badges .badge {
    font-weight: 500;
    padding: 0.5rem 1rem;
    margin-bottom: 0.5rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

/*
============================================
    Feature Icons
============================================
*/

.feature-icon {
    width: 60px;
    height: 60px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.card:hover .feature-icon {
    transform: scale(1.1);
}

/*
============================================
    Testimonials
============================================
*/

.testimonial-card {
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-10px);
}

/*
============================================
    Service Card
============================================
*/

.service-card {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%;
    border: 1px solid #e5e7eb;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
}

.service-card img {
    height: 220px;
    object-fit: cover;
}

.service-card .service-content {
    padding: 30px;
}

.service-card h3 {
    color: var(--primary-color);
    font-weight: 600;
}

/*
============================================
    Contact Form Section
============================================
*/

.contact-form-section {
    background-color: var(--white);
}

.cleaning-contact-form {
    background: var(--white);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: none;
    border: 1px solid #e5e7eb;
}

.form-control, .form-select {
    min-height: 50px;
    border-radius: var(--border-radius);
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(14, 165, 233, 0.15);
}

/*
============================================
    Service Page
============================================
*/

.page-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
}

.page-header .page-title {
    font-weight: 700;
    color: var(--text-color);
}

.service-section h2 {
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.service-checklist li {
    margin-bottom: 0.75rem;
    display: flex;
    align-items: flex-start;
}

.service-checklist .fa-check-circle {
    margin-top: 5px;
}

/*
============================================
    Pricing Page
============================================
*/

.pricing-card {
    border: 1px solid #dee2e6;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.pricing-card .card-title {
    font-weight: 600;
    color: var(--text-color);
}

.pricing-card .price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 1.5rem 0;
}

.pricing-card .price sup {
    font-size: 1.5rem;
    top: -1em;
}

.pricing-card .price span {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 400;
}

.pricing-card.popular {
    border-color: var(--primary-color);
    border-width: 2px;
    position: relative;
}

.popular-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
    border-radius: 50rem;
}

.pricing-card ul li {
    margin-bottom: 0.75rem;
}

.calculator-section {
    border: 2px dashed #dee2e6;
}

/*
============================================
    Reservation Page
============================================
*/

.reservation-form-section h3 {
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 1.5rem;
}

.calendar-placeholder {
    border: 2px dashed #dee2e6;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 300px;
}

/*
============================================
    About Page
============================================
*/

.value-card h5 {
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.value-card .icon-circle {
    width: 70px;
    height: 70px;
    background-color: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    transition: all 0.3s ease;
}

.value-card:hover .icon-circle {
    background-color: #fff;
    color: var(--primary-color);
    box-shadow: 0 0 0 2px var(--primary-color);
}

.team-member img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border: 5px solid #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.team-member h5 {
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.25rem;
}


/*
============================================
    Contact Page
============================================
*/

.contact-section h3 {
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 1.5rem;
}

.contact-info li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.contact-info li i {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-right: 1rem;
    margin-top: 0.2rem;
    width: 20px; /* Ensures alignment */
    text-align: center;
}

.contact-info li a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info li a:hover {
    color: var(--primary-color);
}


/*
============================================
    Footer
============================================
*/

.site-footer {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #cbd5e1;
    padding: 70px 0 20px;
    font-size: 0.95rem;
    position: relative;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--accent-color));
}

.site-footer h5 {
    color: var(--white);
    font-weight: 600;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.site-footer h5::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 40px;
    height: 2px;
    background-color: var(--primary-color);
}

.site-footer a {
    color: #cbd5e1;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.site-footer a:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.footer-links li {
    margin-bottom: 0.75rem;
    position: relative;
    padding-left: 15px;
}

.footer-links li::before {
    content: '›';
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

.social-icons {
    display: flex;
    gap: 10px;
}

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

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    margin-top: 2rem;
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.footer-contact-item i {
    margin-right: 10px;
    color: var(--primary-color);
}

/*
============================================
    Responsive Adjustments
============================================
*/

@media (max-width: 991.98px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }

    .hero-section {
        padding: 80px 0;
    }
}

@media (max-width: 767.98px) {
    .hero-section h1 {
        font-size: 2rem;
    }

    .hero-section {
        padding: 60px 0;
        text-align: center !important;
    }

    .hero-section .d-flex {
        justify-content: center;
    }

    .hero-badges {
        justify-content: center;
        display: flex;
        flex-wrap: wrap;
    }
}
