body {
    display: block;
    color: #1a1a1a;
    background-image: url('fond-sakuri.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 999;
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

.menu-toggle {
    position: fixed;
    top: 2rem;
    left: 2rem;
    width: 30px;
    height: 22px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 0;
}

.menu-toggle span {
    width: 100%;
    height: 2px;
    background-color: #1a1a1a;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

.sidebar {
    position: fixed;
    top: 0;
    left: -300px;
    width: 300px;
    height: 100vh;
    background: transparent;
    z-index: 1000;
    transition: left 0.3s ease;
    padding: 5rem 2rem 2rem;
}

.sidebar.active {
    left: 0;
}

.sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar li {
    margin-bottom: 2.5rem;
}

.sidebar a {
    text-decoration: none;
    color: #1a1a1a;
    font-size: 1.2rem;
    font-weight: 400;
    transition: color 0.2s ease;
    display: block;
}

.sidebar a:hover {
    color: #666;
}

.header {
    position: fixed;
    top: -1rem;
    left: 0;
    width: 100%;
    padding: 1rem;
    z-index: 100;
    display: flex;
    justify-content: center;
}

.header-logo {
    width: 180px;
    height: auto;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    -ms-interpolation-mode: nearest-neighbor;
}

.projets-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 9rem 1.5rem 1rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.projets-container h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 4rem;
    color: #1a1a1a;
    text-transform: lowercase;
    letter-spacing: 0.5px;
    text-align: center;
}

.projets-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2.5rem;
    justify-items: center;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

/* CTA button container under the grid */
.projets-cta {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 2.5rem auto 4rem;
}

.glass-wrapper {
    width: 250px;
    height: 220px;
}

.projet-card {
    width: 100%;
    height: 100%;
    padding: 2rem 1.5rem;
    border-radius: 24px;
    /* Important: un blur trop fort "aplatit" la texture du fond (effet beige).
       On garde un flou plus fin + pas de saturation pour voir la texture derrière.
       Le micro-alpha ci-dessous est quasi invisible mais aide Chrome à rendre le backdrop-filter. */
    background-color: rgba(255, 255, 255, 0.001);
    backdrop-filter: blur(7px) contrast(1.01);
    -webkit-backdrop-filter: blur(7px) contrast(1.01);
    border: 1px solid rgba(255, 255, 255, 0.10);
    box-shadow: 
        0 8px 18px rgba(31, 38, 135, 0.03),
        inset 0 1px 1px 0 rgba(255, 255, 255, 0.10);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    gap: 1rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.projet-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 24px;
    background: radial-gradient(120% 80% at 50% 0%, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0) 55%);
    pointer-events: none;
    opacity: 0.18;
}

.projet-card:hover {
    transform: translateY(-6px);
    backdrop-filter: blur(10px) contrast(1.02);
    -webkit-backdrop-filter: blur(10px) contrast(1.02);
    border-color: rgba(255, 255, 255, 0.16);
    box-shadow: 
        0 14px 34px rgba(31, 38, 135, 0.06),
        inset 0 1px 1px 0 rgba(255, 255, 255, 0.14);
}

.service-bubble h2 {
    font-size: 1.05rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    color: #1a1a1a;
    text-align: center;
    min-height: 2.5em;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-bubble p {
    font-size: 1rem;
    color: #222;
    text-align: justify;
    margin: 0;
    line-height: 1.5;
}

.work-intro {
    max-width: 600px;
    margin: 0 auto 2.5rem auto;
    text-align: center;
    font-size: 1.1rem;
    color: #1a1a1a;
    opacity: 0.85;
}

.projet-logo {
    width: 100%;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    padding: 1rem;
}

.projet-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.projet-info {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    align-items: center;
    text-align: center;
    width: 100%;
}

.projet-info h2 {
    font-size: 1.4rem;
    font-weight: 600;
    margin: 0;
    color: #1a1a1a;
    letter-spacing: 0.3px;
}

.projet-type {
    font-size: 0.8rem;
    color: #666;
    font-weight: 400;
}

.projet-status {
    font-size: 0.7rem;
    color: #2d5016;
    font-weight: 500;
    font-style: italic;
    padding: 0.3rem 0.8rem;
    background-color: rgba(45, 80, 22, 0.08);
    border-radius: 20px;
}

@media (max-width: 1200px) {
    .projets-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .projets-container {
        /* Augmente l'espace sous le header sur mobile pour éviter le chevauchement
           avec le titre "our services..." typé. N'affecte pas le desktop. */
        padding: 12rem 1rem 1rem;
    }
    .header {
        /* Aligne la position du header sur mobile pour éviter un décalage négatif */
        top: 0;
    }
    .header-logo {
        /* Harmonise la taille du logo avec les autres pages sur mobile */
        width: 120px;
    }
    .projets-container h1 {
        font-size: 1.3rem;
        margin-bottom: 2rem;
        /* Petit espace supplémentaire pour garantir aucune collision visuelle */
        margin-top: 0.5rem;
    }
    .projets-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }
    .glass-wrapper {
        width: 95vw;
        max-width: 520px;
        height: auto;
    }
    .projet-card {
        width: 100%;
        height: auto;
        min-height: 200px;
        padding: 1.2rem 0.9rem;
    }
    .projets-cta .btn-modern {
        width: 90%;
        min-width: 180px;
        max-width: 350px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .header-logo {
        /* Même taille que les autres pages en très petit viewport */
        width: 100px;
    }
    .projets-container {
        /* Ajuste l'espace en fonction du logo plus petit, tout en évitant le chevauchement */
        padding: 11rem 1rem 1rem;
    }
    .projets-container h1 {
        margin-top: 0.5rem;
    }
}

/* Footer Mentions Légales styles are global in styles.css */
