/* Header */
header {
    background: var(--white);
    padding: 1.5rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px var(--shadow);
}

.header-content {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.2rem;
    color: var(--black);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo::before {
    content: "";
    width: 40px;
    height: 2px;
    background: var(--black);
}

.logo-text {
    font-weight: bold;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2.5rem;
}

nav a {
    color: var(--black);
    text-decoration: none;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: color 0.3s ease;
}

nav a:hover {
    color: var(--gray-medium);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Yellow Band Section */
.yellow-band {
    background: var(--yellow-primary);
    padding: 3rem 0;
    margin: 2rem 0;
    margin-top: 80px;
}

.stats {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-around;
    gap: 3rem;
    padding: 0 2rem;
    flex-wrap: wrap;
}

.stat {
    text-align: center;
    color: var(--white);
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.4s forwards;
}

.stat-icon {
    width: 60px;
    height: 60px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 2rem;
    color: var(--yellow-primary);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    display: block;
}

.stat-label {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Projects Section */
.projects {
    padding: 4rem 0;
    max-width: 1440px;
    margin: 0 auto;
}

.projects-container {
    padding: 0 2rem;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--black);
    text-transform: uppercase;
    font-weight: bold;
}

.section-title::before {
    content: "";
    display: inline-block;
    width: 60px;
    height: 3px;
    background: var(--black);
    margin-right: 1rem;
    vertical-align: middle;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.project-card {
    background: var(--white);
    border: 1px solid var(--gray-light);
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

.project-card:nth-child(1) { animation-delay: 0.1s; }
.project-card:nth-child(2) { animation-delay: 0.2s; }
.project-card:nth-child(3) { animation-delay: 0.3s; }
.project-card:nth-child(4) { animation-delay: 0.4s; }

.project-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transform: translateY(-5px);
}

.project-header {
    height: 200px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-header.turquoise {
    background: var(--turquoise);
}

.project-header.yellow {
    background: var(--yellow-primary);
}

.project-icon {
    font-size: 4rem;
    color: var(--white);
}

.project-type {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--black);
    color: var(--white);
    padding: 0.4rem 1.2rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.project-content {
    padding: 2rem;
}

.project-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--black);
    font-weight: bold;
}

.project-description {
    color: var(--gray-medium);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tag {
    background: var(--gray-light);
    color: var(--black);
    padding: 0.3rem 1rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.view-more {
    display: inline-flex;
    align-items: center;
    background: var(--yellow-primary);
    color: var(--black);
    padding: 0.8rem 2rem;
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 25px;
    transition: all 0.3s ease;
    gap: 0.5rem;
}

.view-more:hover {
    background: var(--black);
    color: var(--white);
    transform: translateX(5px);
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0);
    z-index: 2000;
    padding: 2rem;
    overflow-y: auto;
    visibility: hidden;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal.show {
    visibility: visible;
    background: rgba(0, 0, 0, 0.8);
}

.modal-content {
    background: var(--white);
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    transform: translateY(40px) scale(0.95);
    opacity: 0;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal.show .modal-content {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.modal-header {
    background: var(--yellow-primary);
    padding: 3rem;
    position: relative;
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--black);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--white);
    transition: all 0.3s ease;
}

.close-modal:hover {
    transform: rotate(90deg);
}

.modal-body {
    padding: 3rem;
}

.modal h2 {
    color: var(--white);
    font-size: 2rem;
    margin: 0;
    text-transform: uppercase;
}

.modal-section {
    margin-bottom: 2rem;
}

.modal-section h3 {
    color: var(--black);
    margin-bottom: 1rem;
    font-size: 1.2rem;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.modal-section h3::before {
    content: "";
    width: 30px;
    height: 2px;
    background: var(--yellow-primary);
}

.modal-section ul {
    list-style: none;
    padding-left: 0;
}

.modal-section li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.modal-section li::before {
    content: "▸";
    position: absolute;
    left: 0;
    color: var(--yellow-primary);
    font-weight: bold;
}

/* Footer */
footer {
    background: var(--black);
    color: var(--white);
    text-align: center;
    padding: 3rem 2rem;
    margin-top: 4rem;
}

footer p {
    margin: 0.5rem 0;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .stats {
        flex-direction: column;
        gap: 2rem;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    nav ul {
        display: none;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .section-title::before {
        width: 30px;
    }
}

.project-icon img {
width: 100%;
height: 100%;
object-fit: cover;
filter: brightness(1.1);
transition: transform 0.3s ease;
}

.project-card:hover .project-icon img {
transform: scale(1.05);
}

/* Ajuster le project-icon pour contenir l'image */
.project-icon {
font-size: 4rem;
color: var(--white);
width: 100%;
height: 100%;
display: flex;
align-items: center;
justify-content: center;
}

.modal-gallery {
padding: 2rem 3rem 3rem;
background: var(--gray-light);
}

.modal-gallery h3 {
color: var(--black);
margin-bottom: 1.5rem;
font-size: 1.2rem;
text-transform: uppercase;
display: flex;
align-items: center;
gap: 1rem;
}

.modal-gallery h3::before {
content: "";
width: 30px;
height: 2px;
background: var(--yellow-primary);
}

.gallery-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
gap: 1rem;
}

.gallery-item {
aspect-ratio: 1;
overflow: hidden;
cursor: pointer;
transition: transform 0.3s ease;
}

.gallery-item:hover {
transform: scale(1.05);
}

.gallery-item img {
width: 100%;
height: 100%;
object-fit: cover;
}

/* Lightbox */
.lightbox {
display: none;
position: fixed;
z-index: 3000;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.9);
cursor: pointer;
}

.lightbox img {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
max-width: 90%;
max-height: 90%;
object-fit: contain;
}

.lightbox-close {
position: absolute;
top: 20px;
right: 40px;
color: white;
font-size: 40px;
cursor: pointer;
}