/* === Header === */
.header {
    position: sticky;
    top: 0;
    background: white;
    border-bottom: 1px solid #ddd;
    z-index: 10;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    height: 40px;
    width: 40px;
}

.logo h2 {
    font-size: 1.2rem;
    margin: 0;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #00966a;
}

.menu-toggle {
    display: none;
    cursor: pointer;
    font-size: 28px;
}

/* Reset et styles de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    background-color: #f9fafb;
    color: #1f2937;
}

/* Container */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .container {
        padding: 0 1.5rem;
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 2rem;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out forwards;
}

/* Hero Section */
.hero-section {
    background-color: #059669;
    color: white;
    padding: 5rem 0;
}

.hero-content {
    text-align: center;
}

.hero-content h1 {
    font-size: 2.25rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    color: white;
}

@media (min-width: 768px) {
    .hero-content h1 {
        font-size: 3rem;
    }
}

.hero-content p {
    font-size: 1.25rem;
    color: #d1fae5;
    max-width: 48rem;
    margin: 0 auto;
}

/* Filters Section */
.filters-section {
    padding: 2rem 0;
    background-color: white;
    border-bottom: 1px solid #e5e7eb;
}

.filters-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #374151;
}

.filter-label svg {
    width: 1.25rem;
    height: 1.25rem;
}

.filter-btn {
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid #059669;
    background-color: white;
    color: #059669;
}

.filter-btn:hover {
    background-color: #ecfdf5;
}

.filter-btn.active {
    background-color: #059669;
    color: white;
    border: none;
}

.filter-btn.active:hover {
    background-color: #047857;
}

/* Projects Section */
.projects-section {
    padding: 4rem 0;
    background-color: #f9fafb;
}

.projects-grid {
    display: grid;
    gap: 2rem;
}

.footer {
    background-color: #1a2332;
    color: #ffffff;
    padding-top: 60px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column {
    display: flex;
    flex-direction: column;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.logo-wrapper {
    width: 50px;
    height: 50px;
    background-color: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.brand-name {
    font-size: 1.3rem;
    font-weight: 600;
    color: #ffffff;
}

.footer-description {
    font-size: 0.95rem;
    color: #a8b3c1;
    line-height: 1.7;
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    transition: all 0.3s ease;
}

.social-link:hover {
    background-color: #0d9d6e;
    transform: translateY(-3px);
}

.footer-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: #a8b3c1;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: #0d9d6e;
    padding-left: 5px;
}

.footer-contact {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: #a8b3c1;
    font-size: 0.95rem;
    line-height: 1.6;
}

.contact-item svg {
    flex-shrink: 0;
    margin-top: 2px;
    color: #0d9d6e;
}

.newsletter {
    margin-top: 24px;
}

.newsletter-title {
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 12px;
}

.newsletter-form {
    display: flex;
    gap: 8px;
}

.newsletter-input {
    flex: 1;
    padding: 12px 16px;
    background-color: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    color: #ffffff;
    font-size: 0.9rem;
    outline: none;
    transition: all 0.3s ease;
}

.newsletter-input::placeholder {
    color: #7d8a9a;
}

.newsletter-input:focus {
    background-color: rgba(255, 255, 255, 0.12);
    border-color: #0d9d6e;
}

.newsletter-btn {
    padding: 12px 24px;
    background-color: #0d9d6e;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.newsletter-btn:hover {
    background-color: #0a7a56;
    transform: translateY(-2px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 24px 0;
}

.footer-bottom-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.copyright {
    color: #7d8a9a;
    font-size: 0.9rem;
}

.footer-legal {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.footer-legal a {
    color: #7d8a9a;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-legal a:hover {
    color: #0d9d6e;
}

@media (min-width: 768px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .projects-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Project Card */
.project-card {
    background-color: white;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.project-image {
    position: relative;
    height: 14rem;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.badge {
    position: absolute;
    top: 1rem;
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
}

.badge-category {
    left: 1rem;
    background-color: #059669;
    color: white;
}

.badge-status {
    right: 1rem;
}

.badge-status.completed {
    background-color: #dbeafe;
    color: #1e40af;
    border: 1px solid #bfdbfe;
}

.badge-status.ongoing {
    background-color: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.project-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.project-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.project-icon {
    padding: 0.5rem;
    border-radius: 0.5rem;
    background-color: #d1fae5;
}

.project-icon svg {
    width: 1.25rem;
    height: 1.25rem;
    color: #059669;
}

.project-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    flex: 1;
}

.project-location {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #4b5563;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.project-location svg {
    width: 1rem;
    height: 1rem;
}

.project-description {
    color: #4b5563;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.project-progress {
    margin-bottom: 1rem;
    margin-top: auto;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.progress-header span:first-child {
    color: #4b5563;
}

.progress-value {
    color: #059669;
    font-weight: 600;
}

.progress-bar {
    width: 100%;
    background-color: #e5e7eb;
    border-radius: 9999px;
    height: 0.5rem;
    overflow: hidden;
}

.progress-fill {
    background-color: #059669;
    height: 0.5rem;
    border-radius: 9999px;
    transition: width 0.3s ease;
}

.project-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
    font-size: 0.875rem;
}

.project-footer span {
    color: #4b5563;
}

.more-btn {
    background: none;
    border: none;
    color: #059669;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.3s ease;
}

.more-btn:hover {
    color: #047857;
}

/* CTA Section */
.cta-section {
    padding: 4rem 0;
    background-color: white;
}

.cta-box {
    background: linear-gradient(to right, #059669, #047857);
    color: white;
    border-radius: 0.5rem;
    overflow: hidden;
    max-width: 56rem;
    margin: 0 auto;
}

.cta-content {
    padding: 3rem;
    text-align: center;
}

.cta-content h3 {
    font-size: 1.875rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: white;
}

.cta-content p {
    color: #d1fae5;
    margin-bottom: 2rem;
    font-size: 1.125rem;
}

.cta-btn {
    background-color: white;
    color: #059669;
    padding: 0.75rem 1.5rem;
    border-radius: 0.375rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.cta-btn:hover {
    background-color: #f3f4f6;
}

/* Modal */
.modal-overlay {
    background-color: rgba(0, 0, 0, 0.5);
    position: fixed;
    inset: 0;
    z-index: 50;
    display: none;
}

.modal-overlay.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    border-radius: 0.5rem;
    max-width: 48rem;
    max-height: 90vh;
    overflow-y: auto;
    margin: 1rem;
}

#modal-body {
    padding: 2rem;
}

/* ============================================
   MEDIA QUERIES POUR RESPONSIVE DESIGN
   ============================================ */

/* TABLETTE (max-width: 1024px) */
@media (max-width: 1024px) {

    /* Footer - passer à 2 colonnes */
    .footer-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    /* Hero Section */
    .hero-section {
        padding: 4rem 0;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1.1rem;
    }

    /* CTA Section */
    .cta-content {
        padding: 2.5rem;
    }

    .cta-content h3 {
        font-size: 1.5rem;
    }

    .cta-content p {
        font-size: 1rem;
    }

    /* Projects Grid - 2 colonnes */
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    /* Project Card */
    .project-image {
        height: 12rem;
    }

    .project-content {
        padding: 1.25rem;
    }

    .project-header h3 {
        font-size: 1.1rem;
    }
}

/* TABLETTE PORTRAIT (max-width: 768px) */
@media (max-width: 768px) {

    /* Header - afficher le menu hamburger */
    .menu-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: white;
        flex-direction: column;
        justify-content: flex-start;
        padding: 2rem;
        transition: left 0.3s ease;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active {
        left: 0;
    }

    .nav-links a {
        width: 100%;
        padding: 1rem;
        border-bottom: 1px solid #e5e7eb;
        text-align: center;
    }

    /* Hero Section */
    .hero-section {
        padding: 3rem 0;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1rem;
        padding: 0 1rem;
    }

    /* Filters Section */
    .filters-container {
        justify-content: center;
    }

    .filter-label {
        width: 100%;
        justify-content: center;
        margin-bottom: 0.5rem;
    }

    .filter-btn {
        flex: 1;
        min-width: 80px;
    }

    /* Projects Section */
    .projects-section {
        padding: 3rem 0;
    }

    /* Projects Grid - 1 colonne */
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    /* Footer - 1 colonne */
    .footer-container {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .footer-brand {
        justify-content: center;
    }

    .social-links {
        justify-content: center;
    }

    .footer-links {
        align-items: center;
    }

    .contact-item {
        justify-content: center;
    }

    .footer-bottom-container {
        flex-direction: column;
        text-align: center;
    }

    .footer-legal {
        justify-content: center;
    }

    /* CTA Section */
    .cta-content {
        padding: 2rem 1.5rem;
    }

    .cta-content h3 {
        font-size: 1.5rem;
    }

    /* Modal */
    .modal-content {
        max-width: 90%;
        margin: 0.5rem;
    }

    #modal-body {
        padding: 1.5rem;
    }
}

/* MOBILE (max-width: 480px) */
@media (max-width: 480px) {

    /* Container */
    .container {
        padding: 0 0.75rem;
    }

    /* Header */
    .nav-container {
        padding: 12px 15px;
    }

    .logo h2 {
        font-size: 1rem;
    }

    .logo img {
        height: 35px;
        width: 35px;
    }

    /* Hero Section */
    .hero-section {
        padding: 2.5rem 0;
    }

    .hero-content h1 {
        font-size: 1.75rem;
        margin-bottom: 1rem;
    }

    .hero-content p {
        font-size: 0.95rem;
    }

    /* Filters Section */
    .filters-section {
        padding: 1.5rem 0;
    }

    .filter-label {
        font-size: 0.875rem;
    }

    .filter-label svg {
        width: 1rem;
        height: 1rem;
    }

    .filter-btn {
        padding: 0.4rem 0.75rem;
        font-size: 0.8rem;
    }

    /* Projects Section */
    .projects-section {
        padding: 2rem 0;
    }

    .projects-grid {
        gap: 1.25rem;
    }

    /* Project Card */
    .project-card:hover {
        transform: translateY(-4px);
    }

    .project-image {
        height: 10rem;
    }

    .project-content {
        padding: 1rem;
    }

    .project-header {
        gap: 0.5rem;
    }

    .project-icon {
        padding: 0.4rem;
    }

    .project-header h3 {
        font-size: 1rem;
    }

    .project-location {
        font-size: 0.8rem;
    }

    .project-description {
        font-size: 0.9rem;
        -webkit-line-clamp: 2;
    }

    .badge {
        font-size: 0.7rem;
        padding: 0.2rem 0.6rem;
    }

    .progress-header {
        font-size: 0.8rem;
    }

    .project-footer {
        font-size: 0.8rem;
    }

    /* CTA Section */
    .cta-section {
        padding: 2.5rem 0;
    }

    .cta-content {
        padding: 1.5rem 1rem;
    }

    .cta-content h3 {
        font-size: 1.25rem;
        margin-bottom: 0.75rem;
    }

    .cta-content p {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }

    .cta-btn {
        padding: 0.65rem 1.25rem;
        font-size: 0.9rem;
    }

    /* Footer */
    .footer {
        padding-top: 40px;
    }

    .footer-title {
        font-size: 1rem;
        margin-bottom: 15px;
    }

    .footer-description {
        font-size: 0.9rem;
    }

    .footer-links a,
    .contact-item,
    .footer-legal a {
        font-size: 0.85rem;
    }

    .social-link {
        width: 36px;
        height: 36px;
    }

    .footer-bottom {
        padding: 20px 0;
    }

    .copyright {
        font-size: 0.85rem;
    }

    /* Modal */
    .modal-content {
        max-width: 95%;
        max-height: 85vh;
    }

    #modal-body {
        padding: 1.25rem;
    }
}

/* TRÈS PETIT MOBILE (max-width: 360px) */
@media (max-width: 360px) {
    .hero-content h1 {
        font-size: 1.5rem;
    }

    .hero-content p {
        font-size: 0.9rem;
    }

    .filter-btn {
        padding: 0.35rem 0.6rem;
        font-size: 0.75rem;
        min-width: 70px;
    }

    .project-header h3 {
        font-size: 0.95rem;
    }

    .cta-content h3 {
        font-size: 1.1rem;
    }

    .cta-content p {
        font-size: 0.85rem;
    }
}