/* Styles généraux */
body {
    font-family: Forum, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #B1907F;
    color: #ffffff;
}
header, section, footer {
    padding: 30px;
    text-align: center;
    border-radius: 8px;
    margin: 20px auto;
}
.homepage {
    color: #4a4a4a;
    padding: 120px 20px;
    position: relative;
    overflow: hidden;
    height: 100vh;
}
.video-background {
    position: absolute;
    top: -10%;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
}
.video-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.header-content {
    font-family: Forum, sans-serif;
    font-size: 30px;
    margin-top: 20px;
    position: relative;
    z-index: 1;
    color: #ffffff;
    text-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.5),
        2px 2px 6px rgba(255, 255, 255, 0.3);
    padding-top: 150px;
    letter-spacing: 1.5px;
    line-height: 1.2;
    font-weight: 500;
    text-align: center;
}

/* Scroll Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.scroll-animate {
    opacity: 0; /* Initially hidden */
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.appear {
    animation: fadeIn 0.6s forwards;
}

/****************
      Features
****************/

.features {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 80px;
    color: white;
    text-align: center;
    font-family: Forum, sans-serif;
}

.features div {
    width: 30%;
    text-align: center;
    opacity: 1; /* Hidden by default */
    transform: translateY(20px); /* Slight upward movement */
    transition: opacity 0.3s ease-out, transform 0.3s ease-out;
}

.features div.appear {
    opacity: 0; /* Fade in */
    transform: translateY(0); /* Move to the original position */
}

.features i {
    display: block;
    font-size: 2em;
    margin-bottom: 30px;
    color: white;
}

.features p {
    font-size: 1.3em;
    line-height: 1.6em;
    letter-spacing: 1px;
    margin: 0 auto;
}

@media screen and (min-width: 320px) and (max-width: 568px) {
    .features {
        flex-direction: column;
    }
    .features div {
        width: 100%;
        margin-bottom: 25px;
    }
}

/* A propos content */
.about-content {
    display: flex;
    gap: 30px;
    align-items: flex;
    justify-content: center;
    padding: 10px;
    flex-wrap: wrap;
}

.about-text {
    flex: 1;
    max-width: 600px;
    line-height: 1.8;
    font-size: 1.5em;
    text-align: justify;
    color: #4A403A;
}

.about-image {
    display: flex;
    flex: 1;
    max-width: 700px;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 
        0px 4px 8px rgba(0, 0, 0, 0.4), /* Subtle primary shadow */
        0px 8px 16px rgba(0, 0, 0, 0.2), /* Softer and larger shadow */
        0px 12px 24px rgba(0, 0, 0, 0.1); /* Lightest and widest shadow for depth */
}


@media (max-width: 768px) {
    .about-content {
        flex-direction: column;
        gap: 20px;
    }

    .about-text, .about-image {
        max-width: 100%;
        text-align: center;
    }
}

/* Styles de la barre de navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    background:  #5C4033;
    padding: 10px 20px;
    height: 40px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}
.logo {
    font-size: 24px;
    font-weight: bold;
    color: #d2691e;
    margin-right: 20px;
}
.nav-links {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
    transition: max-height 0.5s ease-in-out;
    overflow: hidden;
}
.nav-links li {
    margin: 0 10px;
}
.nav-links a {
    text-decoration: none;
    color: #ffffff;
    transition: color 0.3s ease;
}
.nav-links a:hover {
    color: #ff5722;
}
.toggle-button {
    display: none;
    font-size: 24px;
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.3s ease;
    position: absolute;
    right: 20px;
}
.toggle-button:hover {
    color: #a0522d;
}

@media (max-width: 768px) {
    .nav-links {
        max-height: 0; /* Hidden by default */
        flex-direction: column;
        text-align: left;
        width: 100%; /* Full width of the screen */
        background: #333; /* Dark background */
        position: absolute;
        top: 50px;
        right: 0;
        padding: 0; /* Remove extra padding */
        box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
        overflow: hidden; /* Hide overflowing content */
        transition: max-height 0.5s ease-in-out; /* Smooth dropdown effect */
        z-index: 10; /* Ensure it's above other content */
    }

    .nav-links li {
        margin: 10px 0; /* Space between menu items */
        padding: 10px; /* Larger tap target for touch devices */
        list-style: none; /* Remove bullet points */
    }

    .nav-links li a {
        color: white; /* Text color */
        text-decoration: none; /* Remove underline */
        font-size: 18px; /* Easy-to-read font size */
        display: block; /* Make the entire area clickable */
    }

    .toggle-button {
        position: absolute;
        top: 10px;
        right: 40px; /* Align toggle to the top-right corner */
        display: block; /* Ensure the toggle is visible */
        font-size: 24px; /* Bigger icon for easy tapping */
        color: #ffffff; /* White color for contrast */
        background: none; /* Remove default button styles */
        border: none;
        cursor: pointer; /* Show a pointer cursor on hover */
        z-index: 11; /* Keep above the menu */
    }

    .nav-links.active {
        max-height: 300px; /* Expand the dropdown when active */
    }
}


/* Other styles remain unchanged */
/* Adjust additional sections for scroll-animate class as necessary */


/* Popup Container */
.popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8); /* Fond sombre transparent */
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

/* message */

.warning {
    color: #111;
}

/* Popup Content */
.popup-content {
    background: #fff; /* Couleur de fond blanc */
    padding: 20px;
    border-radius: 10px; /* Coins arrondis */
    max-height: 90vh;
    position: relative;
    text-align: center; /* Centre le texte */
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2); /* Ombre douce */
    overflow-y: auto; /* Enable vertical scrolling for overflowing content */

}

.popup-content h2 {
    font-size: 1.8rem;
    color: #333; /* Couleur du texte */
    margin-bottom: 20px;
    text-transform: uppercase; /* Texte en majuscule */
    letter-spacing: 1px; /* Espacement entre les lettres */
}

/* Close Button */
.close-button {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #555;
}

.close-button:hover {
    color: #ff5722; /* Couleur au survol */
}



/* Map Section */
#map-section {
    text-align: center;
    size: 2%;
}


#deliveryResult {
    margin-top: 10px;
    font-size: 16px;
}


/*parfum section*/

.parfumsflavor {
    padding: 50px 20px;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-family: 'Georgia', serif;
    font-size: 2rem;
    font-weight: bold;
    color: #4A403A;
    margin-bottom: 10px; /* Adds a 20px gap below the title */
    margin-top: 10px;
}

.parfum-flavors {
    display: flex;
    justify-content: center; /* Centers the columns and logos horizontally */
    gap: 200px; /* Space between the two flavor groups */
}

.flavor-group {
    display: flex;
    flex-direction: column;
    align-items: center; /* Centers the logo and list vertically */
    text-align: center;
    gap: 20px; /* Adds space between the logo and the list */
}

.icon {
    flex-shrink: 0; /* Prevents the icon from shrinking */
}

.parfum-icon {
    width: 80px; /* Adjust size as needed */
    height: 80px;
    margin-top: 50px;
}

.flavor-list ul {
    list-style: none;
    padding: 0;
    text-align: center; /* Aligns the list centrally */
}

.flavor-list ul li {
    font-family: Forum, sans-serif;
    font-size: 1.6rem;
    color: #4A403A;
    line-height: 1.8;
    transition: color 0.3s, transform 0.3s;
}

.flavor-list ul li:hover {
    color: #D2691E; /* Highlighted color on hover */
    transform: translateX(5px); /* Moves text slightly to the right */
}


.parfum-description {
    font-size: 1.4rem;
    color: #4A403A;
}

.parfum-note {
    font-size: 1.4rem;
    color: #4A403A;
}

/* Button Styling: Keep Existing button-74 */
.button-74 {
    background-color: #fbeee0;
    border: 2px solid #422800;
    border-radius: 30px;
    box-shadow: #422800 4px 4px 0 0;
    color: #422800;
    cursor: pointer;
    font-weight: 600;
    font-size: 18px;
    padding: 0 18px;
    line-height: 50px;
    text-align: center;
    text-decoration: none;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;

}

.button-74:hover {
    background-color: #fff;
}

.button-74:active {
    box-shadow: #422800 2px 2px 0 0;
    transform: translate(2px, 2px);
}

@media (min-width: 768px) {
    .button-74 {
        min-width: 120px;
        padding: 0 25px;
        display: inline-block;
        margin: 20px auto; /* Centre le bouton horizontalement */
    }

    /* Parfum Image */
    .parfum-image {
        margin: 0 auto; /* Center the image horizontally */
        display: block; /* Ensures the image behaves as a block element */
        width: 50%; /* Scales the image to twice its normal width */
        max-width: 30%; /* Ensures the image doesn’t exceed 600px */
        height: auto; /* Maintain aspect ratio */
        border-radius: 15px; /* Rounded corners */
        box-shadow: 
            0px 4px 8px rgba(0, 0, 0, 0.3), 
            0px 6px 12px rgba(0, 0, 0, 0.2); /* Slightly softer shadows for smaller screens */
        margin-bottom: 20px;
    }
}




/* Form Styling */
.order-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.form-group label {
    font-size: 1rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}

.form-group input,
.form-group select {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
}

.form-group input:focus,
.form-group select:focus {
    border-color: #00c3a3;
    outline: none;
}

/* Responsive Layout */
@media (max-width: 768px) {
    #map-section {
        max-width: 100%;
    }

    .popup-content {
        width: 100%;
        margin: 0 20px;
    }
}

/* Styles du pied de page */

.footer {
    background: #111;
    color: #fff;
    padding: 40px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    border-radius: 15px; /* Rounded corners */
}

.footer-left {
    flex: 1;
    max-width: 300px;
    text-align: left;
    margin-bottom: 20px;
}

.footer-left h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

.footer-left p {
    font-size: 14px;
    margin-bottom: 10px;
}

.footer-left .social-icons {
    display: flex;
    gap: 15px;
    margin: 10px 0;
}

.footer-left .social-icons a {
    color: #fff;
    font-size: 20px;
    transition: color 0.3s;
}

.footer-left .social-icons a:hover {
    color: #ff5722;
}

.footer-right {
    flex: 2;
    display: flex;
    justify-content: space-around;
    max-width: 600px;
    flex-wrap: wrap;
}

.footer-links-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links-column ul li {
    margin-bottom: 10px;
}

.footer-links-column ul li a {
    text-decoration: none;
    color: #fff;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-links-column ul li a:hover {
    color: #ff5722;
}

/* Responsive Design */
@media (max-width: 768px) {
    .footer {
        flex-direction: column;
        text-align: center;
    }

    .footer-left, .footer-right {
        max-width: 100%;
    }

    .footer-right {
        flex-direction: column;
        align-items: center;
    }
}



/* Galerie de produits */
.gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: center;
}
.gallery-item {
    position: relative;
    width: 450px;
    height: 350px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease-in-out;
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease-in-out;
}
.gallery-item:hover {
    transform: scale(1.05);
}
.gallery-item-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px;
    transform: translateY(100%);
    transition: transform 0.3s ease-in-out;
}
.gallery-item:hover .gallery-item-info {
    transform: translateY(0);
}

input[type="number"] {
    appearance: textfield; /* Ensure consistent display of number input */
    width: 100%; /* Ensures the input respects container width */
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    appearance: none; /* Hides the spinner buttons */
    margin: 0;
}

.confirmation-popup {
    position: fixed;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #28a745;
    color: white;
    padding: 1rem 2rem;
    border-radius: 8px;
    z-index: 1000;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    animation: fadeInOut 5s ease-in-out forwards;
}

@keyframes fadeInOut {
    0% { opacity: 0; transform: translate(-50%, -20px); }
    10% { opacity: 1; transform: translate(-50%, 0); }
    90% { opacity: 1; transform: translate(-50%, 0); }
    100% { opacity: 0; transform: translate(-50%, -20px); }
}


/* Properly position the Leaflet attribution */
.leaflet-control-attribution {
    display: none; /* Completely hide the attribution */
    /* OR position it elsewhere:
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.8);
    padding: 5px;
    border-radius: 4px;
    font-size: 0.9em;
    */
}
