/* --- Global Styles --- */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap');

:root {
    --primary-color: #ffffff; /* White */
    --secondary-color: #f8f9fa; /* Off-white */
    --accent-color: #8A2BE2; /* BlueViolet */
    --text-color: #343a40; /* Dark Gray */
    --container-width: 1100px;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--primary-color);
    color: var(--text-color);
    margin: 0;
    padding: 0;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 2rem;
}

/* --- Header --- */
#main-header {
    background-color: var(--secondary-color);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.logo {
    height: 50px;
}

.main-nav .nav-links {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    margin: 0;
}

.main-nav a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 1.1rem;
    transition: color 0.3s;
}

.main-nav a:hover {
    color: var(--accent-color);
}

.cart-button img {
    height: 35px;
}

.menu-toggle {
    display: none; /* Hidden on desktop */
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 2rem;
    cursor: pointer;
}

/* --- Hero Section --- */
#hero {
    height: 60vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: url('../image/groupe1.jpg') no-repeat top center/cover;
    color: var(--white);
}

#hero h1 {
    color : white;
    font-size: 4rem;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
    animation: fadeInDown 2s ease-in-out;
}

#hero p {
    color : white;
    font-size: 2rem;
    animation: fadeInUp 2s ease-in-out;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Gallery Section --- */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
}

.photo-grid img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), filter 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    animation: slideInUp 0.5s ease-out forwards;
    opacity: 0;
}

.photo-grid img:hover {
    transform: scale(1.08) rotate(2deg);
    box-shadow: 0 15px 25px rgba(0,0,0,0.25);
    filter: brightness(1.1);
}

.photo-grid img:nth-child(1) { animation-delay: 0.1s; }
.photo-grid img:nth-child(2) { animation-delay: 0.2s; }
.photo-grid img:nth-child(3) { animation-delay: 0.3s; }
.photo-grid img:nth-child(4) { animation-delay: 0.4s; }
.photo-grid img:nth-child(5) { animation-delay: 0.5s; }

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Video Section --- */
.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* --- Footer --- */
#main-footer {
    background-color: var(--secondary-color);
    text-align: center;
    padding: 2rem;
    margin-top: 2rem;
}

.social-links img {
    height: 35px; /* Set a consistent height for all logos */
    width: auto; /* Maintain aspect ratio */
    margin: 0 1rem;
    transition: transform 0.3s;
}

.social-links img:hover {
    transform: scale(1.1);
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .main-nav {
        position: relative;
    }

    .main-nav .nav-links {
        display: none; /* Hidden by default */
        flex-direction: column;
        position: absolute;
        top: 50px; /* Position below the header */
        right: 0;
        background-color: var(--secondary-color);
        border-radius: 10px;
        box-shadow: 0 5px 15px rgba(0,0,0,0.15);
        width: 250px;
        padding: 1rem;
        gap: 0.5rem;
    }

    .main-nav .nav-links.active {
        display: flex; /* Show when active */
    }

    .main-nav .nav-links a {
        font-size: 1.2rem;
        color: var(--text-color);
        padding: 0.75rem 1rem;
        border-radius: 5px;
        transition: background-color 0.3s;
    }

    .main-nav .nav-links a:hover {
        background-color: rgba(0,0,0,0.1);
    }

    #hero h1 {
        font-size: 2.5rem;
    }
}
