@import url('https://fonts.cdnfonts.com/css/calibri-school');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Calibri', 'Calibri School', Arial, sans-serif;
    color: #333;
    overflow-x: hidden;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Navigation plus fine */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: transparent;
    z-index: 1000;
    padding: 15px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav.scrolled {
    background: transparent;
}

/* Logo Image */
.logo-link {
    display: block;
    text-decoration: none;
    z-index: 1002;
    position: relative;
}

.logo-img {
    height: 40px;
    width: auto;
    display: block;
    filter: invert(100%) sepia(0%) saturate(0%) hue-rotate(180deg) brightness(200%) contrast(200%);
    transition: filter 0.3s;
}

body:not(.home) .logo-img {
    filter: none;
}

body.home nav.scrolled .logo-img {
    filter: none;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    transition: color 0.3s, text-shadow 0.3s;
}

nav.scrolled .logo {
    color: #333;
    text-shadow: none;
}

/* Navigation pour page d'accueil */
body.home nav {
    background: transparent;
}

body.home nav.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

body.home .logo {
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

body.home nav.scrolled .logo {
    color: #333;
    text-shadow: none;
}

body.home nav a {
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

body.home nav.scrolled a {
    color: #333;
    text-shadow: none;
}

body.home .menu-toggle span {
    background: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

body.home nav.scrolled .menu-toggle span {
    background: #333;
    box-shadow: none;
}

/* Navigation pour autres pages */
body:not(.home) nav {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

body:not(.home) .logo {
    color: #333;
    text-shadow: none;
}

body:not(.home) nav a {
    color: #333;
    text-shadow: none;
}

body:not(.home) .menu-toggle span {
    background: #333;
    box-shadow: none;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 40px;
}

nav a {
    text-decoration: none;
    font-size: 16px;
    transition: opacity 0.3s, color 0.3s, text-shadow 0.3s;
}

nav a:hover {
    opacity: 0.6;
}

/* Menu mobile */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    z-index: 1002;
    position: relative;
}

.menu-toggle span {
    width: 25px;
    height: 2px;
    transition: 0.3s;
}

/* Slideshow */
.slideshow {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Page Projets */
.projects-container {
    padding: 120px 50px 80px;
    max-width: 1400px;
    margin: 0 auto;
    min-height: 100vh;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1rem;
    /* padding: 3rem; */
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    max-width: 1200px;
}

.project-card {
    position: relative;
    overflow: hidden;
    border-radius: 2px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    aspect-ratio: 4/3;
    text-decoration: none;
    width: 100%;
    height: 550px;
    max-width: 450px;
}

.project-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.project-card:hover img {
    filter: brightness(110%);
    transform: scale(1.01);
}

.project-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: white;
    padding: 10px 15px;
    transform: translateY(0);
    transition: transform 0.3s ease;
}

.project-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 5px;
}

.project-location {
    font-size: 14px;
    opacity: 0.9;
}

/* Page Agence */
.agency-container {
    padding: 120px 50px 80px;
    max-width: 1200px;
    margin: 0 auto;
    min-height: 100vh;
}

.about-section {
    /* display: grid; */
    /* grid-template-columns: 1fr 1fr; */
    /* gap: 60px; */
    margin-bottom: 100px;
    align-items: center;
}

.about-section h2 {
    font-size: 32px;
    margin-bottom: 20px;
}

.about-section p {
    line-height: 1.8;
    color: #666;
}

.about-section p span {
    margin-left: 60px;
}

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

.contact-section h2 {
    font-size: 32px;
    margin-bottom: 40px;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.map-container {
    position: relative;
    width: 100%;
    height: 400px;
    border-radius: 4px;
    overflow: hidden;
}

.france-map {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.france-map-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    position: absolute;
    top: 0;
    left: 0;
    transform: scale(1.4);
}

.map-point {
    position: absolute;
    width: 12px;
    height: 12px;
    background: #333;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.3s;
}

.map-point:hover {
    transform: scale(1.5);
}

.map-point::after {
    content: attr(data-city);
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s;
}

.map-point:hover::after {
    opacity: 1;
}

.contact-info h3 {
    font-size: 18px;
    margin-bottom: 15px;
}

.contact-info p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 10px;
}

.contact-location {
    margin-bottom: 30px;
}

/* Page Projet Détail */
.project-detail-container {
    padding-top: 70px;
    min-height: 100vh;
}

.project-detail-title {
    font-size: 30px;
    font-weight: 300;
    text-align: center;
    margin: 50px auto 120px;
    color: #333;
}

/* Slider Projet - presque toute la hauteur */
.project-slider {
    position: relative;
    width: 100%;
    height: calc(100vh - 250px);
    overflow: hidden;
    margin-bottom: 40px;
    cursor: pointer;
}

.slider-track {
    width: 100%;
    height: 100%;
    position: relative;
}

.project-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
}

.project-slide.active {
    opacity: 1;
}

.project-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #fff;
}

/* Zones cliquables invisibles */
.slider-zone {
    position: absolute;
    top: 0;
    width: 50%;
    height: 100%;
    z-index: 10;
}

.slider-zone-left {
    left: 0;
    cursor: url(previous.webp), pointer;
}

.slider-zone-right {
    right: 0;
    cursor: url(next.webp), pointer;
}

/* Informations Projet */
.project-info-section {
    max-width: 800px;
    /* margin: 0 auto; */
    padding: 0 50px 60px;
    position: relative;
}

.project-info-list {
    list-style: none;
    padding: 0;
}

.project-info-list li {
    padding: 12px 0;
    /* border-bottom: 1px solid #e0e0e0; */
    font-size: 16px;
    color: #666;
    /* line-height: 1.6; */
}

.project-info-list li:last-child {
    border-bottom: none;
}

.project-info-list strong {
    color: #333;
    font-weight: bold;
    margin-right: 10px;
}

.project-info-list ul {
    margin-top: 8px;
    padding-left: 20px;
    list-style-type: none;
}

.project-info-list ul li {
    padding: 8px 0;
    font-size: 14px;
    color: #666;
}

.project-info-wrapper {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 60px;
    padding: 0 50px 60px;
    width: 100%; /* plus de max-width */
}

.project-info-section {
    padding: 0;
    flex: 0 0 45%; /* prend 45% de la largeur */
    min-width: 0;
}

.project-description {
    flex: 0 0 40%; /* prend 40% */
    min-width: 0; /* empêche le débordement */
    text-align: justify;
    color: #666;
    line-height: 1.8;
    padding-top: 12px;
}

/* Footer */
footer {
    background: transparent;
    padding: 30px 50px;
    text-align: center;
    font-size: 14px;
}

body.home {
    overflow: hidden;
    height: 100vh;
}

body.home footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    font-size: 11px;
    padding: 15px 50px;
    z-index: 998;
}

body.home footer a {
    color: #fff;
    text-decoration: none;
}

body:not(.home) footer {
    color: #666;
}

body:not(.home) footer a {
    color: #666;
    text-decoration: none;
}

/* Responsive */
@media (max-width: 768px) {
    nav {
        padding: 12px 20px;
    }

    .logo-link {
        z-index: 1002;
        position: relative;
    }

    .logo-img {
        height: 32px;
    }

    nav ul {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100vh;
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 100px 50px 50px;
        gap: 30px;
        transition: left 0.3s;
        z-index: 1001;
        justify-content: center;
        align-items: center;
    }

    nav ul a {
        color: #fff !important;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5) !important;
        font-size: 24px;
        font-weight: 500;
    }

    body:not(.home) nav ul {
        background: rgba(255, 255, 255, 0.65);
        backdrop-filter: blur(30px);
    }

    body:not(.home) nav ul a {
        color: rgba(0, 0, 0, 0.8) !important;
        text-shadow: none !important;
    }

    nav ul.active {
        left: 0;
    }

    .menu-toggle {
        display: flex;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .about-section,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .projects-container,
    .agency-container {
        padding: 100px 20px 60px;
    }

    .project-detail-container {
        padding-top: 60px;
    }

    .project-detail-title {
        font-size: 24px;
        margin-bottom: 15px;
        padding: 0 20px;
    }

    .project-slider {
        height: calc(100vh - 200px);
        margin-bottom: 30px;
    }

    .project-info-section {
        padding: 0 20px 50px;
    }

    .project-info-list li {
        font-size: 14px;
        padding: 10px 0;
    }

    .project-info-wrapper {
        flex-direction: column;
        gap: 30px;
        padding: 0 20px 50px;
    }

    .project-description {
        text-align: justify;
    }

    footer {
        padding: 30px 20px;
    }

    body.home footer {
        padding: 15px 20px;
        font-size: 10px;
    }
}
