/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

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

/* Header */
header {
    position: relative;
    height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('images/hero-bg.jpg') no-repeat center center/cover;
    color: var(--secondary);
    display: flex;
    align-items: center;
    padding: 20px 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo img {
    height: 50px;
}

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

.desktop-nav a {
    color: var(--secondary);
    text-decoration: none;
    margin-left: 30px;
    font-weight: 500;
    transition: color 0.3s;
}

.desktop-nav a:hover {
    color: var(--accent);
}

.mobile-menu {
    display: none;
    cursor: pointer;
}

.mobile-menu .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px 0;
    background-color: var(--secondary);
    transition: all 0.3s;
}

/* Hero Section */
.hero {
    padding: 100px 0;
    text-align: center;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--primary);
}

.subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 30px;
}

/* Buttons */
.btn-primary {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--accent);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s;
}

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

.btn-secondary {
    display: inline-block;
    padding: 10px 25px;
    border: 2px solid var(--accent);
    color: var(--accent);
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-secondary:hover {
    background-color: var(--accent);
    color: white;
}

/* Services Section */
.services-section {
    padding: 80px 0;
    background-color: white;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2rem;
    color: var(--primary);
}

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

.service-card {
    padding: 30px;
    border: 1px solid var(--border);
    border-radius: 10px;
    transition: all 0.3s;
}

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

.service-icon {
    font-size: 2rem;
    margin-bottom: 20px;
}

/* About Section */
.about-section {
    padding: 80px 0;
}

.about-content, .about-image {
    width: 50%;
}

.about-content {
    padding-right: 50px;
}

.about-image {
    padding-left: 50px;
}

.about-content h2, .about-image h2 {
    margin-bottom: 20px;
    font-size: 2rem;
}

.rounded-image {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Testimonials */
.testimonials {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.testimonial-card {
    padding: 30px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.testimonial-author {
    margin-top: 15px;
    font-weight: 600;
    color: var(--accent);
}

/* CTA Section */
.cta-section {
    padding: 80px 0;
    text-align: center;
    background-color: white;
}

.cta-section h2 {
    margin-bottom: 30px;
    font-size: 2rem;
}

/* Footer */
footer {
    background-color: var(--primary);
    color: var(--secondary);
    padding: 50px 0 20px;
}

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

.footer-section h3 {
    margin-bottom: 20px;
    font-size: 1.2rem;
}

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

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

.footer-section a {
    color: var(--secondary);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: var(--accent);
}

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

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

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

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .desktop-nav {
        display: none;
    }

    .mobile-menu {
        display: block;
    }

    .header-content {
        flex-direction: column;
        text-align: center;
    }

    .about-content, .about-image {
        width: 100%;
        padding: 0 0 30px 0;
    }

    .about-content {
        order: 2;
    }

    .about-image {
        order: 1;
    }

    .hero h1 {
        font-size: 2rem;
    }
}

/* Blog Section */
.blog-section {
    padding: 80px 0;
    background-color: white;
}

.blog-section h1 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2.5rem;
    color: var(--primary);
}

.blog-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    margin-bottom: 50px;
}

.blog-categories a {
    display: inline-block;
    padding: 8px 20px;
    background-color: var(--border);
    color: var(--text);
    text-decoration: none;
    border-radius: 20px;
    transition: all 0.3s;
}

.blog-categories a:hover, .blog-categories a.active {
    background-color: var(--accent);
    color: white;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.blog-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
}

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

.blog-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.blog-content {
    padding: 25px;
}

.blog-category {
    display: inline-block;
    padding: 5px 12px;
    background-color: var(--accent);
    color: white;
    border-radius: 15px;
    font-size: 0.8rem;
    margin-bottom: 15px;
}

.blog-category a {
    color: white;
    text-decoration: none;
}

.blog-content h2 {
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.blog-excerpt {
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.6;
}

.blog-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.blog-date {
    color: var(--text-light);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Blog Post */
.blog-post-section {
    padding: 80px 0;
    background-color: var(--secondary);
}

.blog-post {
    max-width: 800px;
    margin: 0 auto;
    background-color: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.blog-post-header {
    margin-bottom: 30px;
}

.blog-post-header h1 {
    font-size: 2.2rem;
    margin-bottom: 20px;
    color: var(--primary);
}

.blog-post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
    margin-bottom: 20px;
}

.blog-post-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--text-light);
    font-size: 0.9rem;
}

.blog-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag {
    display: inline-block;
    padding: 5px 12px;
    background-color: var(--border);
    color: var(--text);
    border-radius: 15px;
    text-decoration: none;
    font-size: 0.8rem;
    transition: all 0.3s;
}

.tag:hover {
    background-color: var(--accent);
    color: white;
}

.blog-post-image {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: 10px;
    margin: 30px 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.blog-post-content {
    line-height: 1.8;
    margin-bottom: 40px;
}

.blog-post-content p {
    margin-bottom: 20px;
}

.blog-post-content h2 {
    margin: 30px 0 20px 0;
    font-size: 1.8rem;
    color: var(--primary);
}

.blog-post-content h3 {
    margin: 25px 0 15px 0;
    font-size: 1.5rem;
    color: var(--primary);
}

.blog-post-content ul, .blog-post-content ol {
    margin-bottom: 20px;
    padding-left: 30px;
}

.blog-post-content li {
    margin-bottom: 10px;
}

.blog-post-footer {
    border-top: 1px solid var(--border);
    padding-top: 30px;
}

.share-section {
    margin-bottom: 40px;
}

.share-section p {
    margin-bottom: 15px;
    font-weight: 600;
}

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

.social-share a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--border);
    color: var(--text);
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s;
}

.social-share a:hover {
    background-color: var(--accent);
    color: white;
    transform: translateY(-3px);
}

.author-section {
    display: flex;
    gap: 30px;
    padding: 30px;
    background-color: var(--secondary);
    border-radius: 10px;
}

.author-avatar img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 50%;
}

.author-info {
    flex: 1;
}

.author-info h3 {
    margin-bottom: 10px;
    font-size: 1.5rem;
}

.related-posts {
    margin-top: 60px;
}

.related-posts h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2rem;
    color: var(--primary);
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.related-post-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
}

.related-post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.related-post-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.related-post-content {
    padding: 20px;
}

.related-post-category {
    display: inline-block;
    padding: 5px 12px;
    background-color: var(--accent);
    color: white;
    border-radius: 15px;
    font-size: 0.8rem;
    margin-bottom: 10px;
}

.related-post-content h3 {
    margin-bottom: 15px;
    font-size: 1.3rem;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 50px;
}

.pagination .page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--border);
    color: var(--text);
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s;
}

.pagination .page-link:hover, .pagination .page-link.active {
    background-color: var(--accent);
    color: white;
}

.pagination .page-link.active {
    font-weight: 600;
}

/* Responsive pour le blog */
@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }

    .blog-post {
        padding: 20px;
    }

    .author-section {
        flex-direction: column;
        text-align: center;
    }

    .author-avatar {
        margin-bottom: 20px;
    }
}

/* Footer Styles */
.site-footer {
    background-color: var(--primary);
    color: var(--secondary);
    padding: 60px 0 0 0;
    margin-top: 80px;
}

.newsletter-section {
    background-color: var(--secondary);
    padding: 40px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.newsletter-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.newsletter-content h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--primary);
}

.newsletter-content p {
    margin-bottom: 25px;
    max-width: 600px;
    color: var(--text-light);
    line-height: 1.6;
}

.newsletter-form {
    display: flex;
    max-width: 500px;
    width: 100%;
    margin-bottom: 15px;
}

.newsletter-form input {
    flex: 1;
    padding: 12px 20px;
    border: 1px solid var(--border);
    border-radius: 5px 0 0 5px;
    font-size: 1rem;
    background-color: white;
    color: var(--text);
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--accent);
}

.newsletter-form button {
    border-radius: 0 5px 5px 0;
}

.newsletter-disclaimer {
    font-size: 0.8rem;
    color: var(--text-light);
}

.newsletter-disclaimer a {
    color: var(--accent);
    text-decoration: none;
}

.newsletter-disclaimer a:hover {
    text-decoration: underline;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    padding: 40px 0;
}

.footer-section h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
    color: var(--secondary);
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--accent);
}

.footer-links, .footer-services {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li, .footer-services li {
    margin-bottom: 12px;
}

.footer-links a, .footer-services a {
    color: var(--secondary);
    text-decoration: none;
    transition: all 0.3s;
    display: block;
    padding: 5px 0;
}

.footer-links a:hover, .footer-services a:hover, .footer-links a.active, .footer-services a.active {
    color: var(--accent);
    transform: translateX(5px);
}

.footer-blog-preview {
    margin-bottom: 20px;
}

.footer-blog-preview p {
    margin-bottom: 10px;
}

.footer-blog-preview a {
    color: var(--secondary);
    text-decoration: none;
    transition: all 0.3s;
}

.footer-blog-preview a:hover {
    color: var(--accent);
    text-decoration: underline;
}

.contact-info {
    margin-bottom: 20px;
}

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

.contact-info i {
    color: var(--accent);
    width: 20px;
    text-align: center;
}

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

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

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

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

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

.footer-bottom {
    background-color: rgba(0, 0, 0, 0.1);
    padding: 20px 0;
}

.footer-bottom-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.copyright p {
    font-size: 0.9rem;
    color: var(--secondary);
    text-align: center;
}

.footer-legal {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.footer-legal a {
    color: var(--secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.footer-legal a:hover {
    color: var(--accent);
    text-decoration: underline;
}

.back-to-top {
    display: none;
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

.back-to-top a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background-color: var(--accent);
    color: white;
    border-radius: 50%;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s;
}

.back-to-top a:hover {
    background-color: #3a5f43;
    transform: translateY(-3px);
}

/* Responsive Footer */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-form input {
        border-radius: 5px;
        margin-bottom: 10px;
    }

    .newsletter-form button {
        border-radius: 5px;
    }

    .footer-bottom-content {
        text-align: center;
    }

    .footer-legal {
        flex-direction: column;
        gap: 10px;
    }
}