/* Base Styles */
:root {
    --primary-color: #e9a87c; /* Orange from logo */
    --secondary-color: #4caf50; /* Green from logo */
    --dark-color: #333333; /* Dark/Black */
    --light-color: #ffffff; /* White */
    --gray-color: #f5f5f5; /* Light Gray */
    --text-color: #333333;
    --border-radius: 8px;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

img{
	display:block;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-color);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

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

img {
    max-width: 100%;
    height: auto;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
    color: var(--dark-color);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--secondary-color);
    border-radius: 2px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

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

.btn-primary:hover {
    background-color: #3d8b40;
    color: var(--light-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.btn-secondary {
    background-color: transparent;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
}

.btn-secondary:hover {
    background-color: var(--secondary-color);
    color: var(--light-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Header & Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--light-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 15px 0;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 60px;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    color: var(--dark-color);
    font-weight: 500;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px 0;
    background-color: var(--dark-color);
    transition: var(--transition);
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('https://images.unsplash.com/photo-1580674285054-bed31e145f59?ixlib=rb-4.0.3&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=1950&q=80') no-repeat center center/cover;
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--light-color);
    padding-top: 80px;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero h2 {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 40px;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* About Section */
.about {
    padding: 100px 0;
    background-color: var(--gray-color);
}

.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-text {
    flex: 1;
}

.about-text p {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.about-image {
    flex: 1;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

/* Services Section */
.services {
    padding: 100px 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--light-color);
    border-radius: var(--border-radius);
    padding: 30px;
    text-align: center;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.service-icon {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.service-card h3 {
    margin-bottom: 15px;
    color: var(--dark-color);
}

/* Banner Section */
.banner {
    background-color: var(--secondary-color);
    color: var(--light-color);
    padding: 60px 0;
    text-align: center;
}

.banner h2 {
    font-size: 2.5rem;
    font-weight: 700;
    max-width: 800px;
    margin: 0 auto;
}

/* Tarifs Section */
.tarifs {
    padding: 100px 0;
    background-color: var(--gray-color);
}

/* Tarifs Table Styles */
.tarifs-table-container {
    max-width: 800px;
    margin: 0 auto;
    background-color: var(--light-color);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
}

.tarifs-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.tarifs-table th {
    background-color: var(--primary-color);
    color: var(--light-color);
    padding: 15px 20px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 1rem;
}

.tarifs-table td {
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    font-size: 1rem;
}

.tarifs-table tr:last-child td {
    border-bottom: none;
}

.tarifs-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.tarifs-table tr:hover {
    background-color: #f0f0f0;
}

.tarifs-table td.price {
    font-weight: 700;
    color: var(--secondary-color);
    text-align: right;
}

/* Search functionality */
.search-container {
    max-width: 500px;
    margin: 0 auto 40px;
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
}

.search-input {
    width: 100%;
    padding: 15px 20px 15px 50px;
    border: 2px solid #ddd;
    border-radius: 30px;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    transition: var(--transition);
}

.search-input:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.2);
}

.search-icon {
    position: absolute;
    left: 20px;
    font-size: 1.2rem;
    color: #777;
}

.no-results {
    text-align: center;
    padding: 30px;
    font-size: 1.1rem;
    color: #777;
}

.hidden {
    display: none;
}

/* Simplified city cards */
.tarifs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
}

.tarif-card {
    background-color: var(--light-color);
    border-radius: var(--border-radius);
    padding: 20px;
    text-align: center;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    border-left: 4px solid var(--primary-color);
}

.tarif-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    border-left-color: var(--secondary-color);
}

.tarif-card h3 {
    margin-bottom: 10px;
    color: var(--dark-color);
    font-size: 1.2rem;
}

.price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--secondary-color);
}

/* Signup Section */
.signup {
    padding: 100px 0;
}

.signup-content {
    display: flex;
    gap: 50px;
    align-items: center;
}

.signup-form {
    flex: 1;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-family: 'Poppins', sans-serif;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.2);
}

.form-message {
    margin-top: 15px;
    padding: 12px;
    border-radius: var(--border-radius);
    font-size: 0.95rem;
    text-align: center;
}

.form-message.success {
    background-color: rgba(76, 175, 80, 0.1);
    color: var(--secondary-color);
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.form-message.error {
    background-color: rgba(244, 67, 54, 0.1);
    color: #f44336;
    border: 1px solid rgba(244, 67, 54, 0.3);
}

.privacy-note {
    margin-top: 20px;
    font-size: 0.9rem;
    color: #777;
}

.signup-image {
    flex: 1;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: var(--light-color);
    padding: 70px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.footer-logo img {
    height: 60px;
    margin-bottom: 15px;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #ddd;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-contact p {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

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

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

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

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

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Thank You Page Styles */
.thankyou-section {
    padding: 150px 0 100px;
    min-height: calc(100vh - 400px);
    display: flex;
    align-items: center;
    background-color: var(--gray-color);
}

.thankyou-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    background-color: var(--light-color);
    padding: 50px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.thankyou-icon {
    font-size: 5rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
    animation: scaleUp 0.5s ease-in-out;
}

@keyframes scaleUp {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    70% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.thankyou-content h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--dark-color);
}

.thankyou-message {
    font-size: 1.2rem;
    margin-bottom: 40px;
    color: #555;
}

.next-steps {
    background-color: rgba(76, 175, 80, 0.1);
    padding: 30px;
    border-radius: var(--border-radius);
    margin-bottom: 40px;
    text-align: left;
}

.next-steps h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--secondary-color);
    text-align: center;
}

.next-steps ul {
    list-style: none;
}

.next-steps li {
    margin-bottom: 15px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
}

.next-steps li i {
    color: var(--secondary-color);
    margin-right: 15px;
    font-size: 1.3rem;
}

.thankyou-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* Responsive Design */
@media (max-width: 992px) {
    .about-content,
    .signup-content {
        flex-direction: column;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 90px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 90px);
        background-color: var(--light-color);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: var(--transition);
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .nav-links li {
        margin: 15px 0;
    }
    
    .hamburger {
        display: block;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero h2 {
        font-size: 1.2rem;
    }
    
    .banner h2 {
        font-size: 1.8rem;
    }
}

@media (max-width: 576px) {
    .service-card,
    .tarif-card {
        padding: 20px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-logo {
        margin: 0 auto;
    }
    
    .footer-contact p {
        justify-content: center;
    }
    
    .social-icons {
        justify-content: center;
    }
}

/* Pagination Styles */
.pagination-container {
    margin-top: 40px; /* Space above pagination */
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 0;
}

.pagination {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    justify-content: center; /* Center items when wrapped */
    gap: 8px; /* Space between page items */
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 10px 15px;
    background-color: var(--light-color);
}

.page-item .page-link {
    display: block;
    padding: 10px 15px;
    min-width: 40px; /* Ensure consistent width for numbers */
    text-align: center;
    color: var(--dark-color);
    background-color: transparent;
    border: 1px solid #ddd; /* Light border */
    border-radius: var(--border-radius);
    transition: var(--transition);
    font-weight: 500;
    font-size: 0.9rem;
    line-height: 1.2; /* Ensure text fits well */
}

.page-item.disabled .page-link {
    color: #aaa;
    background-color: var(--gray-color);
    border-color: #eee;
    cursor: not-allowed;
}

.page-item.disabled .page-link:hover {
    transform: none;
    box-shadow: none;
}

.page-item:not(.disabled) .page-link:hover,
.page-item:not(.disabled) .page-link:focus {
    background-color: var(--secondary-color);
    color: var(--light-color);
    border-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.page-item.active .page-link {
    background-color: var(--primary-color);
    color: var(--light-color);
    border-color: var(--primary-color);
    font-weight: 700;
    cursor: default;
}

.page-item.active .page-link:hover {
    transform: none;
    box-shadow: none;
}

/* Adjustments for Previous/Next text and ellipsis */
.page-item .page-link[href="#"],
.page-item.disabled .page-link span { /* For ellipsis span if used */
    padding: 10px 15px;
}

/* Ensure ellipsis is not overly styled if it's just a span in a disabled item */
.page-item.disabled span.page-link {
    border: 1px solid transparent;
    background-color: transparent;
    box-shadow: none;
    color: #aaa;
}
