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

::selection {
    background-color: #fffd9b;
    color: #000000;
    -webkit-text-fill-color: #000000;
}

body {
    background: #fff;
    color: #000;
    font-family: 'Barlow Condensed', sans-serif;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 2rem;
}

a {
    color: inherit;
    text-decoration: inherit;
}

#error-page {
        font-weight: 500;
}

#error-page:hover {
        background-color: #fffd9b;
}

body.page-portfolio {
    background: #f5f5f7;
}

body.error-pages {
    background: #fff !important;
}

.video-background {
    position: fixed;
    top: 0;
    right: 0;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    z-index: -1;
    height: 100%;
    object-fit: contain;
    object-position: right top;
}


/* bouton copier */

.email-copy {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.copy-btn {
    position: relative;
    top: 2px; /* baisse légèrement le bouton */
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    font-size: 0.85rem;
    border: 0px solid #d0d7de;
    border-radius: 6px;
    background-color: #f6f8fa;
    color: #000;
    cursor: pointer;
    transition: background-color 0.2s, border-color 0.2s;
    -webkit-tap-highlight-color: transparent; /* iOS / Android */
}

.copy-btn:hover {
    background-color: #fffd9b;
}

.copy-btn svg {
    position: relative;
    top: 1px; /* ajuste selon ton rendu */
    width: 10pt;
    height: 10pt;
    fill: currentColor;
}

.copy-btn.copied {
    color: #1a7f37;
    background-color: #dafbe1;
}

/* */

body.page-home {
    min-height: 100vh;
    position: relative;
}

.menu-btn {
    position: fixed;
    top: 30px;
    left: 30px;
    width: 40px;
    height: 30px;
    cursor: pointer;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.menu-btn span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #000;
    transition: all 0.3s ease;
    transform-origin: center;
}

.menu-btn.active span {
    background-color: #fff;
}

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

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

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

.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    z-index: 999;
    display: none;
    justify-content: center;
    align-items: center;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.menu-overlay.active {
    display: flex;
}

.menu-links {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    text-align: center;
}

.menu-links a {
    color: #fff;
    text-decoration: none;
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
}

.menu-links a:hover {
    font-weight: 700;
    margin-left: 0px;
    letter-spacing: 0.1em;
    transition: all 0.7s ease;
}

.menu-links a.current {
    font-weight: 300;
    pointer-events: none;
    cursor: default;
}

.container {
    text-align: center;
}

h1 {
    font-size: 4rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    margin-bottom: 3rem;
    text-transform: uppercase;
}

h4 {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.content {
    font-size: 1.5rem;
    font-weight: 200;
    line-height: 1;
    letter-spacing: 0.02em;
    max-width: 800px;
    text-align: left;
}

#portfolio_content {
    max-width: 2000px;
}

.content p {
    margin-bottom: 2rem;
    font-weight: 200;
}

.gallery {
    column-count: 3;
    column-gap: 20px;
    padding: 20px 0;
}

.gallery-item {
    position: relative;
    break-inside: avoid;
    margin-bottom: 20px;
    cursor: pointer;
    overflow: hidden;
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
    border-radius: 4px;
}

.gallery-item:hover img {
    transform: scale(0.95);
}

.contact-image {
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: 2rem;
    border-radius: 28px;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #f5f5f7;
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    position: relative;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
}

.lightbox-close {
    position: fixed;
    top: 0px;
    left: 30px;
    font-size: 80px;
    color: #000000;
    cursor: pointer;
    z-index: 1001;
}

.lightbox-nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    font-size: 50px;
    color: #000000;
    cursor: pointer;
    padding: 20px;
    user-select: none;
    z-index: 1002;
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

@media (max-width: 1800px) {
    .gallery {
        column-count: 4;
    }
}

@media (max-width: 1200px) {
    .gallery {
        column-count: 3;
    }
}

@media (max-width: 768px) {
    .gallery {
        column-count: 2;
        column-gap: 10px;
    }
    
    .gallery-item {
        margin-bottom: 10px;
    }

    h1 {
        font-size: 2.5rem;
    }

    .content {
        font-size: 1.2rem;
    }

    .menu-links a {
        font-size: 2rem;
    }

    .copy-btn {
        font-size: 1.2; /* Masque le texte */
    }
    .copy-btn i,
    .copy-btn svg {
        font-size: 1.2rem; /* Garde l'icône visible */
    }
}

@media (max-width: 480px) {
    .gallery {
        column-count: 1;
    }

    .copy-btn {
        font-size: 1.2; /* Masque le texte */
    }
    .copy-btn i,
    .copy-btn svg {
        font-size: 1.2rem; /* Garde l'icône visible */
    }
}