/* Reset de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #1a1a1a;
    background: #fff;
}

/* Navigation Soignée */
nav {
    padding: 25px 50px;
    background: #fff;
    border-bottom: 1px solid #e8e8e8;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 1100px;
    margin: 0 auto;
    gap: 0;
}

.nav-logo {
    font-size: 15px;
    font-weight: 400;
    letter-spacing: 3px;
    color: #1a1a1a;
    margin-right: 40px;
    text-decoration: none;
}

.nav-logo span {
    font-weight: 600;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 5px;
}

.nav-item {
    font-size: 11px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #666;
    padding: 10px 18px;
    text-decoration: none;
    transition: color 0.2s ease;
}

.nav-item:hover {
    color: #1a1a1a;
}

.nav-item.active {
    color: #1a1a1a;
}

/* Hero Section */
.hero {
    position: relative;
    width: 100%;
    min-height: 75vh;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.35);
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fff;
    padding: 20px;
    z-index: 1;
}

.hero-title {
    font-size: 42px;
    font-weight: 400;
    letter-spacing: 4px;
    margin-bottom: 15px;
}

.hero-subtitle {
    font-size: 14px;
    letter-spacing: 5px;
    text-transform: uppercase;
    margin-bottom: 20px;
    opacity: 0.9;
}

.hero-description {
    font-size: 14px;
    margin-bottom: 25px;
    font-weight: 300;
}

.hero-expertise {
    font-size: 10px;
    letter-spacing: 4px;
    text-transform: uppercase;
    padding: 12px 25px;
    border: 1px solid rgba(255, 255, 255, 0.4);
}

/* Projects Section */
.projects {
    padding: 50px 40px;
    background: #fafafa;
}

.project-card {
    max-width: 900px;
    margin: 0 auto 50px;
    padding-bottom: 45px;
    border-bottom: 1px solid #eee;
}

.project-card:last-child {
    border-bottom: none;
}

/* Grille pro : 1 carré gauche + 3 rectangles droite */
.project-images {
    display: grid;
    grid-template-columns: 60% 40%;
    grid-template-rows: 130px 130px 130px;
    gap: 5px;
    margin-bottom: 25px;
    background: #f5f5f5;
}

/* Infos projet - bien séparé sous les images */
.project-info {
    clear: both;
    padding-top: 10px;
}

/* IMAGES SANS ROGNAGE - affichage complet */
.project-images .main-img {
    grid-row: 1 / 4;
    grid-column: 1;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #f0f0f0;
    cursor: pointer;
}

.project-images .thumb {
    grid-column: 2;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #f0f0f0;
    cursor: pointer;
}

.project-images img:hover {
    opacity: 0.85;
}

/* Ancien format (compatibilité) */
.project-main-image {
    width: 100%;
    height: 400px;
    object-fit: contain;
    background: #f0f0f0;
    margin-bottom: 15px;
    cursor: pointer;
}

.project-thumbnails {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.project-thumbnails img {
    width: calc(33.333% - 10px);
    height: 120px;
    object-fit: contain;
    background: #f0f0f0;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

/* Centrage personnalisé - moins de ciel */
.pos-10 { object-position: center 10% !important; }
.pos-15 { object-position: center 15% !important; }
.pos-20 { object-position: center 20% !important; }
.pos-25 { object-position: center 25% !important; }
.pos-30 { object-position: center 30% !important; }
.pos-35 { object-position: center 35% !important; }
.pos-40 { object-position: center 40% !important; }

.project-thumbnails img:hover {
    opacity: 0.85;
}

.project-title {
    font-size: 20px;
    font-weight: 500;
    margin-top: 5px;
    margin-bottom: 5px;
    letter-spacing: 0.5px;
    clear: both;
}

.project-location {
    font-size: 10px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #999;
    margin-bottom: 15px;
}

.project-details {
    display: flex;
    flex-wrap: wrap;
    gap: 20px 30px;
}

.project-details p {
    font-size: 12px;
    color: #666;
    margin: 0;
    letter-spacing: 0.3px;
}

.project-details p span {
    font-weight: 500;
    color: #333;
}

/* Contact Section */
.contact {
    padding: 60px 40px;
    text-align: center;
    background: #fff;
}

.contact-title {
    font-size: 20px;
    font-weight: 400;
    margin-bottom: 30px;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.contact-phone {
    font-size: 18px;
    font-weight: 400;
    margin-bottom: 12px;
    letter-spacing: 1px;
}

.contact-email {
    font-size: 14px;
    color: #888;
}

/* Footer */
.footer {
    padding: 45px 30px;
    text-align: center;
    background: #1a1a1a;
    color: #fff;
}

.footer-brand {
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 25px;
    font-weight: 400;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
}

.footer-link {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    letter-spacing: 1px;
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: #fff;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.show {
    display: flex;
}

.modal-content {
    background: #fff;
    padding: 40px;
    max-width: 480px;
    width: 100%;
    text-align: left;
}

.modal-content h3 {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.modal-content p {
    font-size: 13px;
    line-height: 1.7;
    color: #666;
    margin-bottom: 20px;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 25px;
}

.modal-btn {
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 1px;
    padding: 12px 24px;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    transition: all 0.2s ease;
}

.modal-btn.close {
    background: #f0f0f0;
    color: #333;
}

.modal-btn.close:hover {
    background: #e5e5e5;
}

.modal-btn.report {
    background: #333;
    color: #fff;
}

.modal-btn.report:hover {
    background: #000;
}

/* Image Viewer */
#image-viewer {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.97);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

#image-viewer.show {
    display: flex;
}

.viewer-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    text-align: center;
}

#viewer-image {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
}

#viewer-caption {
    color: #fff;
    font-size: 13px;
    margin-top: 20px;
    font-weight: 300;
    letter-spacing: 1px;
}

.viewer-close {
    position: absolute;
    top: -40px;
    right: 0;
    font-size: 36px;
    color: #fff;
    cursor: pointer;
    font-weight: 300;
    transition: color 0.2s ease;
    line-height: 1;
}

.viewer-close:hover {
    color: #ccc;
}

/* Responsive */
@media (max-width: 900px) {
    nav {
        padding: 20px 30px;
    }
    
    .nav-logo {
        font-size: 13px;
        margin-right: 25px;
        padding-right: 20px;
    }
    
    .nav-item {
        font-size: 10px;
        padding: 8px 14px;
    }
}

@media (max-width: 768px) {
    nav {
        padding: 15px 20px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .nav-container {
        min-width: max-content;
        justify-content: flex-start;
    }
    
    .nav-logo {
        font-size: 12px;
        margin-right: 20px;
        padding-right: 15px;
    }
    
    .nav-item {
        font-size: 10px;
        padding: 6px 10px;
        white-space: nowrap;
    }
    
    .hero {
        min-height: 65vh;
    }
    
    .hero-title {
        font-size: 28px;
        letter-spacing: 2px;
    }
    
    .hero-subtitle {
        font-size: 12px;
        letter-spacing: 3px;
    }
    
    .projects {
        padding: 40px 20px;
    }
    
    .project-card {
        margin-bottom: 35px;
        padding-bottom: 30px;
    }
    
    .project-images {
        grid-template-rows: 100px 100px 100px;
    }
    
    .project-main-image {
        height: 250px;
        margin-bottom: 12px;
    }
    
    .project-thumbnails img {
        height: 90px;
    }
    
    .project-title {
        font-size: 17px;
    }
    
    .project-location {
        font-size: 9px;
        letter-spacing: 2px;
    }
    
    .contact {
        padding: 45px 20px;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 24px;
    }
    
    .hero-content {
        padding: 15px;
    }
    
    .modal-content {
        padding: 25px 20px;
    }
    
    #image-viewer {
        padding: 20px;
    }
    
    .viewer-close {
        top: -35px;
        right: 0;
        font-size: 30px;
    }
}
