body {
    display: block;
    color: #1a1a1a;
    /* Les lignes background ont été supprimées ici pour éviter les conflits */
    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;
}

.contact-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 9rem 2rem 1rem;
}

.contact-content {
    width: 100%;
    max-width: 550px;
}

.contact-intro {
    font-size: 0.85rem;
    line-height: 1.6;
    color: #1a1a1a;
    font-weight: 300;
    text-align: center;
    margin-bottom: 2rem;
    margin-top: 1rem;
    padding: 0 1rem;
}

.contact-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 3rem;
    justify-content: center;
}

.envelope-icon {
    width: 50px;
    height: 50px;
    color: #1a1a1a;
}

.contact-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a1a1a;
    text-transform: lowercase;
    margin: 0;
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 400;
    color: #1a1a1a;
}

.form-group input,
.form-group textarea {
    padding: 0.5rem;
    border: 1.5px solid #1a1a1a;
    border-radius: 4px;
    background: transparent;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 0.85rem;
    color: #1a1a1a;
    transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #666;
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.submit-btn {
    padding: 0.75rem 2.5rem;
    font-size: 1rem;
    font-weight: 400;
    text-decoration: none;
    color: #1a1a1a;
    background: transparent;
    border: 1.5px solid #1a1a1a;
    border-radius: 4px;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    align-self: flex-start;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: #1a1a1a;
    transition: left 0.3s ease;
    z-index: -1;
}

.submit-btn:hover::before {
    left: 0;
}

.submit-btn:hover {
    color: #edebe8;
}

.manual-contact {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-top: 2rem;
}

.manual-contact-label {
    font-size: 1rem;
    font-weight: 300;
    color: #1a1a1a;
}

.email-link {
    font-size: 1.2rem;
    font-weight: 400;
    color: #1a1a1a;
    text-decoration: none;
    border-bottom: 1.5px solid #1a1a1a;
    display: inline-block;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.email-link:hover {
    color: #666;
    border-color: #666;
}

.mail-icon {
    width: 160px;
    height: auto;
    margin-top: 1.2rem;
    margin-left: 3rem;
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    0% {
        transform: translateY(30px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

.envelope-symbol {
    font-size: 120px;
    color: #1a1a1a;
    margin-top: -1.5rem;
    line-height: 1;
}

.success-message {
    display: none;
    padding: 1rem;
    background-color: rgba(76, 175, 80, 0.1);
    border: 1.5px solid #4CAF50;
    border-radius: 4px;
    color: #4CAF50;
    text-align: center;
    font-size: 0.95rem;
    margin-top: 1rem;
    animation: fadeInUp 0.5s ease-out;
}

@media (max-width: 768px) {
    .contact-container {
        /* Espace bas plus généreux pour éviter tout chevauchement avec le lien fixe */
        padding: 10rem 1.5rem 6rem;
    }
    
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-intro {
        font-size: 0.75rem;
        line-height: 1.6;
    }
    
    .header-logo {
        width: 120px;
    }
    
    .menu-toggle {
        top: 1.5rem;
        left: 1.5rem;
    }
    
    .mail-icon {
        width: 100px;
        margin-left: auto;
        margin-right: auto;
        margin-top: 2rem;
        display: block;
        /* Assure un rendu sans fond ajouté par le CSS */
        background-color: transparent !important;
        mix-blend-mode: normal;
        filter: none;
    }
    
    .manual-contact {
        text-align: center;
    }
    
    .form-group input,
    .form-group textarea {
        font-size: 0.8rem;
    }

    /* Lien "Mentions Légales" FIXE en bas sur mobile (contact seulement) */
    .legal-footer {
        position: fixed !important;
        bottom: calc(env(safe-area-inset-bottom) + 10px) !important; /* après l'image matcha, bien en bas */
        left: 0;
        width: 100%;
        text-align: center;
        z-index: 3000; /* au-dessus de tout le contenu */
        margin-top: 0;
        padding: 0.25rem 0;
        background: transparent;
    }
}

@media (max-width: 480px) {
    .contact-container {
        padding: 7rem 1rem 6rem; /* espace bas pour lien fixe sur très petit viewport */
    }
    
    .header-logo {
        width: 100px;
    }
    
    .sidebar {
        width: 250px;
    }
    
    .form-group input,
    .form-group textarea {
        font-size: 0.8rem;
    }
    
    .submit-btn {
        width: 100%;
    }

    .legal-footer { bottom: calc(env(safe-area-inset-bottom) + 8px) !important; }
}

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