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

        body {
            font-family: 'Helvetica Neue', Arial, sans-serif;
            background-color: #fff;
            color: #000;
            line-height: 1.6;
        }
/* SUR TOUTES LES PAGES */
        /* Header */
        header {
            position: fixed;
            top: 0;
            left: 0;
            bottom: 0;
            width: 250px;
            background: #fff;
            padding: 60px 30px;
            display: flex;
            flex-direction: column;
            /*gap: 40px;*/
            z-index: 1000;
            border-right: 1px solid #e0e0e0;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04); 
        }


 .header-animation {
    width: 110%;
    display: block;
    margin: 0 auto 35px auto;  
}

header img[alt="Art & Design"] {
    width: 80%;
    margin-top: -40px;  
    padding-top: 30px;
    text-align: center;
}

        nav {
            display: flex;
            flex-direction: column;
            gap: 15px;
             align-items: center;
        }

        .nav-icons-row {
    display: flex;
    flex-direction: row;
    gap: 15px;
    margin-top: 35px;
}

       nav a {
    text-decoration: none;
    color: #000;
    font-size: 18px;
    transition: opacity 0.3s, transform 0.3s ease;
    padding: 5px;
    display: inline-block;

}

      nav a:hover {
    opacity: 1;
    transform: scale(1.15) rotate(-5deg);
}

        .menu-toggle {
            display: none;
           cursor: pointer;
        }


        /* Footer */
        footer {
            margin-left: 250px;
            text-align: center;
            padding: 40px;
            background: #f9f9f9;
            margin-top: 60px;
        }

        footer p {
            font-size: 14px;
            color: #666;
        }

        .menu-close {
    display: none;
}

        /* PAGE PAR PAGE */

        /* Gallery */
        .gallery {
    margin-left: 270px;
    padding: 80px;
    columns: 3;
    column-gap: 30px;
    max-width: 1400px;
}
       .gallery-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    background: none;
    border-radius: 4px;
    transition: transform 0.3s ease;
    break-inside: avoid;
    margin-bottom: 30px;
    display: inline-block;
    width: 100%;
}

.gallery-item.no-rounded {
    border-radius: 0;
}

.gallery-item.no-rounded img {
    border-radius: 0;
}
        .gallery-item:hover {
            transform: translateY(-5px);
        }

        .gallery-item img {
            width: 100%;
            height: auto;
  object-fit: contain;
        }

       .gallery-item-title {
    display: none; 
}
        /* Styles pour le carrousel */
.gallery-item.carousel {
    position: relative;
}

.carousel-images {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-images img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
     height: auto;
  object-fit: contain;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.carousel-images img.active {
    opacity: 1;
    position: relative;
}

/* Styles pour les vidéos dans le carrousel */
.carousel-images video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    object-fit: contain;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.carousel-images video.active {
    opacity: 1;
    position: relative;
}

/* Flèches du carrousel */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s, background 0.3s;
    z-index: 10;
}

.gallery-item.carousel:hover .carousel-btn {
    opacity: 1;
}

.carousel-btn:hover {
    background: rgba(255, 255, 255, 1);
}

.carousel-btn.prev {
    left: 10px;
}

.carousel-btn.next {
    right: 10px;
}

/* LIGHTBOX */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.5);
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    animation: fadeIn 0.3s ease;
    overflow-y: auto;
    padding: 40px 0;
}

.lightbox-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin: 60px auto 40px auto;
    width: 80%;
    max-width: 80vw;
    background: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 8px;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ⬇️ AJOUT IMPORTANT ⬇️ */
.lightbox-content {
    max-width: 100%;
    max-height: 75vh;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}
/* ⬆️ FIN AJOUT ⬆️ */

@keyframes zoomIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    width: 30px;
    height: 30px;
    cursor: pointer;
    transition: transform 0.3s;
    z-index: 10000;
}

.lightbox-close:hover {
    transform: scale(1.2) rotate(90deg);
}

.lightbox-caption {
    position: relative;
    transform: none;
    color: #000;
    background: none;
    padding: 15px 0 40px 0;
    margin: 0;
    max-width: 100%;
    text-align: left;
    font-size: 16px;
    border: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    white-space: normal;
    line-height: 1.5;
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 30px;
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
    z-index: 10000;
}

.lightbox-prev {
    left: 30px;
}

.lightbox-next {
    right: 30px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: #000;
    transform: translateY(-50%) scale(1.1);
}

/* Responsive lightbox */
@media (max-width: 599px) {
    .lightbox-container {
        width: 100%;
        max-width: 100vw;
        padding: 15px;
        margin: 20px 0;
    }
    
    .lightbox-content {
        max-width: 90%;
        max-height: 85vh;
    }
    
   .lightbox-close {
        top: 15px;
        right: 15px;
        width: 25px;
        height: 25px;
    }
    
    .lightbox-prev,
    .lightbox-next {
        width: 40px;
        height: 40px;
        font-size: 24px;
    }
    
    .lightbox-prev {
        left: 10px;
    }
    
    .lightbox-next {
        right: 10px;
    }
}

/* PAGE CONTACT */
.contact-section {
    margin-left: 270px;
    padding: 80px;
    min-height: calc(100vh - 200px);
}

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

.contact-container h1 {
    font-size: 32px;
    margin-bottom: 20px;
    font-weight: 300;
}

.contact-intro {
    font-size: 16px;
    color: #666;
    margin-bottom: 40px;
}

/* FORMULAIRE */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.form-group input,
.form-group textarea {
    padding: 12px 15px;
    border: 2px solid #5a5a5a;
    border-radius: 10px;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #000;
     box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.3);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}
/* Placeholder styling */
.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #bbbbbb;
    opacity: 1;
}

/* BOUTON avec SVG */
.submit-btn {
    background: transparent;
    color: #fff;
    padding: 0;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: transform 0.3s, opacity 0.3s;
    align-self: flex-start;
}

.submit-btn img {
    display: block;
    height: 50px;
    width: auto;
}

.submit-btn:hover {
    transform: translateY(-2px) scale(1.05);
    opacity: 0.8;
}

.submit-btn:active {
    transform: translateY(0) scale(0.98);
}

/* MESSAGE DE SUCCÈS */
.success-message {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    padding: 15px;
    border-radius: 4px;
    margin-top: 20px;
    text-align: center;
}
/* PAGE ABOUT */
.about-section {
    margin-left: 270px;
    padding: 80px;
    min-height: calc(100vh - 200px);
}

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

/* Photo à droite avec texte qui l'entoure */
.about-photo {
    float: right;
    width: 40%;
    margin-left: 40px;
    margin-bottom: 20px;
}

.about-photo img:first-of-type {
  width: 100%;
  height: auto;
  border-radius: 15px; 
  display: block;
}
.about-photo img:nth-of-type(2) {
    width: auto;            
    max-width: 45%;          
    height: auto;
    margin-top: 10px;
    margin-left: auto; 
    margin-right: 10px;       
    display: block;
    border-radius: 0 !important;
}

/* Texte SVG */
.about-text {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.about-text-line {
    width: 100%;
    height: auto;
}
.about-text-line1 {
    width: 40%;
    height: auto;
}


/* RESPONSIVE */

/* HEADER */
/* Mobile */
@media (max-width: 599px) {
    header {
        width: 100%;
        height: auto;
        bottom: auto;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 10px 20px;
        border-right: none;
        border-bottom: 1px solid rgba(224, 224, 224, 0.5);
        background: rgba(255, 255, 255, 0.95); 
        backdrop-filter: blur(10px);  
        -webkit-backdrop-filter: blur(10px);  
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02); 
    }

      .header-animation {
        width: 120px;
        height: auto;
        margin: 0;
    }
    
    header a {
        display: flex;
        align-items: center;
    }
   /* Animation au clic pour les liens de navigation */
    nav a:active {
        transform: scale(1.15) rotate(-5deg);
        opacity: 0.7;
    }
    
    /* Animation au clic pour les icônes */
    .nav-icons-row a:active img {
        transform: scale(1.1);
    }
    
    /* Animation au clic pour la croix de fermeture */
    .menu-close:active {
        transform: rotate(90deg);
        opacity: 0.7;
    }
        .menu-close {
        display: none;
        position: absolute;
        top: 30px;
        right: 25px;
        width: 25px;
        height: 25px;
        cursor: pointer;
        transition: transform 0.3s, opacity 0.3s;
    }
    
    .menu-close:hover {
        transform: rotate(90deg);
        opacity: 0.7;
    }
    nav {
        display: none;
    }

    .menu-toggle {
        display: block;
         margin-right: 10px;
    }
        .menu-toggle img {
        width: 50px;
        height: auto;
    }
      .menu-toggle:active {
        animation: pulse 0.3s ease;
    }
    
    @keyframes pulse {
        0% { transform: scale(1); }
        50% { transform: scale(1.1); }
        100% { transform: scale(1); }
    }


    .gallery,
    footer {
        margin-left: 0;
    }
    
    .gallery {
        columns: 1;
        padding: 20px;
        padding-top: 200px;
    }

  nav.mobile-open {
    display: flex !important;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
      background: rgba(255, 255, 255, 1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 30px 40px 40px 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    z-index: 999;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}

/* Agrandir les liens dans le menu mobile */
nav.mobile-open a {
    font-size: 20px;
    padding: 10px 0;
     gap: 3px;
}

nav.mobile-open .nav-icons-row {
    margin-top: 10px;
}
    nav.mobile-open .menu-close {
        display: block;
    }
}

/* GALLERY */
/* Tablettes petites/moyennes */
@media (max-width: 1024px) and (min-width: 600px) {
    .gallery {
        columns: 2;
        padding: 40px;
    }
}

/* CONTACT */
@media (max-width: 599px) {
    .contact-section {
        margin-left: 0;
        padding: 20px;
        padding-top: 200px;
    }
    
    .contact-container {
        max-width: 100%;
        padding: 0;
    }
    
    .contact-form {
        width: 100%;
    }
}

/* ABOUT */
@media (max-width: 599px) {
    .about-section {
        margin-left: 0;
        padding: 20px;
        padding-top: 200px;
    }
    
    /* Photo au-dessus sur mobile, pas de float */
    .about-photo {
        float: none;
        width: 60%;
        margin: auto;
        margin-bottom: 60px;
    }
      .about-text {
        padding: 0 30px;
        }
}