/* --- Variables & Global Styles --- */
:root {
    --color-lightest: #f8f9fa;
    --color-light: #e9ecef;
    --color-border: #dee2e6;
    --color-medium: #adb5bd;
    --color-text: #495057;
    --color-text-dark: #343a40;
    --color-headings: #212529;
    --color-primary: #007bff; /* Un bleu pour l'accent, se marie bien avec le gris */
    --font-family: 'Poppins', sans-serif;
    --container-width: 1140px;
    --border-radius: 8px;
    --box-shadow: 0 4px 15px rgba(0, 0, 0, 0.07);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-family);
    color: var(--color-text);
    background-color: #fff;
    line-height: 1.7;
    font-size: 16px;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 15px;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--color-headings);
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--color-headings);
    line-height: 1.3;
}

h1 { font-size: 2.8rem; }
h2 { font-size: 2.2rem; }
h3 { font-size: 1.5rem; }

.section-padding {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 20px;
}

.section-subtitle {
    text-align: center;
    margin-bottom: 60px;
    font-size: 1.1rem;
    color: var(--color-medium);
}

.bg-light {
    background-color: var(--color-lightest);
}

.btn {
    display: inline-block;
    background-color: var(--color-primary);
    color: #fff;
    padding: 12px 28px;
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.btn:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
    color: #fff;
}

.text-center {
    text-align: center;
    margin-top: 40px;
}

ul {
    list-style-position: inside;
}


/* --- Header & Navigation --- */
header {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--color-headings);
}

.logo img {
    height: 50px;
    margin-right: 10px;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin: 0 20px;
}

.nav-links a {
    color: var(--color-text-dark);
    font-weight: 600;
    padding: 5px 0;
    border-bottom: 2px solid transparent;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--color-primary);
    border-bottom-color: var(--color-primary);
}

.hamburger {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--color-headings);
}

/* --- Footer --- */
footer {
    background-color: var(--color-headings);
    color: var(--color-border);
    padding: 30px 0;
    text-align: center;
    font-size: 0.9rem;
}

footer p {
    margin: 5px 0;
}

/* --- Hero Section --- */
.hero {
    background-color: var(--color-lightest);
    padding: 80px 0;
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 40px;
}

.hero-text {
    flex: 1;
}

.hero-text h1 {
    margin-bottom: 20px;
}

.hero-text p {
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.hero-image {
    flex: 1;
}

.hero-image img {
    max-width: 100%;
    border-radius: var(--border-radius);
}

/* --- Home Sections (About, Services) --- */
.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}
.about-content p {
    margin-bottom: 15px;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.service-card-small {
    background-color: #fff;
    padding: 30px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--box-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card-small:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.service-card-small i {
    font-size: 2.5rem;
    color: var(--color-primary);
    margin-bottom: 15px;
}

.service-card-small h3 {
    margin-bottom: 10px;
}

/* --- Page Header --- */
.page-header {
    background-color: var(--color-headings);
    color: #fff;
    padding: 60px 0;
    text-align: center;
}
.page-header h1 {
    color: #fff;
}

/* --- Services List Page --- */
.service-item {
    display: flex;
    gap: 30px;
    align-items: center;
    padding: 30px 0;
    border-bottom: 1px solid var(--color-light);
}

.service-item:last-child {
    border-bottom: none;
}

.service-item-icon i {
    font-size: 3rem;
    color: var(--color-primary);
    width: 80px;
    text-align: center;
}

.service-item-content h3 {
    margin-bottom: 10px;
}

.read-more {
    font-weight: 600;
    display: inline-block;
    margin-top: 10px;
}

/* --- Contact Page --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.contact-card {
    background: var(--color-lightest);
    padding: 25px;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.contact-card i {
    font-size: 2rem;
    color: var(--color-primary);
    margin-bottom: 15px;
}

.contact-card h3 {
    margin-bottom: 5px;
}

.contact-card p {
    font-size: 0.9rem;
    color: var(--color-text);
    margin-bottom: 10px;
}

.contact-card a, .contact-card span {
    font-weight: 600;
    color: var(--color-text-dark);
}

.contact-image img {
    max-width: 100%;
    border-radius: var(--border-radius);
}


/* --- Service Detail Page --- */
.service-detail-header {
    height: 300px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.service-detail-header h1 {
    color: #fff;
    font-size: 3rem;
}

.service-content h2 {
    margin-bottom: 20px;
}

.service-content p, .service-content ul {
    margin-bottom: 20px;
    max-width: 800px;
}

.service-content ul li {
    padding-left: 10px;
    margin-bottom: 10px;
}

/* --- Responsive Design --- */
@media (max-width: 992px) {
    .hero-content {
        flex-direction: column-reverse;
        text-align: center;
    }
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: #fff;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    }
    .nav-links.active {
        display: flex;
    }
    .nav-links li {
        margin: 0;
        text-align: center;
    }
    .nav-links a {
        display: block;
        padding: 15px;
        border-bottom: 1px solid var(--color-light);
    }
    .hamburger {
        display: block;
    }
}