/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.section {
    padding: var(--section-spacing) 0;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: var(--font-heading);
    cursor: pointer;
    background: transparent;
    transition: var(--transition);
    border-radius: 20px;
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--bg-color);
    font-weight: 700;
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    border-color: var(--accent-hover);
}

.btn-full {
    width: 100%;
    text-align: center;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(18, 18, 18, 0.95);
    backdrop-filter: blur(5px);
    z-index: 1000;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 50px;
    border-radius: 50px;
    /* Ensure it pops on dark if black logo, or remove if already white */
}

.nav-list {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-list a {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    text-transform: uppercase;
}

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

.btn-nav {
    border: 1px solid var(--accent-color);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
}

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

.burger-menu span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--text-color);
    transition: var(--transition);
}

/* Mobile Nav */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background-color: var(--bg-color);
    z-index: 999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition);
}

.mobile-nav-overlay.active {
    right: 0;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    text-align: center;
}

.mobile-nav a {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    text-transform: uppercase;
}

/* Hero */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-top: 0;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    /* Overlay for readiness */
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-content h1 {
    font-family: var(--font-heading);
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--clr-white);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--text-muted);
}

/* Gallery Carousel */
.gallery-carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.gallery-carousel {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding-bottom: 1rem;
    /* Hide scrollbar */
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE */
}

.gallery-carousel::-webkit-scrollbar {
    display: none;
    /* Chrome */
}

.gallery-item {
    flex: 0 0 80%;
    /* Mobile: 80% width */
    max-width: 400px;
    height: 600px; /* Hauteur augmentée pour une meilleure visibilité */
    scroll-snap-align: center;
    border-radius: var(--border-radius);
    overflow: hidden;
    cursor: pointer; /* Indique que l'image est cliquable */
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Tronque les images pour remplir le conteneur */
    transition: transform 0.3s;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.carousel-btn {
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    padding: 0 1rem;
    height: 100%;
    position: absolute;
    top: 0;
    z-index: 2;
    transition: var(--transition);
}

.carousel-btn:hover {
    background: rgba(0, 0, 0, 0.8);
    color: var(--accent-color);
}

.carousel-btn.prev {
    left: 0;
}

.carousel-btn.next {
    right: 0;
}

/* About */
.about-grid {
    display: grid;
    gap: 2rem;
}

.about-text p {
    margin-bottom: 1.5rem;
    color: var(--text-muted);
}

.about-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.about-image-item {
    border-radius: var(--border-radius);
    overflow: hidden;
    width: 100%;
    height: 100%;
}

.about-image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.about-image-item:hover img {
    transform: scale(1.05);
}

.image-placeholder {
    width: 100%;
    height: 300px;
    background-color: var(--bg-secondary);
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid #333;
    color: #555;
    font-family: var(--font-heading);
}

/* FAQ Accordion */
.accordion {
    max-width: 800px;
    margin: 0 auto;
}

details {
    background-color: var(--bg-secondary);
    margin-bottom: 1rem;
    border-radius: var(--border-radius);
    overflow: hidden;
}

summary {
    padding: 1rem 1.5rem;
    cursor: pointer;
    font-family: var(--font-heading);
    font-weight: 700;
    display: flex;
    justify-content: space-between;
    align-items: center;
    list-style: none;
    /* Remove default triangle */
}

summary::-webkit-details-marker {
    display: none;
}

summary::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--accent-color);
    transition: var(--transition);
}

details[open] summary::after {
    transform: rotate(45deg);
}

.accordion-content {
    padding: 1rem 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
}

/* Contact */
/* Contact */
.contact-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem auto;
    color: var(--text-muted);
}

.contact-wrapper {
    display: grid;
    gap: 3rem;
    max-width: 900px;
    margin: 0 auto;
}

.process-steps {
    display: flex;
    justify-content: space-between;
    text-align: center;
    margin-bottom: 2rem;
}

.step {
    flex: 1;
    padding: 0 1rem;
    position: relative;
}

.step:not(:last-child)::after {
    content: '→';
    position: absolute;
    top: 20%;
    right: -10px;
    color: var(--accent-color);
    font-size: 1.5rem;
}

.step-num {
    display: inline-block;
    width: 30px;
    height: 30px;
    background-color: var(--accent-color);
    color: var(--bg-color);
    border-radius: 50%;
    font-weight: bold;
    line-height: 30px;
    margin-bottom: 0.5rem;
}

.step h3 {
    font-family: var(--font-heading);
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.step p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.contact-form {
    background-color: var(--bg-secondary);
    padding: 2rem;
    border-radius: var(--border-radius);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-family: var(--font-heading);
    font-size: 0.9rem;
}

input,
textarea {
    width: 100%;
    padding: 0.8rem;
    background-color: var(--bg-color);
    border: 1px solid #333;
    color: var(--text-color);
    border-radius: var(--border-radius);
    font-family: var(--font-body);
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--accent-color);
}

/* Lightbox (Gallery Modal) */
.lightbox {
    display: none;
    position: fixed;
    z-index: 3000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
}

.lightbox.active {
    display: flex;
    justify-content: center;
    align-items: center;
}

.lightbox-content {
    max-width: 90vw;
    max-height: 90vh;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: var(--border-radius);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: var(--text-color);
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
    z-index: 3001;
}

.lightbox-close:hover {
    color: var(--accent-color);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: white;
    font-size: 3rem;
    cursor: pointer;
    padding: 1rem 1.5rem;
    transition: var(--transition);
    z-index: 3001;
}

.lightbox-nav:hover {
    background: rgba(0, 0, 0, 0.8);
    color: var(--accent-color);
}

.lightbox-nav.lightbox-prev {
    left: 20px;
}

.lightbox-nav.lightbox-next {
    right: 20px;
}

/* Legal Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: var(--bg-secondary);
    margin: 10% auto;
    padding: 2rem;
    border: 1px solid var(--accent-color);
    width: 90%;
    max-width: 600px;
    border-radius: var(--border-radius);
    position: relative;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

.close-modal {
    color: var(--text-color);
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
}

.close-modal:hover {
    color: var(--accent-color);
}

.legal-text p {
    margin-bottom: 1rem;
    color: var(--text-muted);
}

/* Footer */
.footer {
    text-align: center;
    padding: 3rem 0;
    margin-top: 4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-links {
    margin-bottom: 1.5rem;
}

.footer-links a {
    margin: 0 1rem;
    text-transform: uppercase;
    font-family: var(--font-heading);
    font-size: 0.9rem;
}

.legal {
    font-size: 0.8rem;
    color: #555;
    margin-top: 1rem;
}

.legal a {
    cursor: pointer;
}

/* Responsive */
@media (min-width: 768px) {
    .nav-list {
        display: flex;
    }

    .burger-menu {
        display: none;
    }

    .gallery-item {
        flex: 0 0 33%;
        /* 3 items per view on desktop */
        height: 500px; /* Hauteur augmentée pour desktop */
    }

    .about-grid {
        grid-template-columns: 1fr 1fr;
        align-items: center;
    }

    .hero-content h1 {
        font-size: 4rem;
    }
}

@media (max-width: 767px) {
    .nav-list {
        display: none;
        /* Hide default nav */
    }

    .burger-menu {
        display: flex;
    }

    .form-group-row {
        grid-template-columns: 1fr;
    }

    .process-steps {
        flex-direction: column;
        gap: 1.5rem;
    }

    .step:not(:last-child)::after {
        content: '↓';
        top: auto;
        bottom: -25px;
        right: 50%;
        transform: translateX(50%);
    }

    .about-images {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    /* Lightbox responsive */
    .lightbox-close {
        top: 10px;
        right: 10px;
        font-size: 30px;
    }

    .lightbox-nav {
        font-size: 2rem;
        padding: 0.5rem 1rem;
    }

    .lightbox-nav.lightbox-prev {
        left: 5px;
    }

    .lightbox-nav.lightbox-next {
        right: 5px;
    }

    .lightbox-content {
        max-width: 95vw;
        max-height: 85vh;
    }

    .lightbox-content img {
        max-height: 85vh;
    }
}
