body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    overflow-x: hidden;
    padding-top: 100px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

header {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    padding: 1.5rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
    position: relative;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    background: linear-gradient(45deg, #fff, #a8edea);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-image {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s;
}

.logo-image:hover {
    transform: scale(1.1);
    border-color: #a8edea;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav a {
    color: #fff;
    text-decoration: none;
    transition: all 0.3s;
    font-weight: 500;
}

nav a:hover {
    color: #a8edea;
    transform: translateY(-2px);
}

.back-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    color: #fff;
    transition: all 0.3s;
    margin-bottom: 2rem;
}

.back-button:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(-5px);
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.portfolio-item {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s;
    cursor: pointer;
}

.portfolio-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

/* --- PORTFOLIO IMAGE EN PORTRAIT --- */
.portfolio-image {
    width: 100%;
    height: 400px;
    /* Plus haut pour portrait */
    background: linear-gradient(45deg, #667eea, #764ba2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    object-fit: cover;
    /* L'image remplit le conteneur */
}

.portfolio-info {
    padding: 1.5rem;
}

.portfolio-info h3 {
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    aspect-ratio: 3/4;
    /* Ratio portrait */
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.3s;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Remplit le conteneur portrait */
}

.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.gallery-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.3), rgba(118, 75, 162, 0.3));
}

.gallery-placeholder span {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.gallery-placeholder p {
    font-size: 1.1rem;
    opacity: 0.8;
}

/* Images cliquables */
.gallery-img {
    cursor: pointer;
}

/* Lightbox plein écran */
#lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

#lightbox img {
    max-width: 95%;
    max-height: 95%;
    object-fit: contain;
}

.slider {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.slider img {
    max-width: 80%;
    max-height: 80%;
}

.close {
    position: absolute;
    top: 20px;
    right: 40px;
    font-size: 40px;
    color: #764ba2;
    cursor: pointer;
}

.prev,
.next {
    position: absolute;
    top: 50%;
    font-size: 40px;
    color: #764ba2;
    cursor: pointer;
    user-select: none;
}

.prev {
    left: 30px;
}

.next {
    right: 30px;
}

/* ===== MENU BURGER (mobile uniquement) ===== */

.burger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

.burger span {
    width: 25px;
    height: 3px;
    background: white;
    border-radius: 2px;
}

/* MOBILE */
@media (max-width: 768px) {

    .burger {
        display: flex;
    }

    nav ul {
        position: absolute;
        top: 100%;
        right: 0;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        width: 100%;
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
        padding: 2rem 0;
        display: none;
    }

    nav ul.active {
        display: flex;
    }
}
