body {
    display: block;
    color: #1a1a1a;
    /* On a supprimé les lignes background ici pour laisser styles.css gérer le fond */
    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: 1.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;
}

/* --- VERSION PC --- */
.polaroid-left {
    position: fixed;
    left: 13rem;
    top: 60%;
    transform: translateY(-50%);
    width: 30%;
    max-width: 400px;
}

.gemini-tooltip {
    position: absolute;
    bottom: 6rem;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(26, 26, 26, 0.85);
    color: #edebe8;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.65rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.polaroid-left:hover .gemini-tooltip {
    opacity: 1;
}

.polaroid-left img {
    width: 100%;
    height: auto;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: high-quality;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform: translateZ(0);
    -webkit-font-smoothing: subpixel-antialiased;
}

.about-content {
    position: fixed;
    right: 8rem;
    top: 58%;
    transform: translateY(-50%);
    width: 45%;
    max-width: 550px;
}

.about-content h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    color: #1a1a1a;
    text-transform: lowercase;
    letter-spacing: 0.5px;
}

.about-content p {
    font-size: 0.8rem;
    line-height: 1.8;
    color: #1a1a1a;
    font-weight: 300;
}

@media (max-width: 1024px) {
    .polaroid-left {
        width: 40%;
        left: 3rem;
    }
    
    .about-content {
        width: 45%;
        right: 3rem;
    }
}

@media (max-width: 768px) {
    .header-logo {
        width: 120px;
    }
    
    .menu-toggle {
        top: 1.5rem;
        left: 1.5rem;
    }
    
    /* --- CORRECTION MOBILE ICI --- */
    .polaroid-left {
        position: relative; 
        
        /* AJOUT IMPORTANT : On annule le décalage gauche hérité du PC */
        left: auto; 
        
        transform: none;
        width: 70%;
        max-width: 300px;
        margin: 10rem auto 1rem;
    }
    
    .polaroid-left img {
        width: 100%;
    }
    
    .gemini-tooltip {
        bottom: 4rem;
        font-size: 0.55rem;
    }
    
    .about-content {
        position: static;
        transform: none;
        width: 85%;
        max-width: 100%;
        margin: 1rem auto;
        text-align: center;
    }
    
    .about-content h2 {
        font-size: 1.5rem;
    }
    
    .about-content p {
        font-size: 0.75rem;
        line-height: 1.6;
    }
}

@media (max-width: 480px) {
    .header-logo {
        width: 100px;
    }
    
    .sidebar {
        width: 250px;
    }
    
    .about-content {
        margin-top: 2rem;
    }
}

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