﻿/* General styles */
@font-face {
    font-family: 'CustomFont';
    src: url('dejais.woff2') format('woff2'),
         url('dejais.woff') format('woff');
}


.body-home {
    font-family: 'CustomFont', sans-serif;
    margin: 0;
    padding: 0;
    background-image: url('images/RETOUCHE/kevin lookbook0063.jpg'); /* Path to your image */
    background-size: cover; /* Ensures the image covers the entire background */
    background-position: top; /* Centers the image */
    background-repeat: no-repeat; /* Prevents the image from repeating */
    background-attachment: scroll; 
    min-height: 100vh; /* Ensure the body takes up the full viewport height */
    height: 100%; /* Ensures the body takes up the full viewport height */
}

/* Create an invisible box for the content */
.content-box {
    background-color: transparent; /* Make the box transparent */
    padding: 20px; /* Add some padding */
    min-height: 90vh;
    margin: 100% 20px 0; /* Push the content down to make the background visible */
}

.body-other {
    font-family: 'CustomFont', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #020202;
    color: #fffbfb;
}

.titre {
padding-top: 10px;
padding-bottom: 10px;
text-align: center;
justify-content: center;
font-size: 3em;
}


h1, h2, h3 {
    color: #fffbfb;
}


header {
    display: flex;
    justify-content: space-between; /* Space out title and nav */
    align-items: flex-start; /* Align items at the top */
    color: white;
    padding: 1% 2%; /* Simplify padding */
}

/* Style the title */
.title {
    color: white; /* White text */
    text-decoration: none;
    font-size: 4em; /* Adjust font size */
    margin: 0; /* Remove default margin */
    padding: 0; /* Remove default padding */
}

/* Style the navigation */
nav {
    display: flex;
    justify-content: flex-end; /* Align nav items to the right */
    align-items: flex-start; /* Align nav items at the top */
    font-size: 2em;
    margin: 0; /* Remove default margin */
    padding: 0; /* Remove default padding */
}

nav a {
    color: white;
    text-decoration: none;
    padding: 10px 20px; /* Ensure consistent padding */
    display: inline-block; /* Ensure consistent alignment */
}

nav a:hover {
    color: #ffffff;
    font-weight: bold;
    text-shadow: 0 0 1px white; /* Add a glow effect */
}


/* Gallery styles */
.gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 0; /* No gap between images */
}

.gallery-item {
    position: relative;
    flex: 1 1 calc(33.333% - 0px); /* 3 columns, no gap */
    overflow: hidden;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.gallery-item .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

.gallery-item .zoom-icon {
    font-size: 2em;
    color: white;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.1); /* Zoom effect */
    filter: brightness(0.7); /* Darken image */
}

.gallery-item:hover .overlay {
    opacity: 1; /* Show overlay */
}

.gallery-item:hover .zoom-icon {
    opacity: 1; /* Show zoom icon */
}

/* Full-screen overlay styles */
#fullscreen-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    cursor: grab; /* Indicate draggable image */
}

#fullscreen-image {
    max-width: 90%;
    max-height: 90%;
    display: inline-block;
    object-fit: contain;
    transition: transform 0.3s ease; /* Smooth zoom and pan */
    transform-origin: center center; /* Zoom from the center */
    user-select: none; /* Prevent text selection */
}



#exit-fullscreen {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2em;
    transition: color 0.3s ease; /* Add hover effect */
    color: rgb(255, 255, 255);
    cursor: pointer;
    z-index: 1100;
} /* Add this closing brace */

#exit-fullscreen:hover  {
    color: #575757; /* Change color on hover */
}

.presentation {
    color: #fffbfb;
    font-size: 2em;
    padding: 20px;
    text-align: center;

}

.remerciements {
    text-align: center;
    text-decoration: none;
    font-size: 1.25em;

}

.remerciements a {
    color: white;
    text-decoration: none;
}

.remerciements a:hover {
    color: #ffffff;
    font-weight: bold;
    text-shadow: 0 0 1px white; /* Add a glow effect */
}

#contact-modal {
    display: none; /* Ensure this is set to hide the modal by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    overflow-y: auto; /* Allow scrolling if content is too tall */
}

/* Modal styles */

#contact-modal {
    display: none;
}
.modal {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8); /* Semi-transparent black background */
    z-index: 1000; /* Ensure it's on top of everything */
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-y: auto; /* Allow scrolling if content is too tall */
}

.modal-content {
    z-index: 1001; 
    background-color: none;
    padding: 20px;
    border-radius: 10px;
    max-width: 600px; /* Limit modal width on larger screens */
    width: 90%; /* Responsive width for smaller screens */
    position: relative;
}


.close-modal {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 1.5em;
    color: #fffbfb;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-modal:hover {
    color: #575757; /* Change color on hover */
}


/* General Modal Styles */
#about-modal {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.938); /* Semi-transparent black background */
    z-index: 1000; /* Ensure it's on top of everything */
    justify-content: center;
    align-items: center;
    color: #fffbfb;
    font-size: 1.5em;
    box-sizing: border-box;
    overflow-y: auto; /* Allow scrolling if content is too tall */
}

#about-modal p {
    padding-bottom: 20px; /* Add padding below the text */
}

#about-modal.active {
    display: flex; /* Show the modal when active */
}

/* Modal Content Styles */
#about-modal .aboutmodal-content {
    font-size: 1.3em;
    background-color: none;
    padding: 20px;
    border-radius: 10px;
    height: 90%;
    max-width: 800px; /* Limit modal width on larger screens */
    width: 90%; /* Responsive width for smaller screens */
    position: relative;
}
.close-about-modal {
    position: fixed; /* Keep the button fixed even when scrolling */
    top: 20px; /* Adjust the distance from the top */
    right: 20px; /* Adjust the distance from the right */
    font-size: 1.5em;
    color: #fffbfb;
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 1001; /* Ensure it stays above the modal content */
}

.close-about-modal:hover {
    color: #575757; /* Change color on hover */
}


/* Contact form styles (unchanged, but now inside the modal) */
#contact-modal h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #fffbfb;
    font-size: 2em;
}

#contact-form {
    display: flex;
    flex-direction: column;
    gap: 50px;
}

#contact-form input {
    pointer-events: auto; /* Ensure this is set */
    width: 100%;
    padding: 12px;
    border: 1px solid #444;
    border-radius: 5px;
    background-color: #2a2a2a;
    color: #ffffff;
    font-size: 1em;
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

#contact-form textarea {
    pointer-events: auto; /* Ensure this is set */
    width: 100%;
    padding: 12px;
    border: 1px solid #444;
    border-radius: 5px;
    background-color: #2a2a2a;
    color: #ffffff;
    font-size: 1.3em;
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

#contact-form input:focus {
    border-color: #fffbfb;
    background-color: #333;
    outline: none;
}

#contact-form textarea:focus {
    border-color: #fffbfb;
    background-color: #333;
    outline: none;
}

#contact-form textarea {
    resize: vertical;
    min-height: 150px;
}

#contact-form button {
    padding: 12px;
    background-color: #252525;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.3s ease;
}

#contact-form button:hover {
    background-color: #575757;
}

#response-message {
    margin-top: 20px;
    text-align: center;
    color: #fffbfb;
    font-size: 1em;
}


 footer {
    text-align: left;
    padding-top: 20px;
    padding-bottom: 10px;
    padding-left: 2%;
    color: white;

}

/* Back to Top Button Styles */
#back-to-top {
    display: none; /* Hidden by default */
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 99;
    font-size: 30px;
    border: none;
    outline: none;
    background-color: #000000;
    color: white;
    cursor: pointer;
    padding: 15px;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

#back-to-top:hover {
    background-color: #1b1b1bf6; /* Darker background on hover */
}



/* Responsive adjustments for screens smaller than 768px */
@media (max-width: 768px) {

    .body-home {
        background-size: cover; /* Adjusts the image to fit smaller screens */
    }
    /* Adjust header and navigation */
    header {
        flex-direction: column; /* Stack title and nav vertically */
        align-items: center; /* Center align items */
        padding: 10px; /* Reduce padding */
    }

    .title {
        font-size: 2.5em; /* Reduce title size */
        text-align: center; /* Center align title */
    }

    nav {
        justify-content: center; /* Center align nav links */
        font-size: 1.5em; /* Reduce nav font size */
    }

    nav a {
        padding: 5px 10px; /* Reduce padding for nav links */
    }

    /* Adjust gallery layout */
    .gallery-item {
        flex: 1 1 calc(50% - 0px); /* 2 columns on smaller screens */
    }

    /* Adjust fullscreen image */
    #fullscreen-image {
        max-width: 95%; /* Increase max-width for better visibility */
        max-height: 95%; /* Increase max-height for better visibility */
    }

    /* Adjust modal content */
    .modal-content {
        padding: 10px; /* Reduce padding */
        width: 85%; /* Increase width for better visibility */
        height: 85%;
    }

    .modal-content h2 {
        font-size: 1.5em; /* Reduce heading size */
    }

    .modal-content p {
        font-size: 1em; /* Reduce text size */
    }

    /* Adjust about modal */
    #about-modal .aboutmodal-content {
        padding: 10px; /* Reduce padding */
        font-size: 1.1em;
    }

    #about-modal h1 {
        font-size: 1.5em; /* Reduce heading size */
    }

  

    /* Adjust footer */
    footer {
        text-align: center; /* Center align footer text */
        padding-bottom: 0;
        padding-right: 0; /* Remove right padding */
    }
}

/* Responsive adjustments for screens smaller than 480px */
@media (max-width: 480px) {
    /* Further reduce font sizes and adjust layout */
    .title {
        font-size: 2em; /* Further reduce title size */
    }

    nav {
        font-size: 1.2em; /* Further reduce nav font size */
    }

    .gallery-item {
        flex: 1 1 calc(100% - 0px); /* 1 column on very small screens */
    }

    .modal-content {
        width: 100%; /* Full width for very small screens */
    }

}

@media (max-width: 600px) {
    .modal-content {
        padding: 10px; /* Reduce padding on smaller screens */
    }
    .close-modal {
        font-size: 1.2em; /* Reduce close button size on smaller screens */
    }

    .modal-content h2 {
        font-size: 1.5em; /* Reduce heading size on smaller screens */
    }

    .modal-content p {
        font-size: 1em; /* Reduce text size on smaller screens */
    }

    .modal-content input,
    .modal-content textarea {
        font-size: 1em; /* Adjust input and textarea font size */
    }
   
    .close-about-modal {
        font-size: 1.2em; /* Reduce close button size on smaller screens */
    }   
}
