
/* Reset et styles de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
}

body {
    background-color: white;
    color: #333;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
    padding-top: 170px;
    padding-bottom: 80px;
    opacity: 0;
    transition: opacity 1s ease-out;
}

body.loaded {
    opacity: 1;
}

/* Navigation */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: white;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    opacity: 1 !important;
}

.nav-container {
    position: relative;
    height: 120px;
    display: flex;
    align-items: center;
    padding: 0 clamp(20px, 8vw, 160px) 0 clamp(20px, 12vw, 240px);
}

.logo-container {
    display: flex;
    align-items: center;
    z-index: 1002;
    position: relative;
    margin-left: clamp(0px, 6vw, 120px);
    transform: translateY(-10px);
}

.logo {
    width: clamp(60px, 8vw, 90px);
    height: clamp(60px, 8vw, 90px);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 1002;
}

.logo:hover {
    transform: scale(1.15);
}

.company-name {
    font-size: clamp(1rem, 4vw, 24px);
    font-weight: 700;
    margin-left: 15px;
    position: relative;
    color: #333;
    letter-spacing: 1.5px;
    transition: all 0.3s ease;
}

.logo-container:hover .company-name {
    color: #0a1f44;
}

.nav-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50px;
    background-color: #0a1f44;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1001;
    padding-left: clamp(0px, 6vw, 120px);
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin: 0 clamp(10px, 1.5vw, 25px);
    position: relative;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-size: clamp(0.8rem, 2vw, 16px);
    font-weight: 500;
    letter-spacing: 1.2px;
    position: relative;
    padding: 5px 0;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.nav-links a:hover {
    color: #a8c0ff;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #a8c0ff, #6d8ee6);
    bottom: 0;
    left: 0;
    transition: width 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.nav-links a:hover::after {
    width: 100%;
}

/* Menu mobile */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
    z-index: 1003;
    position: absolute;
    right: 20px;
    bottom: 10px;
}

/* Contenu principal */
main {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

body.loaded main {
    opacity: 1;
    transform: translateY(0);
}

/* Filtres de catégories */
.categories-section {
    padding: 3rem 5%;
    background: linear-gradient(to bottom, white, #e9ecef);
}

.categories-container {
    max-width: 1200px;
    margin: 0 auto;
}

.categories-container h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: clamp(1.5rem, 5vw, 2rem);
    color: #0a1a2a;
    font-weight: 300;
    letter-spacing: 1px;
}

.categories {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
}

.category-btn {
    padding: 0.6rem clamp(1rem, 3vw, 1.8rem);
    background: transparent;
    border: 1px solid #0a1a2a;
    color: #0a1a2a;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: clamp(0.6rem, 2vw, 0.8rem);
    letter-spacing: 1px;
}

.category-btn:hover, .category-btn.active {
    background: linear-gradient(135deg, #0a1a2a, #3a5a8a);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(10, 26, 42, 0.2);
    border-color: transparent;
}

/* Galerie de projets */
.projects-section {
    padding: 3rem 5%;
    background: #e9ecef;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(350px, 100%), 1fr));
    gap: 2.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

.project-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    height: clamp(300px, 40vw, 400px);
    transition: all 0.5s ease;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.project-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .project-image {
    transform: scale(1.05);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(10, 26, 42, 0.9), transparent);
    opacity: 0;
    transition: opacity 0.5s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: clamp(1rem, 3vw, 2rem);
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-category {
    background: linear-gradient(135deg, #0a1a2a, #3a5a8a);
    color: white;
    padding: 0.4rem clamp(1rem, 2vw, 1.5rem);
    border-radius: 20px;
    font-size: clamp(0.7rem, 2vw, 0.9rem);
    font-weight: bold;
    margin-bottom: 0.8rem;
    align-self: flex-start;
}

.project-title {
    font-size: clamp(1.2rem, 4vw, 1.8rem);
    margin-bottom: 0.5rem;
    color: white;
    font-weight: 400;
}

.project-description {
    font-size: clamp(0.8rem, 2.5vw, 1rem);
    margin-bottom: 1.5rem;
    color: rgba(248, 249, 250, 0.9);
    line-height: 1.6;
}

.project-subimages {
    display: flex;
    gap: 0.8rem;
    margin-top: 1rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
}

.project-subimages img {
    width: clamp(80px, 15vw, 100px);
    height: clamp(60px, 10vw, 75px);
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.project-subimages img:hover {
    transform: scale(1.1);
    border-color: white;
}

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 26, 42, 0.95);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    opacity: 1;
    pointer-events: all;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    width: 100%;
    text-align: center;
}

.lightbox-img {
    max-height: 80vh;
    max-width: 100%;
    border-radius: 8px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: -50px;
    right: 0;
    color: white;
    font-size: clamp(1.8rem, 6vw, 2.5rem);
    cursor: pointer;
    transition: color 0.3s ease;
}

.lightbox-close:hover {
    color: #3a5a8a;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
}

.lightbox-nav-btn {
    color: white;
    font-size: clamp(1.8rem, 6vw, 2.5rem);
    cursor: pointer;
    padding: 0 clamp(1rem, 3vw, 2rem);
    transition: color 0.3s ease;
    background: rgba(10, 26, 42, 0.5);
    height: 100px;
    display: flex;
    align-items: center;
}

.lightbox-nav-btn:hover {
    color: #3a5a8a;
}

.lightbox-caption {
    position: absolute;
    bottom: -50px;
    left: 0;
    width: 100%;
    text-align: center;
    color: white;
    padding: 1rem;
    font-size: clamp(0.9rem, 3vw, 1.2rem);
}

/* Footer */
.ha-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: white;
    padding: clamp(10px, 2vw, 20px) clamp(20px, 4vw, 40px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 -2px 15px rgba(0, 0, 0, 0.08);
    z-index: 100;
    border-top: 1px solid rgba(10, 31, 68, 0.1);
}

.footer-content {
    display: flex;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-social {
    display: flex;
    gap: clamp(15px, 3vw, 25px);
    flex-wrap: wrap;
    justify-content: center;
}

.footer-social a {
    color: #0a1f44;
    text-decoration: none;
    font-weight: 500;
    font-size: clamp(0.8rem, 2.5vw, 0.95rem);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-social a:hover {
    color: #3a5a8a;
}

.footer-social i {
    font-size: clamp(0.9rem, 3vw, 1.1rem);
}

.footer-copyright {
    color: #0a1f44;
    font-size: clamp(0.7rem, 2.5vw, 0.9rem);
    opacity: 0.8;
    text-align: center;
}

/* Responsive */
@media (max-width: 992px) {
    .nav-container {
        flex-direction: column;
        height: auto;
        padding: 1rem;
    }
    
    .logo-container {
        margin: 0 auto;
        padding: 1rem 0;
        transform: none;
    }
    
    .nav-bar {
        position: relative;
        height: auto;
        padding: 1rem;
        justify-content: center;
        margin-top: 0;
    }
    
    .nav-links {
        flex-direction: column;
        align-items: center;
        display: none;
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .nav-links li {
        margin: 0.5rem 0;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .categories-section {
        padding: 8rem 5% 2rem;
    }

    .category-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.7rem;
    }

    .project-card {
        height: 350px;
    }

    .ha-footer {
        padding: 15px 20px;
    }

    .footer-social {
        gap: 15px;
    }
}

@media (max-width: 576px) {
    body {
        padding-top: 180px;
    }

    .nav-links a {
        font-size: 0.9rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-social a {
        font-size: 0.85rem;
        gap: 5px;
    }
    
    .footer-copyright {
        font-size: 0.8rem;
    }
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from { 
        opacity: 0;
        transform: translateY(30px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes zoomIn {
    from { 
        opacity: 0;
        transform: scale(0.95);
    }
    to { 
        opacity: 1;
        transform: scale(1);
    }
}